@xysfe/actui 1.6.97 → 1.6.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.GoldFinanceChart=e():t.GoldFinanceChart=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../lib",e(e.s=2006)}({0:function(t,e){var i=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=i)},1: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)},10:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},100:function(t,e,i){var n=i(26),o=i(3)("toStringTag"),r="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,i,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=a(e=Object(t),o))?i:r?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},101:function(t,e,i){"use strict";var n=i(25),o=i(65);e.a={name:"ActPopup",mixins:[n.a,o.a],props:{type:{type:String,default:""},mask:{type:Boolean,default:!0},content:{type:String,default:""},center:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.7},pointerEvent:{type:String,default:""},zIndex:{type:[String,Number],default:"999"},topBorderRadius:{type:Boolean,default:!1}},computed:{typeClass:function(){return this.type?"act-"+this.type:""},maskBgColor:function(){return"rgba(0, 0, 0, "+this.opacity+")"}},methods:{maskClick:function(t){this.$emit("mask-click",t)}}}},104:function(t,e,i){"use strict";function n(t){s||i(125)}var o=i(101),r=i(126),a=i(2),s=!1,l=n,h=Object(a.a)(o.a,r.a,r.b,!1,l,null,null);h.options.__file="src\\components\\common\\popup.vue",e.a=h.exports},109:function(t,e,i){var n=i(100),o=i(3)("iterator"),r=i(18);t.exports=i(0).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||r[n(t)]}},11:function(t,e,i){var n=i(47),o=i(29);t.exports=function(t){return n(o(t))}},111:function(t,e,i){"use strict";function n(t){t.preventDefault()}var o={watch:{isVisible:function(t){t?document.body.addEventListener("touchmove",n,{passive:!1}):document.body.removeEventListener("touchmove",n,{passive:!1})}},beforeDestroy:function(){document.body.removeEventListener("touchmove",n,{passive:!1})}};e.a=o},112: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},114:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(147);e.default=n.a},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},125:function(t,e){},126:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-popup",class:t.typeClass,style:{pointerEvents:t.pointerEvent,zIndex:t.zIndex}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.mask,expression:"mask"}],staticClass:"act-popup-mask act-row act-middle",style:{backgroundColor:t.maskBgColor},on:{click:t.maskClick}},[t._t("mask")],2),t._v(" "),i("div",{staticClass:"act-popup-container",class:{"act-popup-center":t.center}},[t.$slots.default?i("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius}},[t._t("default")],2):i("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius},domProps:{innerHTML:t._s(t.content)}})])])},o=[];n._withStripped=!0},13:function(t,e,i){var n=i(1),o=i(0),r=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?o:o[e]||(o[e]={}),_=v.prototype,x=d?n:f?n[e]:(n[e]||{}).prototype;d&&(i=e);for(h in i)(u=!p&&x&&void 0!==x[h])&&s(v,h)||(c=u?x[h]:i[h],v[h]=d&&"function"!=typeof x[h]?i[h]:y&&u?r(c,n):m&&x[h]==c?function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(c):g&&"function"==typeof c?r(Function.call,c):c,g&&((v.virtual||(v.virtual={}))[h]=c,t&l.R&&_&&!_[h]&&a(_,h,c)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},132:function(t,e,i){t.exports={default:i(170),__esModule:!0}},14:function(t,e,i){var n=i(50),o=i(33);t.exports=Object.keys||function(t){return n(t,o)}},146:function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n=i(4),o=function(){var t=!0;if(n.F.isIOS){var e=Object(n.k)(navigator.userAgent.toLowerCase());if(!e)return t;Number(""+e.major+e.minor)>=133&&(t=!1)}return t}()},147:function(t,e,i){"use strict";function n(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function o(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];for(var o=0;o<i.length;o++){var r=i[o];for(var a in r)t[a]=r[a]}return t}function r(t){return void 0===t||null===t}function a(t,e){return Math.sqrt(t*t+e*e)}function s(t){return!1!==N&&("standard"===N?"transitionEnd"===t?"transitionend":t:N+t.charAt(0).toUpperCase()+t.substr(1))}function l(t,e,i,n){t.addEventListener(e,i,{passive:!1,capture:!!n})}function h(t,e,i,n){t.removeEventListener(e,i,{passive:!1,capture:!!n})}function u(t){for(var e=0,i=0;t;)e-=t.offsetLeft,i-=t.offsetTop,t=t.offsetParent;return{left:e,top:i}}function c(t){var e=t.getBoundingClientRect();return{left:-(e.left+window.pageXOffset),top:-(e.top+window.pageYOffset)}}function p(t){if(t instanceof window.SVGElement){var e=t.getBoundingClientRect();return{top:e.top,left:e.left,width:e.width,height:e.height}}return{top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}function d(t,e){for(var i in e)if(e[i].test(t[i]))return!0;return!1}function f(t,e){var i=document.createEvent("Event");i.initEvent(e,!0,!0),i.pageX=t.pageX,i.pageY=t.pageY,t.target.dispatchEvent(i)}function g(t){function e(){a=document.createEvent("Event"),a.initEvent(i,s,l),o(a,r)}var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"click",n=void 0;"mouseup"===t.type||"mousecancel"===t.type?n=t:"touchend"!==t.type&&"touchcancel"!==t.type||(n=t.changedTouches[0]);var r={};n&&(r.screenX=n.screenX||0,r.screenY=n.screenY||0,r.clientX=n.clientX||0,r.clientY=n.clientY||0);var a=void 0,s=!0,l=!0;if("undefined"!=typeof MouseEvent)try{a=new MouseEvent(i,o({bubbles:s,cancelable:l},r))}catch(t){e()}else e();a.forwardedTouchEvent=!0,a._constructed=!0,t.target.dispatchEvent(a)}function y(t){g(t,"dblclick")}function m(t,e){e.firstChild?v(t,e.firstChild):e.appendChild(t)}function v(t,e){e.parentNode.insertBefore(t,e)}function _(t,e){t.removeChild(e)}function x(t,e,i,n,o,r,a){var s=t-e,l=Math.abs(s)/i,h=a.deceleration,u=a.itemHeight,c=a.swipeBounceTime,p=a.wheel,d=a.swipeTime,f=d,g=p?4:15,y=t+l/h*(s<0?-1:1);return p&&u&&(y=Math.round(y/u)*u),y<n?(y=r?Math.max(n-r/4,n-r/g*l):n,f=c):y>o&&(y=r?Math.min(o+r/4,o+r/g*l):o,f=c),{destination:Math.round(y),duration:f}}function w(){}function b(t){console.error("[BScroll warn]: "+t)}function S(t,e){if(!t)throw new Error("[BScroll] "+e)}function T(t){var e=document.createElement("div"),i=document.createElement("div");return e.style.cssText="position:absolute;z-index:9999;pointerEvents:none",i.style.cssText="box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;",i.className="bscroll-indicator","horizontal"===t?(e.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",i.style.height="100%",e.className="bscroll-horizontal-scrollbar"):(e.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",i.style.width="100%",e.className="bscroll-vertical-scrollbar"),e.style.cssText+=";overflow:hidden",e.appendChild(i),e}function 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,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){o=!0,r=t}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),D=function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)},P="undefined"!=typeof window,O=P&&navigator.userAgent.toLowerCase(),L=O&&/wechatdevtools/.test(O),E=O&&O.indexOf("android")>0,R=P&&document.createElement("div").style,N=function(){if(!P)return!1;var t={webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform",standard:"transform"};for(var e in t)if(void 0!==R[t[e]])return e;return!1}(),B=s("transform"),z=P&&s("perspective")in R,F=P&&("ontouchstart"in window||L),V=!1!==B,Y=P&&s("transition")in R,H={transform:B,transitionTimingFunction:s("transitionTimingFunction"),transitionDuration:s("transitionDuration"),transitionDelay:s("transitionDelay"),transformOrigin:s("transformOrigin"),transitionEnd:s("transitionEnd")},W=1,X={touchstart:W,touchmove:W,touchend:W,mousedown:2,mousemove:2,mouseup:2},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 o=Math.max(this.indicatorWidth+3*n,8);this.indicatorStyle.width=o+"px",n=0}else if(n>this.maxPosX){this.transitionTime(500);var r=Math.max(this.indicatorWidth-3*(n-this.maxPosX),8);this.indicatorStyle.width=r+"px",n=this.maxPosX+this.indicatorWidth-r}else this.indicatorStyle.width=this.indicatorWidth+"px";this.x=n,this.scroller.options.useTransform?this.indicatorStyle[H.transform]="translateX("+n+"px)"+this.scroller.translateZ:this.indicatorStyle.left=n+"px"}},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 o=this.x+i,r=this.y+n;this._pos(o,r)},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,o=void 0===n?G.bounce:n,r=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),a=i||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-r.x),1e3),Math.min(Math.abs(this.scroller.y-r.y),1e3)),300);this.scroller.x===r.x&&this.scroller.y===r.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=r,this.scroller.scrollTo(r.x,r.y,a,o))}this.moved&&this.scroller.trigger("scrollEnd",{x:this.scroller.x,y:this.scroller.y})}},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,o=i.index;e<0?(n-=30,o+=10):(n-=10,o+=30),this.fill(n,o),this.maybeRequestContent()},I.prototype.onResize=function(){var t=this.options.createTombstone();t.style.position="absolute",this.scrollerEl.appendChild(t),t.style.display="",this.tombstoneHeight=t.offsetHeight,this.tombstoneWidth=t.offsetWidth,this.scrollerEl.removeChild(t);for(var e=0;e<this.items.length;e++)this.items[e].height=this.items[e].width=0;this.onScroll()},I.prototype.fill=function(t,e){this.firstAttachedItem=Math.max(0,t),this.hasMore||(e=Math.min(e,this.items.length)),this.lastAttachedItem=e,this.attachContent()},I.prototype.maybeRequestContent=function(){var t=this;if(!this.requestInProgress&&this.hasMore){var e=this.lastAttachedItem-this.loadedItems;e<=0||(this.requestInProgress=!0,this.options.fetch(e).then(function(e){if(t.requestInProgress=!1,e)t.addContent(e);else{t.hasMore=!1;var i=t._removeTombstones(),n=0;t.anchorItem.index<=t.items.length?(n=t._fixScrollPosition(),t._setupAnimations({},n),t.scroller.resetPosition(t.scroller.options.bounceTime)):(t.anchorItem.index-=i,n=t._fixScrollPosition(),t._setupAnimations({},n),t.scroller.stop(),t.scroller.resetPosition(),t.onScroll())}}))}},I.prototype.addContent=function(t){for(var e=0;e<t.length;e++)this.items.length<=this.loadedItems&&this._addItem(),this.items[this.loadedItems++].data=t[e];this.attachContent(),this.maybeRequestContent()},I.prototype.attachContent=function(){var t=this._collectUnusedNodes(),e=this._createDOMNodes(t);this._cleanupUnusedNodes(t),this._cacheNodeSize();var i=this._fixScrollPosition();this._setupAnimations(e,i)},I.prototype.resetMore=function(){this.hasMore=!0},I.prototype._removeTombstones=function(){for(var t=void 0,e=0,i=this.items.length,n=0;n<i;n++){var o=this.items[n].node,r=this.items[n].data;o&&!M(o)||r||(t||(t=n),o&&this.scrollerEl.removeChild(o))}return e=i-t,this.items.splice(t),this.lastAttachedItem=Math.min(this.lastAttachedItem,this.items.length),e},I.prototype._collectUnusedNodes=function(){for(var t=[],e=0;e<this.items.length;e++)if(e!==this.firstAttachedItem){var i=this.items[e].node;i&&(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,o=this.items[i].data;if(n){if(!M(n)||!o)continue;n.style.zIndex=1,e[i]=[n,this.items[i].top-this.anchorScrollTop],this.items[i].node=null}var r=o?this.options.render(o,t.pop()):this._getTombStone();r.style.position="absolute",this.items[i].top=-1,this.scrollerEl.appendChild(r),this.items[i].node=r}return e},I.prototype._cleanupUnusedNodes=function(t){for(;t.length;)this.scrollerEl.removeChild(t.pop())},I.prototype._cacheNodeSize=function(){for(var t=this.firstAttachedItem;t<this.lastAttachedItem;t++)this.items[t].data&&!this.items[t].height&&(this.items[t].height=this.items[t].node.offsetHeight,this.items[t].width=this.items[t].node.offsetWidth)},I.prototype._fixScrollPosition=function(){this.anchorScrollTop=0;for(var t=0;t<this.anchorItem.index;t++)this.anchorScrollTop+=this.items[t].height||this.tombstoneHeight;this.anchorScrollTop+=this.anchorItem.offset;for(var e=this.anchorScrollTop-this.anchorItem.offset,i=this.anchorItem.index;i>this.firstAttachedItem;)e-=this.items[i-1].height||this.tombstoneHeight,i--;return e},I.prototype._setupAnimations=function(t,e){var i=this;for(var n in t){var o=t[n];this.items[n].node.style.transform="translateY("+(this.anchorScrollTop+o[1])+"px) scale("+this.tombstoneWidth/this.items[n].width+", "+this.tombstoneHeight/this.items[n].height+")",this.items[n].node.offsetTop,o[0].offsetTop,this.items[n].node.style.transition="transform 200ms"}for(var r=this.firstAttachedItem;r<this.lastAttachedItem;r++){var a=t[r];if(a){var s=a[0];s.style.transition="transform 200ms, opacity 200ms",s.style.transform="translateY("+e+"px) scale("+this.items[r].width/this.tombstoneWidth+", "+this.items[r].height/this.tombstoneHeight+")",s.style.opacity=0}e!==this.items[r].top&&(a||(this.items[r].node.style.transition=""),this.items[r].node.style.transform="translateY("+e+"px)"),this.items[r].top=e,e+=this.items[r].height||this.tombstoneHeight}this.scroller.maxScrollY=-(e-this.wrapperEl.offsetHeight+(this.hasMore?et:0)),setTimeout(function(){for(var e in t){var n=t[e];n[0].style.display="none",i.tombstones.push(n[0])}},200)},I.prototype._getTombStone=function(){var t=this.tombstones.pop();return t?(t.style.display="",t.style.opacity=1,t.style.transform="",t.style.transition="",t):this.options.createTombstone()},I.prototype._addItem=function(){this.items.push({data:null,node:null,height:0,width:0,top:0})},I.prototype._calculateAnchoredItem=function(t,e){if(0===e)return t;var i=t.index,n=0;if((e+=t.offset)<0){for(;e<0&&i>0&&this.items[i-1].height;)e+=this.items[i-1].height,i--;n=Math.max(-i,Math.ceil(Math.min(e,0)/this.tombstoneHeight))}else{for(;e>0&&i<this.items.length&&this.items[i].height&&this.items[i].height<e;)e-=this.items[i].height,i++;(i>=this.items.length||!this.items[i].height)&&(n=Math.floor(Math.max(e,0)/this.tombstoneHeight))}return i+=n,e-=n*this.tombstoneHeight,{index:i,offset:e}},function(t){t.prototype._init=function(t,e){this._handleOptions(e),this._events={},this.x=0,this.y=0,this.directionX=0,this.directionY=0,this.setScale(1),this._addDOMEvents(),this._initExtFeatures(),this._watchTransition(),this.options.observeDOM&&this._initDOMObserver(),this.options.autoBlur&&this._handleAutoBlur(),this.refresh(),this.options.snap||this.scrollTo(this.options.startX,this.options.startY),this.enable()},t.prototype.setScale=function(t){this.lastScale=r(this.scale)?t:this.scale,this.scale=t},t.prototype._handleOptions=function(t){this.options=o({},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],o=e&&!t.pulling?"none":"auto",r=0;r<n.length;r++)n[r].style.pointerEvents=o}})}},t.prototype._handleAutoBlur=function(){this.on("scrollStart",function(){var t=document.activeElement;!t||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName||t.blur()})},t.prototype._initDOMObserver=function(){var t=this;if("undefined"!=typeof MutationObserver){var e=void 0,i=new MutationObserver(function(i){if(!t._shouldNotRefresh()){for(var n=!1,o=!1,r=0;r<i.length;r++){var a=i[r];if("attributes"!==a.type){n=!0;break}if(a.target!==t.scroller){o=!0;break}}n?t.refresh():o&&(clearTimeout(e),e=setTimeout(function(){t._shouldNotRefresh()||t.refresh()},60))}}),n={attributes:!0,childList:!0,subtree:!0};i.observe(this.scroller,n),this.on("destroy",function(){i.disconnect()})}else this._checkDOMUpdate()},t.prototype._shouldNotRefresh=function(){var t=this.x>this.minScrollX||this.x<this.maxScrollX||this.y>this.minScrollY||this.y<this.maxScrollY;return this.isInTransition||this.stopFromTransition||t},t.prototype._checkDOMUpdate=function(){function t(){if(!this.destroyed){i=p(this.scroller);var t=i.width,r=i.height;n===t&&o===r||this.refresh(),n=t,o=r,e.call(this)}}function e(){var e=this;setTimeout(function(){t.call(e)},1e3)}var i=p(this.scroller),n=i.width,o=i.height;e.call(this)},t.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t),this.options.zoom&&t.touches&&t.touches.length>1&&this._zoomStart(t);break;case"touchmove":case"mousemove":this.options.zoom&&t.touches&&t.touches.length>1?this._zoom(t):this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this.scaled?this._zoomEnd(t):this._end(t);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(t);break;case"click":this.enabled&&!t._constructed&&(d(t.target,this.options.preventDefaultException)||(t.preventDefault(),t.stopPropagation()));break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._onMouseWheel(t)}},t.prototype.refresh=function(){var t="static"===window.getComputedStyle(this.wrapper,null).position,e=p(this.wrapper);this.wrapperWidth=e.width,this.wrapperHeight=e.height;var i=p(this.scroller);this.scrollerWidth=Math.round(i.width*this.scale),this.scrollerHeight=Math.round(i.height*this.scale),this.relativeX=i.left,this.relativeY=i.top,t&&(this.relativeX-=e.left,this.relativeY-=e.top),this.minScrollX=0,this.minScrollY=0;var n=this.options.wheel;n?(this.items=this.scroller.children,this.options.itemHeight=this.itemHeight=this.items.length?this.scrollerHeight/this.items.length:0,void 0===this.selectedIndex&&(this.selectedIndex=n.selectedIndex||0),this.options.startY=-this.selectedIndex*this.itemHeight,this.maxScrollX=0,this.maxScrollY=-this.itemHeight*(this.items.length-1)):(this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.options.infinity||(this.maxScrollY=this.wrapperHeight-this.scrollerHeight),this.maxScrollX<0?(this.maxScrollX-=this.relativeX,this.minScrollX=-this.relativeX):this.scale>1&&(this.maxScrollX=this.maxScrollX/2-this.relativeX,this.minScrollX=this.maxScrollX),this.maxScrollY<0?(this.maxScrollY-=this.relativeY,this.minScrollY=-this.relativeY):this.scale>1&&(this.maxScrollY=this.maxScrollY/2-this.relativeY,this.minScrollY=this.maxScrollY)),this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<this.minScrollX,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<this.minScrollY,this.hasHorizontalScroll||(this.maxScrollX=this.minScrollX,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=this.minScrollY,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,this.wrapperOffset=u(this.wrapper),this.trigger("refresh"),!this.scaled&&this.resetPosition()},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1}}(k),function(t){t.prototype._start=function(t){var e=X[t.type];if((e===W||0===t.button)&&!(!this.enabled||this.destroyed||this.initiated&&this.initiated!==e)){this.initiated=e,this.options.preventDefault&&!d(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.movingDirectionX=0,this.movingDirectionY=0,this.directionLocked=0,this._transitionTime(),this.startTime=n(),this.options.wheel&&(this.target=t.target),this.stop();var i=t.touches?t.touches[0]:t;this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=i.pageX,this.pointY=i.pageY,this.trigger("beforeScrollStart")}},t.prototype._move=function(t){if(this.enabled&&!this.destroyed&&X[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var e=t.touches?t.touches[0]:t,i=e.pageX-this.pointX,o=e.pageY-this.pointY;this.pointX=e.pageX,this.pointY=e.pageY,this.distX+=i,this.distY+=o;var r=Math.abs(this.distX),a=Math.abs(this.distY),s=n();if(!(s-this.endTime>this.options.momentumLimitTime&&a<this.options.momentumLimitDistance&&r<this.options.momentumLimitDistance)){if(this.directionLocked||this.options.freeScroll||(r>a+this.options.directionLockThreshold?this.directionLocked="h":a>=r+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"===this.directionLocked){if("vertical"===this.options.eventPassthrough)t.preventDefault();else if("horizontal"===this.options.eventPassthrough)return void(this.initiated=!1);o=0}else if("v"===this.directionLocked){if("horizontal"===this.options.eventPassthrough)t.preventDefault();else if("vertical"===this.options.eventPassthrough)return void(this.initiated=!1);i=0}i=this.hasHorizontalScroll?i:0,o=this.hasVerticalScroll?o:0,this.movingDirectionX=i>0?$:i<0?Q:0,this.movingDirectionY=o>0?K:o<0?Z:0;var l=this.x+i,h=this.y+o,u=!1,c=!1,p=!1,d=!1,f=this.options.bounce;!1!==f&&(u=void 0===f.top||f.top,c=void 0===f.bottom||f.bottom,p=void 0===f.left||f.left,d=void 0===f.right||f.right),(l>this.minScrollX||l<this.maxScrollX)&&(l=l>this.minScrollX&&p||l<this.maxScrollX&&d?this.x+i/3:l>this.minScrollX?this.minScrollX:this.maxScrollX),(h>this.minScrollY||h<this.maxScrollY)&&(h=h>this.minScrollY&&u||h<this.maxScrollY&&c?this.y+o/3:h>this.minScrollY?this.minScrollY:this.maxScrollY),this.moved||(this.moved=!0,this.trigger("scrollStart")),this._translate(l,h),s-this.startTime>this.options.momentumLimitTime&&(this.startTime=s,this.startX=this.x,this.startY=this.y,this.options.probeType===J&&this.trigger("scroll",{x:this.x,y:this.y})),this.options.probeType>J&&this.trigger("scroll",{x:this.x,y:this.y});var g=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,y=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,m=this.pointX-g,v=this.pointY-y;(m>document.documentElement.clientWidth-this.options.momentumLimitDistance||m<this.options.momentumLimitDistance||v<this.options.momentumLimitDistance||v>document.documentElement.clientHeight-this.options.momentumLimitDistance)&&this._end(t)}}},t.prototype._end=function(t){if(this.enabled&&!this.destroyed&&X[t.type]===this.initiated){this.initiated=!1,this.options.preventDefault&&!d(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.trigger("touchEnd",{x:this.x,y:this.y}),this.isInTransition=!1;var e=Math.round(this.x),i=Math.round(this.y),o=e-this.absStartX,r=i-this.absStartY;if(this.directionX=o>0?$:o<0?Q:0,this.directionY=r>0?K:r<0?Z:0,!this.options.pullDownRefresh||!this._checkPullDown()){if(this._checkClick(t))return void this.trigger("scrollCancel");if(!this.resetPosition(this.options.bounceTime,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)),o=Math.round((this.pointY+c(this.wrapper).top-this.wrapperHeight/2)/this.itemHeight);this.target=this.items[i+o]}return this.scrollToElement(this.target,this.options.wheel.adjustTime||400,!0,!0,G.swipe),!0}if(!e){var r=this.options.dblclick,a=!1;if(r&&this.lastClickTime){var s=r.delay,l=void 0===s?300:s;n()-this.lastClickTime<l&&(a=!0,y(t))}return this.options.tap&&f(t,this.options.tap),this.options.click&&!d(t.target,this.options.preventDefaultException)&&g(t),this.lastClickTime=a?null:n(),!0}return!1}return!1},t.prototype._resize=function(){var t=this;this.enabled&&(E&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){t.refresh()},this.options.resizePolling))},t.prototype._startProbe=function(){function t(){var i=e.getComputedPosition();if(e.trigger("scroll",i),!e.isInTransition)return void e.trigger("scrollEnd",i);e.probeTimer=j(t)}q(this.probeTimer),this.probeTimer=j(t);var e=this},t.prototype._transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.scrollerStyle[H.transitionDuration]=t+"ms",this.options.wheel)for(var e=0;e<this.items.length;e++)this.items[e].style[H.transitionDuration]=t+"ms";if(this.indicators)for(var i=0;i<this.indicators.length;i++)this.indicators[i].transitionTime(t)},t.prototype._transitionTimingFunction=function(t){if(this.scrollerStyle[H.transitionTimingFunction]=t,this.options.wheel)for(var e=0;e<this.items.length;e++)this.items[e].style[H.transitionTimingFunction]=t;if(this.indicators)for(var i=0;i<this.indicators.length;i++)this.indicators[i].transitionTimingFunction(t)},t.prototype._transitionEnd=function(t){t.target===this.scroller&&this.isInTransition&&(this._transitionTime(),(!this.pulling||this.movingDirectionY===Z)&&!this.resetPosition(this.options.bounceTime,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(!r(t)&&!r(e),"Translate x or y is null or undefined."),r(i)&&(i=this.scale),this.options.useTransform?this.scrollerStyle[H.transform]="translate("+t+"px,"+e+"px) scale("+i+")"+this.translateZ:(t=Math.round(t),e=Math.round(e),this.scrollerStyle.left=t+"px",this.scrollerStyle.top=e+"px"),this.options.wheel)for(var n=this.options.wheel.rotate,o=void 0===n?25:n,a=0;a<this.items.length;a++){var s=o*(e/this.itemHeight+a);this.items[a].style[H.transform]="rotateX("+s+"deg)"}if(this.x=t,this.y=e,this.setScale(i),this.indicators)for(var l=0;l<this.indicators.length;l++)this.indicators[l].updatePosition()},t.prototype._animate=function(t,e,i,o){function r(){var d=n();if(d>=p)return a.isAnimating=!1,a._translate(t,e,u),a.trigger("scroll",{x:a.x,y:a.y}),void(a.pulling||a.resetPosition(a.options.bounceTime)||a.trigger("scrollEnd",{x:a.x,y:a.y}));d=(d-c)/i;var f=o(d),g=(t-s)*f+s,y=(e-l)*f+l,m=(u-h)*f+h;a._translate(g,y,m),a.isAnimating&&(a.animateTimer=j(r)),a.options.probeType===tt&&a.trigger("scroll",{x:a.x,y:a.y})}var a=this,s=this.x,l=this.y,h=this.lastScale,u=this.scale,c=n(),p=c+i;this.isAnimating=!0,q(this.animateTimer),r()},t.prototype.scrollBy=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]: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,o){if(t&&(t=t.nodeType?t:this.scroller.querySelector(t),!this.options.wheel||t.classList.contains(this.options.wheel.wheelItemClass))){var r=u(t);r.left-=this.wrapperOffset.left,r.top-=this.wrapperOffset.top,!0===i&&(i=Math.round(t.offsetWidth/2-this.wrapper.offsetWidth/2)),!0===n&&(n=Math.round(t.offsetHeight/2-this.wrapper.offsetHeight/2)),r.left-=i||0,r.top-=n||0,r.left=r.left>this.minScrollX?this.minScrollX:r.left<this.maxScrollX?this.maxScrollX:r.left,r.top=r.top>this.minScrollY?this.minScrollY:r.top<this.maxScrollY?this.maxScrollY:r.top,this.options.wheel&&(r.top=Math.round(r.top/this.itemHeight)*this.itemHeight),this.scrollTo(r.left,r.top,e,o)}},t.prototype.resetPosition=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G.bounce,i=this.x,n=Math.round(i);!this.hasHorizontalScroll||n>this.minScrollX?i=this.minScrollX:n<this.maxScrollX&&(i=this.maxScrollX);var o=this.y,r=Math.round(o);return!this.hasVerticalScroll||r>this.minScrollY?o=this.minScrollY:r<this.maxScrollY&&(o=this.maxScrollY),(i!==this.x||o!==this.y)&&(this.scrollTo(i,o,t,e),!0)},t.prototype.getComputedPosition=function(){var t=window.getComputedStyle(this.scroller,null),e=void 0,i=void 0;return this.options.useTransform?(t=t[H.transform].split(")")[0].split(", "),e=+(t[12]||t[4]),i=+(t[13]||t[5])):(e=+t.left.replace(/[^-\d.]/g,""),i=+t.top.replace(/[^-\d.]/g,"")),{x:e,y:i}},t.prototype.stop=function(){if(this.options.useTransition&&this.isInTransition){this.isInTransition=!1,q(this.probeTimer);var t=this.getComputedPosition();this._translate(t.x,t.y),this.options.wheel?this.target=this.items[Math.round(-t.y/this.itemHeight)]:this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0}else!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,q(this.animateTimer),this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0)},t.prototype.destroy=function(){this.destroyed=!0,this.trigger("destroy"),q(this.options.useTransition?this.probeTimer:this.animateTimer),this._removeDOMEvents(),this._events={}}}(k),function(t){t.prototype.on=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;this._events[t]||(this._events[t]=[]),this._events[t].push([e,i])},t.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(n,arguments)}var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;i.fn=e,this.on(t,i)},t.prototype.off=function(t,e){var i=this._events[t];if(i)for(var n=i.length;n--;)(i[n][0]===e||i[n][0]&&i[n][0].fn===e)&&(i[n][0]=void 0)},t.prototype.trigger=function(t){var e=this._events[t];if(e)for(var i=e.length,n=[].concat(D(e)),o=0;o<i;o++){var r=n[o],a=A(r,2),s=a[0],l=a[1];s&&s.apply(l,[].slice.call(arguments,1))}}}(k),function(t){t.prototype._initSnap=function(){var t=this;this.currentPage={};var e=this.options.snap;if(e.loop){var i=this.scroller.children;i.length>1?(m(i[i.length-1].cloneNode(!0),this.scroller),this.scroller.appendChild(i[1].cloneNode(!0))):e.loop=!1}var n=e.el;"string"==typeof n&&(n=this.scroller.querySelectorAll(n)),this.on("refresh",function(){if(t.pages=[],t.wrapperWidth&&t.wrapperHeight&&t.scrollerWidth&&t.scrollerHeight){var i=e.stepX||t.wrapperWidth,o=e.stepY||t.wrapperHeight,r=0,a=void 0,s=void 0,l=void 0,h=0,u=void 0,c=0,d=void 0,f=void 0;if(n)for(u=n.length,d=-1;h<u;h++)f=p(n[h]),(0===h||f.left<=p(n[h-1]).left)&&(c=0,d++),t.pages[c]||(t.pages[c]=[]),r=Math.max(-f.left,t.maxScrollX),a=Math.max(-f.top,t.maxScrollY),s=r-Math.round(f.width/2),l=a-Math.round(f.height/2),t.pages[c][d]={x:r,y:a,width:f.width,height:f.height,cx:s,cy:l},r>t.maxScrollX&&c++;else for(s=Math.round(i/2),l=Math.round(o/2);r>-t.scrollerWidth;){for(t.pages[h]=[],u=0,a=0;a>-t.scrollerHeight;)t.pages[h][u]={x:Math.max(r,t.maxScrollX),y:Math.max(a,t.maxScrollY),width:i,height:o,cx:r-s,cy:a-l},a-=o,u++;r-=i,h++}t._checkSnapLoop();var g=e._loopX?1:0,y=e._loopY?1:0;t._goToPage(t.currentPage.pageX||g,t.currentPage.pageY||y,0);var m=e.threshold;m%1==0?(t.snapThresholdX=m,t.snapThresholdY=m):(t.snapThresholdX=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].width*m),t.snapThresholdY=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].height*m))}}),this.on("scrollEnd",function(){e.loop&&(e._loopX?(0===t.currentPage.pageX&&t._goToPage(t.pages.length-2,t.currentPage.pageY,0),t.currentPage.pageX===t.pages.length-1&&t._goToPage(1,t.currentPage.pageY,0)):(0===t.currentPage.pageY&&t._goToPage(t.currentPage.pageX,t.pages[0].length-2,0),t.currentPage.pageY===t.pages[0].length-1&&t._goToPage(t.currentPage.pageX,1,0)))}),!1!==e.listenFlick&&this.on("flick",function(){var i=e.speed||Math.max(Math.max(Math.min(Math.abs(t.x-t.startX),1e3),Math.min(Math.abs(t.y-t.startY),1e3)),300);t._goToPage(t.currentPage.pageX+t.directionX,t.currentPage.pageY+t.directionY,i)}),this.on("destroy",function(){if(e.loop){var i=t.scroller.children;i.length>2&&(_(t.scroller,i[i.length-1]),_(t.scroller,i[0]))}})},t.prototype._checkSnapLoop=function(){var t=this.options.snap;t.loop&&this.pages&&this.pages.length&&(this.pages.length>1&&(t._loopX=!0),this.pages[0]&&this.pages[0].length>1&&(t._loopY=!0),t._loopX&&t._loopY&&b("Loop does not support two direction at the same time."))},t.prototype._nearestSnap=function(t,e){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var i=0;if(Math.abs(t-this.absStartX)<=this.snapThresholdX&&Math.abs(e-this.absStartY)<=this.snapThresholdY)return this.currentPage;t>this.minScrollX?t=this.minScrollX:t<this.maxScrollX&&(t=this.maxScrollX),e>this.minScrollY?e=this.minScrollY:e<this.maxScrollY&&(e=this.maxScrollY);for(var n=this.pages.length;i<n;i++)if(t>=this.pages[i][0].cx){t=this.pages[i][0].x;break}n=this.pages[i].length;for(var o=0;o<n;o++)if(e>=this.pages[0][o].cy){e=this.pages[0][o].y;break}return i===this.currentPage.pageX&&(i+=this.directionX,i<0?i=0:i>=this.pages.length&&(i=this.pages.length-1),t=this.pages[i][0].x),o===this.currentPage.pageY&&(o+=this.directionY,o<0?o=0:o>=this.pages[0].length&&(o=this.pages[0].length-1),e=this.pages[0][o].y),{x:t,y:e,pageX:i,pageY:o}},t.prototype._goToPage=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments[2],n=arguments[3],o=this.options.snap;if(o&&this.pages&&this.pages.length&&(n=n||o.easing||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 r=this.pages[t][e].x,a=this.pages[t][e].y;i=void 0===i?o.speed||Math.max(Math.max(Math.min(Math.abs(r-this.x),1e3),Math.min(Math.abs(a-this.y),1e3)),300):i,this.currentPage={x:r,y:a,pageX:t,pageY:e},this.scrollTo(r,a,i,n)}},t.prototype.goToPage=function(t,e,i,n){var o=this.options.snap;if(o&&this.pages&&this.pages.length){if(o.loop){var r=void 0;o._loopX?(r=this.pages.length-2,t>=r?t=r-1:t<0&&(t=0),t+=1):(r=this.pages[0].length-2,e>=r?e=r-1:e<0&&(e=0),e+=1)}this._goToPage(t,e,i,n)}},t.prototype.next=function(t,e){if(this.options.snap){var i=this.currentPage.pageX,n=this.currentPage.pageY;i++,i>=this.pages.length&&this.hasVerticalScroll&&(i=0,n++),this._goToPage(i,n,t,e)}},t.prototype.prev=function(t,e){if(this.options.snap){var i=this.currentPage.pageX,n=this.currentPage.pageY;i--,i<0&&this.hasVerticalScroll&&(i=0,n--),this._goToPage(i,n,t,e)}},t.prototype.getCurrentPage=function(){var t=this.options.snap;return t?t.loop?t._loopX?o({},this.currentPage,{pageX:this.currentPage.pageX-1}):o({},this.currentPage,{pageY:this.currentPage.pageY-1}):this.currentPage:null}}(k),function(t){t.prototype.wheelTo=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.options.wheel&&(this.y=-t*this.itemHeight,this.scrollTo(0,this.y))},t.prototype.getSelectedIndex=function(){return this.options.wheel&&this.selectedIndex},t.prototype._initWheel=function(){var t=this.options.wheel;t.wheelWrapperClass||(t.wheelWrapperClass="wheel-scroll"),t.wheelItemClass||(t.wheelItemClass="wheel-item"),void 0===t.selectedIndex&&(t.selectedIndex=0,b("wheel option selectedIndex is required!"))}}(k),function(t){t.prototype._initScrollbar=function(){var t=this,e=this.options.scrollbar,i=e.fade,n=void 0===i||i,o=e.interactive,r=void 0!==o&&o;this.indicators=[];var a=void 0;this.options.scrollX&&(a={el:T("horizontal"),direction:"horizontal",fade:n,interactive:r},this._insertScrollBar(a.el),this.indicators.push(new C(this,a))),this.options.scrollY&&(a={el:T("vertical"),direction:"vertical",fade:n,interactive:r},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,o=void 0===n?40:n;return!(this.directionY!==K||this.y<i)&&(this.pulling||(this.pulling=!0,this.trigger("pullingDown")),this.scrollTo(this.x,o,this.options.bounceTime,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,o=void 0===n?20:n,r=i.invert,a=void 0!==r&&r,s=i.easeTime,l=void 0===s?300:s;clearTimeout(this.mouseWheelTimer),this.mouseWheelTimer=setTimeout(function(){e.options.snap||l||e.trigger("scrollEnd",{x:e.x,y:e.y}),e.firstWheelOpreation=!0},400);var h=void 0,u=void 0;switch(!0){case"deltaX"in t:1===t.deltaMode?(h=-t.deltaX*o,u=-t.deltaY*o):(h=-t.deltaX,u=-t.deltaY);break;case"wheelDeltaX"in t:h=t.wheelDeltaX/120*o,u=t.wheelDeltaY/120*o;break;case"wheelDelta"in t:h=u=t.wheelDelta/120*o;break;case"detail"in t:h=u=-t.detail/3*o;break;default:return}var c=a?-1:1;h*=c,u*=c,this.hasVerticalScroll||(h=u,u=0);var p=void 0,d=void 0;if(this.options.snap)return p=this.currentPage.pageX,d=this.currentPage.pageY,h>0?p--:h<0&&p++,u>0?d--:u<0&&d++,void this._goToPage(p,d);p=this.x+Math.round(this.hasHorizontalScroll?h:0),d=this.y+Math.round(this.hasVerticalScroll?u:0),this.movingDirectionX=this.directionX=h>0?-1:h<0?1:0,this.movingDirectionY=this.directionY=u>0?-1:u<0?1:0,p>this.minScrollX?p=this.minScrollX:p<this.maxScrollX&&(p=this.maxScrollX),d>this.minScrollY?d=this.minScrollY:d<this.maxScrollY&&(d=this.maxScrollY);var f=this.y===d;this.scrollTo(p,d,l,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,o=void 0===n?1:n,r=t.max,a=void 0===r?4:r;this.scale=Math.min(Math.max(i,o),a),this.setScale(this.scale),this.scrollerStyle[H.transformOrigin]="0 0"},t.prototype._zoomTo=function(t,e,i,n){this.scaled=!0;var o=t/(n||this.scale);this.setScale(t),this.refresh();var r=Math.round(this.startX-(e-this.relativeX)*(o-1)),a=Math.round(this.startY-(i-this.relativeY)*(o-1));r>this.minScrollX?r=this.minScrollX:r<this.maxScrollX&&(r=this.maxScrollX),a>this.minScrollY?a=this.minScrollY:a<this.maxScrollY&&(a=this.maxScrollY),this.x===r&&this.y===a||this.scrollTo(r,a,this.options.bounceTime),this.scaled=!1},t.prototype.zoomTo=function(t,e,i){var n=c(this.wrapper),o=n.left,r=n.top,a=e+o-this.x,s=i+r-this.y;this._zoomTo(t,a,s)},t.prototype._zoomStart=function(t){var e=t.touches[0],i=t.touches[1],n=Math.abs(e.pageX-i.pageX),o=Math.abs(e.pageY-i.pageY);this.startDistance=a(n,o),this.startScale=this.scale;var r=c(this.wrapper),s=r.left,l=r.top;this.originX=Math.abs(e.pageX+i.pageX)/2+s-this.x,this.originY=Math.abs(e.pageY+i.pageY)/2+l-this.y,this.trigger("zoomStart")},t.prototype._zoom=function(t){if(this.enabled&&!this.destroyed&&X[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var e=t.touches[0],i=t.touches[1],n=Math.abs(e.pageX-i.pageX),o=Math.abs(e.pageY-i.pageY),r=a(n,o),s=r/this.startDistance*this.startScale;this.scaled=!0;var l=this.options.zoom,h=l.min,u=void 0===h?1:h,c=l.max,p=void 0===c?4:c;s<u?s=.5*u*Math.pow(2,s/u):s>p&&(s=2*p*Math.pow(.5,p/s));var d=s/this.startScale,f=this.startX-(this.originX-this.relativeX)*(d-1),g=this.startY-(this.originY-this.relativeY)*(d-1);this.setScale(s),this.scrollTo(f,g,0)}},t.prototype._zoomEnd=function(t){if(this.enabled&&!this.destroyed&&X[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.isInTransition=!1,this.isAnimating=!1,this.initiated=0;var e=this.options.zoom,i=e.min,n=void 0===i?1:i,o=e.max,r=void 0===o?4:o,a=this.scale>r?r:this.scale<n?n:this.scale;this._zoomTo(a,this.originX,this.originY,this.startScale),this.trigger("zoomEnd")}}}(k),function(t){t.prototype._initInfinite=function(){this.options.probeType=3,this.maxScrollY=-et,this.infiniteScroller=new I(this,this.options.infinity)}}(k),k.Version="1.12.6",e.a=k},1485:function(t,e,i){"use strict";var n=i(76),o=i.n(n),r=i(132),a=i.n(r),s=i(4),l=i(2008),h=i(2015),u=i(2022),c=i(942);e.a={name:"ActGoldFinanceChart",data:function(){return{costTableVisible:!1,isShowChart:!0,renderData:{},selectIndex:10,agePickerData:[]}},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}},computed:{realTheme:function(){var t={brandColor:window.g_agentShowCfg&&window.g_agentShowCfg.brandcolor||"#8c7fee",btnColor:window.g_agentShowCfg&&window.g_agentShowCfg.btncolor||"#8c7fee"};return this.brandColor&&(t.brandColor=this.brandColor,t.btnColor=this.brandColor),t},isCps:function(){return"#8c7fee"!==this.brandColor}},methods:{showAgePicker:function(t){var e=this;this.agePickerData=t.agePickerData,this.$nextTick(function(){e.$refs.goldPicker.show()})},setSelectIndex:function(t){this.selectIndex=t},showCostTable:function(){this.isOutSideTable?this.$emit("showOutSideTable"):this.costTableVisible=!0},validateData:function(){if(!(this.tables&&this.tables.colsType&&this.chartConfig&&Object(s.o)(this.chartConfig)))return!1;for(var t=0,e=0,i=0,n=0;n<this.chartConfig.length;n++){var o=this.chartConfig[n];if(!o.colsType)return!1;(this.tables.colsType.includes(o.colsType)||this.tables.colsType.includes(o.colsType+""))&&(1==~~o.showType&&(t+=1),2==~~o.showType&&(e+=1),3==~~o.showType&&(i+=1))}return 1===t&&e>=1&&1===i},findTablesIndex:function(t,e){if(Object(s.o)(e))for(var i=0;i<e.length;i++)if(Number(e[i])===Number(t))return i},analysisExpression:function(t){if(!/([1-9]+)([+*/-])([1-9]+)/g.test(t))return{};var e=void 0,i=void 0,n=void 0;return t.replace(/([1-9]+)([+*/-])([1-9]+)/g,function(t,o,r,a){e=o,i=a,n=r}),{firstParamColsType:e,secondParamColsType:i,operator:n}},getExpressionData:function(t,e,i){var n=this.analysisExpression(t),o=n.firstParamColsType,r=n.secondParamColsType,a=n.operator;if(void 0!==o&&void 0!==r&&["+","-","/","*"].includes(a)){var s=void 0,l=void 0,h=[];if(i.colsType.forEach(function(t,e){Number(t)===Number(o)&&(s=e),Number(t)===Number(r)&&(l=e)}),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){if(t&&e){for(var i=[],n=[],o=[],r=this.isCps?Object(s.c)(l.b):Object(s.c)(l.a),h=Object(s.c)(r.showType2),u=Object(s.c)(r.showType3),c=t,p=Array.isArray(c),d=0,c=p?c:a()(c);;){var f;if(p){if(d>=c.length)break;f=c[d++]}else{if(d=c.next(),d.done)break;f=d.value}var g=f,y=void 0,m=g.colsType,v=this.findTablesIndex(m,e.colsType);if(v){var _=Number(g.showType),x=g.name||l.c[m],w=g.titleName||g.name||l.c[m],b=this.getExpressionData(g.tipsExpression,t,e),S=g.lineStyle,T=g.boxConfig;if(!(2!==_||S&&T)){h.length||(h=Object(s.c)(r.showType2));var C=h.shift();S=C.lineStyle,T=C.boxConfig}if(3===_&&!S){u.length||(u=Object(s.c)(r.showType3));S=u.shift().lineStyle}o.push(x),y={showType:_,colsType:m,name:x,titleName:w,problemText:g.problemText,tableRowIndex:v,lineStyle:S,boxConfig:T,tipsText:g.tipsText},b&&(y.expressionData=b),i.push(y)}}var M=e.rows.map(function(t){for(var e=[],o=i,r=Array.isArray(o),s=0,o=r?o:a()(o);;){var l;if(r){if(s>=o.length)break;l=o[s++]}else{if(s=o.next(),s.done)break;l=s.value}var h=l;1===h.showType&&n.push(t[h.tableRowIndex]),e.push(t[h.tableRowIndex])}return e});return M.unshift(o),{chartConfig:i,dataSource:M,xAxisData:n}}}},watch:{tables:{handler:function(t){if(t&&o()(t).length&&this.chartConfig){this.validateData()?(this.renderData=this.initConfig(this.chartConfig,t),this.isShowChart=!0):this.isShowChart=!1}},immediate:!0}}}},1486:function(t,e,i){"use strict";var n=i(76),o=i.n(n),r=i(2017),a=i(4);e.a={name:"Benefit",data:function(){return{chartConfig:[],dataSource:[],xAxisData:[],dialog:null,agePicker:null,numFontSizeFixDebounceFunc:Object(a.a)(this.numFontSizeFix,500),preNumFontSize:"2.8rem"}},components:{chart:r.a},props:{selectIndex:{type:Number,default:10},renderData:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}},isCps:{type:Boolean,default:!1},unit:{default:"岁",type:String}},computed:{agePickerData:function(){for(var t=[],e=0;e<this.xAxisData.length;e++)t.push({text:this.xAxisData[e],value:this.xAxisData[e]});return t},showType2Length:function(){for(var t=0,e=0;e<this.chartConfig.length;e++)2==~~this.chartConfig[e].showType&&(t+=1);return t},pureDataSource:function(){return this.dataSource.slice(1)}},methods:{showCostTable:function(){this.$emit("showCostTable")},setSelectIndex:function(t){this.$emit("update:selectIndex",t)},showAgePicker:function(){this.$emit("showAgePicker",{agePickerData:this.agePickerData})},showProblemDialog:function(t){this.dialog?this.dialog.setData("",t):this.dialog=this.$createGoldDialog({content:t,showConfirmButton:!1,maskClosable:!0}),this.dialog.show()},numFontSizeFix:function(){for(var t=this.$refs.num?this.$refs.num.length:0,e=0;e<t;e++){var i=this.$refs.num[e],n=this.$refs.colorBlock[e];for(i.style.fontSize=this.preNumFontSize;;){if(!(parseInt(getComputedStyle(i).width)>parseInt(getComputedStyle(n).width)+30))break;var o=parseInt(getComputedStyle(i).fontSize);if(o<=12)break;i.style.fontSize=o-1+"px"}}}},watch:{renderData:{handler:function(t){if(t&&o()(t).length){var e=t.chartConfig,i=t.dataSource,n=t.xAxisData;this.chartConfig=e,this.dataSource=i,this.xAxisData=n,this.selectIndex>this.pureDataSource.length&&(this.selectIndex=10)}},immediate:!0},selectIndex:{handler:function(){this.numFontSizeFixDebounceFunc()}}}}},1487:function(t,e,i){"use strict";var n=i(76),o=i.n(n),r=i(132),a=i.n(r),s=i(4),l=i(2019);e.a={data:function(){return{chart:null}},props:{index:{type:Number,default:10},dataSource:{type:Array,default:function(){return[]}},chartConfig:{type:Array,default:function(){return[]}}},methods:{setIndex:function(t){this.$emit("setIndex",t)},remToPxBased10Px:function(t){var e=window.document.documentElement||document.getElementsByTagName("html")[0],i=parseFloat(getComputedStyle(e,null).fontSize);if(i>12)return t*i;var n=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,o=n/375*10;return n?t*o:10*t},getXAxisName:function(){for(var t=0;t<this.chartConfig.length;t++)if(1===this.chartConfig[t].showType)return this.chartConfig[t].name;return""},getTooltipName:function(){for(var t=0;t<this.chartConfig.length;t++)if(3===this.chartConfig[t].showType)return this.chartConfig[t].name;return""},setEcharts:function(){for(var t=[],e=[],i=this.getXAxisName(),n=this.getTooltipName(),o=0;o<this.chartConfig.length;o++){var r=this.chartConfig[o];if([2,3].includes(r.showType)){var h={};Object(s.o)(r.lineStyle.areaStyleColor)?h.color=new l.graphic.LinearGradient(0,0,0,1,r.lineStyle.areaStyleColor):Object(s.z)(r.lineStyle.areaStyleColor)&&(h.color=r.lineStyle.areaStyleColor),t.push({name:r.name,type:"line",smooth:!0,symbol:r.lineStyle.legendImg?"image://"+r.lineStyle.legendImg:"circle",showSymbol:!1,symbolSize:this.remToPxBased10Px(1.4),silent:!0,encode:{x:i,y:r.name},lineStyle:{width:1,color:r.lineStyle.lineColor},emphasis:{lineStyle:{color:r.lineStyle.lineColor}},zlevel:r.lineStyle.zIndex,z:r.lineStyle.zIndex,areaStyle:h.color?h:void 0}),e.push({name:r.name,icon:r.lineStyle.legendImg?"image://"+r.lineStyle.legendImg:"circle"})}}var u={dataset:{source:this.dataSource},grid:{containLabel:!1,borderColor:"red",top:"5%",right:"10%",left:"10%"},legend:{textStyle:{fontSize:this.remToPxBased10Px(1.2),opacity:1,fontWeight:400,fontFamily:"SourceHanSansSC, SourceHanSansSC-Regular",color:"#999",lineHeight:this.remToPxBased10Px(1.8)},selectedMode:!1,itemWidth:this.remToPxBased10Px(1.4),itemHeight:this.remToPxBased10Px(1.4),data:e,bottom:0},tooltip:{trigger:"axis",triggerOn:"none",backgroundColor:"rgba(255,255,255,0.8)",textStyle:{fontSize:this.remToPxBased10Px(1.2),fontFamily:"SourceHanSansSC, SourceHanSansSC-Regular",fontWeight:400,lineHeight:16,color:"#333"},extraCssText:"box-shadow: 0rem 0.2rem 1.4rem 0rem rgba(211,217,240,0.80);z-index: 2;",showContent:!0,padding:[7,10,6,10],position:function(t,e,i,n,o){return t[0]>o.viewSize[0]/2?{left:20,top:"30%"}:{right:20,top:"30%"}},axisPointer:{lineStyle:{type:"solid",color:"#EEE"},z:0},formatter:function(t){for(var e=t,i=Array.isArray(e),o=0,e=i?e:a()(e);;){var r;if(i){if(o>=e.length)break;r=e[o++]}else{if(o=e.next(),o.done)break;r=o.value}var s=r;if(s.seriesName===n){var l=s.encode.y[0],h=s.value[l];return n+"<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:t};this.chart.setOption(u),this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:this.index-1}),this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:this.index})}},mounted:function(){var t=this;this.chart=l.init(this.$refs.chart,null,{renderer:"svg"}),this.chart.getZr().on("mousemove",function(e){var i=[e.offsetX,e.offsetY],n=t.chart.convertFromPixel("grid",i);t.chart.containPixel("grid",i)&&t.index!==Math.round(n[0])&&t.setIndex(Math.round(n[0]))})},watch:{dataSource:{handler:function(t){var e=this;o()(t).length&&this.$nextTick(function(){e.setEcharts()})},immediate:!0},index:{handler:function(t){this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:t})}}}}},1488:function(t,e,i){"use strict";var n=i(114);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,{})})}}}}},15:function(t,e,i){"use strict";function n(t,e){return function(i,n){var a=this,s=Object(o.a)(i),l=Object(r.a)(e,t,s,n),h=l.$parent,u=l.remove,c=l.show,p=l.hide;return l.remove=function(){l.$removed=!0,u&&u.call(this),h.destroy()},l.show=function(){return c&&c.call.apply(c,[this].concat(Array.prototype.slice.call(arguments))),this},l.hide=function(){return p&&p.call.apply(p,[this].concat(Array.prototype.slice.call(arguments))),this},a&&a._isVue&&a.$once("hook:beforeDestroy",function(){l.$removed||l.remove()}),l}}e.a=n;var o=i(97),r=i(99)},16:function(t,e){t.exports=!0},170:function(t,e,i){i(54),i(52),t.exports=i(171)},171:function(t,e,i){var n=i(9),o=i(109);t.exports=i(0).getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},18:function(t,e){t.exports={}},2:function(t,e,i){"use strict";function n(t,e,i,n,o,r,a,s){t=t||{};var l=typeof t.default;"object"!==l&&"function"!==l||(t=t.default);var h="function"==typeof t?t.options:t;e&&(h.render=e,h.staticRenderFns=i,h._compiled=!0),n&&(h.functional=!0),r&&(h._scopeId=r);var u;if(a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},h._ssrRegister=u):o&&(u=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),u)if(h.functional){h._injectStyles=u;var c=h.render;h.render=function(t,e){return u.call(e),c(t,e)}}else{var p=h.beforeCreate;h.beforeCreate=p?[].concat(p,u):[u]}return{exports:t,options:h}}e.a=n},2006:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(15),o=i(2007);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createGoldFinanceChart=Object(n.a)(o.a,t)},e.default=o.a},2007:function(t,e,i){"use strict";var n=i(1485),o=i(2025),r=i(2),a=Object(r.a)(n.a,o.a,o.b,!1,null,null,null);a.options.__file="src\\components\\GoldFinanceChart\\src\\index.vue",e.a=a.exports},2008:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return r});var n={showType2:[{boxConfig:{iconColor:"#E13046",titleColor:"#E13046",blockColor:"rgba(255, 90, 110, 0.1)",tipsColor:"#ff5a63"},lineStyle:{lineColor:"#ff5a6e",legendImg:i(2009),zIndex:1}},{boxConfig:{iconColor:"#7363E7",titleColor:"#7363E7",blockColor:"rgba(115,99,231,0.1)",tipsColor:"#8c7FEE"},lineStyle:{lineColor:"#8c7fee",legendImg:i(2010),areaStyleColor:[{offset:0,color:"#E7E3FF"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:i(2011),zIndex:3}}]},o={showType2:[{boxConfig:{iconColor:"#FF8D35",titleColor:"#FF8D35",blockColor:"rgba(255,141,53,0.1)",tipsColor:"#FF8D35"},lineStyle:{lineColor:"#FF8D35",legendImg:i(2012),zIndex:1}},{boxConfig:{iconColor:"#F05A4B",titleColor:"#FC7468",blockColor:"rgba(252,116,104,0.1)",tipsColor:"#F05A4B"},lineStyle:{lineColor:"#F05A4B",legendImg:i(2013),areaStyleColor:[{offset:0,color:"#FFE0DD"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:i(2014),zIndex:3}}]},r={1:"有效保额",2:"已交保费系数金额",3:"现金价值",4:"身故全残金",5:"年龄",6:"累计已交保费",7:"累计保费*给付系数(主险)",8:"当前年龄与61岁的比值",9:"当前年龄与41岁的比值",10:"当前年龄与18岁的比值",11:"当前年龄的给付数值",12:"保额",13:"保单年份与缴费期间的比值",14:"保单年份",15:"长期护理保险金(元)",16:"疾病身故保险金或长期护理保险金"}},2009: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=="},2010: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="},2011: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"},2012: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="},2013: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="},2014: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"},2015:function(t,e,i){"use strict";function n(t){s||i(2016)}var o=i(1486),r=i(2021),a=i(2),s=!1,l=n,h=Object(a.a)(o.a,r.a,r.b,!1,l,"data-v-8a13b6be",null);h.options.__file="src\\components\\GoldFinanceChart\\src\\components\\benefit.vue",e.a=h.exports},2016:function(t,e){},2017:function(t,e,i){"use strict";function n(t){s||i(2018)}var o=i(1487),r=i(2020),a=i(2),s=!1,l=n,h=Object(a.a)(o.a,r.a,r.b,!1,l,"data-v-5bf23e30",null);h.options.__file="src\\components\\GoldFinanceChart\\src\\components\\chart.vue",e.a=h.exports},2018:function(t,e){},2019: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");of(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function n(t){for(var e in df)t[e]&&(df[e]=t[e])}function o(){return Cf++}function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function a(t){if(null==t||"object"!=typeof t)return t;var e=t,i=yf.call(t);if("[object Array]"===i){if(!Y(t))for(var e=[],n=0,o=t.length;n<o;n++)e[n]=a(t[n])}else if(gf[i]){if(!Y(t)){var r=t.constructor;if(r.from)e=r.from(t);else for(e=new r(t.length),n=0,o=t.length;n<o;n++)e[n]=t[n]}}else if(!ff[i]&&!Y(t)&&!k(t))for(var s in e={},t)t.hasOwnProperty(s)&&s!==Tf&&(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 o,r;e.hasOwnProperty(n)&&n!==Tf&&(o=t[n],!C(r=e[n])||!C(o)||x(r)||x(o)||k(r)||k(o)||M(r)||M(o)||Y(r)||Y(o)?!i&&n in t||(t[n]=a(e[n])):s(o,r,i))}return t}function l(t,e){if(Object.assign)Object.assign(t,e);else for(var i in e)e.hasOwnProperty(i)&&i!==Tf&&(t[i]=e[i]);return t}function h(t,e,i){for(var n=v(e),o=0;o<n.length;o++){var r=n[o];(i?null!=e[r]:null==t[r])&&(t[r]=e[r])}return t}function u(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i}return-1}function c(t,e){function i(){}var n,o=t.prototype;for(n in i.prototype=e.prototype,t.prototype=new i,o)o.hasOwnProperty(n)&&(t.prototype[n]=o[n]);(t.prototype.constructor=t).superClass=e}function p(t,e,i){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),o=0;o<n.length;o++){var r=n[o];"constructor"!==r&&(i?null!=e[r]:null==t[r])&&(t[r]=e[r])}else h(t,e,i)}function d(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function f(t,e,i){if(t&&e)if(t.forEach&&t.forEach===vf)t.forEach(e,i);else if(t.length===+t.length)for(var n=0,o=t.length;n<o;n++)e.call(i,t[n],n,t);else for(var r in t)t.hasOwnProperty(r)&&e.call(i,t[r],r,t)}function g(t,e,i){if(!t)return[];if(!e)return N(t);if(t.map&&t.map===wf)return t.map(e,i);for(var n=[],o=0,r=t.length;o<r;o++)n.push(e.call(i,t[o],o,t));return n}function y(t,e,i,n){if(t&&e){for(var o=0,r=t.length;o<r;o++)i=e.call(n,i,t[o],o,t);return i}}function m(t,e,i){if(!t)return[];if(!e)return N(t);if(t.filter&&t.filter===_f)return t.filter(e,i);for(var n=[],o=0,r=t.length;o<r;o++)e.call(i,t[o],o,t)&&n.push(t[o]);return n}function v(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e,i=[];for(e in t)t.hasOwnProperty(e)&&i.push(e);return i}function _(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return function(){return t.apply(this,e.concat(xf.call(arguments)))}}function x(t){return Array.isArray?Array.isArray(t):"[object Array]"===yf.call(t)}function w(t){return"function"==typeof t}function b(t){return"string"==typeof t}function S(t){return"[object String]"===yf.call(t)}function 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!!gf[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 xf.apply(t,e)}function B(t){var e;return"number"==typeof t?[t,t,t,t]:2===(e=t.length)?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function z(t,e){if(!t)throw new Error(e)}function F(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function V(t){t[kf]=!0}function Y(t){return t[kf]}function H(t){function e(t,e){i?n.set(t,e):n.set(e,t)}this.data={};var i=x(t),n=(this.data={},this);t instanceof H?t.each(e):t&&f(t,e)}function W(t){return new Af(t)}function X(t,e){for(var i=new t.constructor(t.length+e.length),n=0;n<t.length;n++)i[n]=t[n];for(var o=t.length,n=0;n<e.length;n++)i[n+o]=e[n];return i}function U(t,e){var i,t=Object.create?Object.create(t):((i=function(){}).prototype=t,new i);return e&&l(t,e),t}function G(t){t=t.style,t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function j(t,e){return t.hasOwnProperty(e)}function q(){}function Z(t,e){return[t=null==t?0:t,e=null==e?0:e]}function K(t){return[t[0],t[1]]}function Q(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t}function $(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function J(t){return Math.sqrt(tt(t))}function tt(t){return t[0]*t[0]+t[1]*t[1]}function et(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t}function it(t,e){var i=J(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t}function nt(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 rt(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 at(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 st(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t}function lt(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}function ht(t){(this.handler=t).on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}function ut(t){t&&(this._$eventProcessor=t)}function ct(t,e,i,n,o,r){var a,s=n+"-"+o,l=t.length;if(r.hasOwnProperty(s))return r[s];if(1===e)return a=Math.round(Math.log((1<<l)-1&~o)/zf),t[i][a];for(var h=n|1<<i,u=i+1;n&1<<u;)u++;for(var c=0,p=0,d=0;p<l;p++){var f=1<<p;f&o||(c+=(d%2?-1:1)*t[i][p]*ct(t,e-1,u,h,o|f,r),d++)}return r[s]=c}function pt(t,e){var i=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},o=ct(i,8,0,0,0,n);if(0!==o){for(var r=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==r[s]&&(r[s]=0),r[s]+=((a+s)%2?-1:1)*ct(i,7,0===a?1:0,1<<a,1<<s,n)/o*e[a];return function(t,e,i){var n=e*r[6]+i*r[7]+1;t[0]=(e*r[0]+i*r[1]+r[2])/n,t[1]=(e*r[3]+i*r[4]+r[5])/n}}}function dt(t,e,i,n,o){if(e.getBoundingClientRect&&af.domSupported&&!ft(e)){var r=e[Ff]||(e[Ff]={}),e=function(t,e,i){for(var n=i?"invTrans":"trans",o=e[n],r=e.srcCoords,a=[],s=[],l=!0,h=0;h<4;h++){var u=t[h].getBoundingClientRect(),c=2*h,p=u.left,u=u.top;a.push(p,u),l=l&&r&&p===r[c]&&u===r[1+c],s.push(t[h].offsetLeft,t[h].offsetTop)}return l&&o?o:(e.srcCoords=a,e[n]=i?pt(s,a):pt(a,s))}(function(t,e){var i=e.markers;if(!i){i=e.markers=[];for(var n=["left","right"],o=["top","bottom"],r=0;r<4;r++){var a=document.createElement("div"),s=a.style,l=r%2,h=(r>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",o[h]+":0",n[1-l]+":auto",o[1-h]+":auto",""].join("!important;"),t.appendChild(a),i.push(a)}}return i}(e,r),r,o);if(e)return e(t,i,n),!0}return!1}function ft(t){return"CANVAS"===t.nodeName.toUpperCase()}function gt(t,e,i,n){return i=i||{},n?yt(t,e,i):Wf&&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):yt(t,e,i),i}function yt(t,e,i){if(af.domSupported&&t.getBoundingClientRect){var n,o=e.clientX,e=e.clientY;if(ft(t))return n=t.getBoundingClientRect(),i.zrX=o-n.left,void(i.zrY=e-n.top);if(dt(Hf,t,o,e))return i.zrX=Hf[0],void(i.zrY=Hf[1])}i.zrX=i.zrY=0}function mt(t){return t||window.event}function vt(t,e,i){var n;return null==(e=mt(e)).zrX&&((n=e.type)&&0<=n.indexOf("touch")?(n=("touchend"!==n?e.targetTouches:e.changedTouches)[0])&&gt(t,n,e,i):(gt(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&&Yf.test(e.type))&&(e.which=1&t?1:2&t?3:4&t?2:0),e}function _t(){this._track=[]}function xt(t){var e=t[1][0]-t[0][0],t=t[1][1]-t[0][1];return Math.sqrt(e*e+t*t)}function wt(){Xf(this.event)}function bt(){var t=null!==jf&&jf.apply(this,arguments)||this;return t.handler=null,t}function St(t,e,i,n){var o=qf.call(this)||this;return o._hovered=new Kf(0,0),o.storage=t,o.painter=e,o.painterRoot=n,i=i||new Zf,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new Nf(o),o}function Tt(t,e,i){return t=t.painter,e<0||e>t.getWidth()||i<0||i>t.getHeight()}function Ct(t,e,i,n){var o=e+1;if(o===i)return 1;if(n(t[o++],t[e])<0){for(;o<i&&n(t[o],t[o-1])<0;)o++;var r=t,a=e,s=o;for(s--;a<s;){var l=r[a];r[a++]=r[s],r[s--]=l}}else for(;o<i&&0<=n(t[o],t[o-1]);)o++;return o-e}function Mt(t,e,i,n,o){for(n===e&&n++;n<i;n++){for(var r,a=t[n],s=e,l=n;s<l;)o(a,t[r=s+l>>>1])<0?l=r:s=1+r;var h=n-s;switch(h){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;0<h;)t[s+h]=t[s+h-1],h--}t[s]=a}}function It(t,e,i,n,o,r){var a=0,s=0,l=1;if(0<r(t,e[i+o])){for(s=n-o;l<s&&0<r(t,e[i+o+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=o,l+=o}else{for(s=o+1;l<s&&r(t,e[i+o-l])<=0;)(l=1+((a=l)<<1))<=0&&(l=s);n=a,a=o-(l=s<l?s:l),l=o-n}for(a++;a<l;){var h=a+(l-a>>>1);0<r(t,e[i+h])?a=h+1:l=h}return l}function kt(t,e,i,n,o,r){var a=0,s=0,l=1;if(r(t,e[i+o])<0){for(s=o+1;l<s&&r(t,e[i+o-l])<0;)(l=1+((a=l)<<1))<=0&&(l=s);var h=a,a=o-(l=s<l?s:l),l=o-h}else{for(s=n-o;l<s&&0<=r(t,e[i+o+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=o,l+=o}for(a++;a<l;){var u=a+(l-a>>>1);r(t,e[i+u])<0?l=u:a=u+1}return l}function At(t,e){function i(i){var l=n[i],h=o[i],u=n[i+1],c=o[i+1],i=(o[i]=h+c,i===a-3&&(n[i+1]=n[i+2],o[i+1]=o[i+2]),a--,kt(t[u],t,l,h,0,e));if(l+=i,0!=(h-=i)&&0!==(c=It(t[l+h-1],t,u,c,c-1,e)))if(h<=c){var p=l,d=h,i=u,f=c,g=0;for(g=0;g<d;g++)s[g]=t[p+g];var y=0,m=i,v=p;if(t[v++]=t[m++],0==--f)for(g=0;g<d;g++)t[v+g]=s[y+g];else if(1===d){for(g=0;g<f;g++)t[v+g]=t[m+g];t[v+f]=s[y]}else{for(var _,x,w,b=r;;){x=_=0,w=!1;do{if(e(t[m],s[y])<0){if(t[v++]=t[m++],x++,(_=0)==--f){w=!0;break}}else if(t[v++]=s[y++],_++,x=0,1==--d){w=!0;break}}while((_|x)<b);if(w)break;do{if(0!==(_=kt(t[m],s,y,d,0,e))){for(g=0;g<_;g++)t[v+g]=s[y+g];if(v+=_,y+=_,(d-=_)<=1){w=!0;break}}if(t[v++]=t[m++],0==--f){w=!0;break}if(0!==(x=It(s[y],t,m,f,0,e))){for(g=0;g<x;g++)t[v+g]=t[m+g];if(v+=x,m+=x,0==(f-=x)){w=!0;break}}if(t[v++]=s[y++],1==--d){w=!0;break}}while(b--,tg<=_||tg<=x);if(w)break;b<0&&(b=0),b+=2}if((r=b)<1&&(r=1),1===d){for(g=0;g<f;g++)t[v+g]=t[m+g];t[v+f]=s[y]}else{if(0===d)throw new Error;for(g=0;g<d;g++)t[v+g]=s[y+g]}}}else{var S=l,T=h,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=r;;){var E=0,R=0,N=!1;do{if(e(s[A],t[k])<0){if(t[D--]=t[k--],E++,(R=0)==--T){N=!0;break}}else if(t[D--]=s[A--],R++,E=0,1==--M){N=!0;break}}while((E|R)<L);if(N)break;do{if(0!=(E=T-kt(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-It(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--,tg<=E||tg<=R);if(N)break;L<0&&(L=0),L+=2}if((r=L)<1&&(r=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,o,r=tg,a=0,s=(t.length,[]);return n=[],o=[],{mergeRuns:function(){for(;1<a;){var t=a-2;if(1<=t&&o[t-1]<=o[t]+o[t+1]||2<=t&&o[t-2]<=o[t]+o[t-1])o[t-1]<o[t+1]&&t--;else if(o[t]>o[t+1])break;i(t)}},forceMergeRuns:function(){for(;1<a;){var t=a-2;0<t&&o[t-1]<o[t+1]&&t--,i(t)}},pushRun:function(t,e){n[a]=t,o[a]=e,a+=1}}}function Dt(t,e,i,n){var o=(n=n||t.length)-(i=i||0);if(!(o<2)){var r=0;if(o<Jf)Mt(t,i,n,i+(r=Ct(t,i,n,e)),e);else{var a,s=At(t,e),l=function(t){for(var e=0;Jf<=t;)e|=1&t,t>>=1;return t+e}(o);do{}while((r=Ct(t,i,n,e))<l&&(Mt(t,i,i+(a=l<(a=o)?l:o),i+r,e),r=a),s.pushRun(i,r),s.mergeRuns(),i+=r,0!=(o-=r));s.forceMergeRuns()}}}function Pt(){ng||(ng=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Ot(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function Lt(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ot}function Et(t){return-hg<t&&t<hg}function Rt(t){return hg<t||t<-hg}function Nt(t,e,i,n,o){var r=1-o;return r*r*(r*t+3*o*e)+o*o*(o*n+3*r*i)}function Bt(t,e,i,n,o){var r=1-o;return 3*(((e-t)*r+2*(i-e)*o)*r+(n-i)*o*o)}function zt(t,e,i,n,o,r){var a,s,n=n+3*(e-i)-t,i=3*(i-2*e+t),e=3*(e-t),t=t-o,o=i*i-3*n*e,l=i*e-9*n*t,t=e*e-3*i*t,h=0;return Et(o)&&Et(l)?Et(i)?r[0]=0:0<=(a=-e/i)&&a<=1&&(r[h++]=a):Et(e=l*l-4*o*t)?(s=-(t=l/o)/2,0<=(a=-i/n+t)&&a<=1&&(r[h++]=a),0<=s&&s<=1&&(r[h++]=s)):0<e?(e=o*i+1.5*n*(-l-(t=lg(e))),0<=(a=(-i-((t=(t=o*i+1.5*n*(-l+t))<0?-sg(-t,cg):sg(t,cg))+(e=e<0?-sg(-e,cg):sg(e,cg))))/(3*n))&&a<=1&&(r[h++]=a)):(t=(2*o*i-3*n*l)/(2*lg(o*o*o)),e=Math.acos(t)/3,a=(-i-2*(l=lg(o))*(t=Math.cos(e)))/(3*n),s=(-i+l*(t+ug*Math.sin(e)))/(3*n),o=(-i+l*(t-ug*Math.sin(e)))/(3*n),0<=a&&a<=1&&(r[h++]=a),0<=s&&s<=1&&(r[h++]=s),0<=o&&o<=1&&(r[h++]=o)),h}function Ft(t,e,i,n,o){var r,a=6*i-12*e+6*t,n=9*e+3*n-3*t-9*i,i=3*e-3*t,e=0;return Et(n)?Rt(a)&&0<=(r=-i/a)&&r<=1&&(o[e++]=r):Et(t=a*a-4*n*i)?o[0]=-a/(2*n):0<t&&(t=(-a-(i=lg(t)))/(2*n),0<=(r=(-a+i)/(2*n))&&r<=1&&(o[e++]=r),0<=t)&&t<=1&&(o[e++]=t),e}function Vt(t,e,i,n,o,r){var a=(e-t)*o+t,e=(i-e)*o+e,i=(n-i)*o+i,s=(e-a)*o+a,e=(i-e)*o+e,o=(e-s)*o+s;r[0]=t,r[1]=a,r[2]=s,r[3]=o,r[4]=o,r[5]=e,r[6]=i,r[7]=n}function Yt(t,e,i,n,o,r,a,s,l,h,u){var c,p,d,f,g=.005,y=1/0;pg[0]=l,pg[1]=h;for(var m=0;m<1;m+=.05)dg[0]=Nt(t,i,o,a,m),dg[1]=Nt(e,n,r,s,m),(d=Lf(pg,dg))<y&&(c=m,y=d);for(var y=1/0,v=0;v<32&&!(g<1e-4);v++)p=c+g,dg[0]=Nt(t,i,o,a,f=c-g),dg[1]=Nt(e,n,r,s,f),d=Lf(dg,pg),0<=f&&d<y?(c=f,y=d):(fg[0]=Nt(t,i,o,a,p),fg[1]=Nt(e,n,r,s,p),f=Lf(fg,pg),p<=1&&f<y?(c=p,y=f):g*=.5);return u&&(u[0]=Nt(t,i,o,a,c),u[1]=Nt(e,n,r,s,c)),lg(y)}function Ht(t,e,i,n){var o=1-n;return o*(o*t+2*n*e)+n*n*i}function Wt(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function Xt(t,e,i){return i=t+i-2*e,0==i?.5:(t-e)/i}function Ut(t,e,i,n,o){var r=(e-t)*n+t,e=(i-e)*n+e,n=(e-r)*n+r;o[0]=t,o[1]=r,o[2]=n,o[3]=n,o[4]=e,o[5]=i}function Gt(t,e,i,n,o,r,a,s,l){var h,u=.005,c=1/0;pg[0]=a,pg[1]=s;for(var p=0;p<1;p+=.05)dg[0]=Ht(t,i,o,p),dg[1]=Ht(e,n,r,p),(y=Lf(pg,dg))<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=(dg[0]=Ht(t,i,o,f),dg[1]=Ht(e,n,r,f),Lf(dg,pg));0<=f&&y<c?(h=f,c=y):(fg[0]=Ht(t,i,o,g),fg[1]=Ht(e,n,r,g),f=Lf(fg,pg),g<=1&&f<c?(h=g,c=f):u*=.5)}return l&&(l[0]=Ht(t,i,o,h),l[1]=Ht(e,n,r,h)),lg(c)}function jt(t){if(t=t&&gg.exec(t)){var e,t=t[1].split(","),i=+F(t[0]),n=+F(t[1]),o=+F(t[2]),r=+F(t[3]);if(!isNaN(i+n+o+r))return e=[],function(t){return t<=0?0:1<=t?1:zt(0,i,o,1,t,e)&&Nt(0,n,r,1,e[0])}}}function qt(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||q,this.ondestroy=t.ondestroy||q,this.onrestart=t.onrestart||q,t.easing&&this.setEasing(t.easing)}function Zt(){this._len=0}function Kt(t){this._list=new vg,this._maxSize=10,this._map={},this._maxSize=t}function Qt(t){return(t=Math.round(t))<0?0:255<t?255:t}function $t(t){return t<0?0:1<t?1:t}function Jt(t){return Qt(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function te(t){return $t(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function ee(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 ie(t,e,i){return t+(e-t)*i}function ne(t,e,i,n,o){return t[0]=e,t[1]=i,t[2]=n,t[3]=o,t}function oe(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function re(t,e){bg&&oe(bg,e),bg=wg.put(t,bg||e.slice())}function ae(t,e){if(t){e=e||[];var i=wg.get(t);if(i)return oe(e,i);if((i=(t+="").replace(/ /g,"").toLowerCase())in xg)return oe(e,xg[i]),re(t,e),e;var n=i.length;if("#"===i.charAt(0))return 4===n||5===n?0<=(o=parseInt(i.slice(1,4),16))&&o<=4095?(ne(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===n?parseInt(i.slice(4),16)/15:1),re(t,e),e):void ne(e,0,0,0,1):7===n||9===n?0<=(o=parseInt(i.slice(1,7),16))&&o<=16777215?(ne(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===n?parseInt(i.slice(7),16)/255:1),re(t,e),e):void ne(e,0,0,0,1):void 0;var o=i.indexOf("("),r=i.indexOf(")");if(-1!==o&&r+1===n){var n=i.substr(0,o),a=i.substr(o+1,r-(o+1)).split(","),s=1;switch(n){case"rgba":if(4!==a.length)return 3===a.length?ne(e,+a[0],+a[1],+a[2],1):ne(e,0,0,0,1);s=te(a.pop());case"rgb":return 3!==a.length?void ne(e,0,0,0,1):(ne(e,Jt(a[0]),Jt(a[1]),Jt(a[2]),s),re(t,e),e);case"hsla":return 4!==a.length?void ne(e,0,0,0,1):(a[3]=te(a[3]),se(a,e),re(t,e),e);case"hsl":return 3!==a.length?void ne(e,0,0,0,1):(se(a,e),re(t,e),e);default:return}}ne(e,0,0,0,1)}}function se(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=te(t[1]),o=te(t[2]),n=o<=.5?o*(n+1):o+n-o*n,o=2*o-n;return ne(e=e||[],Qt(255*ee(o,n,i+1/3)),Qt(255*ee(o,n,i)),Qt(255*ee(o,n,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function le(t,e){var i=ae(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 ce(i,4===i.length?"rgba":"rgb")}}function he(t,e,i){var n,o,r;if(e&&e.length&&0<=t&&t<=1)return i=i||[],t*=e.length-1,n=Math.floor(t),r=Math.ceil(t),o=e[n],e=e[r],i[0]=Qt(ie(o[0],e[0],r=t-n)),i[1]=Qt(ie(o[1],e[1],r)),i[2]=Qt(ie(o[2],e[2],r)),i[3]=$t(ie(o[3],e[3],r)),i}function ue(t,e,i){var n,o,r,a;if(e&&e.length&&0<=t&&t<=1)return t*=e.length-1,n=Math.floor(t),o=Math.ceil(t),a=ae(e[n]),e=ae(e[o]),a=ce([Qt(ie(a[0],e[0],r=t-n)),Qt(ie(a[1],e[1],r)),Qt(ie(a[2],e[2],r)),$t(ie(a[3],e[3],r))],"rgba"),i?{color:a,leftIndex:n,rightIndex:o,value:t}:a}function ce(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 pe(t,e){return t=ae(t),t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function de(t){var e,i;return t&&"transparent"!==t?"string"==typeof t&&-1<t.indexOf("rgba")&&(i=ae(t))&&(t="rgb("+i[0]+","+i[1]+","+i[2]+")",e=i[3]):t="none",{color:t,opacity:null==e?1:e}}function fe(t){return t<1e-4&&-1e-4<t}function ge(t){return Tg(1e3*t)/1e3}function ye(t){return Tg(1e4*t)/1e4}function me(t){return t&&!!t.image}function ve(t){return"linear"===t.type}function _e(t){return"radial"===t.type}function xe(t){return"url(#"+t+")"}function we(t){return t=t.getGlobalScale(),t=Math.max(t[0],t[1]),Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function be(t){var e=t.x||0,i=t.y||0,n=(t.rotation||0)*Df,o=E(t.scaleX,1),r=E(t.scaleY,1),a=t.skewX||0,t=t.skewY||0,s=[];return(e||i)&&s.push("translate("+e+"px,"+i+"px)"),n&&s.push("rotate("+n+")"),1===o&&1===r||s.push("scale("+o+","+r+")"),(a||t)&&s.push("skew("+Tg(a*Df)+"deg, "+Tg(t*Df)+"deg)"),s.join(" ")}function Se(t,e,i){return(e-t)*i+t}function Te(t,e,i,n){for(var o=e.length,r=0;r<o;r++)t[r]=Se(e[r],i[r],n);return t}function Ce(t,e,i,n){for(var o=e.length,r=0;r<o;r++)t[r]=e[r]+i[r]*n;return t}function Me(t,e,i,n){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){t[a]||(t[a]=[]);for(var s=0;s<r;s++)t[a][s]=e[a][s]+i[a][s]*n}return t}function Ie(t){if(d(t)){var e=t.length;if(d(t[0])){for(var i=[],n=0;n<e;n++)i.push(Ig.call(t[n]));return i}return Ig.call(t)}return t}function ke(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function Ae(t){return 4===t||5===t}function De(t){return 1===t||2===t}function Pe(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}function Oe(t,e,i,n){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,(this._loop=e)&&n?r("Can' use additive animation on looped animation."):(this._additiveAnimators=n,this._allowDiscrete=i)}function Le(){return(new Date).getTime()}function Ee(t){var e=Pg.call(this)||this;return e._running=!1,e._time=0,e._pausedTime=0,e._pauseStart=0,e._paused=!1,e.stage=(t=t||{}).stage||{},e}function Re(t){return"pen"===(t=t.pointerType)||"touch"===t}function Ne(t){t&&(t.zrByTouch=!0)}function Be(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 ze(t,e){var i=e.domHandlers;af.pointerEventsSupported?f(Ng.pointer,function(n){Ve(e,n,function(e){i[n].call(t,e)})}):(af.touchEventsSupported&&f(Ng.touch,function(n){Ve(e,n,function(o){var r;i[n].call(t,o),(r=e).touching=!0,null!=r.touchTimer&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)})}),f(Ng.mouse,function(n){Ve(e,n,function(o){o=mt(o),e.touching||i[n].call(t,o)})}))}function Fe(t,e){function i(i){Ve(e,i,function(n){var o;n=mt(n),Be(t,n.target)||(o=n,n=vt(t.dom,new Vg(t,o),!0),e.domHandlers[i].call(t,n))},{capture:!0})}af.pointerEventsSupported?f(zg,i):af.touchEventsSupported||f(Bg,i)}function Ve(t,e,i,n){t.mounted[e]=i,t.listenerOpts[e]=n,t.domTarget.addEventListener(e,i,n)}function Ye(t){var e,i,n,o,r,a=t.mounted;for(e in a)a.hasOwnProperty(e)&&(i=t.domTarget,o=a[n=e],r=t.listenerOpts[e],i.removeEventListener(n,o,r));t.mounted={}}function He(t,e){var i=Lg.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=e,i._localHandlerScope=new Wg(t,Yg),Rg&&(i._globalHandlerScope=new Wg(document,Hg)),ze(i,i._localHandlerScope),i}function We(){return[1,0,0,1,0,0]}function Xe(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Ue(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 Ge(t,e,i){var n=e[0]*i[0]+e[2]*i[1],o=e[1]*i[0]+e[3]*i[1],r=e[0]*i[2]+e[2]*i[3],a=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],i=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=o,t[2]=r,t[3]=a,t[4]=s,t[5]=i,t}function je(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 qe(t,e,i){var n=e[0],o=e[2],r=e[4],a=e[1],s=e[3],e=e[5],l=Math.sin(i),i=Math.cos(i);return t[0]=n*i+a*l,t[1]=-n*l+a*i,t[2]=o*i+s*l,t[3]=-o*l+i*s,t[4]=i*r+l*e,t[5]=i*e-l*r,t}function Ze(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 Ke(t,e){var i=e[0],n=e[2],o=e[4],r=e[1],a=e[3],e=e[5],s=i*a-r*n;return s?(t[0]=a*(s=1/s),t[1]=-r*s,t[2]=-n*s,t[3]=i*s,t[4]=(n*e-a*o)*s,t[5]=(r*o-i*e)*s,t):null}function Qe(t){return 5e-5<t||t<-5e-5}function $e(){}function Je(t,e){for(var i=0;i<ey.length;i++){var n=ey[i];t[n]=e[n]}}function ti(t,e){this.x=t||0,this.y=e||0}function ei(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 ii(t,e){var i=dy[e=e||cf],n=(i=i||(dy[e]=new _g(500))).get(t);return null==n&&(n=df.measureText(t,e).width,i.put(t,n)),n}function ni(t,e,i,n){return t=ii(t,e),e=si(e),i=ri(0,t,i),n=ai(0,e,n),new py(i,n,t,e)}function oi(t,e,i,n){var o=((t||"")+"").split("\n");if(1===o.length)return ni(o[0],e,i,n);for(var r=new py(0,0,0,0),a=0;a<o.length;a++){var s=ni(o[a],e,i,n);0===a?r.copy(s):r.union(s)}return r}function ri(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function ai(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function si(t){return ii("国",t)}function li(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function hi(t,e,i){var n=e.position||"inside",o=null!=e.distance?e.distance:5,r=i.height,a=i.width,s=r/2,l=i.x,h=i.y,u="left",c="top";if(n instanceof Array)l+=li(n[0],i.width),h+=li(n[1],i.height),c=u=null;else switch(n){case"left":l-=o,h+=s,u="right",c="middle";break;case"right":l+=o+a,h+=s,c="middle";break;case"top":l+=a/2,h-=o,u="center",c="bottom";break;case"bottom":l+=a/2,h+=r+o,u="center";break;case"inside":l+=a/2,h+=s,u="center",c="middle";break;case"insideLeft":l+=o,h+=s,c="middle";break;case"insideRight":l+=a-o,h+=s,u="right",c="middle";break;case"insideTop":l+=a/2,h+=o,u="center";break;case"insideBottom":l+=a/2,h+=r-o,u="center",c="bottom";break;case"insideTopLeft":l+=o,h+=o;break;case"insideTopRight":l+=a-o,h+=o,u="right";break;case"insideBottomLeft":l+=o,h+=r-o,c="bottom";break;case"insideBottomRight":l+=a-o,h+=r-o,u="right",c="bottom"}return(t=t||{}).x=l,t.y=h,t.align=u,t.verticalAlign=c,t}function ui(t){this.id=Cf++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}function ci(t,e,i,n){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[n]},set:function(e){t[n]=e}})}Object.defineProperty(iy,t,{get:function(){var t;return this[e]||(t=this[e]=[],o(this,t)),this[e]},set:function(t){this[i]=t[0],this[n]=t[1],this[e]=t,o(this,t)}})}function pi(t,e,i,n,o){function r(){h=!0,--l<=0&&(h?c&&c():p&&p())}function a(){--l<=0&&(h?c&&c():p&&p())}var s=[],l=(function t(e,i,n,o,r,a,s,l){for(var h=v(o),c=r.duration,p=r.delay,f=r.additive,g=r.setToFinal,y=!C(a),_=e.animators,x=[],w=0;w<h.length;w++){var b=h[w],S=o[b];null!=S&&null!=n[b]&&(y||a[b])?!C(S)||d(S)||A(S)?x.push(b):i?l||(n[b]=S,e.updateDuringAnimation(i)):t(e,b,n[b],S,r,a&&a[b],s,l):l||(n[b]=S,e.updateDuringAnimation(i),x.push(b))}var T=x.length;if(!f&&T)for(var M,I=0;I<_.length;I++)(k=_[I]).targetName===i&&k.stopTracks(x)&&(M=u(_,k),_.splice(M,1));if(r.force||(x=m(x,function(t){return!gi(o[t],n[t])}),T=x.length),0<T||r.force&&!s.length){var k,D=void 0,P=void 0,O=void 0;if(l)for(P={},g&&(D={}),I=0;I<T;I++)b=x[I],P[b]=n[b],g?D[b]=o[b]:n[b]=o[b];else if(g)for(O={},I=0;I<T;I++)b=x[I],O[b]=Ie(n[b]),fi(n,o,b);(k=new Dg(n,!1,!1,f?m(_,function(t){return t.targetName===i}):null)).targetName=i,r.scope&&(k.scope=r.scope),g&&D&&k.whenWithKeys(0,D,x),O&&k.whenWithKeys(0,O,x),k.whenWithKeys(null==c?500:c,l?P:o,x).delay(p||0),e.addAnimator(k,i),s.push(k)}}(t,"",t,e,i=i||{},n,s,o),s.length),h=!1,c=i.done,p=i.aborted;l||c&&c(),0<s.length&&i.during&&s[0].during(function(t,e){i.during(e)});for(var f=0;f<s.length;f++){var g=s[f];g.done(r),g.aborted(a),i.force&&g.duration(i.duration),g.start(i.easing)}return s}function di(t,e,i){for(var n=0;n<i;n++)t[n]=e[n]}function fi(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),di(t[i],e[i],n))}else{var o=e[i],r=t[i],a=o.length;if(d(o[0]))for(var s=o[0].length,l=0;l<a;l++)r[l]?di(r[l],o[l],s):r[l]=Array.prototype.slice.call(o[l]);else di(r,o,a);r.length=o.length}else t[i]=e[i]}function gi(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 yi(t){var e=xy.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}function mi(t,e,i){var n=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 og),r=i.renderer||"canvas",r=(by[r]||(r=v(by)[0]),i.useDirtyRect=null!=i.useDirtyRect&&i.useDirtyRect,new by[r](e,o,i,t)),e=i.ssr||r.ssrOnly,t=(this.storage=o,this.painter=r,af.node||af.worker||e?null:new Xg(r.getViewportRoot(),r.root));this.handler=new $f(o,r,t,r.root),this.animation=new Eg({stage:{update:e?null:function(){return n._flush(!0)}}}),e||this.animation.start()}function vi(t,e){return t=new Cy(Cf++,t,e),Sy[t.id]=t}function _i(t,e){by[t]=e}function xi(t,e,i,n){var o=e[0],e=e[1],r=i[0],i=i[1],a=e-o,s=i-r;if(0==a)return 0==s?r:(r+i)/2;if(n)if(0<a){if(t<=o)return r;if(e<=t)return i}else{if(o<=t)return r;if(t<=e)return i}else{if(t===o)return r;if(t===e)return i}return(t-o)/a*s+r}function wi(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 bi(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),Iy),t=(+t).toFixed(e),i?t:+t}function Si(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 Ti(t)}function Ti(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 Ci(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 Mi(t){var e=2*Math.PI;return(t%e+e)%e}function Ii(t){return-1e-4<t&&t<1e-4}function ki(t){var e,i;return t instanceof Date?t:b(t)?(e=ky.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 Ai(t){return Math.pow(10,Di(t))}function Di(t){var e;return 0===t?0:(e=Math.floor(Math.log(t)/Math.LN10),10<=t/Math.pow(10,e)&&e++,e)}function Pi(t,e){var i=Di(t),n=Math.pow(10,i),o=t/n,e=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10;return t=e*n,-20<=i?+t.toFixed(i<0?-i:0):t}function Oi(t){var e=parseFloat(t);return e==t&&(0!==e||!b(t)||t.indexOf("x")<=0)?e:NaN}function Li(t){return!isNaN(Oi(t))}function Ei(){return Math.round(9*Math.random())}function Ri(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 Ni(t){throw new Error(t)}function Bi(t,e,i){return(e-t)*i+t}function zi(t){return t instanceof Array?t:null==t?[]:[t]}function Fi(t,e,i){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,o=i.length;n<o;n++){var r=i[n];!t.emphasis[e].hasOwnProperty(r)&&t[e].hasOwnProperty(r)&&(t.emphasis[e][r]=t[e][r])}}}function Vi(t){return!C(t)||x(t)||t instanceof Date?t:t.value}function Yi(t,e,i){var n,o,r,a,s,l,h,u,c,p,d="normalMerge"===i,g="replaceMerge"===i,y="replaceAll"===i,m=(t=t||[],e=(e||[]).slice(),W()),i=(f(e,function(t,i){C(t)||(e[i]=null)}),function(t,e,i){var n=[];if("replaceAll"!==i)for(var o=0;o<t.length;o++){var r=t[o];r&&null!=r.id&&e.set(r.id,o),n.push({existing:"replaceMerge"===i||Gi(r)?null:r,newOption:null,keyInfo:null,brandNew:null})}return n}(t,m,i));return(d||g)&&(n=i,o=t,r=m,f(a=e,function(t,e){var i,s,l;t&&null!=t.id&&(i=Wi(t.id),null!=(s=r.get(i)))&&(z(!(l=n[s]).newOption,'Duplicated option on id "'+i+'".'),l.newOption=t,l.existing=o[s],a[e]=null)})),d&&(s=i,f(l=e,function(t,e){if(t&&null!=t.name)for(var i=0;i<s.length;i++){var n=s[i].existing;if(!s[i].newOption&&n&&(null==n.id||null==t.id)&&!Gi(t)&&!Gi(n)&&Hi("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||Gi(e.existing)||e.existing&&null!=t.id&&!Hi("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=W(),f(t,function(t){var e=t.existing;e&&p.set(e.id,t)}),f(t,function(t){var e=t.newOption;z(!e||null==e.id||!p.get(e.id)||p.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&p.set(e.id,t),t.keyInfo||(t.keyInfo={})}),f(t,function(t,e){var i=t.existing,n=t.newOption,o=t.keyInfo;if(C(n)){if(o.name=null!=n.name?Wi(n.name):i?i.name:Ay+e,i)o.id=Wi(i.id);else if(null!=n.id)o.id=Wi(n.id);else for(var r=0;o.id="\0"+o.name+"\0"+r++,p.get(o.id););p.set(o.id,t)}}),i}function Hi(t,e,i){return e=Xi(e[t],null),i=Xi(i[t],null),null!=e&&null!=i&&e===i}function Wi(t){return Xi(t,"")}function Xi(t,e){return null==t?e:b(t)?t:T(t)||S(t)?t+"":e}function Ui(t){return!(!(t=t.name)||!t.indexOf(Ay))}function Gi(t){return t&&null!=t.id&&0===Wi(t.id).indexOf("\0_ec_\0")}function ji(t,e,i){f(t,function(t){var n,o,r=t.newOption;C(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=(n=e,r=r,t=t.existing,o=i,r.type||(t?t.subType:o.determineSubType(n,r))))})}function qi(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 Zi(){var t="__ec_inner_"+Py++;return function(e){return e[t]||(e[t]={})}}function Ki(t,e,i){var e=Qi(e,i),n=e.mainTypeSpecified,o=e.queryOptionMap,r=e.others,a=i?i.defaultMainType:null;return!n&&a&&o.set(a,{}),o.each(function(e,n){e=$i(t,n,e,{useDefault:a===n,enableAll:!i||null==i.enableAll||i.enableAll,enableNone:!i||null==i.enableNone||i.enableNone}),r[n+"Models"]=e.models,r[n+"Model"]=e.models[0]}),r}function Qi(t,e){var i=b(t)?((i={})[t+"Index"]=0,i):t,n=W(),o={},r=!1;return f(i,function(t,i){var a;"dataIndex"===i||"dataIndexInside"===i?o[i]=t:(a=(i=i.match(/^(\w+)(Index|Id|Name)$/)||[])[1],i=(i[2]||"").toLowerCase(),!a||!i||e&&e.includeMainTypes&&u(e.includeMainTypes,a)<0||(r=r||!!a,(n.get(a)||n.set(a,{}))[i]=t))}),{mainTypeSpecified:r,queryOptionMap:n,others:o}}function $i(t,e,i,n){n=n||Oy;var o=i.index,r=i.id,i=i.name,a={models:null,specified:null!=o||null!=r||null!=i};return a.specified?"none"===o||!1===o?(z(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),a.models=[]):("all"===o&&(z(n.enableAll,'`"all"` is not a valid value on index option.'),o=r=i=null),a.models=t.queryComponents({mainType:e,index:o,id:r,name:i})):(o=void 0,a.models=n.useDefault&&(o=t.getComponent(e))?[o]:[]),a}function Ji(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i}function tn(t,e,i,n,o){var r=null==e||"auto"===e;if(null==n)return n;if(T(n))return bi(p=Bi(i||0,n,o),r?Math.max(Si(i||0),Si(n)):e);if(b(n))return o<1?i:n;for(var a=[],s=i,l=n,h=Math.max(s?s.length:0,l.length),u=0;u<h;++u){var c,p,d=t.getDimensionInfo(u);d&&"ordinal"===d.type?a[u]=(o<1&&s?s:l)[u]:(p=Bi(d=s&&s[u]?s[u]:0,c=l[u],o),a[u]=bi(p,r?Math.max(Si(d),Si(c)):e))}return a}function en(t){var e={main:"",sub:""};return t&&(t=t.split(Ly),e.main=t[0]||"",e.sub=t[1]||""),e}function nn(t){(t.$constructor=t).extend=function(t){function e(){return o.apply(this,arguments)||this}var n,o,r,a=this;return w(r=a)&&/^class\s/.test(Function.prototype.toString.call(r))?(i(e,o=a),n=e):c(n=function(){(t.$constructor||a).apply(this,arguments)},this),l(n.prototype,t),n[Ry]=!0,n.extend=this.extend,n.superCall=rn,n.superApply=an,n.superClass=a,n}}function on(t,e){t.extend=e.extend}function rn(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 an(t,e,i){return this.superClass.prototype[e].apply(t,i)}function sn(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=en(t.prototype.type=n)).sub?i.sub!==Ey&&((function(t){var i=e[t.main];return i&&i[Ey]||(i=e[t.main]={___EC__COMPONENT__CONTAINER___:!0}),i}(i))[i.sub]=t):e[i.main]=t),t},t.getClass=function(t,i,n){var o=e[t];if(o&&o[Ey]&&(o=i?o[i]:null),n&&!o)throw new Error(i?"Component "+t+"."+(i||"")+" is used but not imported.":t+".type should be specified.");return o},t.getClassesByMainType=function(t){var t=en(t),i=[],t=e[t.main];return t&&t[Ey]?f(t,function(t,e){e!==Ey&&i.push(t)}):i.push(t),i},t.hasClass=function(t){return t=en(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=en(t),(t=e[t.main])&&t[Ey]}}function ln(t,e){for(var i=0;i<t.length;i++)t[i][1]||(t[i][1]=t[i][0]);return e=e||!1,function(i,n,o){for(var r={},a=0;a<t.length;a++){var s=t[a][1];n&&0<=u(n,s)||o&&u(o,s)<0||null!=(s=i.getShallow(s,e))&&(r[t[a][0]]=s)}return r}}function hn(){}function un(t,e,i,n,o){return t?"string"==typeof t?(e&&e.__zrImageSrc===t||!i||(i={hostEl:i,cb:n,cbPayload:o},(n=Fy.get(t))?pn(e=n.image)||n.pending.push(i):((o=df.loadImage(t,cn,cn)).__zrImageSrc=t,Fy.put(t,o.__cachedImgObj={image:o,pending:[i]}))),e):t:e}function cn(){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 pn(t){return t&&t.width&&t.height}function dn(t,e,i,n,o){if(!e)return"";var r=(t+"").split("\n");o=fn(e,i,n,o);for(var a=0,s=r.length;a<s;a++)r[a]=gn(r[a],o);return r.join("\n")}function fn(t,e,i,n){for(var o=l({},n=n||{}),r=(o.font=e,i=E(i,"..."),o.maxIterations=E(n.maxIterations,2),o.minChar=E(n.minChar,0)),a=(o.cnCharWidth=ii("国",e),o.ascCharWidth=ii("a",e)),s=(o.placeholder=E(n.placeholder,""),t=Math.max(0,t-1)),h=0;h<r&&a<=s;h++)s-=a;return n=ii(i,e),s<n&&(i="",n=0),s=t-n,o.ellipsis=i,o.ellipsisWidth=n,o.contentWidth=s,o.containerWidth=t,o}function gn(t,e){var i=e.containerWidth,n=e.font,o=e.contentWidth;if(!i)return"";var r=ii(t,n);if(!(r<=i)){for(var a=0;;a++){if(r<=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?function(t,e,i,n){for(var o=0,r=0,a=t.length;r<a&&o<e;r++){var s=t.charCodeAt(r);o+=0<=s&&s<=127?i:n}return r}(t,o,e.ascCharWidth,e.cnCharWidth):0<r?Math.floor(t.length*o/r):0,r=ii(t=t.substr(0,s),n)}""===t&&(t=e.placeholder)}return t}function yn(t,e){function i(t,e,i){t.width=e,t.lineHeight=i,d+=i,f=Math.max(f,e)}var n=new Wy;if(null!=t&&(t+=""),t){for(var o,r=e.width,a=e.height,s=e.overflow,l="break"!==s&&"breakAll"!==s||null==r?null:{width:r,accumWidth:0,breakAll:"breakAll"===s},h=Vy.lastIndex=0;null!=(o=Vy.exec(t));){var u=o.index;h<u&&mn(n,t.substring(h,u),e,l),mn(n,o[2],e,l,o[1]),h=Vy.lastIndex}h<t.length&&mn(n,t.substring(h,t.length),e,l);var c,p=[],d=0,f=0,g=e.padding,y="truncate"===s,m="truncate"===e.lineOverflow;t:for(var v=0;v<n.lines.length;v++){for(var _=n.lines[v],x=0,w=0,b=0;b<_.tokens.length;b++){var S=(D=_.tokens[b]).styleName&&e.rich[D.styleName]||{},T=D.textPadding=S.padding,C=T?T[1]+T[3]:0,M=D.font=S.font||e.font,I=(D.contentHeight=si(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=ii(D.text,M)):(A&&(T=(T=S.backgroundColor)&&T.image)&&(k=void 0,pn(T="string"==typeof(c=T)?(k=Fy.get(c))&&k.image:c))&&(D.width=Math.max(D.width,T.width*I/T.height)),null!=(k=y&&null!=r?r-w:null)&&k<D.width?!A||k<C?(D.text="",D.width=D.contentWidth=0):(D.text=dn(D.text,k-C,M,e.ellipsis,{minChar:e.truncateMinChar}),D.width=D.contentWidth=ii(D.text,M)):D.contentWidth=ii(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(r,f),n.outerHeight=n.height=E(a,d),n.contentHeight=d,n.contentWidth=f,g&&(n.outerWidth+=g[1]+g[3],n.outerHeight+=g[0]+g[2]),v=0;v<p.length;v++){var D,P=(D=p[v]).percentWidth;D.width=parseInt(P,10)/100*n.width}}return n}function mn(t,e,i,n,o){var r,a,s=""===e,l=o&&i.rich[o]||{},h=t.lines,u=l.font||i.font,c=!1;n?(i=(t=l.padding)?t[1]+t[3]:0,null!=l.width&&"auto"!==l.width?(t=li(l.width,n.width)+i,0<h.length&&t+n.accumWidth>n.width&&(r=e.split("\n"),c=!0),n.accumWidth=t):(t=vn(e,u,n.width,n.breakAll,n.accumWidth),n.accumWidth=t.accumWidth+i,a=t.linesWidths,r=t.lines)):r=e.split("\n");for(var p=0;p<r.length;p++){var d,f,g=r[p],y=new Yy;y.styleName=o,y.text=g,y.isLineHolder=!g&&!s,y.width="number"==typeof l.width?l.width:a?a[p]:ii(g,u),p||c?h.push(new Hy([y])):1===(f=(d=(h[h.length-1]||(h[0]=new Hy)).tokens).length)&&d[0].isLineHolder?d[0]=y:!g&&f&&!s||d.push(y)}}function vn(t,e,i,n,o){for(var r,a=[],s=[],l="",h="",u=0,c=0,p=0;p<t.length;p++){var d,f,g=t.charAt(p);"\n"===g?(h&&(l+=h,c+=u),a.push(l),s.push(c),h=l="",c=u=0):(d=ii(g,e),f=!(n||(f=void 0,!(33<=(f=(f=r=g).charCodeAt(0))&&f<=383)||Xy[r])),(a.length?i<c+d:i<o+c+d)?c?(l||h)&&(c=f?(l||(l=h,h="",c=u=0),a.push(l),s.push(c-u),h+=g,l="",u+=d):(h&&(l+=h,h="",u=0),a.push(l),s.push(c),l=g,d)):f?(a.push(h),s.push(u),h=g,u=d):(a.push(g),s.push(d)):(c+=d,f?(h+=g,u+=d):(h&&(l+=h,h="",u=0),l+=g)))}return a.length||l||(l=t,h="",u=0),h&&(l+=h),l&&(a.push(l),s.push(c)),1===a.length&&(c+=o),{accumWidth:c,lines:a,linesWidths:s}}function _n(t){return Ty.call(this,t)||this}function xn(t,e,i,n,o,r){o[0]=$y(t,i),o[1]=$y(e,n),r[0]=Jy(t,i),r[1]=Jy(e,n)}function wn(t){return Math.round(t/xm*1e8)/1e8%2*xm}function bn(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 Sn(t,e,i,n,o,r,a){var s;if(0!==o)return s=0,!(e+(o=o)<a&&n+o<a||a<e-o&&a<n-o||t+o<r&&i+o<r||r<t-o&&r<i-o)&&(t===i?Math.abs(r-t)<=o/2:(r=(s=(e-n)/(t-i))*r-a+(t*n-i*e)/(t-i))*r/(s*s+1)<=o/2*o/2)}function Tn(t){return(t%=Im)<0&&(t+=Im),t}function Cn(t,e,i,n,o,r){return e<r&&n<r||r<e&&r<n||n===e?0:(i=(r=(r-e)/(n-e))*(i-t)+t)===o?1/0:o<i?1!=r&&0!=r?n<e?1:-1:n<e?.5:-.5:0}function Mn(t,e,i,n,o,r,a,s,l,h){if(e<h&&n<h&&r<h&&s<h||h<e&&h<n&&h<r&&h<s)return 0;var u=zt(e,n,r,s,h,Om);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=Om[y],v=0===m||1===m?.5:1;Nt(t,i,o,a,m)<l||(d<0&&(d=Ft(e,n,r,s,Lm),Lm[1]<Lm[0]&&1<d&&(c=void 0,c=Lm[0],Lm[0]=Lm[1],Lm[1]=c),f=Nt(e,n,r,s,Lm[0]),1<d)&&(g=Nt(e,n,r,s,Lm[1])),2===d?m<Lm[0]?p+=f<e?v:-v:m<Lm[1]?p+=g<f?v:-v:p+=s<g?v:-v:m<Lm[0]?p+=f<e?v:-v:p+=s<f?v:-v)}return p}function In(t,e,i,n,o,r,a,s){if(e<s&&n<s&&r<s||s<e&&s<n&&s<r)return 0;c=Om,u=(l=e)-2*(h=n)+(u=r),h=2*(h-l),l-=s=s,s=0,Et(u)?Rt(h)&&0<=(p=-l/h)&&p<=1&&(c[s++]=p):Et(l=h*h-4*u*l)?0<=(p=-h/(2*u))&&p<=1&&(c[s++]=p):0<l&&(d=(-h-(l=lg(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=Xt(e,n,r);if(0<=g&&g<=1){for(var y=0,m=Ht(e,n,r,g),v=0;v<f;v++){var _=0===Om[v]||1===Om[v]?.5:1;Ht(t,i,o,Om[v])<a||(Om[v]<g?y+=m<e?_:-_:y+=r<m?_:-_)}return y}return _=0===Om[0]||1===Om[0]?.5:1,Ht(t,i,o,Om[0])<a?0:r<e?_:-_}function kn(t,e,i,n,o){for(var r,a=t.data,s=t.len(),l=0,h=0,u=0,c=0,p=0,d=0;d<s;){var f=a[d++],g=1===d;switch(f===Am.M&&1<d&&(i||(l+=Cn(h,u,c,p,n,o))),g&&(c=h=a[d],p=u=a[d+1]),f){case Am.M:h=c=a[d++],u=p=a[d++];break;case Am.L:if(i){if(Sn(h,u,a[d],a[d+1],e,n,o))return!0}else l+=Cn(h,u,a[d],a[d+1],n,o)||0;h=a[d++],u=a[d++];break;case Am.C:if(i){if(function(t,e,i,n,o,r,a,s,l,h,u){if(0!==l)return!(e+(l=l)<u&&n+l<u&&r+l<u&&s+l<u||u<e-l&&u<n-l&&u<r-l&&u<s-l||t+l<h&&i+l<h&&o+l<h&&a+l<h||h<t-l&&h<i-l&&h<o-l&&h<a-l)&&Yt(t,e,i,n,o,r,a,s,h,u,null)<=l/2}(h,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,o))return!0}else l+=Mn(h,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,o)||0;h=a[d++],u=a[d++];break;case Am.Q:if(i){if(function(t,e,i,n,o,r,a,s,l){if(0!==a)return!(e+(a=a)<l&&n+a<l&&r+a<l||l<e-a&&l<n-a&&l<r-a||t+a<s&&i+a<s&&o+a<s||s<t-a&&s<i-a&&s<o-a)&&Gt(t,e,i,n,o,r,s,l,null)<=a/2}(h,u,a[d++],a[d++],a[d],a[d+1],e,n,o))return!0}else l+=In(h,u,a[d++],a[d++],a[d],a[d+1],n,o)||0;h=a[d++],u=a[d++];break;case Am.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+=Cn(h,u,S,T,n,o),(n-y)*_/v+y);if(i){if(function(t,e,i,n,o,r,a,s,l){if(0!==a)return a=a,s-=t,l-=e,!(i<(t=Math.sqrt(s*s+l*l))-a||t+a<i)&&(Math.abs(n-o)%km<1e-4||((o=r?(e=n,n=Tn(o),Tn(e)):(n=Tn(n),Tn(o)))<n&&(o+=km),(t=Math.atan2(l,s))<0&&(t+=km),n<=t&&t<=o)||n<=t+km&&t+km<=o)}(y,m,_,x,x+w,b,e,C,o))return!0}else l+=function(t,e,i,n,o,r,a,s){if(i<(s-=e)||s<-i)return 0;var e=Math.sqrt(i*i-s*s);if(Om[0]=-e,Om[1]=e,(i=Math.abs(n-o))<1e-4)return 0;if(Dm-1e-4<=i)return o=Dm,u=r?1:-1,a>=Om[n=0]+t&&a<=Om[1]+t?u:0;o<n&&(e=n,n=o,o=e),n<0&&(n+=Dm,o+=Dm);for(var l=0,h=0;h<2;h++){var u,c=Om[h];a<c+t&&(u=r?1:-1,n<=(c=(c=Math.atan2(s,c))<0?Dm+c:c)&&c<=o||n<=c+Dm&&c+Dm<=o)&&(l+=u=c>Math.PI/2&&c<1.5*Math.PI?-u:u)}return l}(y,m,_,x,x+w,b,C,o);h=Math.cos(x+w)*v+y,u=Math.sin(x+w)*_+m;break;case Am.R:if(c=h=a[d++],p=u=a[d++],S=c+a[d++],T=p+a[d++],i){if(Sn(c,p,S,p,e,n,o)||Sn(S,p,S,T,e,n,o)||Sn(S,T,c,T,e,n,o)||Sn(c,T,c,p,e,n,o))return!0}else l=(l+=Cn(S,p,S,T,n,o))+Cn(c,T,c,p,n,o);break;case Am.Z:if(i){if(Sn(h,u,c,p,e,n,o))return!0}else l+=Cn(h,u,c,p,n,o);h=c,u=p}}return i||(t=u,r=p,Math.abs(t-r)<Pm)||(l+=Cn(h,u,c,p,n,o)||0),0!==l}function An(t){return Tm.call(this,t)||this}function Dn(){return null!==Cm&&Cm.apply(this,arguments)||this}function Pn(){return null!==Hm&&Hm.apply(this,arguments)||this}function On(t,e,i){var n,o,r;if(e)return n=e.x1,o=e.x2,r=e.y1,e=e.y2,t.x1=n,t.x2=o,t.y1=r,t.y2=e,(i=i&&i.lineWidth)&&(Um(2*n)===Um(2*o)&&(t.x1=t.x2=En(n,i,!0)),Um(2*r)===Um(2*e))&&(t.y1=t.y2=En(r,i,!0)),t}function Ln(t,e,i){var n,o,r;if(e)return n=e.x,o=e.y,r=e.width,e=e.height,t.x=n,t.y=o,t.width=r,t.height=e,(i=i&&i.lineWidth)&&(t.x=En(n,i,!0),t.y=En(o,i,!0),t.width=Math.max(En(n+r,i,!1)-t.x,0===r?0:1),t.height=Math.max(En(o+e,i,!1)-t.y,0===e?0:1)),t}function En(t,e,i){var n;return e?((n=Um(2*t))+Um(e))%2==0?n/2:(n+(i?1:-1))/2:t}function Rn(t){return Xm.call(this,t)||this}function Nn(t){var e=Zm.call(this)||this;return e.type="text",e._children=[],e._defaultStyle=Km,e.attr(t),e}function Bn(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?hf+"px":t+"px":t}function zn(t,e){for(var i=0;i<ev.length;i++){var n=ev[i],o=e[n];null!=o&&(t[n]=o)}}function Fn(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function Vn(t){var e;t&&(t.font=$m.makeFont(t),e=t.align,t.align=null==(e="middle"===e?"center":e)||Jm[e]?e:"left",e=t.verticalAlign,t.verticalAlign=null==(e="center"===e?"middle":e)||tv[e]?e:"top",t.padding)&&(t.padding=B(t.padding))}function Yn(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Hn(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Wn(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function Xn(t){return t=t.text,null!=t&&(t+=""),t}function Un(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function Gn(t){return null!=t&&"none"!==t}function jn(t){var e;return b(t)?((e=mv.get(t))||(e=le(t,-.1),mv.put(t,e)),e):A(t)?((e=l({},t)).colorStops=g(t.colorStops,function(t){return{offset:t.offset,color:le(t.color,-.1)}}),e):t}function qn(t,e,i){t.onHoverStateChange&&(t.hoverState||0)!==i&&t.onHoverStateChange(e),t.hoverState=i}function Zn(t){qn(t,"emphasis",hv)}function Kn(t){t.hoverState===hv&&qn(t,"normal",sv)}function Qn(t){qn(t,"blur",lv)}function $n(t){t.hoverState===lv&&qn(t,"normal",sv)}function Jn(t){t.selected=!0}function to(t){t.selected=!1}function eo(t,e,i){e(t,i)}function io(t,e,i){eo(t,e,i),t.isGroup&&t.traverse(function(t){eo(t,e,i)})}function no(t,e){switch(e){case"emphasis":t.hoverState=hv;break;case"normal":t.hoverState=sv;break;case"blur":t.hoverState=lv;break;case"select":t.selected=!0}}function oo(t,e,i){var n=0<=u(t.currentStates,e),o=t.style.opacity,t=n?null:function(t,e,i,n){for(var o=t.style,r={},a=0;a<e.length;a++){var s=e[a],l=o[s];r[s]=null==l?n&&n[s]:l}for(a=0;a<t.animators.length;a++){var h=t.animators[a];h.__fromStateTransition&&h.__fromStateTransition.indexOf(i)<0&&"style"===h.targetName&&h.saveTo(r,e)}return r}(t,["opacity"],e,{opacity:1}),e=(i=i||{}).style||{};return null==e.opacity&&(i=l({},i),e=l({opacity:n?o:.1*t.opacity},e),i.style=e),i}function ro(t,e){var i,n,o,r,a,s=this.states[t];if(this.style){if("emphasis"===t)return i=this,n=s,e=(e=e)&&0<=u(e,"select"),a=!1,i instanceof Bm&&(o=rv(i),r=e&&o.selectFill||o.normalFill,e=e&&o.selectStroke||o.normalStroke,Gn(r)||Gn(e))&&("inherit"===(o=(n=n||{}).style||{}).fill?(a=!0,n=l({},n),(o=l({},o)).fill=r):!Gn(o.fill)&&Gn(r)?(a=!0,n=l({},n),(o=l({},o)).fill=jn(r)):!Gn(o.stroke)&&Gn(e)&&(a||(n=l({},n),o=l({},o)),o.stroke=jn(e)),n.style=o),n&&null==n.z2&&(a||(n=l({},n)),r=i.z2EmphasisLift,n.z2=i.z2+(null!=r?r:10)),n;if("blur"===t)return oo(this,t,s);if("select"===t)return e=this,(o=s)&&null==o.z2&&(o=l({},o),a=e.z2SelectLift,o.z2=e.z2+(null!=a?a:9)),o}return s}function ao(t){t.stateProxy=ro;var e=t.getTextContent(),t=t.getTextGuideLine();e&&(e.stateProxy=ro),t&&(t.stateProxy=ro)}function so(t,e){go(t,e)||t.__highByOuter||io(t,Zn)}function lo(t,e){go(t,e)||t.__highByOuter||io(t,Kn)}function ho(t,e){t.__highByOuter|=1<<(e||0),io(t,Zn)}function uo(t,e){(t.__highByOuter&=~(1<<(e||0)))||io(t,Kn)}function co(t){io(t,$n)}function po(t){io(t,Jn)}function fo(t){io(t,to)}function go(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function yo(t){t.getModel().eachComponent(function(e,i){var n=av(i);n.isBlured&&("series"===e?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i)).group.traverse(function(t){$n(t)}),n.isBlured=!1})}function mo(t,e,i,n){function o(t,e){for(var i=0;i<e.length;i++){var n=t.getItemGraphicEl(e[i]);n&&co(n)}}var r,a,s,l=n.getModel();i=i||"coordinateSystem",null!=t&&e&&"none"!==e&&(r=l.getSeriesByIndex(t),(a=r.coordinateSystem)&&a.master&&(a=a.master),s=[],l.eachSeries(function(t){var l=r===t,h=t.coordinateSystem,h=(h=h&&h.master?h.master:h)&&a?h===a:l;if(!("series"===i&&!l||"coordinateSystem"===i&&!h||"series"===e&&l)){if(n.getViewOfSeriesModel(t).group.traverse(function(t){Qn(t)}),d(e))o(t.getData(),e);else if(C(e))for(var u=v(e),c=0;c<u.length;c++)o(t.getData(u[c]),e[u[c]]);s.push(t),av(t).isBlured=!0}}),l.eachComponent(function(t,e){"series"!==t&&(t=n.getViewOfComponentModel(e))&&t.blurSeries&&t.blurSeries(s,l)}))}function vo(t,e,i){var n;null!=t&&null!=e&&(t=i.getModel().getComponent(t,e))&&(av(t).isBlured=!0,n=i.getViewOfComponentModel(t))&&n.focusBlurEnabled&&n.group.traverse(function(t){Qn(t)})}function _o(t,e,i,n){var o={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==i)return o;if(!(t=n.getModel().getComponent(t,e)))return o;if(!(e=n.getViewOfComponentModel(t))||!e.findHighDownDispatchers)return o;for(var r,a=e.findHighDownDispatchers(i),s=0;s<a.length;s++)if("self"===iv(a[s]).focus){r=!0;break}return{focusSelf:r,dispatchers:a}}function xo(t){f(t.getAllData(),function(e){var i=e.data,n=e.type;i.eachItemGraphicEl(function(e,i){(t.isSelected(i,n)?po:fo)(e)})})}function wo(t,e,i){To(t,!0),io(t,ao),t=iv(t),null!=e?(t.focus=e,t.blurScope=i):t.focus&&(t.focus=null)}function bo(t,e,i,n){n?To(t,!1):wo(t,e,i)}function So(t,e,i,n){i=i||"itemStyle";for(var o=0;o<vv.length;o++){var r=vv[o],a=e.getModel([r,i]);t.ensureState(r).style=n?n(a):a[_v[i]]()}}function To(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 Co(t){return!(!t||!t.__highDownDispatcher)}function Mo(t){return(t=t.type)===fv||t===gv||t===yv}function Io(t){return(t=t.type)===pv||t===dv}function ko(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ao(t,e){return(t[0]*e[0]+t[1]*e[1])/(ko(t)*ko(e))}function Do(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Ao(t,e))}function Po(t,e,i,n,o,r,a,s,l,h,u){var l=l*(Iv/180),c=Mv(l)*(t-i)/2+Cv(l)*(e-n)/2,p=-1*Cv(l)*(t-i)/2+Mv(l)*(e-n)/2,d=c*c/(a*a)+p*p/(s*s),d=(1<d&&(a*=Tv(d),s*=Tv(d)),(o===r?-1:1)*Tv((a*a*(s*s)-a*a*(p*p)-s*s*(c*c))/(a*a*(p*p)+s*s*(c*c)))||0),o=d*a*p/s,d=d*-s*c/a,t=(t+i)/2+Mv(l)*o-Cv(l)*d,i=(e+n)/2+Cv(l)*o+Mv(l)*d,e=Do([1,0],[(c-o)/a,(p-d)/s]),n=[(c-o)/a,(p-d)/s],c=[(-1*c-o)/a,(-1*p-d)/s],o=Do(n,c);Ao(n,c)<=-1&&(o=Iv),(o=1<=Ao(n,c)?0:o)<0&&(p=Math.round(o/Iv*1e6)/1e6,o=2*Iv+p%2*Iv),u.addData(h,t,i,a,s,e,o,l,r)}function Oo(){return null!==Dv&&Dv.apply(this,arguments)||this}function Lo(t){return null!=t.setData}function Eo(t,e){var i=function(t){var e=new Mm;if(t){var i,n=0,o=0,r=n,a=o,s=Mm.CMD,l=t.match(kv);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(Av)||[],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=o,M=void 0,I=void 0;switch(c){case"l":n+=d[y++],o+=d[y++],p=s.L,e.addData(p,n,o);break;case"L":n=d[y++],o=d[y++],p=s.L,e.addData(p,n,o);break;case"m":n+=d[y++],o+=d[y++],p=s.M,e.addData(p,n,o),r=n,a=o,c="l";break;case"M":n=d[y++],o=d[y++],p=s.M,e.addData(p,n,o),r=n,a=o,c="L";break;case"h":n+=d[y++],p=s.L,e.addData(p,n,o);break;case"H":n=d[y++],p=s.L,e.addData(p,n,o);break;case"v":o+=d[y++],p=s.L,e.addData(p,n,o);break;case"V":o=d[y++],p=s.L,e.addData(p,n,o);break;case"C":p=s.C,e.addData(p,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),n=d[y-2],o=d[y-1];break;case"c":p=s.C,e.addData(p,d[y++]+n,d[y++]+o,d[y++]+n,d[y++]+o,d[y++]+n,d[y++]+o),n+=d[y-2],o+=d[y-1];break;case"S":m=n,v=o,M=e.len(),I=e.data,i===s.C&&(m+=n-I[M-4],v+=o-I[M-3]),p=s.C,T=d[y++],C=d[y++],n=d[y++],o=d[y++],e.addData(p,m,v,T,C,n,o);break;case"s":m=n,v=o,M=e.len(),I=e.data,i===s.C&&(m+=n-I[M-4],v+=o-I[M-3]),p=s.C,T=n+d[y++],C=o+d[y++],n+=d[y++],o+=d[y++],e.addData(p,m,v,T,C,n,o);break;case"Q":T=d[y++],C=d[y++],n=d[y++],o=d[y++],p=s.Q,e.addData(p,T,C,n,o);break;case"q":T=d[y++]+n,C=d[y++]+o,n+=d[y++],o+=d[y++],p=s.Q,e.addData(p,T,C,n,o);break;case"T":m=n,v=o,M=e.len(),I=e.data,i===s.Q&&(m+=n-I[M-4],v+=o-I[M-3]),n=d[y++],o=d[y++],p=s.Q,e.addData(p,m,v,n,o);break;case"t":m=n,v=o,M=e.len(),I=e.data,i===s.Q&&(m+=n-I[M-4],v+=o-I[M-3]),n+=d[y++],o+=d[y++],p=s.Q,e.addData(p,m,v,n,o);break;case"A":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],Po(T=n,C=o,n=d[y++],o=d[y++],b,S,_,x,w,p=s.A,e);break;case"a":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],Po(T=n,C=o,n+=d[y++],o+=d[y++],b,S,_,x,w,p=s.A,e)}}"z"!==c&&"Z"!==c||(p=s.Z,e.addData(p),n=r,o=a),i=p}e.toStatic()}}return e}(t),t=l({},e);return t.buildPath=function(t){var e;Lo(t)?(t.setData(i.data),(e=t.getContext())&&t.rebuildPath(e,1)):i.rebuildPath(e=t,1)},t.applyTransform=function(t){var e=i,n=t;if(n){for(var o,r,a,s,l=e.data,h=e.len(),u=xv.M,c=xv.C,p=xv.L,d=xv.R,f=xv.A,g=xv.Q,y=0,m=0;y<h;){switch(o=l[y++],m=y,r=0,o){case u:case p:r=1;break;case c:r=3;break;case g:r=2;break;case f:var v=n[4],_=n[5],x=bv(n[0]*n[0]+n[1]*n[1]),w=bv(n[2]*n[2]+n[3]*n[3]),b=Sv(-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++],at(s,s,n),l[m++]=s[0],l[m++]=s[1],s[0]+=l[y++],s[1]+=l[y++],at(s,s,n),l[m++]=s[0],l[m++]=s[1]}for(a=0;a<r;a++){var S=wv[a];S[0]=l[y++],S[1]=l[y++],at(S,S,n),l[m++]=S[0],l[m++]=S[1]}}e.increaseVersion()}this.dirtyShape()},t}function Ro(t){return Pv.call(this,t)||this}function No(t){return Rv.call(this,t)||this}function Bo(t,e,i,n,o,r,a){var s=t-i,l=e-n,a=(a?r:-r)/Gv(s*s+l*l),l=a*l,a=-a*s,s=t+l,t=e+a,e=i+l,i=n+a,n=(s+e)/2,h=(t+i)/2,u=e-s,c=i-t,p=u*u+c*c,r=o-r,s=s*i-e*t,i=(c<0?-1:1)*Gv(jv(0,r*r*p-s*s)),e=(s*c-u*i)/p,t=(-s*u-c*i)/p,d=(s*c+u*i)/p,s=(-s*u+c*i)/p,u=e-n,c=t-h,i=d-n,p=s-h;return i*i+p*p<u*u+c*c&&(e=d,t=s),{cx:e,cy:t,x0:-l,y0:-a,x1:e*(o/r-1),y1:t*(o/r-1)}}function zo(t,e){var i,n,o,r,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=jv(e.r,0),E=jv(e.r0||0,0),R=0<L;(R||0<E)&&(R||(L=E,E=0),L<E&&(R=L,L=E,E=R),R=e.startAngle,i=e.endAngle,isNaN(R)||isNaN(i)||(n=e.cx,o=e.cy,r=!!e.clockwise,m=Uv(i-R),Zv<(a=Vv<m&&m%Vv)&&(m=a),Zv<L?Vv-Zv<m?(t.moveTo(n+L*Hv(R),o+L*Yv(R)),t.arc(n,o,L,R,i,!r),Zv<E&&(t.moveTo(n+E*Hv(i),o+E*Yv(i)),t.arc(n,o,E,i,R,r))):(T=S=b=w=_=v=c=u=k=I=M=C=h=l=s=a=void 0,p=L*Hv(R),d=L*Yv(R),f=E*Hv(i),g=E*Yv(i),(y=Zv<m)&&((e=e.cornerRadius)&&(a=(e=function(t){if(x(t)){var e=t.length;if(!e)return t;e=1===e?[t[0],t[0],0,0]:2===e?[t[0],t[0],t[1],t[1]]:3===e?t.concat(t[2]):t}else e=[t,t,t,t];return e}(e))[0],s=e[1],l=e[2],h=e[3]),e=Uv(L-E)/2,C=qv(e,l),M=qv(e,h),I=qv(e,a),k=qv(e,s),v=u=jv(C,M),_=c=jv(I,k),Zv<u||Zv<c)&&(w=L*Hv(i),b=L*Yv(i),S=E*Hv(R),T=E*Yv(R),m<Fv)&&(e=function(t,e,i,n,o,r,a,s){var l=(s-=r)*(i-=t)-(a-=o)*(n-=e);if(!(l*l<Zv))return[t+(l=(a*(e-r)-s*(t-o))/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/Yv(Wv((C*I+M*k)/(Gv(C*C+M*M)*Gv(I*I+k*k)))/2),C=Gv(e[0]*e[0]+e[1]*e[1]),v=qv(u,(L-C)/(1+m)),_=qv(c,(E-C)/(m-1))),y?Zv<v?(A=qv(l,v),D=qv(h,v),P=Bo(S,T,p,d,L,A,r),O=Bo(w,b,f,g,L,D,r),t.moveTo(n+P.cx+P.x0,o+P.cy+P.y0),v<u&&A===D?t.arc(n+P.cx,o+P.cy,v,Xv(P.y0,P.x0),Xv(O.y0,O.x0),!r):(0<A&&t.arc(n+P.cx,o+P.cy,A,Xv(P.y0,P.x0),Xv(P.y1,P.x1),!r),t.arc(n,o,L,Xv(P.cy+P.y1,P.cx+P.x1),Xv(O.cy+O.y1,O.cx+O.x1),!r),0<D&&t.arc(n+O.cx,o+O.cy,D,Xv(O.y1,O.x1),Xv(O.y0,O.x0),!r))):(t.moveTo(n+p,o+d),t.arc(n,o,L,R,i,!r)):t.moveTo(n+p,o+d),Zv<E&&y?Zv<_?(A=qv(a,_),P=Bo(f,g,w,b,E,-(D=qv(s,_)),r),O=Bo(p,d,S,T,E,-A,r),t.lineTo(n+P.cx+P.x0,o+P.cy+P.y0),_<c&&A===D?t.arc(n+P.cx,o+P.cy,_,Xv(P.y0,P.x0),Xv(O.y0,O.x0),!r):(0<D&&t.arc(n+P.cx,o+P.cy,D,Xv(P.y0,P.x0),Xv(P.y1,P.x1),!r),t.arc(n,o,E,Xv(P.cy+P.y1,P.cx+P.x1),Xv(O.cy+O.y1,O.cx+O.x1),r),0<A&&t.arc(n+O.cx,o+O.cy,A,Xv(O.y1,O.x1),Xv(O.y0,O.x0),!r))):(t.lineTo(n+f,o+g),t.arc(n,o,E,i,R,r)):t.lineTo(n+f,o+g)):t.moveTo(n,o),t.closePath()))}function Fo(t){return zv.call(this,t)||this}function Vo(t){return $v.call(this,t)||this}function Yo(t,e,i){var n=e.smooth,o=e.points;if(o&&2<=o.length){if(n)for(var r=function(t,e,i,n){var o,r,a=[],s=[],l=[],h=[];if(n){for(var u=[1/0,1/0],c=[-1/0,-1/0],p=0,d=t.length;p<d;p++)st(u,u,t[p]),lt(c,c,t[p]);st(u,u,n[0]),lt(c,c,n[1])}for(p=0,d=t.length;p<d;p++){var f=t[p];if(i)o=t[p?p-1:d-1],r=t[(p+1)%d];else{if(0===p||p===d-1){a.push(K(t[p]));continue}o=t[p-1],r=t[p+1]}$(s,r,o),et(s,s,e);var g=nt(f,o),y=nt(f,r),m=g+y,m=(0!==m&&(g/=m,y/=m),et(l,s,-g),et(h,s,y),Q([],f,l)),g=Q([],f,h);n&&(lt(m,m,u),st(m,m,c),lt(g,g,u),st(g,g,c)),a.push(m),a.push(g)}return i&&a.push(a.shift()),a}(o,n,i,e.smoothConstraint),a=(t.moveTo(o[0][0],o[0][1]),o.length),s=0;s<(i?a:a-1);s++){var l=r[2*s],h=r[2*s+1],u=o[(s+1)%a];t.bezierCurveTo(l[0],l[1],h[0],h[1],u[0],u[1])}else{t.moveTo(o[0][0],o[0][1]);for(var s=1,c=o.length;s<c;s++)t.lineTo(o[s][0],o[s][1])}i&&t.closePath()}}function Ho(t){return e_.call(this,t)||this}function Wo(t){return o_.call(this,t)||this}function Xo(t){return s_.call(this,t)||this}function Uo(t,e,i){var n=t.cpx2,o=t.cpy2;return null!=n||null!=o?[(i?Bt:Nt)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?Bt:Nt)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?Wt:Ht)(t.x1,t.cpx1,t.x2,e),(i?Wt:Ht)(t.y1,t.cpy1,t.y2,e)]}function Go(t){return d_.call(this,t)||this}function jo(t){return g_.call(this,t)||this}function qo(){var t=null!==v_&&v_.apply(this,arguments)||this;return t.type="compound",t}function Zo(t){this.colorStops=t||[]}function Ko(t,e,i,n,o,r){return o=w_.call(this,o)||this,o.x=null==t?0:t,o.y=null==e?0:e,o.x2=null==i?1:i,o.y2=null==n?0:n,o.type="linear",o.global=r||!1,o}function Qo(t,e,i,n,o){return n=S_.call(this,n)||this,n.x=null==t?.5:t,n.y=null==e?.5:e,n.r=null==i?.5:i,n.type="radial",n.global=o||!1,n}function $o(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new ny;for(i=0;i<2;i++)this._axes[i]=new ny;t&&this.fromBoundingRect(t,e)}function Jo(){var t=null!==T_&&T_.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}function tr(t,e,i,n,o,r,a){var s,l,h,u,c,p,d=!1,f=(w(o)?(a=r,r=o,o=null):C(o)&&(r=o.cb,a=o.during,d=o.isFrom,l=o.removeOpt,o=o.dataIndex),"leave"===t),g=(f||e.stopAnimation("leave"),p=t,s=o,l=f?l||{}:null,n=(g=n)&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,o):null,g&&g.ecModel&&(h=(h=g.ecModel.getUpdatePayload())&&h.animation),p="update"===p,g&&g.isAnimationEnabled()?(c=u=o=void 0,c=l?(o=E(l.duration,200),u=E(l.easing,"cubicOut"),0):(o=g.getShallow(p?"animationDurationUpdate":"animationDuration"),u=g.getShallow(p?"animationEasingUpdate":"animationEasing"),g.getShallow(p?"animationDelayUpdate":"animationDelay")),w(c=h&&(null!=h.duration&&(o=h.duration),null!=h.easing&&(u=h.easing),null!=h.delay)?h.delay:c)&&(c=c(s,n)),{duration:(o=w(o)?o(s):o)||0,delay:c,easing:u}):null);g&&0<g.duration?(p={duration:g.duration,delay:g.delay||0,easing:g.easing,done:r,force:!!r||!!a,setToFinal:!f,scope:t,during:a},d?e.animateFrom(i,p):e.animateTo(i,p)):(e.stopAnimation(),d||e.attr(i),a&&a(1),r&&r())}function er(t,e,i,n,o,r){tr("update",t,e,i,n,o,r)}function ir(t,e,i,n,o,r){tr("enter",t,e,i,n,o,r)}function nr(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 or(t,e,i,n,o,r){nr(t)||tr("leave",t,e,i,n,o,r)}function rr(t,e,i,n){t.removeTextContent(),t.removeTextGuideLine(),or(t,{style:{opacity:0}},e,i,n)}function ar(t){return Bm.extend(t)}function sr(t,e){return R_(t,e)}function lr(t,e){E_[t]=e}function hr(t){if(E_.hasOwnProperty(t))return E_[t]}function ur(t,e,i,n){return t=new Ov(Eo(t,e)),i&&("center"===n&&(i=pr(i,t.getBoundingRect())),fr(t,i)),t}function cr(t,e,i){var n=new Wm({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(pr(e,t)))}});return n}function pr(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 dr(t,e){for(var i=[],n=t.length,o=0;o<n;o++){var r=t[o];i.push(r.getUpdatedPathProxy(!0))}return(e=new Bm(e)).createPathProxy(),e.buildPath=function(t){var e;Lo(t)&&(t.appendPath(i),e=t.getContext())&&t.rebuildPath(e,1)},e}function fr(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}function gr(t,e){for(var i=Xe([]);t&&t!==e;)Ge(i,t.getLocalTransform(),i),t=t.parent;return i}function yr(t,e,i){return e&&!d(e)&&(e=ty.getLocalTransform(e)),at([],t,e=i?Ke([],e):e)}function mr(t){return!t.isGroup}function vr(t,e,i){function n(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=l({},t.shape)),e}var o,r;t&&e&&(r={},t.traverse(function(t){mr(t)&&t.anid&&(r[t.anid]=t)}),o=r,e.traverse(function(t){var e,r;mr(t)&&t.anid&&(e=o[t.anid])&&(r=n(t),t.attr(n(e)),er(t,r,i,iv(t).dataIndex))}))}function _r(t,e){return g(t,function(t){var i=t[0],i=O_(i,e.x),t=(i=L_(i,e.x+e.width),t[1]),t=O_(t,e.y);return[i,L_(t,e.y+e.height)]})}function xr(t,e){var i=O_(t.x,e.x),n=L_(t.x+t.width,e.x+e.width),o=O_(t.y,e.y),t=L_(t.y+t.height,e.y+e.height);if(i<=n&&o<=t)return{x:i,y:o,width:n-i,height:t-o}}function wr(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 Wm(e)):ur(t.replace("path://",""),e,i,"center")}function br(t,e,i,n,o,r,a,s){var l,i=i-t,n=n-e,a=a-o,s=s-r,h=a*n-i*s;return!((l=h)<=1e-6&&-1e-6<=l||(o=((l=t-o)*n-i*(t=e-r))/h)<0||1<o||(n=(l*s-a*t)/h)<0||1<n)}function Sr(t){var e=t.itemTooltipOption,i=t.componentModel,n=t.itemName,e=b(e)?{formatter:e}:e,o=i.mainType,i=i.componentIndex,r={componentType:o,name:n,$vars:["name"]},a=(r[o+"Index"]=i,t.formatterParamsExtra),t=(a&&f(v(a),function(t){j(r,t)||(r[t]=a[t],r.$vars.push(t))}),iv(t.el));t.componentMainType=o,t.componentIndex=i,t.tooltipConfig={name:n,option:h({content:n,formatterParams:r},e)}}function Tr(t,e){var i;(i=t.isGroup?e(t):i)||t.traverse(e)}function Cr(t,e){if(t)if(x(t))for(var i=0;i<t.length;i++)Tr(t[i],e);else Tr(t,e)}function Mr(t,e){for(var i=0;i<uv.length;i++){var n=uv[i],o=e[n],n=t.ensureState(n);n.style=n.style||{},n.style.text=o}var r=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(r,!0)}function Ir(t,e,i){for(var n,o=t.labelFetcher,r=t.labelDataIndex,a=t.labelDimIndex,s=e.normal,l={normal:n=null==(n=o?o.getFormattedLabel(r,"normal",null,a,s&&s.get("formatter"),null!=i?{interpolatedValue:i}:null):n)?w(t.defaultText)?t.defaultText(r,t,i):t.defaultText:n},h=0;h<uv.length;h++){var u=uv[h],c=e[u];l[u]=E(o?o.getFormattedLabel(r,u,null,a,c&&c.get("formatter")):null,n)}return l}function kr(t,e,i,n){i=i||z_;for(var o=t instanceof $m,r=!1,a=0;a<cv.length;a++)if((p=e[cv[a]])&&p.getShallow("show")){r=!0;break}var s=o?t:t.getTextContent();if(r){o||(s||(s=new $m,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=Ir(i,e),h=e.normal,u=!!h.getShallow("show"),c=Dr(h,n&&n.normal,i,!1,!o);for(c.text=l.normal,o||t.setTextConfig(Pr(h,i,!1)),a=0;a<uv.length;a++){var p,d,f,g=uv[a];(p=e[g])&&(d=s.ensureState(g),(f=!!E(p.getShallow("show"),u))!=u&&(d.ignore=!f),d.style=Dr(p,n&&n[g],i,!0,!o),d.style.text=l[g],o||(t.ensureState(g).textConfig=Pr(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&&(H_(s).setLabelText=function(t){t=Ir(i,e,t),Mr(s,t)})}else s&&(s.ignore=!0);t.dirty()}function Ar(t,e){for(var i={normal:t.getModel(e=e||"label")},n=0;n<uv.length;n++){var o=uv[n];i[o]=t.getModel([o,e])}return i}function Dr(t,e,i,n,o){var r,a={},s=a,h=t,u=i,c=n,p=o;u=u||z_;var d,t=h.ecModel,f=t&&t.option.textStyle,g=function(t){for(var e;t&&t!==t.ecModel;){var i=(t.option||z_).rich;if(i){e=e||{};for(var n=v(i),o=0;o<n.length;o++){e[n[o]]=1}}t=t.parentModel}return e}(h);if(g)for(var y in d={},g)g.hasOwnProperty(y)&&(r=h.getModel(["rich",y]),Or(d[y]={},r,f,u,c,p,!1,!0));return d&&(s.rich=d),(t=h.get("overflow"))&&(s.overflow=t),null!=(t=h.get("minMargin"))&&(s.margin=t),Or(s,h,f,u,c,p,!0,!1),e&&l(a,e),a}function Pr(t,e,i){e=e||{};var n={},o=t.getShallow("rotate"),r=E(t.getShallow("distance"),i?null:5),a=t.getShallow("offset"),i=t.getShallow("position")||(i?null:"inside");return null!=(i="outside"===i?e.defaultOutsidePosition||"top":i)&&(n.position=i),null!=a&&(n.offset=a),null!=o&&(o*=Math.PI/180,n.rotation=o),null!=r&&(n.distance=r),n.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",n}function Or(t,e,i,n,o,r,a,s){i=!o&&i||z_;var l=n&&n.inheritColor,h=e.getShallow("color"),u=e.getShallow("textBorderColor"),c=E(e.getShallow("opacity"),i.opacity),h=("inherit"!==h&&"auto"!==h||(h=l||null),"inherit"!==u&&"auto"!==u||(u=l||null),r||(h=h||i.color,u=u||i.textBorderColor),null!=h&&(t.fill=h),null!=u&&(t.stroke=u),E(e.getShallow("textBorderWidth"),i.textBorderWidth)),u=(null!=h&&(t.lineWidth=h),E(e.getShallow("textBorderType"),i.textBorderType)),h=(null!=u&&(t.lineDash=u),E(e.getShallow("textBorderDashOffset"),i.textBorderDashOffset));null!=h&&(t.lineDashOffset=h),null!=(c=o||null!=c||s?c:n&&n.defaultOpacity)&&(t.opacity=c),o||r||null==t.fill&&n.inheritColor&&(t.fill=n.inheritColor);for(var p=0;p<F_.length;p++){var d=F_[p];null!=(f=E(e.getShallow(d),i[d]))&&(t[d]=f)}for(var p=0;p<V_.length;p++)d=V_[p],null!=(f=e.getShallow(d))&&(t[d]=f);if(null==t.verticalAlign&&null!=(u=e.getShallow("baseline"))&&(t.verticalAlign=u),!a||!n.disableBox){for(p=0;p<Y_.length;p++){var f,d=Y_[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 Lr(t,e,i,n,o){var r,a,s,l=H_(t);l.valueAnimation&&l.prevValue!==l.value&&(r=l.defaultInterpolatedText,a=E(l.interpolatedValue,l.prevValue),s=l.value,t.percent=0,(null==l.prevValue?ir:er)(t,{percent:1},n,e,null,function(n){var h=tn(i,l.precision,a,s,n),n=(l.interpolatedValue=1===n?null:h,Ir({labelDataIndex:e,labelFetcher:o,defaultText:r?r(h):h+""},l.statesModels,h));Mr(t,n)}))}function Er(){}function Rr(){}function Nr(){}function Br(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}function zr(t){return[t||"",tx++].join("_")}function Fr(t,e){t=t.toUpperCase(),rx[t]=new J_(e),ox[t]=e}function Vr(t,e){return"0000".substr(0,e-(t+="").length)+t}function Yr(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 Hr(t,e,i,n){var t=ki(t),o=t[Ur(i)](),r=t[Gr(i)]()+1,a=Math.floor((r-1)/4)+1,s=t[jr(i)](),l=t["get"+(i?"UTC":"")+"Day"](),h=t[qr(i)](),u=(h-1)%12+1,c=t[Zr(i)](),p=t[Kr(i)](),t=t[Qr(i)](),i=(n instanceof J_?n:rx[n||ax]||rx[nx]).getModel("time"),n=i.get("month"),d=i.get("monthAbbr"),f=i.get("dayOfWeek"),i=i.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,a+"").replace(/{MMMM}/g,n[r-1]).replace(/{MMM}/g,d[r-1]).replace(/{MM}/g,Vr(r,2)).replace(/{M}/g,r+"").replace(/{dd}/g,Vr(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,f[l]).replace(/{ee}/g,i[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Vr(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,Vr(u+"",2)).replace(/{h}/g,u+"").replace(/{mm}/g,Vr(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Vr(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Vr(t,3)).replace(/{S}/g,t+"")}function Wr(t,e){var t=ki(t),i=t[Gr(e)]()+1,n=t[jr(e)](),o=t[qr(e)](),r=t[Zr(e)](),a=t[Kr(e)](),t=0===t[Qr(e)](),e=t&&0===a,a=e&&0===r,r=a&&0===o,o=r&&1===n;return o&&1===i?"year":o?"month":r?"day":a?"hour":e?"minute":t?"second":"millisecond"}function Xr(t,e,i){var n=T(t)?ki(t):t;switch(e=e||Wr(t,i)){case"year":return n[Ur(i)]();case"half-year":return 6<=n[Gr(i)]()?1:0;case"quarter":return Math.floor((n[Gr(i)]()+1)/4);case"month":return n[Gr(i)]();case"day":return n[jr(i)]();case"half-day":return n[qr(i)]()/24;case"hour":return n[qr(i)]();case"minute":return n[Zr(i)]();case"second":return n[Kr(i)]();case"millisecond":return n[Qr(i)]()}}function Ur(t){return t?"getUTCFullYear":"getFullYear"}function Gr(t){return t?"getUTCMonth":"getMonth"}function jr(t){return t?"getUTCDate":"getDate"}function qr(t){return t?"getUTCHours":"getHours"}function Zr(t){return t?"getUTCMinutes":"getMinutes"}function Kr(t){return t?"getUTCSeconds":"getSeconds"}function Qr(t){return t?"getUTCMilliseconds":"getMilliseconds"}function $r(t){return t?"setUTCMonth":"setMonth"}function Jr(t){return t?"setUTCDate":"setDate"}function ta(t){return t?"setUTCHours":"setHours"}function ea(t){return t?"setUTCMinutes":"setMinutes"}function ia(t){return t?"setUTCSeconds":"setSeconds"}function na(t){return t?"setUTCMilliseconds":"setMilliseconds"}function oa(t){var e;return Li(t)?(e=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<e.length?"."+e[1]:""):b(t)?t:"-"}function ra(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),t=e?t&&t.charAt(0).toUpperCase()+t.slice(1):t}function aa(t){return null==t?"":(t+"").replace(mx,function(t,e){return vx[e]})}function sa(t,e,i){function n(t){return t&&F(t)?t:"-"}function o(t){return null!=t&&!isNaN(t)&&isFinite(t)}var r="time"===e,a=t instanceof Date;if(r||a){var r=r?ki(t):t;if(!isNaN(+r))return Hr(r,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",i);if(a)return"-"}return"ordinal"===e?S(t)?n(t):T(t)&&o(t)?t+"":"-":o(r=Oi(t))?oa(r):S(t)?n(t):"boolean"==typeof t?t+"":"-"}function la(t,e){return"{"+t+(null==e?"":e)+"}"}function ha(t,e,i){var n=(e=x(e)?e:[e]).length;if(!n)return"";for(var o=e[0].$vars||[],r=0;r<o.length;r++){var a=_x[r];t=t.replace(la(a),la(a,0))}for(var s=0;s<n;s++)for(var l=0;l<o.length;l++){var h=e[s][o[l]];t=t.replace(la(_x[l],s),i?aa(h):h)}return t}function ua(t,e){var t=b(t)?{color:t,extraCssText:e}:t||{},i=t.color,n=t.type,o=(e=t.extraCssText,t.renderMode||"html");return i?"html"===o?"subItem"===n?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+aa(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+aa(i)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===n?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function ca(t,e){return e=e||"transparent",b(t)?t:C(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function pa(t,e){var i;"_blank"===e||"blank"===e?((i=window.open()).opener=null,i.location.href=t):window.open(t,e)}function da(t,e,i,n,o){var r=0,a=0,s=(null==n&&(n=1/0),null==o&&(o=1/0),0);e.eachChild(function(l,h){var u,c,p,d=l.getBoundingRect(),h=e.childAt(h+1),h=h&&h.getBoundingRect();s="horizontal"===t?(c=d.width+(h?-h.x+d.x:0),n<(u=r+c)||l.newline?(r=0,u=c,a+=s+i,d.height):Math.max(s,d.height)):(c=d.height+(h?-h.y+d.y:0),o<(p=a+c)||l.newline?(r+=s+i,a=0,p=c,d.width):Math.max(s,d.width)),l.newline||(l.x=r,l.y=a,l.markRedraw(),"horizontal"===t?r=u+i:a=p+i)})}function fa(t,e,i){i=yx(i||0);var n=e.width,o=e.height,r=wi(t.left,n),a=wi(t.top,o),e=wi(t.right,n),s=wi(t.bottom,o),l=wi(t.width,n),h=wi(t.height,o),u=i[2]+i[0],c=i[1]+i[3],p=t.aspect;switch(isNaN(l)&&(l=n-e-c-r),isNaN(h)&&(h=o-s-u-a),null!=p&&(isNaN(l)&&isNaN(h)&&(n/o<p?l=.8*n:h=.8*o),isNaN(l)&&(l=p*h),isNaN(h))&&(h=l/p),isNaN(r)&&(r=n-e-l-c),isNaN(a)&&(a=o-s-h-u),t.left||t.right){case"center":r=n/2-l/2-i[3];break;case"right":r=n-l-c}switch(t.top||t.bottom){case"middle":case"center":a=o/2-h/2-i[0];break;case"bottom":a=o-h-u}return r=r||0,a=a||0,isNaN(l)&&(l=n-c-r-(e||0)),isNaN(h)&&(h=o-u-a-(s||0)),p=new py(r+i[3],a+i[0],l,h),p.margin=i,p}function ga(t){return t=t.layoutMode||t.constructor.layoutMode,C(t)?t:t?{type:t}:null}function ya(t,e,i){function n(i,n){var a={},l=0,h={},u=0;if(xx(i,function(e){h[e]=t[e]}),xx(i,function(t){o(e,t)&&(a[t]=h[t]=e[t]),r(a,t)&&l++,r(h,t)&&u++}),s[n])r(e,i[1])?h[i[2]]=null:r(e,i[2])&&(h[i[1]]=null);else if(2!==u&&l){if(!(2<=l))for(var c=0;c<i.length;c++){var p=i[c];if(!o(a,p)&&o(t,p)){a[p]=t[p];break}}return a}return h}function o(t,e){return t.hasOwnProperty(e)}function r(t,e){return null!=t[e]&&"auto"!==t[e]}function a(t,e,i){xx(t,function(t){e[t]=i[t]})}var s=i&&i.ignoreSize,i=(x(s)||(s=[s,s]),n(Sx[0],0)),l=n(Sx[1],1);a(Sx[0],t,i),a(Sx[1],t,l)}function ma(t){return e={},(i=t)&&e&&xx(bx,function(t){i.hasOwnProperty(t)&&(e[t]=i[t])}),e;var e,i}function va(t,e,i){return t=Cx.call(this,t,e,i)||this,t.uid=zr("ec_cpt_model"),t}function _a(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function xa(t,e,i){function n(t,e,i){for(var n=0;n<i;n++)t.push(e+n)}function o(t){return t=t.dimsDef,t?t.length:1}var r,a,s,l,h,u={},c=wa(e);return c&&t&&(r=[],a=[],e=e.ecModel,e=Gx(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=o(e)),u[e.name]=[]}),h=e.get(c)||e.set(c,{categoryWayDim:l,valueWayDim:0}),f(t,function(t,e){var i,l=t.name,t=o(t);null==s?(i=h.valueWayDim,n(u[l],i,t),n(a,i,t),h.valueWayDim+=t):s===e?(n(u[l],0,t),n(r,0,t)):(i=h.categoryWayDim,n(u[l],i,t),n(a,i,t),h.categoryWayDim+=t)}),r.length&&(u.itemName=r),a.length)&&(u.seriesName=a),u}function wa(t){if(!t.get("data",!0))return $i(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Oy).models[0]}function ba(t,e){function i(t){var e=b(t);return null!=t&&isFinite(t)&&""!==t?e?Ux.Might:Ux.Not:e&&"-"!==t?Ux.Must:void 0}var n,o,r,a=t.data,s=t.sourceFormat,l=t.seriesLayoutBy,h=t.dimensionsDefine,u=t.startIndex,c=e;if(!I(a)){if(h&&(C(h=h[c])?(o=h.name,r=h.type):b(h)&&(o=h)),null!=r)return"ordinal"===r?Ux.Must:Ux.Not;if(s===zx){var p=a;if(l===Xx){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===Fx){var y=a;if(!o)return Ux.Not;for(f=0;f<y.length&&f<5;f++)if((v=y[f])&&null!=(n=i(v[o])))return n}else if(s===Vx){if(h=a,!o)return Ux.Not;if(!(d=h[o])||I(d))return Ux.Not;for(f=0;f<d.length&&f<5;f++)if(null!=(n=i(d[f])))return n}else if(s===Bx)for(var m=a,f=0;f<m.length&&f<5;f++){var v,_=Vi(v=m[f]);if(!x(_))return Ux.Not;if(null!=(n=i(_[c])))return n}}return Ux.Not}function Sa(){}function Ta(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 Ca(){return null!==Ex&&Ex.apply(this,arguments)||this}function Ma(t,e,i){var n,o;return x(e)?(n=W(),f(e,function(t){null!=t&&null!=Xi(t,null)&&n.set(t,!0)}),m(i,function(e){return e&&n.get(e[t])})):(o=Xi(e,null),m(i,function(e){return e&&null!=o&&e[t]===o}))}function Ia(t,e){return e.hasOwnProperty("subType")?m(t,function(t){return t&&t.subType===e.subType}):t}function ka(t){var e=W();return t&&f(zi(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}function Aa(t){f(tw,function(e){this[e]=If(t[e],t)},this)}function Da(){this._coordinateSystems=[]}function Pa(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}function Oa(t){var e=t&&t.itemStyle;if(e)for(var i=0,n=sw.length;i<n;i++){var o=sw[i],r=e.normal,a=e.emphasis;r&&r[o]&&(t[o]=t[o]||{},t[o].normal?s(t[o].normal,r[o]):t[o].normal=r[o],r[o]=null),a&&a[o]&&(t[o]=t[o]||{},t[o].emphasis?s(t[o].emphasis,a[o]):t[o].emphasis=a[o],a[o]=null)}}function La(t,e,i){var n,o;t&&t[e]&&(t[e].normal||t[e].emphasis)&&(n=t[e].normal,o=t[e].emphasis,n&&(i?(t[e].normal=t[e].emphasis=null,h(t[e],n)):t[e]=n),o)&&(t.emphasis=t.emphasis||{},(t.emphasis[e]=o).focus&&(t.emphasis.focus=o.focus),o.blurScope)&&(t.emphasis.blurScope=o.blurScope)}function Ea(t){La(t,"itemStyle"),La(t,"lineStyle"),La(t,"areaStyle"),La(t,"label"),La(t,"labelLine"),La(t,"upperLabel"),La(t,"edgeLabel")}function Ra(t,e){var i=aw(t)&&t[e],n=aw(i)&&i.textStyle;if(n)for(var o=0,r=Dy.length;o<r;o++){var a=Dy[o];n.hasOwnProperty(a)&&(i[a]=n[a])}}function Na(t){t&&(Ea(t),Ra(t,"label"),t.emphasis)&&Ra(t.emphasis,"label")}function Ba(t){return x(t)?t:t?[t]:[]}function za(t){return(x(t)?t[0]:t)||{}}function Fa(t,e){rw(Ba(t.series),function(t){if(aw(t)&&aw(t)){Oa(t),Ea(t),Ra(t,"label"),Ra(t,"upperLabel"),Ra(t,"edgeLabel"),t.emphasis&&(Ra(t.emphasis,"label"),Ra(t.emphasis,"upperLabel"),Ra(t.emphasis,"edgeLabel"));var e=t.markPoint,i=(e&&(Oa(e),Na(e)),t.markLine),n=(i&&(Oa(i),Na(i)),t.markArea),o=(n&&Na(n),t.data);if("graph"===t.type){var o=o||t.nodes,r=t.links||t.edges;if(r&&!I(r))for(var a=0;a<r.length;a++)Na(r[a]);f(t.categories,function(t){Ea(t)})}if(o&&!I(o))for(a=0;a<o.length;a++)Na(o[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)Na(s[a]);if((i=t.markLine)&&i.data)for(var l=i.data,a=0;a<l.length;a++)x(l[a])?(Na(l[a][0]),Na(l[a][1])):Na(l[a]);"gauge"===t.type?(Ra(t,"axisLabel"),Ra(t,"title"),Ra(t,"detail")):"treemap"===t.type?(La(t.breadcrumb,"itemStyle"),f(t.levels,function(t){Ea(t)})):"tree"===t.type&&Ea(t.leaves)}});var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),rw(i,function(e){rw(Ba(t[e]),function(t){t&&(Ra(t,"axisLabel"),Ra(t.axisPointer,"label"))})}),rw(Ba(t.parallel),function(t){t=t&&t.parallelAxisDefault,Ra(t,"axisLabel"),Ra(t&&t.axisPointer,"label")}),rw(Ba(t.calendar),function(t){La(t,"itemStyle"),Ra(t,"dayLabel"),Ra(t,"monthLabel"),Ra(t,"yearLabel")}),rw(Ba(t.radar),function(t){Ra(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(Ba(t.geo),function(t){aw(t)&&(Na(t),rw(Ba(t.regions),function(t){Na(t)}))}),rw(Ba(t.timeline),function(t){Na(t),La(t,"label"),La(t,"itemStyle"),La(t,"controlStyle",!0),t=t.data,x(t)&&f(t,function(t){C(t)&&(La(t,"label"),La(t,"itemStyle"))})}),rw(Ba(t.toolbox),function(t){La(t,"iconStyle"),rw(t.feature,function(t){La(t,"iconStyle")})}),Ra(za(t.axisPointer),"label"),Ra(za(t.tooltip).axisPointer,"label")}function Va(t){t&&f(lw,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function Ya(t){var e=t&&t.itemStyle;if(e)for(var i=0;i<uw.length;i++){var n=uw[i][1],o=uw[i][0];null!=e[n]&&(e[o]=e[n])}}function Ha(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Wa(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Xa(t,e){Fa(t,e),t.series=zi(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),Ha(t.label),(e=t.data)&&!I(e))for(var n=0;n<e.length;n++)Ha(e[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset)}else if("gauge"===i){var o=function(t,e){for(var i=e.split(","),n=t,o=0;o<i.length&&null!=(n=n&&n[i[o]]);o++);return n}(t,"pointer.color");if(null!=o){for(var r,a=t,s="itemStyle.color",l=s.split(","),u=a,c=0;c<l.length-1;c++)null==u[r=l[c]]&&(u[r]={}),u=u[r];null!=u[l[c]]||(u[l[c]]=o)}}else if("bar"===i){if(Ya(t),Ya(t.backgroundStyle),Ya(t.emphasis),(e=t.data)&&!I(e))for(n=0;n<e.length;n++)"object"==typeof e[n]&&(Ya(e[n]),Ya(e[n]&&e[n].emphasis))}else"sunburst"===i?((s=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),Wa(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,Wa)):"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),Va(t)}}),t.dataRange&&(t.visualMap=t.dataRange),f(hw,function(e){(e=t[e])&&f(e=x(e)?e:[e],function(t){Va(t)})})}function Ua(t){f(t,function(e,i){var n=[],o=[NaN,NaN],r=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex;a.modify(r,function(r,l,h){var u,c,p=a.get(e.stackedDimension,h);if(isNaN(p))return o;s?c=a.getRawIndex(h):u=a.get(e.stackedByDimension,h);for(var d,f,g,y=NaN,m=i-1;0<=m;m--){var v=t[m];if(0<=(c=s?c:v.data.rawIndexOf(v.stackedByDimension,u))&&(v=v.data.getByRawIndex(v.stackResultDimension,c),0<=p&&0<v||p<=0&&v<0)){d=p,f=v,g=void 0,g=Math.max(Si(d),Si(f)),d+=f,p=Iy<g?d:bi(d,g),y=v;break}}return n[0]=p,n[1]=y,n})})}function Ga(t){return t instanceof cw}function ja(t,e,i){i=i||Za(t);var n=e.seriesLayoutBy,o=function(t,e,i,n,o){var r,a;if(!t)return{dimensionsDefine:Ka(o),startIndex:a,dimensionsDetectedCount:r};var s;return e===zx?(s=t,"auto"===n||null==n?Qa(function(t){null!=t&&"-"!==t&&(b(t)?null==a&&(a=1):a=0)},i,s,10):a=T(n)?n:n?1:0,o||1!==a||(o=[],Qa(function(t,e){o[e]=null!=t?t+"":""},i,s,1/0)),r=o?o.length:i===Xx?s.length:s[0]?s[0].length:null):e===Fx?o=o||function(t){for(var e,i=0;i<t.length&&!(e=t[i++]););var n;if(e)return n=[],f(e,function(t,e){n.push(e)}),n}(t):e===Vx?o||(o=[],f(t,function(t,e){o.push(e)})):e===Bx&&(n=Vi(t[0]),r=x(n)&&n.length||1),{startIndex:a,dimensionsDefine:Ka(o),dimensionsDetectedCount:r}}(t,i,n,e.sourceHeader,e.dimensions);return new cw({data:t,sourceFormat:i,seriesLayoutBy:n,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:a(e)})}function qa(t){return new cw({data:t,sourceFormat:I(t)?Yx:Bx})}function Za(t){var e=Hx;if(I(t))e=Yx;else if(x(t)){0===t.length&&(e=zx);for(var i=0,n=t.length;i<n;i++){var o=t[i];if(null!=o){if(x(o)){e=zx;break}if(C(o)){e=Fx;break}}}}else if(C(t))for(var r in t)if(j(t,r)&&d(t[r])){e=Vx;break}return e}function Ka(t){var e;if(t)return e=W(),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 Qa(t,e,i,n){if(e===Xx)for(var o=0;o<i.length&&o<n;o++)t(i[o]?i[o][0]:null,o);else for(var r=i[0]||[],o=0;o<r.length&&o<n;o++)t(r[o],o)}function $a(t){return(t=t.sourceFormat)===Fx||t===Vx}function Ja(t,e){var t=Ga(t)?t:qa(t),i=(this._source=t,this._data=t.data);t.sourceFormat===Yx&&(this._offset=0,this._dimSize=e,this._data=i),Jx(this,i,t)}function ts(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function es(t,e,i,n){return t[n]}function is(t,e){return yw[ss(t,e)]}function ns(t,e,i){return t.length}function os(t,e){return mw[ss(t,e)]}function rs(t,e,i){return t[e]}function as(t){return vw[t]}function ss(t,e){return t===zx?t+"_"+e:t}function ls(t,e,i){if(t){var n,o,e=t.getRawDataItem(e);if(null!=e)return n=(o=t.getStore()).getSource().sourceFormat,null!=i?(t=t.getDimensionIndex(i),i=o.getDimensionProperty(t),as(n)(e,t,i)):(o=e,n===Bx?Vi(e):o)}}function hs(){}function us(t){var e,i;return C(t)?t.type&&(i=t):e=t,{text:e,frag:i}}function cs(t){return new Mw(t)}function ps(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}function ds(){return ww<xw?ww++:null}function fs(){var t=ww%Tw*bw+Math.ceil(ww/Tw),t=xw<=ww?null:t<Sw?t:ww;return ww++,t}function gs(t,e){return e=e&&e.type,"ordinal"===e?t:null==(t="time"!==e||T(t)||null==t||"-"===t?t:+ki(t))||""===t?NaN:+t}function ys(t){return kw.get(t)}function ms(t,e){T(e)||Ni(""),this._opFn=Aw[t],this._rvalFloat=Oi(e)}function vs(t,e){t="desc"===t,this._resultLT=t?1:-1,this._incomparable="min"===(e=null==e?t?"min":"max":e)?-1/0:1/0}function _s(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Oi(e)}function xs(){}function ws(t){return Ms(t.sourceFormat)||Ni(""),t.data}function bs(t){var e=t.sourceFormat,i=t.data;if(Ms(e)||Ni(""),e===zx){for(var n=[],o=0,r=i.length;o<r;o++)n.push(i[o].slice());return n}if(e===Fx){for(n=[],o=0,r=i.length;o<r;o++)n.push(l({},i[o]));return n}}function Ss(t,e,i){if(null!=i)return T(i)||!isNaN(i)&&!j(e,i)?t[i]:j(e,i)?e[i]:void 0}function Ts(t){return a(t)}function Cs(t,e){var i=zi(t),t=i.length;t||Ni("");for(var n=0,o=t;n<o;n++)e=function(t,e){e.length||Ni(""),C(t)||Ni("");var i=t.type,n=Rw.get(i);return n||Ni(""),i=g(e,function(t){var e=t,t=n,i=new Ew,o=e.data,r=i.sourceFormat=e.sourceFormat,a=e.startIndex,s=(e.seriesLayoutBy!==Wx&&Ni(""),[]),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&&(j(l,i)&&Ni(""),l[i]=e)});else for(var h=0;h<e.dimensionsDetectedCount;h++)s.push({index:h});var u=is(r,Wx),c=(t.__isBuiltIn&&(i.getRawDataItem=function(t){return u(o,a,s,t)},i.getRawData=If(ws,null,e)),i.cloneRawData=If(bs,null,e),os(r,Wx)),p=(i.count=If(c,null,o,a,s),as(r)),d=(i.retrieveValue=function(t,e){return t=u(o,a,s,t),d(t,e)},i.retrieveValueFromItem=function(t,e){var i;return null!=t&&(i=s[e])?p(t,e,i.name):void 0});return i.getDimensionInfo=If(Ss,null,s,l),i.cloneAllDimensionInfo=If(Ts,null,s),i}),g(zi(n.transform({upstream:i[0],upstreamList:i,config:a(t.config)})),function(t,i){C(t)||Ni(""),t.data||Ni(""),Ms(Za(t.data))||Ni("");var n=e[0],i=n&&0===i&&!t.dimensions?((i=n.startIndex)&&(t.data=n.data.slice(0,i).concat(t.data)),{seriesLayoutBy:Wx,sourceHeader:i,dimensions:n.metaRawOption.dimensions}):{seriesLayoutBy:Wx,sourceHeader:0,dimensions:t.dimensions};return ja(t.data,i,null)})}(i[n],e),n!==o-1&&(e.length=Math.max(e.length,1));return e}function Ms(t){return t===zx||t===Fx}function Is(t){return 65535<t?Nw:Bw}function ks(){return[1/0,-1/0]}function As(t,e,i,n,o){if(i=Fw[i||"float"],o){var r=t[e],a=r&&r.length;if(a!==n){for(var s=new i(n),l=0;l<a;l++)s[l]=r[l];t[e]=s}}else t[e]=new i(n)}function Ds(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=W()}function Ps(t,e,i,n){return gs(t[n],this._dimensions[n])}function Os(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}function Ls(t){t.option.transform&&V(t.option.transform)}function Es(t){return"series"===t.mainType}function Rs(t){throw new Error(t)}function Ns(t,e){var i=t.color||"#6e7079",n=t.fontSize||12,o=t.fontWeight||"400",r=t.color||"#464646",a=t.fontSize||14,t=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+aa(n+"")+"px;color:"+aa(i)+";font-weight:"+aa(o+""),valueStyle:"font-size:"+aa(a+"")+"px;color:"+aa(r)+";font-weight:"+aa(t+"")}:{nameStyle:{fontSize:n,fill:i,fontWeight:o},valueStyle:{fontSize:a,fill:r,fontWeight:t}}}function Bs(t,e){return e.type=t,e}function zs(t){return"section"===t.type}function Fs(t){return zs(t)?Vs:Ys}function Vs(t,e,i,n){var o,r=e.noHeader,a=(h=function t(e){var i,n,o;return zs(e)?(i=0,n=e.blocks.length,o=1<n||0<n&&!e.noHeader,f(e.blocks,function(e){var n=t(e);i<=n&&(i=n+ +(o&&(!n||zs(e)&&!e.noHeader)))}),i):0}(e),{html:Ww[h],richText:Xw[h]}),s=[],h=e.blocks||[],u=(z(!h||x(h)),h=h||[],t.orderMode),c=(e.sortBlocks&&u&&(h=h.slice(),j(c={valueAsc:"asc",valueDesc:"desc"},u)?(o=new Pw(c[u],null),h.sort(function(t,e){return o.evaluate(t.sortParam,e.sortParam)})):"seriesDesc"===u&&h.reverse()),f(h,function(i,o){var r=e.valueFormatter,r=Fs(i)(r?l(l({},t),{valueFormatter:r}):t,i,0<o?a.html:0,n);null!=r&&s.push(r)}),"richText"===t.renderMode?s.join(a.richText):Ws(s.join(""),r?i:a.html));return r?c:(u=sa(e.header,"ordinal",t.useUTC),h=Ns(n,t.renderMode).nameStyle,"richText"===t.renderMode?Xs(t,u,h)+a.richText+c:Ws('<div style="'+h+";"+Hw+';">'+aa(u)+"</div>"+c,i))}function Ys(t,e,i,n){var o,r,a,s,l=t.renderMode,h=e.noName,u=e.noValue,c=!e.markerType,p=e.name,d=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(t){return g(t=x(t)?t:[t],function(t,e){return sa(t,x(r)?r[e]:r,d)})};if(!h||!u)return o=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",l),p=h?"":sa(p,"ordinal",d),r=e.valueType,f=u?[]:f(e.value),e=!c||!h,a=!c&&h,n=Ns(n,l),s=n.nameStyle,n=n.valueStyle,"richText"===l?(c?"":o)+(h?"":Xs(t,p,s))+(u?"":function(t,e,i,n,o){return o=[o],n=n?10:20,i&&o.push({padding:[0,0,0,n],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(x(e)?e.join(" "):e,o)}(t,f,e,a,n)):Ws((c?"":o)+(h?"":'<span style="'+s+";"+(c?"":"margin-left:2px")+'">'+aa(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,aa).join("&nbsp;&nbsp;")+"</span>"}(f,e,a,n)),i)}function Hs(t,e,i,n,o,r){if(t)return Fs(t)({useUTC:o,renderMode:i,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,r)}function Ws(t,e){return'<div style="margin: '+e+"px 0 0;"+Hw+';">'+t+'<div style="clear:both"></div></div>'}function Xs(t,e,i){return t.markupStyleCreator.wrapRichTextStyle(e,i)}function Us(t,e){return t=t.get("padding"),null!=t?t:"richText"===e?[8,10]:10}function Gs(){this.richTextStyles={},this._nextStyleNameId=Ei()}function js(t){function e(t,e){(e=l.getDimensionInfo(e))&&!1!==e.otherDims.tooltip&&(h?p.push(Bs("nameValue",{markerType:"subItem",markerColor:s,name:e.displayName,value:t,valueType:e.type})):(u.push(t),c.push(e.type)))}var i,n,o,r,a,s,l,h,u,c,p,d=t.series,g=t.dataIndex,t=t.multipleSeries,m=d.getData(),v=m.mapDimensionsAll("defaultedTooltip"),_=v.length,w=d.getRawValue(g),b=x(w),S=(S=g,ca((T=d).getData().getItemVisual(S,"style")[T.visualDrawType]));1<_||b&&!_?(T=w,r=g,a=v,s=S,l=d.getData(),h=y(T,function(t,e,i){return i=l.getDimensionInfo(i),t||i&&!1!==i.tooltip&&null!=i.displayName},!1),u=[],c=[],p=[],a.length?f(a,function(t){e(ls(l,r,t),t)}):f(T,e),i=(a={inlineValues:u,inlineValueTypes:c,blocks:p}).inlineValueTypes,n=a.blocks,o=(a=a.inlineValues)[0]):_?(T=m.getDimensionInfo(v[0]),o=a=ls(m,g,v[0]),i=T.type):o=a=b?w[0]:w;var _=Ui(d),v=_&&d.name||"",T=m.getName(g),b=t?v:T;return Bs("section",{header:v,noHeader:t||!_,sortParam:o,blocks:[Bs("nameValue",{markerType:"item",markerColor:S,name:b,noName:!F(b),value:a,valueType:i})].concat(n||[])})}function qs(t,e){return t.getName(e)||t.getId(e)}function Zs(){var t=null!==jw&&jw.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function Ks(t){var e,i,n=t.name;Ui(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 Qs(t){return t.model.getRawData().count()}function $s(t){return t=t.model,t.setData(t.getRawData().cloneShallow()),Js}function Js(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function tl(t,e){f(X(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(i){t.wrapMethod(i,_(el,e))})}function el(t,e){return t=il(t),t&&t.setOutputEnd((e||this).count()),e}function il(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 nl(){this.group=new wy,this.uid=zr("viewComponent")}function ol(){var t=Zi();return function(e){var i=t(e),e=e.pipelineContext,n=!!i.large,o=!!i.progressiveRender,r=i.large=!(!e||!e.large),i=i.progressiveRender=!(!e||!e.progressiveRender);return!(n==r&&o==i)&&"reset"}}function rl(){this.group=new wy,this.uid=zr("viewChart"),this.renderTask=cs({plan:ll,reset:hl}),this.renderTask.context={view:this}}function al(t,e,i){t&&Co(t)&&("emphasis"===e?ho:uo)(t,i)}function sl(t,e,i){var n,o=qi(t,e),r=e&&null!=e.highlightKey?(e=e.highlightKey,n=null==(n=ov[e])&&nv<=32?ov[e]=nv++:n):null;null!=o?f(zi(o),function(e){al(t.getItemGraphicEl(e),i,r)}):t.eachItemGraphicEl(function(t){al(t,i,r)})}function ll(t){return Qw(t.model)}function hl(t){var e=t.model,i=t.ecModel,n=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,t=t.view,a=o&&Kw(o).updateMethod,r=r?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==r&&t[r](e,i,n,o),Jw[r]}function ul(t,e,i){function n(){c=(new Date).getTime(),p=null,t.apply(s,l||[])}function o(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];r=(new Date).getTime(),s=this,l=t;var d=h||e,f=h||i;h=null,a=r-(f?u:c)-d,clearTimeout(p),f?p=setTimeout(n,d):0<=a?n():p=setTimeout(n,-a),u=r}var r,a,s,l,h,u=0,c=0,p=null;return e=e||0,o.clear=function(){p&&(clearTimeout(p),p=null)},o.debounceNextCall=function(t){h=t},o}function cl(t,e,i,n){var o=t[e];if(o){var r=o[tb]||o,a=o[ib];if(o[eb]!==i||a!==n){if(null==i||!n)return t[e]=r;(o=t[e]=ul(r,i,"debounce"===n))[tb]=r,o[ib]=n,o[eb]=i}}}function pl(t,e){var i=t[e];i&&i[tb]&&(i.clear&&i.clear(),t[e]=i[tb])}function dl(t,e){return(t=t.visualStyleMapper||ob[e])||(console.warn("Unkown style type '"+e+"'."),ob.itemStyle)}function fl(t,e){return(t=t.visualDrawType||rb[e])||(console.warn("Unkown style type '"+e+"'."),"fill")}function gl(t,e,i,n){this._stageTaskMap=W(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}function yl(t){t.overallReset(t.ecModel,t.api,t.payload)}function ml(t){return t.overallProgress&&vl}function vl(){this.agent.dirty(),this.getDownstream().dirty()}function _l(){this.agent&&this.agent.dirty()}function xl(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function wl(t){return t.useClearVisual&&t.data.clearAllVisual(),t=t.resetDefines=zi(t.reset(t.model,t.ecModel,t.api,t.payload)),1<t.length?g(t,function(t,e){return bl(e)}):ub}function bl(t){return function(e,i){var n=i.data,o=i.resetDefines[t];if(o&&o.dataEach)for(var r=e.start;r<e.end;r++)o.dataEach(n,r);else o&&o.progress&&o.progress(e,n)}}function Sl(t){return t.data.count()}function Tl(t,e){for(var i in e.prototype)t[i]=q}function Cl(){return{axisLine:{lineStyle:{color:db}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}}function Ml(){}function Il(t,e,i,n,o){var r=t+e;i.isSilent(r)||n.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e,n,a=t.seriesIndex,s=t.option.selectedMap,h=o.selected,u=0;u<h.length;u++)h[u].seriesIndex===a&&(n=qi(e=t.getData(),o.fromActionPayload),i.trigger(r,{type:r,seriesId:t.id,name:x(n)?e.getName(n[0]):e.getName(n),selected:b(s)?s:l({},s)}))})}function kl(t,e,i){for(var n;t&&(!e(t)||(n=t,!i));)t=t.__hostTarget||t.parent;return n}function Al(){this._id="__ec_inner_"+mb++}function Dl(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 Pl(t,e,i,n,o,r,a){var s=0===t.indexOf("empty");return(a=0===(t=s?t.substr(5,1).toLowerCase()+t.substr(6):t).indexOf("image://")?cr(t.slice(8),new py(e,i,n,o),a?"center":"cover"):0===t.indexOf("path://")?ur(t.slice(7),{},new py(e,i,n,o),a?"center":"cover"):new Mb({shape:{symbolType:t,x:e,y:i,width:n,height:o}})).__isEmptyBrush=s,a.setColor=Dl,r&&a.setColor(r),a}function Ol(t,e){if(null!=t)return[wi((t=x(t)?t:[t,t])[0],e[0])||0,wi(E(t[1],t[0]),e[1])||0]}function Ll(t,e,i){for(var n,o,r,a,s,l,h,u,c,p="radial"===e.type?(n=t,o=e,a=(r=i).width,s=r.height,l=Math.min(a,s),h=null==o.x?.5:o.x,u=null==o.y?.5:o.y,c=null==o.r?.5:o.r,o.global||(h=h*a+r.x,u=u*s+r.y,c*=l),n.createRadialGradient(h,u,0,h,u,c)):(o=t,a=i,r=null==(s=e).x?0:s.x,l=null==s.x2?1:s.x2,n=null==s.y?0:s.y,h=null==s.y2?0:s.y2,s.global||(r=r*a.width+a.x,l=l*a.width+a.x,n=n*a.height+a.y,h=h*a.height+a.y),r=isNaN(r)?0:r,l=isNaN(l)?1:l,n=isNaN(n)?0:n,h=isNaN(h)?0:h,o.createLinearGradient(r,n,l,h)),d=e.colorStops,f=0;f<d.length;f++)p.addColorStop(d[f].offset,d[f].color);return p}function El(t){return parseInt(t,10)}function Rl(t,e,i){var n=["width","height"][e],o=["clientWidth","clientHeight"][e],r=["paddingLeft","paddingTop"][e],e=["paddingRight","paddingBottom"][e];return null!=i[n]&&"auto"!==i[n]?parseFloat(i[n]):(i=document.defaultView.getComputedStyle(t),(t[o]||El(i[n])||El(t.style[n]))-(El(i[r])||0)-(El(i[e])||0)|0)}function Nl(t){var e,i=t.style,n=i.lineDash&&0<i.lineWidth&&(o=i.lineDash,n=i.lineWidth,o&&"solid"!==o&&0<n?"dashed"===o?[4*n,2*n]:"dotted"===o?[n]:T(o)?[o]:x(o)?o:null:null),o=i.lineDashOffset;return n&&(e=i.strokeNoScale&&t.getLineScale?t.getLineScale():1)&&1!==e&&(n=g(n,function(t){return t/e}),o/=e),[n,o]}function Bl(t){var e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))}function zl(t){return"string"==typeof t&&"none"!==t}function Fl(t){return null!=(t=t.fill)&&"none"!==t}function Vl(t,e){var i;null!=e.fillOpacity&&1!==e.fillOpacity?(i=t.globalAlpha,t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=i):t.fill()}function Yl(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 Hl(t,e,i){var i=un(e.image,e.__image,i);if(pn(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)*Df),i.scaleSelf(e.scaleX||1,e.scaleY||1),t.setTransform(i)),t}function Wl(t,e,i,n,o){var r,a=!1;if(!n&&e===(i=i||{}))return!1;!n&&e.opacity===i.opacity||(Gl(t,o),a=!0,r=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(r)?Gy.opacity:r),!n&&e.blend===i.blend||(a||(Gl(t,o),a=!0),t.globalCompositeOperation=e.blend||Gy.blend);for(var s=0;s<kb.length;s++){var l=kb[s];!n&&e[l]===i[l]||(a||(Gl(t,o),a=!0),t[l]=t.dpr*(e[l]||0))}return!n&&e.shadowColor===i.shadowColor||(a||(Gl(t,o),a=!0),t.shadowColor=e.shadowColor||Gy.shadowColor),a}function Xl(t,e,i,n,o){var r=jl(e,o.inHover),a=n?null:i&&jl(i,o.inHover)||{};if(r!==a){var s=Wl(t,r,a,n,o);(n||r.fill!==a.fill)&&(s||(Gl(t,o),s=!0),zl(r.fill))&&(t.fillStyle=r.fill),(n||r.stroke!==a.stroke)&&(s||(Gl(t,o),s=!0),zl(r.stroke))&&(t.strokeStyle=r.stroke),!n&&r.opacity===a.opacity||(s||(Gl(t,o),s=!0),t.globalAlpha=null==r.opacity?1:r.opacity),e.hasStroke()&&(i=r.lineWidth/(r.strokeNoScale&&e.getLineScale?e.getLineScale():1),t.lineWidth!==i)&&(s||(Gl(t,o),s=!0),t.lineWidth=i);for(var l=0;l<Ab.length;l++){var h=Ab[l],u=h[0];!n&&r[u]===a[u]||(s||(Gl(t,o),s=!0),t[u]=r[u]||h[1])}}}function Ul(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 Gl(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function jl(t,e){return e&&t.__hoverStyle||t.style}function ql(t,e){Zl(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Zl(t,e,i,n){var o=e.transform;if(e.shouldBePainted(i.viewWidth,i.viewHeight,!1,!1)){var r=e.__clipPaths,a=i.prevElClipPaths,s=!1,l=!1;if(!a||function(t,e){if(t!==e&&(t||e)){if(!t||!e||t.length!==e.length)return 1;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return 1}}(r,a)){if(a&&a.length&&(Gl(t,i),t.restore(),l=s=!0,i.prevElClipPaths=null,i.allClipped=!1,i.prevEl=null),r&&r.length){Gl(t,i),t.save();for(var h=r,u=t,a=i,c=!1,p=0;p<h.length;p++){var d=h[p],c=c||d.isZeroArea();Ul(u,d),u.beginPath(),d.buildPath(u,d.shape),u.clip()}a.allClipped=c,s=!0}i.prevElClipPaths=r}if(i.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var f,g,y,m,v,_,x,w,b,S,T,C,M,I,k,A,D,P,O,L,E,R,N,a=i.prevEl,B=(a||(l=s=!0),e instanceof Bm&&e.autoBatch&&(r=e.style,B=Fl(r),f=Bl(r),!(r.lineDash||!(+B^+f)||B&&"string"!=typeof r.fill||f&&"string"!=typeof r.stroke||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1))),s=(s||(f=o,r=a.transform,f&&r?f[0]!==r[0]||f[1]!==r[1]||f[2]!==r[2]||f[3]!==r[3]||f[4]!==r[4]||f[5]!==r[5]:f||r)?(Gl(t,i),Ul(t,e)):B||Gl(t,i),jl(e,i.inHover));if(e instanceof Bm)i.lastDrawType!==Db&&(l=!0,i.lastDrawType=Db),Xl(t,e,a,l,i),B&&(i.batchFill||i.batchStroke)||t.beginPath(),o=t,r=e,H=B,k=Bl(m=s),A=Fl(m),D=m.strokePercent,P=D<1,O=!r.path,r.silent&&!P||!O||r.createPathProxy(),L=r.path||Ib,E=r.__dirty,H||(v=m.fill,N=m.stroke,_=A&&!!v.colorStops,x=k&&!!N.colorStops,w=A&&!!v.image,b=k&&!!N.image,R=M=C=T=S=void 0,(_||x)&&(R=r.getBoundingRect()),_&&(S=E?Ll(o,v,R):r.__canvasFillGradient,r.__canvasFillGradient=S),x&&(T=E?Ll(o,N,R):r.__canvasStrokeGradient,r.__canvasStrokeGradient=T),w&&(C=E||!r.__canvasFillPattern?Hl(o,v,r):r.__canvasFillPattern,r.__canvasFillPattern=C),b&&(M=E||!r.__canvasStrokePattern?Hl(o,N,r):r.__canvasStrokePattern,r.__canvasStrokePattern=C),_?o.fillStyle=S:w&&(C?o.fillStyle=C:A=!1),x?o.strokeStyle=T:b&&(M?o.strokeStyle=M:k=!1)),R=r.getGlobalScale(),L.setScale(R[0],R[1],r.segmentIgnoreThreshold),o.setLineDash&&m.lineDash&&(I=(v=Nl(r))[0],Y=v[1]),N=!0,(O||E&ig)&&(L.setDPR(o.dpr),P?L.setContext(null):(L.setContext(o),N=!1),L.reset(),r.buildPath(L,r.shape,H),L.toStatic(),r.pathUpdated()),N&&L.rebuildPath(o,P?D:1),I&&(o.setLineDash(I),o.lineDashOffset=Y),H||(m.strokeFirst?(k&&Yl(o,m),A&&Vl(o,m)):(A&&Vl(o,m),k&&Yl(o,m))),I&&o.setLineDash([]),B&&(i.batchFill=s.fill||"",i.batchStroke=s.stroke||"");else if(e instanceof Fm)i.lastDrawType!==Ob&&(l=!0,i.lastDrawType=Ob),Xl(t,e,a,l,i),_=t,S=e,null!=(C=(w=s).text)&&(C+=""),C&&(_.font=w.font||cf,_.textAlign=w.textAlign,_.textBaseline=w.textBaseline,T=x=void 0,_.setLineDash&&w.lineDash&&(x=(S=Nl(S))[0],T=S[1]),x&&(_.setLineDash(x),_.lineDashOffset=T),w.strokeFirst?(Bl(w)&&_.strokeText(C,w.x,w.y),Fl(w)&&_.fillText(C,w.x,w.y)):(Fl(w)&&_.fillText(C,w.x,w.y),Bl(w)&&_.strokeText(C,w.x,w.y)),x)&&_.setLineDash([]);else if(e instanceof Wm)i.lastDrawType!==Pb&&(l=!0,i.lastDrawType=Pb),b=a,M=l,Wl(t,jl(e,(R=i).inHover),b&&jl(b,R.inHover),M,R),v=t,O=s,(r=(E=e).__image=un(O.image,E.__image,E,E.onload))&&pn(r)&&(N=O.x||0,L=O.y||0,P=E.getWidth(),E=E.getHeight(),D=r.width/r.height,null==P&&null!=E?P=E*D:null==E&&null!=P?E=P/D:null==P&&null==E&&(P=r.width,E=r.height),O.sWidth&&O.sHeight?(g=O.sx||0,y=O.sy||0,v.drawImage(r,g,y,O.sWidth,O.sHeight,N,L,P,E)):O.sx&&O.sy?(g=O.sx,y=O.sy,v.drawImage(r,g,y,P-g,E-y,N,L,P,E)):v.drawImage(r,N,L,P,E));else if(e.getTemporalDisplayables){i.lastDrawType!==Lb&&(l=!0,i.lastDrawType=Lb);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(),Zl(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(),Zl(V,G,U,j===q-1),G.innerAfterBrush(),G.afterBrush&&G.afterBrush(),U.prevEl=G;Y.clearTemporalDisplayables(),Y.notClear=!0,V.restore()}B&&n&&Gl(t,i),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(i.prevEl=e).__dirty=0,e.__isRendered=!0}}else e.__dirty&=~eg,e.__isRendered=!1}function Kl(t,e){if("none"===t)return null;var i=e.getDevicePixelRatio(),n=e.getZr(),o="svg"===n.painter.type,e=(t.dirty&&Eb.delete(t),Eb.get(t));if(e)return e;for(var r,a=h(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512}),e=("none"===a.backgroundColor&&(a.backgroundColor=null),{repeat:"repeat"}),s=e,l=[i],u=!0,c=0;c<Nb.length;++c){var p=a[Nb[c]];if(null!=p&&!x(p)&&!b(p)&&!T(p)&&"boolean"!=typeof p){u=!1;break}l.push(p)}u&&(r=l.join(",")+(o?"-svg":""),w=Rb.get(r))&&(o?s.svgElement=w:s.image=w);var d,f=function t(e){if(!e||0===e.length)return[[0,0]];if(T(e))return[[r=Math.ceil(e),r]];for(var i=!0,n=0;n<e.length;++n)if(!T(e[n])){i=!1;break}if(i)return t([e]);var o=[];for(n=0;n<e.length;++n){var r;T(e[n])?(r=Math.ceil(e[n]),o.push([r,r])):(r=g(e[n],function(t){return Math.ceil(t)})).length%2==1?o.push(r.concat(r)):o.push(r)}return o}(a.dashArrayX),y=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(T(t))return[e=Math.ceil(t),e];var e=g(t,function(t){return Math.ceil(t)});return t.length%2?e.concat(e):e}(a.dashArrayY),m=function t(e){if(!e||0===e.length)return[["rect"]];if(b(e))return[[e]];for(var i=!0,n=0;n<e.length;++n)if(!b(e[n])){i=!1;break}if(i)return t([e]);var o=[];for(n=0;n<e.length;++n)b(e[n])?o.push([e[n]]):o.push(e[n]);return o}(a.symbol),v=function(t){return g(t,Ql)}(f),_=Ql(y),w=!o&&df.createCanvas(),S=o&&{tag:"g",attrs:{},key:"dcl",children:[]},C=function(){for(var t=1,e=0,i=v.length;e<i;++e)t=Ri(t,v[e]);for(var n=1,e=0,i=m.length;e<i;++e)n=Ri(n,m[e].length);t*=n;var o=_*v.length*m.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(o,a.maxTileHeight))}}();w&&(w.width=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,r,s,l){var h=o?1:i,l=Pl(l,t*h,e*h,r*h,s*h,a.color,a.symbolKeepAspect);o?(t=n.painter.renderOneToVNode(l))&&S.children.push(t):ql(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&&Rb.put(r,w||S),s.image=w,s.svgElement=S,s.svgWidth=C.width,s.svgHeight=C.height,e.rotation=a.rotation,e.scaleX=e.scaleY=o?1:1/i,Eb.set(t,e),t.dirty=!1,e}function Ql(t){for(var e=0,i=0;i<t.length;++i)e+=t[i];return t.length%2==1?2*e:e}function $l(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];if(!this.isDisposed())return th(this,t,e);this.id}}function Jl(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return th(this,t,e)}}function th(t,e,i){return i[0]=i[0]&&i[0].toLowerCase(),Bf.prototype[e].apply(t,i)}function eh(){return null!==Ub&&Ub.apply(this,arguments)||this}function ih(t,e,i){function n(t,e){return t.__prio-e.__prio}var o=uS.call(this,new fb)||this,t=(o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],i=i||{},b(e)&&(e=_S[e]),o._dom=t,o._zr=vi(t,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:null!=i.useDirtyRect&&i.useDirtyRect})),i=(o._ssr=i.ssr,o._throttledZrFlush=ul(If(t.flush,t),17),(e=a(e))&&Xa(e,!0),o._theme=e,o._locale=b(e=i.locale||ax)?(i=ox[e.toUpperCase()]||{},e===ex||e===ix?a(i):s(a(i),a(ox[nx]),!1)):s(a(e),a(ox[nx]),!1),o._coordSysMgr=new iw,o._api=aS(o));return Dt(vS,n),Dt(yS,n),o._scheduler=new hb(o,i,yS,vS),o._messageCenter=new cS,o._initEvents(),o.resize=If(o.resize,o),t.animation.on("frame",o._onframe,o),eS(t,o),iS(t,o),V(o),o}function nh(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function oh(t){for(var e=[],i=t.currentStates,n=0;n<i.length;n++){var o=i[n];"emphasis"!==o&&"blur"!==o&&"select"!==o&&e.push(o)}t.selected&&t.states.select&&e.push("select"),t.hoverState===hv&&t.states.emphasis?e.push("emphasis"):t.hoverState===lv&&t.states.blur&&e.push("blur"),t.useStates(e)}function rh(t,e){var i,n;t.preventAutoZ||(i=t.get("z")||0,n=t.get("zlevel")||0,e.eachRendered(function(t){return function t(e,i,n,o){var r=e.getTextContent(),a=e.getTextGuideLine(),s=e.isGroup;if(s)for(var l=e.childrenRef(),h=0;h<l.length;h++)o=Math.max(t(l[h],i,n,o),o);else e.z=i,e.zlevel=n,o=Math.max(e.z2,o);return r&&(r.z=i,r.zlevel=n,isFinite(o))&&(r.z2=o+2),a&&(s=e.textGuideLineConfig,a.z=i,a.zlevel=n,isFinite(o))&&(a.z2=o+(s&&s.showAbove?1:-1)),o}(t,i,n,-1/0),!0}))}function ah(t,e){e.eachRendered(function(t){var e,i;nr(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 sh(t,e){var i=t.getModel("stateAnimation"),n=t.isAnimationEnabled(),t=i.get("duration"),o=0<t?{duration:t,delay:i.get("delay"),easing:i.get("easing")}:null;e.eachRendered(function(t){var e,i,r;t.states&&t.states.emphasis&&(nr(t)||(t instanceof Bm&&((r=rv(i=t)).normalFill=i.style.fill,r.normalStroke=i.style.stroke,i=i.states.select||{},r.selectFill=i.style&&i.style.fill||null,r.selectStroke=i.style&&i.style.stroke||null),t.__dirty&&(r=t.prevStates)&&t.useStates(r),n&&(t.stateTransition=o,i=t.getTextContent(),e=t.getTextGuideLine(),i&&(i.stateTransition=o),e)&&(e.stateTransition=o),t.__dirty&&oh(t)))})}function lh(t){bS[t]=!1}function hh(t){return wS[(e=CS,(t=t).getAttribute?t.getAttribute(e):t[e])];var e}function uh(t,e){_S[t]=e}function ch(t){u(mS,t)<0&&mS.push(t)}function ph(t,e){xh(yS,t,e,2e3)}function dh(t){gh("afterinit",t)}function fh(t){gh("afterupdate",t)}function gh(t,e){Bb.on(t,e)}function yh(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,gS[e]||(z(Wb.test(n)&&Wb.test(e)),fS[n]||(fS[n]={action:i,actionInfo:t}),gS[e]=n)}function mh(t,e){iw.register(t,e)}function vh(t,e){xh(vS,t,e,1e3,"layout")}function _h(t,e){xh(vS,t,e,3e3,"visual")}function xh(t,e,i,n,o){(w(e)||C(e))&&(i=e,e=n),0<=u(MS,i)||(MS.push(i),(n=hb.wrapStageHandler(i,o)).__prio=e,n.__raw=i,t.push(n))}function wh(t,e){xS[t]=e}function bh(t,e,i){var n=zb.registerMap;n&&n(t,e,i)}function Sh(t){var e=(t=a(t)).type,i=(e||Ni(""),e.split(":")),n=(2!==i.length&&Ni(""),!1);"echarts"===i[0]&&(e=i[1],n=!0),t.__isBuiltIn=n,Rw.set(e,t)}function Th(t){return null==t?0:t.length||1}function Ch(t){return t}function Mh(t,e,i,n,o,r){this._old=t,this._new=e,this._oldKeyGetter=i||Ch,this._newKeyGetter=n||Ch,this.context=o,this._diffModeMultiple="multiple"===r}function Ih(t,e){this._encode=t,this._schema=e}function kh(t,e){var i={},n=i.encode={},o=W(),r=[],a=[],s={},l=(f(t.dimensions,function(e){var i,l,h=t.getDimensionInfo(e),u=h.coordDim;u&&(i=h.coordDimIndex,Ah(n,u)[i]=e,h.isExtraCoord||(o.set(u,1),"ordinal"!==(l=h.type)&&"time"!==l&&(r[0]=e),Ah(s,u)[i]=t.getDimensionIndex(h.name)),h.defaultTooltip)&&a.push(e),Nx.each(function(t,e){var i=Ah(n,e),e=h.otherDims[e];null!=e&&!1!==e&&(i[e]=h.name)})}),[]),h={},u=(o.each(function(t,e){var i=n[e];h[e]=i[0],l=l.concat(i)}),i.dataDimsOnCoord=l,i.dataDimIndicesOnCoord=g(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),i.encodeFirstDimNotExtra=h,n.label),u=(u&&u.length&&(r=u.slice()),n.tooltip);return u&&u.length?a=u.slice():a.length||(a=r.slice()),n.defaultedLabel=r,n.defaultedTooltip=a,i.userOutput=new RS(s,e),i}function Ah(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Dh(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}function Ph(t){return t instanceof FS}function Oh(t){for(var e=W(),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 Lh(t){var e=BS(t);return e.dimNameMap||(e.dimNameMap=Oh(t.dimensionsDefine))}function Eh(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"];for(var i,n,o=!(this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"]),r=(Ph(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(o=!0,i=t),i=i||["x","y"],{}),a=[],s={},l=!1,h={},u=0;u<i.length;u++){var c=i[u],c=b(c)?new NS({name:c}):c instanceof NS?c:new NS(c),p=c.name,d=(c.type=c.type||"float",c.coordDim||(c.coordDim=p,c.coordDimIndex=0),c.otherDims=c.otherDims||{});a.push(p),null!=h[p]&&(l=!0),(r[p]=c).createInvertedIndices&&(s[p]=[]),0===d.itemName&&(this._nameDimIdx=u),0===d.itemId&&(this._idDimIdx=u),o&&(c.storeDimIndex=u)}this.dimensions=a,this._dimInfos=r,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted&&(n=this._dimIdxToName=W(),f(a,function(t){n.set(r[t].storeDimIndex,t)}))}function Rh(t,e){function i(t){var e,i,n,o=x[t];return o<0?(e=C(e=u[t])?e:{name:e},i=new NS,null!=(n=e.name)&&null!=m.get(n)&&(i.name=i.displayName=n),null!=e.type&&(i.type=e.type),null!=e.displayName&&(i.displayName=e.displayName),x[t]=p.length,i.storeDimIndex=t,p.push(i),i):p[o]}function n(t,e,i){null!=Nx.get(e)?t.otherDims[e]=i:(t.coordDim=e,t.coordDimIndex=i,c.set(e,!0))}function o(t){null==t.name&&(t.name=t.coordDim)}Ga(t)||(t=qa(t));for(var r,a,s=(e=e||{}).coordDimensions||[],u=e.dimensionsDefine||t.dimensionsDefine||[],c=W(),p=[],d=(g=t,r=s,v=e.dimensionsCount,a=Math.max(g.dimensionsDetectedCount||1,r.length,u.length,v||0),f(r,function(t){C(t)&&(t=t.dimsDef)&&(a=Math.max(a,t.length))}),a),g=e.canOmitUnusedDimensions&&30<d,y=u===t.dimensionsDefine,m=y?Lh(t):Oh(u),v=e.encodeDefine,_=W(v=!v&&e.encodeDefaulter?e.encodeDefaulter(t,d):v),x=new zw(d),w=0;w<x.length;w++)x[w]=-1;if(!g)for(w=0;w<d;w++)i(w);_.each(function(t,e){var o,t=zi(t).slice();1===t.length&&!b(t[0])&&t[0]<0?_.set(e,!1):(o=_.set(e,[]),f(t,function(t,r){null!=(t=b(t)?m.get(t):t)&&t<d&&n(i(o[r]=t),e,r)}))});var S=0;f(s,function(t){b(t)?(a=t,r={}):(a=(r=t).name,t=r.ordinalMeta,r.ordinalMeta=null,(r=l({},r)).ordinalMeta=t,e=r.dimsDef,o=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null);var e,o,r,a,s=_.get(a);if(!1!==s){if(!(s=zi(s)).length)for(var u=0;u<(e&&e.length||1);u++){for(;S<d&&null!=i(S).coordDim;)S++;S<d&&s.push(S++)}f(s,function(t,s){t=i(t),y&&null!=r.type&&(t.type=r.type),n(h(t,r),a,s),null==t.name&&e&&(C(s=e[s])||(s={name:s}),t.name=t.displayName=s.name,t.defaultTooltip=s.defaultTooltip),o&&h(t.otherDims,o)})}});var T=e.generateCoord,M=null!=(I=e.generateCoordCount),I=T?I||1:0,k=T||"value";if(g)f(p,function(t){o(t)}),p.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var A=0;A<d;A++){var D=i(A);null==D.coordDim&&(D.coordDim=function(t,e,i){var n=e.data;if(i||n.hasOwnProperty(t)){for(var o=0;n.hasOwnProperty(t+o);)o++;t+=o}return e.set(t,!0),t}(k,c,M),D.coordDimIndex=0,(!T||I<=0)&&(D.isExtraCoord=!0),I--),o(D),null!=D.type||ba(t,A)!==Ux.Must&&(!D.isExtraCoord||null==D.otherDims.itemName&&null==D.otherDims.seriesName)||(D.type="ordinal")}for(var P=p,O=W(),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 FS({source:t,dimensions:p,fullDimensionCount:d,dimensionOmitted:g})}function Nh(t){return"category"===t.get("type")}function Bh(t,e,i){var n,o,r,a,s,l,h,u,c,p=(i=i||{}).byIndex,d=i.stackedCoordDimension,g=(Ph(e.schema)?(o=e.schema,n=o.dimensions,r=e.store):n=e,!(!t||!t.get("stack")));return f(n,function(t,e){b(t)&&(n[e]=t={name:t}),g&&!t.isExtraCoord&&(p||a||!t.ordinalMeta||(a=t),s||"ordinal"===t.type||"time"===t.type||d&&d!==t.coordDim||(s=t))}),!s||p||a||(p=!0),s&&(l="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,a&&(a.createInvertedIndices=!0),u=s.coordDim,i=s.type,c=0,f(n,function(t){t.coordDim===u&&c++}),e={name:l,coordDim:u,coordDimIndex:c,type:i,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},t={name:h,coordDim:h,coordDimIndex:c+1,type:i,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1},o?(r&&(e.storeDimIndex=r.ensureCalculationDimension(h,i),t.storeDimIndex=r.ensureCalculationDimension(l,i)),o.appendCalculationDimension(e),o.appendCalculationDimension(t)):(n.push(e),n.push(t))),{stackedDimension:s&&s.name,stackedByDimension:a&&a.name,isStackedByIndex:p,stackedOverDimension:h,stackResultDimension:l}}function zh(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Fh(t,e){return zh(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Vh(t,e,i){i=i||{};var n,o,r,a,s,l,h=e.getSourceManager(),u=!1,t=(t?(u=!0,n=qa(t)):u=(n=h.getSource()).sourceFormat===Bx,function(t){var e=t.get("coordinateSystem"),i=new GS(e);if(e=jS[e])return e(t,i,i.axisMap,i.categoryAxisMap),i}(e)),c=(o=t,c=(c=e).get("coordinateSystem"),c=iw.get(c),p=(p=o&&o.coordSysDims?g(o.coordSysDims,function(t){var e={name:t},t=o.axisMap.get(t);return t&&(t=t.get("type"),e.type="category"===(t=t)?"ordinal":"time"===t?"time":"float"),e}):p)||c&&(c.getDimensionsInfo?c.getDimensionsInfo():c.dimensions.slice())||["x","y"]),p=i.useEncodeDefaulter,p=w(p)?p:p?_(xa,c,e):null,c={coordDimensions:c,generateCoord:i.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:p,canOmitUnusedDimensions:!u},p=Rh(n,c),d=(c=p.dimensions,r=i.createInvertedIndices,(a=t)&&f(c,function(t,e){var i=t.coordDim,i=a.categoryAxisMap.get(i);i&&(null==s&&(s=e),t.ordinalMeta=i.getOrdinalMeta(),r)&&(t.createInvertedIndices=!0),null!=t.otherDims.itemName&&(l=!0)}),l||null==s||(c[s].otherDims.itemName=0),s),i=u?null:h.getSharedDataStore(p),t=Bh(e,{schema:p,store:i}),c=new US(p,e),p=(c.setCalculationInfo(t),null==d||(h=n).sourceFormat!==Bx||x(Vi(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 Yh(t){this._setting=t||{},this._extent=[1/0,-1/0]}function Hh(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++ZS}function Wh(t){return C(t)&&null!=t.value?t.value:t+""}function Xh(t){return"interval"===t.type||"log"===t.type}function Uh(t,e,i,n){var o={},r=t[1]-t[0],r=o.interval=Pi(r/e,!0),e=(null!=i&&r<i&&(r=o.interval=i),null!=n&&n<r&&(r=o.interval=n),o.intervalPrecision=jh(r)),i=o.niceTickExtent=[bi(Math.ceil(t[0]/r)*r,e),bi(Math.floor(t[1]/r)*r,e)];return n=i,r=t,isFinite(n[0])||(n[0]=r[0]),isFinite(n[1])||(n[1]=r[1]),qh(n,0,r),qh(n,1,r),n[0]>n[1]&&(n[0]=n[1]),o}function Gh(t){var e=Math.pow(10,Di(t)),t=t/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,bi(t*e)}function jh(t){return Si(t)+2}function qh(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function Zh(t,e){return t>=e[0]&&t<=e[1]}function Kh(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Qh(t,e){return t*(e[1]-e[0])+e[0]}function $h(t){var t=QS.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return x(e=e||new KS({}))&&(e=new KS({categories:g(e,function(t){return C(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}function Jh(){var t=null!==JS&&JS.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}function tu(t){return x(t)?iT?new Float32Array(t):t:new nT(t)}function eu(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function iu(t){return t.dim+t.index}function nu(t,e){var i=[];return e.eachSeriesByType(t,function(t){var e;(e=t).coordinateSystem&&"cartesian2d"===e.coordinateSystem.type&&i.push(t)}),i}function ou(t){var e,i,n=function(t){var e,i={},n=(f(t,function(t){var e=t.coordinateSystem.getBaseAxis();if("time"===e.type||"value"===e.type)for(var t=t.getData(),n=e.dim+"_"+e.index,o=t.getDimensionIndex(t.mapDimension(e.dim)),r=t.getStore(),a=0,s=r.count();a<s;++a){var l=r.get(o,a);i[n]?i[n].push(l):i[n]=[l]}}),{});for(e in i)if(i.hasOwnProperty(e)){var o=i[e];if(o){o.sort(function(t,e){return t-e});for(var r=null,a=1;a<o.length;++a){var s=o[a]-o[a-1];0<s&&(r=null===r?s:Math.min(r,s))}n[e]=r}}return n}(t),o=[];return f(t,function(t){var e,i,r=t.coordinateSystem.getBaseAxis(),a=r.getExtent(),s=(e="category"===r.type?r.getBandWidth():"value"===r.type||"time"===r.type?(e=r.dim+"_"+r.index,e=n[e],s=Math.abs(a[1]-a[0]),i=r.scale.getExtent(),i=Math.abs(i[1]-i[0]),e?s/i*e:s):(i=t.getData(),Math.abs(a[1]-a[0])/i.count()),wi(t.get("barWidth"),e)),a=wi(t.get("barMaxWidth"),e),l=wi(t.get("barMinWidth")||((i=t).pipelineContext&&i.pipelineContext.large?.5:1),e),h=t.get("barGap"),u=t.get("barCategoryGap");o.push({bandWidth:e,barWidth:s,barMaxWidth:a,barMinWidth:l,barGap:h,barCategoryGap:u,axisKey:iu(r),stackId:eu(t)})}),e={},f(o,function(t,i){var n=t.axisKey,o=t.bandWidth,o=e[n]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},r=o.stacks,n=(e[n]=o,t.stackId),a=(r[n]||o.autoWidthCount++,r[n]=r[n]||{width:0,maxWidth:0},t.barWidth),a=(a&&!r[n].width&&(r[n].width=a,a=Math.min(o.remainedWidth,a),o.remainedWidth-=a),t.barMaxWidth),a=(a&&(r[n].maxWidth=a),t.barMinWidth),r=(a&&(r[n].minWidth=a),t.barGap),n=(null!=r&&(o.gap=r),t.barCategoryGap);null!=n&&(o.categoryGap=n)}),i={},f(e,function(t,e){i[e]={};var n,o=t.stacks,r=t.bandWidth,a=t.categoryGap,s=(null==a&&(s=v(o).length,a=Math.max(35-4*s,15)+"%"),wi(a,r)),l=wi(t.gap,1),h=t.remainedWidth,u=t.autoWidthCount,c=(h-s)/(u+(u-1)*l),c=Math.max(c,0),p=(f(o,function(t){var e,i=t.maxWidth,n=t.minWidth;t.width?(e=t.width,i&&(e=Math.min(e,i)),n&&(e=Math.max(e,n)),t.width=e,h-=e+l*e,u--):(e=c,i&&i<e&&(e=Math.min(i,h)),(e=n&&e<n?n:e)!==c&&(t.width=e,h-=e+l*e,u--))}),c=(h-s)/(u+(u-1)*l),c=Math.max(c,0),0),d=(f(o,function(t,e){t.width||(t.width=c),p+=(n=t).width*(1+l)}),n&&(p-=n.width*l),-p/2);f(o,function(t,n){i[e][n]=i[e][n]||{bandWidth:r,offset:d,width:t.width},d+=t.width*(1+l)})}),i}function ru(t){return t=oT.call(this,t)||this,t.type="time",t}function au(t,e){return 30<(t/=e?lx:sx)?30:20<t?20:15<t?15:10<t?10:5<t?5:2<t?2:1}function su(){var t=null!==sT&&sT.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new eT,t._interval=0,t}function lu(t,e){return uT(t,Si(e))}function hu(t,e,i){this._prepareParams(t,e,i)}function uu(t,e){return null==e?null:O(e)?NaN:t.parse(e)}function cu(t,e){var i,n,o,r,a,s=t.type,l=(l=e,h=(u=t).getExtent(),(c=u.rawExtentInfo)||(c=new yT(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=nu("bar",c),i=!1,f(t,function(t){i=i||t.getBaseAxis()===e.axis}),i)&&(s=ou(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[iu(e)],t}(s,n.axis))&&(o=1/0,f(s,function(t){o=Math.min(t.offset,o)}),r=-1/0,f(s,function(t){r=Math.max(t.offset+t.width,r)}),o=Math.abs(o),r=Math.abs(r),t+=r/(n=o+r)*(a=(s=t-c)/(1-(o+r)/a)-s),c-=o/n*a),h=(s={min:c,max:t}).min,u=s.max),{extent:[h,u],fixMin:l.minFixed,fixMax:l.maxFixed}}function pu(t,e){var i=cu(t,e),n=i.extent,o=e.get("splitNumber"),r=(t instanceof gT&&(t.base=e.get("logBase")),t.type),a=e.get("interval"),r="interval"===r||"time"===r;t.setExtent(n[0],n[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:r?e.get("minInterval"):null,maxInterval:r?e.get("maxInterval"):null}),null!=a&&t.setInterval&&t.setInterval(a)}function du(t,e){if(e=e||t.get("type"))switch(e){case"category":return new $S({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(qS.getClass(e)||eT)}}function fu(t){var e,i,n,o=t.getLabelModel().get("formatter"),r="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=o,function(e,i){return t.scale.getFormattedLabel(e,i,n)}):b(o)?(i=o,function(e){return e=t.scale.getLabel(e),i.replace("{value}",null!=e?e:"")}):w(o)?(e=o,function(i,n){return null!=r&&(n=i.value-r),e(gu(t,i),n,null!=i.level?{level:i.level}:null)}):function(e){return t.scale.getLabel(e)}}function gu(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function yu(t){var e=t.model,i=t.scale;if(e.get(["axisLabel","show"])&&!i.isBlank()){var n,o,r=i.getExtent(),a=i instanceof $S?i.count():(n=i.getTicks()).length,s=t.getLabelModel(),l=fu(t),h=1;40<a&&(h=Math.ceil(a/40));for(var u,c,p,d=0;d<a;d+=h){var f=l(n?n[d]:{value:r[0]+d},d),f=s.getTextRect(f),g=(f=f,u=s.get("rotate")||0,c=p=g=c=void 0,u=u*Math.PI/180,c=f.width,g=f.height,p=c*Math.abs(Math.cos(u))+Math.abs(g*Math.sin(u)),c=c*Math.abs(Math.sin(u))+Math.abs(g*Math.cos(u)),new py(f.x,f.y,p,c));o?o.union(g):o=g}return o}}function mu(t){return t=t.get("interval"),null==t?"auto":t}function vu(t){return"category"===t.type&&0===mu(t.getLabelModel())}function _u(){}function xu(t){x(t)?f(t,function(t){xu(t)}):0<=u(xT,t)||(xT.push(t),(t=w(t)?{install:t}:t).install(wT))}function wu(t,e){return Math.abs(t-e)<bT}function bu(t,e,i){var n=0,o=t[0];if(o){for(var r=1;r<t.length;r++){var a=t[r];n+=Cn(o[0],o[1],a[0],a[1],e,i),o=a}var s=t[0];return wu(o[0],s[0])&&wu(o[1],s[1])||(n+=Cn(o[0],o[1],s[0],s[1],e,i)),0!==n}}function Su(t,e){for(var i=0;i<t.length;i++)at(t[i],t[i],e)}function Tu(t,e,i,n){for(var o=0;o<t.length;o++){var r=t[o];(r=n?n.project(r):r)&&isFinite(r[0])&&isFinite(r[1])&&(st(e,e,r),lt(i,i,r))}}function Cu(t){this.name=t}function Mu(t,e,i){return t=TT.call(this,t)||this,t.type="geoJSON",t.geometries=e,t._center=i&&[i[0],i[1]],t}function Iu(t,e){return t=CT.call(this,t)||this,t.type="geoSVG",t._elOnlyForCalculate=e,t}function ku(t,e,i){for(var n=0;n<t.length;n++)t[n]=Au(t[n],e[n],i)}function Au(t,e,i){for(var n=[],o=e[0],r=e[1],a=0;a<t.length;a+=2){var s=(s=t.charCodeAt(a)-64)>>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);n.push([(o=s+=o)/i,(r=l+=r)/i])}return n}function Du(t,e){var i,n,o;return g(m((t=(i=t).UTF8Encoding?(null==(o=(n=i).UTF8Scale)&&(o=1024),f(n.features,function(t){var e=t.geometry,i=e.encodeOffsets,n=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=Au(n,i,o);break;case"Polygon":case"MultiLineString":ku(n,i,o);break;case"MultiPolygon":f(n,function(t,e){return ku(t,i[e],o)})}}),n.UTF8Encoding=!1,n):i).features,function(t){return t.geometry&&t.properties&&0<t.geometry.coordinates.length}),function(t){var i=t.properties,n=t.geometry,o=[];switch(n.type){case"Polygon":var r=n.coordinates;o.push(new MT(r[0],r.slice(1)));break;case"MultiPolygon":f(n.coordinates,function(t){t[0]&&o.push(new MT(t[0],t.slice(1)))});break;case"LineString":o.push(new IT([n.coordinates]));break;case"MultiLineString":o.push(new IT(n.coordinates))}return t=new kT(i[e||"name"],o,i.cp),t.properties=i,t})}function Pu(t){return"category"===t.type?(o=(n=t).getLabelModel(),r=Lu(n,o),!o.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r):(o=(e=t).scale.getTicks(),i=fu(e),{labels:g(o,function(t,n){return{level:t.level,formattedLabel:i(t,n),rawLabel:e.scale.getLabel(t),tickValue:t.value}})});var e,i,n,o,r}function Ou(t,e){var i,n,o,r,a,s;return"category"===t.type?(e=e,r=Eu(i=t,"ticks"),a=mu(e),(s=Ru(r,a))||(e.get("show")&&!i.scale.isBlank()||(n=[]),n=w(a)?zu(i,a,!0):"auto"===a?(s=Lu(i,i.getLabelModel()),o=s.labelCategoryInterval,g(s.labels,function(t){return t.tickValue})):Bu(i,o=a,!0),Nu(r,a,{ticks:n,tickCategoryInterval:o}))):{ticks:g(t.scale.getTicks(),function(t){return t.value})}}function Lu(t,e){var i,n=Eu(t,"labels"),e=mu(e),o=Ru(n,e);return o||Nu(n,e,{labels:w(e)?zu(t,e):Bu(t,i="auto"===e?null!=(n=AT(o=t).autoInterval)?n:AT(o).autoInterval=o.calculateCategoryInterval():e),labelCategoryInterval:i})}function Eu(t,e){return AT(t)[e]||(AT(t)[e]=[])}function Ru(t,e){for(var i=0;i<t.length;i++)if(t[i].key===e)return t[i].value}function Nu(t,e,i){return t.push({key:e,value:i}),i}function Bu(t,e,i){function n(t){var e={value:t};l.push(i?t:{formattedLabel:o(e),rawLabel:r.getLabel(e),tickValue:t})}for(var o=fu(t),r=t.scale,a=r.getExtent(),s=t.getLabelModel(),l=[],h=Math.max((e||0)+1,1),e=a[0],u=r.count(),u=(0!==e&&1<h&&2<u/h&&(e=Math.round(Math.ceil(e/h)*h)),vu(t)),t=s.get("showMinLabel")||u,s=s.get("showMaxLabel")||u,c=(t&&e!==a[0]&&n(a[0]),e);c<=a[1];c+=h)n(c);return s&&c-h!==a[1]&&n(a[1]),l}function zu(t,e,i){var n=t.scale,o=fu(t),r=[];return f(n.getTicks(),function(t){var a=n.getLabel(t),s=t.value;e(t.value,a)&&r.push(i?s:{formattedLabel:o(t),rawLabel:a,tickValue:s})}),r}function Fu(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}function Vu(t,e){e=(t[1]-t[0])/e/2,t[0]+=e,t[1]-=e}function Yu(t,e,i,n,o,r,a,s){var l=o-t,h=r-e,i=i-t,n=n-e,u=Math.sqrt(i*i+n*n),l=(l*(i/=u)+h*(n/=u))/u,h=(s&&(l=Math.min(Math.max(l,0),1)),a[0]=t+(l*=u)*i),s=a[1]=e+l*n;return Math.sqrt((h-o)*(h-o)+(s-r)*(s-r))}function Hu(t,e,i,n,o,r,a){return i<0&&(t+=i,i=-i),n<0&&(e+=n,n=-n),i=t+i,n=e+n,t=a[0]=Math.min(Math.max(o,t),i),i=a[1]=Math.min(Math.max(r,e),n),Math.sqrt((t-o)*(t-o)+(i-r)*(i-r))}function Wu(t,e,i){for(var n,o,r,a,s,l,h,u,c,p=0,d=0,f=0,g=0,y=1/0,m=e.data,v=t.x,_=t.y,x=0;x<m.length;){var w=m[x++],b=(1===x&&(f=p=m[x],g=d=m[x+1]),y);switch(w){case OT.M:p=f=m[x++],d=g=m[x++];break;case OT.L:b=Yu(p,d,m[x],m[x+1],v,_,ET,!0),p=m[x++],d=m[x++];break;case OT.C:b=Yt(p,d,m[x++],m[x++],m[x++],m[x++],m[x],m[x+1],v,_,ET),p=m[x++],d=m[x++];break;case OT.Q:b=Gt(p,d,m[x++],m[x++],m[x],m[x+1],v,_,ET),p=m[x++],d=m[x++];break;case OT.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)*(r=M)/C+S,s=_,l=ET,c=u=h=void 0,a-=n=S,s-=o=T,h=Math.sqrt(a*a+s*s),u=(a/=h)*r+n,c=(s/=h)*r+o,b=Math.abs(D-P)%PT<1e-4||((P=A?(A=D,D=Tn(P),Tn(A)):(D=Tn(D),Tn(P)))<D&&(P+=PT),(A=Math.atan2(s,a))<0&&(A+=PT),D<=A&&A<=P)||D<=A+PT&&A+PT<=P?(l[0]=u,l[1]=c,h-r):(c=((A=r*Math.cos(D)+n)-a)*(A-a)+((u=r*Math.sin(D)+o)-s)*(u-s))<(n=((h=r*Math.cos(P)+n)-a)*(h-a)+((D=r*Math.sin(P)+o)-s)*(D-s))?(l[0]=A,l[1]=u,Math.sqrt(c)):(l[0]=h,l[1]=D,Math.sqrt(n)),p=Math.cos(I+k)*C+S,d=Math.sin(I+k)*M+T;break;case OT.R:b=Hu(f=p=m[x++],g=d=m[x++],m[x++],m[x++],v,_,ET);break;case OT.Z:b=Yu(p,d,f,g,v,_,ET,!0),p=f,d=g}b<y&&(y=b,i.set(ET[0],ET[1]))}return y}function Xu(t,e){if(t){var i=t.getTextGuideLine(),n=t.getTextContent();if(n&&i){var o=t.textGuideLineConfig||{},r=[[0,0],[0,0],[0,0]],a=o.candidates||LT,s=n.getBoundingRect().clone(),l=(s.applyTransform(n.getComputedTransform()),1/0),h=o.anchor,u=t.getComputedTransform(),c=u&&Ke([],u),p=e.get("length2")||0;h&&BT.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=RT,w=zT,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)}ny.scaleAndAdd(NT,RT,zT,p),NT.transform(c),y=t.getBoundingRect(),y=h?h.distance(NT):t instanceof Bm?Wu(NT,t.path,BT):(m=BT,d=Hu((d=y).x,y.y,y.width,y.height,NT.x,NT.y,ET),m.set(ET[0],ET[1]),d),y<l&&(l=y,NT.transform(u),BT.transform(u),BT.toArray(r[0]),NT.toArray(r[1]),RT.toArray(r[2]))}n=r,(o=e.get("minTurnAngle"))<=180&&0<o&&(o=o/180*Math.PI,RT.fromArray(n[0]),NT.fromArray(n[1]),BT.fromArray(n[2]),ny.sub(zT,RT,NT),ny.sub(FT,BT,NT),e=zT.len(),f=FT.len(),e<.001||f<.001||(zT.scale(1/e),FT.scale(1/f),e=zT.dot(FT),Math.cos(o)<e&&(f=Yu(NT.x,NT.y,BT.x,BT.y,RT.x,RT.y,VT,!1),YT.fromArray(VT),YT.scaleAndAdd(FT,f/Math.tan(Math.PI-o)),e=BT.x!==NT.x?(YT.x-NT.x)/(BT.x-NT.x):(YT.y-NT.y)/(BT.y-NT.y),isNaN(e)||(e<0?ny.copy(YT,NT):1<e&&ny.copy(YT,BT),YT.toArray(n[1]))))),i.setShape({points:r})}}}function Uu(t,e,i,n){var o="normal"===i,i=o?t:t.ensureState(i),e=(i.ignore=e,n.get("smooth")),e=(e&&!0===e&&(e=.3),i.shape=i.shape||{},0<e&&(i.shape.smooth=e),n.getModel("lineStyle").getLineStyle());o?t.useStyle(e):i.style=e}function Gu(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=Of(n[0],n[1]),o=Of(n[1],n[2]);e&&o?(i=Math.min(e,o)*i,e=rt([],n[1],n[0],i/e),i=rt([],n[1],n[2],i/o),o=rt([],e,i,.5),t.bezierCurveTo(e[0],e[1],e[0],e[1],o[0],o[1]),t.bezierCurveTo(i[0],i[1],i[0],i[1],n[2][0],n[2][1])):(t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]))}else for(var r=1;r<n.length;r++)t.lineTo(n[r][0],n[r][1])}function ju(t){for(var e=[],i=0;i<t.length;i++){var n,o,r,a,s,l,h=t[i];h.defaultAttr.ignore||(o=(n=h.label).getComputedTransform(),r=n.getBoundingRect(),a=!o||o[1]<1e-5&&o[2]<1e-5,l=n.style.margin||0,(s=r.clone()).applyTransform(o),s.x-=l/2,s.y-=l/2,s.width+=l,s.height+=l,l=a?new A_(r,o):null,e.push({label:n,labelLine:h.labelLine,rect:s,localRect:r,obb:l,priority:h.priority,defaultAttr:h.defaultAttr,layoutOption:h.computedLayoutOption,axisAligned:a,transform:o}))}return e}function qu(t,e,i,n,o,r){function a(){_=w.rect[e]-n,x=o-b.rect[e]-b.rect[i]}function s(t,e,i){t<0&&(0<(e=Math.min(e,-t))?(l(e*i,0,c),(e+=t)<0&&h(-e*i,1)):h(-t*i,1))}function l(i,n,o){0!==i&&(d=!0);for(var r=n;r<o;r++){var a=t[r];a.rect[e]+=i,a.label[e]+=i}}function h(n,o){for(var r=[],a=0,s=1;s<c;s++){var h=t[s-1].rect,h=Math.max(t[s].rect[e]-h[e]-h[i],0);r.push(h),a+=h}if(a){var u=Math.min(Math.abs(n)/a,o);if(0<n)for(s=0;s<c-1;s++)l(r[s]*u,0,s+1);else for(s=c-1;0<s;s--)l(-r[s-1]*u,s,c)}}function u(t){for(var e=t<0?-1:1,i=(t=Math.abs(t),Math.ceil(t/(c-1))),n=0;n<c-1;n++)if(0<e?l(i,0,n+1):l(-i,c-n-1,c),(t-=i)<=0)return}var c=t.length;if(!(c<2)){t.sort(function(t,i){return t.rect[e]-i.rect[e]});for(var p=0,d=!1,f=0,g=0;g<c;g++){var y,m=t[g],v=m.rect;(y=v[e]-p)<0&&(v[e]-=y,m.label[e]-=y,d=!0),f+=Math.max(-y,0),p=v[e]+v[i]}0<f&&r&&l(-f/c,0,c);var _,x,w=t[0],b=t[c-1];return a(),_<0&&h(-_,.8),x<0&&h(x,.8),a(),s(_,x,1),s(x,_,-1),a(),_<0&&u(-_),x<0&&u(x),d}}function Zu(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 py(0,0,0,0)),o=0;o<t.length;o++){for(var r=t[o],a=r.axisAligned,s=r.localRect,l=r.transform,h=r.label,u=r.labelLine,c=(n.copy(r.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05,r.obb),p=!1,d=0;d<i.length;d++){var f=i[d];if(n.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new A_(f.localRect,f.transform)),(c=c||new A_(s,l)).intersect(f.obb)){p=!0;break}}}p?(e(h),u&&e(u)):(h.attr("ignore",r.defaultAttr.ignore),u&&u.attr("ignore",r.defaultAttr.labelGuideIgnore),i.push(r))}}function Ku(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 Qu(t,e,i){for(var n=0;n<i.length;n++){var o=i[n];null!=e[o]&&(t[o]=e[o])}}function $u(){this._labelList=[],this._chartViewList=[]}function Ju(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,i){(qT(e).labelManager||(qT(e).labelManager=new jT)).clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,i){var n=qT(e).labelManager;i.updatedSeries.forEach(function(t){n.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}function tc(t,e,i){var n=df.createCanvas(),o=e.getWidth(),e=e.getHeight(),r=n.style;return r&&(r.position="absolute",r.left="0",r.top="0",r.width=o+"px",r.height=e+"px",n.setAttribute("data-zr-dom-id",t)),n.width=o*i,n.height=e*i,n}function ec(t,e,i){var n,o=ZT.call(this)||this,t=(o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||Gg,"string"==typeof t?n=tc(t,e,i):C(t)&&(t=(n=t).id),o.id=t,(o.dom=n).style);return t&&(G(n),n.onselectstart=function(){return!1},t.padding="0",t.margin="0",t.borderWidth="0"),o.painter=e,o.dpr=i,o}function ic(t,e,i,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=i=l({},i||{}),this.dpr=i.devicePixelRatio||Gg,this._singleCanvas=o,(this.root=t).style&&(G(t),t.innerHTML=""),this.storage=e;var r,a,e=this._zlevelList,s=(this._prevDisplayList=[],this._layers);o?(r=(o=t).width,a=o.height,null!=i.width&&(r=i.width),null!=i.height&&(a=i.height),this.dpr=i.devicePixelRatio||1,o.width=r*this.dpr,o.height=a*this.dpr,this._width=r,this._height=a,(r=new KT(o,this,this.dpr)).__builtin__=!0,r.initContext(),(s[QT]=r).zlevel=QT,e.push(QT),this._domRoot=t):(this._width=Rl(t,0,i),this._height=Rl(t,1,i),r=this._domRoot=(a=this._width,o=this._height,(s=document.createElement("div")).style.cssText=["position:relative","width:"+a+"px","height:"+o+"px","padding:0","margin:0","border-width:0"].join(";")+";",s),t.appendChild(r))}function nc(){var t=null!==JT&&JT.apply(this,arguments)||this;return t.type="dataset",t}function oc(){var t=null!==eC&&eC.apply(this,arguments)||this;return t.type="dataset",t}function rc(t){t.registerComponentModel(tC),t.registerComponentView(iC)}function ac(){var t=null!==nC&&nC.apply(this,arguments)||this;return t.type=ac.type,t.hasSymbolVisual=!0,t}function sc(t,e){var i,n=t.mapDimensionsAll("defaultedLabel"),o=n.length;if(1===o)return null!=(i=ls(t,e,n[0]))?i+"":null;if(o){for(var r=[],a=0;a<n.length;a++)r.push(ls(t,e,n[a]));return r.join(" ")}}function lc(t,e,i,n){var o=rC.call(this)||this;return o.updateData(t,e,i,n),o}function hc(t,e){this.parent.drift(t,e)}function uc(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 cc(t){return(t=null==t||C(t)?t:{isIgnore:t})||{}}function pc(t){var t=t.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Ar(t),cursorStyle:t.get("cursor")}}function dc(t){this.group=new wy,this._SymbolCtor=t||aC}function fc(t,e,i){var n=t.getBaseAxis(),o=t.getOtherAxis(n),i=function(t,e){var i=0,t=t.scale.getExtent();return"start"===e?i=t[0]:"end"===e?i=t[1]:0<t[0]?i=t[0]:t[1]<0&&(i=t[1]),i}(o,i),n=n.dim,o=o.dim,r=e.mapDimension(o),a=e.mapDimension(n),s="x"===o||"radius"===o?1:0,t=g(t.dimensions,function(t){return e.mapDimension(t)}),l=!1,h=e.getCalculationInfo("stackResultDimension");return zh(e,t[0])&&(l=!0,t[0]=h),zh(e,t[1])&&(l=!0,t[1]=h),{dataDimsForPoint:t,valueStart:i,valueAxisDim:o,baseAxisDim:n,stacked:!!l,valueDim:r,baseDim:a,baseDataOffset:s,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function gc(t,e,i,n){var o=NaN,r=(t.stacked&&(o=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(o)&&(o=t.valueStart),t.baseDataOffset),a=[];return a[r]=i.get(t.baseDim,n),a[1-r]=o,e.dataToPoint(a)}function yc(t,e){return isNaN(t)||isNaN(e)}function mc(t,e,i,n,o,r,a,s,l){for(var h,u,c,p,d=i,f=0;f<n;f++){var g=e[2*d],y=e[2*d+1];if(o<=d||d<0)break;if(yc(g,y)){if(l){d+=r;continue}break}if(d===i)t[0<r?"moveTo":"lineTo"](g,y),c=g,p=y;else{var m=g-h,v=y-u;if(m*m+v*v<.5){d+=r;continue}if(0<a){for(var _=d+r,x=e[2*_],w=e[2*_+1];x===g&&w===y&&f<n;)f++,d+=r,x=e[2*(_+=r)],w=e[2*_+1],g=e[2*d],y=e[2*d+1];var b=f+1;if(l)for(;yc(x,w)&&b<n;)b++,x=e[2*(_+=r)],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||yc(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=hC(O=g+m*a*S,uC(x,g)),L=hC(L,uC(w,y)),O=uC(O,hC(x,g)),D=y-(v=(L=uC(L,hC(w,y)))-y)*I/k,A=hC(A=g-(m=O-g)*I/k,uC(h,g)),D=hC(D,uC(u,y)),O=g+(m=g-(A=uC(A,hC(h,g))))*k/I,y+(v=y-(D=uC(D,hC(u,y))))*k/I)),t.bezierCurveTo(c,p,A,D,g,y),c=O,p=L}else t.lineTo(g,y)}h=g,u=y,d+=r}return f}function vc(t){return t=sC.call(this,t)||this,t.type="ec-polyline",t}function _c(){return null!==dC&&dC.apply(this,arguments)||this}function xc(t){return t=gC.call(this,t)||this,t.type="ec-polygon",t}function wc(t,e){if(t.length===e.length){for(var i=0;i<t.length;i++)if(t[i]!==e[i])return;return 1}}function bc(t){for(var e=1/0,i=1/0,n=-1/0,o=-1/0,r=0;r<t.length;){var a=t[r++],s=t[r++];isNaN(a)||(e=Math.min(a,e),n=Math.max(a,n)),isNaN(s)||(i=Math.min(s,i),o=Math.max(s,o))}return[[e,i],[n,o]]}function Sc(t,e){var t=bc(t),i=t[0],t=t[1],e=bc(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 Tc(t){return T(t)?t:t?.5:0}function Cc(t,e,i){for(var e=e.getBaseAxis(),n="x"===e.dim||"radius"===e.dim?0:1,o=[],r=0,a=[],s=[],l=[];r<t.length-2;r+=2)switch(l[0]=t[r+2],l[1]=t[r+3],s[0]=t[r],s[1]=t[r+1],o.push(s[0],s[1]),i){case"end":a[n]=l[n],a[1-n]=s[1-n],o.push(a[0],a[1]);break;case"middle":var h=[];a[n]=h[n]=(s[n]+l[n])/2,a[1-n]=s[1-n],h[1-n]=l[1-n],o.push(a[0],a[1]),o.push(h[0],h[1]);break;default:a[n]=s[n],a[1-n]=l[1-n],o.push(a[0],a[1])}return o.push(t[r++],t[r++]),o}function Mc(t,e,i){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var o,r=n.length-1;0<=r;r--){var a,s=t.getDimensionInfo(n[r].dimension);if("x"===(a=s&&s.coordDim)||"y"===a){o=n[r];break}}if(o){var l=e.getAxis(a),e=g(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),h=e.length,u=o.outerColors.slice(),i=(h&&e[0].coord>e[h-1].coord&&(e.reverse(),u.reverse()),function(t,e){function i(t,e,i){var n=t.coord;return{coord:i,color:ue((i-n)/(e.coord-n),[t.color,e.color])}}for(var n,o,r=[],a=t.length,s=0;s<a;s++){var l=t[s],h=l.coord;if(h<0)n=l;else{if(e<h){o?r.push(i(o,l,e)):n&&r.push(i(n,l,0),i(n,l,e));break}n&&(r.push(i(n,l,0)),n=null),r.push(l),o=l}}return r}(e,"x"===a?i.getWidth():i.getHeight())),c=i.length;if(!c&&h)return e[0].coord<0?u[1]||e[h-1].color:u[0]||e[0].color;var p=i[0].coord-10,h=i[c-1].coord+10,d=h-p;return d<.001?"transparent":(f(i,function(t){t.offset=(t.coord-p)/d}),i.push({offset:c?i[c-1].offset:.5,color:u[1]||"transparent"}),i.unshift({offset:c?i[0].offset:.5,color:u[0]||"transparent"}),e=new b_(0,0,0,0,i,!0),e[a]=p,e[a+"2"]=h,e)}}}function Ic(t,e,i){var t=t.get("showAllSymbol"),n="auto"===t;if(!t||n){var o,r,a=i.getAxesByScale("ordinal")[0];if(a&&(!n||!function(t,e){for(var i=t.getExtent(),n=Math.abs(i[1]-i[0])/t.scale.count(),o=(isNaN(n)&&(n=0),e.count()),r=Math.max(1,Math.round(o/5)),a=0;a<o;a+=r)if(1.5*aC.getSymbolSize(e,a)[t.isHorizontal()?1:0]>n)return;return 1}(a,e)))return o=e.mapDimension(a.dim),r={},f(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue),r[t]=1}),function(t){return!r.hasOwnProperty(e.get(o,t))}}}function kc(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 Ac(t,e){return[t[2*e],t[2*e+1]]}function Dc(t){if(t.get(["endLabel","show"]))return 1;for(var e=0;e<uv.length;e++)if(t.get([uv[e],"endLabel","show"]))return 1}function Pc(t,e,i,n){var o,r,a,s,l,h,u,c,p,d,f,g,y,m,v,_,x;return x="cartesian2d",e.type===x?(o=n.getModel("endLabel"),r=o.get("valueAnimation"),a=n.getData(),s={lastFrameIndex:0},x=Dc(n)?function(i,n){t._endLabelOnDuring(i,n,a,s,r,o,e)}:null,l=e.getBaseAxis().isHorizontal(),u=i,c=n,p=function(){var e=t._endLabel;e&&i&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},d=x,f=(m=(h=e).getArea()).x,g=m.y,y=m.width,m=m.height,v=c.get(["lineStyle","width"])||2,f-=v/2,g-=v/2,y+=v,m+=v,f=Math.floor(f),y=Math.round(y),_=new qm({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,ir(_,{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=bi(c.r0,1),v=bi(c.r,1),l=new Qv({shape:{cx:bi(g.cx,1),cy:bi(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,ir(l,{shape:{endAngle:c.endAngle,r:v}},f)),l)}function Oc(){return null!==mC&&mC.apply(this,arguments)||this}function Lc(){return null!==wC&&wC.apply(this,arguments)||this}function Ec(){return null!==SC&&SC.apply(this,arguments)||this}function Rc(t,e,n,o){f(MC,function(r,a){function l(){var t=null!==h&&h.apply(this,arguments)||this;return t.type=e+"Axis."+a,t}var h,u=s(s({},CC[a],!0),o,!0),u=(i(l,h=n),l.prototype.mergeDefaultAndTheme=function(t,e){var i=ga(this),n=i?ma(t):{};s(t,e.getTheme().get(a+"Axis")),s(t,this.getDefaultOption()),t.type=Nc(t),i&&ya(t,n,i)},l.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=KS.createByAxisModel(this))},l.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=e+"Axis."+a,l.defaultOption=u,l);t.registerComponentModel(u)}),t.registerSubTypeDefaulter(e+"Axis",Nc)}function Nc(t){return t.type||(t.data?"category":"value")}function Bc(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}function zc(t){return"interval"===t.type||"time"===t.type}function Fc(){var t=null!==kC&&kC.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=IC,t}function Vc(t,e,i,n,o){return t=DC.call(this,t,e,i)||this,t.index=0,t.type=n||"value",t.position=o||"bottom",t}function Yc(t,e,i){i=i||{};var t=t.coordinateSystem,n=e.axis,o={},r=n.getAxesOnZeroOf()[0],a=n.position,s=r?"onZero":a,n=n.dim,t=t.getRect(),t=[t.x,t.x+t.width,t.y,t.y+t.height],l={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,h="x"===n?[t[2]-h,t[3]+h]:[t[0]-h,t[1]+h],u=(r&&(u=r.toGlobalCoord(r.dataToCoord(0)),h[l.onZero]=Math.max(Math.min(u,h[1]),h[0])),o.position=["y"===n?h[l[s]]:t[0],"x"===n?h[l[s]]:t[3]],o.rotation=Math.PI/2*("x"===n?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],o.labelOffset=r?h[l[a]]-h[l.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),L(i.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection),e.get(["axisLabel","rotate"]));return o.labelRotate="top"===s?-u:u,o.z2=1,o}function Hc(t){return"cartesian2d"===t.get("coordinateSystem")}function Wc(t){var e={xAxisModel:null,yAxisModel:null};return f(e,function(i,n){var o=n.replace(/Model$/,""),o=t.getReferringComponents(o,Oy).models[0];e[n]=o}),e}function Xc(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=IC,this._initCartesian(t,e,i),this.model=t}function Uc(t,e){return t.getCoordSysModel()===e}function Gc(t,e,i,n){function o(t){return t.dim+"_"+t.index}i.getAxesOnZeroOf=function(){return r?[r]:[]};var r,a=t[e],t=i.model,e=t.get(["axisLine","onZero"]),i=t.get(["axisLine","onZeroAxisIndex"]);if(e){if(null!=i)jc(a[i])&&(r=a[i]);else for(var s in a)if(a.hasOwnProperty(s)&&jc(a[s])&&!n[o(a[s])]){r=a[s];break}r&&(n[o(r)]=!0)}}function jc(t){return t&&"category"!==t.type&&"time"!==t.type&&(e=(t=(t=t).scale.getExtent())[0],t=t[1],!(0<e&&0<t||e<0&&t<0));var e}function qc(t,e){this.group=new wy,this.opt=e,this.axisModel=t,h(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}}),t=new wy({x:e.position[0],y:e.position[1],rotation:e.rotation}),t.updateTransform(),this._transformGroup=t}function Zc(t){t&&(t.ignore=!0)}function Kc(t,e){var i,n=t&&t.getBoundingRect().clone(),o=e&&e.getBoundingRect().clone();if(n&&o)return qe(i=Xe([]),i,-t.rotation),n.applyTransform(Ge([],i,t.getLocalTransform())),o.applyTransform(Ge([],i,e.getLocalTransform())),n.intersect(o)}function Qc(t){return"middle"===t||"center"===t}function $c(t,e,i,n,o){for(var r=[],a=[],s=[],l=0;l<t.length;l++){var h=t[l].coord,h=(a[0]=h,s[a[1]=0]=h,s[1]=i,e&&(at(a,a,e),at(s,s,e)),new u_({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0}));h.anid=o+"_"+t[l].tickValue,r.push(h)}return r}function Jc(t,e){var i,n,o,r,s,l,u,c={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return i=c,e=e,o=(n=t).getComponent("tooltip"),r=n.getComponent("axisPointer"),s=r.get("link",!0)||[],l=[],f(e.getCoordinateSystems(),function(t){function e(e,o,p){var d,g=p.model.getModel("axisPointer",r),y=g.get("show");y&&("auto"!==y||e||ip(g))&&(null==o&&(o=g.get("triggerTooltip")),y=(g=e?function(t,e,i,n,o,r){var s=e.getModel("axisPointer"),l={};return f(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){l[t]=a(s.get(t))}),l.snap="category"!==t.type&&!!r,"cross"===s.get("type")&&(l.type="line"),e=l.label||(l.label={}),null==e.show&&(e.show=!1),"cross"===o&&(o=s.get(["label","show"]),e.show=null==o||o,r||(o=l.lineStyle=s.get("crossStyle"))&&h(e,o.textStyle)),t.model.getModel("axisPointer",new J_(l,i,n))}(p,c,r,n,e,o):g).get("snap"),e=np(p.model),d=o||y||"category"===p.type,o=i.axesInfo[e]={key:e,axis:p,coordSys:t,axisPointerModel:g,triggerTooltip:o,involveSeries:d,snap:y,useHandle:ip(g),seriesModels:[],linkGroup:null},u[e]=o,i.seriesInvolved=i.seriesInvolved||d,null!=(y=function(t,e){for(var i=e.model,n=e.dim,o=0;o<t.length;o++){var r=t[o]||{};if(tp(r[n+"AxisId"],i.id)||tp(r[n+"AxisIndex"],i.componentIndex)||tp(r[n+"AxisName"],i.name))return o}}(s,p)))&&((g=l[y]||(l[y]={axesInfo:{}})).axesInfo[e]=o,g.mapper=s[y].mapper,o.linkGroup=g)}var u,c,p,d,g;t.axisPointerEnabled&&(p=np(t.model),u=i.coordSysAxesInfo[p]={},c=(i.coordSysMap[p]=t).model.getModel("tooltip",o),f(t.getAxes(),_(e,!1,null)),t.getTooltipAxes)&&o&&c.get("show")&&(p="axis"===c.get("trigger"),d="cross"===c.get(["axisPointer","type"]),g=t.getTooltipAxes(c.get(["axisPointer","axis"])),(p||d)&&f(g.baseAxes,_(e,!d||"cross",p)),d)&&f(g.otherAxes,_(e,"cross",!1))}),c.seriesInvolved&&(u=c,t.eachSeries(function(t){var e=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),n=t.get(["tooltip","show"],!0);e&&"none"!==i&&!1!==i&&"item"!==i&&!1!==n&&!1!==t.get(["axisPointer","show"],!0)&&f(u.coordSysAxesInfo[np(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 tp(t,e){return"all"===t||x(t)&&0<=u(t,e)||t===e}function ep(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[np(t)]}function ip(t){return!!t.get(["handle","show"])}function np(t){return t.type+"||"+t.id}function op(){var t=null!==LC&&LC.apply(this,arguments)||this;return t.type=op.type,t}function rp(){var t=null!==EC&&EC.apply(this,arguments)||this;return t.type=rp.type,t.axisPointerClass="CartesianAxisPointer",t}function ap(){var t=null!==RC&&RC.apply(this,arguments)||this;return t.type=ap.type,t}function sp(){var t=null!==jC&&jC.apply(this,arguments)||this;return t.type=GC.type,t}function lp(){var t=null!==ZC&&ZC.apply(this,arguments)||this;return t.type="grid",t}function hp(){var t=null!==$C&&$C.apply(this,arguments)||this;return t.type=hp.type,t.layoutMode={type:"box",ignoreSize:!0},t}function up(){var t=null!==tM&&tM.apply(this,arguments)||this;return t.type=up.type,t}function cp(){var t=null!==iM&&iM.apply(this,arguments)||this;return t.type=cp.type,t.layoutMode={type:"box",ignoreSize:!0},t}function pp(){var t=null!==nM&&nM.apply(this,arguments)||this;return t.type=pp.type,t.newlineDisabled=!1,t}function dp(t,e,i,n){yp(t,e,i,n),i.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),gp(t,e,i,n)}function fp(t){for(var e,i=t.getZr().storage.getDisplayList(),n=0,o=i.length;n<o&&!(e=i[n].states.emphasis);)n++;return e&&e.hoverLayer}function gp(t,e,i,n){fp(i)||i.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function yp(t,e,i,n){fp(i)||i.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function mp(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 vp(t,e,i){var n,o={},r="toggleSelected"===t;return i.eachComponent("legend",function(i){r&&null!=n?i[n?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?i[t]():(i[t](e.name),n=i.isSelected(e.name)),f(i.getData(),function(t){var e,t=t.get("name");"\n"!==t&&""!==t&&(e=i.isSelected(t),o.hasOwnProperty(t)?o[t]=o[t]&&e:o[t]=e)})}),"allSelect"===t||"inverseSelect"===t?{selected:o}:{name:e.name,selected:o}}function _p(t){t.registerComponentModel(oM),t.registerComponentView(lM),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,mp),t.registerSubTypeDefaulter("legend",function(){return"plain"}),(t=t).registerAction("legendToggleSelect","legendselectchanged",_(vp,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",_(vp,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",_(vp,"inverseSelect")),t.registerAction("legendSelect","legendselected",_(vp,"select")),t.registerAction("legendUnSelect","legendunselected",_(vp,"unSelect"))}function xp(){var t=null!==hM&&hM.apply(this,arguments)||this;return t.type=xp.type,t}function wp(t,e,i){var n=[1,1];n[t.getOrient().index]=0,ya(e,i,{type:"box",ignoreSize:!!n})}function bp(){var t=null!==uM&&uM.apply(this,arguments)||this;return t.type=bp.type,t.newlineDisabled=!0,t._currentIndex=0,t}function Sp(){this._dragging=!1,this.animationThreshold=15}function Tp(t,e,i,n){!function t(e,i){var n;return C(e)&&C(i)?(n=!0,f(i,function(i,o){n=n&&t(e[o],i)}),!!n):e===i}(yM(i).lastProp,n)&&(yM(i).lastProp=n,e?er(i,n,t):(i.stopAnimation(),i.attr(n)))}function Cp(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Mp(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Ip(t,e,i){var n=e.get("z"),o=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=o&&(t.zlevel=o),t.silent=i)})}function kp(t,e,i,n,o){var r=Ap(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=yx(i.get("padding")||0),s=i.getFont(),l=oi(r,s),h=o.position,u=l.width+a[1]+a[3],l=l.height+a[0]+a[2],c=o.align,c=("right"===c&&(h[0]-=u),"center"===c&&(h[0]-=u/2),o.verticalAlign),n=("bottom"===c&&(h[1]-=l),"middle"===c&&(h[1]-=l/2),o=h,c=u,u=l,n=(l=n).getWidth(),l=l.getHeight(),o[0]=Math.min(o[0]+c,n)-c,o[1]=Math.min(o[1]+u,l)-u,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0),i.get("backgroundColor"));n&&"auto"!==n||(n=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:Dr(i,{text:r,font:s,fill:i.getTextColor(),padding:a,backgroundColor:n}),z2:10}}function Ap(t,e,i,n,o){t=e.scale.parse(t);var r,a=e.scale.getLabel({value:t},{precision:o.precision}),o=o.formatter;return o&&(r={value:gu(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},f(n,function(t){var e=i.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&r.seriesData.push(e)}),b(o)?a=o.replace("{value}",a):w(o)&&(a=o(r))),a}function Dp(t,e,i){var n=We();return qe(n,n,i.rotation),je(n,n,i.position),yr([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function Pp(){return null!==_M&&_M.apply(this,arguments)||this}function Op(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}function Lp(t){return"x"===t.dim?0:1}function Ep(){var t=null!==bM&&bM.apply(this,arguments)||this;return t.type=Ep.type,t}function Rp(t,e,i){function n(t,e){r.on(t,function(t){function i(t){var e=o[t.type];e?e.push(t):(t.dispatchAction=i,n.dispatchAction(t))}n=a;var n,o,s={dispatchAction:i,pendings:o={showTip:[],hideTip:[]}};CM(TM(r).records,function(i){i&&e(i,t,s.dispatchAction)});var l,h=s.pendings,u=a,c=h.showTip.length,p=h.hideTip.length;c?l=h.showTip[c-1]:p&&(l=h.hideTip[p-1]),l&&(l.dispatchAction=null,u.dispatchAction(l))})}var o,r,a;af.node||(o=e.getZr(),TM(o).records||(TM(o).records={}),a=e,TM(r=o).initialized||(TM(r).initialized=!0,n("click",_(Bp,"click")),n("mousemove",_(Bp,"mousemove")),n("globalout",Np)),(TM(o).records[t]||(TM(o).records[t]={})).handler=i)}function Np(t,e,i){t.handler("leave",null,i)}function Bp(t,e,i,n){e.handler(t,i,n)}function zp(t,e){af.node||(e=e.getZr(),(TM(e).records||{})[t]&&(TM(e).records[t]=null))}function Fp(){var t=null!==MM&&MM.apply(this,arguments)||this;return t.type=Fp.type,t}function Vp(t,e){var i,n,o,r,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=qi(i=e.getData(),t))||s<0||x(s)?{point:[]}:(n=i.getItemGraphicEl(s),o=e.coordinateSystem,e.getTooltipPosition?a=e.getTooltipPosition(s)||[]:o&&o.dataToPoint?a=t.isStacked?(e=o.getBaseAxis(),t=o.getOtherAxis(e).dim,e=e.dim,t="x"===t||"radius"===t?1:0,e=i.mapDimension(e),(r=[])[t]=i.get(e,s),r[1-t]=i.get(i.getCalculationInfo("stackResultDimension"),s),o.dataToPoint(r)||[]):o.dataToPoint(i.getValues(g(o.dimensions,function(t){return i.mapDimension(t)}),s))||[]:n&&((e=n.getBoundingRect().clone()).applyTransform(n.transform),a=[e.x+e.width/2,e.y+e.height/2]),{point:a,el:n})}function Yp(t,e,i){var n,o,r,a,s,l,h,u,c,p,d,g,y,m,v=t.currTrigger,x=[t.x,t.y],w=t,b=t.dispatchAction||If(i.dispatchAction,i),S=e.getComponent("axisPointer").coordSysAxesInfo;if(S)return Gp(x)&&(x=Vp({seriesIndex:w.seriesIndex,dataIndex:w.dataIndex},e).point),n=Gp(x),o=w.axesInfo,r=S.axesInfo,a="leave"===v||Gp(x),s={},e={list:[],map:{}},h={showPointer:_(Wp,l={}),showTooltip:_(Xp,e)},f(S.coordSysMap,function(t,e){var i=n||t.containPoint(x);f(S.coordSysAxesInfo[e],function(t,e){var r=t.axis,l=function(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}(o,t);a||!i||o&&!l||null!=(l=null!=(l=l&&l.value)||n?l:r.pointToData(x))&&Hp(t,l,h,!1,s)})}),u={},f(r,function(t,e){var i=t.linkGroup;i&&!l[e]&&f(i.axesInfo,function(e,n){var n=l[n];e!==t&&n&&(n=n.value,i.mapper&&(n=t.axis.scale.parse(i.mapper(n,Up(e),Up(t)))),u[t.key]=n)})}),f(u,function(t,e){Hp(r[e],t,h,!0,s)}),c=l,w=r,p=s.axesInfo=[],f(w,function(t,e){var i=t.axisPointerModel.option,e=c[e];e?(t.useHandle||(i.status="show"),i.value=e.value,i.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(i.status="hide"),"show"===i.status&&p.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})}),v=e,w=t,e=b,Gp(t=x)||!v.list.length?e({type:"hideTip"}):(b=((v.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:w.tooltipOption,position:w.position,dataIndexInside:b.dataIndexInside,dataIndex:b.dataIndex,seriesIndex:b.seriesIndex,dataByCoordSys:v.list})),e=r,w=(t=i).getZr(),b="axisPointerLastHighlights",d=kM(w)[b]||{},g=kM(w)[b]={},f(e,function(t,e){t=t.axisPointerModel.option,"show"===t.status&&f(t.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;g[e]=t})}),y=[],m=[],f(d,function(t,e){g[e]||m.push(t)}),f(g,function(t,e){d[e]||y.push(t)}),m.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:m}),y.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:y}),s}function Hp(t,e,i,n,o){var r,a,s,h,u,c,p,d,g,y,m=t.axis;!m.scale.isBlank()&&m.containData(e)&&(t.involveSeries?(a=e,s=t.axis,h=s.dim,u=a,c=[],p=Number.MAX_VALUE,d=-1,f(t.seriesModels,function(t,e){var i,n=t.getData().mapDimensionsAll(h);if(t.getAxisTooltipData)var o=t.getAxisTooltipData(n,a,s),r=o.dataIndices,o=o.nestestValue;else{if(!(r=t.getData().indicesOfNearest(n[0],a,"category"===s.type?.5:null)).length)return;o=t.getData().get(n[0],r[0])}null!=o&&isFinite(o)&&(n=a-o,(i=Math.abs(n))<=p)&&((i<p||0<=n&&d<0)&&(p=i,d=n,u=o,c.length=0),f(r,function(e){c.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}),y=(r={payloadBatch:c,snapToValue:u}).snapToValue,(g=r.payloadBatch)[0]&&null==o.seriesIndex&&l(o,g[0]),!n&&t.snap&&m.containData(y)&&null!=y&&(e=y),i.showPointer(t,e,g),i.showTooltip(t,r,y)):i.showPointer(t,e))}function Wp(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function Xp(t,e,i,n){var o,r,i=i.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&i.length&&(o=np(e=e.coordSys.model),(r=t.map[o])||(r=t.map[o]={coordSysId:e.id,coordSysIndex:e.componentIndex,coordSysType:e.type,coordSysMainType:e.mainType,dataByAxis:[]},t.list.push(r)),r.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:n,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:i.slice()}))}function Up(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 Gp(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function jp(t){YC.registerAxisPointerClass("CartesianAxisPointer",xM),t.registerComponentModel(SM),t.registerComponentView(IM),t.registerPreprocessor(function(t){var e;t&&(t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={}),e=t.axisPointer.link)&&!x(e)&&(t.axisPointer.link=[e])}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Jc(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Yp)}function qp(){var t=null!==AM&&AM.apply(this,arguments)||this;return t.type=qp.type,t}function Zp(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}function Kp(t){if(af.domSupported)for(var e=document.documentElement.style,i=0,n=t.length;i<n;i++)if(t[i]in e)return t[i]}function Qp(t,e){if(!t)return e;e=ra(e,!0);var i=t.indexOf(e);return(t=-1===i?e:"-"+t.slice(0,i)+"-"+e).toLowerCase()}function $p(t,e,i){var n,t=t.toFixed(0)+"px",e=e.toFixed(0)+"px";return af.transformSupported?(n="translate"+((n=af.transform3dSupported)?"3d":"")+"("+t+","+e+(n?",0":"")+")",i?"top:0;left:0;"+LM+":"+n+";":[["top",0],["left",0],[PM,n]]):i?"top:"+e+";left:"+t+";":[["top",e],["left",t]]}function Jp(t,e,i){var n,o,r=[],a=t.get("transitionDuration"),s=t.get("backgroundColor"),l=t.get("shadowBlur"),h=t.get("shadowColor"),u=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),p=t.getModel("textStyle"),d=Us(t,"html");return r.push("box-shadow:"+u+"px "+c+"px "+l+"px "+h),e&&a&&r.push((h="opacity"+(l=" "+(u=a)/2+"s "+(c="cubic-bezier(0.23,1,0.32,1)"))+",visibility"+l,i||(l=" "+u+"s "+c,h+=af.transformSupported?","+LM+l:",left"+l+",top"+l),OM+":"+h)),s&&r.push("background-color:"+s),f(["width","color","radius"],function(e){var i="border-"+e,n=ra(i),n=t.get(n);null!=n&&r.push(i+":"+n+("color"===e?"":"px"))}),r.push((o=[],e=(n=p).get("fontSize"),(a=n.getTextColor())&&o.push("color:"+a),o.push("font:"+n.getFont()),e&&o.push("line-height:"+Math.round(3*e/2)+"px"),a=n.get("textShadowColor"),e=n.get("textShadowBlur")||0,i=n.get("textShadowOffsetX")||0,u=n.get("textShadowOffsetY")||0,a&&e&&o.push("text-shadow:"+i+"px "+u+"px "+e+"px "+a),f(["decoration","align"],function(t){var e=n.get(t);e&&o.push("text-"+t+":"+e)}),o.join(";"))),null!=d&&r.push("padding:"+yx(d).join("px ")+"px"),r.join(";")+";"}function td(t,e,i,n,o){var r,a,s=e&&e.painter;i?(i=s&&s.getViewportRoot())&&(r=t,a=document.body,dt(Vf,i,n,o,!0))&&dt(r,a,Vf[0],Vf[1]):(t[0]=n,t[1]=o,(i=s&&s.getViewportRootOffset())&&(t[0]+=i.offsetLeft,t[1]+=i.offsetTop)),t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function ed(t,e,i){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,af.wxa)return null;var n=document.createElement("div"),o=(n.domBelongToZr=!0,this.el=n,this._zr=e.getZr()),i=this._appendToBody=i&&i.appendToBody,r=(td(this._styleCoord,o,i,e.getWidth()/2,e.getHeight()/2),(i?document.body:t).appendChild(n),this._container=t,this);n.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},n.onmousemove=function(t){var e;t=t||window.event,r._enterable||(e=o.handler,vt(o.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t))},n.onmouseleave=function(){r._inContent=!1,r._enterable&&r._show&&r.hideLater(r._hideDelay)}}function id(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),rd(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}function nd(t){return Math.max(0,t)}function od(t){var e=nd(t.shadowBlur||0),i=nd(t.shadowOffsetX||0),t=nd(t.shadowOffsetY||0);return{left:nd(e-i),right:nd(e+i),top:nd(e-t),bottom:nd(e+t)}}function rd(t,e,i,n){t[0]=i,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function ad(){var t=null!==NM&&NM.apply(this,arguments)||this;return t.type=ad.type,t}function sd(t,e,i){for(var n=e.ecModel,o=i?(o=new J_(i,n,n),new J_(e.option,o,n)):e,r=t.length-1;0<=r;r--){var a=t[r];(a=a&&(b(a=a instanceof J_?a.get("tooltip",!0):a)?{formatter:a}:a))&&(o=new J_(a,o,n))}return o}function ld(t,e){return t.dispatchAction||If(e.dispatchAction,e)}function hd(t){return"center"===t||"middle"===t}function ud(t){null==(this._condVal=b(t)?new RegExp(t):P(t)?t:null)&&Ni("")}function cd(){}function pd(){}function dd(){}function fd(){}function gd(){}function yd(t,e){if(!0===t||!1===t)return(i=new HM).value=t,i;var i;if(vd(t)||Ni(""),t.and)return md("and",t,e);if(t.or)return md("or",t,e);if(t.not)return i=e,vd(r=(r=t).not)||Ni(""),(l=new UM).child=yd(r,i),l.child||Ni(""),l;for(var n=t,o=e,r=o.prepareGetValue(n),a=[],s=v(n),l=n.parser,h=l?ys(l):null,u=0;u<s.length;u++){var c,p=s[u];"parser"===p||o.valueGetterAttrMap.get(p)||(c=j(VM,p)?VM[p]:p,p=n[p],p=h?h(p):p,(c=function(t,e){return"eq"===t||"ne"===t?new Ow("eq"===t,e):j(Aw,t)?new Dw(t,e):null}(c,p)||"reg"===c&&new YM(p))||Ni(""),a.push(c))}return a.length||Ni(""),(l=new GM).valueGetterParam=r,l.valueParser=h,l.getValue=o.getValue,l.subCondList=a,l}function md(t,e,i){return e=e[t],x(e)||Ni(""),e.length||Ni(""),t=new("and"===t?WM:XM),t.children=g(e,function(t){return yd(t,i)}),t.children.length||Ni(""),t}function vd(t){return C(t)&&!d(t)}function _d(t,e){this._cond=yd(t,e)}function xd(){}function wd(t,e,i,n){var o=null==e.opacity?1:e.opacity;if(i instanceof Wm)t("opacity",o);else if(null!=(r=(r=e).fill)&&r!==nI?(t("fill",(r=de(e.fill)).color),r=null!=e.fillOpacity?e.fillOpacity*r.opacity*o:r.opacity*o,(n||r<1)&&t("fill-opacity",r)):t("fill",nI),null!=(r=(r=e).stroke)&&r!==nI){var r=de(e.stroke),a=(t("stroke",r.color),e.strokeNoScale?i.getLineScale():1),a=a?(e.lineWidth||0)/a:0,r=null!=e.strokeOpacity?e.strokeOpacity*r.opacity*o:r.opacity*o,o=e.strokeFirst;!n&&1==a||t("stroke-width",a),(n||o)&&t("paint-order",o?"stroke":"fill"),(n||r<1)&&t("stroke-opacity",r),e.lineDash?(o=(a=Nl(i))[0],r=a[1],o&&(r=oI(r||0),t("stroke-dasharray",o.join(",")),r||n)&&t("stroke-dashoffset",r)):n&&t("stroke-dasharray",nI);for(var s=0;s<rI.length;s++){var l=rI[s];(n||e[l]!==Em[l])&&(l=e[l]||Em[l])&&t(aI[s],l)}}else n&&t("stroke",nI)}function bd(t){return document.createElementNS(sI,t)}function Sd(t,e,i,n,o){return{tag:t,attrs:i||{},children:n,text:o,key:e}}function Td(t,e){var i=(e=e||{}).newline?"\n":"";return function t(e){var n=e.children,o=e.tag;return function(t,e){var i=[];if(e)for(var n in e){var o=e[n];!1!==o&&(!0!==o&&null!=o&&(n+='="'+o+'"'),i.push(n))}return"<"+t+" "+i.join(" ")+">"}(o,e.attrs)+(e.text||"")+(n?i+g(n,t).join(i)+i:"")+"</"+o+">"}(t)}function Cd(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Md(t,e,i,n){return Sd("svg","root",{width:t,height:e,xmlns:sI,"xmlns:xlink":lI,version:"1.1",baseProfile:"full",viewBox:!!n&&"0 0 "+t+" "+e},i)}function Id(t,e){var i=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[i]=t,i}function kd(t){return b(t)?cI[t]?"cubic-bezier("+cI[t]+")":jt(t)?t:"":""}function Ad(t,e,i,n){var o=t.animators,r=o.length,a=[];if(t instanceof __){if(h=function(t,e,i){var n,o,t=t.shape.paths,r={};if(f(t,function(t){var e=Cd(i.zrId),t=(e.animation=!0,Ad(t,{},e,!0),e.cssAnims),a=e.cssNodes,e=v(t),s=e.length;if(s){var l,h,u=t[o=e[s-1]];for(l in u){var c=u[l];r[l]=r[l]||{d:""},r[l].d+=c.d||""}for(h in a){var p=a[h].animation;0<=p.indexOf(o)&&(n=p)}}}),n)return e.d=!1,t=Id(r,i),n.replace(o,t)}(t,e,i))a.push(h);else if(!r)return}else if(!r)return;for(var s,h,u,c={},p=0;p<r;p++){var d=o[p],g=[d.getMaxTime()/1e3+"s"],y=kd(d.getClip().easing),_=d.getDelay(),y=(g.push(y||"linear"),_&&g.push(_/1e3+"s"),d.getLoop()&&g.push("infinite"),g.join(" "));c[y]=c[y]||[y,[]],c[y][1].push(d)}for(s in c)(h=function(o){function r(t,e,i){for(var n=t.getTracks(),o=t.getMaxTime(),r=0;r<n.length;r++){var a=n[r];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(l=i?i(l):l)for(var h=0;h<s.length;h++){var u=s[h],c=Math.round(u.time/o*100)+"%",p=kd(u.easing),d=u.rawValue;(b(d)||T(d))&&(e[c]=e[c]||{},e[c][l]=u.rawValue,p)&&(e[c][f]=p)}}}}for(var a,s,h=o[1],u=h.length,c={},p={},d={},f="animation-timing-function",g=0;g<u;g++)(O=(P=h[g]).targetName)?"shape"===O&&r(P,p):n||r(P,c);for(D in c){var y={},_=(Je(y,t),l(y,c[D]),be(y)),x=c[D][f];d[D]=_?{transform:_}:{},_=d[D],a=void 0,a=(y=y).originX,y=y.originY,(a||y)&&(_[pI]=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 Mm: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 iI).reset(we(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)&&r(P,d,function(t){return dI[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][pI]!==d[B][pI]){R=!1;break}L=d[N][pI]}if(R&&L){for(var D in d)d[D][pI]&&delete d[D][pI];e[pI]=L}if(m(E,function(t){return 0<v(d[t]).length}).length)return Id(d,i)+" "+o[0]+" both"}(c[s]))&&a.push(h);a.length&&(u=i.zrId+"-cls-"+i.cssClassIdx++,i.cssNodes["."+u]={animation:a.join(",")},e.class=u)}function Dd(t){return t&&b(t.src)}function Pd(t){return t&&w(t.toDataURL)}function Od(t,e,i,n){wd(function(o,r){var a,s,l,h,u,c,p,d="fill"===o||"stroke"===o;if(d&&(g=r)&&("linear"===g.type||"radial"===g.type)){var f,g=t,y=o,m=n,v={gradientUnits:(I=(I=e)[y]).global?"userSpaceOnUse":"objectBoundingBox"};if(ve(I))f="linearGradient",v.x1=I.x,v.y1=I.y,v.x2=I.x2,v.y2=I.y2;else{if(!_e(I))return;f="radialGradient",v.cx=E(I.x,.5),v.cy=E(I.y,.5),v.r=E(I.r,.5)}for(var _=I.colorStops,x=[],w=0,S=_.length;w<S;++w){var T=100*ye(_[w].offset)+"%",C=de(_[w].color),M=C.color,C=C.opacity,T={offset:T};T["stop-color"]=M,C<1&&(T["stop-opacity"]=C),x.push(Sd("stop",w+"",T))}var I=Td(Sd(f,"",v,x)),k=m.gradientCache,A=k[I];A||(A=m.zrId+"-g"+m.gradientIdx++,k[I]=A,v.id=A,m.defs[A]=Sd(f,A,v,x)),g[y]=xe(A)}else d&&(me(k=r)||(k=k)&&k.svgElement)?(I=t,m=o,f=n,g=(v=i).style[m],y={patternUnits:"userSpaceOnUse"},me(g)?(l=g.imageWidth,h=g.imageHeight,u=void 0,b(p=g.image)?u=p:Dd(p)?u=p.src:Pd(p)&&(u=p.toDataURL()),"undefined"==typeof Image?(z(l,p="Image width/height must been given explictly in svg-ssr renderer."),z(h,p)):null!=l&&null!=h||(c=function(t,e){var i,n;t&&(i=t.elm,n=t.attrs.width=l||e.width,t=t.attrs.height=h||e.height,i)&&(i.setAttribute("width",n),i.setAttribute("height",t))},(p=un(u,null,v,function(t){c(s,t),c(a,t)}))&&p.width&&p.height&&(l=l||p.width,h=h||p.height)),a=Sd("image","img",{href:u,width:l,height:h}),y.width=l,y.height=h):g.svgElement&&(a=g.svgElement,y.width=g.svgWidth,y.height=g.svgHeight),a&&(y.patternTransform=be(g),s=Sd("pattern","",y,[a]),v=Td(s),p=f.patternCache,(u=p[v])||(u=f.zrId+"-p"+f.patternIdx++,p[v]=u,y.id=u,s=f.defs[u]=Sd("pattern",u,y,[a])),I[m]=xe(u))):t[o]=r},e,i,!1);var o=t,r=n;if(function(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}(f=(h=i).style)){var a=function(t){var e=t.style,t=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}(h),s=r.shadowCache,l=s[a];if(!l){var h=h.getGlobalScale(),u=h[0],h=h[1];if(!u||!h)return;var c=f.shadowOffsetX||0,p=f.shadowOffsetY||0,d=f.shadowBlur,f=de(f.shadowColor),g=f.opacity,f=f.color,d=d/2/u+" "+d/2/h;l=r.zrId+"-s"+r.shadowIdx++,r.defs[l]=Sd("filter",l,{id:l,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Sd("feDropShadow","",{dx:c/u,dy:p/h,stdDeviation:d,"flood-color":f,"flood-opacity":g})]),s[a]=l}o.filter=xe(l)}}function Ld(t){return fe(t[0]-1)&&fe(t[1])&&fe(t[2])&&fe(t[3]-1)}function Ed(t,e,i){var n;!e||fe((n=e)[4])&&fe(n[5])&&Ld(e)||(n=i?10:1e4,t.transform=Ld(e)?"translate("+fI(e[4]*n)/n+" "+fI(e[5]*n)/n+")":"matrix("+ge((i=e)[0])+","+ge(i[1])+","+ge(i[2])+","+ge(i[3])+","+ye(i[4])+","+ye(i[5])+")")}function Rd(t,e,i){for(var n=t.points,o=[],r=0;r<n.length;r++)o.push(fI(n[r][0]*i)/i),o.push(fI(n[r][1]*i)/i);e.points=o.join(" ")}function Nd(t){return!t.smooth}function Bd(t,e){var i,n,o,r=t.style,a=t.shape,s=gI[t.type],l={},h=e.animation,u="path",c=t.style.strokePercent,p=e.compress&&we(t)||4;return!s||e.willUpdate||s[1]&&!s[1](a)||h&&function(t){for(var e=t.animators,i=0;i<e.length;i++)if("shape"===e[i].targetName)return 1}(t)||c<1?(t.path||t.createPathProxy(),h=t.path,t.shapeChanged()&&(h.beginPath(),t.buildPath(h,t.shape),t.pathUpdated()),i=h.getVersion(),o=(n=t).__svgPathBuilder,n.__svgPathVersion===i&&o&&c===n.__svgPathStrokePercent||((o=o||(n.__svgPathBuilder=new iI)).reset(p),h.rebuildPath(o,c),o.generateStr(),n.__svgPathVersion=i,n.__svgPathStrokePercent=c),l.d=o.getStr()):(u=t.type,h=Math.pow(10,p),s[0](a,l,h)),Ed(l,t.transform),Od(l,r,t,e),e.animation&&Ad(t,l,e),Sd(u,t.id+"",l)}function zd(t,e){if(t instanceof Bm)return Bd(t,e);if(t instanceof Wm){var i=t,n=e,o=i.style,r=o.image;if(r&&!b(r)&&(Dd(r)?r=r.src:Pd(r)&&(r=r.toDataURL())),r)return a=o.x||0,s=o.y||0,r={href:r,width:o.width,height:o.height},a&&(r.x=a),s&&(r.y=s),Ed(r,i.transform),Od(r,o,i,n),n.animation&&Ad(i,r,n),Sd("image",i.id+"",r)}else if(t instanceof Fm){var a=t,s=e,o=a.style,n=o.text;if(null!=n&&(n+=""),n&&!isNaN(o.x)&&!isNaN(o.y)){var i=o.font||cf,r=o.x||0,l=(t=o.y||0,e=si(i),"top"===(l=o.textBaseline)?t+=e/2:"bottom"===l&&(t-=e/2),t),e={"dominant-baseline":"central","text-anchor":Cg[o.textAlign]||o.textAlign};if(Fn(o)){var t="",h=o.fontStyle,u=Bn(o.fontSize);if(!parseFloat(u))return;var c=o.fontFamily||uf,p=o.fontWeight;t+="font-size:"+u+";font-family:"+c+";",h&&"normal"!==h&&(t+="font-style:"+h+";"),p&&"normal"!==p&&(t+="font-weight:"+p+";"),e.style=t}else e.style="font: "+i;return n.match(/\s/)&&(e["xml:space"]="preserve"),r&&(e.x=r),l&&(e.y=l),Ed(e,a.transform),Od(e,o,a,s),s.animation&&Ad(a,e,s),Sd("text",a.id+"",e,void 0,n)}}}function Fd(t){return document.createTextNode(t)}function Vd(t,e,i){t.insertBefore(e,i)}function Yd(t,e){t.removeChild(e)}function Hd(t,e){t.appendChild(e)}function Wd(t){return t.parentNode}function Xd(t){return t.nextSibling}function Ud(t,e){t.textContent=e}function Gd(t){return void 0===t}function jd(t){return void 0!==t}function qd(t,e){var i=t.key===e.key;return t.tag===e.tag&&i}function Zd(t){var e,i=t.children,n=t.tag;if(jd(n)){var o=t.elm=bd(n);if($d(vI,t),x(i))for(e=0;e<i.length;++e){var r=i[e];null!=r&&Hd(o,Zd(r))}else jd(t.text)&&!C(t.text)&&Hd(o,Fd(t.text))}else t.elm=Fd(t.text);return t.elm}function Kd(t,e,i,n,o){for(;n<=o;++n){var r=i[n];null!=r&&Vd(t,Zd(r),e)}}function Qd(t,e,i,n){for(;i<=n;++i){var o=e[i];null!=o&&(jd(o.tag)?Yd(Wd(o.elm),o.elm):Yd(t,o.elm))}}function $d(t,e){var i,n=e.elm,o=t&&t.attrs||{},r=e.attrs||{};if(o!==r){for(i in r){var a=r[i];o[i]!==a&&(!0===a?n.setAttribute(i,""):!1===a?n.removeAttribute(i):i.charCodeAt(0)!==mI?n.setAttribute(i,a):"xmlns:xlink"===i||"xmlns"===i?n.setAttributeNS(hI,i,a):i.charCodeAt(3)===yI?n.setAttributeNS(uI,i,a):i.charCodeAt(5)===yI?n.setAttributeNS(lI,i,a):n.setAttribute(i,a))}for(i in o)i in r||n.removeAttribute(i)}}function Jd(t,e,i){for(var n,o,r,a=0,s=0,l=e.length-1,h=e[0],u=e[l],c=i.length-1,p=i[0],d=i[c];a<=l&&s<=c;)null==h?h=e[++a]:null==u?u=e[--l]:null==p?p=i[++s]:null==d?d=i[--c]:qd(h,p)?(tf(h,p),h=e[++a],p=i[++s]):qd(u,d)?(tf(u,d),u=e[--l],d=i[--c]):qd(h,d)?(tf(h,d),Vd(t,h.elm,Xd(u.elm)),h=e[++a],d=i[--c]):(qd(u,p)?(tf(u,p),Vd(t,u.elm,h.elm),u=e[--l]):(Gd(n)&&(n=function(t,e,i){for(var n={},o=e;o<=i;++o){var r=t[o].key;void 0!==r&&(n[r]=o)}return n}(e,a,l)),Gd(o=n[p.key])||(r=e[o]).tag!==p.tag?Vd(t,Zd(p),h.elm):(tf(r,p),e[o]=void 0,Vd(t,r.elm,h.elm))),p=i[++s]);(a<=l||s<=c)&&(l<a?Kd(t,null==i[c+1]?null:i[c+1].elm,i,s,c):Qd(t,e,a,l))}function tf(t,e){var i=e.elm=t.elm,n=t.children,o=e.children;t!==e&&($d(t,e),Gd(e.text)?jd(n)&&jd(o)?n!==o&&Jd(i,n,o):jd(o)?(jd(t.text)&&Ud(i,""),Kd(i,null,o,0,o.length-1)):jd(n)?Qd(i,n,0,n.length-1):jd(t.text)&&Ud(i,""):t.text!==e.text&&(jd(n)&&Qd(i,n,0,n.length-1),Ud(i,e.text)))}function ef(t,e,i){var n;this.type="svg",this.refreshHover=nf(),this.configLayer=nf(),this.storage=e,this._opts=i=l({},i),this.root=t,this._id="zr"+_I++,this._oldVNode=Md(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=bd("svg"),$d(null,this._oldVNode),e.appendChild(n),t.appendChild(e)),this.resize(i.width,i.height)}function nf(){return function(){}}var of=function(t,e){return(of=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)},rf=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},af=new function(){this.browser=new rf,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(af.wxa=!0,af.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?af.worker=!0:"undefined"==typeof navigator?(af.node=!0,af.svgSupported=!0):(Sf=navigator.userAgent,Ef=(Pf=af).browser,Mf=Sf.match(/Firefox\/([\d.]+)/),mf=Sf.match(/MSIE\s([\d.]+)/)||Sf.match(/Trident\/.+?rv:(([\d.]+))/),bf=Sf.match(/Edge?\/([\d.]+)/),Sf=/micromessenger/i.test(Sf),Mf&&(Ef.firefox=!0,Ef.version=Mf[1]),mf&&(Ef.ie=!0,Ef.version=mf[1]),bf&&(Ef.edge=!0,Ef.version=bf[1],Ef.newEdge=18<+bf[1].split(".")[0]),Sf&&(Ef.weChat=!0),Pf.svgSupported="undefined"!=typeof SVGRect,Pf.touchEventsSupported="ontouchstart"in window&&!Ef.ie&&!Ef.edge,Pf.pointerEventsSupported="onpointerdown"in window&&(Ef.edge||Ef.ie&&11<=+Ef.version),Pf.domSupported="undefined"!=typeof document,Mf=document.documentElement.style,Pf.transform3dSupported=(Ef.ie&&"transition"in Mf||Ef.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in Mf)&&!("OTransition"in Mf),Pf.transformSupported=Pf.transform3dSupported||Ef.ie&&9<=+Ef.version);var sf,lf,hf=12,uf="sans-serif",cf=hf+"px "+uf,pf=function(t){var e={};if("undefined"!=typeof JSON)for(var i=0;i<t.length;i++){var n=String.fromCharCode(i+32),o=(t.charCodeAt(i)-20)/100;e[n]=o}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),df={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(sf||(i=df.createCanvas(),sf=i&&i.getContext("2d")),sf)return lf!==e&&(lf=sf.font=e||cf),sf.measureText(t);t=t||"",e=e||cf;var i=/^([0-9]*?)px$/.exec(e),n=+(i&&i[1])||hf,o=0;if(0<=e.indexOf("mono"))o=n*t.length;else for(var r=0;r<t.length;r++){var a=pf[t[r]];o+=null==a?n:a*n}return{width:o}},loadImage:function(t,e,i){var n=new Image;return n.onload=e,n.onerror=i,n.src=t,n}},ff=y(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),gf=y(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),yf=Object.prototype.toString,mf=Array.prototype,vf=mf.forEach,_f=mf.filter,xf=mf.slice,wf=mf.map,bf=function(){}.constructor,Sf=bf?bf.prototype:null,Tf="__proto__",Cf=2311,Mf=df.createCanvas,If=Sf&&w(Sf.bind)?Sf.call.bind(Sf.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(xf.call(arguments)))}},kf="__ec_primitive__";H.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},H.prototype.set=function(t,e){return this.data[t]=e},H.prototype.each=function(t,e){for(var i in this.data)this.data.hasOwnProperty(i)&&t.call(e,this.data[i],i)},H.prototype.keys=function(){return v(this.data)},H.prototype.removeKey=function(t){delete this.data[t]};var Af=H,Df=180/Math.PI,Pf=Object.freeze({__proto__:null,HashMap:Af,RADIAN_TO_DEGREE:Df,assert:z,bind:If,clone:a,concatArray:X,createCanvas:Mf,createHashMap:W,createObject:U,curry:_,defaults:h,disableUserSelect:G,each:f,eqNaN:O,extend:l,filter:m,find:function(t,e,i){if(t&&e)for(var n=0,o=t.length;n<o;n++)if(e.call(i,t[n],n,t))return t[n]},guid:o,hasOwn:j,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:r,map:g,merge:s,mergeAll:function(t,e){for(var i=t[0],n=1,o=t.length;n<o;n++)i=s(i,t[n],e);return i},mixin:p,noop:q,normalizeCssArray:B,reduce:y,retrieve:L,retrieve2:E,retrieve3:R,setAsPrimitive:V,slice:N,trim:F}),Of=nt,Lf=ot,Ef=Object.freeze({__proto__:null,add:Q,applyTransform:at,clone:K,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},create:Z,dist:Of,distSquare:Lf,distance:nt,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:J,lenSquare:tt,length:J,lengthSquare:tt,lerp:rt,max:lt,min:st,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:it,scale:et,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:$}),Rf=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},Nf=(ht.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 Rf(e,t),"dragstart",t.event))},ht.prototype._drag=function(t){var e,i,n,o,r=this._draggingTarget;r&&(e=t.offsetX,i=t.offsetY,n=e-this._x,o=i-this._y,this._x=e,this._y=i,r.drift(n,o,t),this.handler.dispatchToElement(new Rf(r,t),"drag",t.event),n=this.handler.findHover(e,i,r).target,o=this._dropTarget,r!==(this._dropTarget=n))&&(o&&n!==o&&this.handler.dispatchToElement(new Rf(o,t),"dragleave",t.event),n)&&n!==o&&this.handler.dispatchToElement(new Rf(n,t),"dragenter",t.event)},ht.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Rf(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Rf(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},ht);ut.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var o=this._$handlers;if("function"==typeof e&&(n=i,i=e,e=null),i&&t){var r=this._$eventProcessor;null!=e&&r&&r.normalizeQuery&&(e=r.normalizeQuery(e)),o[t]||(o[t]=[]);for(var a=0;a<o[t].length;a++)if(o[t][a].h===i)return this;r={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},e=o[t].length-1,n=o[t][e],n&&n.callAtLast?o[t].splice(e,0,r):o[t].push(r)}return this},ut.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},ut.prototype.off=function(t,e){var i=this._$handlers;if(i)if(t)if(e){if(i[t]){for(var n=[],o=0,r=i[t].length;o<r;o++)i[t][o].h!==e&&n.push(i[t][o]);i[t]=n}i[t]&&0===i[t].length&&delete i[t]}else delete i[t];else this._$handlers={};return this},ut.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(this._$handlers){var n=this._$handlers[t],o=this._$eventProcessor;if(n)for(var r=e.length,a=n.length,s=0;s<a;s++){var l=n[s];if(!o||!o.filter||null==l.query||o.filter(t,l.query))switch(r){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}o&&o.afterTrigger&&o.afterTrigger(t)}return this},ut.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(this._$handlers){var n=this._$handlers[t],o=this._$eventProcessor;if(n)for(var r=e.length,a=e[r-1],s=n.length,l=0;l<s;l++){var h=n[l];if(!o||!o.filter||null==h.query||o.filter(t,h.query))switch(r){case 0:h.h.call(a);break;case 1:h.h.call(a,e[0]);break;case 2:h.h.call(a,e[0],e[1]);break;default:h.h.apply(a,e.slice(1,r-1))}}o&&o.afterTrigger&&o.afterTrigger(t)}return this};var Bf=ut,zf=Math.log(2),Ff="___zrEVENTSAVED",Vf=[],Yf=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Hf=[],Wf=af.browser.firefox&&+af.browser.version.split(".")[0]<39,Xf=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},Uf=(_t.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},_t.prototype.clear=function(){return this._track.length=0,this},_t.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var o={points:[],touches:[],target:e,event:t},r=0,a=n.length;r<a;r++){var s=n[r],l=gt(i,s,{});o.points.push([l.zrX,l.zrY]),o.touches.push(s)}this._track.push(o)}},_t.prototype._recognize=function(t){for(var e in Gf)if(Gf.hasOwnProperty(e)&&(e=Gf[e](this._track,t)))return e},_t),Gf={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=xt(i)/xt(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}};i(bt,jf=Bf),bt.prototype.dispose=function(){},bt.prototype.setCursor=function(){};var jf,qf,Zf=bt,Kf=function(t,e){this.x=t,this.y=e},Qf=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],$f=(i(St,qf=Bf),St.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(f(Qf,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},St.prototype.mousemove=function(t){var e=t.zrX,i=t.zrY,n=Tt(this,e,i),o=this._hovered,r=o.target,n=(r&&!r.__zr&&(r=(o=this.findHover(o.x,o.y)).target),this._hovered=n?new Kf(e,i):this.findHover(e,i)),e=n.target,i=this.proxy;i.setCursor&&i.setCursor(e?e.cursor:"default"),r&&e!==r&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(n,"mousemove",t),e&&e!==r&&this.dispatchToElement(n,"mouseover",t)},St.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},St.prototype.resize=function(){this._hovered=new Kf(0,0)},St.prototype.dispatch=function(t,e){(t=this[t])&&t.call(this,e)},St.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},St.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},St.prototype.dispatchToElement=function(t,e,i){var n=(t=t||{}).target;if(!n||!n.silent){for(var o="on"+e,r={type:e,event:i,target:(t=t).target,topTarget:t.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:wt};n&&(n[o]&&(r.cancelBubble=!!n[o].call(n,r)),n.trigger(e,r),n=n.__hostTarget||n.parent,!r.cancelBubble););r.cancelBubble||(this.trigger(e,r),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[o]&&t[o].call(t,r),t.trigger&&t.trigger(e,r)}))}},St.prototype.findHover=function(t,e,i){for(var n=this.storage.getDisplayList(),o=new Kf(t,e),r=n.length-1;0<=r;r--){var a=void 0;if(n[r]!==i&&!n[r].ignore&&(a=function(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n=t,o=void 0,r=!1;n;){if(!(r=!!n.ignoreClip||r)){var a=n.getClipPath();if(a&&!a.contain(e,i))return!1;n.silent&&(o=!0)}a=n.__hostTarget,n=a||n.parent}return!o||"silent"}return!1}(n[r],t,e))&&(o.topTarget||(o.topTarget=n[r]),"silent"!==a)){o.target=n[r];break}}return o},St.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Uf);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 Kf).target=n.target,this.dispatchToElement(i,e,n.event))},St);f(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){$f.prototype[t]=function(e){var i,n,o=e.zrX,r=e.zrY,a=Tt(this,o,r);if("mouseup"===t&&a||(n=(i=this.findHover(o,r)).target),"mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||4<Of(this._downPoint,[e.zrX,e.zrY]))return;this._downPoint=null}this.dispatchToElement(i,t,e)}});var Jf=32,tg=7,eg=1,ig=4,ng=!1;Lt.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},Lt.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return!t&&i.length||this.updateDisplayList(e),i},Lt.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,o=e.length;n<o;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,Dt(i,Ot)},Lt.prototype._updateAndAddDisplayable=function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)e=null;else if(n){e=e?e.slice():[];for(var o=n,r=t;o;)o.parent=r,o.updateTransform(),e.push(o),o=(r=o).getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=eg),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)&&(Pt(),n.z=0),isNaN(n.z2)&&(Pt(),n.z2=0),isNaN(n.zlevel)&&(Pt(),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)}},Lt.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},Lt.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);else{var n=u(this._roots,t);0<=n&&this._roots.splice(n,1)}},Lt.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},Lt.prototype.getRoots=function(){return this._roots},Lt.prototype.dispose=function(){this._displayList=null,this._roots=null};var og=Lt,rg=af.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},ag={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,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-ag.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*ag.bounceIn(2*t):.5*ag.bounceOut(2*t-1)+.5}},sg=Math.pow,lg=Math.sqrt,hg=1e-8,ug=lg(3),cg=1/3,pg=Z(),dg=Z(),fg=Z(),gg=/cubic-bezier\(([0-9,\.e ]+)\)/;qt.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var i=this._life,n=t-this._startTime-this._pausedTime,o=n/i,r=(o<0&&(o=0),o=Math.min(o,1),this.easingFunc),r=r?r(o):o;if(this.onframe(r),1===o){if(!this.loop)return!0;this._startTime=t-n%i,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},qt.prototype.pause=function(){this._paused=!0},qt.prototype.resume=function(){this._paused=!1},qt.prototype.setEasing=function(t){this.easing=t,this.easingFunc=w(t)?t:ag[t]||jt(t)};var yg=qt,mg=function(t){this.value=t},vg=(Zt.prototype.insert=function(t){return t=new mg(t),this.insertEntry(t),t},Zt.prototype.insertEntry=function(t){this.head?((this.tail.next=t).prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},Zt.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},Zt.prototype.len=function(){return this._len},Zt.prototype.clear=function(){this.head=this.tail=null,this._len=0},Zt);Kt.prototype.put=function(t,e){var i,n,o=this._list,r=this._map,a=null;return null==r[t]&&(n=o.len(),i=this._lastRemovedEntry,n>=this._maxSize&&0<n&&(n=o.head,o.remove(n),delete r[n.key],a=n.value,this._lastRemovedEntry=n),i?i.value=e:i=new mg(e),i.key=t,o.insertEntry(i),r[t]=i),a},Kt.prototype.get=function(t){var t=this._map[t],e=this._list;if(null!=t)return t!==e.tail&&(e.remove(t),e.insertEntry(t)),t.value},Kt.prototype.clear=function(){this._list.clear(),this._map={}},Kt.prototype.len=function(){return this._list.len()};var _g=Kt,xg={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]},wg=new _g(20),bg=null,Sg=Object.freeze({__proto__:null,fastLerp:he,fastMapToColor:he,lerp:ue,lift:le,lum:pe,mapToColor:ue,modifyAlpha:function(t,e){if((t=ae(t))&&null!=e)return t[3]=$t(e),ce(t,"rgba")},modifyHSL:function(t,e,i,n){var o=ae(t);if(t)return o=function(t){var e,i,n,o,r,a,s,l,h,u;if(t)return u=t[0]/255,e=t[1]/255,i=t[2]/255,s=Math.min(u,e,i),o=((n=Math.max(u,e,i))+s)/2,0==(h=n-s)?a=r=0:(a=o<.5?h/(n+s):h/(2-n-s),s=((n-u)/6+h/2)/h,l=((n-e)/6+h/2)/h,h=((n-i)/6+h/2)/h,u===n?r=h-l:e===n?r=1/3+s-h:i===n&&(r=2/3+l-s),r<0&&(r+=1),1<r&&--r),u=[360*r,a,o],null!=t[3]&&u.push(t[3]),u}(o),null!=e&&(o[0]=(t=e,(t=Math.round(t))<0?0:360<t?360:t)),null!=i&&(o[1]=te(i)),null!=n&&(o[2]=te(n)),ce(se(o),"rgba")},parse:ae,random:function(){return ce([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:ce,toHex:function(t){if(t=ae(t))return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}}),Tg=Math.round,Cg={left:"start",right:"end",center:"middle",middle:"middle"},Mg=af.hasGlobalWindow&&w(window.btoa)?function(t){return window.btoa(unescape(t))}:void 0!==t?function(e){return t.from(e).toString("base64")}:function(t){return null},Ig=Array.prototype.slice,kg=[0,0,0,0],Ag=(Pe.prototype.isFinished=function(){return this._finished},Pe.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},Pe.prototype.needsAnimate=function(){return 1<=this.keyframes.length},Pe.prototype.getAdditiveTrack=function(){return this._additiveTrack},Pe.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n,o=this.keyframes,r=o.length,a=!1,s=6,h=e,u=(d(e)?(1==(s=n=d((n=e)&&n[0])?2:1)&&!T(e[0])||2==n&&!T(e[0][0]))&&(a=!0):T(e)&&!O(e)?s=0:b(e)?isNaN(+e)?(n=ae(e))&&(h=n,s=3):s=0:A(e)&&((u=l({},h)).colorStops=g(e.colorStops,function(t){return{offset:t.offset,color:ae(t.color)}}),ve(e)?s=4:_e(e)&&(s=5),h=u),0===r?this.valType=s:s===this.valType&&6!==s||(a=!0),this.discrete=this.discrete||a,{time:t,value:h,rawValue:e,percent:0});return i&&(u.easing=i,u.easingFunc=w(i)?i:ag[i]||jt(i)),o.push(u),u},Pe.prototype.prepare=function(t,e){for(var i=this.keyframes,n=(this._needsSort&&i.sort(function(t,e){return t.time-e.time}),this.valType),o=i.length,r=i[o-1],a=this.discrete,s=De(n),l=Ae(n),h=0;h<o;h++){var u=i[h],c=u.value,p=r.value;if(u.percent=u.time/t,!a)if(s&&h!==o-1){x=_=v=m=y=g=f=d=u=void 0;var d=p,f=n,g=u=c,y=d;if(g.push&&y.push){var u=g.length,m=y.length;if(u!==m)if(m<u)g.length=m;else for(var v=u;v<m;v++)g.push(1===f?y[v]:Ig.call(y[v]));for(var _=g[0]&&g[0].length,v=0;v<g.length;v++)if(1===f)isNaN(g[v])&&(g[v]=y[v]);else for(var x=0;x<_;x++)isNaN(g[v][x])&&(g[v][x]=y[v][x])}}else if(l){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<o;h++)0===n?i[h].additiveValue=i[h].value-M:3===n?i[h].additiveValue=Ce([],i[h].value,M,-1):De(n)&&(i[h].additiveValue=(1===n?Ce:Me)([],i[h].value,M,-1))}},Pe.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i,n,o,r,a=null!=this._additiveTrack,s=a?"additiveValue":"value",l=this.valType,h=this.keyframes,u=h.length,c=this.propName,p=3===l,d=this._lastFr,f=Math.min;if(1===u)i=n=h[0];else{if(e<0)y=0;else if(e<this._lastFrP){for(var y=f(d+1,u-1);0<=y&&!(h[y].percent<=e);y--);y=f(y,u-2)}else{for(y=d;y<u&&!(h[y].percent>e);y++);y=f(y-1,u-2)}n=h[y+1],i=h[y]}i&&n&&(this._lastFr=y,this._lastFrP=e,d=n.percent-i.percent,o=0==d?1:f((e-i.percent)/d,1),n.easingFunc&&(o=n.easingFunc(o)),f=a?this._additiveValue:p?kg:t[c],(De(l)||p)&&(f=f||(this._additiveValue=[])),this.discrete?t[c]=(o<1?i:n).rawValue:De(l)?(1===l?Te:function(t,e,i,n){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){t[a]||(t[a]=[]);for(var s=0;s<r;s++)t[a][s]=Se(e[a][s],i[a][s],n)}})(f,i[s],n[s],o):Ae(l)?(d=i[s],r=n[s],t[c]={type:(l=4===l)?"linear":"radial",x:Se(d.x,r.x,o),y:Se(d.y,r.y,o),colorStops:g(d.colorStops,function(t,e){return e=r.colorStops[e],{offset:Se(t.offset,e.offset,o),color:ke(Te([],t.color,e.color,o))}}),global:r.global},l?(t[c].x2=Se(d.x2,r.x2,o),t[c].y2=Se(d.y2,r.y2,o)):t[c].r=Se(d.r,r.r,o)):p?(Te(f,i[s],n[s],o),a||(t[c]=ke(f))):(l=Se(i[s],n[s],o),a?this._additiveValue=l:t[c]=l),a)&&this._addToTarget(t)}},Pe.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;0===e?t[i]=t[i]+n:3===e?(ae(t[i],kg),Ce(kg,kg,n,1),t[i]=ke(kg)):1===e?Ce(t[i],t[i],n,1):2===e&&Me(t[i],t[i],n,1)},Pe);Oe.prototype.getMaxTime=function(){return this._maxTime},Oe.prototype.getDelay=function(){return this._delay},Oe.prototype.getLoop=function(){return this._loop},Oe.prototype.getTarget=function(){return this._target},Oe.prototype.changeTarget=function(t){this._target=t},Oe.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,v(e),i)},Oe.prototype.whenWithKeys=function(t,e,i,n){for(var o=this._tracks,r=0;r<i.length;r++){var a=i[r];if(!(l=o[a])){var s,l=o[a]=new Ag(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&&ke(h))):h=this._target[a],null==h)continue;0<t&&l.addKeyframe(0,Ie(h),n),this._trackKeys.push(a)}l.addKeyframe(t,Ie(e[a]),n)}return this._maxTime=Math.max(this._maxTime,t),this},Oe.prototype.pause=function(){this._clip.pause(),this._paused=!0},Oe.prototype.resume=function(){this._clip.resume(),this._paused=!1},Oe.prototype.isPaused=function(){return!!this._paused},Oe.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},Oe.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},Oe.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},Oe.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},Oe.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var o=i[n].getTrack(t);o&&(e=o)}return e},Oe.prototype.start=function(t){if(!(0<this._started)){this._started=1;for(var e,i=this,n=[],o=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var a=this._trackKeys[r],s=this._tracks[a],a=this._getAdditiveTrack(a),l=s.keyframes,h=l.length;s.prepare(o,a),s.needsAnimate()&&(!this._allowDiscrete&&s.discrete?((a=l[h-1])&&(i._target[s.propName]=a.rawValue),s.setFinished()):n.push(s))}return n.length||this._force?(e=new yg({life:o,loop:this._loop,delay:this._delay||0,onframe:function(t){i._started=2;var e=i._additiveAnimators;if(e){for(var o=!1,r=0;r<e.length;r++)if(e[r]._clip){o=!0;break}o||(i._additiveAnimators=null)}for(r=0;r<n.length;r++)n[r].step(i._target,t);var a=i._onframeCbs;if(a)for(r=0;r<a.length;r++)a[r](i._target,t)},ondestroy:function(){i._doneCallback()}}),this._clip=e,this.animation&&this.animation.addClip(e),t&&e.setEasing(t)):this._doneCallback(),this}},Oe.prototype.stop=function(t){var e;this._clip&&(e=this._clip,t&&e.onframe(1),this._abortedCallback())},Oe.prototype.delay=function(t){return this._delay=t,this},Oe.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},Oe.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},Oe.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},Oe.prototype.getClip=function(){return this._clip},Oe.prototype.getTrack=function(t){return this._tracks[t]},Oe.prototype.getTracks=function(){var t=this;return g(this._trackKeys,function(e){return t._tracks[e]})},Oe.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,o=0;o<t.length;o++){var r=i[t[o]];r&&!r.isFinished()&&(e?r.step(this._target,1):1===this._started&&r.step(this._target,0),r.setFinished())}for(var a=!0,o=0;o<n.length;o++)if(!i[n[o]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},Oe.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var o=e[n],r=this._tracks[o];r&&!r.isFinished()&&(r=(r=r.keyframes)[i?0:r.length-1])&&(t[o]=Ie(r.rawValue))}}},Oe.prototype.__changeFinalValue=function(t,e){e=e||v(t);for(var i=0;i<e.length;i++){var n,o=e[i],r=this._tracks[o];r&&1<(n=r.keyframes).length&&(n=n.pop(),r.addKeyframe(n.time,t[o]),r.prepare(this._maxTime,r.getAdditiveTrack()))}};var Dg=Oe;i(Ee,Pg=Bf),Ee.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},Ee.prototype.addAnimator=function(t){t.animation=this,(t=t.getClip())&&this.addClip(t)},Ee.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)},Ee.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},Ee.prototype.update=function(t){for(var e=Le()-this._pausedTime,i=e-this._time,n=this._head;n;)var o=n.next,n=(n.step(e,i)&&(n.ondestroy(),this.removeClip(n)),o);this._time=e,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},Ee.prototype._startLoop=function(){var t=this;this._running=!0,rg(function e(){t._running&&(rg(e),t._paused||t.update())})},Ee.prototype.start=function(){this._running||(this._time=Le(),this._pausedTime=0,this._startLoop())},Ee.prototype.stop=function(){this._running=!1},Ee.prototype.pause=function(){this._paused||(this._pauseStart=Le(),this._paused=!0)},Ee.prototype.resume=function(){this._paused&&(this._pausedTime+=Le()-this._pauseStart,this._paused=!1)},Ee.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},Ee.prototype.isFinished=function(){return null==this._head},Ee.prototype.animate=function(t,e){return e=e||{},this.start(),t=new Dg(t,e.loop),this.addAnimator(t),t};var Pg,Og,Lg,Eg=Ee,Rg=af.domSupported,Ng=(Og={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Ug=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:g(Ug,function(t){var e=t.replace("mouse","pointer");return Og.hasOwnProperty(e)?e:t})}),Bg=["mousemove","mouseup"],zg=["pointermove","pointerup"],Fg=!1,Vg=function(t,e){this.stopPropagation=q,this.stopImmediatePropagation=q,this.preventDefault=q,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Yg={mousedown:function(t){t=vt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=vt(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=vt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Be(this,(t=vt(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Fg=!0,t=vt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Fg||(t=vt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Ne(t=vt(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Yg.mousemove.call(this,t),Yg.mousedown.call(this,t)},touchmove:function(t){Ne(t=vt(this.dom,t)),this.handler.processGesture(t,"change"),Yg.mousemove.call(this,t)},touchend:function(t){Ne(t=vt(this.dom,t)),this.handler.processGesture(t,"end"),Yg.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Yg.click.call(this,t)},pointerdown:function(t){Yg.mousedown.call(this,t)},pointermove:function(t){Re(t)||Yg.mousemove.call(this,t)},pointerup:function(t){Yg.mouseup.call(this,t)},pointerout:function(t){Re(t)||Yg.mouseout.call(this,t)}},Hg=(f(["click","dblclick","contextmenu"],function(t){Yg[t]=function(e){e=vt(this.dom,e),this.trigger(t,e)}}),{pointermove:function(t){Re(t)||Hg.mousemove.call(this,t)},pointerup:function(t){Hg.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}}),Wg=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},Xg=(i(He,Lg=Bf),He.prototype.dispose=function(){Ye(this._localHandlerScope),Rg&&Ye(this._globalHandlerScope)},He.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},He.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,Rg&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?Fe(this,e):Ye(e))},He),Ug=1,Gg=Ug=af.hasGlobalWindow?Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1):Ug,jg="#333",qg="#ccc",Ug=Object.freeze({__proto__:null,clone:function(t){var e=We();return Ue(e,t),e},copy:Ue,create:We,identity:Xe,invert:Ke,mul:Ge,rotate:qe,scale:Ze,translate:je}),Zg=Xe,Kg=[],Qg=[],$g=We(),Jg=Math.abs,ty=($e.prototype.getLocalTransform=function(t){return $e.getLocalTransform(this,t)},$e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},$e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},$e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},$e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},$e.prototype.needLocalTransform=function(){return Qe(this.rotation)||Qe(this.x)||Qe(this.y)||Qe(this.scaleX-1)||Qe(this.scaleY-1)||Qe(this.skewX)||Qe(this.skewY)},$e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;e||t?(i=i||We(),e?this.getLocalTransform(i):Zg(i),t&&(e?Ge(i,t,i):Ue(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)):i&&Zg(i)},$e.prototype._resolveGlobalScaleRatio=function(t){var e,i,n=this.globalScaleRatio;null!=n&&1!==n&&(this.getGlobalScale(Kg),i=((Kg[1]-(i=Kg[1]<0?-1:1))*n+i)/Kg[1]||0,t[0]*=n=((Kg[0]-(e=Kg[0]<0?-1:1))*n+e)/Kg[0]||0,t[1]*=n,t[2]*=i,t[3]*=i),this.invTransform=this.invTransform||We(),Ke(this.invTransform,t)},$e.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},$e.prototype.setLocalTransform=function(t){var e,i,n,o;t&&(o=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],e=Math.atan2(t[1],t[0]),i=Math.PI/2+e-Math.atan2(t[3],t[2]),n=Math.sqrt(n)*Math.cos(i),o=Math.sqrt(o),this.skewX=i,this.skewY=0,this.rotation=-e,this.x=+t[4],this.y=+t[5],this.scaleX=o,this.scaleY=n,this.originX=0,this.originY=0)},$e.prototype.decomposeTransform=function(){var t,e,i;this.transform&&(e=this.parent,t=this.transform,e&&e.transform&&(Ge(Qg,e.invTransform,t),t=Qg),e=this.originX,i=this.originY,(e||i)&&($g[4]=e,$g[5]=i,Ge(Qg,t,$g),Qg[4]-=e,Qg[5]-=i,t=Qg),this.setLocalTransform(t))},$e.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},$e.prototype.transformCoordToLocal=function(t,e){return t=[t,e],e=this.invTransform,e&&at(t,t,e),t},$e.prototype.transformCoordToGlobal=function(t,e){return t=[t,e],e=this.transform,e&&at(t,t,e),t},$e.prototype.getLineScale=function(){var t=this.transform;return t&&1e-10<Jg(t[0]-1)&&1e-10<Jg(t[3]-1)?Math.sqrt(Jg(t[0]*t[3]-t[2]*t[1])):1},$e.prototype.copyTransform=function(t){Je(this,t)},$e.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,o=t.scaleX,r=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,h=t.x,u=t.y,c=t.skewX?Math.tan(t.skewX):0,t=t.skewY?Math.tan(-t.skewY):0;return i||n||a||s?(e[4]=-(a=i+a)*o-c*(s=n+s)*r,e[5]=-s*r-t*a*o):e[4]=e[5]=0,e[0]=o,e[3]=r,e[1]=t*o,e[2]=c*r,l&&qe(e,e,l),e[4]+=i+h,e[5]+=n+u,e},$e.initDefaultProps=((_y=$e.prototype).scaleX=_y.scaleY=_y.globalScaleRatio=1,void(_y.x=_y.y=_y.originX=_y.originY=_y.skewX=_y.skewY=_y.rotation=_y.anchorX=_y.anchorY=0)),$e),ey=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];ti.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},ti.prototype.clone=function(){return new ti(this.x,this.y)},ti.prototype.set=function(t,e){return this.x=t,this.y=e,this},ti.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},ti.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},ti.prototype.scale=function(t){this.x*=t,this.y*=t},ti.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},ti.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},ti.prototype.dot=function(t){return this.x*t.x+this.y*t.y},ti.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},ti.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},ti.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},ti.prototype.distance=function(t){var e=this.x-t.x,t=this.y-t.y;return Math.sqrt(e*e+t*t)},ti.prototype.distanceSquare=function(t){var e=this.x-t.x,t=this.y-t.y;return e*e+t*t},ti.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},ti.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},ti.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},ti.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},ti.set=function(t,e,i){t.x=e,t.y=i},ti.copy=function(t,e){t.x=e.x,t.y=e.y},ti.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},ti.lenSquare=function(t){return t.x*t.x+t.y*t.y},ti.dot=function(t,e){return t.x*e.x+t.y*e.y},ti.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},ti.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},ti.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},ti.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},ti.lerp=function(t,e,i,n){var o=1-n;t.x=o*e.x+n*i.x,t.y=o*e.y+n*i.y};var iy,ny=ti,oy=Math.min,ry=Math.max,ay=new ny,sy=new ny,ly=new ny,hy=new ny,uy=new ny,cy=new ny,py=(ei.prototype.union=function(t){var e=oy(t.x,this.x),i=oy(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ry(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ry(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},ei.prototype.applyTransform=function(t){ei.applyTransform(this,this,t)},ei.prototype.calculateTransform=function(t){var e=t.width/this.width,i=t.height/this.height,n=We();return je(n,n,[-this.x,-this.y]),Ze(n,n,[e,i]),je(n,n,[t.x,t.y]),n},ei.prototype.intersect=function(t,e){if(!t)return!1;t instanceof ei||(t=ei.create(t));var i,n,o,r,a,s,l,h,u=this,c=u.x,p=u.x+u.width,d=u.y,u=u.y+u.height,f=t.x,g=t.x+t.width,y=t.y,t=t.y+t.height,m=!(p<f||g<c||u<y||t<d);return e&&(i=1/0,n=0,o=Math.abs(p-f),r=Math.abs(g-c),a=Math.abs(u-y),s=Math.abs(t-d),l=Math.min(o,r),h=Math.min(a,s),p<f||g<c?n<l&&(n=l,o<r?ny.set(cy,-o,0):ny.set(cy,r,0)):l<i&&(i=l,o<r?ny.set(uy,o,0):ny.set(uy,-r,0)),u<y||t<d?n<h&&(n=h,a<s?ny.set(cy,0,-a):ny.set(cy,0,s)):l<i&&(i=l,a<s?ny.set(uy,0,a):ny.set(uy,0,-s))),e&&ny.copy(e,m?uy:cy),m},ei.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},ei.prototype.clone=function(){return new ei(this.x,this.y,this.width,this.height)},ei.prototype.copy=function(t){ei.copy(this,t)},ei.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},ei.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},ei.prototype.isZero=function(){return 0===this.width||0===this.height},ei.create=function(t){return new ei(t.x,t.y,t.width,t.height)},ei.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},ei.applyTransform=function(t,e,i){var n,o,r,a;i?i[1]<1e-5&&-1e-5<i[1]&&i[2]<1e-5&&-1e-5<i[2]?(n=i[0],o=i[3],r=i[4],a=i[5],t.x=e.x*n+r,t.y=e.y*o+a,t.width=e.width*n,t.height=e.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height)):(ay.x=ly.x=e.x,ay.y=hy.y=e.y,sy.x=hy.x=e.x+e.width,sy.y=ly.y=e.y+e.height,ay.transform(i),hy.transform(i),sy.transform(i),ly.transform(i),t.x=oy(ay.x,sy.x,ly.x,hy.x),t.y=oy(ay.y,sy.y,ly.y,hy.y),r=ry(ay.x,sy.x,ly.x,hy.x),a=ry(ay.y,sy.y,ly.y,hy.y),t.width=r-t.x,t.height=a-t.y):t!==e&&ei.copy(t,e)},ei),dy={},fy="__zr_normal__",gy=ey.concat(["ignore"]),yy=y(ey,function(t,e){return t[e]=!0,t},{ignore:!1}),my={},vy=new py(0,0,0,0),_y=(ui.prototype._init=function(t){this.attr(t)},ui.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()},ui.prototype.beforeUpdate=function(){},ui.prototype.afterUpdate=function(){},ui.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},ui.prototype.updateInnerText=function(t){var e,i,n,o,r,a,s,l,h,u,c=this._textContent;!c||c.ignore&&!t||(this.textConfig||(this.textConfig={}),l=(t=this.textConfig).local,n=i=void 0,o=!1,(e=c.innerTransformable).parent=l?this:null,u=!1,e.copyTransform(c),null!=t.position&&(h=vy,t.layoutRect?h.copy(t.layoutRect):h.copy(this.getBoundingRect()),l||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(my,t,h):hi(my,t,h),e.x=my.x,e.y=my.y,i=my.align,n=my.verticalAlign,r=t.origin)&&null!=t.rotation&&(s=a=void 0,s="center"===r?(a=.5*h.width,.5*h.height):(a=li(r[0],h.width),li(r[1],h.height)),u=!0,e.originX=-e.x+a+(l?0:h.x),e.originY=-e.y+s+(l?0:h.y)),null!=t.rotation&&(e.rotation=t.rotation),(r=t.offset)&&(e.x+=r[0],e.y+=r[1],u||(e.originX=-r[0],e.originY=-r[1])),a=null==t.inside?"string"==typeof t.position&&0<=t.position.indexOf("inside"):t.inside,s=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),u=h=l=void 0,a&&this.canBeInsideText()?(l=t.insideFill,h=t.insideStroke,null!=l&&"auto"!==l||(l=this.getInsideTextFill()),null!=h&&"auto"!==h||(h=this.getInsideTextStroke(l),u=!0)):(l=t.outsideFill,h=t.outsideStroke,null!=l&&"auto"!==l||(l=this.getOutsideFill()),null!=h&&"auto"!==h||(h=this.getOutsideStroke(l),u=!0)),(l=l||"#000")===s.fill&&h===s.stroke&&u===s.autoStroke&&i===s.align&&n===s.verticalAlign||(o=!0,s.fill=l,s.stroke=h,s.autoStroke=u,s.align=i,s.verticalAlign=n,c.setDefaultTextStyle(s)),c.__dirty|=eg,o&&c.dirtyStyle(!0))},ui.prototype.canBeInsideText=function(){return!0},ui.prototype.getInsideTextFill=function(){return"#fff"},ui.prototype.getInsideTextStroke=function(t){return"#000"},ui.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?qg:jg},ui.prototype.getOutsideStroke=function(t){for(var e=this.__zr&&this.__zr.getBackgroundColor(),i="string"==typeof e&&ae(e),n=(i=i||[255,255,255,1])[3],o=this.__zr.isDarkMode(),r=0;r<3;r++)i[r]=i[r]*n+(o?0:255)*(1-n);return i[3]=1,ce(i,"rgba")},ui.prototype.traverse=function(t,e){},ui.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},ui.prototype.hide=function(){this.ignore=!0,this.markRedraw()},ui.prototype.show=function(){this.ignore=!1,this.markRedraw()},ui.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 o=i[n];this.attrKV(o,t[o])}return this.markRedraw(),this},ui.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],o=n.__fromStateTransition;n.getLoop()||o&&o!==fy||(o=(o=n.targetName)?e[o]:e,n.saveTo(o))}},ui.prototype._innerSaveToNormal=function(t){var e=(e=this._normalState)||(this._normalState={});t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,gy)},ui.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var o=i[n];null==t[o]||o in e||(e[o]=this[o])}},ui.prototype.hasState=function(){return 0<this.currentStates.length},ui.prototype.getState=function(t){return this.states[t]},ui.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},ui.prototype.clearStates=function(t){this.useState(fy,!1,t)},ui.prototype.useState=function(t,e,i,n){var o=t===fy,a=this.hasState();if(a||!o){var s,a=this.currentStates,l=this.stateTransition;if(!(0<=u(a,t))||!e&&1!==a.length){if((s=(s=this.stateProxy&&!o?this.stateProxy(t):s)||this.states&&this.states[t])||o)return o||this.saveCurrentToNormalState(s),(a=!!(s&&s.hoverLayer||n))&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!i&&!this.__inHover&&l&&0<l.duration,l),n=this._textContent,l=this._textGuide,n&&n.useState(t,e,i,a),l&&l.useState(t,e,i,a),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!a&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~eg),s;r("State "+t+" not exists.")}}},ui.prototype.useStates=function(t,e,i){if(t.length){var n=[],o=this.currentStates,r=t.length,a=r===o.length;if(a)for(var s=0;s<r;s++)if(t[s]!==o[s]){a=!1;break}if(!a){for(s=0;s<r;s++){var l=t[s],h=void 0;(h=(h=this.stateProxy?this.stateProxy(l,t):h)||this.states[l])&&n.push(h)}var u=n[r-1],u=!!(u&&u.hoverLayer||i),i=(u&&this._toggleHoverLayerFlag(!0),this._mergeStates(n)),c=this.stateTransition,i=(this.saveCurrentToNormalState(i),this._applyStateObj(t.join(","),i,this._normalState,!1,!e&&!this.__inHover&&c&&0<c.duration,c),this._textContent),c=this._textGuide;i&&i.useStates(t,e,u),c&&c.useStates(t,e,u),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~eg)}}else this.clearStates()},ui.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},ui.prototype.removeState=function(t){var e,t=u(this.currentStates,t);0<=t&&((e=this.currentStates.slice()).splice(t,1),this.useStates(e))},ui.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),t=u(n,t),o=0<=u(n,e);0<=t?o?n.splice(t,1):n[t]=e:i&&!o&&n.push(e),this.useStates(n)},ui.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},ui.prototype._mergeStates=function(t){for(var e,i={},n=0;n<t.length;n++){var o=t[n];l(i,o),o.textConfig&&l(e=e||{},o.textConfig)}return e&&(i.textConfig=e),i},ui.prototype._applyStateObj=function(t,e,i,n,o,r){for(var a=!(e&&n),s=(e&&e.textConfig?(this.textConfig=l({},(n?this:i).textConfig),l(this.textConfig,e.textConfig)):a&&i.textConfig&&(this.textConfig=i.textConfig),{}),h=!1,u=0;u<gy.length;u++){var c=gy[u],p=o&&yy[c];e&&null!=e[c]?p?(h=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=i[c]&&(p?(h=!0,s[c]=i[c]):this[c]=i[c])}if(!o)for(u=0;u<this.animators.length;u++){var d=this.animators[u],f=d.targetName;d.getLoop()||d.__changeFinalValue(f?(e||i)[f]:e||i)}h&&this._transitionState(t,s,r)},ui.prototype._attachComponent=function(t){var e;t.__zr&&!t.__hostTarget||t!==this&&((e=this.__zr)&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this)},ui.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},ui.prototype.getClipPath=function(){return this._clipPath},ui.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},ui.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},ui.prototype.getTextContent=function(){return this._textContent},ui.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new ty,this._attachComponent(t),this._textContent=t,this.markRedraw())},ui.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),l(this.textConfig,t),this.markRedraw()},ui.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},ui.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},ui.prototype.getTextGuideLine=function(){return this._textGuide},ui.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},ui.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},ui.prototype.markRedraw=function(){this.__dirty|=eg;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},ui.prototype.dirty=function(){this.markRedraw()},ui.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},ui.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)}},ui.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)}},ui.prototype.animate=function(t,e,i){var n=t?this[t]:this,n=new Dg(n,e,i);return t&&(n.targetName=t),this.addAnimator(n,t),n},ui.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()},ui.prototype.updateDuringAnimation=function(t){this.markRedraw()},ui.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,o=[],r=0;r<n;r++){var a=i[r];t&&t!==a.scope?o.push(a):a.stop(e)}return this.animators=o,this},ui.prototype.animateTo=function(t,e,i){pi(this,t,e,i)},ui.prototype.animateFrom=function(t,e,i){pi(this,t,e,i,!0)},ui.prototype._transitionState=function(t,e,i,n){for(var o=pi(this,e,i,n),r=0;r<o.length;r++)o[r].__fromStateTransition=t},ui.prototype.getBoundingRect=function(){return null},ui.prototype.getPaintRect=function(){return null},ui.initDefaultProps=((iy=ui.prototype).type="element",iy.name="",iy.ignore=iy.silent=iy.isGroup=iy.draggable=iy.dragging=iy.ignoreClip=iy.__inHover=!1,iy.__dirty=eg,void(Object.defineProperty&&(ci("position","_legacyPos","x","y"),ci("scale","_legacyScale","scaleX","scaleY"),ci("origin","_legacyOrigin","originX","originY")))),ui);p(_y,Bf),p(_y,ty),i(yi,xy=_y),yi.prototype.childrenRef=function(){return this._children},yi.prototype.children=function(){return this._children.slice()},yi.prototype.childAt=function(t){return this._children[t]},yi.prototype.childOfName=function(t){for(var e=this._children,i=0;i<e.length;i++)if(e[i].name===t)return e[i]},yi.prototype.childCount=function(){return this._children.length},yi.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},yi.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},yi.prototype.replace=function(t,e){return t=u(this._children,t),0<=t&&this.replaceAt(e,t),this},yi.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},yi.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()},yi.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},yi.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},yi.prototype.eachChild=function(t,e){for(var i=this._children,n=0;n<i.length;n++){var o=i[n];t.call(e,o,n)}return this},yi.prototype.traverse=function(t,e){for(var i=0;i<this._children.length;i++){var n=this._children[i],o=t.call(e,n);n.isGroup&&!o&&n.traverse(t,e)}return this},yi.prototype.addSelfToZr=function(t){xy.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].addSelfToZr(t)},yi.prototype.removeSelfFromZr=function(t){xy.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].removeSelfFromZr(t)},yi.prototype.getBoundingRect=function(t){for(var e=new py(0,0,0,0),i=t||this._children,n=[],o=null,r=0;r<i.length;r++){var a,s=i[r];s.ignore||s.invisible||(a=s.getBoundingRect(),(s=s.getLocalTransform(n))?(py.applyTransform(e,a,s),(o=o||e.clone()).union(e)):(o=o||a.clone()).union(a))}return o||e};var xy,wy=yi;wy.prototype.type="group";var by={},Sy={};mi.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},mi.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},mi.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},mi.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(t){if("string"==typeof t)return pe(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,i=0,n=e.length,o=0;o<n;o++)i+=pe(e[o].color,1);return(i/=n)<.4}}return!1}(t)},mi.prototype.getBackgroundColor=function(){return this._backgroundColor},mi.prototype.setDarkMode=function(t){this._darkMode=t},mi.prototype.isDarkMode=function(){return this._darkMode},mi.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},mi.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},mi.prototype.flush=function(){this._flush(!1)},mi.prototype._flush=function(t){var e,i=Le(),t=(this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),Le());e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:t-i})):0<this._sleepAfterStill&&++this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop()},mi.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},mi.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},mi.prototype.refreshHover=function(){this._needsRefreshHover=!0},mi.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},mi.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},mi.prototype.clearAnimation=function(){this.animation.clear()},mi.prototype.getWidth=function(){return this.painter.getWidth()},mi.prototype.getHeight=function(){return this.painter.getHeight()},mi.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},mi.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},mi.prototype.on=function(t,e,i){return this.handler.on(t,e,i),this},mi.prototype.off=function(t,e){this.handler.off(t,e)},mi.prototype.trigger=function(t,e){this.handler.trigger(t,e)},mi.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof wy&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},mi.prototype.dispose=function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete Sy[t]};var Ty,Cy=mi,My=Object.freeze({__proto__:null,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in Sy)Sy.hasOwnProperty(t)&&Sy[t].dispose();Sy={}},getInstance:function(t){return Sy[t]},init:vi,registerPainter:_i,version:"5.3.0"}),Iy=20,ky=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,Ay="series\0",Dy=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"],Py=Ei(),Oy={useDefault:!0,enableAll:!1,enableNone:!1},Ly=".",Ey="___EC__COMPONENT__CONTAINER___",Ry="___EC__EXTENDED_CLASS___",Ny=Math.round(10*Math.random()),By=ln([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),zy=(hn.prototype.getAreaStyle=function(t,e){return By(this,t,e)},hn),Fy=new _g(50),Vy=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,Yy=function(){},Hy=function(t){this.tokens=[],t&&(this.tokens=t)},Wy=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]},Xy=y(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{}),Uy="__zr_style_"+Math.round(10*Math.random()),Gy={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},jy={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},qy=(Gy[Uy]=!0,["z","z2","invisible"]),Zy=["invisible"],_y=(i(_n,Ty=_y),_n.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]):Ty.prototype.attrKV.call(this,n,t[n])}this.style||this.useStyle({})},_n.prototype.beforeBrush=function(){},_n.prototype.afterBrush=function(){},_n.prototype.innerBeforeBrush=function(){},_n.prototype.innerAfterBrush=function(){},_n.prototype.shouldBePainted=function(t,e,i,n){var o=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,i){return Ky.copy(t.getBoundingRect()),t.transform&&Ky.applyTransform(t.transform),Qy.width=e,Qy.height=i,!Ky.intersect(Qy)}(this,t,e)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths)for(var r=0;r<this.__clipPaths.length;++r)if(this.__clipPaths[r].isZeroArea())return!1;if(n&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},_n.prototype.contain=function(t,e){return this.rectContain(t,e)},_n.prototype.traverse=function(t,e){t.call(e,this)},_n.prototype.rectContain=function(t,e){return t=this.transformCoordToLocal(t,e),this.getBoundingRect().contain(t[0],t[1])},_n.prototype.getPaintRect=function(){var t,e,i,n,o,r=this._paintRect;return this._paintRect&&!this.__dirty||(o=this.transform,t=this.getBoundingRect(),e=(n=this.style).shadowBlur||0,i=n.shadowOffsetX||0,n=n.shadowOffsetY||0,r=this._paintRect||(this._paintRect=new py(0,0,0,0)),o?py.applyTransform(r,t,o):r.copy(t),(e||i||n)&&(r.width+=2*e+Math.abs(i),r.height+=2*e+Math.abs(n),r.x=Math.min(r.x,r.x+i-e),r.y=Math.min(r.y,r.y+n-e)),o=this.dirtyRectTolerance,r.isZero())||(r.x=Math.floor(r.x-o),r.y=Math.floor(r.y-o),r.width=Math.ceil(r.width+1+2*o),r.height=Math.ceil(r.height+1+2*o)),r},_n.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new py(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},_n.prototype.getPrevPaintRect=function(){return this._prevPaintRect},_n.prototype.animateStyle=function(t){return this.animate("style",t)},_n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},_n.prototype.attrKV=function(t,e){"style"!==t?Ty.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},_n.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:l(this.style,t),this.dirtyStyle(),this},_n.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},_n.prototype.dirty=function(){this.dirtyStyle()},_n.prototype.styleChanged=function(){return!!(2&this.__dirty)},_n.prototype.styleUpdated=function(){this.__dirty&=-3},_n.prototype.createStyle=function(t){return U(Gy,t)},_n.prototype.useStyle=function(t){t[Uy]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},_n.prototype.isStyleObject=function(t){return t[Uy]},_n.prototype._innerSaveToNormal=function(t){Ty.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.style&&!e.style&&(e.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,e,qy)},_n.prototype._applyStateObj=function(t,e,i,n,o,r){Ty.prototype._applyStateObj.call(this,t,e,i,n,o,r);var a,s=!(e&&n);if(e&&e.style?o?n?a=e.style:(a=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(a,e.style)):(a=this._mergeStyle(this.createStyle(),(n?this:i).style),this._mergeStyle(a,e.style)):s&&(a=i.style),a)if(o){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var h=v(l),u=0;u<h.length;u++)(p=h[u])in a&&(a[p]=a[p],this.style[p]=l[p]);for(var c=v(a),u=0;u<c.length;u++){var p=c[u];this.style[p]=this.style[p]}this._transitionState(t,{style:a},r,this.getAnimationStyleProps())}else this.useStyle(a);for(var d=this.__inHover?Zy:qy,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])},_n.prototype._mergeStates=function(t){for(var e,i=Ty.prototype._mergeStates.call(this,t),n=0;n<t.length;n++){var o=t[n];o.style&&this._mergeStyle(e=e||{},o.style)}return e&&(i.style=e),i},_n.prototype._mergeStyle=function(t,e){return l(t,e),t},_n.prototype.getAnimationStyleProps=function(){return jy},_n.initDefaultProps=((_y=_n.prototype).type="displayable",_y.invisible=!1,_y.z=0,_y.z2=0,_y.zlevel=0,_y.culling=!1,_y.cursor="pointer",_y.rectHover=!1,_y.incremental=!1,_y._rect=null,_y.dirtyRectTolerance=0,void(_y.__dirty=2|eg)),_n),Ky=new py(0,0,0,0),Qy=new py(0,0,0,0),$y=Math.min,Jy=Math.max,tm=Math.sin,em=Math.cos,im=2*Math.PI,nm=Z(),om=Z(),rm=Z(),am=[],sm=[],lm={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},hm=[],um=[],cm=[],pm=[],dm=[],fm=[],gm=Math.min,ym=Math.max,mm=Math.cos,vm=Math.sin,_m=Math.abs,xm=Math.PI,wm=2*xm,bm="undefined"!=typeof Float32Array,Sm=[];bn.prototype.increaseVersion=function(){this._version++},bn.prototype.getVersion=function(){return this._version},bn.prototype.setScale=function(t,e,i){0<(i=i||0)&&(this._ux=_m(i/Gg/t)||0,this._uy=_m(i/Gg/e)||0)},bn.prototype.setDPR=function(t){this.dpr=t},bn.prototype.setContext=function(t){this._ctx=t},bn.prototype.getContext=function(){return this._ctx},bn.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},bn.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},bn.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(lm.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},bn.prototype.lineTo=function(t,e){var i=_m(t-this._xi),n=_m(e-this._yi),o=i>this._ux||n>this._uy;return this.addData(lm.L,t,e),this._ctx&&o&&this._ctx.lineTo(t,e),o?(this._xi=t,this._yi=e,this._pendingPtDist=0):(o=i*i+n*n)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o),this},bn.prototype.bezierCurveTo=function(t,e,i,n,o,r){return this._drawPendingPt(),this.addData(lm.C,t,e,i,n,o,r),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,o,r),this._xi=o,this._yi=r,this},bn.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(lm.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},bn.prototype.arc=function(t,e,i,n,o,r){this._drawPendingPt(),Sm[0]=n,Sm[1]=o,s=r,(l=wn((a=Sm)[0]))<0&&(l+=wm),u=l-a[0],h=a[1],h+=u,!s&&wm<=h-l?h=l+wm:s&&wm<=l-h?h=l-wm:!s&&h<l?h=l+(wm-wn(l-h)):s&&l<h&&(h=l-(wm-wn(h-l))),a[0]=l,a[1]=h;var a,s,l,h,u=(o=Sm[1])-(n=Sm[0]);return this.addData(lm.A,t,e,i,i,n,u,0,r?0:1),this._ctx&&this._ctx.arc(t,e,i,n,o,r),this._xi=mm(o)*i+t,this._yi=vm(o)*i+e,this},bn.prototype.arcTo=function(t,e,i,n,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,o),this},bn.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(lm.R,t,e,i,n),this},bn.prototype.closePath=function(){this._drawPendingPt(),this.addData(lm.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},bn.prototype.fill=function(t){t&&t.fill(),this.toStatic()},bn.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},bn.prototype.len=function(){return this._len},bn.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!bm||(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e},bn.prototype.appendPath=function(t){for(var e=(t=t instanceof Array?t:[t]).length,i=0,n=this._len,o=0;o<e;o++)i+=t[o].len();for(bm&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i)),o=0;o<e;o++)for(var r=t[o].data,a=0;a<r.length;a++)this.data[n++]=r[a];this._len=n},bn.prototype.addData=function(t,e,i,n,o,r,a,s,l){if(this._saveData){var h=this.data;this._len+arguments.length>h.length&&(this._expandData(),h=this.data);for(var u=0;u<arguments.length;u++)h[this._len++]=arguments[u]}},bn.prototype._drawPendingPt=function(){0<this._pendingPtDist&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},bn.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}},bn.prototype.toStatic=function(){var t;this._saveData&&(this._drawPendingPt(),(t=this.data)instanceof Array)&&(t.length=this._len,bm)&&11<this._len&&(this.data=new Float32Array(t))},bn.prototype.getBoundingRect=function(){cm[0]=cm[1]=dm[0]=dm[1]=Number.MAX_VALUE,pm[0]=pm[1]=fm[0]=fm[1]=-Number.MAX_VALUE;for(var t,e=this.data,i=0,n=0,o=0,r=0,a=0;a<this._len;){var s=e[a++],l=1===a;switch(l&&(o=i=e[a],r=n=e[a+1]),s){case lm.M:i=o=e[a++],n=r=e[a++],dm[0]=o,dm[1]=r,fm[0]=o,fm[1]=r;break;case lm.L:xn(i,n,e[a],e[a+1],dm,fm),i=e[a++],n=e[a++];break;case lm.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=dm,v=fm,_=Ft,x=Nt,w=_(h,c,d,g,am);m[0]=1/0,m[1]=1/0,v[0]=-1/0,v[1]=-1/0;for(var b=0;b<w;b++){var S=x(h,c,d,g,am[b]);m[0]=$y(S,m[0]),v[0]=Jy(S,v[0])}for(w=_(u,p,f,y,sm),b=0;b<w;b++){var T=x(u,p,f,y,sm[b]);m[1]=$y(T,m[1]),v[1]=Jy(T,v[1])}m[0]=$y(h,m[0]),v[0]=Jy(h,v[0]),m[0]=$y(g,m[0]),v[0]=Jy(g,v[0]),m[1]=$y(u,m[1]),v[1]=Jy(u,v[1]),m[1]=$y(y,m[1]),v[1]=Jy(y,v[1]),i=e[a++],n=e[a++];break;case lm.Q:_=i,F=n,P=e[a++],I=e[a++],D=e[a],C=e[a+1],A=dm,O=fm,t=k=t=M=void 0,M=Ht,t=Jy($y((k=Xt)(_,P,D),1),0),k=Jy($y(k(F,I,C),1),0),P=M(_,P,D,t),t=M(F,I,C,k),A[0]=$y(_,D,P),A[1]=$y(F,C,t),O[0]=Jy(_,D,P),O[1]=Jy(F,C,t),i=e[a++],n=e[a++];break;case lm.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&&(o=mm(D)*k+M,r=vm(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=dm,Y=fm,H=st,W=lt;if((C=Math.abs(B-z))%im<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]=tm(B)*N+E,om[0]=em(z)*R+L,om[1]=tm(z)*N+E,H(V,nm,om),W(Y,nm,om),(B%=im)<0&&(B+=im),(z%=im)<0&&(z+=im),z<B&&!F?z+=im:B<z&&F&&(B+=im),F&&(C=z,z=B,B=C);for(var X=0;X<z;X+=Math.PI/2)B<X&&(rm[0]=em(X)*R+L,rm[1]=tm(X)*N+E,H(V,rm,V),W(Y,rm,Y))}i=mm(P)*k+M,n=vm(P)*A+I;break;case lm.R:xn(o=i=e[a++],r=n=e[a++],o+e[a++],r+e[a++],dm,fm);break;case lm.Z:i=o,n=r}st(cm,cm,dm),lt(pm,pm,fm)}return 0===a&&(cm[0]=cm[1]=pm[0]=pm[1]=0),new py(cm[0],cm[1],pm[0]-cm[0],pm[1]-cm[1])},bn.prototype._calculateLength=function(){for(var t=this.data,e=this._len,i=this._ux,n=this._uy,o=0,r=0,a=0,s=0,l=(this._pathSegLen||(this._pathSegLen=[]),this._pathSegLen),h=0,u=0,c=0;c<e;){var p=t[c++],d=1===c,f=(d&&(a=o=t[c],s=r=t[c+1]),-1);switch(p){case lm.M:o=a=t[c++],r=s=t[c++];break;case lm.L:var g=t[c++],y=(_=t[c++])-r;(_m(I=g-o)>i||_m(y)>n||c===e-1)&&(f=Math.sqrt(I*I+y*y),o=g,r=_);break;case lm.C:var m=t[c++],v=t[c++],g=t[c++],_=t[c++],x=t[c++],w=t[c++],f=function(t,e,i,n,o,r,a,s,l){for(var h=t,u=e,c=0,p=1;p<=10;p++){var d=.1*p,f=Nt(t,i,o,a,d),d=Nt(e,n,r,s,d),g=f-h,y=d-u;c+=Math.sqrt(g*g+y*y),h=f,u=d}return c}(o,r,m,v,g,_,x,w),o=x,r=w;break;case lm.Q:f=function(t,e,i,n,o,r,a){for(var s=t,l=e,h=0,u=1;u<=10;u++){var c=.1*u,p=Ht(t,i,o,c),c=Ht(e,n,r,c),d=p-s,f=c-l;h+=Math.sqrt(d*d+f*f),s=p,l=c}return h}(o,r,m=t[c++],v=t[c++],g=t[c++],_=t[c++]),o=g,r=_;break;case lm.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,t[c++],d&&(a=mm(T)*b+x,s=vm(T)*S+w),f=ym(b,S)*gm(wm,Math.abs(C)),o=mm(M)*b+x,r=vm(M)*S+w;break;case lm.R:a=o=t[c++],s=r=t[c++],f=2*t[c++]+2*t[c++];break;case lm.Z:var I=a-o,y=s-r;f=Math.sqrt(I*I+y*y),o=a,r=s}0<=f&&(h+=l[u++]=f)}return this._pathLen=h},bn.prototype.rebuildPath=function(t,e){var i,n,o,r,a,s,l,h,u=this.data,c=this._ux,p=this._uy,d=this._len,f=e<1,g=0,y=0,m=0;if(!f||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var v=0;v<d;){var _=u[v++],x=1===v;switch(x&&(i=o=u[v],n=r=u[v+1]),_!==lm.L&&0<m&&(t.lineTo(l,h),m=0),_){case lm.M:i=o=u[v++],n=r=u[v++],t.moveTo(o,r);break;case lm.L:var w=u[v++],b=u[v++],S=_m(w-o),T=_m(b-r);if(c<S||p<T){if(f){if(s<g+(H=a[y++])){var C=(s-g)/H;t.lineTo(o*(1-C)+w*C,r*(1-C)+b*C);break t}g+=H}t.lineTo(w,b),o=w,r=b,m=0}else S=S*S+T*T,m<S&&(l=w,h=b,m=S);break;case lm.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++])){Vt(o,M,k,T,C=(s-g)/H,hm),Vt(r,I,A,S,C,um),t.bezierCurveTo(hm[1],um[1],hm[2],um[2],hm[3],um[3]);break t}g+=H}t.bezierCurveTo(M,I,k,A,T,S),o=T,r=S;break;case lm.Q:if(M=u[v++],I=u[v++],k=u[v++],A=u[v++],f){if(s<g+(H=a[y++])){Ut(o,M,k,C=(s-g)/H,hm),Ut(r,I,A,C,um),t.quadraticCurveTo(hm[1],um[1],hm[2],um[2]);break t}g+=H}t.quadraticCurveTo(M,I,k,A),o=k,r=A;break;case lm.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=mm(E)*O+D,n=vm(E)*L+P),o=mm(V)*O+D,r=vm(V)*L+P;break;case lm.R:i=o=u[v],n=r=u[v+1],w=u[v++],b=u[v++];var H,R=u[v++],F=u[v++];if(f){if(s<g+(H=a[y++])){N=s-g,t.moveTo(w,b),t.lineTo(w+gm(N,R),b),0<(N-=R)&&t.lineTo(w+R,b+gm(N,F)),0<(N-=F)&&t.lineTo(w+ym(R-N,0),b+F),0<(N-=R)&&t.lineTo(w,b+ym(F-N,0));break t}g+=H}t.rect(w,b,R,F);break;case lm.Z:if(f){if(s<g+(H=a[y++])){C=(s-g)/H,t.lineTo(o*(1-C)+i*C,r*(1-C)+n*C);break t}g+=H}t.closePath(),o=i,r=n}}},bn.prototype.clone=function(){var t=new bn,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},bn.CMD=lm,bn.initDefaultProps=((Ev=bn.prototype)._saveData=!0,Ev._ux=0,Ev._uy=0,Ev._pendingPtDist=0,void(Ev._version=0));var Tm,Cm,Mm=bn,Im=2*Math.PI,km=2*Math.PI,Am=Mm.CMD,Dm=2*Math.PI,Pm=1e-4,Om=[-1,-1,-1],Lm=[-1,-1],Em=h({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Gy),Rm={style:h({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},jy.style)},Nm=ey.concat(["invisible","culling","z","z2","zlevel","parent"]),Bm=(i(An,Tm=_y),An.prototype.update=function(){var t=this,e=(Tm.prototype.update.call(this),this.style);if(e.decal){var i,n=this._decalEl=this._decalEl||new An,o=(n.buildPath===An.prototype.buildPath&&(n.buildPath=function(e){t.buildPath(e,t.shape)}),n.silent=!0,n.style);for(i in e)o[i]!==e[i]&&(o[i]=e[i]);o.fill=e.fill?e.decal:null,o.decal=null,o.shadowColor=null,e.strokeFirst&&(o.stroke=null);for(var r=0;r<Nm.length;++r)n[Nm[r]]=this[Nm[r]];n.__dirty|=eg}else this._decalEl&&(this._decalEl=null)},An.prototype.getDecalElement=function(){return this._decalEl},An.prototype._init=function(t){var e=v(t),i=(this.shape=this.getDefaultShape(),this.getDefaultStyle());i&&this.useStyle(i);for(var n=0;n<e.length;n++){var o=e[n],r=t[o];"style"===o?this.style?l(this.style,r):this.useStyle(r):"shape"===o?l(this.shape,r):Tm.prototype.attrKV.call(this,o,r)}this.style||this.useStyle({})},An.prototype.getDefaultStyle=function(){return null},An.prototype.getDefaultShape=function(){return{}},An.prototype.canBeInsideText=function(){return this.hasFill()},An.prototype.getInsideTextFill=function(){var t,e=this.style.fill;if("none"!==e){if(b(e))return.5<(t=pe(e,0))?jg:.2<t?"#eee":qg;if(e)return qg}return jg},An.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(b(e)){var i=this.__zr;if(!(!i||!i.isDarkMode())==pe(t,0)<.4)return e}},An.prototype.buildPath=function(t,e,i){},An.prototype.pathUpdated=function(){this.__dirty&=~ig},An.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},An.prototype.createPathProxy=function(){this.path=new Mm(!1)},An.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))},An.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},An.prototype.getBoundingRect=function(){var t,e,i=this._rect,n=this.style,o=!i;return o&&(t=!1,this.path||(t=!0,this.createPathProxy()),e=this.path,(t||this.__dirty&ig)&&(e.beginPath(),this.buildPath(e,this.shape,!1),this.pathUpdated()),i=e.getBoundingRect()),this._rect=i,this.hasStroke()&&this.path&&0<this.path.len()?(t=this._rectStroke||(this._rectStroke=i.clone()),(this.__dirty||o)&&(t.copy(i),e=n.strokeNoScale?this.getLineScale():1,o=n.lineWidth,this.hasFill()||(n=this.strokeContainThreshold,o=Math.max(o,null==n?4:n)),1e-10<e)&&(t.width+=o/e,t.height+=o/e,t.x-=o/e/2,t.y-=o/e/2),t):i},An.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),o=this.style;if(t=i[0],e=i[1],n.contain(t,e)){if(i=this.path,this.hasStroke()&&(n=o.lineWidth,1e-10<(o=o.strokeNoScale?this.getLineScale():1)&&(this.hasFill()||(n=Math.max(n,this.strokeContainThreshold)),kn(i,n/o,!0,t,e))))return!0;if(this.hasFill())return kn(i,0,!1,t,e)}return!1},An.prototype.dirtyShape=function(){this.__dirty|=ig,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},An.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},An.prototype.animateShape=function(t){return this.animate("shape",t)},An.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},An.prototype.attrKV=function(t,e){"shape"===t?this.setShape(e):Tm.prototype.attrKV.call(this,t,e)},An.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},An.prototype.shapeChanged=function(){return!!(this.__dirty&ig)},An.prototype.createStyle=function(t){return U(Em,t)},An.prototype._innerSaveToNormal=function(t){Tm.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.shape&&!e.shape&&(e.shape=l({},this.shape))},An.prototype._applyStateObj=function(t,e,i,n,o,r){Tm.prototype._applyStateObj.call(this,t,e,i,n,o,r);var a,s=!(e&&n);if(e&&e.shape?o?n?a=e.shape:(a=l({},i.shape),l(a,e.shape)):(a=l({},(n?this:i).shape),l(a,e.shape)):s&&(a=i.shape),a)if(o){this.shape=l({},this.shape);for(var h={},u=v(a),c=0;c<u.length;c++){var p=u[c];"object"==typeof a[p]?this.shape[p]=a[p]:h[p]=a[p]}this._transitionState(t,{shape:h},r)}else this.shape=a,this.dirtyShape()},An.prototype._mergeStates=function(t){for(var e,i=Tm.prototype._mergeStates.call(this,t),n=0;n<t.length;n++){var o=t[n];o.shape&&this._mergeStyle(e=e||{},o.shape)}return e&&(i.shape=e),i},An.prototype.getAnimationStyleProps=function(){return Rm},An.prototype.isZeroArea=function(){return!1},An.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=An),e.prototype.getDefaultStyle=function(){return a(t.style)},e.prototype.getDefaultShape=function(){return a(t.shape)};var n,o,r=e;for(o in t)"function"==typeof t[o]&&(r.prototype[o]=t[o]);return r},An.initDefaultProps=((Ev=An.prototype).type="path",Ev.strokeContainThreshold=5,Ev.segmentIgnoreThreshold=0,Ev.subPixelOptimize=!1,Ev.autoBatch=!1,void(Ev.__dirty=2|eg|ig)),An),zm=h({strokeFirst:!0,font:cf,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Em),Fm=(i(Dn,Cm=_y),Dn.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth},Dn.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Dn.prototype.createStyle=function(t){return U(zm,t)},Dn.prototype.setBoundingRect=function(t){this._rect=t},Dn.prototype.getBoundingRect=function(){var t,e=this.style;return this._rect||(null!=(t=e.text)?t+="":t="",(t=oi(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},Dn.initDefaultProps=void(Dn.prototype.dirtyRectTolerance=10),Dn);Fm.prototype.type="tspan";var Vm=h({x:0,y:0},Gy),Ym={style:h({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},jy.style)};i(Pn,Hm=_y),Pn.prototype.createStyle=function(t){return U(Vm,t)},Pn.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},Pn.prototype.getWidth=function(){return this._getSize("width")},Pn.prototype.getHeight=function(){return this._getSize("height")},Pn.prototype.getAnimationStyleProps=function(){return Ym},Pn.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new py(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect};var Hm,Wm=Pn;Wm.prototype.type="image";var Xm,Um=Math.round,Gm=function(){this.x=0,this.y=0,this.width=0,this.height=0},jm={},qm=(i(Rn,Xm=Bm),Rn.prototype.getDefaultShape=function(){return new Gm},Rn.prototype.buildPath=function(t,e){var i,n,o,r,a,s,l,h,u,c,p,d,f,g;this.subPixelOptimize?(i=(a=Ln(jm,e,this.style)).x,n=a.y,o=a.width,r=a.height,a.r=e.r,e=a):(i=e.x,n=e.y,o=e.width,r=e.height),e.r?(a=t,p=(e=e).x,d=e.y,f=e.width,g=e.height,e=e.r,f<0&&(p+=f,f=-f),g<0&&(d+=g,g=-g),"number"==typeof e?s=l=h=u=e:e instanceof Array?1===e.length?s=l=h=u=e[0]:2===e.length?(s=h=e[0],l=u=e[1]):3===e.length?(s=e[0],l=u=e[1],h=e[2]):(s=e[0],l=e[1],h=e[2],u=e[3]):s=l=h=u=0,f<s+l&&(s*=f/(c=s+l),l*=f/c),f<h+u&&(h*=f/(c=h+u),u*=f/c),g<l+h&&(l*=g/(c=l+h),h*=g/c),g<s+u&&(s*=g/(c=s+u),u*=g/c),a.moveTo(p+s,d),a.lineTo(p+f-l,d),0!==l&&a.arc(p+f-l,d+l,l,-Math.PI/2,0),a.lineTo(p+f,d+g-h),0!==h&&a.arc(p+f-h,d+g-h,h,0,Math.PI/2),a.lineTo(p+u,d+g),0!==u&&a.arc(p+u,d+g-u,u,Math.PI/2,Math.PI),a.lineTo(p,d+s),0!==s&&a.arc(p+s,d+s,s,Math.PI,1.5*Math.PI)):t.rect(i,n,o,r)},Rn.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},Rn);qm.prototype.type="rect";var Zm,Km={fill:"#000"},Qm={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},jy.style)},$m=(i(Nn,Zm=_y),Nn.prototype.childrenRef=function(){return this._children},Nn.prototype.update=function(){Zm.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var e=this._children[t];e.zlevel=this.zlevel,e.z=this.z,e.z2=this.z2,e.culling=this.culling,e.cursor=this.cursor,e.invisible=this.invisible}},Nn.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):Zm.prototype.updateTransform.call(this)},Nn.prototype.getLocalTransform=function(t){var e=this.innerTransformable;return e?e.getLocalTransform(t):Zm.prototype.getLocalTransform.call(this,t)},Nn.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),Zm.prototype.getComputedTransform.call(this)},Nn.prototype._updateSubTexts=function(){var t;this._childCursor=0,Vn(t=this.style),f(t.rich,Vn),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},Nn.prototype.addSelfToZr=function(t){Zm.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=t},Nn.prototype.removeSelfFromZr=function(t){Zm.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=null},Nn.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new py(0,0,0,0),e=this._children,i=[],n=null,o=0;o<e.length;o++){var r=e[o],a=r.getBoundingRect(),r=r.getLocalTransform(i);r?(t.copy(a),t.applyTransform(r),(n=n||t.clone()).union(t)):(n=n||a.clone()).union(a)}this._rect=n||t}return this._rect},Nn.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Km},Nn.prototype.setTextContent=function(t){},Nn.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},Nn.prototype._mergeRich=function(t,e){for(var i=v(e),n=0;n<i.length;n++){var o=i[n];t[o]=t[o]||{},l(t[o],e[o])}},Nn.prototype.getAnimationStyleProps=function(){return Qm},Nn.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},Nn.prototype._updatePlainTexts=function(){for(var t,e=this.style,i=e.font||cf,n=e.padding,o=function(t,e){null!=t&&(t+="");var i,n=e.overflow,o=e.padding,r=e.font,a="truncate"===n,s=si(r),l=E(e.lineHeight,s),h=!!e.backgroundColor,u="truncate"===e.lineOverflow,c=e.width,n=(i=null==c||"break"!==n&&"breakAll"!==n?t?t.split("\n"):[]:t?vn(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=fn(c,r,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),f=0;f<i.length;f++)i[f]=gn(i[f],d);for(var u=p,g=0,f=0;f<i.length;f++)g=Math.max(ii(i[f],r),g);return null==c&&(c=g),t=g,o&&(u+=o[0]+o[2],t+=o[1]+o[3],c+=o[1]+o[3]),{lines:i,height:p,outerWidth:t=h?c:t,outerHeight:u,lineHeight:l,calculatedLineHeight:s,contentWidth:g,contentHeight:n,width:c}}(Xn(e),e),r=Un(e),a=!!e.backgroundColor,s=o.outerHeight,l=o.outerWidth,h=o.contentWidth,u=o.lines,c=o.lineHeight,p=this._defaultStyle,d=e.x||0,f=e.y||0,g=e.align||p.align||"left",y=e.verticalAlign||p.verticalAlign||"top",m=d,v=ai(f,o.contentHeight,y),_=((r||n)&&(t=ri(d,l,g),f=ai(f,s,y),r)&&this._renderBackground(e,e,t,f,l,s),v+=c/2,n&&(m=Wn(d,g,n),"top"===y?v+=n[0]:"bottom"===y&&(v-=n[2])),0),r=!1,x=(Hn(("fill"in e?e:(r=!0,p)).fill)),w=(Yn("stroke"in e?e.stroke:a||p.autoStroke&&!r?null:(_=2,p.stroke))),b=0<e.textShadowBlur,S=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),T=o.calculatedLineHeight,C=0;C<u.length;C++){var M=this._getOrCreateChild(Fm),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,zn(I,e),v+=c,S&&M.setBoundingRect(new py(ri(I.x,e.width,I.textAlign),ai(I.y,T,I.textBaseline),h,T))}},Nn.prototype._updateRichTexts=function(){for(var t=this.style,e=yn(Xn(t),t),i=e.width,n=e.outerWidth,o=e.outerHeight,r=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,h=t.align||l.align,l=t.verticalAlign||l.verticalAlign,a=ri(a,n,h),h=ai(s,o,l),u=a,c=h,p=(r&&(u+=r[3],c+=r[0]),u+i),d=(Un(t)&&this._renderBackground(t,t,a,h,n,o),!!t.backgroundColor),f=0;f<e.lines.length;f++){for(var g=e.lines[f],y=g.tokens,m=y.length,v=g.lineHeight,_=g.width,x=0,w=u,b=p,S=m-1,T=void 0;x<m&&(!(T=y[x]).align||"left"===T.align);)this._placeToken(T,t,v,c,w,"left",d),_-=T.width,w+=T.width,x++;for(;0<=S&&"right"===(T=y[S]).align;)this._placeToken(T,t,v,c,b,"right",d),_-=T.width,b-=T.width,S--;for(w+=(i-(w-u)-(p-b)-_)/2;x<=S;)T=y[x],this._placeToken(T,t,v,c,w+T.width/2,"center",d),w+=T.width,x++;c+=v}},Nn.prototype._placeToken=function(t,e,i,n,o,r,a){var s=e.rich[t.styleName]||{},l=(s.text=t.text,t.verticalAlign),h=n+i/2;"top"===l?h=n+t.height/2:"bottom"===l&&(h=n+i-t.height/2),!t.isLineHolder&&Un(s)&&this._renderBackground(s,e,"right"===r?o-t.width:"center"===r?o-t.width/2:o,h-t.height/2,t.width,t.height);var l=!!s.backgroundColor,n=t.textPadding,i=(n&&(o=Wn(o,r,n),h-=t.height/2-n[0]-t.innerHeight/2),this._getOrCreateChild(Fm)),n=i.createStyle(),u=(i.useStyle(n),this._defaultStyle),c=!1,p=0,d=Hn(("fill"in s?s:"fill"in e?e:(c=!0,u)).fill),l=Yn("stroke"in s?s.stroke:"stroke"in e?e.stroke:l||a||u.autoStroke&&!c?null:(p=2,u.stroke)),a=0<s.textShadowBlur||0<e.textShadowBlur,c=(n.text=t.text,n.x=o,n.y=h,a&&(n.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,n.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",n.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,n.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),n.textAlign=r,n.textBaseline="middle",n.font=t.font||cf,n.opacity=R(s.opacity,e.opacity,1),zn(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 py(ri(n.x,c,n.textAlign),ai(n.y,u,n.textBaseline),c,u))},Nn.prototype._renderBackground=function(t,e,i,n,o,r){var a,s,l,h,u=t.backgroundColor,c=t.borderWidth,p=t.borderColor,d=u&&u.image,f=u&&!d,g=t.borderRadius,y=this,g=((f||t.lineHeight||c&&p)&&((a=this._getOrCreateChild(qm)).useStyle(a.createStyle()),a.style.fill=null,(l=a.shape).x=i,l.y=n,l.width=o,l.height=r,l.r=g,a.dirtyShape()),f?((h=a.style).fill=u||null,h.fillOpacity=E(t.fillOpacity,1)):d&&((s=this._getOrCreateChild(Wm)).onload=function(){y.dirtyStyle()},(l=s.style).image=u.image,l.x=i,l.y=n,l.width=o,l.height=r),c&&p&&((h=a.style).lineWidth=c,h.stroke=p,h.strokeOpacity=E(t.strokeOpacity,1),h.lineDash=t.borderDash,h.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill())&&a.hasStroke()&&(h.strokeFirst=!0,h.lineWidth*=2),(a||s).style);g.shadowBlur=t.shadowBlur||0,g.shadowColor=t.shadowColor||"transparent",g.shadowOffsetX=t.shadowOffsetX||0,g.shadowOffsetY=t.shadowOffsetY||0,g.opacity=R(t.opacity,e.opacity,1)},Nn.makeFont=function(t){var e="";return(e=Fn(t)?[t.fontStyle,t.fontWeight,Bn(t.fontSize),t.fontFamily||"sans-serif"].join(" "):e)&&F(e)||t.textFont||t.font},Nn),Jm={left:!0,right:1,center:1},tv={top:1,bottom:1,middle:1},ev=["fontStyle","fontWeight","fontSize","fontFamily"],iv=Zi(),nv=1,ov={},rv=Zi(),av=Zi(),sv=0,lv=1,hv=2,uv=["emphasis","blur","select"],cv=["normal","emphasis","blur","select"],pv="highlight",dv="downplay",fv="select",gv="unselect",yv="toggleSelect",mv=new _g(100),vv=["emphasis","blur","select"],_v={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"},xv=Mm.CMD,wv=[[],[],[]],bv=Math.sqrt,Sv=Math.atan2,Tv=Math.sqrt,Cv=Math.sin,Mv=Math.cos,Iv=Math.PI,kv=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Av=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;i(Oo,Dv=Bm),Oo.prototype.applyTransform=function(t){};var Dv,Pv,Ov=Oo,Lv=function(){this.cx=0,this.cy=0,this.r=0},Ev=(i(Ro,Pv=Bm),Ro.prototype.getDefaultShape=function(){return new Lv},Ro.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)},Ro);Ev.prototype.type="circle";var Rv,Nv=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},Bv=(i(No,Rv=Bm),No.prototype.getDefaultShape=function(){return new Nv},No.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,o=e.rx,e=e.ry,r=.5522848*o,a=.5522848*e;t.moveTo(i-o,n),t.bezierCurveTo(i-o,n-a,i-r,n-e,i,n-e),t.bezierCurveTo(i+r,n-e,i+o,n-a,i+o,n),t.bezierCurveTo(i+o,n+a,i+r,n+e,i,n+e),t.bezierCurveTo(i-r,n+e,i-o,n+a,i-o,n),t.closePath()},No);Bv.prototype.type="ellipse";var zv,Fv=Math.PI,Vv=2*Fv,Yv=Math.sin,Hv=Math.cos,Wv=Math.acos,Xv=Math.atan2,Uv=Math.abs,Gv=Math.sqrt,jv=Math.max,qv=Math.min,Zv=1e-4,Kv=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},Qv=(i(Fo,zv=Bm),Fo.prototype.getDefaultShape=function(){return new Kv},Fo.prototype.buildPath=function(t,e){zo(t,e)},Fo.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},Fo);Qv.prototype.type="sector";var $v,Jv=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},t_=(i(Vo,$v=Bm),Vo.prototype.getDefaultShape=function(){return new Jv},Vo.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,o=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,o,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,o,!0)},Vo);t_.prototype.type="ring";var e_,i_=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},n_=(i(Ho,e_=Bm),Ho.prototype.getDefaultShape=function(){return new i_},Ho.prototype.buildPath=function(t,e){Yo(t,e,!0)},Ho);n_.prototype.type="polygon";var o_,r_=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},a_=(i(Wo,o_=Bm),Wo.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Wo.prototype.getDefaultShape=function(){return new r_},Wo.prototype.buildPath=function(t,e){Yo(t,e,!1)},Wo);a_.prototype.type="polyline";var s_,l_={},h_=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},u_=(i(Xo,s_=Bm),Xo.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Xo.prototype.getDefaultShape=function(){return new h_},Xo.prototype.buildPath=function(t,e){r=(this.subPixelOptimize?(i=(r=On(l_,e,this.style)).x1,n=r.y1,o=r.x2,r):(i=e.x1,n=e.y1,o=e.x2,e)).y2;var i,n,o,r,e=e.percent;0!==e&&(t.moveTo(i,n),e<1&&(o=i*(1-e)+o*e,r=n*(1-e)+r*e),t.lineTo(o,r))},Xo.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},Xo);u_.prototype.type="line";var c_=[],p_=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};i(Go,d_=Bm),Go.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Go.prototype.getDefaultShape=function(){return new p_},Go.prototype.buildPath=function(t,e){var i=e.x1,n=e.y1,o=e.x2,r=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,h=e.cpy2,e=e.percent;0!==e&&(t.moveTo(i,n),null==l||null==h?(e<1&&(Ut(i,a,o,e,c_),a=c_[1],o=c_[2],Ut(n,s,r,e,c_),s=c_[1],r=c_[2]),t.quadraticCurveTo(a,s,o,r)):(e<1&&(Vt(i,a,l,o,e,c_),a=c_[1],l=c_[2],o=c_[3],Vt(n,s,h,r,e,c_),s=c_[1],h=c_[2],r=c_[3]),t.bezierCurveTo(a,s,l,h,o,r)))},Go.prototype.pointAt=function(t){return Uo(this.shape,t,!1)},Go.prototype.tangentAt=function(t){return t=Uo(this.shape,t,!0),it(t,t)};var d_,f_=Go;f_.prototype.type="bezier-curve";var g_,y_=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},m_=(i(jo,g_=Bm),jo.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},jo.prototype.getDefaultShape=function(){return new y_},jo.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,o=Math.max(e.r,0),r=e.startAngle,a=e.endAngle,e=e.clockwise,s=Math.cos(r),l=Math.sin(r);t.moveTo(s*o+i,l*o+n),t.arc(i,n,o,r,a,!e)},jo);m_.prototype.type="arc",i(qo,v_=Bm),qo.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()},qo.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)},qo.prototype.buildPath=function(t,e){for(var i=e.paths||[],n=0;n<i.length;n++)i[n].buildPath(t,i[n].shape,!0)},qo.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},qo.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Bm.prototype.getBoundingRect.call(this)};var v_,__=qo;Zo.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})};var x_=Zo;i(Ko,w_=x_);var w_,b_=Ko;i(Qo,S_=x_);var S_,T_,x_=Qo,C_=[0,0],M_=[0,0],I_=new ny,k_=new ny,A_=($o.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,o=t.x,r=t.y,a=o+t.width,t=r+t.height;if(i[0].set(o,r),i[1].set(a,r),i[2].set(a,t),i[3].set(o,t),e)for(var s=0;s<4;s++)i[s].transform(e);for(ny.sub(n[0],i[1],i[0]),ny.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])},$o.prototype.intersect=function(t,e){var i=!0,n=!e;return I_.set(1/0,1/0),k_.set(0,0),!this._intersectCheckOneSide(this,t,I_,k_,n,1)&&(i=!1,n)||!this._intersectCheckOneSide(t,this,I_,k_,n,-1)&&(i=!1,n)||n||ny.copy(e,i?I_:k_),i},$o.prototype._intersectCheckOneSide=function(t,e,i,n,o,r){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,C_),this._getProjMinMaxOnAxis(s,e._corners,M_),C_[1]<M_[0]||M_[1]<C_[0]){if(a=!1,o)return a;var h=Math.abs(M_[0]-C_[1]),u=Math.abs(C_[0]-M_[1]);Math.min(h,u)>n.len()&&(h<u?ny.scale(n,l,-h*r):ny.scale(n,l,u*r))}else i&&(h=Math.abs(M_[0]-C_[1]),u=Math.abs(C_[0]-M_[1]),Math.min(h,u)<i.len())&&(h<u?ny.scale(i,l,h*r):ny.scale(i,l,-u*r))}return a},$o.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],o=this._origin,r=e[0].dot(n)+o[t],a=r,s=r,l=1;l<e.length;l++)var h=e[l].dot(n)+o[t],a=Math.min(h,a),s=Math.max(h,s);i[0]=a,i[1]=s},$o),D_=[],_y=(i(Jo,T_=_y),Jo.prototype.traverse=function(t,e){t.call(e,this)},Jo.prototype.useStyle=function(){this.style={}},Jo.prototype.getCursor=function(){return this._cursor},Jo.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},Jo.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},Jo.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},Jo.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},Jo.prototype.addDisplayables=function(t,e){e=e||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],e)},Jo.prototype.getDisplayables=function(){return this._displayables},Jo.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},Jo.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])},Jo.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},Jo.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new py(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var i=this._displayables[e],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(D_)),t.union(n)}this._rect=t}return this._rect},Jo.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},Jo),P_=Zi(),O_=Math.max,L_=Math.min,E_={},R_=function(t,e){function n(t){return t=o.call(this,t)||this,t.applyTransform=r.applyTransform,t.buildPath=r.buildPath,t}var o,r=Eo(t,e);return i(n,o=Ov),n},N_=En;lr("circle",Ev),lr("ellipse",Bv),lr("sector",Qv),lr("ring",t_),lr("polygon",n_),lr("polyline",a_),lr("rect",qm),lr("line",u_),lr("bezierCurve",f_),lr("arc",m_);var B_=Object.freeze({__proto__:null,Arc:m_,BezierCurve:f_,BoundingRect:py,Circle:Ev,CompoundPath:__,Ellipse:Bv,Group:wy,Image:Wm,IncrementalDisplayable:_y,Line:u_,LinearGradient:b_,OrientedBoundingRect:A_,Path:Bm,Point:ny,Polygon:n_,Polyline:a_,RadialGradient:x_,Rect:qm,Ring:t_,Sector:Qv,Text:$m,applyTransform:yr,clipPointsByRect:_r,clipRectByRect:xr,createIcon:wr,extendPath:sr,extendShape:ar,getShapeClass:hr,getTransform:gr,groupTransition:vr,initProps:ir,isElementRemoved:nr,lineLineIntersect:br,linePolygonIntersect:function(t,e,i,n,o){for(var r=0,a=o[o.length-1];r<o.length;r++){var s=o[r];if(br(t,e,i,n,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:cr,makePath:ur,mergePath:dr,registerShape:lr,removeElement:or,removeElementWithFadeOut:function(t,e,i){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||rr(t,e,i,n)}):rr(t,e,i,n)},resizePath:fr,setTooltipConfig:Sr,subPixelOptimize:N_,subPixelOptimizeLine:function(t){return On(t.shape,t.shape,t.style),t},subPixelOptimizeRect:function(t){return Ln(t.shape,t.shape,t.style),t},transformDirection:function(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),o=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),n=yr(["left"===t?-n:"right"===t?n:0,"top"===t?-o:"bottom"===t?o:0],e,i);return Math.abs(n[0])>Math.abs(n[1])?0<n[0]?"right":"left":0<n[1]?"bottom":"top"},traverseElements:Cr,updateProps:er}),z_={},F_=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],V_=["align","lineHeight","width","height","tag","verticalAlign"],Y_=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],H_=Zi(),W_=["textStyle","color"],X_=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],U_=new $m,N_=(Er.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(W_):null)},Er.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},Er.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<X_.length;i++)e[X_[i]]=this.getShallow(X_[i]);return U_.useStyle(e),U_.update(),U_.getBoundingRect()},Er),G_=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],j_=ln(G_),q_=(Rr.prototype.getLineStyle=function(t){return j_(this,t)},Rr),Z_=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],K_=ln(Z_),Q_=(Nr.prototype.getItemStyle=function(t,e){return K_(this,t,e)},Nr);Br.prototype.init=function(t,e,i){},Br.prototype.mergeOption=function(t,e){s(this.option,t,!0)},Br.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},Br.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},Br.prototype.getModel=function(t,e){var i=null!=t,t=i?this.parsePath(t):null;return new Br(i?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},Br.prototype.isEmpty=function(){return null==this.option},Br.prototype.restoreData=function(){},Br.prototype.clone=function(){return new this.constructor(a(this.option))},Br.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},Br.prototype.resolveParentPath=function(t){return t},Br.prototype.isAnimationEnabled=function(){if(!af.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},Br.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 $_,J_=Br;nn(J_),px=J_,$_=["__\0is_clz",Ny++].join("_"),px.prototype[$_]=!0,px.isInstance=function(t){return!(!t||!t[$_])},p(J_,q_),p(J_,Q_),p(J_,zy),p(J_,N_);var tx=Math.round(10*Math.random()),ex="ZH",ix="EN",nx=ix,ox={},rx={},ax=af.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(ex)?ex:nx;Fr(ix,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),Fr(ex,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var sx=1e3,lx=60*sx,hx=60*lx,ux=24*hx,Ny=365*ux,cx={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},px="{yyyy}-{MM}-{dd}",dx={year:"{yyyy}",month:"{yyyy}-{MM}",day:px,hour:px+" "+cx.hour,minute:px+" "+cx.minute,second:px+" "+cx.second,millisecond:cx.none},fx=["year","month","day","hour","minute","second","millisecond"],gx=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],yx=B,mx=/([&<>"'])/g,vx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_x=["a","b","c","d","e","f","g"],xx=f,bx=["left","right","top","bottom","width","height"],Sx=[["width","left","right"],["height","top","bottom"]],Tx=da;_(da,"vertical"),_(da,"horizontal");var Cx,Mx,Ix,kx,Ax=Zi(),Dx=(i(va,Cx=J_),va.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i)},va.prototype.mergeDefaultAndTheme=function(t,e){var i=ga(this),n=i?ma(t):{};s(t,e.getTheme().get(this.mainType)),s(t,this.getDefaultOption()),i&&ya(t,n,i)},va.prototype.mergeOption=function(t,e){s(this.option,t,!0);var i=ga(this);i&&ya(this.option,t,i)},va.prototype.optionUpdated=function(t,e){},va.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[Ry])return t.defaultOption;var e=Ax(this);if(!e.defaultOption){for(var i=[],n=t;n;){var o=n.prototype.defaultOption;o&&i.push(o),n=n.superClass}for(var r={},a=i.length-1;0<=a;a--)r=s(r,i[a],!0);e.defaultOption=r}return e.defaultOption},va.prototype.getReferringComponents=function(t,e){var i=t+"Id";return $i(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(i,!0)},e)},va.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},va.prototype.getZLevelKey=function(){return""},va.prototype.setZLevel=function(t){this.option.zlevel=t},va.protoInitialize=((q_=va.prototype).type="component",q_.id="",q_.name="",q_.mainType="",q_.subType="",void(q_.componentIndex=0)),va);on(Dx,J_),sn(Dx),Ix={},(Mx=Dx).registerSubTypeDefaulter=function(t,e){t=en(t),Ix[t.main]=e},Mx.determineSubType=function(t,e){var i,n=e.type;return n||(i=en(t).main,Mx.hasSubTypes(t)&&Ix[i]&&(n=Ix[i](e))),n},kx=function(t){var e=[];return f(Dx.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=g(e,function(t){return en(t).main}),"dataset"!==t&&u(e,"dataset")<=0&&e.unshift("dataset"),e},Dx.topologicalTravel=function(t,e,i,n){function o(t){0===--h[t].entryCount&&c.push(t)}function r(t){p[t]=!0,o(t)}if(t.length){s={},l=[],f(a=e,function(t){var e,i,n=_a(s,t),o=n.originalDeps=kx(t),o=(e=a,i=[],f(o,function(t){0<=u(e,t)&&i.push(t)}),i);n.entryCount=o.length,0===n.entryCount&&l.push(t),f(o,function(e){u(n.predecessor,e)<0&&n.predecessor.push(e);var i=_a(s,e);u(i.successor,e)<0&&i.successor.push(t)})});var a,s,l,e={graph:s,noEntryList:l},h=e.graph,c=e.noEntryList,p={};for(f(t,function(t){p[t]=!0});c.length;){var d=c.pop(),g=h[d],y=!!p[d];y&&(i.call(n,d,g.originalDeps.slice()),delete p[d]),f(g.successor,y?r:o)}f(p,function(){throw new Error("")})}};var Px,Ox,Lx,Ex,Q_="",zy=("undefined"!=typeof navigator&&(Q_=navigator.platform||""),"rgba(0, 0, 0, 0.2)"),Rx={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:zy,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:zy,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:zy,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:zy,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:zy,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:zy,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Q_.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},Nx=W(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Bx="original",zx="arrayRows",Fx="objectRows",Vx="keyedColumns",Yx="typedArray",Hx="unknown",Wx="column",Xx="row",Ux={Must:1,Might:2,Not:3},Gx=Zi(),jx=W(),qx=Zi(),Zx=(Zi(),Sa.prototype.getColorFromPalette=function(t,e,i){var n=zi(this.get("color",!0)),o=this.get("colorLayer",!0),r=this,a=qx;return a=a(e=e||r),r=a.paletteIdx||0,(e=a.paletteNameMap=a.paletteNameMap||{}).hasOwnProperty(t)?e[t]:(o=(o=null!=i&&o?Ta(o,i):n)||n)&&o.length?(i=o[r],t&&(e[t]=i),a.paletteIdx=(r+1)%o.length,i):void 0},Sa.prototype.clearColorPalette=function(){var t,e;(e=qx)(t=this).paletteIdx=0,e(t).paletteNameMap={}},Sa),Kx="\0_ec_inner",Qx=(i(Ca,Ex=J_),Ca.prototype.init=function(t,e,i,n,o,r){n=n||{},this.option=null,this._theme=new J_(n),this._locale=new J_(o),this._optionManager=r},Ca.prototype.setOption=function(t,e,i){e=ka(e),this._optionManager.setOption(t,i,e),this._resetOption(null,e)},Ca.prototype.resetOption=function(t,e){return this._resetOption(t,ka(e))},Ca.prototype._resetOption=function(t,e){var i,n=!1,o=this._optionManager;return t&&"recreate"!==t||(i=o.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):Lx(this,i),n=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(i=o.getTimelineOption(this))&&(n=!0,this._mergeOption(i,e)),t&&"recreate"!==t&&"media"!==t||(i=o.getMediaOption(this)).length&&f(i,function(t){n=!0,this._mergeOption(t,e)},this),n},Ca.prototype.mergeOption=function(t){this._mergeOption(t,null)},Ca.prototype._mergeOption=function(t,e){var i=this.option,n=this._componentsMap,o=this._componentsCount,r=[],h=W(),u=e&&e.replaceMergeMainTypeMap;Gx(this).datasetMap=W(),f(t,function(t,e){null!=t&&(Dx.hasClass(e)?e&&(r.push(e),h.set(e,!0)):i[e]=null==i[e]?a(t):s(i[e],t,!0))}),u&&u.each(function(t,e){Dx.hasClass(e)&&!h.get(e)&&(r.push(e),h.set(e,!0))}),Dx.topologicalTravel(r,Dx.getAllClassMainTypes(),function(e){var r,a=function(t,e,i){return(e=(e=jx.get(e))&&e(t))?i.concat(e):i}(this,e,zi(t[e])),s=n.get(e),h=s?u&&u.get(e)?"replaceMerge":"normalMerge":"replaceAll",s=Yi(s,a,h),c=(ji(s,e,Dx),i[e]=null,n.set(e,null),o.set(e,0),[]),p=[],d=0;f(s,function(t,i){var n=t.existing,o=t.newOption;if(o){var a=Dx.getClass(e,t.keyInfo.subType,!("series"===e));if(!a)return;if("tooltip"===e){if(r)return;r=!0}n&&n.constructor===a?(n.name=t.keyInfo.name,n.mergeOption(o,this),n.optionUpdated(o,!1)):(i=l({componentIndex:i},t.keyInfo),l(n=new a(o,this,this,i),i),t.brandNew&&(n.__requireNewView=!0),n.init(o,this,this),n.optionUpdated(null,!0))}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(c.push(n.option),p.push(n),d++):(c.push(void 0),p.push(void 0))},this),i[e]=c,n.set(e,p),o.set(e,d),"series"===e&&Px(this)},this),this._seriesIndices||Px(this)},Ca.prototype.getOption=function(){var t=a(this.option);return f(t,function(e,i){if(Dx.hasClass(i)){for(var n=zi(e),o=n.length,r=!1,a=o-1;0<=a;a--)n[a]&&!Gi(n[a])?r=!0:(n[a]=null,r||o--);n.length=o,t[i]=n}}),delete t[Kx],t},Ca.prototype.getTheme=function(){return this._theme},Ca.prototype.getLocaleModel=function(){return this._locale},Ca.prototype.setUpdatePayload=function(t){this._payload=t},Ca.prototype.getUpdatePayload=function(){return this._payload},Ca.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]}},Ca.prototype.queryComponents=function(t){var e,i,n,o,r,a=t.mainType;return a&&(e=t.index,i=t.id,n=t.name,o=this._componentsMap.get(a))&&o.length?(null!=e?(r=[],f(zi(e),function(t){o[t]&&r.push(o[t])})):r=null!=i?Ma("id",i,o):null!=n?Ma("name",n,o):m(o,function(t){return!!t}),Ia(r,t)):[]},Ca.prototype.findComponents=function(t){var e,i=t.query,n=t.mainType,o=(o=n+"Index",r=n+"Id",e=n+"Name",!(i=i)||null==i[o]&&null==i[r]&&null==i[e]?null:{mainType:n,index:i[o],id:i[r],name:i[e]}),r=o?this.queryComponents(o):m(this._componentsMap.get(n),function(t){return!!t});return i=Ia(r,t),t.filter?m(i,t.filter):i},Ca.prototype.eachComponent=function(t,e,i){var n=this._componentsMap;if(w(t)){var o=e,r=t;n.each(function(t,e){for(var i=0;t&&i<t.length;i++){var n=t[i];n&&r.call(o,e,n,n.componentIndex)}})}else for(var a=b(t)?n.get(t):C(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(i,l,l.componentIndex)}},Ca.prototype.getSeriesByName=function(t){var e=Xi(t,null);return m(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},Ca.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},Ca.prototype.getSeriesByType=function(t){return m(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},Ca.prototype.getSeries=function(){return m(this._componentsMap.get("series"),function(t){return!!t})},Ca.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},Ca.prototype.eachSeries=function(t,e){Ox(this),f(this._seriesIndices,function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)},this)},Ca.prototype.eachRawSeries=function(t,e){f(this._componentsMap.get("series"),function(i){i&&t.call(e,i,i.componentIndex)})},Ca.prototype.eachSeriesByType=function(t,e,i){Ox(this),f(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];o.subType===t&&e.call(i,o,n)},this)},Ca.prototype.eachRawSeriesByType=function(t,e,i){return f(this.getSeriesByType(t),e,i)},Ca.prototype.isSeriesFiltered=function(t){return Ox(this),null==this._seriesIndicesMap.get(t.componentIndex)},Ca.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},Ca.prototype.filterSeries=function(t,e){Ox(this);var i=[];f(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];t.call(e,o,n)&&i.push(n)},this),this._seriesIndices=i,this._seriesIndicesMap=W(i)},Ca.prototype.restoreData=function(t){Px(this);var e=this._componentsMap,i=[];e.each(function(t,e){Dx.hasClass(e)&&i.push(e)}),Dx.topologicalTravel(i,Dx.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()})})},Ca.internalField=(Px=function(t){var e=t._seriesIndices=[];f(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=W(e)},Ox=function(t){},void(Lx=function(t,e){t.option={},t.option[Kx]=1,t._componentsMap=W({series:[]}),t._componentsCount=W();var i,n,o=e.aria;C(o)&&null==o.enabled&&(o.enabled=!0),i=e,o=t._theme.option,n=i.color&&!i.colorLayer,f(o,function(t,e){"colorLayer"===e&&n||Dx.hasClass(e)||("object"==typeof t?i[e]=i[e]?s(i[e],t,!1):a(t):null==i[e]&&(i[e]=t))}),s(e,Rx,!1),t._mergeOption(e,null)})),Ca);p(Qx,Zx);var $x,Jx,tw=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ew={},iw=(Da.prototype.create=function(t,e){var i=[];f(ew,function(n,o){n=n.create(t,e),i=i.concat(n||[])}),this._coordinateSystems=i},Da.prototype.update=function(t,e){f(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},Da.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},Da.register=function(t,e){ew[t]=e},Da.get=function(t){return ew[t]},Da),nw=/^(min|max)?(.+)$/,ow=(Pa.prototype.setOption=function(t,e,i){t&&(f(zi(t.series),function(t){t&&t.data&&I(t.data)&&V(t.data)}),f(zi(t.dataset),function(t){t&&t.source&&I(t.source)&&V(t.source)})),t=a(t);var n=this._optionBackup,t=function(t,e,i){function n(t){f(e,function(e){e(t,i)})}var o,r,a=[],s=t.baseOption,l=t.timeline,h=t.options,u=t.media,c=!!t.media,p=!!(h||l||s&&s.timeline);return s?(r=s).timeline||(r.timeline=l):((p||c)&&(t.options=t.media=null),r=t),c&&x(u)&&f(u,function(t){t&&t.option&&(t.query?a.push(t):o=o||t)}),n(r),f(h,n),f(a,function(t){return n(t.option)}),{baseOption:r,timelineOptions:h||[],mediaDefault:o,mediaList:a}}(t,e,!n);this._newBaseOption=t.baseOption,n?(t.timelineOptions.length&&(n.timelineOptions=t.timelineOptions),t.mediaList.length&&(n.mediaList=t.mediaList),t.mediaDefault&&(n.mediaDefault=t.mediaDefault)):this._optionBackup=t},Pa.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],a(t?e.baseOption:this._newBaseOption)},Pa.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;return e=i.length&&(t=t.getComponent("timeline"))?a(i[t.getCurrentIndex()]):e},Pa.prototype.getMediaOption=function(t){var e=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,o=this._mediaDefault,r=[],s=[];if(n.length||o){for(var l,h,u=0,c=n.length;u<c;u++)!function(t,e,i){var n={width:e,height:i,aspectratio:e/i},o=!0;return f(t,function(t,e){var i,e=e.match(nw);e&&e[1]&&e[2]&&(i=e[1],e=e[2].toLowerCase(),e=n[e],t=t,("min"===(i=i)?t<=e:"max"===i?e<=t:e===t)||(o=!1))}),o}(n[u].query,e,i)||r.push(u);(r=!r.length&&o?[-1]:r).length&&(l=r,h=this._currentMediaIndices,l.join(",")!==h.join(","))&&(s=g(r,function(t){return a((-1===t?o:n[t]).option)})),this._currentMediaIndices=r}return s},Pa),rw=f,aw=C,sw=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],lw=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],hw=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],uw=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]],cw=function(t){this.data=t.data||(t.sourceFormat===Vx?{}:[]),this.sourceFormat=t.sourceFormat||Hx,this.seriesLayoutBy=t.seriesLayoutBy||Wx,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;i<e.length;i++){var n=e[i];null==n.type&&ba(this,i)===Ux.Must&&(n.type="ordinal")}};Ja.prototype.getSource=function(){return this._source},Ja.prototype.count=function(){return 0},Ja.prototype.getItem=function(t,e){},Ja.prototype.appendData=function(t){},Ja.prototype.clean=function(){},Ja.protoInitialize=((N_=Ja.prototype).pure=!1,void(N_.persistent=!0)),Ja.internalField=(Jx=function(t,e,i){var n,o=i.sourceFormat,r=i.seriesLayoutBy,a=i.startIndex,i=i.dimensionsDefine;l(t,$x[ss(o,r)]),o===Yx?(t.getItem=pw,t.count=fw,t.fillStorage=dw):(n=is(o,r),t.getItem=If(n,null,e,a,i),n=os(o,r),t.count=If(n,null,e,a,i))},pw=function(t,e){t-=this._offset,e=e||[];for(var i=this._data,n=this._dimSize,o=n*t,r=0;r<n;r++)e[r]=i[o+r];return e},dw=function(t,e,i,n){for(var o=this._data,r=this._dimSize,a=0;a<r;a++){for(var s=n[a],l=null==s[0]?1/0:s[0],h=null==s[1]?-1/0:s[1],u=e-t,c=i[a],p=0;p<u;p++){var d=o[p*r+a];(c[t+p]=d)<l&&(l=d),h<d&&(h=d)}s[0]=l,s[1]=h}},fw=function(){return this._data?this._data.length/this._dimSize:0},(N_={})[zx+"_"+Wx]={pure:!0,appendData:ts},N_[zx+"_"+Xx]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},N_[Fx]={pure:!0,appendData:ts},N_[Vx]={pure:!0,appendData:function(t){var e=this._data;f(t,function(t,i){for(var n=e[i]||(e[i]=[]),o=0;o<(t||[]).length;o++)n.push(t[o])})}},N_[Bx]={appendData:ts},N_[Yx]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},void($x=N_));var pw,dw,fw,gw=Ja;(px={})[zx+"_"+Wx]=function(t,e,i,n){return t[n+e]},px[zx+"_"+Xx]=function(t,e,i,n,o){n+=e;for(var r=o||[],a=t,s=0;s<a.length;s++){var l=a[s];r[s]=l?l[n]:null}return r},px[Fx]=es,px[Vx]=function(t,e,i,n,o){for(var r=o||[],a=0;a<i.length;a++){var s=t[i[a].name];r[a]=s?s[n]:null}return r},px[Bx]=es;var yw=px;(q_={})[zx+"_"+Wx]=function(t,e,i){return Math.max(0,t.length-e)},q_[zx+"_"+Xx]=function(t,e,i){return t=t[0],t?Math.max(0,t.length-e):0},q_[Fx]=ns,q_[Vx]=function(t,e,i){return t=t[i[0].name],t?t.length:0},q_[Bx]=ns;var mw=q_;(zy={})[zx]=rs,zy[Fx]=function(t,e,i){return t[i]},zy[Vx]=rs,zy[Bx]=function(t,e,i){return t=Vi(t),t instanceof Array?t[e]:t},zy[Yx]=rs;var vw=zy,_w=/\{@(.+?)\}/g,Q_=(hs.prototype.getDataParams=function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),o=i.getRawIndex(t),r=i.getName(t),a=i.getRawDataItem(t),s=i.getItemVisual(t,"style"),t=s&&s[i.getItemVisual(t,"drawType")||"fill"],s=s&&s.stroke,l=this.mainType,h="series"===l,i=i.userOutput&&i.userOutput.get();return{componentType:l,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:r,dataIndex:o,data:a,dataType:e,value:n,color:t,borderColor:s,dimensionNames:i?i.fullDimensions:null,encode:i?i.encode:null,$vars:["seriesName","name","value"]}},hs.prototype.getFormattedLabel=function(t,e,i,n,o,r){e=e||"normal";var a=this.getData(i),i=this.getDataParams(t,i);return r&&(i.value=r.interpolatedValue),null!=n&&x(i.value)&&(i.value=i.value[n]),w(o=o||a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]))?(i.status=e,i.dimensionIndex=n,o(i)):b(o)?ha(o,i).replace(_w,function(e,i){var n=i.length,n=("["===i.charAt(0)&&"]"===i.charAt(n-1)&&(i=+i.slice(1,n-1)),ls(a,t,i));return null!=(n=r&&x(r.interpolatedValue)&&0<=(i=a.getDimensionIndex(i))?r.interpolatedValue[i]:n)?n+"":""}):void 0},hs.prototype.getRawValue=function(t,e){return ls(this.getData(e),t)},hs.prototype.formatTooltip=function(t,e,i){},hs);ps.prototype.perform=function(t){function e(t){return t=1<=t?t:1}var i,n,o=this._upstream,r=t&&t.skip,a=(this._dirty&&o&&((a=this.context).data=a.outputData=o.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(i=this._plan(this.context)),e(this._modBy)),s=this._modDataCount||0,l=e(t&&t.modBy),h=t&&t.modDataCount||0;if(a===l&&s===h||(i="reset"),!this._dirty&&"reset"!==i||(this._dirty=!1,n=this._doReset(r)),this._modBy=l,this._modDataCount=h,a=t&&t.step,this._dueEnd=o?o._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var u=this._dueIndex,c=Math.min(null!=a?this._dueIndex+a:1/0,this._dueEnd);if(!r&&(n||u<c)){var p=this._progress;if(x(p))for(var d=0;d<p.length;d++)this._doProgress(p[d],u,c,l,h);else this._doProgress(p,u,c,l,h)}this._dueIndex=c,s=null!=this._settedOutputEnd?this._settedOutputEnd:c,this._outputDueEnd=s}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},ps.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},ps.prototype._doProgress=function(t,e,i,n,o){Iw.reset(e,i,n,o),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:Iw.next},this.context)},ps.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(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},ps.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},ps.prototype.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},ps.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},ps.prototype.getUpstream=function(){return this._upstream},ps.prototype.getDownstream=function(){return this._downstream},ps.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var xw,ww,bw,Sw,Tw,Cw,Mw=ps,Iw=Cw={reset:function(t,e,i,n){ww=t,xw=e,bw=i,Sw=n,Tw=Math.ceil(Sw/bw),Cw.next=1<bw&&0<Sw?fs:ds}},kw=W({number:function(t){return parseFloat(t)},time:function(t){return+ki(t)},trim:function(t){return b(t)?F(t):t}}),Aw={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}},Dw=(ms.prototype.evaluate=function(t){return T(t)?this._opFn(t,this._rvalFloat):this._opFn(Oi(t),this._rvalFloat)},ms);vs.prototype.evaluate=function(t,e){var i=T(t)?t:Oi(t),n=T(e)?e:Oi(e),o=isNaN(i),r=isNaN(n);return o&&(i=this._incomparable),r&&(n=this._incomparable),o&&r&&(o=b(t),r=b(e),o&&(i=r?t:0),r)&&(n=o?e:0),i<n?this._resultLT:n<i?-this._resultLT:0};var Pw=vs;_s.prototype.evaluate=function(t){var e,i=t===this._rval;return i||(e=typeof t)===this._rvalTypeof||"number"!=e&&"number"!==this._rvalTypeof||(i=Oi(t)===this._rvalFloat),this._isEQ?i:!i};var Ow=_s;xs.prototype.getRawData=function(){throw new Error("not supported")},xs.prototype.getRawDataItem=function(t){throw new Error("not supported")},xs.prototype.cloneRawData=function(){},xs.prototype.getDimensionInfo=function(t){},xs.prototype.cloneAllDimensionInfo=function(){},xs.prototype.count=function(){},xs.prototype.retrieveValue=function(t,e){},xs.prototype.retrieveValueFromItem=function(t,e){},xs.prototype.convertValue=gs;var Lw,Ew=xs,Rw=W(),N_="undefined",Nw=typeof Uint32Array==N_?Array:Uint32Array,Bw=typeof Uint16Array==N_?Array:Uint16Array,zw=typeof Int32Array==N_?Array:Int32Array,px=typeof Float64Array==N_?Array:Float64Array,Fw={float:px,int:zw,ordinal:Array,number:Array,time:px};Ds.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),o=this.defaultDimValueGetter=Lw[n.sourceFormat];this._dimValueGetter=i||o,this._rawExtent=[],$a(n),this._dimensions=g(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},Ds.prototype.getProvider=function(){return this._provider},Ds.prototype.getSource=function(){return this._provider.getSource()},Ds.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,n=this._dimensions,o=i.get(t);if(null!=o){if(n[o].type===e)return o}else o=n.length;return n[o]={type:e},i.set(t,o),this._chunks[o]=new Fw[e||"float"](this._rawCount),this._rawExtent[o]=ks(),o},Ds.prototype.collectOrdinalMeta=function(t,e){for(var i=this._chunks[t],n=this._dimensions[t],o=this._rawExtent,r=n.ordinalOffset||0,a=i.length,s=(0===r&&(o[t]=ks()),o[t]),l=r;l<a;l++){var h=i[l]=e.parseAndCollect(i[l]);s[0]=Math.min(h,s[0]),s[1]=Math.max(h,s[1])}n.ordinalMeta=e,n.ordinalOffset=a,n.type="ordinal"},Ds.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},Ds.prototype.getDimensionProperty=function(t){return(t=this._dimensions[t])&&t.property},Ds.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]},Ds.prototype.appendValues=function(t,e){for(var i=this._chunks,n=this._dimensions,o=n.length,r=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<o;l++)As(i,l,(d=n[l]).type,s,!0);for(var h=[],u=a;u<s;u++)for(var c=u-a,p=0;p<o;p++){var d=n[p],f=Lw.arrayRows.call(this,t[c]||h,d.property,c,p),g=(i[p][u]=f,r[p]);f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},Ds.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,o=this._chunks,r=this._dimensions,a=r.length,s=this._rawExtent,l=g(r,function(t){return t.property}),h=0;h<a;h++){var u=r[h];s[h]||(s[h]=ks()),As(o,h,u.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,o,s);else for(var c=[],p=t;p<e;p++)for(var c=n.getItem(p,c),d=0;d<a;d++){var f=o[d],y=this._dimValueGetter(c,l[d],p,d),f=(f[p]=y,s[d]);y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y)}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},Ds.prototype.count=function(){return this._count},Ds.prototype.get=function(t,e){return 0<=e&&e<this._count&&(t=this._chunks[t])?t[this.getRawIndex(e)]:NaN},Ds.prototype.getValues=function(t,e){var i=[],n=[];if(null==e){e=t,t=[];for(var o=0;o<this._dimensions.length;o++)n.push(o)}else n=t;for(var o=0,r=n.length;o<r;o++)i.push(this.get(n[o],e));return i},Ds.prototype.getByRawIndex=function(t,e){return 0<=e&&e<this._rawCount&&(t=this._chunks[t])?t[e]:NaN},Ds.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var i=0,n=this.count();i<n;i++){var o=this.get(t,i);isNaN(o)||(e+=o)}return e},Ds.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},Ds.prototype.indexOfRawIndex=function(t){if(!(t>=this._rawCount||t<0)){if(!this._indices)return t;var e=this._indices,i=e[t];if(null!=i&&i<this._count&&i===t)return t;for(var n=0,o=this._count-1;n<=o;){var r=(n+o)/2|0;if(e[r]<t)n=1+r;else{if(!(e[r]>t))return r;o=r-1}}}return-1},Ds.prototype.indicesOfNearest=function(t,e,i){var n=this._chunks[t],o=[];if(n){null==i&&(i=1/0);for(var r=1/0,a=-1,s=0,l=0,h=this.count();l<h;l++){var u=e-n[this.getRawIndex(l)],c=Math.abs(u);c<=i&&((c<r||c===r&&0<=u&&a<0)&&(r=c,a=u,s=0),u===a)&&(o[s++]=l)}o.length=s}return o},Ds.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,i=this._count;if(e===Array)for(var n=new e(i),o=0;o<i;o++)n[o]=t[o];else n=new e(t.buffer,0,i)}else for(n=new(e=Is(this._rawCount))(this.count()),o=0;o<n.length;o++)n[o]=o;return n},Ds.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),n=i.count(),o=new(Is(i._rawCount))(n),r=[],a=t.length,s=0,l=t[0],h=i._chunks,u=0;u<n;u++){var c=void 0,p=i.getRawIndex(u);if(0===a)c=e(u);else if(1===a)c=e(h[l][p],u);else{for(var d=0;d<a;d++)r[d]=h[t[d]][p];r[d]=u,c=e.apply(null,r)}c&&(o[s++]=p)}return s<n&&(i._indices=o),i._count=s,i._extent=[],i._updateGetRawIdx(),i},Ds.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var n=v(t),o=n.length;if(!o)return this;var r=e.count(),a=new(Is(e._rawCount))(r),s=0,l=n[0],h=t[l][0],u=t[l][1],c=e._chunks,l=!1;if(!e._indices){var p=0;if(1===o){for(var d=c[n[0]],f=0;f<i;f++)(h<=(_=d[f])&&_<=u||isNaN(_))&&(a[s++]=p),p++;l=!0}else if(2===o){for(var d=c[n[0]],g=c[n[1]],y=t[n[1]][0],m=t[n[1]][1],f=0;f<i;f++){var _=d[f],x=g[f];(h<=_&&_<=u||isNaN(_))&&(y<=x&&x<=m||isNaN(x))&&(a[s++]=p),p++}l=!0}}if(!l)if(1===o)for(f=0;f<r;f++){var w=e.getRawIndex(f);(h<=(_=c[n[0]][w])&&_<=u||isNaN(_))&&(a[s++]=w)}else for(f=0;f<r;f++){for(var b=!0,w=e.getRawIndex(f),S=0;S<o;S++){var T=n[S];((_=c[T][w])<t[T][0]||_>t[T][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(f))}return s<r&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},Ds.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},Ds.prototype.modify=function(t,e){this._updateDims(this,t,e)},Ds.prototype._updateDims=function(t,e,i){for(var n=t._chunks,o=[],r=e.length,a=t.count(),s=[],l=t._rawExtent,h=0;h<e.length;h++)l[e[h]]=ks();for(var u=0;u<a;u++){for(var c=t.getRawIndex(u),p=0;p<r;p++)s[p]=n[e[p]][c];s[r]=u;var d=i&&i.apply(null,s);if(null!=d)for("object"!=typeof d&&(o[0]=d,d=o),h=0;h<d.length;h++){var f=e[h],g=d[h],y=l[f],f=n[f];f&&(f[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}},Ds.prototype.lttbDownSample=function(t,e){var i,n=this.clone([t],!0),o=n._chunks[t],r=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),h=new(Is(this._rawCount))(Math.ceil(r/s)+2);h[a++]=l;for(var u=1;u<r-1;u+=s){for(var c=Math.min(u+s,r-1),p=Math.min(u+2*s,r),d=(p+c)/2,f=0,g=c;g<p;g++){var y=o[b=this.getRawIndex(g)];isNaN(y)||(f+=y)}f/=p-c;for(var c=u,m=Math.min(u+s,r),v=u-1,_=o[l],x=-1,w=c,g=c;g<m;g++){var b,y=o[b=this.getRawIndex(g)];isNaN(y)||x<(i=Math.abs((v-d)*(y-_)-(v-g)*(f-_)))&&(x=i,w=b)}l=h[a++]=w}return h[a++]=this.getRawIndex(r-1),n._count=a,n._indices=h,n.getRawIndex=this._getRawIdx,n},Ds.prototype.downSample=function(t,e,i,n){for(var o=this.clone([t],!0),r=o._chunks,a=[],s=Math.floor(1/e),l=r[t],h=this.count(),u=o._rawExtent[t]=ks(),c=new(Is(this._rawCount))(Math.ceil(h/s)),p=0,d=0;d<h;d+=s){h-d<s&&(a.length=s=h-d);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var y=i(a),m=this.getRawIndex(Math.min(d+n(a,y)||0,h-1));(l[m]=y)<u[0]&&(u[0]=y),y>u[1]&&(u[1]=y),c[p++]=m}return o._count=p,o._indices=c,o._updateGetRawIdx(),o},Ds.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,o=0,r=this.count();o<r;o++){var a=this.getRawIndex(o);switch(i){case 0:e(o);break;case 1:e(n[t[0]][a],o);break;case 2:e(n[t[0]][a],n[t[1]][a],o);break;default:for(var s=0,l=[];s<i;s++)l[s]=n[t[s]][a];l[s]=o,e.apply(null,l)}}},Ds.prototype.getDataExtent=function(t){var e=this._chunks[t],i=ks();if(!e)return i;var n=this.count();if(!this._indices)return this._rawExtent[t].slice();if(o=this._extent[t])return o.slice();for(var o,r=(o=i)[0],a=o[1],s=0;s<n;s++){var l=e[this.getRawIndex(s)];l<r&&(r=l),a<l&&(a=l)}return this._extent[t]=o=[r,a]},Ds.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,o=0;o<n.length;o++)i.push(n[o][e]);return i},Ds.prototype.clone=function(t,e){var i,n,o=new Ds,r=this._chunks,a=t&&y(t,function(t,e){return t[e]=!0,t},{});if(a)for(var s=0;s<r.length;s++)o._chunks[s]=a[s]?(i=r[s],n=void 0,(n=i.constructor)===Array?i.slice():new n(i)):r[s];else o._chunks=r;return this._copyCommonProps(o),e||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},Ds.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)},Ds.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},Ds.prototype._getRawIdxIdentity=function(t){return t},Ds.prototype._getRawIdx=function(t){return t<this._count&&0<=t?this._indices[t]:-1},Ds.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},Ds.internalField=void(Lw={arrayRows:Ps,objectRows:function(t,e,i,n){return gs(t[e],this._dimensions[n])},keyedColumns:Ps,original:function(t,e,i,n){return t=t&&(null==t.value?t:t.value),gs(t instanceof Array?t[n]:t,this._dimensions[n])},typedArray:function(t,e,i,n){return t[n]}});var Vw=Ds;Os.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},Os.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,9e10<++this._versionSignBase&&(this._versionSignBase=0)},Os.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},Os.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},Os.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,i,n,o,r,a,s=this._sourceHost,l=this._getUpstreamSourceManagers(),h=!!l.length;Es(s)?(n=s,o=t=r=void 0,e=h?((e=l[0]).prepareSource(),r=(o=e.getSource()).data,t=o.sourceFormat,[e._getVersionSign()]):(t=I(r=n.get("data",!0))?Yx:Bx,[]),n=this._getSourceMetaRawOption()||{},o=o&&o.metaRawOption||{},a=E(n.seriesLayoutBy,o.seriesLayoutBy)||null,i=E(n.sourceHeader,o.sourceHeader),n=E(n.dimensions,o.dimensions),o=a!==o.seriesLayoutBy||!!i!=!!o.sourceHeader||n?[ja(r,{seriesLayoutBy:a,sourceHeader:i,dimensions:n},t)]:[]):(r=s,e=h?(o=(a=this._applyTransform(l)).sourceList,a.upstreamSignList):(o=[ja(r.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(o,e)},Os.prototype._applyTransform=function(t){var e,i=this._sourceHost,n=i.get("transform",!0),o=i.get("fromTransformResult",!0),r=(null!=o&&1!==t.length&&Rs(""),[]),s=[];return f(t,function(t){t.prepareSource();var e=t.getSource(o||0);null==o||e||Rs(""),r.push(e),s.push(t._getVersionSign())}),n?e=Cs(n,r,i.componentIndex):null!=o&&(e=[new cw({data:(t=r[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:a(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:e,upstreamSignList:s}},Os.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}},Os.prototype.getSource=function(t){var e=this._sourceList[t=t||0];return e||(e=this._getUpstreamSourceManagers())[0]&&e[0].getSource(t)},Os.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},Os.prototype._innerGetDataStore=function(t,e,i){var n,o=this._storeList,r=o[0],o=(r=r||(o[0]={}))[i];return o||(n=this._getUpstreamSourceManagers()[0],Es(this._sourceHost)&&n?o=n._innerGetDataStore(t,e,i):(o=new Vw).initData(new gw(e,t.length),t),r[i]=o),o},Os.prototype._getUpstreamSourceManagers=function(){var t,e=this._sourceHost;return Es(e)?(t=wa(e))?[t.getSourceManager()]:[]:g((t=e).get("transform",!0)||t.get("fromTransformResult",!0)?$i(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Oy).models:[],function(t){return t.getSourceManager()})},Os.prototype._getSourceMetaRawOption=function(){var t,e,i,n=this._sourceHost;return Es(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 Yw=Os,Hw="line-height:1",Ww=[0,10,20,30],Xw=["","\n","\n\n","\n\n\n"];Gs.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},Gs.prototype.makeTooltipMarker=function(t,e,i){var n="richText"===i?this._generateStyleName():null,e=ua({color:e,type:t,renderMode:i,markerId:n});return b(e)?e:(this.richTextStyles[n]=e.style,e.content)},Gs.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 Uw=Gs,Gw=Zi();i(Zs,jw=Dx),Zs.prototype.init=function(t,e,i){this.seriesIndex=this.componentIndex,this.dataTask=cs({count:Qs,reset:$s}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i),(Gw(this).sourceManager=new Yw(this)).prepareSource(),t=this.getInitialData(t,i),tl(t,this),this.dataTask.context.data=t,Gw(this).dataBeforeProcessed=t,Ks(this),this._initSelectedMapFromData(t)},Zs.prototype.mergeDefaultAndTheme=function(t,e){var i=ga(this),n=i?ma(t):{},o=this.subType;Dx.hasClass(o),s(t,e.getTheme().get(this.subType)),s(t,this.getDefaultOption()),Fi(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&ya(t,n,i)},Zs.prototype.mergeOption=function(t,e){t=s(this.option,t,!0),this.fillDataTextStyle(t.data);var i=ga(this),i=(i&&ya(this.option,t,i),Gw(this).sourceManager),i=(i.dirty(),i.prepareSource(),this.getInitialData(t,e));tl(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Gw(this).dataBeforeProcessed=i,Ks(this),this._initSelectedMapFromData(i)},Zs.prototype.fillDataTextStyle=function(t){if(t&&!I(t))for(var e=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&Fi(t[i],"label",e)},Zs.prototype.getInitialData=function(t,e){},Zs.prototype.appendData=function(t){this.getRawData().appendData(t.data)},Zs.prototype.getData=function(t){var e=il(this);return e?(e=e.context.data,null==t?e:e.getLinkedData(t)):Gw(this).data},Zs.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},Zs.prototype.setData=function(t){var e,i=il(this);i&&((e=i.context).outputData=t,i!==this.dataTask)&&(e.data=t),Gw(this).data=t},Zs.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return W(t)},Zs.prototype.getSourceManager=function(){return Gw(this).sourceManager},Zs.prototype.getSource=function(){return this.getSourceManager().getSource()},Zs.prototype.getRawData=function(){return Gw(this).dataBeforeProcessed},Zs.prototype.getColorBy=function(){return this.get("colorBy")||"series"},Zs.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},Zs.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},Zs.prototype.formatTooltip=function(t,e,i){return js({series:this,dataIndex:t,multipleSeries:e})},Zs.prototype.isAnimationEnabled=function(){var t=this.ecModel;return!!(!af.node||t&&t.ssr)&&!!(t=!((t=this.getShallow("animation"))&&this.getData().count()>this.getShallow("animationThreshold"))&&t)},Zs.prototype.restoreData=function(){this.dataTask.dirty()},Zs.prototype.getColorFromPalette=function(t,e,i){var n=this.ecModel;return Zx.prototype.getColorFromPalette.call(this,t,e,i)||n.getColorFromPalette(t,e,i)},Zs.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},Zs.prototype.getProgressive=function(){return this.get("progressive")},Zs.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},Zs.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},Zs.prototype.unselect=function(t,e){var i=this.option.selectedMap;if(i){var n=this.option.selectedMode,o=this.getData(e);if("series"===n||"all"===i)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var r=0;r<t.length;r++){var a=qs(o,t[r]);i[a]=!1,this._selectedDataIndicesMap[a]=-1}}},Zs.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)},Zs.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=v(t),i=[],n=0;n<e.length;n++){var o=t[e[n]];0<=o&&i.push(o)}return i},Zs.prototype.isSelected=function(t,e){var i=this.option.selectedMap;return!!i&&(e=this.getData(e),"all"===i||i[qs(e,t)])&&!e.getItemModel(t).get(["select","disabled"])},Zs.prototype.isUniversalTransitionEnabled=function(){var t;return!!this.__universalTransitionEnabled||!!(t=this.option.universalTransition)&&(!0===t||t&&t.enabled)},Zs.prototype._innerSelect=function(t,e){var i=this.option,n=i.selectedMode,o=e.length;if(n&&o)if("series"===n)i.selectedMap="all";else if("multiple"===n){C(i.selectedMap)||(i.selectedMap={});for(var r=i.selectedMap,a=0;a<o;a++){var s,l=e[a];r[s=qs(t,l)]=!0,this._selectedDataIndicesMap[s]=t.getRawIndex(l)}}else"single"!==n&&!0!==n||(s=qs(t,n=e[o-1]),i.selectedMap=((i={})[s]=!0,i),this._selectedDataIndicesMap=((i={})[s]=t.getRawIndex(n),i))},Zs.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))},Zs.registerClass=function(t){return Dx.registerClass(t)},Zs.protoInitialize=((q_=Zs.prototype).type="series.__base__",q_.seriesIndex=0,q_.ignoreStyleOnData=!1,q_.hasSymbolVisual=!1,q_.defaultSymbol="circle",q_.visualStyleAccessPath="itemStyle",void(q_.visualDrawType="fill"));var jw,qw=Zs;p(qw,Q_),p(qw,Zx),on(qw,Dx),nl.prototype.init=function(t,e){},nl.prototype.render=function(t,e,i,n){},nl.prototype.dispose=function(t,e){},nl.prototype.updateView=function(t,e,i,n){},nl.prototype.updateLayout=function(t,e,i,n){},nl.prototype.updateVisual=function(t,e,i,n){},nl.prototype.blurSeries=function(t,e){},nl.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var Zw=nl;nn(Zw),sn(Zw);var Kw=Zi(),Qw=ol(),$w=(rl.prototype.init=function(t,e){},rl.prototype.render=function(t,e,i,n){},rl.prototype.highlight=function(t,e,i,n){(t=t.getData(n&&n.dataType))&&sl(t,n,"emphasis")},rl.prototype.downplay=function(t,e,i,n){(t=t.getData(n&&n.dataType))&&sl(t,n,"normal")},rl.prototype.remove=function(t,e){this.group.removeAll()},rl.prototype.dispose=function(t,e){},rl.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},rl.prototype.updateLayout=function(t,e,i,n){this.render(t,e,i,n)},rl.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},rl.prototype.eachRendered=function(t){Cr(this.group,t)},rl.markUpdateMethod=function(t,e){Kw(t).updateMethod=e},rl.protoInitialize=void(rl.prototype.type="chart"),rl);nn($w),sn($w);var Jw={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},tb="\0__throttleOriginMethod",eb="\0__throttleRate",ib="\0__throttleType",nb=Zi(),ob={itemStyle:ln(Z_,!0),lineStyle:ln(G_,!0)},rb={lineStyle:"stroke",itemStyle:"fill"},zy={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",o=t.getModel(n),r=dl(t,n)(o),o=o.getShallow("decal"),a=(o&&(i.setVisual("decal",o),o.dirty=!0),fl(t,n)),o=r[a],s=w(o)?o:null,n="auto"===r.fill||"auto"===r.stroke;if(r[a]&&!s&&!n||(o=t.getColorFromPalette(t.name,null,e.getSeriesCount()),r[a]||(r[a]=o,i.setVisual("colorFromPalette",!0)),r.fill="auto"===r.fill||w(r.fill)?o:r.fill,r.stroke="auto"===r.stroke||w(r.stroke)?o:r.stroke),i.setVisual("style",r),i.setVisual("drawType",a),!e.isSeriesFiltered(t)&&s)return i.setVisual("colorFromPalette",!1),{dataEach:function(e,i){var n=t.getDataParams(i),o=l({},r);o[a]=s(n),e.setItemVisual(i,"style",o)}}}},ab=new J_,N_={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i,n,o;if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t))return e=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=dl(t,i),o=e.getVisual("drawType"),{dataEach:e.hasItemOption?function(t,e){var r=t.getRawDataItem(e);r&&r[i]&&(ab.option=r[i],r=n(ab),l(t.ensureUniqueItemVisual(e,"style"),r),ab.option.decal&&(t.setItemVisual(e,"decal",ab.option.decal),ab.option.decal.dirty=!0),o in r)&&t.setItemVisual(e,"colorFromPalette",!1)}:null}}},px={performRawSeries:!0,overallReset:function(t){var e=W();t.eachSeries(function(t){var i,n=t.getColorBy();t.isColorBySeries()||(n=t.type+"-"+n,(i=e.get(n))||e.set(n,i={}),nb(t).scope=i)}),t.eachSeries(function(e){var i,n,o,r,a,s;e.isColorBySeries()||t.isSeriesFiltered(e)||(i=e.getRawData(),n={},o=e.getData(),r=nb(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=fl(e,a),o.each(function(t){var e=o.getRawIndex(t);n[e]=t}),i.each(function(t){var a,l=n[t];o.getItemVisual(l,"colorFromPalette")&&(l=o.ensureUniqueItemVisual(l,"style"),t=i.getName(t)||t+"",a=i.count(),l[s]=e.getColorFromPalette(t,r,a))}))})}},sb=Math.PI;gl.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){(t=t.overallTask)&&t.dirty()})},gl.prototype.getPerformArgs=function(t,e){var 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}},gl.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},gl.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData().count(),e=i.progressiveEnabled&&e.incrementalPrepareRender&&n>=i.threshold,o=t.get("large")&&n>=t.get("largeThreshold"),n="mod"===t.get("progressiveChunkMode")?n:null;t.pipelineContext=i.context={progressiveRender:e,modDataCount:n,large:o}},gl.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=W();t.eachSeries(function(t){var n=t.getProgressive(),o=t.uid;i.set(o,{id:o,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),e._pipe(t,t.dataTask)})},gl.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;f(this._allHandlers,function(n){var o=t.get(n.uid)||t.set(n.uid,{});z(!(n.reset&&n.overallReset),""),n.reset&&this._createSeriesStageTask(n,o,e,i),n.overallReset&&this._createOverallStageTask(n,o,e,i)},this)},gl.prototype.prepareView=function(t,e,i,n){var o=t.renderTask,r=o.context;r.model=e,r.ecModel=i,r.api=n,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},gl.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},gl.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},gl.prototype._performStageTasks=function(t,e,i,n){function o(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}n=n||{};var r=!1,a=this;f(t,function(t,s){var l,h,u,c,p;n.visualType&&n.visualType!==t.visualType||(l=(h=a._stageTaskMap.get(t.uid)).seriesTaskMap,(h=h.overallTask)?((c=h.agentStubMap).each(function(t){o(n,t)&&(t.dirty(),u=!0)}),u&&h.dirty(),a.updatePayload(h,i),p=a.getPerformArgs(h,n.block),c.each(function(t){t.perform(p)}),h.perform(p)&&(r=!0)):l&&l.each(function(s,l){o(n,s)&&s.dirty();var h=a.getPerformArgs(s,n.block);h.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,i),s.perform(h)&&(r=!0)}))}),this.unfinished=r||this.unfinished},gl.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},gl.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}}while(e=e.getUpstream())})},gl.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},gl.prototype._createSeriesStageTask=function(t,e,i,n){function o(e){var o=e.uid,o=s.set(o,a&&a.get(o)||cs({plan:xl,reset:wl,count:Sl}));o.context={model:e,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,o)}var r=this,a=e.seriesTaskMap,s=e.seriesTaskMap=W(),e=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(o):e?i.eachRawSeriesByType(e,o):l&&l(i,n).each(o)},gl.prototype._createOverallStageTask=function(t,e,i,n){function o(t){var e=t.uid,e=l.set(e,s&&s.get(e)||(c=!0,cs({reset:ml,onDirty:_l})));e.context={model:t,overallProgress:u},e.agent=a,e.__block=u,r._pipe(t,e)}var r=this,a=e.overallTask=e.overallTask||cs({reset:yl}),s=(a.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:r},a.agentStubMap),l=a.agentStubMap=W(),e=t.seriesType,h=t.getTargetSeries,u=!0,c=!1;z(!t.createOnAllSeries,""),e?i.eachRawSeriesByType(e,o):h?h(i,n).each(o):(u=!1,f(i.getSeries(),o)),c&&a.dirty()},gl.prototype._pipe=function(t,e){t=t.uid,t=this._pipelineMap.get(t),t.head||(t.head=e),t.tail&&t.tail.pipe(e),(t.tail=e).__idxInPipeline=t.count++,e.__pipeline=t},gl.wrapStageHandler=function(t,e){return(t=w(t)?{overallReset:t,seriesType:function(t){lb=null;try{t(cb,pb)}catch(t){}return lb}(t)}:t).uid=zr("stageHandler"),e&&(t.visualType=e),t};var lb,hb=gl,ub=bl(0),cb={},pb={};Tl(cb,Qx),Tl(pb,Aa),cb.eachSeriesByType=cb.eachRawSeriesByType=function(t){lb=t},cb.eachComponent=function(t){"series"===t.mainType&&t.subType&&(lb=t.subType)};var q_=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Q_={color:q_,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],q_]},db="#B9B8CE",Z_="#100C2A",G_=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],q_={darkMode:!0,color:G_,backgroundColor:Z_,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:db}},textStyle:{color:db},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:db}},dataZoom:{borderColor:"#71708A",textStyle:{color:db},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:db}},timeline:{lineStyle:{color:db},label:{color:db},controlStyle:{color:db,borderColor:db}},calendar:{itemStyle:{color:Z_},dayLabel:{color:db},monthLabel:{color:db},yearLabel:{color:db}},timeAxis:Cl(),logAxis:Cl(),valueAxis:Cl(),categoryAxis:Cl(),line:{symbol:"circle"},graph:{color:G_},gauge:{title:{color:db},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:db},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}},fb=(q_.categoryAxis.splitLine.show=!1,Ml.prototype.normalizeQuery=function(t){var e,i,n,o={},r={},a={};return b(t)?(e=en(t),o.mainType=e.main||null,o.subType=e.sub||null):(i=["Index","Name","Id"],n={name:1,dataIndex:1,dataType:1},f(t,function(t,e){for(var s=!1,l=0;l<i.length;l++){var h=i[l],u=e.lastIndexOf(h);0<u&&u===e.length-h.length&&"data"!==(u=e.slice(0,u))&&(o.mainType=u,o[h.toLowerCase()]=t,s=!0)}n.hasOwnProperty(e)&&(r[e]=t,s=!0),s||(a[e]=t)})),{cptQuery:o,dataQuery:r,otherQuery:a}},Ml.prototype.filter=function(t,e){function i(t,e,i,n){return null==t[i]||e[n||i]===t[i]}var n,o,r,a,s,l=this.eventInfo;return!l||(n=l.targetEl,o=l.packedEvent,r=l.model,l=l.view,!r)||!l||(a=e.cptQuery,s=e.dataQuery,i(a,r,"mainType")&&i(a,r,"subType")&&i(a,r,"index","componentIndex")&&i(a,r,"name")&&i(a,r,"id")&&i(s,o,"name")&&i(s,o,"dataIndex")&&i(s,o,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(t,e.otherQuery,n,o)))},Ml.prototype.afterTrigger=function(){this.eventInfo=null},Ml),gb=["symbol","symbolSize","symbolRotate","symbolOffset"],yb=gb.concat(["symbolKeepAspect"]),Z_={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData();if(t.legendIcon&&i.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var n,o={},r={},a=!1,s=0;s<gb.length;s++){var h=gb[s],u=t.get(h);w(u)?(a=!0,r[h]=u):o[h]=u}if(o.symbol=o.symbol||t.defaultSymbol,i.setVisual(l({legendIcon:t.legendIcon||o.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},o)),!e.isSeriesFiltered(t))return n=v(r),{dataEach:a?function(e,i){for(var o=t.getRawValue(i),a=t.getDataParams(i),s=0;s<n.length;s++){var l=n[s];e.setItemVisual(i,l,r[l](o,a))}}:null}}}},G_={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<yb.length;n++){var o=yb[n],r=i.getShallow(o,!0);null!=r&&t.setItemVisual(e,o,r)}}:null}}},mb=Math.round(9*Math.random()),vb="function"==typeof Object.defineProperty,_b=(Al.prototype.get=function(t){return this._guard(t)[this._id]},Al.prototype.set=function(t,e){return t=this._guard(t),vb?Object.defineProperty(t,this._id,{value:e,enumerable:!1,configurable:!0}):t[this._id]=e,this},Al.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},Al.prototype.has=function(t){return!!this._guard(t)[this._id]},Al.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},Al),xb=Bm.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,o=e.width/2,e=e.height/2;t.moveTo(i,n-e),t.lineTo(i+o,n+e),t.lineTo(i-o,n+e),t.closePath()}}),wb=Bm.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,o=e.width/2,e=e.height/2;t.moveTo(i,n-e),t.lineTo(i+o,n),t.lineTo(i,n+e),t.lineTo(i-o,n),t.closePath()}}),bb=Bm.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,o=e.width/5*3,e=Math.max(o,e.height),o=o/2,r=o*o/(e-o),e=n-e+o+r,a=Math.asin(r/o),s=Math.cos(a)*o,l=Math.sin(a),h=Math.cos(a),u=.6*o,c=.7*o;t.moveTo(i-s,e+r),t.arc(i,e,o,Math.PI-a,2*Math.PI+a),t.bezierCurveTo(i+s-l*u,e+r+h*u,i,n-c,i,n),t.bezierCurveTo(i,n-c,i-s+l*u,e+r+h*u,i-s,e+r),t.closePath()}}),Sb=Bm.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,o=e.x,e=e.y,n=n/3*2;t.moveTo(o,e),t.lineTo(o+n,e+i),t.lineTo(o,e+i/4*3),t.lineTo(o-n,e+i),t.lineTo(o,e),t.closePath()}}),Tb={line:function(t,e,i,n,o){o.x1=t,o.y1=e+n/2,o.x2=t+i,o.y2=e+n/2},rect:function(t,e,i,n,o){o.x=t,o.y=e,o.width=i,o.height=n},roundRect:function(t,e,i,n,o){o.x=t,o.y=e,o.width=i,o.height=n,o.r=Math.min(i,n)/4},square:function(t,e,i,n,o){i=Math.min(i,n),o.x=t,o.y=e,o.width=i,o.height=i},circle:function(t,e,i,n,o){o.cx=t+i/2,o.cy=e+n/2,o.r=Math.min(i,n)/2},diamond:function(t,e,i,n,o){o.cx=t+i/2,o.cy=e+n/2,o.width=i,o.height=n},pin:function(t,e,i,n,o){o.x=t+i/2,o.y=e+n/2,o.width=i,o.height=n},arrow:function(t,e,i,n,o){o.x=t+i/2,o.y=e+n/2,o.width=i,o.height=n},triangle:function(t,e,i,n,o){o.cx=t+i/2,o.cy=e+n/2,o.width=i,o.height=n}},Cb={},Mb=(f({line:u_,rect:qm,roundRect:qm,square:qm,circle:Ev,diamond:wb,pin:bb,arrow:Sb,triangle:xb},function(t,e){Cb[e]=new t}),Bm.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,i){var t=hi(t,e,i),n=this.shape;return n&&"pin"===n.symbolType&&"inside"===e.position&&(t.y=i.y+.4*i.height),t},buildPath:function(t,e,i){var n,o=e.symbolType;"none"!==o&&(n=(n=Cb[o])||Cb[o="rect"],Tb[o](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,i))}})),Ib=new Mm(!0),kb=["shadowBlur","shadowOffsetX","shadowOffsetY"],Ab=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],Db=1,Pb=2,Ob=3,Lb=4,Eb=new _b,Rb=new _g(100),Nb=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"],Bb=new Bf,zb={},Fb="undefined"!=typeof window,wb={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},Vb="__flagInMainProcess",Yb="__pendingUpdate",Hb="__needsUpdateStatus",Wb=/^[a-zA-Z0-9_]+$/,Xb="__connectUpdateStatus";i(eh,Ub=Bf);var Ub,Gb,jb,qb,Zb,Kb,Qb,$b,Jb,tS,eS,iS,nS,oS,rS,aS,sS,lS,hS,uS,cS=eh,bb=cS.prototype,pS=(bb.on=Jl("on"),bb.off=Jl("off"),i(ih,uS=Bf),ih.prototype._onframe=function(){if(!this._disposed){hS(this);var t=this._scheduler;if(this[Yb]){var e=this[Yb].silent;this[Vb]=!0;try{Gb(this),Zb.update.call(this,null,this[Yb].updateParams)}catch(t){throw this[Vb]=!1,this[Yb]=null,t}this._zr.flush(),this[Vb]=!1,this[Yb]=null,Jb.call(this,e),tS.call(this,e)}else if(t.unfinished){var i=1,n=this._model,o=this._api;t.unfinished=!1;do{var r=+new Date}while(t.performSeriesTasks(n),t.performDataProcessorTasks(n),Qb(this,n),t.performVisualTasks(n),rS(this,this._model,o,"remain",{}),0<(i-=+new Date-r)&&t.unfinished);t.unfinished||this._zr.flush()}}},ih.prototype.getDom=function(){return this._dom},ih.prototype.getId=function(){return this.id},ih.prototype.getZr=function(){return this._zr},ih.prototype.isSSR=function(){return this._ssr},ih.prototype.setOption=function(t,e,i){if(!this[Vb])if(this._disposed)this.id;else{C(e)&&(i=e.lazyUpdate,n=e.silent,o=e.replaceMerge,r=e.transition,e=e.notMerge),this[Vb]=!0,this._model&&!e||(e=new ow(this._api),a=this._theme,(s=this._model=new Qx).scheduler=this._scheduler,s.ssr=this._ssr,s.init(null,null,null,a,this._locale,e)),this._model.setOption(t,{replaceMerge:o},mS);var n,o,r,a,s={seriesTransition:r,optionChanged:!0};if(i)this[Yb]={silent:n,updateParams:s},this[Vb]=!1,this.getZr().wakeUp();else{try{Gb(this),Zb.update.call(this,null,s)}catch(t){throw this[Yb]=null,this[Vb]=!1,t}this._ssr||this._zr.flush(),this[Yb]=null,this[Vb]=!1,Jb.call(this,n),tS.call(this,n)}}},ih.prototype.setTheme=function(){},ih.prototype.getModel=function(){return this._model},ih.prototype.getOption=function(){return this._model&&this._model.getOption()},ih.prototype.getWidth=function(){return this._zr.getWidth()},ih.prototype.getHeight=function(){return this._zr.getHeight()},ih.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Fb&&window.devicePixelRatio||1},ih.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},ih.prototype.renderToCanvas=function(t){return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},ih.prototype.renderToSVGString=function(t){return this._zr.painter.renderToString({useViewBox:(t=t||{}).useViewBox})},ih.prototype.getSvgDataURL=function(){var t;if(af.svgSupported)return f((t=this._zr).storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},ih.prototype.getDataURL=function(t){var e,i,n,o;if(!this._disposed)return o=(t=t||{}).excludeComponents,e=this._model,i=[],n=this,f(o,function(t){e.eachComponent({mainType:t},function(t){t=n._componentsMap[t.__viewId],t.group.ignore||(i.push(t),t.group.ignore=!0)})}),o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png")),f(i,function(t){t.group.ignore=!1}),o;this.id},ih.prototype.getConnectedDataURL=function(t){var e,i,n,o,r,s,l,h,u,c,p,d,g,y,m;if(!this._disposed)return e="svg"===t.type,i=this.group,n=Math.min,o=Math.max,bS[i]?(s=r=1/0,h=l=-1/0,u=[],c=t&&t.pixelRatio||this.getDevicePixelRatio(),f(wS,function(c,p){var d;c.group===i&&(d=e?c.getZr().painter.getSvgDom().innerHTML:c.renderToCanvas(a(t)),c=c.getDom().getBoundingClientRect(),r=n(c.left,r),s=n(c.top,s),l=o(c.right,l),h=o(c.bottom,h),u.push({dom:d,left:c.left,top:c.top}))}),p=(l*=c)-(r*=c),d=(h*=c)-(s*=c),g=df.createCanvas(),(y=vi(g,{renderer:e?"svg":"canvas"})).resize({width:p,height:d}),e?(m="",f(u,function(t){var e=t.left-r,i=t.top-s;m+='<g transform="translate('+e+","+i+')">'+t.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()):(t.connectedBackgroundColor&&y.add(new qm({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),f(u,function(t){t=new Wm({style:{x:t.left*c-r,y:t.top*c-s,image:t.dom}}),y.add(t)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png")))):this.getDataURL(t);this.id},ih.prototype.convertToPixel=function(t,e){return Kb(this,"convertToPixel",t,e)},ih.prototype.convertFromPixel=function(t,e){return Kb(this,"convertFromPixel",t,e)},ih.prototype.containPixel=function(t,e){var i;if(!this._disposed)return f(Ki(this._model,t),function(t,n){0<=n.indexOf("Models")&&f(t,function(t){var o=t.coordinateSystem;o&&o.containPoint?i=i||!!o.containPoint(e):"seriesModels"===n&&(o=this._chartsMap[t.__viewId])&&o.containPoint&&(i=i||o.containPoint(e,t))},this)},this),!!i;this.id},ih.prototype.getVisual=function(t,e){var t=Ki(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){var n=i,o=t,r=e;switch(r){case"color":return n.getItemVisual(o,"style")[n.getVisual("drawType")];case"opacity":return n.getItemVisual(o,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getItemVisual(o,r)}}else{var a=i,s=e;switch(s){case"color":return a.getVisual("style")[a.getVisual("drawType")];case"opacity":return a.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return a.getVisual(s)}}},ih.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},ih.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},ih.prototype._initEvents=function(){var t,e,i,n=this;f(dS,function(t){function e(e){var i,o,r,a=n.getModel(),s=e.target;"globalout"===t?i={}:s&&kl(s,function(t){var e,t=iv(t);return t&&null!=t.dataIndex?(e=t.dataModel||a.getSeriesByIndex(t.seriesIndex),i=e&&e.getDataParams(t.dataIndex,t.dataType)||{},1):t.eventData&&(i=l({},t.eventData),1)},!0),i&&(o=i.componentType,r=i.componentIndex,"markLine"!==o&&"markPoint"!==o&&"markArea"!==o||(o="series",r=i.seriesIndex),r=(o=o&&null!=r&&a.getComponent(o,r))&&n["series"===o.mainType?"_chartsMap":"_componentsMap"][o.__viewId],i.event=e,i.type=t,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:i,model:o,view:r},n.trigger(t,i))}e.zrEventfulCallAtLast=!0,n._zr.on(t,e,n)}),f(gS,function(t,e){n._messageCenter.on(e,function(t){this.trigger(e,t)},n)}),f(["selectchanged"],function(t){n._messageCenter.on(t,function(e){this.trigger(t,e)},n)}),t=this._messageCenter,i=(e=this)._api,t.on("selectchanged",function(t){var n=i.getModel();t.isFromClick?(Il("map","selectchanged",e,n,t),Il("pie","selectchanged",e,n,t)):"select"===t.fromAction?(Il("map","selected",e,n,t),Il("pie","selected",e,n,t)):"unselect"===t.fromAction&&(Il("map","unselected",e,n,t),Il("pie","unselected",e,n,t))})},ih.prototype.isDisposed=function(){return this._disposed},ih.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},ih.prototype.dispose=function(){var t,e,i;this._disposed?this.id:(this._disposed=!0,this.getDom()&&Ji(this.getDom(),CS,""),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 wS[t.id])},ih.prototype.resize=function(t){if(!this[Vb])if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var e=e.resetOption("media"),i=t&&t.silent;this[Yb]&&(null==i&&(i=this[Yb].silent),e=!0,this[Yb]=null),this[Vb]=!0;try{e&&Gb(this),Zb.update.call(this,{type:"resize",animation:l({duration:0},t&&t.animation)})}catch(t){throw this[Vb]=!1,t}this[Vb]=!1,Jb.call(this,i),tS.call(this,i)}}},ih.prototype.showLoading=function(t,e){this._disposed?this.id:(C(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),xS[t]&&(t=xS[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},ih.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},ih.prototype.makeActionFromEvent=function(t){var e=l({},t);return e.type=gS[t.type],e},ih.prototype.dispatchAction=function(t,e){var i;this._disposed?this.id:(C(e)||(e={silent:!!e}),fS[t.type]&&this._model&&(this[Vb]?this._pendingActions.push(t):(i=e.silent,$b.call(this,t,i),(t=e.flush)?this._zr.flush():!1!==t&&af.browser.weChat&&this._throttledZrFlush(),Jb.call(this,i),tS.call(this,i))))},ih.prototype.updateLabelLayout=function(){Bb.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},ih.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())},ih.internalField=(Gb=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),jb(t,!0),jb(t,!1),e.plan()},jb=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=en(t.type),(h=new(e?Zw.getClass(i.main,i.sub):$w.getClass(i.sub))).init(n,l),a[u]=h,r.push(h),s.add(h.group)),t.__viewId=h.__id=u,h.__alive=!0,h.__model=t,h.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},e||o.prepareView(h,t,n,l)}for(var n=t._model,o=t._scheduler,r=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,h=0;h<r.length;h++)r[h].__alive=!1;for(e?n.eachComponent(function(t,e){"series"!==t&&i(e)}):n.eachSeries(i),h=0;h<r.length;){var u=r[h];u.__alive?h++:(e||u.renderTask.dispose(),s.remove(u.group),u.dispose(n,l),r.splice(h,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},qb=function(t,e,i,n,o){function r(n){n&&n.__alive&&n[e]&&n[e](n.__model,l,t._api,i)}var a,s,l=t._model;l.setUpdatePayload(i),n?((a={})[n+"Id"]=i[n+"Id"],a[n+"Index"]=i[n+"Index"],a[n+"Name"]=i[n+"Name"],a={mainType:n,query:a},o&&(a.subType=o),null!=(o=i.excludeSeriesId)&&(s=W(),f(zi(o),function(t){null!=(t=Xi(t,null))&&s.set(t,!0)})),l&&l.eachComponent(a,function(e){var n,o,r=s&&null!==s.get(e.id);if(!r)if(Io(i))if(e instanceof qw){if(i.type===pv&&!i.notBlur&&!e.get(["emphasis","disabled"])){var r=e,a=i,l=t._api,h=r.seriesIndex,u=r.getData(a.dataType);if(u){var a=(x(a=qi(u,a))?a[0]:a)||0,c=u.getItemGraphicEl(a);if(!c)for(var p=u.count(),d=0;!c&&d<p;)c=u.getItemGraphicEl(d++);c?mo(h,(a=iv(c)).focus,a.blurScope,l):(a=r.get(["emphasis","focus"]),r=r.get(["emphasis","blurScope"]),null!=a&&mo(h,a,r,l))}}}else h=_o(e.mainType,e.componentIndex,i.name,t._api),a=h.focusSelf,r=h.dispatchers,i.type===pv&&a&&!i.notBlur&&vo(e.mainType,e.componentIndex,t._api),r&&f(r,function(t){(i.type===pv?ho:uo)(t)});else Mo(i)&&e instanceof qw&&(l=e,r=i,t._api,Mo(r)&&(n=r.dataType,x(o=qi(l.getData(n),r))||(o=[o]),l[r.type===yv?"toggleSelect":r.type===fv?"select":"unselect"](o,n)),xo(e),lS(t))},t),l&&l.eachComponent(a,function(e){s&&null!==s.get(e.id)||r(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])},t)):f([].concat(t._componentsViews).concat(t._chartsViews),r)},Zb={prepareAndUpdate:function(t){Gb(this),Zb.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(t,e){var i=this._model,n=this._api,o=this._zr,r=this._coordSysMgr,a=this._scheduler;i&&(i.setUpdatePayload(t),a.restoreData(i,t),a.performSeriesTasks(i),r.create(i,n),a.performDataProcessorTasks(i,t),Qb(this,i),r.update(i,n),nh(i),a.performVisualTasks(i,t),nS(this,i,n,t,e),r=i.get("backgroundColor")||"transparent",a=i.get("darkMode"),o.setBackgroundColor(r),null!=a&&"auto"!==a&&o.setDarkMode(a),Bb.trigger("afterupdate",i,n))},updateTransform:function(t){var e,i,n=this,o=this._model,r=this._api;o&&(o.setUpdatePayload(t),e=[],o.eachComponent(function(i,a){"series"!==i&&(i=n.getViewOfComponentModel(a))&&i.__alive&&(!i.updateTransform||(a=i.updateTransform(a,o,r,t))&&a.update)&&e.push(i)}),i=W(),o.eachSeries(function(e){var a=n._chartsMap[e.__viewId];(!a.updateTransform||(a=a.updateTransform(e,o,r,t))&&a.update)&&i.set(e.uid,1)}),nh(o),this._scheduler.performVisualTasks(o,t,{setDirty:!0,dirtyMap:i}),rS(this,o,r,t,{},i),Bb.trigger("afterupdate",o,r))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),$w.markUpdateMethod(t,"updateView"),nh(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),nS(this,e,this._api,t,{}),Bb.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()}),$w.markUpdateMethod(t,"updateVisual"),nh(i),this._scheduler.performVisualTasks(i,t,{visualType:"visual",setDirty:!0}),i.eachComponent(function(n,o){"series"!==n&&(n=e.getViewOfComponentModel(o))&&n.__alive&&n.updateVisual(o,i,e._api,t)}),i.eachSeries(function(n){e._chartsMap[n.__viewId].updateVisual(n,i,e._api,t)}),Bb.trigger("afterupdate",i,this._api))},updateLayout:function(t){Zb.update.call(this,t)}},Kb=function(t,e,i,n){if(t._disposed)t.id;else for(var o=t._model,r=t._coordSysMgr.getCoordinateSystems(),a=Ki(o,i),s=0;s<r.length;s++){var l=r[s];if(l[e]&&null!=(l=l[e](o,a,n)))return l}},Qb=function(t,e){var i=t._chartsMap,n=t._scheduler;e.eachSeries(function(t){n.updateStreamModes(t,i[t.__viewId])})},$b=function(t,e){var i,n,o=this,r=this.getModel(),a=t.type,s=t.escapeConnect,u=fS[a],c=u.actionInfo,p=(c.update||"update").split(":"),d=p.pop(),y=null!=p[0]&&en(p[0]),p=(this[Vb]=!0,[t]),m=!1,v=(t.batch&&(m=!0,p=g(t.batch,function(e){return(e=h(l({},e),t)).batch=null,e})),[]),_=Mo(t),x=Io(t);if(x&&yo(this._api),f(p,function(e){var n,r;(i=(i=u.action(e,o._model,o._api))||l({},e)).type=c.event||i.type,v.push(i),x?(n=(r=Qi(t)).queryOptionMap,r=r.mainTypeSpecified?n.keys()[0]:"series",qb(o,d,e,r),lS(o)):_?(qb(o,d,e,"series"),lS(o)):y&&qb(o,d,e,y.main,y.sub)}),"none"!==d&&!x&&!_&&!y)try{this[Yb]?(Gb(this),Zb.update.call(this,t),this[Yb]=null):Zb[d].call(this,t)}catch(e){throw this[Vb]=!1,e}i=m?{type:c.event||a,escapeConnect:s,batch:v}:v[0],this[Vb]=!1,e||((p=this._messageCenter).trigger(i.type,i),_&&(m={type:"selectchanged",escapeConnect:s,selected:(n=[],r.eachSeries(function(t){f(t.getAllData(),function(e){e.data;var e=e.type,i=t.getSelectedDataIndices();0<i.length&&(i={dataIndex:i,seriesIndex:t.seriesIndex},null!=e&&(i.dataType=e),n.push(i))})}),n),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t},p.trigger(m.type,m)))},Jb=function(t){for(var e=this._pendingActions;e.length;){var i=e.shift();$b.call(this,i,t)}},tS=function(t){t||this.trigger("updated")},eS=function(t,e){t.on("rendered",function(i){e.trigger("rendered",i),!t.animation.isFinished()||e[Yb]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},iS=function(t,e){t.on("mouseover",function(t){var i,n,o,r,a=kl(t.target,Co);a&&(a=a,i=t,t=e._api,n=iv(a),o=(r=_o(n.componentMainType,n.componentIndex,n.componentHighDownName,t)).dispatchers,r=r.focusSelf,o?(r&&vo(n.componentMainType,n.componentIndex,t),f(o,function(t){return so(t,i)})):(mo(n.seriesIndex,n.focus,n.blurScope,t),"self"===n.focus&&vo(n.componentMainType,n.componentIndex,t),so(a,i)),lS(e))}).on("mouseout",function(t){var i,n,o=kl(t.target,Co);o&&(o=o,i=t,yo(t=e._api),(n=_o((n=iv(o)).componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers)?f(n,function(t){return lo(t,i)}):lo(o,i),lS(e))}).on("click",function(t){var i,t=kl(t.target,function(t){return null!=iv(t).dataIndex},!0);t&&(i=t.selected?"unselect":"select",t=iv(t),e._api.dispatchAction({type:i,dataType:t.dataType,dataIndexInside:t.dataIndex,seriesIndex:t.seriesIndex,isFromClick:!0}))})},nS=function(t,e,i,n,o){var r,a,s,l,h,u,c;h=[],c=!(u=[]),(r=e).eachComponent(function(t,e){var i=e.get("zlevel")||0,n=e.get("z")||0,o=e.getZLevelKey();c=c||!!o,("series"===t?u:h).push({zlevel:i,z:n,idx:e.componentIndex,type:t,key:o})}),c&&(Dt(a=h.concat(u),function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),f(a,function(t){var e=r.getComponent(t.type,t.idx),i=t.zlevel,t=t.key;null!=s&&(i=Math.max(s,i)),t?(i===s&&t!==l&&i++,l=t):l&&(i===s&&i++,l=""),s=i,e.setZLevel(i)})),oS(t,e,i,n,o),f(t._chartsViews,function(t){t.__alive=!1}),rS(t,e,i,n,o),f(t._chartsViews,function(t){t.__alive||t.remove(e,i)})},oS=function(t,e,i,n,o,r){f(r||t._componentsViews,function(t){var o=t.__model;ah(0,t),t.render(o,e,i,n),rh(o,t),sh(o,t)})},rS=function(t,e,i,n,o,r){var a,s,h,u,c=t._scheduler,p=(o=l(o||{},{updatedSeries:e.getSeries()}),Bb.trigger("series:beforeupdate",e,i,o),!1);e.eachSeries(function(e){var i,o=t._chartsMap[e.__viewId],a=(o.__alive=!0,o.renderTask);c.updatePayload(a,n),ah(0,o),r&&r.get(e.uid)&&a.dirty(),a.perform(c.getPerformArgs(a))&&(p=!0),o.group.silent=!!e.get("silent"),a=o,i=e.get("blendMode")||null,a.eachRendered(function(t){t.isGroup||(t.style.blend=i)}),xo(e)}),c.unfinished=p||c.unfinished,Bb.trigger("series:layoutlabels",e,i,o),Bb.trigger("series:transition",e,i,o),e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];rh(e,i),sh(e,i)}),s=e,h=(a=t)._zr.storage,u=0,h.traverse(function(t){t.isGroup||u++}),u>s.get("hoverLayerThreshold")&&!af.node&&!af.worker&&s.eachSeries(function(t){t.preventUsingHoverLayer||(t=a._chartsMap[t.__viewId]).__alive&&t.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}),Bb.trigger("series:afterupdate",e,i,o)},lS=function(t){t[Hb]=!0,t.getZr().wakeUp()},hS=function(t){t[Hb]&&(t.getZr().storage.traverse(function(t){nr(t)||oh(t)}),t[Hb]=!1)},aS=function(t){function e(){return null!==n&&n.apply(this,arguments)||this}return i(e,n=Aa),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){ho(e,i),lS(t)},e.prototype.leaveEmphasis=function(e,i){uo(e,i),lS(t)},e.prototype.enterBlur=function(e){io(e,Qn),lS(t)},e.prototype.leaveBlur=function(e){co(e),lS(t)},e.prototype.enterSelect=function(e){po(e),lS(t)},e.prototype.leaveSelect=function(e){fo(e),lS(t)},e.prototype.getModel=function(){return t.getModel()},e.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},e.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},new e(t);var n},void(sS=function(t){function e(t,e){for(var i=0;i<t.length;i++)t[i][Xb]=e}f(gS,function(i,n){t._messageCenter.on(n,function(i){var n,o;!bS[t.group]||0===t[Xb]||i&&i.escapeConnect||(n=t.makeActionFromEvent(i),o=[],f(wS,function(e){e!==t&&e.group===t.group&&o.push(e)}),e(o,0),f(o,function(t){1!==t[Xb]&&t.dispatchAction(n)}),e(o,2))})})})),ih),Sb=pS.prototype,dS=(Sb.on=$l("on"),Sb.off=$l("off"),Sb.one=function(t,e,i){var n=this;this.on.call(this,t,function i(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];e&&e.apply&&e.apply(this,o),n.off(t,i)},i)},["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"]),fS={},gS={},yS=[],mS=[],vS=[],_S={},xS={},wS={},bS={},SS=+new Date,TS=+new Date,CS="_echarts_instance_";xb=lh;var MS=[];_h(2e3,zy),_h(4500,N_),_h(4500,px),_h(2e3,Z_),_h(4500,G_),_h(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=Kl(i,e))}),i=n.getVisual("decal"))&&(n.getVisual("style").decal=Kl(i,e))})}),ch(Xa),ph(900,function(t){var e=W();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(Ua)}),wh("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 wy,o=new qm({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),r=(n.add(o),new $m({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001})),a=new qm({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((i=new m_({shape:{startAngle:-sb/2,endAngle:-sb/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*sb/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*sb/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=r.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,n=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),l=t.getHeight()/2;e.showSpinner&&i.setShape({cx:n,cy:l}),a.setShape({x:n-s,y:l-s,width:2*s,height:2*s}),o.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}),yh({type:pv,event:pv,update:pv},q),yh({type:dv,event:dv,update:dv},q),yh({type:fv,event:fv,update:fv},q),yh({type:gv,event:gv,update:gv},q),yh({type:yv,event:yv,update:yv},q),uh("light",Q_),uh("dark",q_),Mh.prototype.add=function(t){return this._add=t,this},Mh.prototype.update=function(t){return this._update=t,this},Mh.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},Mh.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},Mh.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},Mh.prototype.remove=function(t){return this._remove=t,this},Mh.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},Mh.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},n=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var r=0;r<t.length;r++){var a,s=n[r],l=i[s],h=Th(l);1<h?(a=l.shift(),1===l.length&&(i[s]=l[0]),this._update&&this._update(a,r)):1===h?(i[s]=null,this._update&&this._update(l,r)):this._remove&&this._remove(r)}this._performRestAdd(o,i)},Mh.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},o=[],r=[];this._initIndexMap(t,i,o,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var a=0;a<o.length;a++){var s=o[a],l=i[s],h=n[s],u=Th(l),c=Th(h);if(1<u&&1===c)this._updateManyToOne&&this._updateManyToOne(h,l),n[s]=null;else if(1===u&&1<c)this._updateOneToMany&&this._updateOneToMany(h,l),n[s]=null;else if(1===u&&1===c)this._update&&this._update(h,l),n[s]=null;else if(1<u&&1<c)this._updateManyToMany&&this._updateManyToMany(h,l),n[s]=null;else if(1<u)for(var p=0;p<u;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(r,n)},Mh.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],o=e[n],r=Th(o);if(1<r)for(var a=0;a<r;a++)this._add&&this._add(o[a]);else 1===r&&this._add&&this._add(o);e[n]=null}},Mh.prototype._initIndexMap=function(t,e,i,n){for(var o=this._diffModeMultiple,r=0;r<t.length;r++){var a,s,l="_ec_"+this[n](t[r],r);o||(i[r]=l),e&&(0===(s=Th(a=e[l]))?(e[l]=r,o&&i.push(l)):1===s?e[l]=[a,r]:a.push(r))}};var IS=Mh;Ih.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},Ih.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames};var kS,AS,DS,PS,OS,LS,ES,RS=Ih,NS=function(t){this.otherDims={},null!=t&&l(this,t)},BS=Zi(),zS={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},FS=(Dh.prototype.isDimensionOmitted=function(){return this._dimOmitted},Dh.prototype._updateDimOmitted=function(t){(this._dimOmitted=t)&&!this._dimNameMap&&(this._dimNameMap=Lh(this.source))},Dh.prototype.getSourceDimensionIndex=function(t){return E(this._dimNameMap.get(t),-1)},Dh.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},Dh.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=$a(this.source),i=!(30<t),n="",o=[],r=0,a=0;r<t;r++){var s,l=void 0,h=void 0,u=void 0,c=this.dimensions[a];c&&c.storeDimIndex===r?(l=e?c.name:null,h=c.type,u=c.ordinalMeta,a++):(s=this.getSourceDimension(r))&&(l=e?s.name:null,h=s.type),o.push({property:l,type:h,ordinalMeta:u}),!e||null==l||c&&c.isCalculationCoord||(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n=n+"$"+(zS[h]||"f"),u&&(n+=u.uid),n+="$"}var p=this.source;return{dimensions:o,hash:[p.seriesLayoutBy,p.startIndex,n].join("$$")}},Dh.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var n=void 0,o=this.dimensions[i];o&&o.storeDimIndex===e?(o.isCalculationCoord||(n=o.name),i++):(o=this.getSourceDimension(e))&&(n=o.name),t.push(n)}return t},Dh.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},Dh),VS=C,YS=g,HS="undefined"==typeof Int32Array?Array:Int32Array,WS=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],XS=["_approximateExtent"],US=(Eh.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])},Eh.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},Eh.prototype._recognizeDimIndex=function(t){if(T(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},Eh.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},Eh.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},Eh.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]}},Eh.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},Eh.prototype.mapDimension=function(t,e){var i=this._dimSummary;return null==e?i.encodeFirstDimNotExtra[t]:(i=i.encode[t])?i[e]:null},Eh.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},Eh.prototype.getStore=function(){return this._store},Eh.prototype.initData=function(t,e,i){var n,o,r=this;(n=t instanceof Vw?t:n)||(o=this.dimensions,t=Ga(t)||d(t)?new gw(t,o.length):t,n=new Vw,o=YS(o,function(t){return{type:r._dimInfos[t].type,property:t}}),n.initData(t,o,i)),this._store=n,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,n.count()),this._dimSummary=kh(this,this._schema),this.userOutput=this._dimSummary.userOutput},Eh.prototype.appendData=function(t){t=this._store.appendData(t),this._doInit(t[0],t[1])},Eh.prototype.appendValues=function(t,e){var t=this._store.appendValues(t,e.length),i=t.start,n=t.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var r=i;r<n;r++)this._nameList[r]=e[r-i],o&&ES(this,r)},Eh.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)}},Eh.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Yx&&!t.fillStorage},Eh.prototype._doInit=function(t,e){if(!(e<=t)){var i=this._store.getProvider(),n=(this._updateOrdinalMeta(),this._nameList),o=this._idList;if(i.getSource().sourceFormat===Bx&&!i.pure)for(var r=[],a=t;a<e;a++){var s,l=i.getItem(a,r);this.hasItemOption||!C(s=l)||s instanceof Array||(this.hasItemOption=!0),l&&(s=l.name,null==n[a]&&null!=s&&(n[a]=Xi(s,null)),l=l.id,null==o[a])&&null!=l&&(o[a]=Xi(l,null))}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)ES(this,a);kS(this)}},Eh.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},Eh.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},Eh.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},Eh.prototype.setCalculationInfo=function(t,e){VS(t)?l(this._calculationInfo,t):this._calculationInfo[t]=e},Eh.prototype.getName=function(t){var t=this.getRawIndex(t),e=this._nameList[t];return e=null==(e=null==e&&null!=this._nameDimIdx?DS(this,this._nameDimIdx,t):e)?"":e},Eh.prototype._getCategory=function(t,e){return e=this._store.get(t,e),t=this._store.getOrdinalMeta(t),t?t.categories[e]:e},Eh.prototype.getId=function(t){return AS(this,this.getRawIndex(t))},Eh.prototype.count=function(){return this._store.count()},Eh.prototype.get=function(t,e){var i=this._store,t=this._dimInfos[t];if(t)return i.get(t.storeDimIndex,e)},Eh.prototype.getByRawIndex=function(t,e){var i=this._store,t=this._dimInfos[t];if(t)return i.getByRawIndex(t.storeDimIndex,e)},Eh.prototype.getIndices=function(){return this._store.getIndices()},Eh.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},Eh.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},Eh.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},Eh.prototype.getValues=function(t,e){var i=this,n=this._store;return x(t)?n.getValues(YS(t,function(t){return i._getStoreDimIndex(t)}),e):n.getValues(t)},Eh.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},Eh.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();e<i;e++)if(this.getName(e)===t)return e;return-1},Eh.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},Eh.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},Eh.prototype.rawIndexOf=function(t,e){return t=(t&&this._invertedIndicesMap[t])[e],null==t||isNaN(t)?-1:t},Eh.prototype.indicesOfNearest=function(t,e,i){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,i)},Eh.prototype.each=function(t,e,i){w(t)&&(i=e,e=t,t=[]),i=i||this,t=YS(PS(t),this._getStoreDimIndex,this),this._store.each(t,i?If(e,i):e)},Eh.prototype.filterSelf=function(t,e,i){return w(t)&&(i=e,e=t,t=[]),i=i||this,t=YS(PS(t),this._getStoreDimIndex,this),this._store=this._store.filter(t,i?If(e,i):e),this},Eh.prototype.selectRange=function(t){var e=this,i={};return f(v(t),function(n){var o=e._getStoreDimIndex(n);i[o]=t[n]}),this._store=this._store.selectRange(i),this},Eh.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},Eh.prototype.map=function(t,e,i,n){return i=i||n||this,n=YS(PS(t),this._getStoreDimIndex,this),t=LS(this),t._store=this._store.map(n,i?If(e,i):e),t},Eh.prototype.modify=function(t,e,i,n){i=i||n||this,n=YS(PS(t),this._getStoreDimIndex,this),this._store.modify(n,i?If(e,i):e)},Eh.prototype.downSample=function(t,e,i,n){var o=LS(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),o},Eh.prototype.lttbDownSample=function(t,e){var i=LS(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},Eh.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},Eh.prototype.getItemModel=function(t){var e=this.hostModel,t=this.getRawDataItem(t);return new J_(t,e,e&&e.ecModel)},Eh.prototype.diff=function(t){var e=this;return new IS(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return AS(t,e)},function(t){return AS(e,t)})},Eh.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},Eh.prototype.setVisual=function(t,e){this._visual=this._visual||{},VS(t)?l(this._visual,t):this._visual[t]=e},Eh.prototype.getItemVisual=function(t,e){return t=this._itemVisuals[t],t=t&&t[e],null==t?this.getVisual(e):t},Eh.prototype.hasItemVisual=function(){return 0<this._itemVisuals.length},Eh.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():VS(i)&&(i=l({},i)),n[e]=i),i},Eh.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,VS(e)?l(n,e):n[e]=i},Eh.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},Eh.prototype.setLayout=function(t,e){VS(t)?l(this._layout,t):this._layout[t]=e},Eh.prototype.getLayout=function(t){return this._layout[t]},Eh.prototype.getItemLayout=function(t){return this._itemLayouts[t]},Eh.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?l(this._itemLayouts[t]||{},e):e},Eh.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},Eh.prototype.setItemGraphicEl=function(t,e){var i,n,o,r,a=this.hostModel&&this.hostModel.seriesIndex;i=a,n=this.dataType,o=t,(a=e)&&((r=iv(a)).dataIndex=o,r.dataType=n,r.seriesIndex=i,"group"===a.type)&&a.traverse(function(t){t=iv(t),t.seriesIndex=i,t.dataIndex=o,t.dataType=n}),this._graphicEls[t]=e},Eh.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},Eh.prototype.eachItemGraphicEl=function(t,e){f(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},Eh.prototype.cloneShallow=function(t){return t=t||new Eh(this._schema||YS(this.dimensions,this._getDimInfo,this),this.hostModel),OS(t,this),t._store=this._store,t},Eh.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)))})},Eh.internalField=(kS=function(t){var e=t._invertedIndicesMap;f(e,function(i,n){var o=t._dimInfos[n],r=o.ordinalMeta,a=t._store;if(r){i=e[n]=new HS(r.categories.length);for(var s=0;s<i.length;s++)i[s]=-1;for(s=0;s<a.count();s++)i[a.get(o.storeDimIndex,s)]=s}})},DS=function(t,e,i){return Xi(t._getCategory(e,i),null)},AS=function(t,e){var i=t._idList[e];return i=null==(i=null==i&&null!=t._idDimIdx?DS(t,t._idDimIdx,e):i)?"e\0\0"+e:i},PS=function(t){return t=x(t)?t:null!=t?[t]:[]},LS=function(t){var e=new Eh(t._schema||YS(t.dimensions,t._getDimInfo,t),t.hostModel);return OS(e,t),e},OS=function(t,e){f(WS.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,f(XS,function(i){t[i]=a(e[i])}),t._calculationInfo=l({},e._calculationInfo)},void(ES=function(t,e){var i=t._nameList,n=t._idList,o=t._nameDimIdx,r=t._idDimIdx,a=i[e],s=n[e];null==a&&null!=o&&(i[e]=a=DS(t,o,e)),null==s&&null!=r&&(n[e]=s=DS(t,r,e)),null==s&&null!=a&&(s=a,1<(o=(i=t._nameRepeatCount)[a]=(i[a]||0)+1)&&(s+="__ec__"+o),n[e]=s)})),Eh),GS=function(t){this.coordSysDims=[],this.axisMap=W(),this.categoryAxisMap=W(),this.coordSysName=t},jS={cartesian2d:function(t,e,i,n){var o=t.getReferringComponents("xAxis",Oy).models[0],t=t.getReferringComponents("yAxis",Oy).models[0];e.coordSysDims=["x","y"],i.set("x",o),i.set("y",t),Nh(o)&&(n.set("x",o),e.firstCategoryDimIndex=0),Nh(t)&&(n.set("y",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},singleAxis:function(t,e,i,n){t=t.getReferringComponents("singleAxis",Oy).models[0],e.coordSysDims=["single"],i.set("single",t),Nh(t)&&(n.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var t=t.getReferringComponents("polar",Oy).models[0],o=t.findAxisModel("radiusAxis"),t=t.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",o),i.set("angle",t),Nh(o)&&(n.set("radius",o),e.firstCategoryDimIndex=0),Nh(t)&&(n.set("angle",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},geo:function(t,e,i,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){var o=t.ecModel,t=o.getComponent("parallel",t.get("parallelIndex")),r=e.coordSysDims=t.dimensions.slice();f(t.parallelAxisIndex,function(t,a){var t=o.getComponent("parallelAxis",t),s=r[a];i.set(s,t),Nh(t)&&(n.set(s,t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=a)})}};Yh.prototype.getSetting=function(t){return this._setting[t]},Yh.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},Yh.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Yh.prototype.getExtent=function(){return this._extent.slice()},Yh.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},Yh.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},Yh.prototype.isBlank=function(){return this._isBlank},Yh.prototype.setBlank=function(t){this._isBlank=t};var qS=Yh;sn(qS);var ZS=0,KS=(Hh.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&g(e,Wh);return new Hh({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},Hh.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},Hh.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},Hh.prototype._getOrCreateMap=function(){return this._map||(this._map=W(this.categories))},Hh);i($h,QS=qS),$h.prototype.parse=function(t){return b(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},$h.prototype.contain=function(t){return Zh(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},$h.prototype.normalize=function(t){return Kh(t=this._getTickNumber(this.parse(t)),this._extent)},$h.prototype.scale=function(t){return t=Math.round(Qh(t,this._extent)),this.getRawOrdinalNumber(t)},$h.prototype.getTicks=function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push({value:i}),i++;return t},$h.prototype.getMinorTicks=function(t){},$h.prototype.setSortInfo=function(t){if(null==t)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var e=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],o=0,r=this._ordinalMeta.categories.length,a=Math.min(r,e.length);o<a;++o){var s=e[o];n[i[o]=s]=o}for(var l=0;o<r;++o){for(;null!=n[l];)l++;i.push(l),n[l]=o}}},$h.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&0<=t&&t<e.length?e[t]:t},$h.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&0<=t&&t<e.length?e[t]:t},$h.prototype.getLabel=function(t){if(!this.isBlank())return t=this.getRawOrdinalNumber(t.value),null==(t=this._ordinalMeta.categories[t])?"":t+""},$h.prototype.count=function(){return this._extent[1]-this._extent[0]+1},$h.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},$h.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},$h.prototype.getOrdinalMeta=function(){return this._ordinalMeta},$h.prototype.calcNiceTicks=function(){},$h.prototype.calcNiceExtent=function(){},$h.type="ordinal";var QS,$S=$h;qS.registerClass($S);var JS,tT=bi,eT=(i(Jh,JS=qS),Jh.prototype.parse=function(t){return t},Jh.prototype.contain=function(t){return Zh(t,this._extent)},Jh.prototype.normalize=function(t){return Kh(t,this._extent)},Jh.prototype.scale=function(t){return Qh(t,this._extent)},Jh.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},Jh.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])},Jh.prototype.getInterval=function(){return this._interval},Jh.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=jh(t)},Jh.prototype.getTicks=function(t){var e=this._interval,i=this._extent,n=this._niceExtent,o=this._intervalPrecision,r=[];if(e){i[0]<n[0]&&r.push(t?{value:tT(n[0]-e,o)}:{value:i[0]});for(var a=n[0];a<=n[1]&&(r.push({value:a}),(a=tT(a+e,o))!==r[r.length-1].value);)if(1e4<r.length)return[];var s=r.length?r[r.length-1].value:n[1];i[1]>s&&r.push(t?{value:tT(s+e,o)}:{value:i[1]})}return r},Jh.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),i=[],n=this.getExtent(),o=1;o<e.length;o++){for(var r=e[o],a=e[o-1],s=0,l=[],h=(r.value-a.value)/t;s<t-1;){var u=tT(a.value+(s+1)*h);u>n[0]&&u<n[1]&&l.push(u),s++}i.push(l)}return i},Jh.prototype.getLabel=function(t,e){return null==t?"":(null==(e=e&&e.precision)?e=Si(t.value)||0:"auto"===e&&(e=this._intervalPrecision),oa(tT(t.value,e,!0)))},Jh.prototype.calcNiceTicks=function(t,e,i){t=t||5;var n=this._extent,o=n[1]-n[0];isFinite(o)&&(o<0&&n.reverse(),o=Uh(n,t,e,i),this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent)},Jh.prototype.calcNiceExtent=function(t){var e=this._extent,i=(e[0]===e[1]&&(0!==e[0]?(i=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]=tT(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=tT(Math.ceil(e[1]/i)*i))},Jh.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},Jh.type="interval",Jh);qS.registerClass(eT);var iT="undefined"!=typeof Float32Array,nT=iT?Float32Array:Array;i(ru,oT=eT),ru.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Hr(t.value,dx[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Yr(this._minLevelUnit))]||dx.second,e,this.getSetting("locale"))},ru.prototype.getFormattedLabel=function(t,e,i){var n=this.getSetting("useUTC"),o=this.getSetting("locale"),r=null;if(b(i))r=i;else if(w(i))r=i(t.value,e,{level:t.level});else{var a=l({},cx);if(0<t.level)for(var s=0;s<fx.length;++s)a[fx[s]]="{primary|"+a[fx[s]]+"}";var u=i?!1===i.inherit?i:h(i,a):a,c=Wr(t.value,n);if(u[c])r=u[c];else if(u.inherit){for(s=gx.indexOf(c)-1;0<=s;--s)if(u[c]){r=u[c];break}r=r||a.none}x(r)&&(e=null==t.level?0:0<=t.level?t.level:r.length+t.level,r=r[e=Math.min(e,r.length-1)])}return Hr(new Date(t.value),r,n,o)},ru.prototype.getTicks=function(){var t=this._interval,e=this._extent,i=[];return t&&(i.push({value:e[0],level:0}),t=this.getSetting("useUTC"),t=function(t,e,i,n){for(var o=gx,r=0,a=[],s=[],l=0,h=0,u=0;u<o.length&&r++<1e4;++u){var c=Yr(o[u]);if(function(t){return t===Yr(t)}(o[u])){!function(t,o,r){var a=[],s=!o.length;if(!function(t,e,i,n){function o(t){return Xr(c,t,n)===Xr(p,t,n)}function r(){return o("year")}function a(){return r()&&o("month")}function s(){return a()&&o("day")}function l(){return s()&&o("hour")}function h(){return l()&&o("minute")}function u(){return h()&&o("second")}var c=ki(e),p=ki(i);switch(t){case"year":return r();case"month":return a();case"day":return s();case"hour":return l();case"minute":return h();case"second":return u();case"millisecond":return u()&&o("millisecond")}}(Yr(t),n[0],n[1],i)){s&&(o=[{value:function(t,e,i){var n=new Date(t);switch(Yr(e)){case"year":case"month":n[$r(i)](0);case"day":n[Jr(i)](1);case"hour":n[ta(i)](0);case"minute":n[ea(i)](0);case"second":n[ia(i)](0),n[na(i)](0)}return n.getTime()}(new Date(n[0]),t,i)},{value:n[1]}]);for(var l,h,u=0;u<o.length-1;u++){var c=o[u].value,p=o[u+1].value;if(c!==p){var d=void 0,f=void 0,g=void 0;switch(t){case"year":d=Math.max(1,Math.round(e/ux/365)),f=Ur(i),g=i?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":h=e,d=6<(h/=30*ux)?6:3<h?3:2<h?2:1,f=Gr(i),g=$r(i);break;case"week":case"half-week":case"day":h=e,d=16<(h/=ux)?16:7.5<h?7:3.5<h?4:1.5<h?2:1,f=jr(i),g=Jr(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=qr(i),g=ta(i);break;case"minute":d=au(e,!0),f=Zr(i),g=ea(i);break;case"second":d=au(e,!1),f=Kr(i),g=ia(i);break;case"millisecond":d=Pi(e,!0),f=Qr(i),g=na(i)}T=S=b=w=x=_=v=m=y=void 0;for(var y=d,m=c,v=p,_=f,x=g,w=a,b=new Date(m),S=m,T=b[_]();S<v&&S<=n[1];)w.push({value:S}),b[x](T+=y),S=b.getTime();w.push({value:S,notAdd:!0}),"year"===t&&1<r.length&&0===u&&r.unshift({value:r[0].value-d})}}for(u=0;u<a.length;u++)r.push(a[u])}}(o[u],a[a.length-1]||[],s);if(c!==(o[u+1]?Yr(o[u+1]):null)){if(s.length){h=l,s.sort(function(t,e){return t.value-e.value});for(var p=[],d=0;d<s.length;++d){var f=s[d].value;0!==d&&s[d-1].value===f||(p.push(s[d]),f>=n[0]&&f<=n[1]&&l++)}if(1.5*(c=(n[1]-n[0])/e)<l&&c/1.5<h)break;if(a.push(p),c<l||t===o[u])break}s=[]}}}for(var y=m(g(a,function(t){return m(t,function(t){return t.value>=n[0]&&t.value<=n[1]&&!t.notAdd})}),function(t){return 0<t.length}),v=[],_=y.length-1,u=0;u<y.length;++u)for(var x=y[u],w=0;w<x.length;++w)v.push({value:x[w].value,level:_-u});v.sort(function(t,e){return t.value-e.value});for(var b=[],u=0;u<v.length;++u)0!==u&&v[u].value===v[u-1].value||b.push(v[u]);return b}(this._minLevelUnit,this._approxInterval,t,e),(i=i.concat(t)).push({value:e[1],level:0})),i},ru.prototype.calcNiceExtent=function(t){var e,i=this._extent;i[0]===i[1]&&(i[0]-=ux,i[1]+=ux),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]-ux),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},ru.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),aT.length),t=Math.min(function(t,e,i,n){for(;i<n;){var o=i+n>>>1;t[o][1]<e?i=1+o:n=o}return i}(aT,this._approxInterval,0,n),n-1);this._interval=aT[t][1],this._minLevelUnit=aT[Math.max(t-1,0)][0]},ru.prototype.parse=function(t){return T(t)?t:+ki(t)},ru.prototype.contain=function(t){return Zh(this.parse(t),this._extent)},ru.prototype.normalize=function(t){return Kh(this.parse(t),this._extent)},ru.prototype.scale=function(t){return Qh(t,this._extent)},ru.type="time";var oT,rT=ru,aT=[["second",sx],["minute",lx],["hour",hx],["quarter-day",6*hx],["half-day",12*hx],["day",1.2*ux],["half-week",3.5*ux],["week",7*ux],["month",31*ux],["quarter",95*ux],["half-year",Ny/2],["year",Ny]];qS.registerClass(rT);var sT,lT=qS.prototype,hT=eT.prototype,uT=bi,cT=Math.floor,pT=Math.ceil,dT=Math.pow,fT=Math.log,gT=(i(su,sT=qS),su.prototype.getTicks=function(t){var e=this._originalScale,i=this._extent,n=e.getExtent();return g(hT.getTicks.call(this,t),function(t){var t=t.value,e=bi(dT(this.base,t)),e=t===i[0]&&this._fixMin?lu(e,n[0]):e;return{value:t===i[1]&&this._fixMax?lu(e,n[1]):e}},this)},su.prototype.setExtent=function(t,e){var i=this.base;t=fT(t)/fT(i),e=fT(e)/fT(i),hT.setExtent.call(this,t,e)},su.prototype.getExtent=function(){var t=this.base,e=lT.getExtent.call(this);return e[0]=dT(t,e[0]),e[1]=dT(t,e[1]),t=this._originalScale.getExtent(),this._fixMin&&(e[0]=lu(e[0],t[0])),this._fixMax&&(e[1]=lu(e[1],t[1])),e},su.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=fT(t[0])/fT(e),t[1]=fT(t[1])/fT(e),lT.unionExtent.call(this,t)},su.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},su.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(i==1/0||i<=0)){var n=Ai(i);for(t/i*n<=.5&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&0<Math.abs(n);)n*=10;t=[bi(pT(e[0]/n)*n),bi(cT(e[1]/n)*n)],this._interval=n,this._niceExtent=t}},su.prototype.calcNiceExtent=function(t){hT.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},su.prototype.parse=function(t){return t},su.prototype.contain=function(t){return Zh(t=fT(t)/fT(this.base),this._extent)},su.prototype.normalize=function(t){return Kh(t=fT(t)/fT(this.base),this._extent)},su.prototype.scale=function(t){return t=Qh(t,this._extent),dT(this.base,t)},su.type="log",su);_b=gT.prototype,_b.getMinorTicks=hT.getMinorTicks,_b.getLabel=hT.getLabel,qS.registerClass(gT),hu.prototype._prepareParams=function(t,e,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var n=this._isOrdinal="ordinal"===t.type,o=(this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero(),this._modelMinRaw=e.get("min",!0)),o=(w(o)?this._modelMinNum=uu(t,o({min:i[0],max:i[1]})):"dataMin"!==o&&(this._modelMinNum=uu(t,o)),this._modelMaxRaw=e.get("max",!0));w(o)?this._modelMaxNum=uu(t,o({min:i[0],max:i[1]})):"dataMax"!==o&&(this._modelMaxNum=uu(t,o)),n?this._axisDataLen=e.getCategories().length:"boolean"==typeof(t=x(i=e.get("boundaryGap"))?i:[i||0,i||0])[0]||"boolean"==typeof t[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[li(t[0],1),li(t[1],1)]},hu.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,i=this._dataMax,n=this._axisDataLen,o=this._boundaryGapInner,r=t?null:i-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?i:this._modelMaxNum,l=null!=a,h=null!=s,e=(null==a&&(a=t?n?0:NaN:e-o[0]*r),null==s&&(s=t?n?n-1:NaN:i+o[1]*r),null!=a&&isFinite(a)||(a=NaN),null!=s&&isFinite(s)||(s=NaN),O(a)||O(s)||t&&!n),i=(this._needCrossZero&&(a=0<a&&0<s&&!l?0:a)<0&&s<0&&!h&&(s=0),this._determinedMin),o=this._determinedMax;return null!=i&&(a=i,l=!0),null!=o&&(s=o,h=!0),{min:a,max:s,minFixed:l,maxFixed:h,isBlank:e}},hu.prototype.modifyDataMinMax=function(t,e){this[vT[t]]=e},hu.prototype.setDeterminedMinMax=function(t,e){this[mT[t]]=e},hu.prototype.freeze=function(){this.frozen=!0};var yT=hu,mT={min:"_determinedMin",max:"_determinedMax"},vT={min:"_dataMin",max:"_dataMax"};_u.prototype.getNeedCrossZero=function(){return!this.option.scale},_u.prototype.getCoordSysModel=function(){};var _T=_u,bb=Object.freeze({__proto__:null,createDimensions:function(t,e){return Rh(t,e).dimensions},createList:function(t){return Vh(null,t)},createScale:function(t,e){var i=e;return(e=du(i=e instanceof J_?i:new J_(e))).setExtent(t[0],t[1]),pu(e,i),e},createSymbol:Pl,createTextStyle:function(t,e){return Dr(t,null,null,"normal"!==(e=e||{}).state)},dataStack:{isDimensionStacked:zh,enableDataStack:Bh,getStackedDimension:Fh},enableHoverEmphasis:wo,getECData:iv,getLayoutRect:fa,mixinAxisModelCommonMethods:function(t){p(t,_T)}}),xT=[],wT={registerPreprocessor:ch,registerProcessor:ph,registerPostInit:dh,registerPostUpdate:fh,registerUpdateLifecycle:gh,registerAction:yh,registerCoordinateSystem:mh,registerLayout:vh,registerVisual:_h,registerTransform:Sh,registerLoading:wh,registerMap:bh,registerImpl:function(t,e){zb[t]=e},PRIORITY:wb,ComponentModel:Dx,ComponentView:Zw,SeriesModel:qw,ChartView:$w,registerComponentModel:function(t){Dx.registerClass(t)},registerComponentView:function(t){Zw.registerClass(t)},registerSeriesModel:function(t){qw.registerClass(t)},registerChartView:function(t){$w.registerClass(t)},registerSubTypeDefaulter:function(t,e){Dx.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){_i(t,e)}},bT=1e-8,ST=[];Cu.prototype.setCenter=function(t){this._center=t},Cu.prototype.getCenter=function(){return this._center||(this._center=this.calcCenter())},Sb=Cu;var TT,CT,MT=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},IT=function(t){this.type="linestring",this.points=t},kT=(i(Mu,TT=Sb),Mu.prototype.calcCenter=function(){for(var t,e=this.geometries,i=0,n=0;n<e.length;n++){var o=e[n],r=o.exterior,r=r&&r.length;i<r&&(t=o,i=r)}if(t){for(var a=t.exterior,s=0,l=0,h=0,u=a.length,c=a[u-1][0],p=a[u-1][1],d=0;d<u;d++){var f=a[d][0],g=a[d][1],y=c*g-f*p;s+=y,l+=(c+f)*y,h+=(p+g)*y,c=f,p=g}return s?[l/s/3,h/s/3,s]:[a[0][0]||0,a[0][1]||0]}var m=this.getBoundingRect();return[m.x+m.width/2,m.y+m.height/2]},Mu.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?Tu(n.exterior,e,i,t):f(n.points,function(n){Tu(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 py(e[0],e[1],i[0]-e[0],i[1]-e[1]),t)||(this._rect=n),n},Mu.prototype.contain=function(t){var e=this.getBoundingRect(),i=this.geometries;if(e.contain(t[0],t[1]))t:for(var n=0,o=i.length;n<o;n++){var r=i[n];if("polygon"===r.type){var a=r.exterior,s=r.interiors;if(bu(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(bu(s[l],t[0],t[1]))continue t;return!0}}}return!1},Mu.prototype.transformTo=function(t,e,i,n){for(var o=this.getBoundingRect(),r=o.width/o.height,r=(i?n=n||i/r:i=r*n,new py(t,e,i,n)),a=o.calculateTransform(r),s=this.geometries,l=0;l<s.length;l++){var h=s[l];"polygon"===h.type?(Su(h.exterior,a),f(h.interiors,function(t){Su(t,a)})):f(h.points,function(t){Su(t,a)})}(o=this._rect).copy(r),this._center=[o.x+o.width/2,o.y+o.height/2]},Mu.prototype.cloneShallow=function(t){return t=new Mu(t=null==t?this.name:t,this.geometries,this._center),t._rect=this._rect,t.transformTo=null,t},Mu);i(Iu,CT=Sb),Iu.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),e=[e.x+e.width/2,e.y+e.height/2],i=Xe(ST),n=t;n&&!n.isGeoSVGGraphicRoot;)Ge(i,n.getLocalTransform(),i),n=n.parent;return Ke(i,i),at(e,e,i),e};var zy=Object.freeze({__proto__:null,MAX_SAFE_INTEGER:9007199254740991,asc:function(t){return t.sort(function(t,e){return t-e}),t},getPercentWithPrecision:function(t,e,i){if(!t[e])return 0;var n=y(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return 0;for(var o=Math.pow(10,i),i=g(t,function(t){return(isNaN(t)?0:t)/n*o*100}),r=100*o,a=g(i,function(t){return Math.floor(t)}),s=y(a,function(t,e){return t+e},0),l=g(i,function(t,e){return t-a[e]});s<r;){for(var h=Number.NEGATIVE_INFINITY,u=null,c=0,p=l.length;c<p;++c)l[c]>h&&(h=l[c],u=c);++a[u],l[u]=0,++s}return a[e]/o},getPixelPrecision:Ci,getPrecision:Si,getPrecisionSafe:Ti,isNumeric:Li,isRadianAroundZero:Ii,linearMap:xi,nice:Pi,numericToNumber:Oi,parseDate:ki,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:Ai,quantityExponent:Di,reformIntervals:function(t){t.sort(function(t,e){return function t(e,i,n){return e.interval[n]<i.interval[n]||e.interval[n]===i.interval[n]&&(e.close[n]-i.close[n]==(n?-1:1)||!n&&t(e,i,1))}(t,e,0)?-1:1});for(var e=-1/0,i=1,n=0;n<t.length;){for(var o=t[n].interval,r=t[n].close,a=0;a<2;a++)o[a]<=e&&(o[a]=e,r[a]=a?1:1-i),e=o[a],i=r[a];o[0]===o[1]&&r[0]*r[1]!=1?t.splice(n,1):n++}return t},remRadian:Mi,round:bi}),N_=Object.freeze({__proto__:null,format:Hr,parse:ki}),px=Object.freeze({__proto__:null,Arc:m_,BezierCurve:f_,BoundingRect:py,Circle:Ev,CompoundPath:__,Ellipse:Bv,Group:wy,Image:Wm,IncrementalDisplayable:_y,Line:u_,LinearGradient:b_,Polygon:n_,Polyline:a_,RadialGradient:x_,Rect:qm,Ring:t_,Sector:Qv,Text:$m,clipPointsByRect:_r,clipRectByRect:xr,createIcon:wr,extendPath:sr,extendShape:ar,getShapeClass:hr,getTransform:gr,initProps:ir,makeImage:cr,makePath:ur,mergePath:dr,registerShape:lr,resizePath:fr,updateProps:er}),Z_=Object.freeze({__proto__:null,addCommas:oa,capitalFirst:function(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)},encodeHTML:aa,formatTime:function(t,e,i){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var n=(e=ki(e))[(i=i?"getUTC":"get")+"FullYear"](),o=e[i+"Month"]()+1,r=e[i+"Date"](),a=e[i+"Hours"](),s=e[i+"Minutes"](),l=e[i+"Seconds"](),e=e[i+"Milliseconds"]();return t=t.replace("MM",Vr(o,2)).replace("M",o).replace("yyyy",n).replace("yy",n%100+"").replace("dd",Vr(r,2)).replace("d",r).replace("hh",Vr(a,2)).replace("h",a).replace("mm",Vr(s,2)).replace("m",s).replace("ss",Vr(l,2)).replace("s",l).replace("SSS",Vr(e,3))},formatTpl:ha,getTextRect:function(t,e,i,n,o,r,a,s){return new $m({style:{text:t,font:e,align:i,verticalAlign:n,padding:o,rich:r,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:ua,normalizeCssArray:yx,toCamelCase:ra,truncateText:dn}),G_=Object.freeze({__proto__:null,bind:If,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}),AT=Zi(),DT=[0,1],Q_=(Fu.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},Fu.prototype.containData=function(t){return this.scale.contain(t)},Fu.prototype.getExtent=function(){return this._extent.slice()},Fu.prototype.getPixelPrecision=function(t){return Ci(t||this.scale.getExtent(),this._extent)},Fu.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},Fu.prototype.dataToCoord=function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&Vu(i=i.slice(),n.count()),xi(t,DT,i,e)},Fu.prototype.coordToData=function(t,e){var i=this._extent,n=this.scale,n=(this.onBand&&"ordinal"===n.type&&Vu(i=i.slice(),n.count()),xi(t,i,DT,e));return this.scale.scale(n)},Fu.prototype.pointToData=function(t,e){},Fu.prototype.getTicksCoords=function(t){function e(t,e){return t=bi(t),e=bi(e),s?e<t:t<e}var i,n,o,r,a,s,l,h=(t=t||{}).tickModel||this.getTickModel(),u=g(Ou(this,h).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this),h=h.get("alignWithLabel");return i=this,n=u,h=h,t=t.clamp,l=n.length,i.onBand&&!h&&l&&(h=i.getExtent(),1===l?(n[0].coord=h[0],o=n[1]={coord:h[0]}):(a=n[l-1].tickValue-n[0].tickValue,r=(n[l-1].coord-n[0].coord)/a,f(n,function(t){t.coord-=r/2}),i=1+(a=i.scale.getExtent())[1]-n[l-1].tickValue,o={coord:n[l-1].coord+r*i},n.push(o)),s=h[0]>h[1],e(n[0].coord,h[0])&&(t?n[0].coord=h[0]:n.shift()),t&&e(h[0],n[0].coord)&&n.unshift({coord:h[0]}),e(h[1],o.coord)&&(t?o.coord=h[1]:n.pop()),t)&&e(o.coord,h[1])&&n.push({coord:h[1]}),u},Fu.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))},Fu.prototype.getViewLabels=function(){return Pu(this).labels},Fu.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},Fu.prototype.getTickModel=function(){return this.model.getModel("axisTick")},Fu.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},Fu.prototype.calculateCategoryInterval=function(){o=(i=d=this).getLabelModel();var t={axisRotate:i.getRotate?i.getRotate():i.isHorizontal&&!i.isHorizontal()?90:0,labelRotate:o.get("rotate")||0,font:o.getFont()},e=fu(d),i=(t.axisRotate-t.labelRotate)/180*Math.PI,n=(o=d.scale).getExtent(),o=o.count();if(n[1]-n[0]<1)return 0;for(var r=1,a=(40<o&&(r=Math.max(1,Math.floor(o/40))),n[0]),s=d.dataToCoord(a+1)-d.dataToCoord(a),l=Math.abs(s*Math.cos(i)),s=Math.abs(s*Math.sin(i)),h=0,u=0;a<=n[1];a+=r)var c=1.3*(p=oi(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=AT(d.model),l=d.getExtent(),d=i.lastAutoInterval,f=i.lastTickCount;return null!=d&&null!=f&&Math.abs(d-s)<=1&&Math.abs(f-o)<=1&&s<d&&i.axisExtent0===l[0]&&i.axisExtent1===l[1]?s=d:(i.lastTickCount=o,i.lastAutoInterval=s,i.axisExtent0=l[0],i.axisExtent1=l[1]),s},Fu),PT=2*Math.PI,OT=Mm.CMD,LT=["top","right","bottom","left"],ET=[],RT=new ny,NT=new ny,BT=new ny,zT=new ny,FT=new ny,VT=[],YT=new ny,HT=["align","verticalAlign","width","height","fontSize"],WT=new ty,XT=Zi(),UT=Zi(),GT=["x","y","rotation"],jT=($u.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},$u.prototype._addLabel=function(t,e,i,n,o){var r,a=n.style,s=n.__hostTarget.textConfig||{},l=n.getComputedTransform(),h=n.getBoundingRect().plain(),l=(py.applyTransform(h,h,l),l?WT.setLocalTransform(l):(WT.x=WT.y=WT.rotation=WT.originX=WT.originY=0,WT.scaleX=WT.scaleY=1),n.__hostTarget),u=(l&&(r=l.getBoundingRect().plain(),u=l.getComputedTransform(),py.applyTransform(r,r,u)),r&&l.getTextGuideLine());this._labelList.push({label:n,labelLine:u,seriesModel:i,dataIndex:t,dataType:e,layoutOption:o,computedLayoutOption:null,rect:h,hostRect:r,priority:r?r.width*r.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:u&&u.ignore,x:WT.x,y:WT.y,scaleX:WT.scaleX,scaleY:WT.scaleY,rotation:WT.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}})},$u.prototype.addLabelsOfSeries=function(t){var e=this,i=(this._chartViewList.push(t),t.__model),n=i.get("labelLayout");(w(n)||v(n).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var o=t.getTextContent(),t=iv(t);o&&!o.disableLabelLayout&&e._addLabel(t.dataIndex,t.dataType,i,o,n)})},$u.prototype.updateLayoutConfig=function(t){for(var e=t.getWidth(),i=t.getHeight(),n=0;n<this._labelList.length;n++){var o=this._labelList[n],r=o.label,a=r.__hostTarget,s=o.defaultAttr,l=void 0,l=w(o.layoutOption)?o.layoutOption(Ku(o,a)):o.layoutOption,h=(o.computedLayoutOption=l=l||{},Math.PI/180),u=(a&&a.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*h:s.attachedRot,offset:[l.dx||0,l.dy||0]}),!1);null!=l.x?(r.x=wi(l.x,e),r.setStyle("x",0),u=!0):(r.x=s.x,r.setStyle("x",s.style.x)),null!=l.y?(r.y=wi(l.y,i),r.setStyle("y",0),u=!0):(r.y=s.y,r.setStyle("y",s.style.y)),l.labelLinePoints&&(c=a.getTextGuideLine())&&(c.setShape({points:l.labelLinePoints}),u=!1),XT(r).needsUpdateLabelLine=u,r.rotation=null!=l.rotate?l.rotate*h:s.rotation,r.scaleX=s.scaleX,r.scaleY=s.scaleY;for(var c,p=0;p<HT.length;p++){var d=HT[p];r.setStyle(d,(null!=l[d]?l:s.style)[d])}l.draggable?(r.draggable=!0,r.cursor="move",a&&(c=o.seriesModel,null!=o.dataIndex&&(c=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex)),r.on("drag",function(t,e){return function(){Xu(t,e)}}(a,c.getModel("labelLine"))))):(r.off("drag"),r.cursor=s.cursor)}},$u.prototype.layout=function(t){var e=t.getWidth(),t=t.getHeight(),i=ju(this._labelList),n=m(i,function(t){return"shiftX"===t.layoutOption.moveOverlap}),o=m(i,function(t){return"shiftY"===t.layoutOption.moveOverlap});qu(n,"x","width",0,e,void 0),qu(o,"y","height",0,t,void 0),Zu(m(i,function(t){return t.layoutOption.hideOverlap}))},$u.prototype.processLabelsOverall=function(){var t=this;f(this._chartViewList,function(e){var i=e.__model,n=e.ignoreLabelLineUpdate,o=i.isAnimationEnabled();e.group.traverse(function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var r=!n,a=e.getTextContent();(r=!r&&a?XT(a).needsUpdateLabelLine:r)&&t._updateLabelLine(e,i),o&&t._animateLabels(e,i)})})},$u.prototype._updateLabelLine=function(t,e){var i=t.getTextContent(),n=iv(t),o=n.dataIndex;if(i&&null!=o){var i=e.getData(n.dataType),e=i.getItemModel(o),n={},o=i.getItemVisual(o,"style"),i=i.getVisual("drawType"),o=(n.stroke=o[i],e.getModel("labelLine")),r=t,a=function(t,e){for(var i={normal:t.getModel(e=e||"labelLine")},n=0;n<uv.length;n++){var o=uv[n];i[o]=t.getModel([o,e])}return i}(e),i=n,s=r.getTextGuideLine(),l=r.getTextContent();if(l){for(var e=a.normal,u=e.get("show"),c=l.ignore,p=0;p<cv.length;p++){var d,f=cv[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.normal)&&(d.ignore=!0):(s||(s=new a_,r.setTextGuideLine(s),y||!c&&u||Uu(s,!0,"normal",a.normal),r.stateProxy&&(s.stateProxy=r.stateProxy)),Uu(s,!1,f,g)))}s&&(h(s.style,i),s.style.fill=null,i=e.get("showAbove"),(r.textGuideLineConfig=r.textGuideLineConfig||{}).showAbove=i||!1,s.buildPath=Gu)}else s&&r.removeTextGuideLine();Xu(t,o)}},$u.prototype._animateLabels=function(t,e){var i,n,o,r,a,s=t.getTextContent(),l=t.getTextGuideLine();!s||!t.forceLabelAnimation&&(s.ignore||s.invisible||t.disableLabelAnimation||nr(t))||(r=(o=XT(s)).oldLayout,i=(n=iv(t)).dataIndex,a={x:s.x,y:s.y,rotation:s.rotation},n=e.getData(n.dataType),r?(s.attr(r),(t=t.prevStates)&&(0<=u(t,"select")&&s.attr(o.oldLayoutSelect),0<=u(t,"emphasis"))&&s.attr(o.oldLayoutEmphasis),er(s,a,e,i)):(s.attr(a),H_(s).valueAnimation||(t=E(s.style.opacity,1),s.style.opacity=0,ir(s,{style:{opacity:t}},e,i))),o.oldLayout=a,s.states.select&&(Qu(t=o.oldLayoutSelect={},a,GT),Qu(t,s.states.select,GT)),s.states.emphasis&&(Qu(t=o.oldLayoutEmphasis={},a,GT),Qu(t,s.states.emphasis,GT)),Lr(s,i,n,e,e)),!l||l.ignore||l.invisible||(r=(o=UT(l)).oldLayout,a={points:l.shape.points},r?(l.attr({shape:r}),er(l,{shape:a},e)):(l.setShape(a),l.style.strokePercent=0,ir(l,{style:{strokePercent:1}},e)),o.oldLayout=a)},$u),qT=Zi();xu(Ju),i(ec,ZT=Bf),ec.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},ec.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},ec.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},ec.prototype.setUnpainted=function(){this.__firstTimePaint=!0},ec.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=tc("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},ec.prototype.createRepaintRects=function(t,e,i,n){function o(t){if(t.isFinite()&&!t.isZero())if(0===a.length)(e=new py(0,0,0,0)).copy(t),a.push(e);else{for(var e,i=!1,n=1/0,o=0,r=0;r<a.length;++r){var u=a[r];if(u.intersect(t)){var c=new py(0,0,0,0);c.copy(u),c.union(t),a[r]=c,i=!0;break}l&&(h.copy(t),h.union(u),c=t.width*t.height,u=u.width*u.height,(u=h.width*h.height-c-u)<n)&&(n=u,o=r)}l&&(a[o].union(t),i=!0),i||((e=new py(0,0,0,0)).copy(t),a.push(e)),l=l||a.length>=s}}if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;for(var r,a=[],s=this.maxRepaintRectCount,l=!1,h=new py(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&eg||!d)?c.getPrevPaintRect():null)&&o(p),r=d&&(c.__dirty&eg||!c.__isRendered)?c.getPaintRect():null)&&o(r);for(u=this.__prevStartIndex;u<this.__prevEndIndex;++u){var c,p,d=(c=e[u]).shouldBePainted(i,n,!0,!0);!c||d&&c.__zr||!c.__isRendered||(p=c.getPrevPaintRect())&&o(p)}do{for(var f=!1,u=0;u<a.length;)if(a[u].isZero())a.splice(u,1);else{for(var g=u+1;g<a.length;)a[u].intersect(a[g])?(f=!0,a[u].union(a[g]),a.splice(g,1)):g++;u++}}while(f);return this._paintRects=a},ec.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},ec.prototype.resize=function(t,e){var i=this.dpr,n=this.dom,o=n.style,r=this.domBack;o&&(o.width=t+"px",o.height=e+"px"),n.width=t*i,n.height=e*i,r&&(r.width=t*i,r.height=e*i,1!==i)&&this.ctxBack.scale(i,i)},ec.prototype.clear=function(t,e,i){function n(t,i,n,o){var a;r.clearRect(t,i,n,o),e&&"transparent"!==e&&(a=void 0,A(e)?(a=e.__canvasGradient||Ll(r,e,{x:0,y:0,width:n,height:o}),e.__canvasGradient=a):D(e)&&(a=Hl(r,e,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}})),r.save(),r.fillStyle=a||e,r.fillRect(t,i,n,o),r.restore()),l&&(r.save(),r.globalAlpha=h,r.drawImage(p,t,i,n,o),r.restore())}var o=this.dom,r=this.ctx,a=o.width,s=o.height,l=(e=e||this.clearColor,this.motionBlur&&!t),h=this.lastFrameAlpha,u=this.dpr,c=this,p=(l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,a/u,s/u)),this.domBack);!i||l?n(0,0,a,s):i.length&&f(i,function(t){n(t.x*u,t.y*u,t.width*u,t.height*u)})};var ZT,KT=ec,QT=314159;ic.prototype.getType=function(){return"canvas"},ic.prototype.isSingleCanvas=function(){return this._singleCanvas},ic.prototype.getViewportRoot=function(){return this._domRoot},ic.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},ic.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var o=0;o<n.length;o++){var r,a=n[o],a=this._layers[a];!a.__builtin__&&a.refresh&&(r=0===o?this._backgroundColor:null,a.refresh(r))}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},ic.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},ic.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),e){for(var n,o={inHover:!0,viewWidth:this._width,viewHeight:this._height},r=0;r<e;r++){var a=t[r];a.__inHover&&(i=i||(this._hoverlayer=this.getLayer(1e5)),n||(n=i.ctx).save(),Zl(n,a,o,r===e-1))}n&&n.restore()}},ic.prototype.getHoverLayer=function(){return this.getLayer(1e5)},ic.prototype.paintOne=function(t,e){ql(t,e)},ic.prototype._paintList=function(t,e,i,n){var o,r,a;this._redrawId===n&&(i=i||!1,this._updateLayerStatus(t),o=(r=this._doPaintList(t,e,i)).finished,r=r.needsRefreshHover,this._needsManuallyCompositing&&this._compositeManually(),r&&this._paintHoverList(t),o?this.eachLayer(function(t){t.afterBrush&&t.afterBrush()}):(a=this,rg(function(){a._paintList(t,e,i,n)})))},ic.prototype._compositeManually=function(){var t=this.getLayer(QT).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)})},ic.prototype._doPaintList=function(t,e,i){for(var n=this,o=[],r=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],s=this._layers[s];s.__builtin__&&s!==this._hoverlayer&&(s.__dirty||i)&&o.push(s)}for(var l=!0,h=!1,u=this,c=0;c<o.length;c++)!function(a){function s(e){var i={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(p=y;p<d.__endIndex;p++){var o=t[p];if(o.__inHover&&(h=!0),n._doPaintEl(o,d,r,e,i,p===d.__endIndex-1),m&&15<Date.now()-v)break}i.prevElClipPaths&&f.restore()}var c,p,d=o[a],f=d.ctx,g=r&&d.createRepaintRects(t,e,u._width,u._height),y=i?d.__startIndex:d.__drawIndex,m=!i&&d.incremental&&Date.now,v=m&&Date.now(),a=d.zlevel===u._zlevelList[0]?u._backgroundColor:null;if(d.__startIndex!==d.__endIndex&&(y!==d.__startIndex||(c=t[y]).incremental&&c.notClear&&!i)||d.clear(!1,a,g),-1===y&&(console.error("For some unknown reason. drawIndex is -1"),y=d.__startIndex),g)if(0===g.length)p=d.__endIndex;else for(var _=u.dpr,x=0;x<g.length;++x){var w=g[x];f.save(),f.beginPath(),f.rect(w.x*_,w.y*_,w.width*_,w.height*_),f.clip(),s(w),f.restore()}else f.save(),s(),f.restore();d.__drawIndex=p,d.__drawIndex<d.__endIndex&&(l=!1)}(c);return af.wxa&&f(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:l,needsRefreshHover:h}},ic.prototype._doPaintEl=function(t,e,i,n,o,r){e=e.ctx,i?(i=t.getPaintRect(),(!n||i&&i.intersect(n))&&(Zl(e,t,o,r),t.setPrevPaintRect(i))):Zl(e,t,o,r)},ic.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=QT);var i=this._layers[t];return i||((i=new KT("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},ic.prototype.insertLayer=function(t,e){var i,n=this._layers,o=this._zlevelList,r=o.length,a=this._domRoot,s=null,l=-1;if(!n[t]&&(i=e)&&(i.__builtin__||"function"==typeof i.resize&&"function"==typeof i.refresh)){if(0<r&&t>o[0]){for(l=0;l<r-1&&!(o[l]<t&&o[l+1]>t);l++);s=n[o[l]]}o.splice(l+1,0,t),(n[t]=e).virtual||(s?(i=s.dom).nextSibling?a.insertBefore(e.dom,i.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.__painter=this}},ic.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var o=i[n];t.call(e,this._layers[o],o)}},ic.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var o=i[n],r=this._layers[o];r.__builtin__&&t.call(e,r,o)}},ic.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var o=i[n],r=this._layers[o];r.__builtin__||t.call(e,r,o)}},ic.prototype.getLayers=function(){return this._layers},ic.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var i=1;i<t.length;i++)if((l=t[i]).zlevel!==t[i-1].zlevel||l.incremental){this._needsManuallyCompositing=!0;break}for(var n,o=null,a=0,s=0;s<t.length;s++){var l,h=(l=t[s]).zlevel,u=void 0;n!==h&&(n=h,a=0),l.incremental?((u=this.getLayer(h+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(h+(0<a?.01:0),this._needsManuallyCompositing),u.__builtin__||r("ZLevel "+h+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==s&&(u.__dirty=!0),u.__startIndex=s,u.incremental?u.__drawIndex=-1:u.__drawIndex=s,e(s),o=u),l.__dirty&eg&&!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)})},ic.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},ic.prototype._clearLayer=function(t){t.clear()},ic.prototype.setBackgroundColor=function(t){this._backgroundColor=t,f(this._layers,function(t){t.setUnpainted()})},ic.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?s(i[t],e,!0):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var o=this._zlevelList[n];o!==t&&o!==t+.01||s(this._layers[o],i[t],!0)}}},ic.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))},ic.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot,n=(i.style.display="none",this._opts),o=this.root;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=Rl(o,0,n),e=Rl(o,1,n),i.style.display="",this._width!==t||e!==this._height){for(var r in i.style.width=t+"px",i.style.height=e+"px",this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(QT).resize(t,e)}return this},ic.prototype.clearLayer=function(t){(t=this._layers[t])&&t.clear()},ic.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},ic.prototype.getRenderedCanvas=function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[QT].dom;var e=new KT("image",this,(t=t||{}).pixelRatio||this.dpr),i=(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),e.ctx);if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,o=e.dom.height;this.eachLayer(function(t){t.__builtin__?i.drawImage(t.dom,0,0,n,o):t.renderToCanvas&&(i.save(),t.renderToCanvas(i),i.restore())})}else for(var r={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var h=a[s];Zl(i,h,r,s===l-1)}return e.dom},ic.prototype.getWidth=function(){return this._width},ic.prototype.getHeight=function(){return this._height};var $T=ic;i(nc,JT=Dx),nc.prototype.init=function(t,e,i){JT.prototype.init.call(this,t,e,i),this._sourceManager=new Yw(this),Ls(this)},nc.prototype.mergeOption=function(t,e){JT.prototype.mergeOption.call(this,t,e),Ls(this)},nc.prototype.optionUpdated=function(){this._sourceManager.dirty()},nc.prototype.getSourceManager=function(){return this._sourceManager},nc.type="dataset",nc.defaultOption={seriesLayoutBy:Wx};var JT,tC=nc;i(oc,eC=Zw),oc.type="dataset";var eC,iC=oc;xu([function(t){t.registerPainter("canvas",$T)},rc]),xu(Ju),i(ac,nC=qw),ac.prototype.getInitialData=function(t){return Vh(null,this,{useEncodeDefaulter:!0})},ac.prototype.getLegendIcon=function(t){var e=new wy,i=Pl("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1),i=(e.add(i),i.setStyle(t.lineStyle),this.getData().getVisual("symbol")),n=this.getData().getVisual("symbolRotate"),i="none"===i?"circle":i,o=.8*t.itemHeight,o=Pl(i,(t.itemWidth-o)/2,(t.itemHeight-o)/2,o,o,t.itemStyle.fill),n=(e.add(o),o.setStyle(t.itemStyle),"inherit"===t.iconRotate?n:t.iconRotate||0);return o.rotation=n*Math.PI/180,o.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<i.indexOf("empty")&&(o.style.stroke=o.style.fill,o.style.fill="#fff",o.style.lineWidth=2),e},ac.type="series.line",ac.dependencies=["grid","polar"],ac.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1};var nC,oC=ac;i(lc,rC=wy),lc.prototype._createSymbol=function(t,e,i,n,o){this.removeAll(),o=Pl(t,-1,-1,2,2,null,o),o.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),o.drift=hc,this._symbolType=t,this.add(o)},lc.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},lc.prototype.getSymbolType=function(){return this._symbolType},lc.prototype.getSymbolPath=function(){return this.childAt(0)},lc.prototype.highlight=function(){ho(this.childAt(0))},lc.prototype.downplay=function(){uo(this.childAt(0))},lc.prototype.setZ=function(t,e){var i=this.childAt(0);i.zlevel=t,i.z=e},lc.prototype.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},lc.prototype.updateData=function(t,e,i,n){this.silent=!1;var o,r,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,h=lc.getSymbolSize(t,e),u=s!==this._symbolType,c=n&&n.disableAnimation;u?(o=t.getItemVisual(e,"symbolKeepAspect"),this._createSymbol(s,t,e,h,o)):((r=this.childAt(0)).silent=!1,a={scaleX:h[0]/2,scaleY:h[1]/2},c?r.attr(a):er(r,a,l,e),P_(s=r).oldStyle=s.style),this._updateCommon(t,e,h,i,n),u&&(r=this.childAt(0),c||(a={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:r.style.opacity}},r.scaleX=r.scaleY=0,r.style.opacity=0,ir(r,a,l,e))),c&&this.childAt(0).stopAnimation("leave"),this._seriesModel=l},lc.prototype._updateCommon=function(t,e,i,n,o){var r,a,s,h,u,c,p,d,f=this.childAt(0),g=t.hostModel,y=(n&&(r=n.emphasisItemStyle,s=n.blurItemStyle,a=n.selectItemStyle,h=n.focus,u=n.blurScope,p=n.labelStatesModels,d=n.hoverScale,m=n.cursorStyle,c=n.emphasisDisabled),n&&!t.hasItemOption||(r=(y=(n=n&&n.itemModel?n.itemModel:t.getItemModel(e)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),a=n.getModel(["select","itemStyle"]).getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),h=y.get("focus"),u=y.get("blurScope"),c=y.get("disabled"),p=Ar(n),d=y.getShallow("scale"),m=n.getShallow("cursor")),t.getItemVisual(e,"symbolRotate")),n=(f.attr("rotation",(y||0)*Math.PI/180||0),Ol(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 Wm?(m=f.style,f.useStyle(l({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},y))):(f.__isEmptyBrush?f.useStyle(l({},y)):f.useStyle(y),f.style.decal=null,f.setColor(n,o&&o.symbolInnerColor),f.style.strokeNoScale=!0),t.getItemVisual(e,"liftZ")),v=this._z2,_=(null!=m?null==v&&(this._z2=f.z2,f.z2+=m):null!=v&&(f.z2=v,this._z2=null),o&&o.useNameLabel);kr(f,p,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return _?t.getName(e):sc(t,e)},inheritColor:n,defaultOpacity:y.opacity}),this._sizeX=i[0]/2,this._sizeY=i[1]/2,m=f.ensureState("emphasis"),m.style=r,f.ensureState("select").style=a,f.ensureState("blur").style=s,d&&(v=Math.max(1.1,3/this._sizeY),m.scaleX=this._sizeX*v,m.scaleY=this._sizeY*v),this.setSymbolScale(1),bo(this,h,u,c)},lc.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},lc.prototype.fadeOut=function(t,e){var i=this.childAt(0),n=this._seriesModel,o=iv(this).dataIndex,r=e&&e.animation;this.silent=i.silent=!0,e&&e.fadeLabel?(e=i.getTextContent())&&or(e,{style:{opacity:0}},n,{dataIndex:o,removeOpt:r,cb:function(){i.removeTextContent()}}):i.removeTextContent(),or(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:t,removeOpt:r})},lc.getSymbolSize=function(t,e){return[(t=x(t=t.getItemVisual(e,"symbolSize"))?t:[+t,+t])[0]||0,t[1]||0]};var rC,aC=lc;dc.prototype.updateData=function(t,e){this._progressiveEls=null,e=cc(e);var i=this.group,n=t.hostModel,o=this._data,r=this._SymbolCtor,a=e.disableAnimation,s=pc(t),l={disableAnimation:a},h=e.getSymbolPoint||function(e){return t.getItemLayout(e)};o||i.removeAll(),t.diff(o).add(function(n){var o,a=h(n);uc(t,a,n,e)&&((o=new r(t,n,s,l)).setPosition(a),t.setItemGraphicEl(n,o),i.add(o))}).update(function(u,c){var p,d,c=o.getItemGraphicEl(c),f=h(u);uc(t,f,u,e)?(p=t.getItemVisual(u,"symbol")||"circle",d=c&&c.getSymbolType&&c.getSymbolType(),!c||d&&d!==p?(i.remove(c),(c=new r(t,u,s,l)).setPosition(f)):(c.updateData(t,u,s,l),d={x:f[0],y:f[1]},a?c.attr(d):er(c,d,n)),i.add(c),t.setItemGraphicEl(u,c)):i.remove(c)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&e.fadeOut(function(){i.remove(e)})}).execute(),this._getSymbolPoint=h,this._data=t},dc.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,i){i=t._getSymbolPoint(i),e.setPosition(i),e.markRedraw()})},dc.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=pc(t),this._data=null,this.group.removeAll()},dc.prototype.incrementalUpdate=function(t,e,i){function n(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],i=cc(i);for(var o=t.start;o<t.end;o++){var r,a=e.getItemLayout(o);uc(e,a,o,i)&&((r=new this._SymbolCtor(e,o,this._seriesScope)).traverse(n),r.setPosition(a),this.group.add(r),e.setItemGraphicEl(o,r),this._progressiveEls.push(r))}},dc.prototype.eachRendered=function(t){Cr(this._progressiveEls||this.group,t)},dc.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll()};var sC,lC=dc,hC=Math.min,uC=Math.max,cC=function(){this.smooth=0,this.smoothConstraint=!0},pC=(i(vc,sC=Bm),vc.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},vc.prototype.getDefaultShape=function(){return new cC},vc.prototype.buildPath=function(t,e){var i=e.points,n=0,o=i.length/2;if(e.connectNulls){for(;0<o&&yc(i[2*o-2],i[2*o-1]);o--);for(;n<o&&yc(i[2*n],i[2*n+1]);n++);}for(;n<o;)n+=mc(t,i,n,o,o,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},vc.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i,n,o=this.path.data,r=Mm.CMD,a="x"===e,s=[],l=0;l<o.length;){var h=void 0,u=void 0;switch(o[l++]){case r.M:i=o[l++],n=o[l++];break;case r.L:var c,h=o[l++],u=o[l++];if((c=a?(t-i)/(h-i):(t-n)/(u-n))<=1&&0<=c)return v=a?(u-n)*c+n:(h-i)*c+i,a?[t,v]:[v,t];i=h,n=u;break;case r.C:h=o[l++],u=o[l++];var p=o[l++],d=o[l++],f=o[l++],g=o[l++],y=a?zt(i,h,p,f,t,s):zt(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?Nt(n,u,d,g,_):Nt(i,h,p,f,_),a?[t,v]:[v,t]}i=f,n=g}}},vc);i(_c,dC=cC);var dC,fC=_c;i(xc,gC=Bm),xc.prototype.getDefaultShape=function(){return new fC},xc.prototype.buildPath=function(t,e){var i=e.points,n=e.stackedOnPoints,o=0,r=i.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;0<r&&yc(i[2*r-2],i[2*r-1]);r--);for(;o<r&&yc(i[2*o],i[2*o+1]);o++);}for(;o<r;){var s=mc(t,i,o,r,r,1,e.smooth,a,e.connectNulls);mc(t,n,o+s-1,s,r,-1,e.stackedOnSmooth,a,e.connectNulls),o+=s+1,t.closePath()}};var gC,yC=xc;i(Oc,mC=$w),Oc.prototype.init=function(){var t=new wy,e=new lC;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},Oc.prototype.render=function(t,e,i){function n(t){o._changePolyState(t)}var o=this,r=t.coordinateSystem,a=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),c=s.getLayout("points")||[],p="polar"===r.type,d=this._coordSys,f=this._symbolDraw,g=this._polyline,y=this._polygon,m=this._lineGroup,v=t.get("animation"),_=!u.isEmpty(),x=u.get("origin"),w=fc(r,s,x),w=_&&function(t,e,i){if(!i.valueDim)return[];for(var n=e.count(),o=tu(2*n),r=0;r<n;r++){var a=gc(i,t,e,r);o[2*r]=a[0],o[2*r+1]=a[1]}return o}(r,s,w),b=t.get("showSymbol"),S=b&&!p&&Ic(t,s,r),T=this._data,C=(T&&T.eachItemGraphicEl(function(t,e){t.__temp&&(a.remove(t),T.setItemGraphicEl(e,null))}),b||f.remove(),a.add(m),!p&&t.get("step")),M=(r&&r.getArea&&t.get("clip",!0)&&(null!=(I=r.getArea()).width?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I,Mc(s,r,i)||s.getVisual("style")[s.getVisual("drawType")]),d=(g&&d.type===r.type&&C===this._step?(_&&!y?y=this._newPolygon(c,w):y&&!_&&(m.remove(y),y=this._polygon=null),p||this._initOrUpdateEndLabel(t,r,ca(M)),(d=m.getClipPath())?ir(d,{shape:Pc(this,r,!1,t).shape},t):m.setClipPath(Pc(this,r,!0,t)),b&&f.updateData(s,{isIgnore:S,clipShape:I,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),wc(this._stackedOnPoints,w)&&wc(this._points,c)||(v?this._doUpdateAnimation(s,w,r,i,C,x):(C&&(c=Cc(c,r,C),w=w&&Cc(w,r,C)),g.setShape({points:c}),y&&y.setShape({points:c,stackedOnPoints:w})))):(b&&f.updateData(s,{isIgnore:S,clipShape:I,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),v&&this._initSymbolLabelAnimation(s,r,I),C&&(c=Cc(c,r,C),w=w&&Cc(w,r,C)),g=this._newPolyline(c),_&&(y=this._newPolygon(c,w)),p||this._initOrUpdateEndLabel(t,r,ca(M)),m.setClipPath(Pc(this,r,!0,t))),t.getModel("emphasis")),i=d.get("focus"),b=d.get("blurScope"),f=d.get("disabled"),S=(g.useStyle(h(l.getLineStyle(),{fill:"none",stroke:M,lineJoin:"bevel"})),So(g,t,"lineStyle"),0<g.style.lineWidth&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(g.getState("emphasis").style.lineWidth=+g.style.lineWidth+1),iv(g).seriesIndex=t.seriesIndex,bo(g,i,b,f),Tc(t.get("smooth"))),v=t.get("smoothMonotone"),I=t.get("connectNulls");g.setShape({smooth:S,smoothMonotone:v,connectNulls:I}),y&&(_=s.getCalculationInfo("stackedOnSeries"),p=0,y.useStyle(h(u.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),_&&(p=Tc(_.get("smooth"))),y.setShape({smooth:S,stackedOnSmooth:p,smoothMonotone:v,connectNulls:I}),So(y,t,"areaStyle"),iv(y).seriesIndex=t.seriesIndex,bo(y,i,b,f)),s.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=n)}),this._polyline.onHoverStateChange=n,this._data=s,this._coordSys=r,this._stackedOnPoints=w,this._points=c,this._step=C,this._valueOrigin=x,t.get("triggerLineEvent")&&(this.packEventData(t,g),y)&&this.packEventData(t,y)},Oc.prototype.packEventData=function(t,e){iv(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},Oc.prototype.highlight=function(t,e,i,n){var o=t.getData(),r=qi(o,n);if(this._changePolyState("emphasis"),!(r instanceof Array)&&null!=r&&0<=r){var a=o.getLayout("points");if(!(l=o.getItemGraphicEl(r))){var s=a[2*r],a=a[2*r+1];if(isNaN(s)||isNaN(a))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s,a))return;var l,h=t.get("zlevel"),u=t.get("z"),s=((l=new aC(o,r)).x=s,l.y=a,l.setZ(h,u),l.getSymbolPath().getTextContent());s&&(s.zlevel=h,s.z=u,s.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(r,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else $w.prototype.highlight.call(this,t,e,i,n)},Oc.prototype.downplay=function(t,e,i,n){var o,r=t.getData(),a=qi(r,n);this._changePolyState("normal"),null!=a&&0<=a?(o=r.getItemGraphicEl(a))&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay()):$w.prototype.downplay.call(this,t,e,i,n)},Oc.prototype._changePolyState=function(t){var e=this._polygon;no(this._polyline,t),e&&no(e,t)},Oc.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new pC({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e},Oc.prototype._newPolygon=function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new yC({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i},Oc.prototype._initSymbolLabelAnimation=function(t,e,i){var n,o,r=e.getBaseAxis(),a=r.inverse,r=("cartesian2d"===e.type?(n=r.isHorizontal(),o=!1):"polar"===e.type&&(n="angle"===r.dim,o=!0),t.hostModel),s=r.get("animationDuration"),l=(w(s)&&(s=s(null)),r.get("animationDelay")||0),h=w(l)?l(null):l;t.eachItemGraphicEl(function(t,r){var u,c,p,d,f,g=t;g&&(d=[t.x,t.y],f=c=u=void 0,i&&(f=o?(p=i,d=e.pointToCoord(d),n?(u=p.startAngle,c=p.endAngle,-d[1]/180*Math.PI):(u=p.r0,c=p.r,d[0])):n?(u=i.x,c=i.x+i.width,t.x):(u=i.y+i.height,c=i.y,t.y)),p=c===u?0:(f-u)/(c-u),a&&(p=1-p),d=w(l)?l(r):s*p+h,f=(t=g.getSymbolPath()).getTextContent(),g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:d}),f&&f.animateFrom({style:{opacity:0}},{duration:300,delay:d}),t.disableLabelAnimation=!0)})},Oc.prototype._initOrUpdateEndLabel=function(t,e,i){var n,o,r,a=t.getModel("endLabel");Dc(t)?(n=t.getData(),o=this._polyline,(r=n.getLayout("points"))?(this._endLabel||((this._endLabel=new $m({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0),0<=(r=kc(r))&&(kr(o,Ar(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:r,defaultText:function(t,e,i){if(null==i)return sc(n,t);var o=n,r=i,a=o.mapDimensionsAll("defaultedLabel");if(!x(r))return r+"";for(var s=[],l=0;l<a.length;l++){var h=o.getDimensionIndex(a[l]);0<=h&&s.push(r[h])}return s.join(" ")},enableTextSetter:!0},(i=a,r=(t=(t=e).getBaseAxis()).isHorizontal(),t=t.inverse,a=r?t?"right":"left":"center",r=r?"middle":t?"top":"bottom",{normal:{align:i.get("align")||a,verticalAlign:i.get("verticalAlign")||r}})),o.textConfig.position=null)):(o.removeTextContent(),this._endLabel=null)):this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},Oc.prototype._endLabelOnDuring=function(t,e,i,n,o,r,a){var s,l,h,u,c,p,d,f,g,y,m=this._endLabel,v=this._polyline;m&&(t<1&&null==n.originalX&&(n.originalX=m.x,n.originalY=m.y),s=i.getLayout("points"),g=(l=i.hostModel).get("connectNulls"),h=r.get("precision"),r=r.get("distance")||0,c=(a=a.getBaseAxis()).isHorizontal(),a=a.inverse,e=e.shape,u=(c?r:0)*(a?-1:1),r=(c?0:-r)*(a?-1:1),d=void 0,1<=(f=(p=(c=function(t,e,i){for(var n,o,r=t.length/2,a="x"===i?0:1,s=0,l=-1,h=0;h<r;h++)if(o=t[2*h+a],!isNaN(o)&&!isNaN(t[2*h+1-a])){if(0!==h){if(n<=e&&e<=o||e<=n&&o<=e){l=h;break}s=h}n=o}return{range:[s,l],t:(e-n)/(o-n)}}(s,a=a?c?e.x:e.y+e.height:c?e.x+e.width:e.y,e=c?"x":"y")).range)[1]-p[0])?(1<f&&!g?(y=Ac(s,p[0]),m.attr({x:y[0]+u,y:y[1]+r}),o&&(d=l.getRawValue(p[0]))):((y=v.getPointOn(a,e))&&m.attr({x:y[0]+u,y:y[1]+r}),f=l.getRawValue(p[0]),g=l.getRawValue(p[1]),o&&(d=tn(i,h,f,g,c.t))),n.lastFrameIndex=p[0]):(y=Ac(s,v=1===t||0<n.lastFrameIndex?p[0]:0),o&&(d=l.getRawValue(v)),m.attr({x:y[0]+u,y:y[1]+r})),o)&&H_(m).setLabelText(d)},Oc.prototype._doUpdateAnimation=function(t,e,i,n,o,r){var a=this._polyline,s=this._polygon,l=t.hostModel,e=function(t,e,i,n,o,r){a=[],e.diff(t).add(function(t){a.push({cmd:"+",idx:t})}).update(function(t,e){a.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){a.push({cmd:"-",idx:t})}).execute();for(var a,s=a,l=[],h=[],u=[],c=[],p=[],d=[],f=[],g=fc(o,e,r),y=t.getLayout("points")||[],m=e.getLayout("points")||[],v=0;v<s.length;v++){var _=s[v],x=!0,w=void 0;switch(_.cmd){case"=":var b=2*_.idx,w=2*_.idx1,S=y[b],T=y[1+b],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=o.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=gc(g,o,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=tu(r=l.length),k=tu(r),A=tu(r),D=tu(r),P=[],v=0;v<d.length;v++){var O=d[v],L=2*v,E=2*O;I[L]=l[E],I[1+L]=l[1+E],k[L]=h[E],k[1+L]=h[1+E],A[L]=u[E],A[1+L]=u[1+E],D[L]=c[E],D[1+L]=c[1+E],P[v]=p[O]}return{current:I,next:k,stackedOnCurrent:A,stackedOnNext:D,status:P}}(this._data,t,this._stackedOnPoints,e,this._coordSys,this._valueOrigin),h=e.current,u=e.stackedOnCurrent,c=e.next,p=e.stackedOnNext;if(o&&(h=Cc(e.current,i,o),u=Cc(e.stackedOnCurrent,i,o),c=Cc(e.next,i,o),p=Cc(e.stackedOnNext,i,o)),3e3<Sc(h,c)||s&&3e3<Sc(u,p))a.stopAnimation(),a.setShape({points:c}),s&&(s.stopAnimation(),s.setShape({points:c,stackedOnPoints:p}));else{a.shape.__points=e.current,a.shape.points=h;for(var d,i={shape:{points:c}},f=(e.current!==h&&(i.shape.__points=e.next),a.stopAnimation(),er(a,i,l),s&&(s.setShape({points:h,stackedOnPoints:u}),s.stopAnimation(),er(s,{shape:{stackedOnPoints:p}},l),a.shape.points!==s.shape.points)&&(s.shape.points=a.shape.points),[]),g=e.status,y=0;y<g.length;y++)"="===g[y].cmd&&(d=t.getItemGraphicEl(g[y].idx1))&&f.push({el:d,ptIdx:y});a.animators&&a.animators.length&&a.animators[0].during(function(){s&&s.dirtyShape();for(var t=a.shape.__points,e=0;e<f.length;e++){var i=f[e].el,n=2*f[e].ptIdx;i.x=t[n],i.y=t[1+n],i.markRedraw()}})}},Oc.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},Oc.type="line";var mC,vC=Oc,_C={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},nearest:function(t){return t[0]}},xC=function(t){return Math.round(t.length/2)};xu(function(t){var e;t.registerChartView(vC),t.registerSeriesModel(oC),t.registerLayout((e=!0,{seriesType:"line",plan:ol(),reset:function(t){var i,n,o,r,a,s=t.getData(),l=t.coordinateSystem,t=t.pipelineContext,h=e||t.large;if(l)return t=g(l.dimensions,function(t){return s.mapDimension(t)}).slice(0,2),i=t.length,n=s.getCalculationInfo("stackResultDimension"),zh(s,t[0])&&(t[0]=n),zh(s,t[1])&&(t[1]=n),o=s.getStore(),r=s.getDimensionIndex(t[0]),a=s.getDimensionIndex(t[1]),i&&{progress:function(t,e){for(var n=t.end-t.start,s=h&&tu(n*i),u=[],c=[],p=t.start,d=0;p<t.end;p++){var f,g=void 0;g=1===i?(f=o.get(r,p),l.dataToPoint(f,null,c)):(u[0]=o.get(r,p),u[1]=o.get(a,p),l.dataToPoint(u,null,c)),h?(s[d++]=g[0],s[d++]=g[1]):e.setItemLayout(p,g.slice())}h&&e.setLayout("points",s)}}}})),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),t=t.getModel("lineStyle").getLineStyle();t&&!t.stroke&&(t.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",t)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{seriesType:"line",reset:function(t,e,i){var n,o=t.getData(),r=t.get("sampling"),a=t.coordinateSystem,s=o.count();10<s&&"cartesian2d"===a.type&&r&&(n=a.getBaseAxis(),a=a.getOtherAxis(n),n=n.getExtent(),i=i.getDevicePixelRatio(),n=Math.abs(n[1]-n[0])*(i||1),1<(i=Math.round(s/n)))&&("lttb"===r&&t.setData(o.lttbDownSample(o.mapDimension(a.dim),1/i)),s=void 0,b(r)?s=_C[r]:w(r)&&(s=r),s)&&t.setData(o.downSample(o.mapDimension(a.dim),1/i,s,xC))}})}),i(Lc,wC=Dx),Lc.type="grid",Lc.dependencies=["xAxis","yAxis"],Lc.layoutMode="box",Lc.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"};var wC,bC=Lc;i(Ec,SC=Dx),Ec.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Oy).models[0]},Ec.type="cartesian2dAxis";var SC,TC=Ec;p(TC,_T);var q_={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Ny=s({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},q_),_b=s({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},q_),CC={category:Ny,value:_b,time:s({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},_b),log:h({logBase:10},_b)},MC={value:1,category:1,time:1,log:1};Bc.prototype.getAxis=function(t){return this._axes[t]},Bc.prototype.getAxes=function(){return g(this._dimList,function(t){return this._axes[t]},this)},Bc.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),m(this.getAxes(),function(e){return e.scale.type===t})},Bc.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)};var IC=["x","y"];i(Fc,kC=Bc),Fc.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,i,n,o=this.getAxis("x").scale,r=this.getAxis("y").scale;zc(o)&&zc(r)&&(o=o.getExtent(),r=r.getExtent(),n=this.dataToPoint([o[0],r[0]]),e=this.dataToPoint([o[1],r[1]]),t=o[1]-o[0],i=r[1]-r[0],t)&&i&&(t=(e[0]-n[0])/t,e=(e[1]-n[1])/i,i=n[0]-o[0]*t,o=n[1]-r[0]*e,n=this._transform=[t,0,0,e,i,o],this._invTransform=Ke([],n))},Fc.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},Fc.prototype.containPoint=function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},Fc.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},Fc.prototype.dataToPoint=function(t,e,i){i=i||[];var n,o=t[0],r=t[1];return this._transform&&null!=o&&isFinite(o)&&null!=r&&isFinite(r)?at(i,t,this._transform):(t=this.getAxis("x"),n=this.getAxis("y"),i[0]=t.toGlobalCoord(t.dataToCoord(o,e)),i[1]=n.toGlobalCoord(n.dataToCoord(r,e)),i)},Fc.prototype.clampData=function(t,e){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,o=i.getExtent(),r=n.getExtent(),i=i.parse(t[0]),n=n.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(o[0],o[1]),i),Math.max(o[0],o[1])),e[1]=Math.min(Math.max(Math.min(r[0],r[1]),n),Math.max(r[0],r[1])),e},Fc.prototype.pointToData=function(t,e){var i,n,o=[];return this._invTransform?at(o,t,this._invTransform):(i=this.getAxis("x"),n=this.getAxis("y"),o[0]=i.coordToData(i.toLocalCoord(t[0]),e),o[1]=n.coordToData(n.toLocalCoord(t[1]),e),o)},Fc.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},Fc.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1]),n=Math.min(e[0],e[1]),t=Math.max(t[0],t[1])-i,e=Math.max(e[0],e[1])-n;return new py(i,n,t,e)};var kC,AC=Fc;i(Vc,DC=Q_),Vc.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},Vc.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},Vc.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},Vc.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var DC,PC=Vc,OC=Math.log;Xc.prototype.getRect=function(){return this._rect},Xc.prototype.update=function(t,e){function i(t){var e,i=v(t),n=i.length;if(n){for(var o=[],r=n-1;0<=r;r--){var a=t[+i[r]],s=a.model,l=a.scale;Xh(l)&&s.get("alignTicks")&&null==s.get("interval")?o.push(a):(pu(l,s),Xh(l)&&(e=a))}o.length&&(e||pu((e=o.pop()).scale,e.model),f(o,function(t){var i=t.scale,t=t.model,n=e.scale,o=eT.prototype,r=o.getTicks.call(n),a=o.getTicks.call(n,!0),s=r.length-1,n=o.getInterval.call(n),l=(t=cu(i,t)).extent,h=t.fixMin,t=t.fixMax,u=("log"===i.type&&(u=OC(i.base),l=[OC(l[0])/u,OC(l[1])/u]),i.setExtent(l[0],l[1]),i.calcNiceExtent({splitNumber:s,fixMin:h,fixMax:t}),o.getExtent.call(i)),c=(h&&(l[0]=u[0]),t&&(l[1]=u[1]),o.getInterval.call(i)),p=l[0],d=l[1];if(h&&t)c=(d-p)/s;else if(h)for(d=l[0]+c*s;d<l[1]&&isFinite(d)&&isFinite(l[1]);)c=Gh(c),d=l[0]+c*s;else if(t)for(p=l[1]-c*s;p>l[0]&&isFinite(p)&&isFinite(l[0]);)c=Gh(c),p=l[1]-c*s;else u=(c=s<i.getTicks().length-1?Gh(c):c)*s,(p=bi((d=Math.ceil(l[1]/c)*c)-u))<0&&0<=l[0]?(p=0,d=bi(u)):0<d&&l[1]<=0&&(d=0,p=-bi(u));h=(r[0].value-a[0].value)/n,t=(r[s].value-a[s].value)/n,o.setExtent.call(i,p+c*h,d+c*t),o.setInterval.call(i,c),(h||t)&&o.setNiceExtent.call(i,p+c,d-c)}))}}var n=this._axesMap;this._updateScale(t,this.model),i(n.x),i(n.y);var o={};f(n.x,function(t){Gc(n,"y",t,o)}),f(n.y,function(t){Gc(n,"x",t,o)}),this.resize(this.model,e)},Xc.prototype.resize=function(t,e,i){function n(){f(a,function(t){var e,i,n=t.isHorizontal(),o=n?[0,r.width]:[0,r.height],a=t.inverse?1:0;t.setExtent(o[a],o[1-a]),o=t,e=n?r.x:r.y,a=o.getExtent(),i=a[0]+a[1],o.toGlobalCoord="x"===o.dim?function(t){return t+e}:function(t){return i-t+e},o.toLocalCoord="x"===o.dim?function(t){return t-e}:function(t){return i-t+e}})}var o=t.getBoxLayoutParams(),i=!i&&t.get("containLabel"),r=fa(o,{width:e.getWidth(),height:e.getHeight()}),a=(this._rect=r,this._axesList);n(),i&&(f(a,function(t){var e,i,n;t.model.get(["axisLabel","inside"])||(e=yu(t))&&(i=t.isHorizontal()?"height":"width",n=t.model.get(["axisLabel","margin"]),r[i]-=e[i]+n,"top"===t.position?r.y+=e.height+n:"left"===t.position&&(r.x+=e.width+n))}),n()),f(this._coordsList,function(t){t.calcAffineTransform()})},Xc.prototype.getAxis=function(t,e){if(null!=(t=this._axesMap[t]))return t[e||0]},Xc.prototype.getAxes=function(){return this._axesList.slice()},Xc.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]},Xc.prototype.getCartesians=function(){return this._coordsList.slice()},Xc.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},Xc.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},Xc.prototype._findConvertTarget=function(t){var e,i,n=t.seriesModel,o=t.xAxisModel||n&&n.getReferringComponents("xAxis",Oy).models[0],r=t.yAxisModel||n&&n.getReferringComponents("yAxis",Oy).models[0],t=t.gridModel,a=this._coordsList;return n?u(a,e=n.coordinateSystem)<0&&(e=null):o&&r?e=this.getCartesian(o.componentIndex,r.componentIndex):o?i=this.getAxis("x",o.componentIndex):r?i=this.getAxis("y",r.componentIndex):t&&t.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:i}},Xc.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},Xc.prototype._initCartesian=function(t,e,i){function n(e){return function(i,n){var o,h;Uc(i,t)&&(o=i.get("position"),"x"===e?"top"!==o&&"bottom"!==o&&(o=a.bottom?"top":"bottom"):"left"!==o&&"right"!==o&&(o=a.left?"right":"left"),a[o]=!0,h="category"===(o=new PC(e,du(i),[0,0],i.get("type"),o)).type,o.onBand=h&&i.get("boundaryGap"),o.inverse=i.get("inverse"),(i.axis=o).model=i,o.grid=r,o.index=n,r._axesList.push(o),s[e][n]=o,l[e]++)}}var o=this,r=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};e.eachComponent("xAxis",n("x"),this),e.eachComponent("yAxis",n("y"),this),l.x&&l.y?f((this._axesMap=s).x,function(e,i){f(s.y,function(n,r){var r="x"+i+"y"+r,a=new AC(r);a.master=o,a.model=t,o._coordsMap[r]=a,o._coordsList.push(a),a.addAxis(e),a.addAxis(n)})}):(this._axesMap={},this._axesList=[])},Xc.prototype._updateScale=function(t,e){function i(t,e){var i,n,o;f((i=t,n=e.dim,o={},f(i.mapDimensionsAll(n),function(t){o[Fh(i,t)]=!0}),v(o)),function(i){e.scale.unionExtentFromData(t,i)})}f(this._axesList,function(t){var e;t.scale.setExtent(1/0,-1/0),"category"===t.type&&(e=t.model.get("categorySortInfo"),t.scale.setSortInfo(e))}),t.eachSeries(function(t){var n,o;Hc(t)&&(o=(n=Wc(t)).xAxisModel,n=n.yAxisModel,Uc(o,e))&&Uc(n,e)&&(o=this.getCartesian(o.componentIndex,n.componentIndex),n=t.getData(),t=o.getAxis("x"),o=o.getAxis("y"),i(n,t),i(n,o))},this)},Xc.prototype.getTooltipAxes=function(t){var e=[],i=[];return f(this.getCartesians(),function(n){var o=null!=t&&"auto"!==t?n.getAxis(t):n.getBaseAxis(),n=n.getOtherAxis(o);u(e,o)<0&&e.push(o),u(i,n)<0&&i.push(n)}),{baseAxes:e,otherAxes:i}},Xc.create=function(t,e){var i=[];return t.eachComponent("grid",function(n,o){var r=new Xc(n,t,e);r.name="grid_"+o,r.resize(n,e,!0),n.coordinateSystem=r,i.push(r)}),t.eachSeries(function(t){var e,i,n;Hc(t)&&(e=(i=Wc(t)).xAxisModel,i=i.yAxisModel,n=e.getCoordSysModel().coordinateSystem,t.coordinateSystem=n.getCartesian(e.componentIndex,i.componentIndex))}),i},Xc.dimensions=IC;var LC,EC,RC,NC=Xc,BC=Math.PI,zC=(qc.prototype.hasBuilder=function(t){return!!FC[t]},qc.prototype.add=function(t){FC[t](this.opt,this.axisModel,this.group,this._transformGroup)},qc.prototype.getGroup=function(){return this.group},qc.innerTextLayout=function(t,e,i){var n,e=Mi(e-t),t=Ii(e)?(n=0<i?"top":"bottom","center"):Ii(e-BC)?(n=0<i?"bottom":"top","center"):(n="middle",0<e&&e<BC?0<i?"right":"left":0<i?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:n}},qc.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},qc.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},qc),FC={axisLine:function(t,e,i,n){var o,r,a,s,h,u=e.get(["axisLine","show"]);(u="auto"===u&&t.handleAutoShown?t.handleAutoShown("axisLine"):u)&&(u=e.axis.getExtent(),n=n.transform,o=[u[0],0],u=[u[1],0],n&&(at(o,o,n),at(u,u,n)),r=l({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),(n=new u_({subPixelOptimize:!0,shape:{x1:o[0],y1:o[1],x2:u[0],y2:u[1]},style:r,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})).anid="line",i.add(n),null!=(a=e.get(["axisLine","symbol"])))&&(n=e.get(["axisLine","symbolSize"]),b(a)&&(a=[a,a]),(b(n)||T(n))&&(n=[n,n]),e=Ol(e.get(["axisLine","symbolOffset"])||0,n),s=n[0],h=n[1],f([{rotate:t.rotation+Math.PI/2,offset:e[0],r:0},{rotate:t.rotation-Math.PI/2,offset:e[1],r:Math.sqrt((o[0]-u[0])*(o[0]-u[0])+(o[1]-u[1])*(o[1]-u[1]))}],function(e,n){var l;"none"!==a[n]&&null!=a[n]&&(n=Pl(a[n],-s/2,-h/2,s,h,r.stroke,!0),l=e.r+e.offset,n.attr({rotation:e.rotate,x:o[0]+l*Math.cos(t.rotation),y:o[1]-l*Math.sin(t.rotation),silent:!0,z2:11}),i.add(n))}))},axisTickLabel:function(t,e,i,n){var o,r,a,s,l,u=function(t,e,i,n){var o=i.axis,r=i.getModel("axisTick"),a=r.get("show");if("auto"===a&&n.handleAutoShown&&(a=n.handleAutoShown("axisTick")),a&&!o.scale.isBlank()){for(var a=r.getModel("lineStyle"),n=n.tickDirection*r.get("length"),s=$c(o.getTicksCoords(),e.transform,n,h(a.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),l=0;l<s.length;l++)t.add(s[l]);return s}}(i,n,e,t),c=function(t,e,i,n){var o,r,a,s,l,h,u,c,p=i.axis,d=L(n.axisLabelShow,i.get(["axisLabel","show"]));if(d&&!p.scale.isBlank())return o=i.getModel("axisLabel"),r=o.get("margin"),d=p.getViewLabels(),a=(L(n.labelRotate,o.get("rotate"))||0)*BC/180,s=zC.innerTextLayout(n.rotation,a,n.labelDirection),l=i.getCategories&&i.getCategories(!0),h=[],u=zC.isLabelSilent(i),c=i.get("triggerEvent"),f(d,function(a,d){var f="ordinal"===p.scale.type?p.scale.getRawOrdinalNumber(a.tickValue):a.tickValue,g=a.formattedLabel,y=a.rawLabel,m=o,v=(m=l&&l[f]&&C(v=l[f])&&v.textStyle?new J_(v.textStyle,o,i.ecModel):m).getTextColor()||i.get(["axisLine","lineStyle","color"]),_=p.dataToCoord(f),_=new $m({x:_,y:n.labelOffset+n.labelDirection*r,rotation:s.rotation,silent:u,z2:10+(a.level||0),style:Dr(m,{text:g,align:m.getShallow("align",!0)||s.textAlign,verticalAlign:m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||s.textVerticalAlign,fill:w(v)?v("category"===p.type?y:"value"===p.type?f+"":f,d):v})});_.anid="label_"+f,c&&((a=zC.makeAxisEventDataBase(i)).targetType="axisLabel",a.value=y,iv(_).eventData=a),e.add(_),_.updateTransform(),h.push(_),t.add(_),_.decomposeTransform()}),h}(i,n,e,t),p=(r=c,u=u,vu((o=e).axis)||(y=o.get(["axisLabel","showMinLabel"]),o=o.get(["axisLabel","showMaxLabel"]),u=u||[],_=(r=r||[])[0],m=r[1],a=r[r.length-1],r=r[r.length-2],s=u[0],v=u[1],l=u[u.length-1],u=u[u.length-2],!1===y?(Zc(_),Zc(s)):Kc(_,m)&&(y?(Zc(m),Zc(v)):(Zc(_),Zc(s))),!1===o?(Zc(a),Zc(l)):Kc(r,a)&&(o?(Zc(r),Zc(u)):(Zc(a),Zc(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=$c(x[T],d.transform,b,S,"minorticks_"+T),I=0;I<M.length;I++)p.add(M[I])}e.get(["axisLabel","hideOverlap"])&&Zu(ju(g(c,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})))},axisName:function(t,e,i,n){var o,r,a,s,l,h,u,c,p=L(t.axisName,e.get("name"));p&&(c=e.get("nameLocation"),l=t.nameDirection,o=e.getModel("nameTextStyle"),h=e.get("nameGap")||0,r=(u=e.axis.getExtent())[0]>u[1]?-1:1,r=["start"===c?u[0]-r*h:"end"===c?u[1]+r*h:(u[0]+u[1])/2,Qc(c)?t.labelOffset+l*h:0],null!=(h=e.get("nameRotate"))&&(h=h*BC/180),Qc(c)?a=zC.innerTextLayout(t.rotation,null!=h?h:t.rotation,l):(a=function(t,e,i,n){var o,i=Mi(i-t),t=n[0]>n[1],n="start"===e&&!t||"start"!==e&&t;return e=Ii(i-BC/2)?(o=n?"bottom":"top","center"):Ii(i-1.5*BC)?(o=n?"top":"bottom","center"):(o="middle",i<1.5*BC&&BC/2<i?n?"left":"right":n?"right":"left"),{rotation:i,textAlign:e,textVerticalAlign:o}}(t.rotation,c,h||0,u),null!=(s=t.axisNameAvailableWidth)&&(s=Math.abs(s/Math.sin(a.rotation)),isFinite(s)||(s=null))),l=o.getFont(),h=(c=e.get("nameTruncate",!0)||{}).ellipsis,u=L(t.nameTruncateMaxWidth,c.maxWidth,s),Sr({el:t=new $m({x:r[0],y:r[1],rotation:a.rotation,silent:zC.isLabelSilent(e),style:Dr(o,{text:p,font:l,overflow:"truncate",width:u,ellipsis:h,fill:o.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:o.get("align")||a.textAlign,verticalAlign:o.get("verticalAlign")||a.textVerticalAlign}),z2:1}),componentModel:e,itemName:p}),t.__fullText=p,t.anid="name",e.get("triggerEvent")&&((c=zC.makeAxisEventDataBase(e)).targetType="axisName",c.name=p,iv(t).eventData=c),n.add(t),t.updateTransform(),i.add(t),t.decomposeTransform())}},VC={},YC=(i(op,LC=Zw),op.prototype.render=function(t,e,i,n){var o,r,a,s,l,h;this.axisPointerClass&&(o=ep(o=t))&&(l=o.axisPointerModel,r=o.axis.scale,a=l.option,h=l.get("status"),null!=(s=l.get("value"))&&(s=r.parse(s)),l=ip(l),null==h&&(a.status=l?"show":"hide"),(h=r.getExtent().slice())[0]>h[1]&&h.reverse(),(s=null==s||s>h[1]?h[1]:s)<h[0]&&(s=h[0]),a.value=s,l)&&(a.status=o.axis.scale.isBlank()?"hide":"show"),LC.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},op.prototype.updateAxisPointer=function(t,e,i,n){this._doUpdateAxisPointerClass(t,i,!1)},op.prototype.remove=function(t,e){var i=this._axisPointer;i&&i.remove(e)},op.prototype.dispose=function(t,e){this._disposeAxisPointer(e),LC.prototype.dispose.apply(this,arguments)},op.prototype._doUpdateAxisPointerClass=function(t,e,i){var n,o=op.getAxisPointerClass(this.axisPointerClass);o&&((n=(n=ep(n=t))&&n.axisPointerModel)?(this._axisPointer||(this._axisPointer=new o)).render(t,n,e,i):this._disposeAxisPointer(e))},op.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},op.registerAxisPointerClass=function(t,e){VC[t]=e},op.getAxisPointerClass=function(t){return t&&VC[t]},op.type="axis",op),HC=Zi(),WC=["axisLine","axisTickLabel","axisName"],XC=["splitArea","splitLine","minorSplitLine"],Sb=(i(rp,EC=YC),rp.prototype.render=function(t,e,i,n){this.group.removeAll();var o,r,a=this._axisGroup;this._axisGroup=new wy,this.group.add(this._axisGroup),t.get("show")&&(r=Yc(o=t.getCoordSysModel(),t),r=new zC(t,l({handleAutoShown:function(e){for(var i=o.coordinateSystem.getCartesians(),n=0;n<i.length;n++)if(Xh(i[n].getOtherAxis(t.axis).scale))return!0;return!1}},r)),f(WC,r.add,r),this._axisGroup.add(r.getGroup()),f(XC,function(e){t.get([e,"show"])&&UC[e](this,this._axisGroup,t,o)},this),n&&"changeAxisOrder"===n.type&&n.isInitSort||vr(a,this._axisGroup,t),EC.prototype.render.call(this,t,e,i,n))},rp.prototype.remove=function(){HC(this).splitAreaColors=null},rp.type="cartesianAxis",rp),UC={splitLine:function(t,e,i,n){var o=i.axis;if(!o.scale.isBlank())for(var i=i.getModel("splitLine"),r=i.getModel("lineStyle"),a=x(a=r.get("color"))?a:[a],s=n.coordinateSystem.getRect(),l=o.isHorizontal(),u=0,c=o.getTicksCoords({tickModel:i}),p=[],d=[],f=r.getLineStyle(),g=0;g<c.length;g++){var y=o.toGlobalCoord(c[g].coord),y=(l?(p[0]=y,p[1]=s.y,d[0]=y,d[1]=s.y+s.height):(p[0]=s.x,p[1]=y,d[0]=s.x+s.width,d[1]=y),u++%a.length),m=c[g].tickValue;e.add(new u_({anid:null!=m?"line_"+c[g].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:h({stroke:a[y]},f),silent:!0}))}},minorSplitLine:function(t,e,i,n){var o=i.axis,i=i.getModel("minorSplitLine").getModel("lineStyle"),r=n.coordinateSystem.getRect(),a=o.isHorizontal(),s=o.getMinorTicksCoords();if(s.length)for(var l=[],h=[],u=i.getLineStyle(),c=0;c<s.length;c++)for(var p=0;p<s[c].length;p++){var d=o.toGlobalCoord(s[c][p].coord);a?(l[0]=d,l[1]=r.y,h[0]=d,h[1]=r.y+r.height):(l[0]=r.x,l[1]=d,h[0]=r.x+r.width,h[1]=d),e.add(new u_({anid:"minor_line_"+s[c][p].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:l[0],y1:l[1],x2:h[0],y2:h[1]},style:u,silent:!0}))}},splitArea:function(t,e,i,n){var o=e,e=n,r=(n=i).axis;if(!r.scale.isBlank()){var n=n.getModel("splitArea"),i=n.getModel("areaStyle"),a=i.get("color"),s=e.coordinateSystem.getRect(),l=r.getTicksCoords({tickModel:n,clamp:!0});if(l.length){var u=a.length,c=HC(t).splitAreaColors,p=W(),d=0;if(c)for(var f=0;f<l.length;f++){var g=c.get(l[f].tickValue);if(null!=g){d=(g+(u-1)*f)%u;break}}for(var y=r.toGlobalCoord(l[0].coord),m=i.getAreaStyle(),a=x(a)?a:[a],f=1;f<l.length;f++){var v=r.toGlobalCoord(l[f].coord),_=void 0,w=void 0,b=void 0,S=void 0,y=r.isHorizontal()?(_=y,w=s.y,S=s.height,_+(b=v-_)):(_=s.x,w=y,b=s.width,w+(S=v-w)),v=l[f-1].tickValue;null!=v&&p.set(v,d),o.add(new qm({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}HC(t).splitAreaColors=p}}}},GC=(i(ap,RC=Sb),ap.type="xAxis",ap);i(sp,jC=Sb),sp.type="yAxis";var jC,qC=sp;i(lp,ZC=Zw),lp.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new qm({shape:t.coordinateSystem.getRect(),style:h({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},lp.type="grid";var ZC,KC=lp,QC={offset:0};xu(function(t){t.registerComponentView(KC),t.registerComponentModel(bC),t.registerCoordinateSystem("cartesian2d",NC),Rc(t,"x",TC,QC),Rc(t,"y",TC,QC),t.registerComponentView(GC),t.registerComponentView(qC),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}),i(hp,$C=Dx),hp.type="title",hp.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 $C,JC=hp;i(up,tM=Zw),up.prototype.render=function(t,e,i){var n,o,r,a,s,l,h,u,c;this.group.removeAll(),t.get("show")&&(n=this.group,h=t.getModel("textStyle"),o=t.getModel("subtextStyle"),u=t.get("textAlign"),c=E(t.get("textBaseline"),t.get("textVerticalAlign")),s=(h=new $m({style:Dr(h,{text:t.get("text"),fill:h.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),l=t.get("subtext"),o=new $m({style:Dr(o,{text:l,fill:o.getTextColor(),y:s.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),r=t.get("link"),a=t.get("sublink"),s=t.get("triggerEvent",!0),h.silent=!r&&!s,o.silent=!a&&!s,r&&h.on("click",function(){pa(r,"_"+t.get("target"))}),a&&o.on("click",function(){pa(a,"_"+t.get("subtarget"))}),iv(h).eventData=iv(o).eventData=s?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(h),l&&n.add(o),s=n.getBoundingRect(),(l=t.getBoxLayoutParams()).width=s.width,l.height=s.height,l=fa(l,{width:i.getWidth(),height:i.getHeight()},t.get("padding")),u||("right"===(u="middle"===(u=t.get("left")||t.get("right"))?"center":u)?l.x+=l.width:"center"===u&&(l.x+=l.width/2)),c||("bottom"===(c="center"===(c=t.get("top")||t.get("bottom"))?"middle":c)?l.y+=l.height:"middle"===c&&(l.y+=l.height/2),c=c||"top"),n.x=l.x,n.y=l.y,n.markRedraw(),h.setStyle(i={align:u,verticalAlign:c}),o.setStyle(i),s=n.getBoundingRect(),h=l.margin,(u=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),c=new qm({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))},up.type="title";var tM,eM=up;xu(function(t){t.registerComponentModel(JC),t.registerComponentView(eM)}),i(cp,iM=Dx),cp.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},cp.prototype.mergeOption=function(t,e){iM.prototype.mergeOption.call(this,t,e),this._updateSelector(t)},cp.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))})},cp.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"))}},cp.prototype._updateData=function(t){var e=[],i=[];t.eachRawSeries(function(n){var o,r=n.name;i.push(r),n.legendVisualProvider&&(r=n.legendVisualProvider.getAllNames(),t.isSeriesFiltered(n)||(i=i.concat(r)),r.length)?e=e.concat(r):o=!0,o&&Ui(n)&&e.push(n.name)}),this._availableNames=i;var n=g(this.get("data")||e,function(t){return(b(t)||T(t))&&(t={name:t}),new J_(t,this,this.ecModel)},this);this._data=n},cp.prototype.getData=function(){return this._data},cp.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&f(this._data,function(t){e[t.get("name")]=!1}),e[t]=!0},cp.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},cp.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},cp.prototype.allSelect=function(){var t=this._data,e=this.option.selected;f(t,function(t){e[t.get("name",!0)]=!0})},cp.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;f(t,function(t){t=t.get("name",!0),e.hasOwnProperty(t)||(e[t]=!0),e[t]=!e[t]})},cp.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&0<=u(this._availableNames,t)},cp.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},cp.type="legend.plain",cp.dependencies=["series"],cp.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}};var iM,nM,oM=cp,rM=_,aM=f,sM=wy,lM=(i(pp,nM=Zw),pp.prototype.init=function(){this.group.add(this._contentGroup=new sM),this.group.add(this._selectorGroup=new sM),this._isFirstRender=!0},pp.prototype.getContentGroup=function(){return this._contentGroup},pp.prototype.getSelectorGroup=function(){return this._selectorGroup},pp.prototype.render=function(t,e,i){var n,o,r,a,s,l=this._isFirstRender;this._isFirstRender=!1,this.resetInner(),t.get("show",!0)&&(o=t.get("align"),n=t.get("orient"),o&&"auto"!==o||(o="right"===t.get("left")&&"vertical"===n?"right":"left"),a=t.get("selector",!0),s=t.get("selectorPosition",!0),this.renderInner(o,t,e,i,a,n,s=!a||s&&"auto"!==s?s:"horizontal"===n?"end":"start"),r=fa(e=t.getBoxLayoutParams(),n={width:i.getWidth(),height:i.getHeight()},i=t.get("padding")),r=fa(h({width:(o=this.layoutInner(t,o,r,l,a,s)).width,height:o.height},e),n,i),this.group.x=r.x-o.x,this.group.y=r.y-o.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(l=o,s=yx((a=t).get("padding")),(e=a.getItemStyle(["color","opacity"])).fill=a.get("backgroundColor"),l=new qm({shape:{x:l.x-s[3],y:l.y-s[0],width:l.width+s[1]+s[3],height:l.height+s[0]+s[2],r:a.get("borderRadius")},style:e,silent:!0,z2:-1}))))},pp.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},pp.prototype.renderInner=function(t,e,i,n,o,r,a){var s=this.getContentGroup(),h=W(),u=e.get("selectedMode"),c=[];i.eachRawSeries(function(t){t.get("legendHoverLink")||c.push(t.id)}),aM(e.getData(),function(o,r){var a,p,d,f,g=o.get("name");this.newlineDisabled||""!==g&&"\n"!==g?(a=i.getSeriesByName(g)[0],h.get(g)||(a?(p=(f=a.getData()).getVisual("legendLineStyle")||{},d=f.getVisual("legendIcon"),f=f.getVisual("style"),this._createItem(a,g,r,o,e,t,p,f,d,u).on("click",rM(dp,g,null,n,c)).on("mouseover",rM(gp,a.name,null,n,c)).on("mouseout",rM(yp,a.name,null,n,c)),h.set(g,!0)):i.eachRawSeries(function(i){var a,s,p;h.get(g)||i.legendVisualProvider&&(s=i.legendVisualProvider).containName(g)&&(p=s.indexOfName(g),a=s.getItemVisual(p,"style"),s=s.getItemVisual(p,"legendIcon"),(p=ae(a.fill))&&0===p[3]&&(p[3]=.2,a=l(l({},a),{fill:ce(p,"rgba")})),this._createItem(i,g,r,o,e,t,{},a,s,u).on("click",rM(dp,null,g,n,c)).on("mouseover",rM(gp,null,g,n,c)).on("mouseout",rM(yp,null,g,n,c)),h.set(g,!0))},this))):((p=new sM).newline=!0,s.add(p))},this),o&&this._createSelector(o,e,n,r,a)},pp.prototype._createSelector=function(t,e,i,n,o){var r=this.getSelectorGroup();aM(t,function(t){var n=t.type,o=new $m({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===n?"legendAllSelect":"legendInverseSelect"})}});r.add(o),kr(o,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),wo(o)})},pp.prototype._createItem=function(t,e,i,n,o,r,a,s,l,h){var u=t.visualDrawType,c=o.get("itemWidth"),p=o.get("itemHeight"),d=o.isSelected(e),f=n.get("symbolRotate"),g=n.get("symbolKeepAspect"),y=n.get("icon"),a=function(t,e,i,n,o,r){function a(t,e){"auto"===t.lineWidth&&(t.lineWidth=0<e.lineWidth?2:0),aM(t,function(i,n){"inherit"===t[n]&&(t[n]=e[n])})}var s=e.getModel("itemStyle").getItemStyle(),t=0===t.lastIndexOf("empty",0)?"fill":"stroke";s.decal=n.decal,"inherit"===s.fill&&(s.fill=n[o]),"inherit"===s.stroke&&(s.stroke=n[t]),"inherit"===s.opacity&&(s.opacity=("fill"===o?n:i).opacity),a(s,n);var o=e.getModel("lineStyle"),l=o.getLineStyle();return a(l,i),"auto"===s.fill&&(s.fill=n.fill),"auto"===s.stroke&&(s.stroke=n.fill),"auto"===l.stroke&&(l.stroke=n.fill),r||(i=e.get("inactiveBorderWidth"),r=s[t],s.lineWidth="auto"===i?0<n.lineWidth&&r?2:0:s.lineWidth,s.fill=e.get("inactiveColor"),s.stroke=e.get("inactiveBorderColor"),l.stroke=o.get("inactiveColor"),l.lineWidth=o.get("inactiveWidth")),{itemStyle:s,lineStyle:l}}(l=y||l||"roundRect",n,a,s,u,d),s=new sM,u=n.getModel("textStyle"),y=(!w(t.getLegendIcon)||y&&"inherit"!==y?(y="inherit"===y&&t.getData().getVisual("symbol")?"inherit"===f?t.getData().getVisual("symbolRotate"):f:0,s.add(function(t){var e=t.icon||"roundRect",i=Pl(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:c,itemHeight:p,icon:l,iconRotate:y,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:g}))):s.add(t.getLegendIcon({itemWidth:c,itemHeight:p,icon:l,iconRotate:f,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:g})),"left"===r?c+5:-5),t=r,l=o.get("formatter"),f=e,a=(b(l)&&l?f=l.replace("{name}",null!=e?e:""):w(l)&&(f=l(e)),n.get("inactiveColor")),g=(s.add(new $m({style:Dr(u,{text:f,x:y,y:p/2,fill:d?u.getTextColor():a,align:t,verticalAlign:"middle"})})),new qm({shape:s.getBoundingRect(),invisible:!0})),c=n.getModel("tooltip");return c.get("show")&&Sr({el:g,componentModel:o,itemName:e,itemTooltipOption:c.option}),s.add(g),s.eachChild(function(t){t.silent=!0}),g.silent=!h,this.getContentGroup().add(s),wo(s),s.__legendDataIndex=i,s},pp.prototype.layoutInner=function(t,e,i,n,o,r){var a,s,l,h,u,c=this.getContentGroup(),p=this.getSelectorGroup(),i=(Tx(t.get("orient"),c,t.get("itemGap"),i.width,i.height),c.getBoundingRect()),d=[-i.x,-i.y];return p.markRedraw(),c.markRedraw(),o?(Tx("horizontal",p,t.get("selectorItemGap",!0)),a=[-(o=p.getBoundingRect()).x,-o.y],s=t.get("selectorButtonGap",!0),l=0===(t=t.getOrient().index)?"width":"height",h=0===t?"height":"width",u=0===t?"y":"x","end"===r?a[t]+=i[l]+s:d[t]+=o[l]+s,a[1-t]+=i[h]/2-o[h]/2,p.x=a[0],p.y=a[1],c.x=d[0],c.y=d[1],(r={x:0,y:0})[l]=i[l]+s+o[l],r[h]=Math.max(i[h],o[h]),r[u]=Math.min(0,o[u]+a[1-t]),r):(c.x=d[0],c.y=d[1],this.group.getBoundingRect())},pp.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},pp.type="legend.plain",pp);i(xp,hM=oM),xp.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},xp.prototype.init=function(t,e,i){var n=ma(t);hM.prototype.init.call(this,t,e,i),wp(this,t,n)},xp.prototype.mergeOption=function(t,e){hM.prototype.mergeOption.call(this,t,e),wp(this,this.option,t)},xp.type="legend.scroll",xp.defaultOption=(f_=oM.defaultOption,Ev={scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},s(s({},f_,!0),Ev,!0));var hM,uM,cM=xp,pM=wy,dM=["width","height"],fM=["x","y"],gM=(i(bp,uM=lM),bp.prototype.init=function(){uM.prototype.init.call(this),this.group.add(this._containerGroup=new pM),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new pM)},bp.prototype.resetInner=function(){uM.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},bp.prototype.renderInner=function(t,e,i,n,o,r,a){function s(t,i){var o=t+"DataIndex",i=wr(e.get("pageIcons",!0)[e.getOrient().name][i],{onclick:If(l._pageGo,l,o,e,n)},{x:-u[0]/2,y:-u[1]/2,width:u[0],height:u[1]});i.name=t,h.add(i)}var l=this,h=(uM.prototype.renderInner.call(this,t,e,i,n,o,r,a),this._controllerGroup),t=e.get("pageIconSize",!0),u=x(t)?t:[t,t],i=(s("pagePrev",0),e.getModel("pageTextStyle"));h.add(new $m({name:"pageText",style:{text:"xx/xx",fill:i.getTextColor(),font:i.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),s("pageNext",1)},bp.prototype.layoutInner=function(t,e,i,n,o,r){var s=this.getSelectorGroup(),l=t.getOrient().index,h=dM[l],u=fM[l],c=dM[1-l],p=fM[1-l],d=(o&&Tx("horizontal",s,t.get("selectorItemGap",!0)),t.get("selectorButtonGap",!0)),f=s.getBoundingRect(),g=[-f.x,-f.y],y=a(i),i=(o&&(y[h]=i[h]-f[h]-d),this._layoutContentAndController(t,n,y,l,h,c,p,u));return o&&("end"===r?g[l]+=i[h]+d:(t=f[h]+d,g[l]-=t,i[u]-=t),i[h]+=f[h]+d,g[1-l]+=i[p]+i[c]/2-f[c]/2,i[c]=Math.max(i[c],f[c]),i[p]=Math.min(i[p],f[p]+g[1-l]),s.x=g[0],s.y=g[1],s.markRedraw()),i},bp.prototype._layoutContentAndController=function(t,e,i,n,o,r,a,s){var l=this.getContentGroup(),h=this._containerGroup,u=this._controllerGroup,c=(Tx(t.get("orient"),l,t.get("itemGap"),n?i.width:null,n?null:i.height),Tx("horizontal",u,t.get("pageButtonItemGap",!0)),l.getBoundingRect()),p=u.getBoundingRect(),d=this._showController=c[o]>i[o],f=[-c.x,-c.y],e=(e||(f[n]=l[s]),[0,0]),s=[-p.x,-p.y],g=E(t.get("pageButtonGap",!0),t.get("itemGap",!0)),f=(d&&("end"===t.get("pageButtonPosition",!0)?s[n]+=i[o]-p[o]:e[n]+=p[o]+g),s[1-n]+=c[r]/2-p[r]/2,l.setPosition(f),h.setPosition(e),u.setPosition(s),{x:0,y:0}),c=(f[o]=(d?i:c)[o],f[r]=Math.max(c[r],p[r]),f[a]=Math.min(0,p[a]+s[1-n]),h.__rectSize=i[o],d?((e={x:0,y:0})[o]=Math.max(i[o]-p[o]-g,0),e[r]=f[r],h.setClipPath(new qm({shape:e})),h.__rectSize=e[o]):u.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=c.pageIndex&&er(l,{x:c.contentPosition[0],y:c.contentPosition[1]},d?t:null),this._updatePageInfoView(t,c),f},bp.prototype._pageGo=function(t,e,i){null!=(t=this._getPageInfo(e)[t])&&i.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},bp.prototype._updatePageInfoView=function(t,e){var i=this._controllerGroup,n=(f(["pagePrev","pageNext"],function(n){var o=null!=e[n+"DataIndex"],n=i.childOfName(n);n&&(n.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),n.cursor=o?"pointer":"default")}),i.childOfName("pageText")),o=t.get("pageFormatter"),r=e.pageIndex,r=null!=r?r+1:0,a=e.pageCount;n&&o&&n.setStyle("text",b(o)?o.replace("{current}",null==r?"":r+"").replace("{total}",null==a?"":a+""):o({current:r,total:a}))},bp.prototype._getPageInfo=function(t){function e(t){var e,i;if(t)return{s:i=(e=t.getBoundingRect())[s]+t[s],e:i+e[a],i:t.__legendDataIndex}}function i(t,e){return t.e>=e&&t.s<=e+r}var n=t.get("scrollDataIndex",!0),o=this.getContentGroup(),r=this._containerGroup.__rectSize,t=t.getOrient().index,a=dM[t],s=fM[t],n=this._findTargetItemIndex(n),l=o.children(),h=l[n],u=l.length,c=u?1:0,p={contentPosition:[o.x,o.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(h){o=e(h),p.contentPosition[t]=-o.s;for(var d=n+1,f=o,g=o,y=null;d<=u;++d)(!(y=e(l[d]))&&g.e>f.s+r||y&&!i(y,f.s))&&(f=g.i>f.i?g:y)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=f.i),++p.pageCount),g=y;for(d=n-1,f=o,g=o,y=null;-1<=d;--d)(y=e(l[d]))&&i(g,y.s)||!(f.i<g.i)||(g=f,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=f.i),++p.pageCount,++p.pageIndex),f=y}return p},bp.prototype._findTargetItemIndex=function(t){var e,i;return this._showController?(this.getContentGroup().eachChild(function(n,o){n=n.__legendDataIndex,null==i&&null!=n&&(i=o),n===t&&(e=o)}),null!=e?e:i):0},bp.type="legend.scroll",bp);xu(function(t){xu(_p),t.registerComponentModel(cM),t.registerComponentView(gM),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 yM=Zi(),mM=a,vM=If;Sp.prototype.render=function(t,e,i,n){var o,r,a=e.get("value"),s=e.get("status");this._axisModel=t,this._axisPointerModel=e,this._api=i,!n&&this._lastValue===a&&this._lastStatus===s||(this._lastValue=a,this._lastStatus=s,n=this._group,o=this._handle,s&&"hide"!==s?(n&&n.show(),o&&o.show(),this.makeElOption(s={},a,t,e,i),(r=s.graphicKey)!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=r,r=this._moveAnimation=this.determineAnimation(t,e),n?(r=_(Tp,e,r),this.updatePointerEl(n,s,r),this.updateLabelEl(n,s,r,e)):(n=this._group=new wy,this.createPointerEl(n,s,t,e),this.createLabelEl(n,s,t,e),i.getZr().add(n)),Ip(n,e,!0),this._renderHandle(a)):(n&&n.hide(),o&&o.hide()))},Sp.prototype.remove=function(t){this.clear(t)},Sp.prototype.dispose=function(t){this.clear(t)},Sp.prototype.determineAnimation=function(t,e){var i,n=e.get("animation"),o=t.axis,r="category"===o.type,e=e.get("snap");return!(!e&&!r)&&("auto"===n||null==n?(i=this.animationThreshold,r&&o.getBandWidth()>i||!!e&&(r=ep(t).seriesDataCount,e=o.getExtent(),Math.abs(e[0]-e[1])/r>i)):!0===n)},Sp.prototype.makeElOption=function(t,e,i,n,o){},Sp.prototype.createPointerEl=function(t,e,i,n){var o=e.pointer;o&&(o=yM(t).pointerEl=new B_[o.type](mM(e.pointer)),t.add(o))},Sp.prototype.createLabelEl=function(t,e,i,n){e.label&&(e=yM(t).labelEl=new $m(mM(e.label)),t.add(e),Cp(e,n))},Sp.prototype.updatePointerEl=function(t,e,i){(t=yM(t).pointerEl)&&e.pointer&&(t.setStyle(e.pointer.style),i(t,{shape:e.pointer.shape}))},Sp.prototype.updateLabelEl=function(t,e,i,n){(t=yM(t).labelEl)&&(t.setStyle(e.label.style),i(t,{x:e.label.x,y:e.label.y}),Cp(t,n))},Sp.prototype._renderHandle=function(t){var e,i,n,o,r,a;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,o=e.getModel("handle"),a=e.get("status"),o.get("show")&&a&&"hide"!==a?(this._handle||(r=!0,n=this._handle=wr(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Xf(t.event)},onmousedown:vM(this._onHandleDragMove,this,0,0),drift:vM(this._onHandleDragMove,this),ondragend:vM(this._onHandleDragEnd,this)}),i.add(n)),Ip(n,e,!1),n.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),x(a=o.get("size"))||(a=[a,a]),n.scaleX=a[0]/2,n.scaleY=a[1]/2,cl(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,r)):(n&&i.remove(n),this._handle=null))},Sp.prototype._moveHandleToValue=function(t,e){Tp(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Mp(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},Sp.prototype._onHandleDragMove=function(t,e){var i=this._handle;i&&(this._dragging=!0,t=this.updateHandleTransform(Mp(i),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,i.stopAnimation(),i.attr(Mp(t)),yM(i).lastProp=null,this._doDispatchAxisPointer())},Sp.prototype._doDispatchAxisPointer=function(){var t,e;this._handle&&(t=this._payloadInfo,e=this._axisModel,this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]}))},Sp.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},Sp.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var t=t.getZr(),e=this._group,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),pl(this,"_doDispatchAxisPointer")},Sp.prototype.doClear=function(){},Sp.prototype.buildLabel=function(t,e,i){return{x:t[i=i||0],y:t[1-i],width:e[i],height:e[1-i]}},i(Pp,_M=Sp),Pp.prototype.makeElOption=function(t,e,i,n,o){var r,a,s=i.axis,l=s.grid,h=n.get("type"),u=Op(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(e,!0)),p=(h&&"none"!==h&&(r=(a=n).get("type"),a=a.getModel(r+"Style"),"line"===r?(p=a.getLineStyle()).fill=null:"shadow"===r&&((p=a.getAreaStyle()).stroke=null),r=p,(a=wM[h](s,c,u)).style=r,t.graphicKey=a.type,t.pointer=a),Yc(l.model,i));h=e,s=t,c=p,u=i,r=n,a=o,l=zC.innerTextLayout(c.rotation,0,c.labelDirection),c.labelMargin=r.get(["label","margin"]),kp(s,u,r,a,{position:Dp(u.axis,h,c),align:l.textAlign,verticalAlign:l.textVerticalAlign})},Pp.prototype.getHandleTransform=function(t,e,i){var n=Yc(e.axis.grid.model,e,{labelInside:!1}),i=(n.labelMargin=i.get(["handle","margin"]),Dp(e.axis,t,n));return{x:i[0],y:i[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},Pp.prototype.updateHandleTransform=function(t,e,i,n){var i=i.axis,o=i.grid,r=i.getGlobalExtent(!0),o=Op(o,i).getOtherAxis(i).getGlobalExtent(),i="x"===i.dim?0:1,a=[t.x,t.y],e=(a[i]+=e[i],a[i]=Math.min(r[1],a[i]),a[i]=Math.max(r[0],a[i]),(o[1]+o[0])/2),r=[e,e];return r[i]=a[i],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:r,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][i]}};var _M,xM=Pp,wM={line:function(t,e,i){var n;return n=[e,i[0]],e=[e,i[1]],i=Lp(t),{type:"Line",subPixelOptimize:!0,shape:{x1:n[i=i||0],y1:n[1-i],x2:e[i],y2:e[1-i]}}},shadow:function(t,e,i){var n=Math.max(1,t.getBandWidth()),o=i[1]-i[0];return{type:"Rect",shape:(e=[e-n/2,i[0]],i=[n,o],n=Lp(t),{x:e[n=n||0],y:e[1-n],width:i[n],height:i[1-n]})}}};i(Ep,bM=Dx),Ep.type="axisPointer",Ep.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}};var bM,SM=Ep,TM=Zi(),CM=f;i(Fp,MM=Zw),Fp.prototype.render=function(t,e,i){var e=e.getComponent("tooltip"),n=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";Rp("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})})},Fp.prototype.remove=function(t,e){zp("axisPointer",e)},Fp.prototype.dispose=function(t,e){zp("axisPointer",e)},Fp.type="axisPointer";var MM,IM=Fp,kM=Zi();i(qp,AM=Dx),qp.type="tooltip",qp.dependencies=["axisPointer"],qp.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}};var AM,DM=qp,PM=Kp(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),OM=Qp(Kp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),LM=Qp(PM,"transform"),EM="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(af.transform3dSupported?"will-change:transform;":"");ed.prototype.update=function(t){var e=this._container,i=(i="position",(n=(n=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(n))?i?n[i]:n:null),n=e.style;"absolute"!==n.position&&"absolute"!==i&&(n.position="relative"),t.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=t.get("className")||""},ed.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,o=this._styleCoord;i.innerHTML?n.cssText=EM+Jp(t,!this._firstShow,this._longHide)+$p(o[0],o[1],!0)+"border-color:"+ca(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},ed.prototype.setContent=function(t,e,i,n,o){var r=this.el;if(null==t)r.innerHTML="";else{var a,s,l,h,c,p="";if(b(o)&&"item"===i.get("trigger")&&!Zp(i)&&(i=i,n=n,p=b(o=o)&&"inside"!==o?(a=i.get("backgroundColor"),i=i.get("borderWidth"),n=ca(n),o=o="left"===(o=o)?"right":"right"===o?"left":"top"===o?"bottom":"top",d=Math.max(1.5*Math.round(i),6),s="",l=LM+":",-1<u(["left","right"],o)?(s+="top:50%",l+="translateY(-50%) rotate("+(c="left"==o?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(c="top"==o?225:45)+"deg)"),c=c*Math.PI/180,c=(h=d+i)*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),n=n+" solid "+i+"px;",'<div style="'+["position:absolute;width:"+d+"px;height:"+d+"px;",(s+=";"+o+":-"+Math.round(100*((c-Math.SQRT2*i)/2+Math.SQRT2*i-(c-h)/2))/100+"px")+";"+l+";","border-bottom:"+n,"border-right:"+n,"background-color:"+a+";"].join("")+'"></div>'):""),b(t))r.innerHTML=t+p;else if(t){r.innerHTML="",x(t)||(t=[t]);for(var d,f=0;f<t.length;f++)k(t[f])&&t[f].parentNode!==r&&r.appendChild(t[f]);p&&r.childNodes.length&&((d=document.createElement("div")).innerHTML=p,r.appendChild(d))}}},ed.prototype.setEnterable=function(t){this._enterable=t},ed.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},ed.prototype.moveTo=function(t,e){var i,n=this._styleCoord;td(n,this._zr,this._appendToBody,t,e),null!=n[0]&&null!=n[1]&&(i=this.el.style,f($p(n[0],n[1]),function(t){i[t[0]]=t[1]}))},ed.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},ed.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",af.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},ed.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(If(this.hide,this),t)):this.hide())},ed.prototype.isShow=function(){return this._show},ed.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)};var RM=ed;id.prototype.update=function(t){t.get("alwaysShowContent")&&this._moveIfResized()},id.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},id.prototype.setContent=function(t,e,i,n,o){var r=this,a=(C(t)&&Ni(""),this.el&&this._zr.remove(this.el),i.getModel("textStyle")),s=(this.el=new $m({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:a.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Us(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),f(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){r.el.style[t]=i.get(t)}),f(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){r.el.style[t]=a.get(t)||0}),this._zr.add(this.el),this);this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},id.prototype.setEnterable=function(t){this._enterable=t},id.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),t=od(t.style);return[e.width+t.left+t.right,e.height+t.top+t.bottom]},id.prototype.moveTo=function(t,e){var i,n,o=this.el;o&&(rd(n=this._styleCoord,this._zr,t,e),t=n[0],e=n[1],i=nd((n=o.style).borderWidth||0),n=od(n),o.x=t+i+n.left,o.y=e+i+n.top,o.markRedraw())},id.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},id.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},id.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(If(this.hide,this),t)):this.hide())},id.prototype.isShow=function(){return this._show},id.prototype.dispose=function(){this._zr.remove(this.el)};var NM,BM=id,zM=new qm({shape:{x:-1,y:-1,width:2,height:2}}),FM=(i(ad,NM=Zw),ad.prototype.init=function(t,e){var i;!af.node&&e.getDom()&&(t=t.getComponent("tooltip"),i=this._renderMode="auto"===(i=t.get("renderMode"))?af.domSupported?"html":"richText":i||"html",this._tooltipContent="richText"===i?new BM(e):new RM(e.getDom(),e,{appendToBody:t.get("appendToBody",!0)}))},ad.prototype.render=function(t,e,i){!af.node&&i.getDom()&&(this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._alwaysShowContent=t.get("alwaysShowContent"),(e=this._tooltipContent).update(t),e.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?cl(this,"_updatePosition",50,"fixRate"):pl(this,"_updatePosition"))},ad.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");Rp("itemTooltip",this._api,If(function(e,i,n){"none"!==t&&(0<=t.indexOf(e)?this._tryShow(i,n):"leave"===e&&this._hide(n))},this))},ad.prototype._keepShow=function(){var t,e=this._tooltipModel,i=this._ecModel,n=this._api;null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")&&(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})}))},ad.prototype.manuallyShowTip=function(t,e,i,n){var o,r,a,s;n.from!==this.uid&&!af.node&&i.getDom()&&(o=ld(n,i),this._ticket="",s=n.dataByCoordSys,(r=function(t,e,i){var n=Qi(t).queryOptionMap,o=n.keys()[0];if(o&&"series"!==o){var r,e=$i(e,o,n.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(e&&(i.getViewOfComponentModel(e).group.traverse(function(e){var i=iv(e).tooltipConfig;if(i&&i.name===t.name)return r=e,!0}),r))return{componentMainType:o,componentIndex:e.componentIndex,el:r}}}(n,e,i))?((a=r.el.getBoundingRect().clone()).applyTransform(r.el.transform),this._tryShow({offsetX:a.x+a.width/2,offsetY:a.y+a.height/2,target:r.el,position:n.position,positionDefault:"bottom"},o)):n.tooltip&&null!=n.x&&null!=n.y?((a=zM).x=n.x,a.y=n.y,a.update(),iv(a).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:a},o)):s?this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:s,tooltipOption:n.tooltipOption},o):null!=n.seriesIndex?this._manuallyAxisShowTip(t,e,i,n)||(a=(r=Vp(n,e)).point[0],s=r.point[1],null!=a&&null!=s&&this._tryShow({offsetX:a,offsetY:s,target:r.el,position:n.position,positionDefault:"bottom"},o)):null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},o)))},ad.prototype.manuallyHideTip=function(t,e,i,n){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(ld(n,i))},ad.prototype._manuallyAxisShowTip=function(t,e,i,n){var o=n.seriesIndex,r=n.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=r&&null!=a&&(a=e.getSeriesByIndex(o))&&(e=sd([a.getData().getItemModel(r),a,(a.coordinateSystem||{}).model],this._tooltipModel),"axis"===e.get("trigger")))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:r,position:n.position}),!0},ad.prototype._tryShow=function(t,e){var i,n,o,r=t.target;this._tooltipModel&&(this._lastX=t.offsetX,this._lastY=t.offsetY,(i=t.dataByCoordSys)&&i.length?this._showAxisTooltip(i,t):r?(kl(r,function(t){return null!=iv(t).dataIndex?(n=t,1):null!=iv(t).tooltipConfig&&(o=t,1)},!(this._lastDataByCoordSys=null)),n?this._showSeriesItemTooltip(t,n,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)):(this._lastDataByCoordSys=null,this._hide(e)))},ad.prototype._showOrMove=function(t,e){t=t.get("showDelay"),e=If(e,this),clearTimeout(this._showTimout),0<t?this._showTimout=setTimeout(e,t):e()},ad.prototype._showAxisTooltip=function(t,e){var i=this._ecModel,n=this._tooltipModel,o=[e.offsetX,e.offsetY],r=sd([e.tooltipOption],n),a=this._renderMode,s=[],h=Bs("section",{blocks:[],noHeader:!0}),u=[],c=new Uw,p=(f(t,function(t){f(t.dataByAxis,function(t){var e,o,r=i.getComponent(t.axisDim+"Axis",t.axisIndex),p=t.value;r&&null!=p&&(e=Ap(p,r.axis,i,t.seriesDataIndices,t.valueLabelOpt),o=Bs("section",{header:e,noHeader:!F(e),sortBlocks:!0,blocks:[]}),h.blocks.push(o),f(t.seriesDataIndices,function(h){var d,f=i.getSeriesByIndex(h.seriesIndex),h=h.dataIndexInside,g=f.getDataParams(h);g.dataIndex<0||(g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=gu(r.axis,{value:p}),g.axisValueLabel=e,g.marker=c.makeTooltipMarker("item",ca(g.color),a),(d=(h=us(f.formatTooltip(h,!0,null))).frag)&&(f=sd([f],n).get("valueFormatter"),o.blocks.push(f?l({valueFormatter:f},d):d)),h.text&&u.push(h.text),s.push(g))}))})}),h.blocks.reverse(),u.reverse(),e.position),e=r.get("order"),e=Hs(h,c,a,e,i.get("useUTC"),r.get("textStyle")),e=(e&&u.unshift(e),"richText"===a?"\n\n":"<br/>"),d=u.join(e);this._showOrMove(r,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(r,p,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(r,d,s,Math.random()+"",o[0],o[1],p,null,c)})},ad.prototype._showSeriesItemTooltip=function(t,e,i){var n,o,r,a,s,h=this._ecModel,e=iv(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=sd([f.getItemModel(d),p,c&&(c.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null),c=m.get("trigger");null!=c&&"item"!==c||(n=p.getDataParams(d,e),o=new Uw,n.marker=o.makeTooltipMarker("item",ca(n.color),g),y=us(p.formatTooltip(d,!1,e)),c=m.get("order"),e=m.get("valueFormatter"),r=y.frag,a=r?Hs(e?l({valueFormatter:e},r):r,o,g,c,h.get("useUTC"),m.get("textStyle")):y.text,s="item_"+p.name+"_"+d,this._showOrMove(m,function(){this._showTooltipContent(m,a,n,s,t.offsetX,t.offsetY,t.position,t.target,o)}),i({type:"showTip",dataIndexInside:d,dataIndex:f.getRawIndex(d),seriesIndex:u,from:this.uid}))},ad.prototype._showComponentItemTooltip=function(t,e,i){var n=iv(e),o=n.tooltipConfig.option||{},r=[o=b(o)?{content:o,formatter:o}:o],n=this._ecModel.getComponent(n.componentMainType,n.componentIndex),n=(n&&r.push(n),r.push({formatter:o.content}),t.positionDefault),s=sd(r,this._tooltipModel,n?{position:n}:null),l=s.get("content"),h=Math.random()+"",u=new Uw;this._showOrMove(s,function(){var i=a(s.get("formatterParams")||{});this._showTooltipContent(s,l,i,h,t.offsetX,t.offsetY,t.position,e,u)}),i({type:"showTip",from:this.uid})},ad.prototype._showTooltipContent=function(t,e,i,n,o,r,a,s,l){var h,u,c,p,d;this._ticket="",t.get("showContent")&&t.get("show")&&(h=this._tooltipContent,u=t.get("formatter"),a=a||t.get("position"),e=e,c=this._getNearestPoint([o,r],i,t.get("trigger"),t.get("borderColor")).color,u&&(e=b(u)?(p=t.ecModel.get("useUTC"),e=u,ha(e=(d=x(i)?i[0]:i)&&d.axisType&&0<=d.axisType.indexOf("time")?Hr(d.axisValue,e,p):e,i,!0)):w(u)?(d=If(function(e,n){e===this._ticket&&(h.setContent(n,l,t,c,a),this._updatePosition(t,a,o,r,h,i,s))},this),this._ticket=n,u(i,n,d)):u),h.setContent(e,l,t,c,a),h.show(t,c),this._updatePosition(t,a,o,r,h,i,s))},ad.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}},ad.prototype._updatePosition=function(t,e,i,n,o,r,a){var s,l=this._api.getWidth(),h=this._api.getHeight(),u=(e=e||t.get("position"),o.getSize()),c=t.get("align"),p=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();a&&d.applyTransform(a.transform),x(e=w(e)?e([i,n],r,o.el,d,{viewSize:[l,h],contentSize:u.slice()}):e)?(i=wi(e[0],l),n=wi(e[1],h)):C(e)?((r=e).width=u[0],r.height=u[1],i=(r=fa(r,{width:l,height:h})).x,n=r.y,p=c=null):(i=(s=b(e)&&a?function(t,e,i,n){var o=i[0],r=i[1],a=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,h=e.width,u=e.height;switch(t){case"inside":s=e.x+h/2-o/2,l=e.y+u/2-r/2;break;case"top":s=e.x+h/2-o/2,l=e.y-r-a;break;case"bottom":s=e.x+h/2-o/2,l=e.y+u+a;break;case"left":s=e.x-o-a,l=e.y+u/2-r/2;break;case"right":s=e.x+h+a,l=e.y+u/2-r/2}return[s,l]}(e,d,u,t.get("borderWidth")):function(t,e,i,n,o,r,a){var i=i.getSize(),s=i[0],i=i[1];return null!=r&&(n<t+s+r+2?t-=s+r:t+=r),null!=a&&(o<e+i+a?e-=i+a:e+=a),[t,e]}(i,n,o,l,h,c?null:20,p?null:20))[0],n=s[1]),c&&(i-=hd(c)?u[0]/2:"right"===c?u[0]:0),p&&(n-=hd(p)?u[1]/2:"bottom"===p?u[1]:0),Zp(t)&&(r=i,a=n,e=l,d=h,c=(c=o).getSize(),p=c[0],c=c[1],r=Math.min(r+p,e)-p,a=Math.min(a+c,d)-c,r=Math.max(r,0),a=Math.max(a,0),i=(s=[r,a])[0],n=s[1]),o.moveTo(i,n)},ad.prototype._updateContentNotChangedOnAxis=function(t,e){var i=this._lastDataByCoordSys,n=this._cbParamsList,o=!!i&&i.length===t.length;return o&&f(i,function(i,r){var i=i.dataByAxis||[],a=(t[r]||{}).dataByAxis||[];(o=o&&i.length===a.length)&&f(i,function(t,i){var i=a[i]||{},r=t.seriesDataIndices||[],s=i.seriesDataIndices||[];(o=o&&t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===s.length)&&f(r,function(t,e){e=s[e],o=o&&t.seriesIndex===e.seriesIndex&&t.dataIndex===e.dataIndex}),n&&f(t.seriesDataIndices,function(t){var t=t.seriesIndex,i=e[t],t=n[t];i&&t&&t.data!==i.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!o},ad.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},ad.prototype.dispose=function(t,e){!af.node&&e.getDom()&&(pl(this,"_updatePosition"),this._tooltipContent.dispose(),zp("itemTooltip",e))},ad.type="tooltip",ad);xu(function(t){xu(jp),t.registerComponentModel(DM),t.registerComponentView(FM),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},q),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},q)}),xu(rc);var VM={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},YM=(ud.prototype.evaluate=function(t){var e=typeof t;return b(e)?this._condVal.test(t):!!T(e)&&this._condVal.test(t+"")},ud);cd.prototype.evaluate=function(){return this.value};var HM=cd;pd.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0};var WM=pd;dd.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1};var XM=dd;fd.prototype.evaluate=function(){return!this.child.evaluate()};var UM=fd;gd.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 GM=gd;_d.prototype.evaluate=function(){return this._cond.evaluate()};var jM=_d,qM={type:"echarts:filter",transform:function(t){for(var e,i,n=t.upstream,o=(t=t.config,i={valueGetterAttrMap:W({dimension:!0}),prepareGetValue:function(t){var e=t.dimension,t=(j(t,"dimension")||Ni(""),n.getDimensionInfo(e));return t||Ni(""),{dimIdx:t.index}},getValue:function(t){return n.retrieveValueFromItem(e,t.dimIdx)}},new jM(t,i)),r=[],a=0,s=n.count();a<s;a++)e=n.getRawDataItem(a),o.evaluate()&&r.push(e);return{data:r}}},ZM={type:"echarts:sort",transform:function(t){for(var e=t.upstream,t=t.config,t=zi(t),i=(t.length||Ni(""),[]),t=(f(t,function(t){var n=t.dimension,o=t.order,r=t.parser,t=t.incomparable,n=(null==n&&Ni(""),"asc"!==o&&"desc"!==o&&Ni(""),t&&"min"!==t&&"max"!==t&&Ni(""),"asc"!==o&&"desc"!==o&&Ni(""),e.getDimensionInfo(n)),a=(n||Ni(""),r?ys(r):null);r&&!a&&Ni(""),i.push({dimIdx:n.index,parser:a,comparator:new Pw(o,t)})}),e.sourceFormat),n=(t!==zx&&t!==Fx&&Ni(""),[]),o=0,r=e.count();o<r;o++)n.push(e.getRawDataItem(o));return n.sort(function(t,n){for(var o=0;o<i.length;o++){var r=i[o],a=e.retrieveValueFromItem(t,r.dimIdx),s=e.retrieveValueFromItem(n,r.dimIdx),r=(r.parser&&(a=r.parser(a),s=r.parser(s)),r.comparator.evaluate(a,s));if(0!==r)return r}return 0}),{data:n}}};xu(function(t){t.registerTransform(qM),t.registerTransform(ZM)});var KM,QM=Math.sin,$M=Math.cos,JM=Math.PI,tI=2*Math.PI,eI=180/JM,iI=(xd.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},xd.prototype.moveTo=function(t,e){this._add("M",t,e)},xd.prototype.lineTo=function(t,e){this._add("L",t,e)},xd.prototype.bezierCurveTo=function(t,e,i,n,o,r){this._add("C",t,e,i,n,o,r)},xd.prototype.quadraticCurveTo=function(t,e,i,n){this._add("Q",t,e,i,n)},xd.prototype.arc=function(t,e,i,n,o,r){this.ellipse(t,e,i,i,0,n,o,r)},xd.prototype.ellipse=function(t,e,i,n,o,r,a,s){var l,h=a-r,s=!s,u=Math.abs(h),c=fe(u-tI)||(s?tI<=h:tI<=-h),p=!1,p=!!c||!fe(u)&&JM<=(0<h?h%tI:h%tI+tI)==!!s,u=t+i*$M(r),h=e+n*QM(r),o=(this._start&&this._add("M",u,h),Math.round(o*eI));c?(c=1/this._p,this._add("A",i,n,o,1,+s,t+i*$M(r+(l=(s?1:-1)*(tI-c))),e+n*QM(r+l)),.01<c&&this._add("A",i,n,o,0,+s,u,h)):(r=t+i*$M(a),l=e+n*QM(a),this._add("A",i,n,o,+p,+s,r,l))},xd.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")},xd.prototype.closePath=function(){0<this._d.length&&this._add("Z")},xd.prototype._add=function(t,e,i,n,o,r,a,s,l){for(var h=[],u=this._p,c=1;c<arguments.length;c++){var p=arguments[c];if(isNaN(p))return void(this._invalid=!0);h.push(Math.round(p*u)/u)}this._d.push(t+h.join(" ")),this._start="Z"===t},xd.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},xd.prototype.getStr=function(){return this._str},xd),nI="none",oI=Math.round,rI=["lineCap","miterLimit","lineJoin"],aI=g(rI,function(t){return"stroke-"+t.toLowerCase()}),sI="http://www.w3.org/2000/svg",lI="http://www.w3.org/1999/xlink",hI="http://www.w3.org/2000/xmlns/",uI="http://www.w3.org/XML/1998/namespace",cI={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},pI="transform-origin",dI={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"},fI=Math.round,gI={circle:[(KM=g(["cx","cy","r"],function(t){return"string"==typeof t?[t,t]:t}),function(t,e,i){for(var n=0;n<KM.length;n++){var o=KM[n],r=t[o[0]];null!=r&&(e[o[1]]=fI(r*i)/i)}})],polyline:[Rd,Nd],polygon:[Rd,Nd]},yI=58,mI=120,vI=Sd("",""),_I=0;ef.prototype.getType=function(){return this.type},ef.prototype.getViewportRoot=function(){return this._viewport},ef.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},ef.prototype.getSvgDom=function(){return this._svgDom},ef.prototype.refresh=function(){var t,e,i,n,o;this.root&&((t=this.renderToVNode({willUpdate:!0})).attrs.style="position:absolute;left:0;top:0;user-select:none",qd(e=this._oldVNode,i=t)?tf(e,i):(o=Wd(n=e.elm),Zd(i),null!==o&&(Vd(o,i.elm,Xd(n)),Qd(o,[e],0,0))),this._oldVNode=t)},ef.prototype.renderOneToVNode=function(t){return zd(t,Cd(this._id))},ef.prototype.renderToVNode=function(t){t=t||{};var e,i,n,o,r,a=this.storage.getDisplayList(!0),s=this._backgroundColor,l=this._width,h=this._height,u=Cd(this._id),c=(u.animation=t.animation,u.willUpdate=t.willUpdate,u.compress=t.compress,[]),p=(s&&"none"!==s?(p=(s=de(s)).color,s=s.opacity,this._bgVNode=Sd("rect","bg",{width:l,height:h,x:"0",y:"0",id:"0",fill:p,"fill-opacity":s}),c.push(this._bgVNode)):this._bgVNode=null,t.compress?null:this._mainVNode=Sd("g","main",{},[])),s=(this._paintList(a,u,p?p.children:c),p&&c.push(p),g(v(u.defs),function(t){return u.defs[t]}));return s.length&&c.push(Sd("defs","defs",{},s)),t.animation&&(e=u.cssNodes,i=u.cssAnims,n=(a=(a={newline:!0})||{}).newline?"\n":"",o=" {"+n,r=n+"}",a=g(v(e),function(t){return t+o+g(v(e[t]),function(i){return i+":"+e[t][i]+";"}).join(n)+r}).join(n),p=g(v(i),function(t){return"@keyframes "+t+o+g(v(i[t]),function(e){return e+o+g(v(i[t][e]),function(n){var o=i[t][e][n];return n+":"+(o="d"===n?'path("'+o+'")':o)+";"}).join(n)+r}).join(n)+r}).join(n),s=a||p?["<![CDATA[",a,p,"]]>"].join(n):"")&&(a=Sd("style","stl",{},[],s),c.push(a)),Md(l,h,c,t.useViewBox)},ef.prototype.renderToString=function(t){return Td(this.renderToVNode({animation:E((t=t||{}).cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:E(t.useViewBox,!0)}),{newline:!0})},ef.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e,i=this._bgVNode;i&&i.elm&&(e=(t=de(t)).color,t=t.opacity,i.elm.setAttribute("fill",e),t<1)&&i.elm.setAttribute("fill-opacity",t)},ef.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},ef.prototype._paintList=function(t,e,i){for(var n,o,r,a,s,l,h,u=t.length,c=[],p=0,d=0,f=0;f<u;f++){var g=t[f];if(!g.invisible){for(var y=g.__clipPaths,m=y&&y.length||0,v=T&&T.length||0,_=void 0,_=Math.max(m-1,v-1);0<=_&&(!y||!T||y[_]!==T[_]);_--);for(var x=v-1;_<x;x--)n=c[--p-1];for(var w=_+1;w<m;w++){var b={},S=(o=y[w],r=b,h=S=l=s=void 0,l=(a=e).clipPathCache,S=a.defs,(h=l[o.id])||(s={id:h=a.zrId+"-c"+a.clipPathIdx++},S[l[o.id]=h]=Sd("clipPath",h,s,[Bd(o,a)])),r["clip-path"]=xe(h),Sd("g","clip-g-"+d++,b,[]));(n?n.children:i).push(S),n=c[p++]=S}var T=y,v=zd(g,e);v&&(n?n.children:i).push(v)}}},ef.prototype.resize=function(t,e){var i=this._opts,n=this.root,o=this._viewport;null!=t&&(i.width=t),null!=e&&(i.height=e),n&&o&&(o.style.display="none",t=Rl(n,0,i),e=Rl(n,1,i),o.style.display=""),(this._width!==t||this._height!==e)&&(this._width=t,this._height=e,o&&((n=o.style).width=t+"px",n.height=e+"px"),i=this._svgDom)&&(i.setAttribute("width",t),i.setAttribute("height",e))},ef.prototype.getWidth=function(){return this._width},ef.prototype.getHeight=function(){return this._height},ef.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},ef.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},ef.prototype.toDataURL=function(t){var e=encodeURIComponent(this.renderToString()),i="data:image/svg+xml;";return t?(e=Mg(e))&&i+"base64,"+e:i+"charset=UTF-8,"+e},_i("svg",ef),e.Axis=Q_,e.ChartView=$w,e.ComponentModel=Dx,e.ComponentView=Zw,e.List=US,e.Model=J_,e.PRIORITY=wb,e.SeriesModel=qw,e.color=Sg,e.connect=function(t){var e;return x(t)&&(e=t,t=null,f(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+TS++,f(e,function(e){e.group=t})),bS[t]=!0,t},e.dataTool={},e.dependencies={zrender:"5.3.0"},e.disConnect=lh,e.disconnect=xb,e.dispose=function(t){b(t)?t=wS[t]:t instanceof pS||(t=hh(t)),t instanceof pS&&!t.isDisposed()&&t.dispose()},e.env=af,e.extendChartView=function(t){return t=$w.extend(t),$w.registerClass(t),t},e.extendComponentModel=function(t){return t=Dx.extend(t),Dx.registerClass(t),t},e.extendComponentView=function(t){return t=Zw.extend(t),Zw.registerClass(t),t},e.extendSeriesModel=function(t){return t=qw.extend(t),qw.registerClass(t),t},e.format=Z_,e.getCoordinateSystemDimensions=function(t){if(t=iw.get(t))return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},e.getInstanceByDom=hh,e.getInstanceById=function(t){return wS[t]},e.getMap=function(t){var e=zb.getMap;return e&&e(t)},e.graphic=px,e.helper=bb,e.init=function(t,e,i){var n=!(i&&i.ssr);if(n){var o=hh(t);if(o)return o}return(o=new pS(t,e,i)).id="ec_"+SS++,wS[o.id]=o,n&&Ji(t,CS,o.id),sS(o),Bb.trigger("afterinit",o),o},e.innerDrawElementOnCanvas=ql,e.matrix=Ug,e.number=zy,e.parseGeoJSON=Du,e.parseGeoJson=Du,e.registerAction=yh,e.registerCoordinateSystem=mh,e.registerLayout=vh,e.registerLoading=wh,e.registerLocale=Fr,e.registerMap=bh,e.registerPostInit=dh,e.registerPostUpdate=fh,e.registerPreprocessor=ch,e.registerProcessor=ph,e.registerTheme=uh,e.registerTransform=Sh,e.registerUpdateLifecycle=gh,e.registerVisual=_h,e.setCanvasCreator=function(t){n({createCanvas:t})},e.setPlatformAPI=n,e.throttle=ul,e.time=N_,e.use=xu,e.util=G_,e.vector=Ef,e.version="5.3.0",e.zrUtil=Pf,e.zrender=My})}).call(e,i(249).Buffer)},2020:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"chart",staticClass:"chart"})},o=[];n._withStripped=!0},2021:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"chartContainer"},[i("div",{staticClass:"dataDisplay"},[i("div",{staticClass:"selectAge"},[i("div",{staticClass:"leftSelectAge"},[i("span",{staticClass:"agetext"},[t._v("至")]),t._v(" "),i("div",{class:["selectInputAge","agetext",{isCps:t.isCps}],on:{click:t.showAgePicker}},[i("div",{staticClass:"selectedAgeText"},[t._v("\n "+t._s(t.xAxisData[t.selectIndex])+t._s(t.unit)+"\n ")]),t._v(" "),i("i",{staticClass:"dropDown"})]),t._v(" "),i("span",{staticClass:"agetext"},[t._v("可获得")])]),t._v(" "),i("div",{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(t.pureDataSource[t.selectIndex][n])+"\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.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]))]),t._v(t._s(e.tipsText[1])+"\n ")]):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.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.pureDataSource[t.selectIndex][n])+"\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]))]),t._v(t._s(e.tipsText[1])+"\n ")]):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}})],1)},o=[];n._withStripped=!0},2022:function(t,e,i){"use strict";function n(t){s||i(2023)}var o=i(1488),r=i(2024),a=i(2),s=!1,l=n,h=Object(a.a)(o.a,r.a,r.b,!1,l,"data-v-4eebaa8b",null);h.options.__file="src\\components\\GoldFinanceChart\\src\\components\\costTable.vue",e.a=h.exports},2023:function(t,e){},2024:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"layer-finance",on:{touchmove:t.preventMove}},[i("div",{staticClass:"layer-finance-mask",on:{click:function(e){return e.stopPropagation(),t.cancel(e)}}}),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(e)}}}),t._v(" "),i("p",{staticClass:"main-title"},[t._v("\n 保单利益演示表\n ")]),t._v(" "),i("p",{staticClass:"cost-title"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),i("p",{staticClass:"cost-table-head"},[t._v("\n 基于用户所选信息的保单利益演示如下:\n ")]),t._v(" "),t.tables.cols&&t.tables.rows&&t.tables.rows.length?[i("div",[i("div",{staticClass:"table-tr thead"},[t._l(t.tables.cols,function(e,n){return[t.showCol(n)?i("span",{key:"head-"+n,staticClass:"table-item",style:t.styleOption},[t._v("\n "+t._s(e)+"\n ")]):t._e()]})],2),t._v(" "),i("div",{staticClass:"cost-scroll"},[i("table",{staticClass:"table-body"},[t.tables.rows&&t.tables.rows.length?i("tbody",t._l(t.tables.rows,function(e,n){return i("tr",{key:"tr-"+n,staticClass:"table-tr "},[t._l(e,function(e,o){return[t.showCol(o)?i("td",{key:"td-"+n+"-"+o,staticClass:"table-item"},[t._v("\n "+t._s(Math.round(100*e)/100)+"\n ")]):t._e()]})],2)}),0):t._e()])])])]:[i("div",{staticClass:"no-data"},[t._v("\n 暂时无法展示\n ")])]],2)])},o=[];n._withStripped=!0},2025:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=this,i=e.$createElement,n=e._self._c||i;return e.isShowChart?n("div",[n("benefit",{attrs:{renderData:e.renderData,theme:e.realTheme,isCps:e.isCps,unit:e.unit,selectIndex:e.selectIndex},on:{"update:selectIndex":function(t){e.selectIndex=t},"update:select-index":function(t){e.selectIndex=t},showCostTable:e.showCostTable,showAgePicker:e.showAgePicker}}),e._v(" "),n("gold-cost-table",{attrs:{visible:e.costTableVisible,tables:e.tables,theme:e.realTheme},on:{cancelCost:function(t){e.costTableVisible=!1}}}),e._v(" "),n("gold-picker",{ref:"goldPicker",attrs:{data:[this.agePickerData],selectedIndex:[e.selectIndex],confirmColor:e.realTheme.color},on:{select:function(e,i){t.setSelectIndex(i[0])}}})],1):e._e()},o=[];n._withStripped=!0},21:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},22:function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},23:function(t,e,i){var n=i(29);t.exports=function(t){return Object(n(t))}},24:function(t,e){e.f={}.propertyIsEnumerable},249:function(t,e,i){"use strict";(function(t){function n(){return r.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t,e){if(n()<e)throw new RangeError("Invalid typed array length");return r.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=r.prototype):(null===t&&(t=new r(e)),t.length=e),t}function r(t,e,i){if(!(r.TYPED_ARRAY_SUPPORT||this instanceof r))return new r(t,e,i);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return a(this,t,e,i)}function a(t,e,i,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?p(t,e,i,n):"string"==typeof e?u(t,e,i):d(t,e)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function l(t,e,i,n){return s(e),e<=0?o(t,e):void 0!==i?"string"==typeof n?o(t,e).fill(i,n):o(t,e).fill(i):o(t,e)}function h(t,e){if(s(e),t=o(t,e<0?0:0|f(e)),!r.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function u(t,e,i){if("string"==typeof i&&""!==i||(i="utf8"),!r.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var n=0|y(e,i);t=o(t,n);var a=t.write(e,i);return a!==n&&(t=t.slice(0,a)),t}function c(t,e){var i=e.length<0?0:0|f(e.length);t=o(t,i);for(var n=0;n<i;n+=1)t[n]=255&e[n];return t}function p(t,e,i,n){if(e.byteLength,i<0||e.byteLength<i)throw new RangeError("'offset' is out of bounds");if(e.byteLength<i+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===i&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,i):new Uint8Array(e,i,n),r.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=r.prototype):t=c(t,e),t}function d(t,e){if(r.isBuffer(e)){var i=0|f(e.length);return t=o(t,i),0===t.length?t:(e.copy(t,0,0,i),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||Z(e.length)?o(t,0):c(t,e);if("Buffer"===e.type&&$(e.data))return c(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function f(t){if(t>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function g(t){return+t!=t&&(t=0),r.alloc(+t)}function y(t,e){if(r.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return X(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return j(t).length;default:if(n)return X(t).length;e=(""+e).toLowerCase(),n=!0}}function m(t,e,i){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if(i>>>=0,e>>>=0,i<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,i);case"utf8":case"utf-8":return k(this,e,i);case"ascii":return D(this,e,i);case"latin1":case"binary":return P(this,e,i);case"base64":return I(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function v(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function _(t,e,i,n,o){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=o?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(o)return-1;i=t.length-1}else if(i<0){if(!o)return-1;i=0}if("string"==typeof e&&(e=r.from(e,n)),r.isBuffer(e))return 0===e.length?-1:x(t,e,i,n,o);if("number"==typeof e)return e&=255,r.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):x(t,[e],i,n,o);throw new TypeError("val must be string, number or Buffer")}function x(t,e,i,n,o){function r(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,i/=2}var h;if(o){var u=-1;for(h=i;h<s;h++)if(r(t,h)===r(e,-1===u?0:h-u)){if(-1===u&&(u=h),h-u+1===l)return u*a}else-1!==u&&(h-=h-u),u=-1}else for(i+l>s&&(i=s-l),h=i;h>=0;h--){for(var c=!0,p=0;p<l;p++)if(r(t,h+p)!==r(e,p)){c=!1;break}if(c)return h}return-1}function w(t,e,i,n){i=Number(i)||0;var o=t.length-i;n?(n=Number(n))>o&&(n=o):n=o;var r=e.length;if(r%2!=0)throw new TypeError("Invalid hex string");n>r/2&&(n=r/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[i+a]=s}return a}function b(t,e,i,n){return q(X(e,t.length-i),t,i,n)}function S(t,e,i,n){return q(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=[],o=e;o<i;){var r=t[o],a=null,s=r>239?4:r>223?3:r>191?2:1;if(o+s<=i){var l,h,u,c;switch(s){case 1:r<128&&(a=r);break;case 2:l=t[o+1],128==(192&l)&&(c=(31&r)<<6|63&l)>127&&(a=c);break;case 3:l=t[o+1],h=t[o+2],128==(192&l)&&128==(192&h)&&(c=(15&r)<<12|(63&l)<<6|63&h)>2047&&(c<55296||c>57343)&&(a=c);break;case 4:l=t[o+1],h=t[o+2],u=t[o+3],128==(192&l)&&128==(192&h)&&128==(192&u)&&(c=(15&r)<<18|(63&l)<<12|(63&h)<<6|63&u)>65535&&c<1114112&&(a=c)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),o+=s}return A(n)}function A(t){var e=t.length;if(e<=J)return String.fromCharCode.apply(String,t);for(var i="",n=0;n<e;)i+=String.fromCharCode.apply(String,t.slice(n,n+=J));return i}function D(t,e,i){var n="";i=Math.min(t.length,i);for(var o=e;o<i;++o)n+=String.fromCharCode(127&t[o]);return n}function P(t,e,i){var n="";i=Math.min(t.length,i);for(var o=e;o<i;++o)n+=String.fromCharCode(t[o]);return n}function O(t,e,i){var n=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>n)&&(i=n);for(var o="",r=e;r<i;++r)o+=W(t[r]);return o}function L(t,e,i){for(var n=t.slice(e,i),o="",r=0;r<n.length;r+=2)o+=String.fromCharCode(n[r]+256*n[r+1]);return o}function E(t,e,i){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>i)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,i,n,o,a){if(!r.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<a)throw new RangeError('"value" argument is out of bounds');if(i+n>t.length)throw new RangeError("Index out of range")}function N(t,e,i,n){e<0&&(e=65535+e+1);for(var o=0,r=Math.min(t.length-i,2);o<r;++o)t[i+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function B(t,e,i,n){e<0&&(e=4294967295+e+1);for(var o=0,r=Math.min(t.length-i,4);o<r;++o)t[i+o]=e>>>8*(n?o:3-o)&255}function z(t,e,i,n,o,r){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function F(t,e,i,n,o){return o||z(t,e,i,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(t,e,i,n,23,4),i+4}function V(t,e,i,n,o){return o||z(t,e,i,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(t,e,i,n,52,8),i+8}function Y(t){if(t=H(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function H(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function W(t){return t<16?"0"+t.toString(16):t.toString(16)}function X(t,e){e=e||1/0;for(var i,n=t.length,o=null,r=[],a=0;a<n;++a){if((i=t.charCodeAt(a))>55295&&i<57344){if(!o){if(i>56319){(e-=3)>-1&&r.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&r.push(239,191,189);continue}o=i;continue}if(i<56320){(e-=3)>-1&&r.push(239,191,189),o=i;continue}i=65536+(o-55296<<10|i-56320)}else o&&(e-=3)>-1&&r.push(239,191,189);if(o=null,i<128){if((e-=1)<0)break;r.push(i)}else if(i<2048){if((e-=2)<0)break;r.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;r.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;r.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return r}function 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,o,r=[],a=0;a<t.length&&!((e-=2)<0);++a)i=t.charCodeAt(a),n=i>>8,o=i%256,r.push(o),r.push(n);return r}function j(t){return K.toByteArray(Y(t))}function q(t,e,i,n){for(var o=0;o<n&&!(o+i>=e.length||o>=t.length);++o)e[o+i]=t[o];return o}function Z(t){return t!==t}var K=i(250),Q=i(251),$=i(252);e.Buffer=r,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,r.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=n(),r.poolSize=8192,r._augment=function(t){return t.__proto__=r.prototype,t},r.from=function(t,e,i){return a(null,t,e,i)},r.TYPED_ARRAY_SUPPORT&&(r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0})),r.alloc=function(t,e,i){return l(null,t,e,i)},r.allocUnsafe=function(t){return h(null,t)},r.allocUnsafeSlow=function(t){return h(null,t)},r.isBuffer=function(t){return!(null==t||!t._isBuffer)},r.compare=function(t,e){if(!r.isBuffer(t)||!r.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,n=e.length,o=0,a=Math.min(i,n);o<a;++o)if(t[o]!==e[o]){i=t[o],n=e[o];break}return i<n?-1:n<i?1:0},r.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},r.concat=function(t,e){if(!$(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return r.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var n=r.allocUnsafe(e),o=0;for(i=0;i<t.length;++i){var a=t[i];if(!r.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},r.byteLength=y,r.prototype._isBuffer=!0,r.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)v(this,e,e+1);return this},r.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},r.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},r.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?k(this,0,t):m.apply(this,arguments)},r.prototype.equals=function(t){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===r.compare(this,t)},r.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),"<Buffer "+t+">"},r.prototype.compare=function(t,e,i,n,o){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||i>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=i)return 0;if(n>=o)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var a=o-n,s=i-e,l=Math.min(a,s),h=this.slice(n,o),u=t.slice(e,i),c=0;c<l;++c)if(h[c]!==u[c]){a=h[c],s=u[c];break}return a<s?-1:s<a?1:0},r.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},r.prototype.indexOf=function(t,e,i){return _(this,t,e,i,!0)},r.prototype.lastIndexOf=function(t,e,i){return _(this,t,e,i,!1)},r.prototype.write=function(t,e,i,n){if(void 0===e)n="utf8",i=this.length,e=0;else if(void 0===i&&"string"==typeof e)n=e,i=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(i)?(i|=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var o=this.length-e;if((void 0===i||i>o)&&(i=o),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var r=!1;;)switch(n){case"hex":return w(this,t,e,i);case"utf8":case"utf-8":return b(this,t,e,i);case"ascii":return S(this,t,e,i);case"latin1":case"binary":return T(this,t,e,i);case"base64":return C(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,e,i);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),r=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;r.prototype.slice=function(t,e){var i=this.length;t=~~t,e=void 0===e?i:~~e,t<0?(t+=i)<0&&(t=0):t>i&&(t=i),e<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t);var n;if(r.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=r.prototype;else{var o=e-t;n=new r(o,void 0);for(var a=0;a<o;++a)n[a]=this[a+t]}return n},r.prototype.readUIntLE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=this[t],o=1,r=0;++r<e&&(o*=256);)n+=this[t+r]*o;return n},r.prototype.readUIntBE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},r.prototype.readUInt8=function(t,e){return e||E(t,1,this.length),this[t]},r.prototype.readUInt16LE=function(t,e){return e||E(t,2,this.length),this[t]|this[t+1]<<8},r.prototype.readUInt16BE=function(t,e){return e||E(t,2,this.length),this[t]<<8|this[t+1]},r.prototype.readUInt32LE=function(t,e){return e||E(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},r.prototype.readUInt32BE=function(t,e){return e||E(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},r.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=this[t],o=1,r=0;++r<e&&(o*=256);)n+=this[t+r]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n},r.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=e,o=1,r=this[t+--n];n>0&&(o*=256);)r+=this[t+--n]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*e)),r},r.prototype.readInt8=function(t,e){return e||E(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},r.prototype.readInt16LE=function(t,e){e||E(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},r.prototype.readInt16BE=function(t,e){e||E(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},r.prototype.readInt32LE=function(t,e){return e||E(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},r.prototype.readInt32BE=function(t,e){return e||E(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},r.prototype.readFloatLE=function(t,e){return e||E(t,4,this.length),Q.read(this,t,!0,23,4)},r.prototype.readFloatBE=function(t,e){return e||E(t,4,this.length),Q.read(this,t,!1,23,4)},r.prototype.readDoubleLE=function(t,e){return e||E(t,8,this.length),Q.read(this,t,!0,52,8)},r.prototype.readDoubleBE=function(t,e){return e||E(t,8,this.length),Q.read(this,t,!1,52,8)},r.prototype.writeUIntLE=function(t,e,i,n){if(t=+t,e|=0,i|=0,!n){R(this,t,e,i,Math.pow(2,8*i)-1,0)}var o=1,r=0;for(this[e]=255&t;++r<i&&(o*=256);)this[e+r]=t/o&255;return e+i},r.prototype.writeUIntBE=function(t,e,i,n){if(t=+t,e|=0,i|=0,!n){R(this,t,e,i,Math.pow(2,8*i)-1,0)}var o=i-1,r=1;for(this[e+o]=255&t;--o>=0&&(r*=256);)this[e+o]=t/r&255;return e+i},r.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,1,255,0),r.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},r.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},r.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},r.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):B(this,t,e,!0),e+4},r.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},r.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*i-1);R(this,t,e,i,o-1,-o)}var r=0,a=1,s=0;for(this[e]=255&t;++r<i&&(a*=256);)t<0&&0===s&&0!==this[e+r-1]&&(s=1),this[e+r]=(t/a>>0)-s&255;return e+i},r.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*i-1);R(this,t,e,i,o-1,-o)}var r=i-1,a=1,s=0;for(this[e+r]=255&t;--r>=0&&(a*=256);)t<0&&0===s&&0!==this[e+r+1]&&(s=1),this[e+r]=(t/a>>0)-s&255;return e+i},r.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,1,127,-128),r.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},r.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},r.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},r.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,2147483647,-2147483648),r.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):B(this,t,e,!0),e+4},r.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},r.prototype.writeFloatLE=function(t,e,i){return F(this,t,e,!0,i)},r.prototype.writeFloatBE=function(t,e,i){return F(this,t,e,!1,i)},r.prototype.writeDoubleLE=function(t,e,i){return V(this,t,e,!0,i)},r.prototype.writeDoubleBE=function(t,e,i){return V(this,t,e,!1,i)},r.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-i&&(n=t.length-e+i);var o,a=n-i;if(this===t&&i<e&&e<n)for(o=a-1;o>=0;--o)t[o+e]=this[o+i];else if(a<1e3||!r.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)t[o+e]=this[o+i];else Uint8Array.prototype.set.call(t,this.subarray(i,i+a),e);return a},r.prototype.fill=function(t,e,i,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,i=this.length):"string"==typeof i&&(n=i,i=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!r.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<i;++a)this[a]=t;else{var s=r.isBuffer(t)?t:X(new r(t,n).toString()),l=s.length;for(a=0;a<i-e;++a)this[a+e]=s[a%l]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,i(112))},25:function(t,e,i){"use strict";var n={model:{prop:"visible",event:"toggle"},props:{visible:{type:Boolean,default:!1}},data:function(){return{isVisible:!1}},watch:{isVisible:function(t){this.$emit("toggle",t)}},mounted:function(){var t=this;this.$watch("visible",function(e,i){e?t.show():i&&t.hide()},{immediate:!0})},methods:{show:function(){return this.isVisible=!0,this},hide:function(){return this.isVisible=!1,this}}};e.a=n},250:function(t,e,i){"use strict";function n(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function o(t){var e=n(t),i=e[0],o=e[1];return 3*(i+o)/4-o}function r(t,e,i){return 3*(e+i)/4-i}function a(t){var e,i,o=n(t),a=o[0],s=o[1],l=new p(r(t,a,s)),h=0,u=s>0?a-4:a;for(i=0;i<u;i+=4)e=c[t.charCodeAt(i)]<<18|c[t.charCodeAt(i+1)]<<12|c[t.charCodeAt(i+2)]<<6|c[t.charCodeAt(i+3)],l[h++]=e>>16&255,l[h++]=e>>8&255,l[h++]=255&e;return 2===s&&(e=c[t.charCodeAt(i)]<<2|c[t.charCodeAt(i+1)]>>4,l[h++]=255&e),1===s&&(e=c[t.charCodeAt(i)]<<10|c[t.charCodeAt(i+1)]<<4|c[t.charCodeAt(i+2)]>>2,l[h++]=e>>8&255,l[h++]=255&e),l}function s(t){return u[t>>18&63]+u[t>>12&63]+u[t>>6&63]+u[63&t]}function l(t,e,i){for(var n,o=[],r=e;r<i;r+=3)n=(t[r]<<16&16711680)+(t[r+1]<<8&65280)+(255&t[r+2]),o.push(s(n));return o.join("")}function h(t){for(var e,i=t.length,n=i%3,o=[],r=0,a=i-n;r<a;r+=16383)o.push(l(t,r,r+16383>a?a:r+16383));return 1===n?(e=t[i-1],o.push(u[e>>2]+u[e<<4&63]+"==")):2===n&&(e=(t[i-2]<<8)+t[i-1],o.push(u[e>>10]+u[e>>4&63]+u[e<<2&63]+"=")),o.join("")}e.byteLength=o,e.toByteArray=a,e.fromByteArray=h;for(var u=[],c=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,g=d.length;f<g;++f)u[f]=d[f],c[d.charCodeAt(f)]=f;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},251:function(t,e){e.read=function(t,e,i,n,o){var r,a,s=8*o-n-1,l=(1<<s)-1,h=l>>1,u=-7,c=i?o-1:0,p=i?-1:1,d=t[e+c];for(c+=p,r=d&(1<<-u)-1,d>>=-u,u+=s;u>0;r=256*r+t[e+c],c+=p,u-=8);for(a=r&(1<<-u)-1,r>>=-u,u+=n;u>0;a=256*a+t[e+c],c+=p,u-=8);if(0===r)r=1-h;else{if(r===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),r-=h}return(d?-1:1)*a*Math.pow(2,r-n)},e.write=function(t,e,i,n,o,r){var a,s,l,h=8*r-o-1,u=(1<<h)-1,c=u>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:r-1,f=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+c>=1?p/l:p*Math.pow(2,1-c),e*l>=2&&(a++,l/=2),a+c>=u?(s=0,a=u):a+c>=1?(s=(e*l-1)*Math.pow(2,o),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,o),a=0));o>=8;t[i+d]=255&s,d+=f,s/=256,o-=8);for(a=a<<o|s,h+=o;h>0;t[i+d]=255&a,d+=f,a/=256,h-=8);t[i+d-f]|=128*g}},252:function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},26:function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},27:function(t,e,i){var n=i(8).f,o=i(6),r=i(3)("toStringTag");t.exports=function(t,e,i){t&&!o(t=i?t:t.prototype,r)&&n(t,r,{configurable:!0,value:e})}},28:function(t,e,i){t.exports={default:i(79),__esModule:!0}},29:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},3:function(t,e,i){var n=i(32)("wks"),o=i(22),r=i(1).Symbol,a="function"==typeof r;(t.exports=function(t){return n[t]||(n[t]=a&&r[t]||(a?r:o)("Symbol."+t))}).store=n},30:function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},31:function(t,e,i){var n=i(32)("keys"),o=i(22);t.exports=function(t){return n[t]||(n[t]=o(t))}},32:function(t,e,i){var n=i(0),o=i(1),r=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:i(16)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},33:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},34:function(t,e,i){var n=i(10);t.exports=function(t,e){if(!n(t))return t;var i,o;if(e&&"function"==typeof(i=t.toString)&&!n(o=i.call(t)))return o;if("function"==typeof(i=t.valueOf)&&!n(o=i.call(t)))return o;if(!e&&"function"==typeof(i=t.toString)&&!n(o=i.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},35:function(t,e){e.f=Object.getOwnPropertySymbols},36:function(t,e,i){e.f=i(3)},37:function(t,e,i){var n=i(1),o=i(0),r=i(16),a=i(36),s=i(8).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=r?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},38:function(t,e,i){var n=i(39);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}}},39:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},4:function(t,e,i){"use strict";function n(t,e){if(t.findIndex)return t.findIndex(e);var i=-1;return t.some(function(t,n,o){var r=e.call(this,t,n,o);if(r)return i=n,r}),i}function o(t){return t?JSON.parse(F()(t)):t}function r(t,e){for(var i in e)t[i]&&"object"===B()(t[i])?r(t[i],e[i]):t[i]=e[i]}function a(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function s(t){return"[object String]"===Object.prototype.toString.call(t)}function l(t){return"[object Number]"===Object.prototype.toString.call(t)}function h(t){return"[object Object]"===Object.prototype.toString.call(t)}function u(t){return"[object Boolean]"===Object.prototype.toString.call(t)}function c(t){return null===t}function p(t){return void 0!==t&&null!==t}function d(t){return void 0===t}function f(t){return"[object Error]"===Object.prototype.toString.call(t)}function g(t){return"function"==typeof t}function y(t,e,i){function n(e){var i=y,n=m;return y=m=void 0,b=e,_=t.apply(n,i)}function o(t,e){return M?(window.cancelAnimationFrame(x),window.requestAnimationFrame(t)):setTimeout(t,e)}function r(t){if(M)return window.cancelAnimationFrame(t);clearTimeout(t)}function a(t){return b=t,x=o(u,e),S?n(t):_}function s(t){var i=t-w,n=t-b,o=e-i;return T?Math.min(o,v-n):o}function l(t){var i=t-w,n=t-b;return void 0===w||i>=e||i<0||T&&n>=v}function u(){var t=Date.now();if(l(t))return c(t);x=o(u,s(t))}function c(t){return x=void 0,C&&y?n(t):(y=m=void 0,_)}function p(){void 0!==x&&r(x),b=0,y=w=m=x=void 0}function d(){return void 0===x?_:c(Date.now())}function f(){return void 0!==x}function g(){for(var t=Date.now(),i=l(t),r=arguments.length,s=Array(r),h=0;h<r;h++)s[h]=arguments[h];if(y=s,m=this,w=t,i){if(void 0===x)return a(w);if(T)return x=o(u,e),n(w)}return void 0===x&&(x=o(u,e)),_}var y=void 0,m=void 0,v=void 0,_=void 0,x=void 0,w=void 0,b=0,S=!1,T=!1,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 m(t,e,i){var n=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return h(i)&&(n="leading"in i?!!i.leading:n,o="trailing"in i?!!i.trailing:o),y(t,e,{leading:n,trailing:o,maxWait:e})}function v(t){return!!/^1\d{10}$/.test(t)}function _(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 x(t){return t.replace(/\s/g,"").replace(/(.{4})(?=.)/g,"$1 ")}function w(t){if(void 0!==t||null!==t)return/^\d+(\.\d+)?$/.test(t+"")?t+"px":t}function b(t){if(!t)return"";var e=t.length;return 2===e?t.split("").join("&emsp;&emsp;"):3===e?t.split("").join("&ensp;"):t}function S(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 T(t,e){var i=/^#([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})$/i.exec(t),n=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t),o=null;return i?o={r:parseInt(i[1]+i[1],16),g:parseInt(i[2]+i[2],16),b:parseInt(i[3]+i[3],16)}:n&&(o={r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}),o?void 0!==e?"rgba("+o.r+", "+o.g+", "+o.b+", "+e+")":"rgb("+o.r+", "+o.g+", "+o.b+")":""}function C(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefhijklmnopqrstuvwxyz",i=e.length,n="";t=t||32;for(var o=0;o<t;o++)n+=e.charAt(Math.floor(Math.random()*i));return n}function M(t,e){var i=e||location.href,n=new RegExp("(\\?|&)"+t+"=([^&#$\\s]+)"),o=i.match(n);return o&&o[2]}function I(t){var e=window.getComputedStyle(t),i="none"===e.display,n=null===t.offsetParent&&"fixed"!==e.position;return i||n}function k(t,e,i){return Math.min(Math.max(t,e),i)}function A(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 D(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 P(t){return t?f(t)?t.message:s(t)?t:t.errmsg||"请求失败,请稍后重试":"请求失败,请稍后重试"}function O(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[],i=new RegExp("https?://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]"),n=0;n<t.length;n++){var o=t[n];if(!i.test(o))return;e.push(o.split("?")[0])}return e}function L(t){var e=JSON.parse(F()(t)),i=e.attrModules,n=void 0===i?{}:i,o=e.plan,r=n.applicant,s=n.insureds,l=n.hcpics,h=n.hctext,u=n.makeup,c=n.apphctext,p=n.apphcpics,d={},f=function(t){var e=null,i=null,n=null,o=null,r={},s={},l={};for(var h in t){var u=t[h].defaultValue,c=t[h].required,p=t[h].display;if(a(u)){var d=O(u);d&&(u=d)}1!==Number(c)&&1!==Number(p)||("idType"===h||"id"===h||"idValidType"===h||"idValidEndTime"===h||"idValidStartTime"===h?(e=e||{},e[h]=u):"socialInsAddr"===h||"socialInsDetail"===h||"socialInsPost"===h||"socialInsTel"===h?(i=i||{},i[h]=u):"residentAddr"===h||"residentDetail"===h||"residentPost"===h||"residentTel"===h?(n=n||{},n[h]=u):"officeAddr"===h||"officeDetail"===h||"officePost"===h||"officeTel"===h?(o=o||{},o[h]=u):"companyIdType"===h||"companyId"===h?(s=s||{},s[h]=u):"detail"===h?(l=l||{},l[h]=u):r[h]=u)}return e&&(r.certificate=e),i&&(r.socialIns=i),n&&(r.resident=n),o&&(r.office=o),s&&(r.companyCertificate=s),l&&(r.companyAddress=l),r};if(n.plan&&(o=f(n.plan)),r&&(d.applicant={},r&&(d.applicant=f(r))),s||o){d.insureds=[];for(var g=s||[""],y=0;y<g.length;y++){var m=g[y],v=null,_={};m&&(v=f(m)),v&&(_.insured=v),o&&(_.plan=o),d.insureds.push(_)}}if(h&&(d.hctext=f(h)),c&&(d.apphctext=f(c)),l&&(d.hcpics=f(l)),p&&(d.apphcpics=f(p)),u){d.makeup={};for(var x=u||[""],w=0;w<x.length;w++){var b=x[w],S=null;b&&(S=f(b)),S&&(d.makeup=R()(d.makeup,S))}}return d}i.d(e,"F",function(){return et}),i.d(e,"v",function(){return it}),e.d=n,e.c=o,e.b=r,e.o=a,e.z=s,e.x=l,e.y=h,e.p=u,e.w=c,e.q=p,e.A=d,e.r=f,e.s=g,e.a=y,e.E=m,e.u=v,e.g=_,e.e=x,e.f=w,e.h=b,e.B=S,e.n=T,e.C=C,e.l=M,e.t=I,e.D=k,e.k=A,e.m=D,e.j=P,e.i=L;var E=i(28),R=i.n(E),N=i(75),B=i.n(N),z=i(57),F=i.n(z),V="undefined"!=typeof window,Y=V&&window.navigator.userAgent.toLowerCase(),H=Y&&/msie|trident/.test(Y),W=Y&&Y.indexOf("msie 9.0")>0,X=Y&&Y.indexOf("edge/")>0,U=Y&&Y.indexOf("android")>0,G=Y&&/iphone|ipad|ipod|ios/.test(Y),j=Y&&/chrome\/\d+/.test(Y)&&!X,q=Y&&/MicroMessenger/i.test(Y),Z=Y&&/wxwork/i.test(Y),K=Y&&/mucxiaoyusan/i.test(Y),Q=Y&&/muckacabao/i.test(Y),$=Y&&/mucyanxuan/i.test(Y),J=K||Q,tt=Y&&/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test(Y),et={isIE:H,isMobile:tt,isIE9:W,isEdge:X,isAndroid:U,isIOS:G,isChrome:j,isWx:q,isWxWork:Z,isApp:J,isXysApp:K,isKcbApp:Q,isYxApp:$},it=/MucWebAutoTester/.test(window.navigator.userAgent)},40:function(t,e,i){var n=i(10),o=i(1).document,r=n(o)&&n(o.createElement);t.exports=function(t){return r?o.createElement(t):{}}},44:function(t,e,i){"use strict";var n=i(16),o=i(13),r=i(49),a=i(7),s=i(18),l=i(67),h=i(27),u=i(71),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||r(C,_,v[_]);else o(o.P+o.F*(p||T),e,v);return v}},46:function(t,e,i){var n=i(9),o=i(68),r=i(33),a=i(31)("IE_PROTO"),s=function(){},l=function(){var t,e=i(40)("iframe"),n=r.length;for(e.style.display="none",i(60).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;n--;)delete l.prototype[r[n]];return l()};t.exports=Object.create||function(t,e){var i;return null!==t?(s.prototype=n(t),i=new s,s.prototype=null,i[a]=t):i=l(),void 0===e?i:o(i,e)}},47:function(t,e,i){var n=i(26);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},48:function(t,e,i){t.exports=!i(5)&&!i(12)(function(){return 7!=Object.defineProperty(i(40)("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),o=i(11),r=i(69)(!1),a=i(31)("IE_PROTO");t.exports=function(t,e){var i,s=o(t),l=0,h=[];for(i in s)i!=a&&n(s,i)&&h.push(i);for(;e.length>l;)n(s,i=e[l++])&&(~r(h,i)||h.push(i));return h}},51:function(t,e,i){var n=i(50),o=i(33).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},515: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||"确定"}}}},52:function(t,e,i){"use strict";var n=i(66)(!0);i(44)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=n(e,i),this._i+=t.length,{value:t,done:!1})})},53:function(t,e,i){var n=i(11),o=i(51).f,r={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==r.call(t)?s(t):o(n(t))}},533: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])}}}},54:function(t,e,i){i(72);for(var n=i(1),o=i(7),r=i(18),a=i(3)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var h=s[l],u=n[h],c=u&&u.prototype;c&&!c[a]&&o(c,a,h),r[h]=r.Array}},55:function(t,e,i){"use strict";var n=i(1),o=i(6),r=i(5),a=i(13),s=i(49),l=i(74).KEY,h=i(12),u=i(32),c=i(27),p=i(22),d=i(3),f=i(36),g=i(37),y=i(82),m=i(77),v=i(9),_=i(10),x=i(23),w=i(11),b=i(34),S=i(21),T=i(46),C=i(53),M=i(83),I=i(35),k=i(8),A=i(14),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=r&&h(function(){return 7!=T(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,i){var n=D(H,e);n&&delete H[e],P(t,e,i),n&&t!==H&&P(H,e,n)}:P,j=function(t){var e=V[t]=T(L.prototype);return e._k=t,e},q=W&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},Z=function(t,e,i){return t===H&&Z(Y,e,i),v(t),e=b(e,!0),v(i),o(V,e)?(i.enumerable?(o(t,N)&&t[N][e]&&(t[N][e]=!1),i=T(i,{enumerable:S(0,!1)})):(o(t,N)||P(t,N,S(1,{})),t[N][e]=!0),G(t,e,i)):P(t,e,i)},K=function(t,e){v(t);for(var i,n=y(e=w(e)),o=0,r=n.length;r>o;)Z(t,i=n[o++],e[i]);return t},Q=function(t,e){return void 0===e?T(t):K(T(t),e)},$=function(t){var e=z.call(this,t=b(t,!0));return!(this===H&&o(V,t)&&!o(Y,t))&&(!(e||!o(this,t)||!o(V,t)||o(this,N)&&this[N][t])||e)},J=function(t,e){if(t=w(t),e=b(e,!0),t!==H||!o(V,e)||o(Y,e)){var i=D(t,e);return!i||!o(V,e)||o(t,N)&&t[N][e]||(i.enumerable=!0),i}},tt=function(t){for(var e,i=O(w(t)),n=[],r=0;i.length>r;)o(V,e=i[r++])||e==N||e==l||n.push(e);return n},et=function(t){for(var e,i=t===H,n=O(i?Y:w(t)),r=[],a=0;n.length>a;)!o(V,e=n[a++])||i&&!o(H,e)||r.push(V[e]);return r};W||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(i){this===H&&e.call(Y,i),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),G(this,t,S(1,i))};return r&&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(24).f=$,I.f=et,r&&!i(16)&&s(H,"propertyIsEnumerable",$,!0),f.f=function(t){return j(d(t))}),a(a.G+a.W+a.F*!W,{Symbol:L});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;it.length>nt;)d(it[nt++]);for(var ot=A(d.store),rt=0;ot.length>rt;)g(ot[rt++]);a(a.S+a.F*!W,"Symbol",{for:function(t){return o(F,t+="")?F[t]:F[t]=L(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){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],o=1;arguments.length>o;)n.push(arguments[o++]);if(i=e=n[1],(_(e)||void 0!==t)&&!q(t))return m(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!q(e))return e}),n[1]=e,R.apply(E,n)}}),L.prototype[B]||i(7)(L.prototype,B,L.prototype.valueOf),c(L,"Symbol"),c(Math,"Math",!0),c(n.JSON,"JSON",!0)},56:function(t,e,i){var n=i(13),o=i(0),r=i(12);t.exports=function(t,e){var i=(o.Object||{})[t]||Object[t],a={};a[t]=e(i),n(n.S+n.F*r(function(){i(1)}),"Object",a)}},57:function(t,e,i){t.exports={default:i(78),__esModule:!0}},58:function(t,e,i){var n=i(30),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},582:function(t,e,i){"use strict";var n=i(114),o=i(104),r=i(65),a=i(111),s=i(533),l=i(515),h=i(25),u=i(146);e.a={name:"ActPicker",mixins:[r.a,h.a,s.a,l.a,a.a],props:{pending:{type:Boolean,default:!1}},data:function(){return{finalData:this.data.slice()}},created:function(){this._values=[],this._indexes=this.selectedIndex},methods:{confirm:function(){if(this._canConfirm()){this.hide();var t=!1,e=[],i=this.finalData.length,n=this._values.length;n!==i&&(t=!0,n>i&&(this._values.length=this._indexes.length=i));for(var o=0;o<i;o++){var r=this._getSelectIndex(this.wheels[o]);this._indexes[o]=r;var a=null,s="";this.finalData[o].length&&(a=this.finalData[o][r][this.valueKey],s=this.finalData[o][r][this.textKey]),this._values[o]!==a&&(t=!0),this._values[o]=a,e[o]=s}this.$emit("select",this._values,this._indexes,e),t&&this.$emit("value-change",this._values,this._indexes,e)}},maskClick:function(){this.maskClosable&&this.cancel()},cancel:function(){this.hide(),this.$emit("cancel")},show:function(){var t=this;if(!this.isVisible)if(this.isVisible=!0,!this.wheels||this.dirty)this.$nextTick(function(){t.wheels=t.wheels||[];for(var e=t.$refs.wheelWrapper,i=0;i<t.finalData.length;i++)t._createWheel(e,i).enable(),t.wheels[i].wheelTo(t._indexes[i]);t.dirty&&t._destroyExtraWheels(),t.dirty=!1});else for(var e=0;e<this.finalData.length;e++)this.wheels[e].enable(),this.wheels[e].wheelTo(this._indexes[e])},hide:function(){if(this.isVisible){this.isVisible=!1;for(var t=0;t<this.finalData.length;t++)this.wheels[t].disable()}},setData:function(t,e){var i=this;this._indexes=e?[].concat(e):[],this.finalData=t.slice(),this.isVisible?this.$nextTick(function(){var t=i.$refs.wheelWrapper;i.finalData.forEach(function(e,n){i._createWheel(t,n),i.wheels[n].wheelTo(i._indexes[n])}),i._destroyExtraWheels()}):this.dirty=!0},refill:function(t){var e=this,i=[];return t.length?(t.forEach(function(t,n){i[n]=e.refillColumn(n,t)}),i):i},refillColumn:function(t,e){var i=this,n=this.$refs.wheelWrapper,o=n.children[t].querySelector(".act-picker-wheel-scroll"),r=!!this.wheels&&this.wheels[t],a=0;if(o&&r){var s=this.finalData[t];this.$set(this.finalData,t,e);var l=r.getSelectedIndex();if(s.length)for(var h=s[l][this.valueKey],u=0;u<e.length;u++)if(e[u][this.valueKey]===h){a=u;break}this._indexes[t]=a,this.$nextTick(function(){r=i._createWheel(n,t),r.wheelTo(a)})}return a},scrollTo:function(t,e){var i=this.wheels[t];this._indexes[t]=e,i.wheelTo(e)},refresh:function(){var t=this;this.$nextTick(function(){t.wheels.forEach(function(t){t.refresh()})})},_createWheel:function(t,e){var i=this;if(this.wheels[e])this.wheels[e].refresh();else{var o=this.wheels[e]=new n.default(t.children[e],{wheel:{selectedIndex:this._indexes[e]||0,wheelWrapperClass:"act-picker-wheel-scroll",wheelItemClass:"act-picker-wheel-item"},swipeTime:this.swipeTime,observeDOM:!1,useTransition:u.a});o.on("scrollEnd",function(){i.$emit("change",e,i._getSelectIndex(o))})}return this.wheels[e]},_destroyExtraWheels:function(){var t=this.finalData.length;if(this.wheels.length>t){this.wheels.splice(t).forEach(function(t){t.destroy()})}},_canConfirm:function(){return!this.pending&&this.wheels.every(function(t){return!t.isInTransition})},_getFlexOrder:function(t){return t[0]?t[0][this.orderKey]:0},_getSelectIndex:function(t){var e=t.y;return u.a?t.getSelectedIndex():e>t.minScrollY?0:e<t.maxScrollY?t.items.length-1:Math.round(Math.abs(e/t.itemHeight))}},beforeDestroy:function(){this.wheels&&this.wheels.forEach(function(t){t.destroy()}),this.wheels=null},components:{ActPopup:o.a}}},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(1).document;t.exports=n&&n.documentElement},61:function(t,e){},62:function(t,e,i){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var o=i(76),r=i.n(o),a=i(92),s=i.n(a),l=i(28),h=i.n(l),u=i(95),c=i.n(u),p=c.a,d=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,g=function(){try{if(!h.a)return!1;var t=new String("abc");if(t[5]="de","5"===s()(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;if("0123456789"!==s()(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===r()(h()({},n)).join("")}catch(t){return!1}}()?h.a:function(t,e){for(var i,o,r=n(t),a=1;a<arguments.length;a++){i=Object(arguments[a]);for(var s in i)d.call(i,s)&&(r[s]=i[s]);if(p){o=p(i);for(var l=0;l<o.length;l++)f.call(i,o[l])&&(r[o[l]]=i[o[l]])}}return r};e.a=g},64:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},65:function(t,e,i){"use strict";e.a={props:{zIndex:{type:Number,default:100},maskClosable:{type:Boolean,default:!1}}}},66:function(t,e,i){var n=i(30),o=i(29);t.exports=function(t){return function(e,i){var r,a,s=String(o(e)),l=n(i),h=s.length;return l<0||l>=h?t?"":void 0:(r=s.charCodeAt(l),r<55296||r>56319||l+1===h||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):r:t?s.slice(l,l+2):a-56320+(r-55296<<10)+65536)}}},67:function(t,e,i){"use strict";var n=i(46),o=i(21),r=i(27),a={};i(7)(a,i(3)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=n(a,{next:o(1,i)}),r(t,e+" Iterator")}},68:function(t,e,i){var n=i(8),o=i(9),r=i(14);t.exports=i(5)?Object.defineProperties:function(t,e){o(t);for(var i,a=r(e),s=a.length,l=0;s>l;)n.f(t,i=a[l++],e[i]);return t}},69:function(t,e,i){var n=i(11),o=i(58),r=i(70);t.exports=function(t){return function(e,i,a){var s,l=n(e),h=o(l.length),u=r(a,h);if(t&&i!=i){for(;h>u;)if((s=l[u++])!=s)return!0}else for(;h>u;u++)if((t||u in l)&&l[u]===i)return t||u||0;return!t&&-1}}},7:function(t,e,i){var n=i(8),o=i(21);t.exports=i(5)?function(t,e,i){return n.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},70:function(t,e,i){var n=i(30),o=Math.max,r=Math.min;t.exports=function(t,e){return t=n(t),t<0?o(t+e,0):r(t,e)}},71:function(t,e,i){var n=i(6),o=i(23),r=i(31)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,r)?t[r]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},72:function(t,e,i){"use strict";var n=i(73),o=i(64),r=i(18),a=i(11);t.exports=i(44)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,i):"values"==e?o(0,t[i]):o(0,[i,t[i]])},"values"),r.Arguments=r.Array,n("keys"),n("values"),n("entries")},73:function(t,e){t.exports=function(){}},74:function(t,e,i){var n=i(22)("meta"),o=i(10),r=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(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!r(t,n)){if(!l(t))return"F";if(!e)return"E";u(t)}return t[n].i},p=function(t,e){if(!r(t,n)){if(!l(t))return!0;if(!e)return!1;u(t)}return t[n].w},d=function(t){return h&&f.NEED&&l(t)&&!r(t,n)&&u(t),t},f=t.exports={KEY:n,NEED:!1,fastKey:c,getWeak:p,onFreeze:d}},75:function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=i(84),r=n(o),a=i(86),s=n(a),l="function"==typeof s.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===l(r.default)?function(t){return void 0===t?"undefined":l(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":l(t)}},76:function(t,e,i){t.exports={default:i(90),__esModule:!0}},77:function(t,e,i){var n=i(26);t.exports=Array.isArray||function(t){return"Array"==n(t)}},78:function(t,e,i){var n=i(0),o=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},79:function(t,e,i){i(80),t.exports=i(0).Object.assign},8:function(t,e,i){var n=i(9),o=i(48),r=i(34),a=Object.defineProperty;e.f=i(5)?Object.defineProperty:function(t,e,i){if(n(t),e=r(e,!0),n(i),o)try{return a(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},80:function(t,e,i){var n=i(13);n(n.S+n.F,"Object",{assign:i(81)})},81:function(t,e,i){"use strict";var n=i(5),o=i(14),r=i(35),a=i(24),s=i(23),l=i(47),h=Object.assign;t.exports=!h||i(12)(function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach(function(t){e[t]=t}),7!=h({},t)[i]||Object.keys(h({},e)).join("")!=n})?function(t,e){for(var i=s(t),h=arguments.length,u=1,c=r.f,p=a.f;h>u;)for(var d,f=l(arguments[u++]),g=c?o(f).concat(c(f)):o(f),y=g.length,m=0;y>m;)d=g[m++],n&&!p.call(f,d)||(i[d]=f[d]);return i}:h},82:function(t,e,i){var n=i(14),o=i(35),r=i(24);t.exports=function(t){var e=n(t),i=o.f;if(i)for(var a,s=i(t),l=r.f,h=0;s.length>h;)l.call(t,a=s[h++])&&e.push(a);return e}},83:function(t,e,i){var n=i(24),o=i(21),r=i(11),a=i(34),s=i(6),l=i(48),h=Object.getOwnPropertyDescriptor;e.f=i(5)?h:function(t,e){if(t=r(t),e=a(e,!0),l)try{return h(t,e)}catch(t){}if(s(t,e))return o(!n.f.call(t,e),t[e])}},84:function(t,e,i){t.exports={default:i(85),__esModule:!0}},85:function(t,e,i){i(52),i(54),t.exports=i(36).f("iterator")},86:function(t,e,i){t.exports={default:i(87),__esModule:!0}},87:function(t,e,i){i(55),i(61),i(88),i(89),t.exports=i(0).Symbol},88:function(t,e,i){i(37)("asyncIterator")},89:function(t,e,i){i(37)("observable")},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){i(91),t.exports=i(0).Object.keys},91:function(t,e,i){var n=i(23),o=i(14);i(56)("keys",function(){return function(t){return o(n(t))}})},92:function(t,e,i){t.exports={default:i(93),__esModule:!0}},93:function(t,e,i){i(94);var n=i(0).Object;t.exports=function(t){return n.getOwnPropertyNames(t)}},94:function(t,e,i){i(56)("getOwnPropertyNames",function(){return i(53).f})},942:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(15),o=i(943);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createPicker=Object(n.a)(o.a,t)},e.default=o.a},943:function(t,e,i){"use strict";function n(t){s||i(944)}var o=i(582),r=i(945),a=i(2),s=!1,l=n,h=Object(a.a)(o.a,r.a,r.b,!1,l,"data-v-65cf9f1c",null);h.options.__file="src\\components\\Picker\\src\\index.vue",e.a=h.exports},944:function(t,e){},945:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("transition",{attrs:{name:"act-picker-fade"}},[i("act-popup",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],attrs:{type:"picker",mask:!0,center:!1,topBorderRadius:!0,zIndex:t.zIndex},on:{touchmove:function(t){t.preventDefault()},"mask-click":t.maskClick}},[i("transition",{attrs:{name:"act-picker-move"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-picker-panel",on:{click:function(t){t.stopPropagation()}}},[i("div",{staticClass:"act-picker-choose"},[i("span",{staticClass:"act-picker-cancel",style:{color:t.cancelColor},on:{click:t.cancel}},[t._v(t._s(t._cancelTxt))]),t._v(" "),i("span",{staticClass:"act-picker-confirm",style:{color:t.confirmColor},on:{click:t.confirm}},[t._v(t._s(t._confirmTxt))]),t._v(" "),i("div",{staticClass:"act-picker-title-group"},[i("h1",{staticClass:"act-picker-title",domProps:{innerHTML:t._s(t.title)}}),t._v(" "),t.subtitle?i("h2",{staticClass:"act-picker-subtitle",domProps:{innerHTML:t._s(t.subtitle)}}):t._e()])]),t._v(" "),i("div",{staticClass:"act-picker-content"},[i("i",{staticClass:"border-bottom-1px"}),t._v(" "),i("i",{staticClass:"border-top-1px"}),t._v(" "),i("div",{ref:"wheelWrapper",staticClass:"act-picker-wheel-wrapper"},t._l(t.finalData,function(e,n){return i("div",{key:n,style:{order:t._getFlexOrder(e)}},[i("ul",{staticClass:"act-picker-wheel-scroll"},t._l(e,function(e,n){return i("li",{key:n,staticClass:"act-picker-wheel-item",domProps:{innerHTML:t._s(e[t.textKey])}})}),0)])}),0)]),t._v(" "),i("div",{staticClass:"act-picker-footer"})])])],1)],1)},o=[];n._withStripped=!0},95:function(t,e,i){t.exports={default:i(96),__esModule:!0}},96:function(t,e,i){i(55),t.exports=i(0).Object.getOwnPropertySymbols},97:function(t,e,i){"use strict";function n(t){var e={},i={},n={};for(var l in t)if(t.hasOwnProperty(l))if(-1!==s.indexOf(l))e[l]=t[l];else if(a.test(l)){var h=a.exec(l)[1];h=Object(r.a)(h),n[h]=t[l]}else i[l]=t[l];return e.on=Object(o.a)(n,e.on),e.props=Object(o.a)(i,e.props),e}e.a=n;var o=i(62),r=i(98),a=new RegExp(/^on(.+)/),s=["class","style","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","key","ref","refInFor"]},98:function(t,e,i){"use strict";function n(t,e){var i=l(t,e);return i.charAt(0).toLowerCase()+i.slice(1)}e.a=n;var o=i(28),r=i.n(o),a=i(4),s=function(t){for(var e=!1,i=!1,n=!1,o=0;o<t.length;o++){var r=t[o];e&&/[a-zA-Z]/.test(r)&&r.toUpperCase()===r?(t=t.slice(0,o)+"-"+t.slice(o),e=!1,n=i,i=!0,o++):i&&n&&/[a-zA-Z]/.test(r)&&r.toLowerCase()===r?(t=t.slice(0,o-1)+"-"+t.slice(o-1),n=i,i=!1,e=!0):(e=r.toLowerCase()===r&&r.toUpperCase()!==r,n=i,i=r.toUpperCase()===r&&r.toLowerCase()!==r)}return t},l=function(t,e){if("string"!=typeof t&&!Object(a.o)(t))throw new TypeError("Expected the input to be `string | string[]`");e=r()({pascalCase:!1},e);return t=Array.isArray(t)?t.map(function(t){return t.trim()}).filter(function(t){return t.length}).join("-"):t.trim(),0===t.length?"":1===t.length?e.pascalCase?t.toUpperCase():t.toLowerCase():(t!==t.toLowerCase()&&(t=s(t)),t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(t,e){return e.toUpperCase()}).replace(/\d+(\w|$)/g,function(t){return t.toUpperCase()}),function(t){return e.pascalCase?t.charAt(0).toUpperCase()+t.slice(1):t}(t))}},99:function(t,e,i){"use strict";function n(t,e,i,n){var r=void 0,a=void 0,s=new t({render:function(t){var i=a&&a(t);return i&&!Object(o.o)(i)&&(i=[i]),t(e,r,i||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return s.updateRenderData=function(t,e){r=t,a=e},s.updateRenderData(i,n),s.$mount(),s.init(),s.$children[0]}e.a=n;var o=i(4)}})});
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.GoldFinanceChart=e():t.GoldFinanceChart=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../lib",e(e.s=2006)}({0:function(t,e){var i=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=i)},1: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)},10:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},100:function(t,e,i){var n=i(26),o=i(3)("toStringTag"),r="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,i,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=a(e=Object(t),o))?i:r?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},101:function(t,e,i){"use strict";var n=i(25),o=i(65);e.a={name:"ActPopup",mixins:[n.a,o.a],props:{type:{type:String,default:""},mask:{type:Boolean,default:!0},content:{type:String,default:""},center:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.7},pointerEvent:{type:String,default:""},zIndex:{type:[String,Number],default:"999"},topBorderRadius:{type:Boolean,default:!1}},computed:{typeClass:function(){return this.type?"act-"+this.type:""},maskBgColor:function(){return"rgba(0, 0, 0, "+this.opacity+")"}},methods:{maskClick:function(t){this.$emit("mask-click",t)}}}},104:function(t,e,i){"use strict";function n(t){s||i(125)}var o=i(101),r=i(126),a=i(2),s=!1,l=n,h=Object(a.a)(o.a,r.a,r.b,!1,l,null,null);h.options.__file="src\\components\\common\\popup.vue",e.a=h.exports},109:function(t,e,i){var n=i(100),o=i(3)("iterator"),r=i(18);t.exports=i(0).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||r[n(t)]}},11:function(t,e,i){var n=i(47),o=i(29);t.exports=function(t){return n(o(t))}},111:function(t,e,i){"use strict";function n(t){t.preventDefault()}var o={watch:{isVisible:function(t){t?document.body.addEventListener("touchmove",n,{passive:!1}):document.body.removeEventListener("touchmove",n,{passive:!1})}},beforeDestroy:function(){document.body.removeEventListener("touchmove",n,{passive:!1})}};e.a=o},112: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},114:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(147);e.default=n.a},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},125:function(t,e){},126:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-popup",class:t.typeClass,style:{pointerEvents:t.pointerEvent,zIndex:t.zIndex}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.mask,expression:"mask"}],staticClass:"act-popup-mask act-row act-middle",style:{backgroundColor:t.maskBgColor},on:{click:t.maskClick}},[t._t("mask")],2),t._v(" "),i("div",{staticClass:"act-popup-container",class:{"act-popup-center":t.center}},[t.$slots.default?i("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius}},[t._t("default")],2):i("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius},domProps:{innerHTML:t._s(t.content)}})])])},o=[];n._withStripped=!0},13:function(t,e,i){var n=i(1),o=i(0),r=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?o:o[e]||(o[e]={}),_=v.prototype,x=d?n:f?n[e]:(n[e]||{}).prototype;d&&(i=e);for(h in i)(u=!p&&x&&void 0!==x[h])&&s(v,h)||(c=u?x[h]:i[h],v[h]=d&&"function"!=typeof x[h]?i[h]:y&&u?r(c,n):m&&x[h]==c?function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(c):g&&"function"==typeof c?r(Function.call,c):c,g&&((v.virtual||(v.virtual={}))[h]=c,t&l.R&&_&&!_[h]&&a(_,h,c)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},132:function(t,e,i){t.exports={default:i(170),__esModule:!0}},14:function(t,e,i){var n=i(50),o=i(33);t.exports=Object.keys||function(t){return n(t,o)}},146:function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n=i(4),o=function(){var t=!0;if(n.F.isIOS){var e=Object(n.k)(navigator.userAgent.toLowerCase());if(!e)return t;Number(""+e.major+e.minor)>=133&&(t=!1)}return t}()},147:function(t,e,i){"use strict";function n(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function o(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];for(var o=0;o<i.length;o++){var r=i[o];for(var a in r)t[a]=r[a]}return t}function r(t){return void 0===t||null===t}function a(t,e){return Math.sqrt(t*t+e*e)}function s(t){return!1!==N&&("standard"===N?"transitionEnd"===t?"transitionend":t:N+t.charAt(0).toUpperCase()+t.substr(1))}function l(t,e,i,n){t.addEventListener(e,i,{passive:!1,capture:!!n})}function h(t,e,i,n){t.removeEventListener(e,i,{passive:!1,capture:!!n})}function u(t){for(var e=0,i=0;t;)e-=t.offsetLeft,i-=t.offsetTop,t=t.offsetParent;return{left:e,top:i}}function c(t){var e=t.getBoundingClientRect();return{left:-(e.left+window.pageXOffset),top:-(e.top+window.pageYOffset)}}function p(t){if(t instanceof window.SVGElement){var e=t.getBoundingClientRect();return{top:e.top,left:e.left,width:e.width,height:e.height}}return{top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}function d(t,e){for(var i in e)if(e[i].test(t[i]))return!0;return!1}function f(t,e){var i=document.createEvent("Event");i.initEvent(e,!0,!0),i.pageX=t.pageX,i.pageY=t.pageY,t.target.dispatchEvent(i)}function g(t){function e(){a=document.createEvent("Event"),a.initEvent(i,s,l),o(a,r)}var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"click",n=void 0;"mouseup"===t.type||"mousecancel"===t.type?n=t:"touchend"!==t.type&&"touchcancel"!==t.type||(n=t.changedTouches[0]);var r={};n&&(r.screenX=n.screenX||0,r.screenY=n.screenY||0,r.clientX=n.clientX||0,r.clientY=n.clientY||0);var a=void 0,s=!0,l=!0;if("undefined"!=typeof MouseEvent)try{a=new MouseEvent(i,o({bubbles:s,cancelable:l},r))}catch(t){e()}else e();a.forwardedTouchEvent=!0,a._constructed=!0,t.target.dispatchEvent(a)}function y(t){g(t,"dblclick")}function m(t,e){e.firstChild?v(t,e.firstChild):e.appendChild(t)}function v(t,e){e.parentNode.insertBefore(t,e)}function _(t,e){t.removeChild(e)}function x(t,e,i,n,o,r,a){var s=t-e,l=Math.abs(s)/i,h=a.deceleration,u=a.itemHeight,c=a.swipeBounceTime,p=a.wheel,d=a.swipeTime,f=d,g=p?4:15,y=t+l/h*(s<0?-1:1);return p&&u&&(y=Math.round(y/u)*u),y<n?(y=r?Math.max(n-r/4,n-r/g*l):n,f=c):y>o&&(y=r?Math.min(o+r/4,o+r/g*l):o,f=c),{destination:Math.round(y),duration:f}}function w(){}function b(t){console.error("[BScroll warn]: "+t)}function S(t,e){if(!t)throw new Error("[BScroll] "+e)}function T(t){var e=document.createElement("div"),i=document.createElement("div");return e.style.cssText="position:absolute;z-index:9999;pointerEvents:none",i.style.cssText="box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;",i.className="bscroll-indicator","horizontal"===t?(e.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",i.style.height="100%",e.className="bscroll-horizontal-scrollbar"):(e.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",i.style.width="100%",e.className="bscroll-vertical-scrollbar"),e.style.cssText+=";overflow:hidden",e.appendChild(i),e}function 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,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){o=!0,r=t}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),D=function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)},P="undefined"!=typeof window,O=P&&navigator.userAgent.toLowerCase(),L=O&&/wechatdevtools/.test(O),E=O&&O.indexOf("android")>0,R=P&&document.createElement("div").style,N=function(){if(!P)return!1;var t={webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform",standard:"transform"};for(var e in t)if(void 0!==R[t[e]])return e;return!1}(),B=s("transform"),z=P&&s("perspective")in R,F=P&&("ontouchstart"in window||L),V=!1!==B,Y=P&&s("transition")in R,H={transform:B,transitionTimingFunction:s("transitionTimingFunction"),transitionDuration:s("transitionDuration"),transitionDelay:s("transitionDelay"),transformOrigin:s("transformOrigin"),transitionEnd:s("transitionEnd")},W=1,X={touchstart:W,touchmove:W,touchend:W,mousedown:2,mousemove:2,mouseup:2},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 o=Math.max(this.indicatorWidth+3*n,8);this.indicatorStyle.width=o+"px",n=0}else if(n>this.maxPosX){this.transitionTime(500);var r=Math.max(this.indicatorWidth-3*(n-this.maxPosX),8);this.indicatorStyle.width=r+"px",n=this.maxPosX+this.indicatorWidth-r}else this.indicatorStyle.width=this.indicatorWidth+"px";this.x=n,this.scroller.options.useTransform?this.indicatorStyle[H.transform]="translateX("+n+"px)"+this.scroller.translateZ:this.indicatorStyle.left=n+"px"}},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 o=this.x+i,r=this.y+n;this._pos(o,r)},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,o=void 0===n?G.bounce:n,r=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),a=i||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-r.x),1e3),Math.min(Math.abs(this.scroller.y-r.y),1e3)),300);this.scroller.x===r.x&&this.scroller.y===r.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=r,this.scroller.scrollTo(r.x,r.y,a,o))}this.moved&&this.scroller.trigger("scrollEnd",{x:this.scroller.x,y:this.scroller.y})}},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,o=i.index;e<0?(n-=30,o+=10):(n-=10,o+=30),this.fill(n,o),this.maybeRequestContent()},I.prototype.onResize=function(){var t=this.options.createTombstone();t.style.position="absolute",this.scrollerEl.appendChild(t),t.style.display="",this.tombstoneHeight=t.offsetHeight,this.tombstoneWidth=t.offsetWidth,this.scrollerEl.removeChild(t);for(var e=0;e<this.items.length;e++)this.items[e].height=this.items[e].width=0;this.onScroll()},I.prototype.fill=function(t,e){this.firstAttachedItem=Math.max(0,t),this.hasMore||(e=Math.min(e,this.items.length)),this.lastAttachedItem=e,this.attachContent()},I.prototype.maybeRequestContent=function(){var t=this;if(!this.requestInProgress&&this.hasMore){var e=this.lastAttachedItem-this.loadedItems;e<=0||(this.requestInProgress=!0,this.options.fetch(e).then(function(e){if(t.requestInProgress=!1,e)t.addContent(e);else{t.hasMore=!1;var i=t._removeTombstones(),n=0;t.anchorItem.index<=t.items.length?(n=t._fixScrollPosition(),t._setupAnimations({},n),t.scroller.resetPosition(t.scroller.options.bounceTime)):(t.anchorItem.index-=i,n=t._fixScrollPosition(),t._setupAnimations({},n),t.scroller.stop(),t.scroller.resetPosition(),t.onScroll())}}))}},I.prototype.addContent=function(t){for(var e=0;e<t.length;e++)this.items.length<=this.loadedItems&&this._addItem(),this.items[this.loadedItems++].data=t[e];this.attachContent(),this.maybeRequestContent()},I.prototype.attachContent=function(){var t=this._collectUnusedNodes(),e=this._createDOMNodes(t);this._cleanupUnusedNodes(t),this._cacheNodeSize();var i=this._fixScrollPosition();this._setupAnimations(e,i)},I.prototype.resetMore=function(){this.hasMore=!0},I.prototype._removeTombstones=function(){for(var t=void 0,e=0,i=this.items.length,n=0;n<i;n++){var o=this.items[n].node,r=this.items[n].data;o&&!M(o)||r||(t||(t=n),o&&this.scrollerEl.removeChild(o))}return e=i-t,this.items.splice(t),this.lastAttachedItem=Math.min(this.lastAttachedItem,this.items.length),e},I.prototype._collectUnusedNodes=function(){for(var t=[],e=0;e<this.items.length;e++)if(e!==this.firstAttachedItem){var i=this.items[e].node;i&&(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,o=this.items[i].data;if(n){if(!M(n)||!o)continue;n.style.zIndex=1,e[i]=[n,this.items[i].top-this.anchorScrollTop],this.items[i].node=null}var r=o?this.options.render(o,t.pop()):this._getTombStone();r.style.position="absolute",this.items[i].top=-1,this.scrollerEl.appendChild(r),this.items[i].node=r}return e},I.prototype._cleanupUnusedNodes=function(t){for(;t.length;)this.scrollerEl.removeChild(t.pop())},I.prototype._cacheNodeSize=function(){for(var t=this.firstAttachedItem;t<this.lastAttachedItem;t++)this.items[t].data&&!this.items[t].height&&(this.items[t].height=this.items[t].node.offsetHeight,this.items[t].width=this.items[t].node.offsetWidth)},I.prototype._fixScrollPosition=function(){this.anchorScrollTop=0;for(var t=0;t<this.anchorItem.index;t++)this.anchorScrollTop+=this.items[t].height||this.tombstoneHeight;this.anchorScrollTop+=this.anchorItem.offset;for(var e=this.anchorScrollTop-this.anchorItem.offset,i=this.anchorItem.index;i>this.firstAttachedItem;)e-=this.items[i-1].height||this.tombstoneHeight,i--;return e},I.prototype._setupAnimations=function(t,e){var i=this;for(var n in t){var o=t[n];this.items[n].node.style.transform="translateY("+(this.anchorScrollTop+o[1])+"px) scale("+this.tombstoneWidth/this.items[n].width+", "+this.tombstoneHeight/this.items[n].height+")",this.items[n].node.offsetTop,o[0].offsetTop,this.items[n].node.style.transition="transform 200ms"}for(var r=this.firstAttachedItem;r<this.lastAttachedItem;r++){var a=t[r];if(a){var s=a[0];s.style.transition="transform 200ms, opacity 200ms",s.style.transform="translateY("+e+"px) scale("+this.items[r].width/this.tombstoneWidth+", "+this.items[r].height/this.tombstoneHeight+")",s.style.opacity=0}e!==this.items[r].top&&(a||(this.items[r].node.style.transition=""),this.items[r].node.style.transform="translateY("+e+"px)"),this.items[r].top=e,e+=this.items[r].height||this.tombstoneHeight}this.scroller.maxScrollY=-(e-this.wrapperEl.offsetHeight+(this.hasMore?et:0)),setTimeout(function(){for(var e in t){var n=t[e];n[0].style.display="none",i.tombstones.push(n[0])}},200)},I.prototype._getTombStone=function(){var t=this.tombstones.pop();return t?(t.style.display="",t.style.opacity=1,t.style.transform="",t.style.transition="",t):this.options.createTombstone()},I.prototype._addItem=function(){this.items.push({data:null,node:null,height:0,width:0,top:0})},I.prototype._calculateAnchoredItem=function(t,e){if(0===e)return t;var i=t.index,n=0;if((e+=t.offset)<0){for(;e<0&&i>0&&this.items[i-1].height;)e+=this.items[i-1].height,i--;n=Math.max(-i,Math.ceil(Math.min(e,0)/this.tombstoneHeight))}else{for(;e>0&&i<this.items.length&&this.items[i].height&&this.items[i].height<e;)e-=this.items[i].height,i++;(i>=this.items.length||!this.items[i].height)&&(n=Math.floor(Math.max(e,0)/this.tombstoneHeight))}return i+=n,e-=n*this.tombstoneHeight,{index:i,offset:e}},function(t){t.prototype._init=function(t,e){this._handleOptions(e),this._events={},this.x=0,this.y=0,this.directionX=0,this.directionY=0,this.setScale(1),this._addDOMEvents(),this._initExtFeatures(),this._watchTransition(),this.options.observeDOM&&this._initDOMObserver(),this.options.autoBlur&&this._handleAutoBlur(),this.refresh(),this.options.snap||this.scrollTo(this.options.startX,this.options.startY),this.enable()},t.prototype.setScale=function(t){this.lastScale=r(this.scale)?t:this.scale,this.scale=t},t.prototype._handleOptions=function(t){this.options=o({},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],o=e&&!t.pulling?"none":"auto",r=0;r<n.length;r++)n[r].style.pointerEvents=o}})}},t.prototype._handleAutoBlur=function(){this.on("scrollStart",function(){var t=document.activeElement;!t||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName||t.blur()})},t.prototype._initDOMObserver=function(){var t=this;if("undefined"!=typeof MutationObserver){var e=void 0,i=new MutationObserver(function(i){if(!t._shouldNotRefresh()){for(var n=!1,o=!1,r=0;r<i.length;r++){var a=i[r];if("attributes"!==a.type){n=!0;break}if(a.target!==t.scroller){o=!0;break}}n?t.refresh():o&&(clearTimeout(e),e=setTimeout(function(){t._shouldNotRefresh()||t.refresh()},60))}}),n={attributes:!0,childList:!0,subtree:!0};i.observe(this.scroller,n),this.on("destroy",function(){i.disconnect()})}else this._checkDOMUpdate()},t.prototype._shouldNotRefresh=function(){var t=this.x>this.minScrollX||this.x<this.maxScrollX||this.y>this.minScrollY||this.y<this.maxScrollY;return this.isInTransition||this.stopFromTransition||t},t.prototype._checkDOMUpdate=function(){function t(){if(!this.destroyed){i=p(this.scroller);var t=i.width,r=i.height;n===t&&o===r||this.refresh(),n=t,o=r,e.call(this)}}function e(){var e=this;setTimeout(function(){t.call(e)},1e3)}var i=p(this.scroller),n=i.width,o=i.height;e.call(this)},t.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t),this.options.zoom&&t.touches&&t.touches.length>1&&this._zoomStart(t);break;case"touchmove":case"mousemove":this.options.zoom&&t.touches&&t.touches.length>1?this._zoom(t):this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this.scaled?this._zoomEnd(t):this._end(t);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(t);break;case"click":this.enabled&&!t._constructed&&(d(t.target,this.options.preventDefaultException)||(t.preventDefault(),t.stopPropagation()));break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._onMouseWheel(t)}},t.prototype.refresh=function(){var t="static"===window.getComputedStyle(this.wrapper,null).position,e=p(this.wrapper);this.wrapperWidth=e.width,this.wrapperHeight=e.height;var i=p(this.scroller);this.scrollerWidth=Math.round(i.width*this.scale),this.scrollerHeight=Math.round(i.height*this.scale),this.relativeX=i.left,this.relativeY=i.top,t&&(this.relativeX-=e.left,this.relativeY-=e.top),this.minScrollX=0,this.minScrollY=0;var n=this.options.wheel;n?(this.items=this.scroller.children,this.options.itemHeight=this.itemHeight=this.items.length?this.scrollerHeight/this.items.length:0,void 0===this.selectedIndex&&(this.selectedIndex=n.selectedIndex||0),this.options.startY=-this.selectedIndex*this.itemHeight,this.maxScrollX=0,this.maxScrollY=-this.itemHeight*(this.items.length-1)):(this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.options.infinity||(this.maxScrollY=this.wrapperHeight-this.scrollerHeight),this.maxScrollX<0?(this.maxScrollX-=this.relativeX,this.minScrollX=-this.relativeX):this.scale>1&&(this.maxScrollX=this.maxScrollX/2-this.relativeX,this.minScrollX=this.maxScrollX),this.maxScrollY<0?(this.maxScrollY-=this.relativeY,this.minScrollY=-this.relativeY):this.scale>1&&(this.maxScrollY=this.maxScrollY/2-this.relativeY,this.minScrollY=this.maxScrollY)),this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<this.minScrollX,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<this.minScrollY,this.hasHorizontalScroll||(this.maxScrollX=this.minScrollX,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=this.minScrollY,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,this.wrapperOffset=u(this.wrapper),this.trigger("refresh"),!this.scaled&&this.resetPosition()},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1}}(k),function(t){t.prototype._start=function(t){var e=X[t.type];if((e===W||0===t.button)&&!(!this.enabled||this.destroyed||this.initiated&&this.initiated!==e)){this.initiated=e,this.options.preventDefault&&!d(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.movingDirectionX=0,this.movingDirectionY=0,this.directionLocked=0,this._transitionTime(),this.startTime=n(),this.options.wheel&&(this.target=t.target),this.stop();var i=t.touches?t.touches[0]:t;this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=i.pageX,this.pointY=i.pageY,this.trigger("beforeScrollStart")}},t.prototype._move=function(t){if(this.enabled&&!this.destroyed&&X[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var e=t.touches?t.touches[0]:t,i=e.pageX-this.pointX,o=e.pageY-this.pointY;this.pointX=e.pageX,this.pointY=e.pageY,this.distX+=i,this.distY+=o;var r=Math.abs(this.distX),a=Math.abs(this.distY),s=n();if(!(s-this.endTime>this.options.momentumLimitTime&&a<this.options.momentumLimitDistance&&r<this.options.momentumLimitDistance)){if(this.directionLocked||this.options.freeScroll||(r>a+this.options.directionLockThreshold?this.directionLocked="h":a>=r+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"===this.directionLocked){if("vertical"===this.options.eventPassthrough)t.preventDefault();else if("horizontal"===this.options.eventPassthrough)return void(this.initiated=!1);o=0}else if("v"===this.directionLocked){if("horizontal"===this.options.eventPassthrough)t.preventDefault();else if("vertical"===this.options.eventPassthrough)return void(this.initiated=!1);i=0}i=this.hasHorizontalScroll?i:0,o=this.hasVerticalScroll?o:0,this.movingDirectionX=i>0?$:i<0?Q:0,this.movingDirectionY=o>0?K:o<0?Z:0;var l=this.x+i,h=this.y+o,u=!1,c=!1,p=!1,d=!1,f=this.options.bounce;!1!==f&&(u=void 0===f.top||f.top,c=void 0===f.bottom||f.bottom,p=void 0===f.left||f.left,d=void 0===f.right||f.right),(l>this.minScrollX||l<this.maxScrollX)&&(l=l>this.minScrollX&&p||l<this.maxScrollX&&d?this.x+i/3:l>this.minScrollX?this.minScrollX:this.maxScrollX),(h>this.minScrollY||h<this.maxScrollY)&&(h=h>this.minScrollY&&u||h<this.maxScrollY&&c?this.y+o/3:h>this.minScrollY?this.minScrollY:this.maxScrollY),this.moved||(this.moved=!0,this.trigger("scrollStart")),this._translate(l,h),s-this.startTime>this.options.momentumLimitTime&&(this.startTime=s,this.startX=this.x,this.startY=this.y,this.options.probeType===J&&this.trigger("scroll",{x:this.x,y:this.y})),this.options.probeType>J&&this.trigger("scroll",{x:this.x,y:this.y});var g=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,y=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,m=this.pointX-g,v=this.pointY-y;(m>document.documentElement.clientWidth-this.options.momentumLimitDistance||m<this.options.momentumLimitDistance||v<this.options.momentumLimitDistance||v>document.documentElement.clientHeight-this.options.momentumLimitDistance)&&this._end(t)}}},t.prototype._end=function(t){if(this.enabled&&!this.destroyed&&X[t.type]===this.initiated){this.initiated=!1,this.options.preventDefault&&!d(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.trigger("touchEnd",{x:this.x,y:this.y}),this.isInTransition=!1;var e=Math.round(this.x),i=Math.round(this.y),o=e-this.absStartX,r=i-this.absStartY;if(this.directionX=o>0?$:o<0?Q:0,this.directionY=r>0?K:r<0?Z:0,!this.options.pullDownRefresh||!this._checkPullDown()){if(this._checkClick(t))return void this.trigger("scrollCancel");if(!this.resetPosition(this.options.bounceTime,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)),o=Math.round((this.pointY+c(this.wrapper).top-this.wrapperHeight/2)/this.itemHeight);this.target=this.items[i+o]}return this.scrollToElement(this.target,this.options.wheel.adjustTime||400,!0,!0,G.swipe),!0}if(!e){var r=this.options.dblclick,a=!1;if(r&&this.lastClickTime){var s=r.delay,l=void 0===s?300:s;n()-this.lastClickTime<l&&(a=!0,y(t))}return this.options.tap&&f(t,this.options.tap),this.options.click&&!d(t.target,this.options.preventDefaultException)&&g(t),this.lastClickTime=a?null:n(),!0}return!1}return!1},t.prototype._resize=function(){var t=this;this.enabled&&(E&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){t.refresh()},this.options.resizePolling))},t.prototype._startProbe=function(){function t(){var i=e.getComputedPosition();if(e.trigger("scroll",i),!e.isInTransition)return void e.trigger("scrollEnd",i);e.probeTimer=j(t)}q(this.probeTimer),this.probeTimer=j(t);var e=this},t.prototype._transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.scrollerStyle[H.transitionDuration]=t+"ms",this.options.wheel)for(var e=0;e<this.items.length;e++)this.items[e].style[H.transitionDuration]=t+"ms";if(this.indicators)for(var i=0;i<this.indicators.length;i++)this.indicators[i].transitionTime(t)},t.prototype._transitionTimingFunction=function(t){if(this.scrollerStyle[H.transitionTimingFunction]=t,this.options.wheel)for(var e=0;e<this.items.length;e++)this.items[e].style[H.transitionTimingFunction]=t;if(this.indicators)for(var i=0;i<this.indicators.length;i++)this.indicators[i].transitionTimingFunction(t)},t.prototype._transitionEnd=function(t){t.target===this.scroller&&this.isInTransition&&(this._transitionTime(),(!this.pulling||this.movingDirectionY===Z)&&!this.resetPosition(this.options.bounceTime,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(!r(t)&&!r(e),"Translate x or y is null or undefined."),r(i)&&(i=this.scale),this.options.useTransform?this.scrollerStyle[H.transform]="translate("+t+"px,"+e+"px) scale("+i+")"+this.translateZ:(t=Math.round(t),e=Math.round(e),this.scrollerStyle.left=t+"px",this.scrollerStyle.top=e+"px"),this.options.wheel)for(var n=this.options.wheel.rotate,o=void 0===n?25:n,a=0;a<this.items.length;a++){var s=o*(e/this.itemHeight+a);this.items[a].style[H.transform]="rotateX("+s+"deg)"}if(this.x=t,this.y=e,this.setScale(i),this.indicators)for(var l=0;l<this.indicators.length;l++)this.indicators[l].updatePosition()},t.prototype._animate=function(t,e,i,o){function r(){var d=n();if(d>=p)return a.isAnimating=!1,a._translate(t,e,u),a.trigger("scroll",{x:a.x,y:a.y}),void(a.pulling||a.resetPosition(a.options.bounceTime)||a.trigger("scrollEnd",{x:a.x,y:a.y}));d=(d-c)/i;var f=o(d),g=(t-s)*f+s,y=(e-l)*f+l,m=(u-h)*f+h;a._translate(g,y,m),a.isAnimating&&(a.animateTimer=j(r)),a.options.probeType===tt&&a.trigger("scroll",{x:a.x,y:a.y})}var a=this,s=this.x,l=this.y,h=this.lastScale,u=this.scale,c=n(),p=c+i;this.isAnimating=!0,q(this.animateTimer),r()},t.prototype.scrollBy=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]: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,o){if(t&&(t=t.nodeType?t:this.scroller.querySelector(t),!this.options.wheel||t.classList.contains(this.options.wheel.wheelItemClass))){var r=u(t);r.left-=this.wrapperOffset.left,r.top-=this.wrapperOffset.top,!0===i&&(i=Math.round(t.offsetWidth/2-this.wrapper.offsetWidth/2)),!0===n&&(n=Math.round(t.offsetHeight/2-this.wrapper.offsetHeight/2)),r.left-=i||0,r.top-=n||0,r.left=r.left>this.minScrollX?this.minScrollX:r.left<this.maxScrollX?this.maxScrollX:r.left,r.top=r.top>this.minScrollY?this.minScrollY:r.top<this.maxScrollY?this.maxScrollY:r.top,this.options.wheel&&(r.top=Math.round(r.top/this.itemHeight)*this.itemHeight),this.scrollTo(r.left,r.top,e,o)}},t.prototype.resetPosition=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G.bounce,i=this.x,n=Math.round(i);!this.hasHorizontalScroll||n>this.minScrollX?i=this.minScrollX:n<this.maxScrollX&&(i=this.maxScrollX);var o=this.y,r=Math.round(o);return!this.hasVerticalScroll||r>this.minScrollY?o=this.minScrollY:r<this.maxScrollY&&(o=this.maxScrollY),(i!==this.x||o!==this.y)&&(this.scrollTo(i,o,t,e),!0)},t.prototype.getComputedPosition=function(){var t=window.getComputedStyle(this.scroller,null),e=void 0,i=void 0;return this.options.useTransform?(t=t[H.transform].split(")")[0].split(", "),e=+(t[12]||t[4]),i=+(t[13]||t[5])):(e=+t.left.replace(/[^-\d.]/g,""),i=+t.top.replace(/[^-\d.]/g,"")),{x:e,y:i}},t.prototype.stop=function(){if(this.options.useTransition&&this.isInTransition){this.isInTransition=!1,q(this.probeTimer);var t=this.getComputedPosition();this._translate(t.x,t.y),this.options.wheel?this.target=this.items[Math.round(-t.y/this.itemHeight)]:this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0}else!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,q(this.animateTimer),this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0)},t.prototype.destroy=function(){this.destroyed=!0,this.trigger("destroy"),q(this.options.useTransition?this.probeTimer:this.animateTimer),this._removeDOMEvents(),this._events={}}}(k),function(t){t.prototype.on=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;this._events[t]||(this._events[t]=[]),this._events[t].push([e,i])},t.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(n,arguments)}var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;i.fn=e,this.on(t,i)},t.prototype.off=function(t,e){var i=this._events[t];if(i)for(var n=i.length;n--;)(i[n][0]===e||i[n][0]&&i[n][0].fn===e)&&(i[n][0]=void 0)},t.prototype.trigger=function(t){var e=this._events[t];if(e)for(var i=e.length,n=[].concat(D(e)),o=0;o<i;o++){var r=n[o],a=A(r,2),s=a[0],l=a[1];s&&s.apply(l,[].slice.call(arguments,1))}}}(k),function(t){t.prototype._initSnap=function(){var t=this;this.currentPage={};var e=this.options.snap;if(e.loop){var i=this.scroller.children;i.length>1?(m(i[i.length-1].cloneNode(!0),this.scroller),this.scroller.appendChild(i[1].cloneNode(!0))):e.loop=!1}var n=e.el;"string"==typeof n&&(n=this.scroller.querySelectorAll(n)),this.on("refresh",function(){if(t.pages=[],t.wrapperWidth&&t.wrapperHeight&&t.scrollerWidth&&t.scrollerHeight){var i=e.stepX||t.wrapperWidth,o=e.stepY||t.wrapperHeight,r=0,a=void 0,s=void 0,l=void 0,h=0,u=void 0,c=0,d=void 0,f=void 0;if(n)for(u=n.length,d=-1;h<u;h++)f=p(n[h]),(0===h||f.left<=p(n[h-1]).left)&&(c=0,d++),t.pages[c]||(t.pages[c]=[]),r=Math.max(-f.left,t.maxScrollX),a=Math.max(-f.top,t.maxScrollY),s=r-Math.round(f.width/2),l=a-Math.round(f.height/2),t.pages[c][d]={x:r,y:a,width:f.width,height:f.height,cx:s,cy:l},r>t.maxScrollX&&c++;else for(s=Math.round(i/2),l=Math.round(o/2);r>-t.scrollerWidth;){for(t.pages[h]=[],u=0,a=0;a>-t.scrollerHeight;)t.pages[h][u]={x:Math.max(r,t.maxScrollX),y:Math.max(a,t.maxScrollY),width:i,height:o,cx:r-s,cy:a-l},a-=o,u++;r-=i,h++}t._checkSnapLoop();var g=e._loopX?1:0,y=e._loopY?1:0;t._goToPage(t.currentPage.pageX||g,t.currentPage.pageY||y,0);var m=e.threshold;m%1==0?(t.snapThresholdX=m,t.snapThresholdY=m):(t.snapThresholdX=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].width*m),t.snapThresholdY=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].height*m))}}),this.on("scrollEnd",function(){e.loop&&(e._loopX?(0===t.currentPage.pageX&&t._goToPage(t.pages.length-2,t.currentPage.pageY,0),t.currentPage.pageX===t.pages.length-1&&t._goToPage(1,t.currentPage.pageY,0)):(0===t.currentPage.pageY&&t._goToPage(t.currentPage.pageX,t.pages[0].length-2,0),t.currentPage.pageY===t.pages[0].length-1&&t._goToPage(t.currentPage.pageX,1,0)))}),!1!==e.listenFlick&&this.on("flick",function(){var i=e.speed||Math.max(Math.max(Math.min(Math.abs(t.x-t.startX),1e3),Math.min(Math.abs(t.y-t.startY),1e3)),300);t._goToPage(t.currentPage.pageX+t.directionX,t.currentPage.pageY+t.directionY,i)}),this.on("destroy",function(){if(e.loop){var i=t.scroller.children;i.length>2&&(_(t.scroller,i[i.length-1]),_(t.scroller,i[0]))}})},t.prototype._checkSnapLoop=function(){var t=this.options.snap;t.loop&&this.pages&&this.pages.length&&(this.pages.length>1&&(t._loopX=!0),this.pages[0]&&this.pages[0].length>1&&(t._loopY=!0),t._loopX&&t._loopY&&b("Loop does not support two direction at the same time."))},t.prototype._nearestSnap=function(t,e){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var i=0;if(Math.abs(t-this.absStartX)<=this.snapThresholdX&&Math.abs(e-this.absStartY)<=this.snapThresholdY)return this.currentPage;t>this.minScrollX?t=this.minScrollX:t<this.maxScrollX&&(t=this.maxScrollX),e>this.minScrollY?e=this.minScrollY:e<this.maxScrollY&&(e=this.maxScrollY);for(var n=this.pages.length;i<n;i++)if(t>=this.pages[i][0].cx){t=this.pages[i][0].x;break}n=this.pages[i].length;for(var o=0;o<n;o++)if(e>=this.pages[0][o].cy){e=this.pages[0][o].y;break}return i===this.currentPage.pageX&&(i+=this.directionX,i<0?i=0:i>=this.pages.length&&(i=this.pages.length-1),t=this.pages[i][0].x),o===this.currentPage.pageY&&(o+=this.directionY,o<0?o=0:o>=this.pages[0].length&&(o=this.pages[0].length-1),e=this.pages[0][o].y),{x:t,y:e,pageX:i,pageY:o}},t.prototype._goToPage=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments[2],n=arguments[3],o=this.options.snap;if(o&&this.pages&&this.pages.length&&(n=n||o.easing||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 r=this.pages[t][e].x,a=this.pages[t][e].y;i=void 0===i?o.speed||Math.max(Math.max(Math.min(Math.abs(r-this.x),1e3),Math.min(Math.abs(a-this.y),1e3)),300):i,this.currentPage={x:r,y:a,pageX:t,pageY:e},this.scrollTo(r,a,i,n)}},t.prototype.goToPage=function(t,e,i,n){var o=this.options.snap;if(o&&this.pages&&this.pages.length){if(o.loop){var r=void 0;o._loopX?(r=this.pages.length-2,t>=r?t=r-1:t<0&&(t=0),t+=1):(r=this.pages[0].length-2,e>=r?e=r-1:e<0&&(e=0),e+=1)}this._goToPage(t,e,i,n)}},t.prototype.next=function(t,e){if(this.options.snap){var i=this.currentPage.pageX,n=this.currentPage.pageY;i++,i>=this.pages.length&&this.hasVerticalScroll&&(i=0,n++),this._goToPage(i,n,t,e)}},t.prototype.prev=function(t,e){if(this.options.snap){var i=this.currentPage.pageX,n=this.currentPage.pageY;i--,i<0&&this.hasVerticalScroll&&(i=0,n--),this._goToPage(i,n,t,e)}},t.prototype.getCurrentPage=function(){var t=this.options.snap;return t?t.loop?t._loopX?o({},this.currentPage,{pageX:this.currentPage.pageX-1}):o({},this.currentPage,{pageY:this.currentPage.pageY-1}):this.currentPage:null}}(k),function(t){t.prototype.wheelTo=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.options.wheel&&(this.y=-t*this.itemHeight,this.scrollTo(0,this.y))},t.prototype.getSelectedIndex=function(){return this.options.wheel&&this.selectedIndex},t.prototype._initWheel=function(){var t=this.options.wheel;t.wheelWrapperClass||(t.wheelWrapperClass="wheel-scroll"),t.wheelItemClass||(t.wheelItemClass="wheel-item"),void 0===t.selectedIndex&&(t.selectedIndex=0,b("wheel option selectedIndex is required!"))}}(k),function(t){t.prototype._initScrollbar=function(){var t=this,e=this.options.scrollbar,i=e.fade,n=void 0===i||i,o=e.interactive,r=void 0!==o&&o;this.indicators=[];var a=void 0;this.options.scrollX&&(a={el:T("horizontal"),direction:"horizontal",fade:n,interactive:r},this._insertScrollBar(a.el),this.indicators.push(new C(this,a))),this.options.scrollY&&(a={el:T("vertical"),direction:"vertical",fade:n,interactive:r},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,o=void 0===n?40:n;return!(this.directionY!==K||this.y<i)&&(this.pulling||(this.pulling=!0,this.trigger("pullingDown")),this.scrollTo(this.x,o,this.options.bounceTime,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,o=void 0===n?20:n,r=i.invert,a=void 0!==r&&r,s=i.easeTime,l=void 0===s?300:s;clearTimeout(this.mouseWheelTimer),this.mouseWheelTimer=setTimeout(function(){e.options.snap||l||e.trigger("scrollEnd",{x:e.x,y:e.y}),e.firstWheelOpreation=!0},400);var h=void 0,u=void 0;switch(!0){case"deltaX"in t:1===t.deltaMode?(h=-t.deltaX*o,u=-t.deltaY*o):(h=-t.deltaX,u=-t.deltaY);break;case"wheelDeltaX"in t:h=t.wheelDeltaX/120*o,u=t.wheelDeltaY/120*o;break;case"wheelDelta"in t:h=u=t.wheelDelta/120*o;break;case"detail"in t:h=u=-t.detail/3*o;break;default:return}var c=a?-1:1;h*=c,u*=c,this.hasVerticalScroll||(h=u,u=0);var p=void 0,d=void 0;if(this.options.snap)return p=this.currentPage.pageX,d=this.currentPage.pageY,h>0?p--:h<0&&p++,u>0?d--:u<0&&d++,void this._goToPage(p,d);p=this.x+Math.round(this.hasHorizontalScroll?h:0),d=this.y+Math.round(this.hasVerticalScroll?u:0),this.movingDirectionX=this.directionX=h>0?-1:h<0?1:0,this.movingDirectionY=this.directionY=u>0?-1:u<0?1:0,p>this.minScrollX?p=this.minScrollX:p<this.maxScrollX&&(p=this.maxScrollX),d>this.minScrollY?d=this.minScrollY:d<this.maxScrollY&&(d=this.maxScrollY);var f=this.y===d;this.scrollTo(p,d,l,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,o=void 0===n?1:n,r=t.max,a=void 0===r?4:r;this.scale=Math.min(Math.max(i,o),a),this.setScale(this.scale),this.scrollerStyle[H.transformOrigin]="0 0"},t.prototype._zoomTo=function(t,e,i,n){this.scaled=!0;var o=t/(n||this.scale);this.setScale(t),this.refresh();var r=Math.round(this.startX-(e-this.relativeX)*(o-1)),a=Math.round(this.startY-(i-this.relativeY)*(o-1));r>this.minScrollX?r=this.minScrollX:r<this.maxScrollX&&(r=this.maxScrollX),a>this.minScrollY?a=this.minScrollY:a<this.maxScrollY&&(a=this.maxScrollY),this.x===r&&this.y===a||this.scrollTo(r,a,this.options.bounceTime),this.scaled=!1},t.prototype.zoomTo=function(t,e,i){var n=c(this.wrapper),o=n.left,r=n.top,a=e+o-this.x,s=i+r-this.y;this._zoomTo(t,a,s)},t.prototype._zoomStart=function(t){var e=t.touches[0],i=t.touches[1],n=Math.abs(e.pageX-i.pageX),o=Math.abs(e.pageY-i.pageY);this.startDistance=a(n,o),this.startScale=this.scale;var r=c(this.wrapper),s=r.left,l=r.top;this.originX=Math.abs(e.pageX+i.pageX)/2+s-this.x,this.originY=Math.abs(e.pageY+i.pageY)/2+l-this.y,this.trigger("zoomStart")},t.prototype._zoom=function(t){if(this.enabled&&!this.destroyed&&X[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var e=t.touches[0],i=t.touches[1],n=Math.abs(e.pageX-i.pageX),o=Math.abs(e.pageY-i.pageY),r=a(n,o),s=r/this.startDistance*this.startScale;this.scaled=!0;var l=this.options.zoom,h=l.min,u=void 0===h?1:h,c=l.max,p=void 0===c?4:c;s<u?s=.5*u*Math.pow(2,s/u):s>p&&(s=2*p*Math.pow(.5,p/s));var d=s/this.startScale,f=this.startX-(this.originX-this.relativeX)*(d-1),g=this.startY-(this.originY-this.relativeY)*(d-1);this.setScale(s),this.scrollTo(f,g,0)}},t.prototype._zoomEnd=function(t){if(this.enabled&&!this.destroyed&&X[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.isInTransition=!1,this.isAnimating=!1,this.initiated=0;var e=this.options.zoom,i=e.min,n=void 0===i?1:i,o=e.max,r=void 0===o?4:o,a=this.scale>r?r:this.scale<n?n:this.scale;this._zoomTo(a,this.originX,this.originY,this.startScale),this.trigger("zoomEnd")}}}(k),function(t){t.prototype._initInfinite=function(){this.options.probeType=3,this.maxScrollY=-et,this.infiniteScroller=new I(this,this.options.infinity)}}(k),k.Version="1.12.6",e.a=k},1485:function(t,e,i){"use strict";var n=i(76),o=i.n(n),r=i(132),a=i.n(r),s=i(4),l=i(2008),h=i(2015),u=i(2022),c=i(942);e.a={name:"ActGoldFinanceChart",data:function(){return{costTableVisible:!1,isShowChart:!0,renderData:{},selectIndex:10,agePickerData:[]}},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}},computed:{realTheme:function(){var t={brandColor:window.g_agentShowCfg&&window.g_agentShowCfg.brandcolor||"#8c7fee",btnColor:window.g_agentShowCfg&&window.g_agentShowCfg.btncolor||"#8c7fee"};return this.brandColor&&(t.brandColor=this.brandColor,t.btnColor=this.brandColor),t},isCps:function(){return"#8c7fee"!==this.brandColor}},methods:{showAgePicker:function(t){var e=this;this.agePickerData=t.agePickerData,this.$nextTick(function(){e.$refs.goldPicker.show()})},setSelectIndex:function(t){this.selectIndex=t},showCostTable:function(){this.isOutSideTable?this.$emit("showOutSideTable"):this.costTableVisible=!0},validateData:function(){if(!(this.tables&&this.tables.colsType&&this.chartConfig&&Object(s.o)(this.chartConfig)))return!1;for(var t=0,e=0,i=0,n=0;n<this.chartConfig.length;n++){var o=this.chartConfig[n];if(!o.colsType)return!1;(this.tables.colsType.includes(o.colsType)||this.tables.colsType.includes(o.colsType+""))&&(1==~~o.showType&&(t+=1),2==~~o.showType&&(e+=1),3==~~o.showType&&(i+=1))}return 1===t&&e>=1&&1===i},findTablesIndex:function(t,e){if(Object(s.o)(e))for(var i=0;i<e.length;i++)if(Number(e[i])===Number(t))return i},analysisExpression:function(t){if(!/([1-9]+)([+*/-])([1-9]+)/g.test(t))return{};var e=void 0,i=void 0,n=void 0;return t.replace(/([1-9]+)([+*/-])([1-9]+)/g,function(t,o,r,a){e=o,i=a,n=r}),{firstParamColsType:e,secondParamColsType:i,operator:n}},getExpressionData:function(t,e,i){var n=this.analysisExpression(t),o=n.firstParamColsType,r=n.secondParamColsType,a=n.operator;if(void 0!==o&&void 0!==r&&["+","-","/","*"].includes(a)){var s=void 0,l=void 0,h=[];if(i.colsType.forEach(function(t,e){Number(t)===Number(o)&&(s=e),Number(t)===Number(r)&&(l=e)}),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){if(t&&e){for(var i=[],n=[],o=[],r=this.isCps?Object(s.c)(l.b):Object(s.c)(l.a),h=Object(s.c)(r.showType2),u=Object(s.c)(r.showType3),c=t,p=Array.isArray(c),d=0,c=p?c:a()(c);;){var f;if(p){if(d>=c.length)break;f=c[d++]}else{if(d=c.next(),d.done)break;f=d.value}var g=f,y=void 0,m=g.colsType,v=this.findTablesIndex(m,e.colsType);if(v){var _=Number(g.showType),x=g.name||l.c[m],w=g.titleName||g.name||l.c[m],b=this.getExpressionData(g.tipsExpression,t,e),S=g.lineStyle,T=g.boxConfig;if(!(2!==_||S&&T)){h.length||(h=Object(s.c)(r.showType2));var C=h.shift();S=C.lineStyle,T=C.boxConfig}if(3===_&&!S){u.length||(u=Object(s.c)(r.showType3));S=u.shift().lineStyle}o.push(x),y={showType:_,colsType:m,name:x,titleName:w,problemText:g.problemText,tableRowIndex:v,lineStyle:S,boxConfig:T,tipsText:g.tipsText},b&&(y.expressionData=b),i.push(y)}}var M=e.rows.map(function(t){for(var e=[],o=i,r=Array.isArray(o),s=0,o=r?o:a()(o);;){var l;if(r){if(s>=o.length)break;l=o[s++]}else{if(s=o.next(),s.done)break;l=s.value}var h=l;1===h.showType&&n.push(t[h.tableRowIndex]),e.push(t[h.tableRowIndex])}return e});return M.unshift(o),{chartConfig:i,dataSource:M,xAxisData:n}}}},watch:{tables:{handler:function(t){if(t&&o()(t).length&&this.chartConfig){this.validateData()?(this.renderData=this.initConfig(this.chartConfig,t),this.isShowChart=!0):this.isShowChart=!1}},immediate:!0}}}},1486:function(t,e,i){"use strict";var n=i(76),o=i.n(n),r=i(2017),a=i(4);e.a={name:"Benefit",data:function(){return{chartConfig:[],dataSource:[],xAxisData:[],dialog:null,agePicker:null,numFontSizeFixDebounceFunc:Object(a.a)(this.numFontSizeFix,500),preNumFontSize:"2.8rem"}},components:{chart:r.a},props:{selectIndex:{type:Number,default:10},renderData:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}},isCps:{type:Boolean,default:!1},unit:{default:"岁",type:String},note:{default:"",type:String}},computed:{agePickerData:function(){for(var t=[],e=0;e<this.xAxisData.length;e++)t.push({text:this.xAxisData[e],value:this.xAxisData[e]});return t},showType2Length:function(){for(var t=0,e=0;e<this.chartConfig.length;e++)2==~~this.chartConfig[e].showType&&(t+=1);return t},pureDataSource:function(){return this.dataSource.slice(1)}},methods:{showCostTable:function(){this.$emit("showCostTable")},setSelectIndex:function(t){this.$emit("update:selectIndex",t)},showAgePicker:function(){this.$emit("showAgePicker",{agePickerData:this.agePickerData})},showProblemDialog:function(t){this.dialog?this.dialog.setData("",t):this.dialog=this.$createGoldDialog({content:t,showConfirmButton:!1,maskClosable:!0}),this.dialog.show()},numFontSizeFix:function(){for(var t=this.$refs.num?this.$refs.num.length:0,e=0;e<t;e++){var i=this.$refs.num[e],n=this.$refs.colorBlock[e];for(i.style.fontSize=this.preNumFontSize;;){if(!(parseInt(getComputedStyle(i).width)>parseInt(getComputedStyle(n).width)+30))break;var o=parseInt(getComputedStyle(i).fontSize);if(o<=12)break;i.style.fontSize=o-1+"px"}}}},watch:{renderData:{handler:function(t){if(t&&o()(t).length){var e=t.chartConfig,i=t.dataSource,n=t.xAxisData;this.chartConfig=e,this.dataSource=i,this.xAxisData=n,this.selectIndex>this.pureDataSource.length&&(this.selectIndex=10)}},immediate:!0},selectIndex:{handler:function(){this.numFontSizeFixDebounceFunc()}}}}},1487:function(t,e,i){"use strict";var n=i(76),o=i.n(n),r=i(132),a=i.n(r),s=i(4),l=i(2019);e.a={data:function(){return{chart:null}},props:{index:{type:Number,default:10},dataSource:{type:Array,default:function(){return[]}},chartConfig:{type:Array,default:function(){return[]}}},methods:{setIndex:function(t){this.$emit("setIndex",t)},remToPxBased10Px:function(t){var e=window.document.documentElement||document.getElementsByTagName("html")[0],i=parseFloat(getComputedStyle(e,null).fontSize);if(i>12)return t*i;var n=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,o=n/375*10;return n?t*o:10*t},getXAxisName:function(){for(var t=0;t<this.chartConfig.length;t++)if(1===this.chartConfig[t].showType)return this.chartConfig[t].name;return""},getTooltipName:function(){for(var t=0;t<this.chartConfig.length;t++)if(3===this.chartConfig[t].showType)return this.chartConfig[t].name;return""},setEcharts:function(){for(var t=[],e=[],i=this.getXAxisName(),n=this.getTooltipName(),o=0;o<this.chartConfig.length;o++){var r=this.chartConfig[o];if([2,3].includes(r.showType)){var h={};Object(s.o)(r.lineStyle.areaStyleColor)?h.color=new l.graphic.LinearGradient(0,0,0,1,r.lineStyle.areaStyleColor):Object(s.z)(r.lineStyle.areaStyleColor)&&(h.color=r.lineStyle.areaStyleColor),t.push({name:r.name,type:"line",smooth:!0,symbol:r.lineStyle.legendImg?"image://"+r.lineStyle.legendImg:"circle",showSymbol:!1,symbolSize:this.remToPxBased10Px(1.4),silent:!0,encode:{x:i,y:r.name},lineStyle:{width:1,color:r.lineStyle.lineColor},emphasis:{lineStyle:{color:r.lineStyle.lineColor}},zlevel:r.lineStyle.zIndex,z:r.lineStyle.zIndex,areaStyle:h.color?h:void 0}),e.push({name:r.name,icon:r.lineStyle.legendImg?"image://"+r.lineStyle.legendImg:"circle"})}}var u={dataset:{source:this.dataSource},grid:{containLabel:!1,borderColor:"red",top:"5%",right:"10%",left:"10%"},legend:{textStyle:{fontSize:this.remToPxBased10Px(1.2),opacity:1,fontWeight:400,fontFamily:"SourceHanSansSC, SourceHanSansSC-Regular",color:"#999",lineHeight:this.remToPxBased10Px(1.8)},selectedMode:!1,itemWidth:this.remToPxBased10Px(1.4),itemHeight:this.remToPxBased10Px(1.4),data:e,bottom:0},tooltip:{trigger:"axis",triggerOn:"none",backgroundColor:"rgba(255,255,255,0.8)",textStyle:{fontSize:this.remToPxBased10Px(1.2),fontFamily:"SourceHanSansSC, SourceHanSansSC-Regular",fontWeight:400,lineHeight:16,color:"#333"},extraCssText:"box-shadow: 0rem 0.2rem 1.4rem 0rem rgba(211,217,240,0.80);z-index: 2;",showContent:!0,padding:[7,10,6,10],position:function(t,e,i,n,o){return t[0]>o.viewSize[0]/2?{left:20,top:"30%"}:{right:20,top:"30%"}},axisPointer:{lineStyle:{type:"solid",color:"#EEE"},z:0},formatter:function(t){for(var e=t,i=Array.isArray(e),o=0,e=i?e:a()(e);;){var r;if(i){if(o>=e.length)break;r=e[o++]}else{if(o=e.next(),o.done)break;r=o.value}var s=r;if(s.seriesName===n){var l=s.encode.y[0],h=s.value[l];return n+"<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:t};this.chart.setOption(u),this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:this.index-1}),this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:this.index})}},mounted:function(){var t=this;this.chart=l.init(this.$refs.chart,null,{renderer:"svg"}),this.chart.getZr().on("mousemove",function(e){var i=[e.offsetX,e.offsetY],n=t.chart.convertFromPixel("grid",i);t.chart.containPixel("grid",i)&&t.index!==Math.round(n[0])&&t.setIndex(Math.round(n[0]))})},watch:{dataSource:{handler:function(t){var e=this;o()(t).length&&this.$nextTick(function(){e.setEcharts()})},immediate:!0},index:{handler:function(t){this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:t})}}}}},1488:function(t,e,i){"use strict";var n=i(114);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,{})})}}}}},15:function(t,e,i){"use strict";function n(t,e){return function(i,n){var a=this,s=Object(o.a)(i),l=Object(r.a)(e,t,s,n),h=l.$parent,u=l.remove,c=l.show,p=l.hide;return l.remove=function(){l.$removed=!0,u&&u.call(this),h.destroy()},l.show=function(){return c&&c.call.apply(c,[this].concat(Array.prototype.slice.call(arguments))),this},l.hide=function(){return p&&p.call.apply(p,[this].concat(Array.prototype.slice.call(arguments))),this},a&&a._isVue&&a.$once("hook:beforeDestroy",function(){l.$removed||l.remove()}),l}}e.a=n;var o=i(97),r=i(99)},16:function(t,e){t.exports=!0},170:function(t,e,i){i(54),i(52),t.exports=i(171)},171:function(t,e,i){var n=i(9),o=i(109);t.exports=i(0).getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},18:function(t,e){t.exports={}},2:function(t,e,i){"use strict";function n(t,e,i,n,o,r,a,s){t=t||{};var l=typeof t.default;"object"!==l&&"function"!==l||(t=t.default);var h="function"==typeof t?t.options:t;e&&(h.render=e,h.staticRenderFns=i,h._compiled=!0),n&&(h.functional=!0),r&&(h._scopeId=r);var u;if(a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},h._ssrRegister=u):o&&(u=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),u)if(h.functional){h._injectStyles=u;var c=h.render;h.render=function(t,e){return u.call(e),c(t,e)}}else{var p=h.beforeCreate;h.beforeCreate=p?[].concat(p,u):[u]}return{exports:t,options:h}}e.a=n},2006:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(15),o=i(2007);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createGoldFinanceChart=Object(n.a)(o.a,t)},e.default=o.a},2007:function(t,e,i){"use strict";var n=i(1485),o=i(2025),r=i(2),a=Object(r.a)(n.a,o.a,o.b,!1,null,null,null);a.options.__file="src\\components\\GoldFinanceChart\\src\\index.vue",e.a=a.exports},2008:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return r});var n={showType2:[{boxConfig:{iconColor:"#E13046",titleColor:"#E13046",blockColor:"rgba(255, 90, 110, 0.1)",tipsColor:"#ff5a63"},lineStyle:{lineColor:"#ff5a6e",legendImg:i(2009),zIndex:1}},{boxConfig:{iconColor:"#7363E7",titleColor:"#7363E7",blockColor:"rgba(115,99,231,0.1)",tipsColor:"#8c7FEE"},lineStyle:{lineColor:"#8c7fee",legendImg:i(2010),areaStyleColor:[{offset:0,color:"#E7E3FF"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:i(2011),zIndex:3}}]},o={showType2:[{boxConfig:{iconColor:"#FF8D35",titleColor:"#FF8D35",blockColor:"rgba(255,141,53,0.1)",tipsColor:"#FF8D35"},lineStyle:{lineColor:"#FF8D35",legendImg:i(2012),zIndex:1}},{boxConfig:{iconColor:"#F05A4B",titleColor:"#FC7468",blockColor:"rgba(252,116,104,0.1)",tipsColor:"#F05A4B"},lineStyle:{lineColor:"#F05A4B",legendImg:i(2013),areaStyleColor:[{offset:0,color:"#FFE0DD"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:i(2014),zIndex:3}}]},r={1:"有效保额",2:"已交保费系数金额",3:"现金价值",4:"身故全残金",5:"年龄",6:"累计已交保费",7:"累计保费*给付系数(主险)",8:"当前年龄与61岁的比值",9:"当前年龄与41岁的比值",10:"当前年龄与18岁的比值",11:"当前年龄的给付数值",12:"保额",13:"保单年份与缴费期间的比值",14:"保单年份",15:"长期护理保险金(元)",16:"疾病身故保险金或长期护理保险金"}},2009: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=="},2010: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="},2011: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"},2012: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="},2013: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="},2014: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"},2015:function(t,e,i){"use strict";function n(t){s||i(2016)}var o=i(1486),r=i(2021),a=i(2),s=!1,l=n,h=Object(a.a)(o.a,r.a,r.b,!1,l,"data-v-8a13b6be",null);h.options.__file="src\\components\\GoldFinanceChart\\src\\components\\benefit.vue",e.a=h.exports},2016:function(t,e){},2017:function(t,e,i){"use strict";function n(t){s||i(2018)}var o=i(1487),r=i(2020),a=i(2),s=!1,l=n,h=Object(a.a)(o.a,r.a,r.b,!1,l,"data-v-5bf23e30",null);h.options.__file="src\\components\\GoldFinanceChart\\src\\components\\chart.vue",e.a=h.exports},2018:function(t,e){},2019: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");of(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function n(t){for(var e in df)t[e]&&(df[e]=t[e])}function o(){return Cf++}function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function a(t){if(null==t||"object"!=typeof t)return t;var e=t,i=yf.call(t);if("[object Array]"===i){if(!Y(t))for(var e=[],n=0,o=t.length;n<o;n++)e[n]=a(t[n])}else if(gf[i]){if(!Y(t)){var r=t.constructor;if(r.from)e=r.from(t);else for(e=new r(t.length),n=0,o=t.length;n<o;n++)e[n]=t[n]}}else if(!ff[i]&&!Y(t)&&!k(t))for(var s in e={},t)t.hasOwnProperty(s)&&s!==Tf&&(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 o,r;e.hasOwnProperty(n)&&n!==Tf&&(o=t[n],!C(r=e[n])||!C(o)||x(r)||x(o)||k(r)||k(o)||M(r)||M(o)||Y(r)||Y(o)?!i&&n in t||(t[n]=a(e[n])):s(o,r,i))}return t}function l(t,e){if(Object.assign)Object.assign(t,e);else for(var i in e)e.hasOwnProperty(i)&&i!==Tf&&(t[i]=e[i]);return t}function h(t,e,i){for(var n=v(e),o=0;o<n.length;o++){var r=n[o];(i?null!=e[r]:null==t[r])&&(t[r]=e[r])}return t}function u(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i}return-1}function c(t,e){function i(){}var n,o=t.prototype;for(n in i.prototype=e.prototype,t.prototype=new i,o)o.hasOwnProperty(n)&&(t.prototype[n]=o[n]);(t.prototype.constructor=t).superClass=e}function p(t,e,i){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),o=0;o<n.length;o++){var r=n[o];"constructor"!==r&&(i?null!=e[r]:null==t[r])&&(t[r]=e[r])}else h(t,e,i)}function d(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function f(t,e,i){if(t&&e)if(t.forEach&&t.forEach===vf)t.forEach(e,i);else if(t.length===+t.length)for(var n=0,o=t.length;n<o;n++)e.call(i,t[n],n,t);else for(var r in t)t.hasOwnProperty(r)&&e.call(i,t[r],r,t)}function g(t,e,i){if(!t)return[];if(!e)return N(t);if(t.map&&t.map===wf)return t.map(e,i);for(var n=[],o=0,r=t.length;o<r;o++)n.push(e.call(i,t[o],o,t));return n}function y(t,e,i,n){if(t&&e){for(var o=0,r=t.length;o<r;o++)i=e.call(n,i,t[o],o,t);return i}}function m(t,e,i){if(!t)return[];if(!e)return N(t);if(t.filter&&t.filter===_f)return t.filter(e,i);for(var n=[],o=0,r=t.length;o<r;o++)e.call(i,t[o],o,t)&&n.push(t[o]);return n}function v(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e,i=[];for(e in t)t.hasOwnProperty(e)&&i.push(e);return i}function _(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return function(){return t.apply(this,e.concat(xf.call(arguments)))}}function x(t){return Array.isArray?Array.isArray(t):"[object Array]"===yf.call(t)}function w(t){return"function"==typeof t}function b(t){return"string"==typeof t}function S(t){return"[object String]"===yf.call(t)}function 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!!gf[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 xf.apply(t,e)}function B(t){var e;return"number"==typeof t?[t,t,t,t]:2===(e=t.length)?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function z(t,e){if(!t)throw new Error(e)}function F(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function V(t){t[kf]=!0}function Y(t){return t[kf]}function H(t){function e(t,e){i?n.set(t,e):n.set(e,t)}this.data={};var i=x(t),n=(this.data={},this);t instanceof H?t.each(e):t&&f(t,e)}function W(t){return new Af(t)}function X(t,e){for(var i=new t.constructor(t.length+e.length),n=0;n<t.length;n++)i[n]=t[n];for(var o=t.length,n=0;n<e.length;n++)i[n+o]=e[n];return i}function U(t,e){var i,t=Object.create?Object.create(t):((i=function(){}).prototype=t,new i);return e&&l(t,e),t}function G(t){t=t.style,t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function j(t,e){return t.hasOwnProperty(e)}function q(){}function Z(t,e){return[t=null==t?0:t,e=null==e?0:e]}function K(t){return[t[0],t[1]]}function Q(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t}function $(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function J(t){return Math.sqrt(tt(t))}function tt(t){return t[0]*t[0]+t[1]*t[1]}function et(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t}function it(t,e){var i=J(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t}function nt(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 rt(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 at(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 st(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t}function lt(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}function ht(t){(this.handler=t).on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}function ut(t){t&&(this._$eventProcessor=t)}function ct(t,e,i,n,o,r){var a,s=n+"-"+o,l=t.length;if(r.hasOwnProperty(s))return r[s];if(1===e)return a=Math.round(Math.log((1<<l)-1&~o)/zf),t[i][a];for(var h=n|1<<i,u=i+1;n&1<<u;)u++;for(var c=0,p=0,d=0;p<l;p++){var f=1<<p;f&o||(c+=(d%2?-1:1)*t[i][p]*ct(t,e-1,u,h,o|f,r),d++)}return r[s]=c}function pt(t,e){var i=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},o=ct(i,8,0,0,0,n);if(0!==o){for(var r=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==r[s]&&(r[s]=0),r[s]+=((a+s)%2?-1:1)*ct(i,7,0===a?1:0,1<<a,1<<s,n)/o*e[a];return function(t,e,i){var n=e*r[6]+i*r[7]+1;t[0]=(e*r[0]+i*r[1]+r[2])/n,t[1]=(e*r[3]+i*r[4]+r[5])/n}}}function dt(t,e,i,n,o){if(e.getBoundingClientRect&&af.domSupported&&!ft(e)){var r=e[Ff]||(e[Ff]={}),e=function(t,e,i){for(var n=i?"invTrans":"trans",o=e[n],r=e.srcCoords,a=[],s=[],l=!0,h=0;h<4;h++){var u=t[h].getBoundingClientRect(),c=2*h,p=u.left,u=u.top;a.push(p,u),l=l&&r&&p===r[c]&&u===r[1+c],s.push(t[h].offsetLeft,t[h].offsetTop)}return l&&o?o:(e.srcCoords=a,e[n]=i?pt(s,a):pt(a,s))}(function(t,e){var i=e.markers;if(!i){i=e.markers=[];for(var n=["left","right"],o=["top","bottom"],r=0;r<4;r++){var a=document.createElement("div"),s=a.style,l=r%2,h=(r>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",o[h]+":0",n[1-l]+":auto",o[1-h]+":auto",""].join("!important;"),t.appendChild(a),i.push(a)}}return i}(e,r),r,o);if(e)return e(t,i,n),!0}return!1}function ft(t){return"CANVAS"===t.nodeName.toUpperCase()}function gt(t,e,i,n){return i=i||{},n?yt(t,e,i):Wf&&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):yt(t,e,i),i}function yt(t,e,i){if(af.domSupported&&t.getBoundingClientRect){var n,o=e.clientX,e=e.clientY;if(ft(t))return n=t.getBoundingClientRect(),i.zrX=o-n.left,void(i.zrY=e-n.top);if(dt(Hf,t,o,e))return i.zrX=Hf[0],void(i.zrY=Hf[1])}i.zrX=i.zrY=0}function mt(t){return t||window.event}function vt(t,e,i){var n;return null==(e=mt(e)).zrX&&((n=e.type)&&0<=n.indexOf("touch")?(n=("touchend"!==n?e.targetTouches:e.changedTouches)[0])&&gt(t,n,e,i):(gt(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&&Yf.test(e.type))&&(e.which=1&t?1:2&t?3:4&t?2:0),e}function _t(){this._track=[]}function xt(t){var e=t[1][0]-t[0][0],t=t[1][1]-t[0][1];return Math.sqrt(e*e+t*t)}function wt(){Xf(this.event)}function bt(){var t=null!==jf&&jf.apply(this,arguments)||this;return t.handler=null,t}function St(t,e,i,n){var o=qf.call(this)||this;return o._hovered=new Kf(0,0),o.storage=t,o.painter=e,o.painterRoot=n,i=i||new Zf,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new Nf(o),o}function Tt(t,e,i){return t=t.painter,e<0||e>t.getWidth()||i<0||i>t.getHeight()}function Ct(t,e,i,n){var o=e+1;if(o===i)return 1;if(n(t[o++],t[e])<0){for(;o<i&&n(t[o],t[o-1])<0;)o++;var r=t,a=e,s=o;for(s--;a<s;){var l=r[a];r[a++]=r[s],r[s--]=l}}else for(;o<i&&0<=n(t[o],t[o-1]);)o++;return o-e}function Mt(t,e,i,n,o){for(n===e&&n++;n<i;n++){for(var r,a=t[n],s=e,l=n;s<l;)o(a,t[r=s+l>>>1])<0?l=r:s=1+r;var h=n-s;switch(h){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;0<h;)t[s+h]=t[s+h-1],h--}t[s]=a}}function It(t,e,i,n,o,r){var a=0,s=0,l=1;if(0<r(t,e[i+o])){for(s=n-o;l<s&&0<r(t,e[i+o+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=o,l+=o}else{for(s=o+1;l<s&&r(t,e[i+o-l])<=0;)(l=1+((a=l)<<1))<=0&&(l=s);n=a,a=o-(l=s<l?s:l),l=o-n}for(a++;a<l;){var h=a+(l-a>>>1);0<r(t,e[i+h])?a=h+1:l=h}return l}function kt(t,e,i,n,o,r){var a=0,s=0,l=1;if(r(t,e[i+o])<0){for(s=o+1;l<s&&r(t,e[i+o-l])<0;)(l=1+((a=l)<<1))<=0&&(l=s);var h=a,a=o-(l=s<l?s:l),l=o-h}else{for(s=n-o;l<s&&0<=r(t,e[i+o+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=o,l+=o}for(a++;a<l;){var u=a+(l-a>>>1);r(t,e[i+u])<0?l=u:a=u+1}return l}function At(t,e){function i(i){var l=n[i],h=o[i],u=n[i+1],c=o[i+1],i=(o[i]=h+c,i===a-3&&(n[i+1]=n[i+2],o[i+1]=o[i+2]),a--,kt(t[u],t,l,h,0,e));if(l+=i,0!=(h-=i)&&0!==(c=It(t[l+h-1],t,u,c,c-1,e)))if(h<=c){var p=l,d=h,i=u,f=c,g=0;for(g=0;g<d;g++)s[g]=t[p+g];var y=0,m=i,v=p;if(t[v++]=t[m++],0==--f)for(g=0;g<d;g++)t[v+g]=s[y+g];else if(1===d){for(g=0;g<f;g++)t[v+g]=t[m+g];t[v+f]=s[y]}else{for(var _,x,w,b=r;;){x=_=0,w=!1;do{if(e(t[m],s[y])<0){if(t[v++]=t[m++],x++,(_=0)==--f){w=!0;break}}else if(t[v++]=s[y++],_++,x=0,1==--d){w=!0;break}}while((_|x)<b);if(w)break;do{if(0!==(_=kt(t[m],s,y,d,0,e))){for(g=0;g<_;g++)t[v+g]=s[y+g];if(v+=_,y+=_,(d-=_)<=1){w=!0;break}}if(t[v++]=t[m++],0==--f){w=!0;break}if(0!==(x=It(s[y],t,m,f,0,e))){for(g=0;g<x;g++)t[v+g]=t[m+g];if(v+=x,m+=x,0==(f-=x)){w=!0;break}}if(t[v++]=s[y++],1==--d){w=!0;break}}while(b--,tg<=_||tg<=x);if(w)break;b<0&&(b=0),b+=2}if((r=b)<1&&(r=1),1===d){for(g=0;g<f;g++)t[v+g]=t[m+g];t[v+f]=s[y]}else{if(0===d)throw new Error;for(g=0;g<d;g++)t[v+g]=s[y+g]}}}else{var S=l,T=h,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=r;;){var E=0,R=0,N=!1;do{if(e(s[A],t[k])<0){if(t[D--]=t[k--],E++,(R=0)==--T){N=!0;break}}else if(t[D--]=s[A--],R++,E=0,1==--M){N=!0;break}}while((E|R)<L);if(N)break;do{if(0!=(E=T-kt(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-It(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--,tg<=E||tg<=R);if(N)break;L<0&&(L=0),L+=2}if((r=L)<1&&(r=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,o,r=tg,a=0,s=(t.length,[]);return n=[],o=[],{mergeRuns:function(){for(;1<a;){var t=a-2;if(1<=t&&o[t-1]<=o[t]+o[t+1]||2<=t&&o[t-2]<=o[t]+o[t-1])o[t-1]<o[t+1]&&t--;else if(o[t]>o[t+1])break;i(t)}},forceMergeRuns:function(){for(;1<a;){var t=a-2;0<t&&o[t-1]<o[t+1]&&t--,i(t)}},pushRun:function(t,e){n[a]=t,o[a]=e,a+=1}}}function Dt(t,e,i,n){var o=(n=n||t.length)-(i=i||0);if(!(o<2)){var r=0;if(o<Jf)Mt(t,i,n,i+(r=Ct(t,i,n,e)),e);else{var a,s=At(t,e),l=function(t){for(var e=0;Jf<=t;)e|=1&t,t>>=1;return t+e}(o);do{}while((r=Ct(t,i,n,e))<l&&(Mt(t,i,i+(a=l<(a=o)?l:o),i+r,e),r=a),s.pushRun(i,r),s.mergeRuns(),i+=r,0!=(o-=r));s.forceMergeRuns()}}}function Pt(){ng||(ng=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Ot(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function Lt(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ot}function Et(t){return-hg<t&&t<hg}function Rt(t){return hg<t||t<-hg}function Nt(t,e,i,n,o){var r=1-o;return r*r*(r*t+3*o*e)+o*o*(o*n+3*r*i)}function Bt(t,e,i,n,o){var r=1-o;return 3*(((e-t)*r+2*(i-e)*o)*r+(n-i)*o*o)}function zt(t,e,i,n,o,r){var a,s,n=n+3*(e-i)-t,i=3*(i-2*e+t),e=3*(e-t),t=t-o,o=i*i-3*n*e,l=i*e-9*n*t,t=e*e-3*i*t,h=0;return Et(o)&&Et(l)?Et(i)?r[0]=0:0<=(a=-e/i)&&a<=1&&(r[h++]=a):Et(e=l*l-4*o*t)?(s=-(t=l/o)/2,0<=(a=-i/n+t)&&a<=1&&(r[h++]=a),0<=s&&s<=1&&(r[h++]=s)):0<e?(e=o*i+1.5*n*(-l-(t=lg(e))),0<=(a=(-i-((t=(t=o*i+1.5*n*(-l+t))<0?-sg(-t,cg):sg(t,cg))+(e=e<0?-sg(-e,cg):sg(e,cg))))/(3*n))&&a<=1&&(r[h++]=a)):(t=(2*o*i-3*n*l)/(2*lg(o*o*o)),e=Math.acos(t)/3,a=(-i-2*(l=lg(o))*(t=Math.cos(e)))/(3*n),s=(-i+l*(t+ug*Math.sin(e)))/(3*n),o=(-i+l*(t-ug*Math.sin(e)))/(3*n),0<=a&&a<=1&&(r[h++]=a),0<=s&&s<=1&&(r[h++]=s),0<=o&&o<=1&&(r[h++]=o)),h}function Ft(t,e,i,n,o){var r,a=6*i-12*e+6*t,n=9*e+3*n-3*t-9*i,i=3*e-3*t,e=0;return Et(n)?Rt(a)&&0<=(r=-i/a)&&r<=1&&(o[e++]=r):Et(t=a*a-4*n*i)?o[0]=-a/(2*n):0<t&&(t=(-a-(i=lg(t)))/(2*n),0<=(r=(-a+i)/(2*n))&&r<=1&&(o[e++]=r),0<=t)&&t<=1&&(o[e++]=t),e}function Vt(t,e,i,n,o,r){var a=(e-t)*o+t,e=(i-e)*o+e,i=(n-i)*o+i,s=(e-a)*o+a,e=(i-e)*o+e,o=(e-s)*o+s;r[0]=t,r[1]=a,r[2]=s,r[3]=o,r[4]=o,r[5]=e,r[6]=i,r[7]=n}function Yt(t,e,i,n,o,r,a,s,l,h,u){var c,p,d,f,g=.005,y=1/0;pg[0]=l,pg[1]=h;for(var m=0;m<1;m+=.05)dg[0]=Nt(t,i,o,a,m),dg[1]=Nt(e,n,r,s,m),(d=Lf(pg,dg))<y&&(c=m,y=d);for(var y=1/0,v=0;v<32&&!(g<1e-4);v++)p=c+g,dg[0]=Nt(t,i,o,a,f=c-g),dg[1]=Nt(e,n,r,s,f),d=Lf(dg,pg),0<=f&&d<y?(c=f,y=d):(fg[0]=Nt(t,i,o,a,p),fg[1]=Nt(e,n,r,s,p),f=Lf(fg,pg),p<=1&&f<y?(c=p,y=f):g*=.5);return u&&(u[0]=Nt(t,i,o,a,c),u[1]=Nt(e,n,r,s,c)),lg(y)}function Ht(t,e,i,n){var o=1-n;return o*(o*t+2*n*e)+n*n*i}function Wt(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function Xt(t,e,i){return i=t+i-2*e,0==i?.5:(t-e)/i}function Ut(t,e,i,n,o){var r=(e-t)*n+t,e=(i-e)*n+e,n=(e-r)*n+r;o[0]=t,o[1]=r,o[2]=n,o[3]=n,o[4]=e,o[5]=i}function Gt(t,e,i,n,o,r,a,s,l){var h,u=.005,c=1/0;pg[0]=a,pg[1]=s;for(var p=0;p<1;p+=.05)dg[0]=Ht(t,i,o,p),dg[1]=Ht(e,n,r,p),(y=Lf(pg,dg))<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=(dg[0]=Ht(t,i,o,f),dg[1]=Ht(e,n,r,f),Lf(dg,pg));0<=f&&y<c?(h=f,c=y):(fg[0]=Ht(t,i,o,g),fg[1]=Ht(e,n,r,g),f=Lf(fg,pg),g<=1&&f<c?(h=g,c=f):u*=.5)}return l&&(l[0]=Ht(t,i,o,h),l[1]=Ht(e,n,r,h)),lg(c)}function jt(t){if(t=t&&gg.exec(t)){var e,t=t[1].split(","),i=+F(t[0]),n=+F(t[1]),o=+F(t[2]),r=+F(t[3]);if(!isNaN(i+n+o+r))return e=[],function(t){return t<=0?0:1<=t?1:zt(0,i,o,1,t,e)&&Nt(0,n,r,1,e[0])}}}function qt(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||q,this.ondestroy=t.ondestroy||q,this.onrestart=t.onrestart||q,t.easing&&this.setEasing(t.easing)}function Zt(){this._len=0}function Kt(t){this._list=new vg,this._maxSize=10,this._map={},this._maxSize=t}function Qt(t){return(t=Math.round(t))<0?0:255<t?255:t}function $t(t){return t<0?0:1<t?1:t}function Jt(t){return Qt(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function te(t){return $t(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function ee(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 ie(t,e,i){return t+(e-t)*i}function ne(t,e,i,n,o){return t[0]=e,t[1]=i,t[2]=n,t[3]=o,t}function oe(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function re(t,e){bg&&oe(bg,e),bg=wg.put(t,bg||e.slice())}function ae(t,e){if(t){e=e||[];var i=wg.get(t);if(i)return oe(e,i);if((i=(t+="").replace(/ /g,"").toLowerCase())in xg)return oe(e,xg[i]),re(t,e),e;var n=i.length;if("#"===i.charAt(0))return 4===n||5===n?0<=(o=parseInt(i.slice(1,4),16))&&o<=4095?(ne(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===n?parseInt(i.slice(4),16)/15:1),re(t,e),e):void ne(e,0,0,0,1):7===n||9===n?0<=(o=parseInt(i.slice(1,7),16))&&o<=16777215?(ne(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===n?parseInt(i.slice(7),16)/255:1),re(t,e),e):void ne(e,0,0,0,1):void 0;var o=i.indexOf("("),r=i.indexOf(")");if(-1!==o&&r+1===n){var n=i.substr(0,o),a=i.substr(o+1,r-(o+1)).split(","),s=1;switch(n){case"rgba":if(4!==a.length)return 3===a.length?ne(e,+a[0],+a[1],+a[2],1):ne(e,0,0,0,1);s=te(a.pop());case"rgb":return 3!==a.length?void ne(e,0,0,0,1):(ne(e,Jt(a[0]),Jt(a[1]),Jt(a[2]),s),re(t,e),e);case"hsla":return 4!==a.length?void ne(e,0,0,0,1):(a[3]=te(a[3]),se(a,e),re(t,e),e);case"hsl":return 3!==a.length?void ne(e,0,0,0,1):(se(a,e),re(t,e),e);default:return}}ne(e,0,0,0,1)}}function se(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=te(t[1]),o=te(t[2]),n=o<=.5?o*(n+1):o+n-o*n,o=2*o-n;return ne(e=e||[],Qt(255*ee(o,n,i+1/3)),Qt(255*ee(o,n,i)),Qt(255*ee(o,n,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function le(t,e){var i=ae(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 ce(i,4===i.length?"rgba":"rgb")}}function he(t,e,i){var n,o,r;if(e&&e.length&&0<=t&&t<=1)return i=i||[],t*=e.length-1,n=Math.floor(t),r=Math.ceil(t),o=e[n],e=e[r],i[0]=Qt(ie(o[0],e[0],r=t-n)),i[1]=Qt(ie(o[1],e[1],r)),i[2]=Qt(ie(o[2],e[2],r)),i[3]=$t(ie(o[3],e[3],r)),i}function ue(t,e,i){var n,o,r,a;if(e&&e.length&&0<=t&&t<=1)return t*=e.length-1,n=Math.floor(t),o=Math.ceil(t),a=ae(e[n]),e=ae(e[o]),a=ce([Qt(ie(a[0],e[0],r=t-n)),Qt(ie(a[1],e[1],r)),Qt(ie(a[2],e[2],r)),$t(ie(a[3],e[3],r))],"rgba"),i?{color:a,leftIndex:n,rightIndex:o,value:t}:a}function ce(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 pe(t,e){return t=ae(t),t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function de(t){var e,i;return t&&"transparent"!==t?"string"==typeof t&&-1<t.indexOf("rgba")&&(i=ae(t))&&(t="rgb("+i[0]+","+i[1]+","+i[2]+")",e=i[3]):t="none",{color:t,opacity:null==e?1:e}}function fe(t){return t<1e-4&&-1e-4<t}function ge(t){return Tg(1e3*t)/1e3}function ye(t){return Tg(1e4*t)/1e4}function me(t){return t&&!!t.image}function ve(t){return"linear"===t.type}function _e(t){return"radial"===t.type}function xe(t){return"url(#"+t+")"}function we(t){return t=t.getGlobalScale(),t=Math.max(t[0],t[1]),Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function be(t){var e=t.x||0,i=t.y||0,n=(t.rotation||0)*Df,o=E(t.scaleX,1),r=E(t.scaleY,1),a=t.skewX||0,t=t.skewY||0,s=[];return(e||i)&&s.push("translate("+e+"px,"+i+"px)"),n&&s.push("rotate("+n+")"),1===o&&1===r||s.push("scale("+o+","+r+")"),(a||t)&&s.push("skew("+Tg(a*Df)+"deg, "+Tg(t*Df)+"deg)"),s.join(" ")}function Se(t,e,i){return(e-t)*i+t}function Te(t,e,i,n){for(var o=e.length,r=0;r<o;r++)t[r]=Se(e[r],i[r],n);return t}function Ce(t,e,i,n){for(var o=e.length,r=0;r<o;r++)t[r]=e[r]+i[r]*n;return t}function Me(t,e,i,n){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){t[a]||(t[a]=[]);for(var s=0;s<r;s++)t[a][s]=e[a][s]+i[a][s]*n}return t}function Ie(t){if(d(t)){var e=t.length;if(d(t[0])){for(var i=[],n=0;n<e;n++)i.push(Ig.call(t[n]));return i}return Ig.call(t)}return t}function ke(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function Ae(t){return 4===t||5===t}function De(t){return 1===t||2===t}function Pe(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}function Oe(t,e,i,n){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,(this._loop=e)&&n?r("Can' use additive animation on looped animation."):(this._additiveAnimators=n,this._allowDiscrete=i)}function Le(){return(new Date).getTime()}function Ee(t){var e=Pg.call(this)||this;return e._running=!1,e._time=0,e._pausedTime=0,e._pauseStart=0,e._paused=!1,e.stage=(t=t||{}).stage||{},e}function Re(t){return"pen"===(t=t.pointerType)||"touch"===t}function Ne(t){t&&(t.zrByTouch=!0)}function Be(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 ze(t,e){var i=e.domHandlers;af.pointerEventsSupported?f(Ng.pointer,function(n){Ve(e,n,function(e){i[n].call(t,e)})}):(af.touchEventsSupported&&f(Ng.touch,function(n){Ve(e,n,function(o){var r;i[n].call(t,o),(r=e).touching=!0,null!=r.touchTimer&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)})}),f(Ng.mouse,function(n){Ve(e,n,function(o){o=mt(o),e.touching||i[n].call(t,o)})}))}function Fe(t,e){function i(i){Ve(e,i,function(n){var o;n=mt(n),Be(t,n.target)||(o=n,n=vt(t.dom,new Vg(t,o),!0),e.domHandlers[i].call(t,n))},{capture:!0})}af.pointerEventsSupported?f(zg,i):af.touchEventsSupported||f(Bg,i)}function Ve(t,e,i,n){t.mounted[e]=i,t.listenerOpts[e]=n,t.domTarget.addEventListener(e,i,n)}function Ye(t){var e,i,n,o,r,a=t.mounted;for(e in a)a.hasOwnProperty(e)&&(i=t.domTarget,o=a[n=e],r=t.listenerOpts[e],i.removeEventListener(n,o,r));t.mounted={}}function He(t,e){var i=Lg.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=e,i._localHandlerScope=new Wg(t,Yg),Rg&&(i._globalHandlerScope=new Wg(document,Hg)),ze(i,i._localHandlerScope),i}function We(){return[1,0,0,1,0,0]}function Xe(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Ue(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 Ge(t,e,i){var n=e[0]*i[0]+e[2]*i[1],o=e[1]*i[0]+e[3]*i[1],r=e[0]*i[2]+e[2]*i[3],a=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],i=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=o,t[2]=r,t[3]=a,t[4]=s,t[5]=i,t}function je(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 qe(t,e,i){var n=e[0],o=e[2],r=e[4],a=e[1],s=e[3],e=e[5],l=Math.sin(i),i=Math.cos(i);return t[0]=n*i+a*l,t[1]=-n*l+a*i,t[2]=o*i+s*l,t[3]=-o*l+i*s,t[4]=i*r+l*e,t[5]=i*e-l*r,t}function Ze(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 Ke(t,e){var i=e[0],n=e[2],o=e[4],r=e[1],a=e[3],e=e[5],s=i*a-r*n;return s?(t[0]=a*(s=1/s),t[1]=-r*s,t[2]=-n*s,t[3]=i*s,t[4]=(n*e-a*o)*s,t[5]=(r*o-i*e)*s,t):null}function Qe(t){return 5e-5<t||t<-5e-5}function $e(){}function Je(t,e){for(var i=0;i<ey.length;i++){var n=ey[i];t[n]=e[n]}}function ti(t,e){this.x=t||0,this.y=e||0}function ei(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 ii(t,e){var i=dy[e=e||cf],n=(i=i||(dy[e]=new _g(500))).get(t);return null==n&&(n=df.measureText(t,e).width,i.put(t,n)),n}function ni(t,e,i,n){return t=ii(t,e),e=si(e),i=ri(0,t,i),n=ai(0,e,n),new py(i,n,t,e)}function oi(t,e,i,n){var o=((t||"")+"").split("\n");if(1===o.length)return ni(o[0],e,i,n);for(var r=new py(0,0,0,0),a=0;a<o.length;a++){var s=ni(o[a],e,i,n);0===a?r.copy(s):r.union(s)}return r}function ri(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function ai(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function si(t){return ii("国",t)}function li(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function hi(t,e,i){var n=e.position||"inside",o=null!=e.distance?e.distance:5,r=i.height,a=i.width,s=r/2,l=i.x,h=i.y,u="left",c="top";if(n instanceof Array)l+=li(n[0],i.width),h+=li(n[1],i.height),c=u=null;else switch(n){case"left":l-=o,h+=s,u="right",c="middle";break;case"right":l+=o+a,h+=s,c="middle";break;case"top":l+=a/2,h-=o,u="center",c="bottom";break;case"bottom":l+=a/2,h+=r+o,u="center";break;case"inside":l+=a/2,h+=s,u="center",c="middle";break;case"insideLeft":l+=o,h+=s,c="middle";break;case"insideRight":l+=a-o,h+=s,u="right",c="middle";break;case"insideTop":l+=a/2,h+=o,u="center";break;case"insideBottom":l+=a/2,h+=r-o,u="center",c="bottom";break;case"insideTopLeft":l+=o,h+=o;break;case"insideTopRight":l+=a-o,h+=o,u="right";break;case"insideBottomLeft":l+=o,h+=r-o,c="bottom";break;case"insideBottomRight":l+=a-o,h+=r-o,u="right",c="bottom"}return(t=t||{}).x=l,t.y=h,t.align=u,t.verticalAlign=c,t}function ui(t){this.id=Cf++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}function ci(t,e,i,n){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[n]},set:function(e){t[n]=e}})}Object.defineProperty(iy,t,{get:function(){var t;return this[e]||(t=this[e]=[],o(this,t)),this[e]},set:function(t){this[i]=t[0],this[n]=t[1],this[e]=t,o(this,t)}})}function pi(t,e,i,n,o){function r(){h=!0,--l<=0&&(h?c&&c():p&&p())}function a(){--l<=0&&(h?c&&c():p&&p())}var s=[],l=(function t(e,i,n,o,r,a,s,l){for(var h=v(o),c=r.duration,p=r.delay,f=r.additive,g=r.setToFinal,y=!C(a),_=e.animators,x=[],w=0;w<h.length;w++){var b=h[w],S=o[b];null!=S&&null!=n[b]&&(y||a[b])?!C(S)||d(S)||A(S)?x.push(b):i?l||(n[b]=S,e.updateDuringAnimation(i)):t(e,b,n[b],S,r,a&&a[b],s,l):l||(n[b]=S,e.updateDuringAnimation(i),x.push(b))}var T=x.length;if(!f&&T)for(var M,I=0;I<_.length;I++)(k=_[I]).targetName===i&&k.stopTracks(x)&&(M=u(_,k),_.splice(M,1));if(r.force||(x=m(x,function(t){return!gi(o[t],n[t])}),T=x.length),0<T||r.force&&!s.length){var k,D=void 0,P=void 0,O=void 0;if(l)for(P={},g&&(D={}),I=0;I<T;I++)b=x[I],P[b]=n[b],g?D[b]=o[b]:n[b]=o[b];else if(g)for(O={},I=0;I<T;I++)b=x[I],O[b]=Ie(n[b]),fi(n,o,b);(k=new Dg(n,!1,!1,f?m(_,function(t){return t.targetName===i}):null)).targetName=i,r.scope&&(k.scope=r.scope),g&&D&&k.whenWithKeys(0,D,x),O&&k.whenWithKeys(0,O,x),k.whenWithKeys(null==c?500:c,l?P:o,x).delay(p||0),e.addAnimator(k,i),s.push(k)}}(t,"",t,e,i=i||{},n,s,o),s.length),h=!1,c=i.done,p=i.aborted;l||c&&c(),0<s.length&&i.during&&s[0].during(function(t,e){i.during(e)});for(var f=0;f<s.length;f++){var g=s[f];g.done(r),g.aborted(a),i.force&&g.duration(i.duration),g.start(i.easing)}return s}function di(t,e,i){for(var n=0;n<i;n++)t[n]=e[n]}function fi(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),di(t[i],e[i],n))}else{var o=e[i],r=t[i],a=o.length;if(d(o[0]))for(var s=o[0].length,l=0;l<a;l++)r[l]?di(r[l],o[l],s):r[l]=Array.prototype.slice.call(o[l]);else di(r,o,a);r.length=o.length}else t[i]=e[i]}function gi(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 yi(t){var e=xy.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}function mi(t,e,i){var n=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 og),r=i.renderer||"canvas",r=(by[r]||(r=v(by)[0]),i.useDirtyRect=null!=i.useDirtyRect&&i.useDirtyRect,new by[r](e,o,i,t)),e=i.ssr||r.ssrOnly,t=(this.storage=o,this.painter=r,af.node||af.worker||e?null:new Xg(r.getViewportRoot(),r.root));this.handler=new $f(o,r,t,r.root),this.animation=new Eg({stage:{update:e?null:function(){return n._flush(!0)}}}),e||this.animation.start()}function vi(t,e){return t=new Cy(Cf++,t,e),Sy[t.id]=t}function _i(t,e){by[t]=e}function xi(t,e,i,n){var o=e[0],e=e[1],r=i[0],i=i[1],a=e-o,s=i-r;if(0==a)return 0==s?r:(r+i)/2;if(n)if(0<a){if(t<=o)return r;if(e<=t)return i}else{if(o<=t)return r;if(t<=e)return i}else{if(t===o)return r;if(t===e)return i}return(t-o)/a*s+r}function wi(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 bi(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),Iy),t=(+t).toFixed(e),i?t:+t}function Si(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 Ti(t)}function Ti(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 Ci(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 Mi(t){var e=2*Math.PI;return(t%e+e)%e}function Ii(t){return-1e-4<t&&t<1e-4}function ki(t){var e,i;return t instanceof Date?t:b(t)?(e=ky.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 Ai(t){return Math.pow(10,Di(t))}function Di(t){var e;return 0===t?0:(e=Math.floor(Math.log(t)/Math.LN10),10<=t/Math.pow(10,e)&&e++,e)}function Pi(t,e){var i=Di(t),n=Math.pow(10,i),o=t/n,e=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10;return t=e*n,-20<=i?+t.toFixed(i<0?-i:0):t}function Oi(t){var e=parseFloat(t);return e==t&&(0!==e||!b(t)||t.indexOf("x")<=0)?e:NaN}function Li(t){return!isNaN(Oi(t))}function Ei(){return Math.round(9*Math.random())}function Ri(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 Ni(t){throw new Error(t)}function Bi(t,e,i){return(e-t)*i+t}function zi(t){return t instanceof Array?t:null==t?[]:[t]}function Fi(t,e,i){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,o=i.length;n<o;n++){var r=i[n];!t.emphasis[e].hasOwnProperty(r)&&t[e].hasOwnProperty(r)&&(t.emphasis[e][r]=t[e][r])}}}function Vi(t){return!C(t)||x(t)||t instanceof Date?t:t.value}function Yi(t,e,i){var n,o,r,a,s,l,h,u,c,p,d="normalMerge"===i,g="replaceMerge"===i,y="replaceAll"===i,m=(t=t||[],e=(e||[]).slice(),W()),i=(f(e,function(t,i){C(t)||(e[i]=null)}),function(t,e,i){var n=[];if("replaceAll"!==i)for(var o=0;o<t.length;o++){var r=t[o];r&&null!=r.id&&e.set(r.id,o),n.push({existing:"replaceMerge"===i||Gi(r)?null:r,newOption:null,keyInfo:null,brandNew:null})}return n}(t,m,i));return(d||g)&&(n=i,o=t,r=m,f(a=e,function(t,e){var i,s,l;t&&null!=t.id&&(i=Wi(t.id),null!=(s=r.get(i)))&&(z(!(l=n[s]).newOption,'Duplicated option on id "'+i+'".'),l.newOption=t,l.existing=o[s],a[e]=null)})),d&&(s=i,f(l=e,function(t,e){if(t&&null!=t.name)for(var i=0;i<s.length;i++){var n=s[i].existing;if(!s[i].newOption&&n&&(null==n.id||null==t.id)&&!Gi(t)&&!Gi(n)&&Hi("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||Gi(e.existing)||e.existing&&null!=t.id&&!Hi("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=W(),f(t,function(t){var e=t.existing;e&&p.set(e.id,t)}),f(t,function(t){var e=t.newOption;z(!e||null==e.id||!p.get(e.id)||p.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&p.set(e.id,t),t.keyInfo||(t.keyInfo={})}),f(t,function(t,e){var i=t.existing,n=t.newOption,o=t.keyInfo;if(C(n)){if(o.name=null!=n.name?Wi(n.name):i?i.name:Ay+e,i)o.id=Wi(i.id);else if(null!=n.id)o.id=Wi(n.id);else for(var r=0;o.id="\0"+o.name+"\0"+r++,p.get(o.id););p.set(o.id,t)}}),i}function Hi(t,e,i){return e=Xi(e[t],null),i=Xi(i[t],null),null!=e&&null!=i&&e===i}function Wi(t){return Xi(t,"")}function Xi(t,e){return null==t?e:b(t)?t:T(t)||S(t)?t+"":e}function Ui(t){return!(!(t=t.name)||!t.indexOf(Ay))}function Gi(t){return t&&null!=t.id&&0===Wi(t.id).indexOf("\0_ec_\0")}function ji(t,e,i){f(t,function(t){var n,o,r=t.newOption;C(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=(n=e,r=r,t=t.existing,o=i,r.type||(t?t.subType:o.determineSubType(n,r))))})}function qi(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 Zi(){var t="__ec_inner_"+Py++;return function(e){return e[t]||(e[t]={})}}function Ki(t,e,i){var e=Qi(e,i),n=e.mainTypeSpecified,o=e.queryOptionMap,r=e.others,a=i?i.defaultMainType:null;return!n&&a&&o.set(a,{}),o.each(function(e,n){e=$i(t,n,e,{useDefault:a===n,enableAll:!i||null==i.enableAll||i.enableAll,enableNone:!i||null==i.enableNone||i.enableNone}),r[n+"Models"]=e.models,r[n+"Model"]=e.models[0]}),r}function Qi(t,e){var i=b(t)?((i={})[t+"Index"]=0,i):t,n=W(),o={},r=!1;return f(i,function(t,i){var a;"dataIndex"===i||"dataIndexInside"===i?o[i]=t:(a=(i=i.match(/^(\w+)(Index|Id|Name)$/)||[])[1],i=(i[2]||"").toLowerCase(),!a||!i||e&&e.includeMainTypes&&u(e.includeMainTypes,a)<0||(r=r||!!a,(n.get(a)||n.set(a,{}))[i]=t))}),{mainTypeSpecified:r,queryOptionMap:n,others:o}}function $i(t,e,i,n){n=n||Oy;var o=i.index,r=i.id,i=i.name,a={models:null,specified:null!=o||null!=r||null!=i};return a.specified?"none"===o||!1===o?(z(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),a.models=[]):("all"===o&&(z(n.enableAll,'`"all"` is not a valid value on index option.'),o=r=i=null),a.models=t.queryComponents({mainType:e,index:o,id:r,name:i})):(o=void 0,a.models=n.useDefault&&(o=t.getComponent(e))?[o]:[]),a}function Ji(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i}function tn(t,e,i,n,o){var r=null==e||"auto"===e;if(null==n)return n;if(T(n))return bi(p=Bi(i||0,n,o),r?Math.max(Si(i||0),Si(n)):e);if(b(n))return o<1?i:n;for(var a=[],s=i,l=n,h=Math.max(s?s.length:0,l.length),u=0;u<h;++u){var c,p,d=t.getDimensionInfo(u);d&&"ordinal"===d.type?a[u]=(o<1&&s?s:l)[u]:(p=Bi(d=s&&s[u]?s[u]:0,c=l[u],o),a[u]=bi(p,r?Math.max(Si(d),Si(c)):e))}return a}function en(t){var e={main:"",sub:""};return t&&(t=t.split(Ly),e.main=t[0]||"",e.sub=t[1]||""),e}function nn(t){(t.$constructor=t).extend=function(t){function e(){return o.apply(this,arguments)||this}var n,o,r,a=this;return w(r=a)&&/^class\s/.test(Function.prototype.toString.call(r))?(i(e,o=a),n=e):c(n=function(){(t.$constructor||a).apply(this,arguments)},this),l(n.prototype,t),n[Ry]=!0,n.extend=this.extend,n.superCall=rn,n.superApply=an,n.superClass=a,n}}function on(t,e){t.extend=e.extend}function rn(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 an(t,e,i){return this.superClass.prototype[e].apply(t,i)}function sn(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=en(t.prototype.type=n)).sub?i.sub!==Ey&&((function(t){var i=e[t.main];return i&&i[Ey]||(i=e[t.main]={___EC__COMPONENT__CONTAINER___:!0}),i}(i))[i.sub]=t):e[i.main]=t),t},t.getClass=function(t,i,n){var o=e[t];if(o&&o[Ey]&&(o=i?o[i]:null),n&&!o)throw new Error(i?"Component "+t+"."+(i||"")+" is used but not imported.":t+".type should be specified.");return o},t.getClassesByMainType=function(t){var t=en(t),i=[],t=e[t.main];return t&&t[Ey]?f(t,function(t,e){e!==Ey&&i.push(t)}):i.push(t),i},t.hasClass=function(t){return t=en(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=en(t),(t=e[t.main])&&t[Ey]}}function ln(t,e){for(var i=0;i<t.length;i++)t[i][1]||(t[i][1]=t[i][0]);return e=e||!1,function(i,n,o){for(var r={},a=0;a<t.length;a++){var s=t[a][1];n&&0<=u(n,s)||o&&u(o,s)<0||null!=(s=i.getShallow(s,e))&&(r[t[a][0]]=s)}return r}}function hn(){}function un(t,e,i,n,o){return t?"string"==typeof t?(e&&e.__zrImageSrc===t||!i||(i={hostEl:i,cb:n,cbPayload:o},(n=Fy.get(t))?pn(e=n.image)||n.pending.push(i):((o=df.loadImage(t,cn,cn)).__zrImageSrc=t,Fy.put(t,o.__cachedImgObj={image:o,pending:[i]}))),e):t:e}function cn(){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 pn(t){return t&&t.width&&t.height}function dn(t,e,i,n,o){if(!e)return"";var r=(t+"").split("\n");o=fn(e,i,n,o);for(var a=0,s=r.length;a<s;a++)r[a]=gn(r[a],o);return r.join("\n")}function fn(t,e,i,n){for(var o=l({},n=n||{}),r=(o.font=e,i=E(i,"..."),o.maxIterations=E(n.maxIterations,2),o.minChar=E(n.minChar,0)),a=(o.cnCharWidth=ii("国",e),o.ascCharWidth=ii("a",e)),s=(o.placeholder=E(n.placeholder,""),t=Math.max(0,t-1)),h=0;h<r&&a<=s;h++)s-=a;return n=ii(i,e),s<n&&(i="",n=0),s=t-n,o.ellipsis=i,o.ellipsisWidth=n,o.contentWidth=s,o.containerWidth=t,o}function gn(t,e){var i=e.containerWidth,n=e.font,o=e.contentWidth;if(!i)return"";var r=ii(t,n);if(!(r<=i)){for(var a=0;;a++){if(r<=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?function(t,e,i,n){for(var o=0,r=0,a=t.length;r<a&&o<e;r++){var s=t.charCodeAt(r);o+=0<=s&&s<=127?i:n}return r}(t,o,e.ascCharWidth,e.cnCharWidth):0<r?Math.floor(t.length*o/r):0,r=ii(t=t.substr(0,s),n)}""===t&&(t=e.placeholder)}return t}function yn(t,e){function i(t,e,i){t.width=e,t.lineHeight=i,d+=i,f=Math.max(f,e)}var n=new Wy;if(null!=t&&(t+=""),t){for(var o,r=e.width,a=e.height,s=e.overflow,l="break"!==s&&"breakAll"!==s||null==r?null:{width:r,accumWidth:0,breakAll:"breakAll"===s},h=Vy.lastIndex=0;null!=(o=Vy.exec(t));){var u=o.index;h<u&&mn(n,t.substring(h,u),e,l),mn(n,o[2],e,l,o[1]),h=Vy.lastIndex}h<t.length&&mn(n,t.substring(h,t.length),e,l);var c,p=[],d=0,f=0,g=e.padding,y="truncate"===s,m="truncate"===e.lineOverflow;t:for(var v=0;v<n.lines.length;v++){for(var _=n.lines[v],x=0,w=0,b=0;b<_.tokens.length;b++){var S=(D=_.tokens[b]).styleName&&e.rich[D.styleName]||{},T=D.textPadding=S.padding,C=T?T[1]+T[3]:0,M=D.font=S.font||e.font,I=(D.contentHeight=si(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=ii(D.text,M)):(A&&(T=(T=S.backgroundColor)&&T.image)&&(k=void 0,pn(T="string"==typeof(c=T)?(k=Fy.get(c))&&k.image:c))&&(D.width=Math.max(D.width,T.width*I/T.height)),null!=(k=y&&null!=r?r-w:null)&&k<D.width?!A||k<C?(D.text="",D.width=D.contentWidth=0):(D.text=dn(D.text,k-C,M,e.ellipsis,{minChar:e.truncateMinChar}),D.width=D.contentWidth=ii(D.text,M)):D.contentWidth=ii(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(r,f),n.outerHeight=n.height=E(a,d),n.contentHeight=d,n.contentWidth=f,g&&(n.outerWidth+=g[1]+g[3],n.outerHeight+=g[0]+g[2]),v=0;v<p.length;v++){var D,P=(D=p[v]).percentWidth;D.width=parseInt(P,10)/100*n.width}}return n}function mn(t,e,i,n,o){var r,a,s=""===e,l=o&&i.rich[o]||{},h=t.lines,u=l.font||i.font,c=!1;n?(i=(t=l.padding)?t[1]+t[3]:0,null!=l.width&&"auto"!==l.width?(t=li(l.width,n.width)+i,0<h.length&&t+n.accumWidth>n.width&&(r=e.split("\n"),c=!0),n.accumWidth=t):(t=vn(e,u,n.width,n.breakAll,n.accumWidth),n.accumWidth=t.accumWidth+i,a=t.linesWidths,r=t.lines)):r=e.split("\n");for(var p=0;p<r.length;p++){var d,f,g=r[p],y=new Yy;y.styleName=o,y.text=g,y.isLineHolder=!g&&!s,y.width="number"==typeof l.width?l.width:a?a[p]:ii(g,u),p||c?h.push(new Hy([y])):1===(f=(d=(h[h.length-1]||(h[0]=new Hy)).tokens).length)&&d[0].isLineHolder?d[0]=y:!g&&f&&!s||d.push(y)}}function vn(t,e,i,n,o){for(var r,a=[],s=[],l="",h="",u=0,c=0,p=0;p<t.length;p++){var d,f,g=t.charAt(p);"\n"===g?(h&&(l+=h,c+=u),a.push(l),s.push(c),h=l="",c=u=0):(d=ii(g,e),f=!(n||(f=void 0,!(33<=(f=(f=r=g).charCodeAt(0))&&f<=383)||Xy[r])),(a.length?i<c+d:i<o+c+d)?c?(l||h)&&(c=f?(l||(l=h,h="",c=u=0),a.push(l),s.push(c-u),h+=g,l="",u+=d):(h&&(l+=h,h="",u=0),a.push(l),s.push(c),l=g,d)):f?(a.push(h),s.push(u),h=g,u=d):(a.push(g),s.push(d)):(c+=d,f?(h+=g,u+=d):(h&&(l+=h,h="",u=0),l+=g)))}return a.length||l||(l=t,h="",u=0),h&&(l+=h),l&&(a.push(l),s.push(c)),1===a.length&&(c+=o),{accumWidth:c,lines:a,linesWidths:s}}function _n(t){return Ty.call(this,t)||this}function xn(t,e,i,n,o,r){o[0]=$y(t,i),o[1]=$y(e,n),r[0]=Jy(t,i),r[1]=Jy(e,n)}function wn(t){return Math.round(t/xm*1e8)/1e8%2*xm}function bn(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 Sn(t,e,i,n,o,r,a){var s;if(0!==o)return s=0,!(e+(o=o)<a&&n+o<a||a<e-o&&a<n-o||t+o<r&&i+o<r||r<t-o&&r<i-o)&&(t===i?Math.abs(r-t)<=o/2:(r=(s=(e-n)/(t-i))*r-a+(t*n-i*e)/(t-i))*r/(s*s+1)<=o/2*o/2)}function Tn(t){return(t%=Im)<0&&(t+=Im),t}function Cn(t,e,i,n,o,r){return e<r&&n<r||r<e&&r<n||n===e?0:(i=(r=(r-e)/(n-e))*(i-t)+t)===o?1/0:o<i?1!=r&&0!=r?n<e?1:-1:n<e?.5:-.5:0}function Mn(t,e,i,n,o,r,a,s,l,h){if(e<h&&n<h&&r<h&&s<h||h<e&&h<n&&h<r&&h<s)return 0;var u=zt(e,n,r,s,h,Om);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=Om[y],v=0===m||1===m?.5:1;Nt(t,i,o,a,m)<l||(d<0&&(d=Ft(e,n,r,s,Lm),Lm[1]<Lm[0]&&1<d&&(c=void 0,c=Lm[0],Lm[0]=Lm[1],Lm[1]=c),f=Nt(e,n,r,s,Lm[0]),1<d)&&(g=Nt(e,n,r,s,Lm[1])),2===d?m<Lm[0]?p+=f<e?v:-v:m<Lm[1]?p+=g<f?v:-v:p+=s<g?v:-v:m<Lm[0]?p+=f<e?v:-v:p+=s<f?v:-v)}return p}function In(t,e,i,n,o,r,a,s){if(e<s&&n<s&&r<s||s<e&&s<n&&s<r)return 0;c=Om,u=(l=e)-2*(h=n)+(u=r),h=2*(h-l),l-=s=s,s=0,Et(u)?Rt(h)&&0<=(p=-l/h)&&p<=1&&(c[s++]=p):Et(l=h*h-4*u*l)?0<=(p=-h/(2*u))&&p<=1&&(c[s++]=p):0<l&&(d=(-h-(l=lg(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=Xt(e,n,r);if(0<=g&&g<=1){for(var y=0,m=Ht(e,n,r,g),v=0;v<f;v++){var _=0===Om[v]||1===Om[v]?.5:1;Ht(t,i,o,Om[v])<a||(Om[v]<g?y+=m<e?_:-_:y+=r<m?_:-_)}return y}return _=0===Om[0]||1===Om[0]?.5:1,Ht(t,i,o,Om[0])<a?0:r<e?_:-_}function kn(t,e,i,n,o){for(var r,a=t.data,s=t.len(),l=0,h=0,u=0,c=0,p=0,d=0;d<s;){var f=a[d++],g=1===d;switch(f===Am.M&&1<d&&(i||(l+=Cn(h,u,c,p,n,o))),g&&(c=h=a[d],p=u=a[d+1]),f){case Am.M:h=c=a[d++],u=p=a[d++];break;case Am.L:if(i){if(Sn(h,u,a[d],a[d+1],e,n,o))return!0}else l+=Cn(h,u,a[d],a[d+1],n,o)||0;h=a[d++],u=a[d++];break;case Am.C:if(i){if(function(t,e,i,n,o,r,a,s,l,h,u){if(0!==l)return!(e+(l=l)<u&&n+l<u&&r+l<u&&s+l<u||u<e-l&&u<n-l&&u<r-l&&u<s-l||t+l<h&&i+l<h&&o+l<h&&a+l<h||h<t-l&&h<i-l&&h<o-l&&h<a-l)&&Yt(t,e,i,n,o,r,a,s,h,u,null)<=l/2}(h,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,o))return!0}else l+=Mn(h,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,o)||0;h=a[d++],u=a[d++];break;case Am.Q:if(i){if(function(t,e,i,n,o,r,a,s,l){if(0!==a)return!(e+(a=a)<l&&n+a<l&&r+a<l||l<e-a&&l<n-a&&l<r-a||t+a<s&&i+a<s&&o+a<s||s<t-a&&s<i-a&&s<o-a)&&Gt(t,e,i,n,o,r,s,l,null)<=a/2}(h,u,a[d++],a[d++],a[d],a[d+1],e,n,o))return!0}else l+=In(h,u,a[d++],a[d++],a[d],a[d+1],n,o)||0;h=a[d++],u=a[d++];break;case Am.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+=Cn(h,u,S,T,n,o),(n-y)*_/v+y);if(i){if(function(t,e,i,n,o,r,a,s,l){if(0!==a)return a=a,s-=t,l-=e,!(i<(t=Math.sqrt(s*s+l*l))-a||t+a<i)&&(Math.abs(n-o)%km<1e-4||((o=r?(e=n,n=Tn(o),Tn(e)):(n=Tn(n),Tn(o)))<n&&(o+=km),(t=Math.atan2(l,s))<0&&(t+=km),n<=t&&t<=o)||n<=t+km&&t+km<=o)}(y,m,_,x,x+w,b,e,C,o))return!0}else l+=function(t,e,i,n,o,r,a,s){if(i<(s-=e)||s<-i)return 0;var e=Math.sqrt(i*i-s*s);if(Om[0]=-e,Om[1]=e,(i=Math.abs(n-o))<1e-4)return 0;if(Dm-1e-4<=i)return o=Dm,u=r?1:-1,a>=Om[n=0]+t&&a<=Om[1]+t?u:0;o<n&&(e=n,n=o,o=e),n<0&&(n+=Dm,o+=Dm);for(var l=0,h=0;h<2;h++){var u,c=Om[h];a<c+t&&(u=r?1:-1,n<=(c=(c=Math.atan2(s,c))<0?Dm+c:c)&&c<=o||n<=c+Dm&&c+Dm<=o)&&(l+=u=c>Math.PI/2&&c<1.5*Math.PI?-u:u)}return l}(y,m,_,x,x+w,b,C,o);h=Math.cos(x+w)*v+y,u=Math.sin(x+w)*_+m;break;case Am.R:if(c=h=a[d++],p=u=a[d++],S=c+a[d++],T=p+a[d++],i){if(Sn(c,p,S,p,e,n,o)||Sn(S,p,S,T,e,n,o)||Sn(S,T,c,T,e,n,o)||Sn(c,T,c,p,e,n,o))return!0}else l=(l+=Cn(S,p,S,T,n,o))+Cn(c,T,c,p,n,o);break;case Am.Z:if(i){if(Sn(h,u,c,p,e,n,o))return!0}else l+=Cn(h,u,c,p,n,o);h=c,u=p}}return i||(t=u,r=p,Math.abs(t-r)<Pm)||(l+=Cn(h,u,c,p,n,o)||0),0!==l}function An(t){return Tm.call(this,t)||this}function Dn(){return null!==Cm&&Cm.apply(this,arguments)||this}function Pn(){return null!==Hm&&Hm.apply(this,arguments)||this}function On(t,e,i){var n,o,r;if(e)return n=e.x1,o=e.x2,r=e.y1,e=e.y2,t.x1=n,t.x2=o,t.y1=r,t.y2=e,(i=i&&i.lineWidth)&&(Um(2*n)===Um(2*o)&&(t.x1=t.x2=En(n,i,!0)),Um(2*r)===Um(2*e))&&(t.y1=t.y2=En(r,i,!0)),t}function Ln(t,e,i){var n,o,r;if(e)return n=e.x,o=e.y,r=e.width,e=e.height,t.x=n,t.y=o,t.width=r,t.height=e,(i=i&&i.lineWidth)&&(t.x=En(n,i,!0),t.y=En(o,i,!0),t.width=Math.max(En(n+r,i,!1)-t.x,0===r?0:1),t.height=Math.max(En(o+e,i,!1)-t.y,0===e?0:1)),t}function En(t,e,i){var n;return e?((n=Um(2*t))+Um(e))%2==0?n/2:(n+(i?1:-1))/2:t}function Rn(t){return Xm.call(this,t)||this}function Nn(t){var e=Zm.call(this)||this;return e.type="text",e._children=[],e._defaultStyle=Km,e.attr(t),e}function Bn(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?hf+"px":t+"px":t}function zn(t,e){for(var i=0;i<ev.length;i++){var n=ev[i],o=e[n];null!=o&&(t[n]=o)}}function Fn(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function Vn(t){var e;t&&(t.font=$m.makeFont(t),e=t.align,t.align=null==(e="middle"===e?"center":e)||Jm[e]?e:"left",e=t.verticalAlign,t.verticalAlign=null==(e="center"===e?"middle":e)||tv[e]?e:"top",t.padding)&&(t.padding=B(t.padding))}function Yn(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Hn(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Wn(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function Xn(t){return t=t.text,null!=t&&(t+=""),t}function Un(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function Gn(t){return null!=t&&"none"!==t}function jn(t){var e;return b(t)?((e=mv.get(t))||(e=le(t,-.1),mv.put(t,e)),e):A(t)?((e=l({},t)).colorStops=g(t.colorStops,function(t){return{offset:t.offset,color:le(t.color,-.1)}}),e):t}function qn(t,e,i){t.onHoverStateChange&&(t.hoverState||0)!==i&&t.onHoverStateChange(e),t.hoverState=i}function Zn(t){qn(t,"emphasis",hv)}function Kn(t){t.hoverState===hv&&qn(t,"normal",sv)}function Qn(t){qn(t,"blur",lv)}function $n(t){t.hoverState===lv&&qn(t,"normal",sv)}function Jn(t){t.selected=!0}function to(t){t.selected=!1}function eo(t,e,i){e(t,i)}function io(t,e,i){eo(t,e,i),t.isGroup&&t.traverse(function(t){eo(t,e,i)})}function no(t,e){switch(e){case"emphasis":t.hoverState=hv;break;case"normal":t.hoverState=sv;break;case"blur":t.hoverState=lv;break;case"select":t.selected=!0}}function oo(t,e,i){var n=0<=u(t.currentStates,e),o=t.style.opacity,t=n?null:function(t,e,i,n){for(var o=t.style,r={},a=0;a<e.length;a++){var s=e[a],l=o[s];r[s]=null==l?n&&n[s]:l}for(a=0;a<t.animators.length;a++){var h=t.animators[a];h.__fromStateTransition&&h.__fromStateTransition.indexOf(i)<0&&"style"===h.targetName&&h.saveTo(r,e)}return r}(t,["opacity"],e,{opacity:1}),e=(i=i||{}).style||{};return null==e.opacity&&(i=l({},i),e=l({opacity:n?o:.1*t.opacity},e),i.style=e),i}function ro(t,e){var i,n,o,r,a,s=this.states[t];if(this.style){if("emphasis"===t)return i=this,n=s,e=(e=e)&&0<=u(e,"select"),a=!1,i instanceof Bm&&(o=rv(i),r=e&&o.selectFill||o.normalFill,e=e&&o.selectStroke||o.normalStroke,Gn(r)||Gn(e))&&("inherit"===(o=(n=n||{}).style||{}).fill?(a=!0,n=l({},n),(o=l({},o)).fill=r):!Gn(o.fill)&&Gn(r)?(a=!0,n=l({},n),(o=l({},o)).fill=jn(r)):!Gn(o.stroke)&&Gn(e)&&(a||(n=l({},n),o=l({},o)),o.stroke=jn(e)),n.style=o),n&&null==n.z2&&(a||(n=l({},n)),r=i.z2EmphasisLift,n.z2=i.z2+(null!=r?r:10)),n;if("blur"===t)return oo(this,t,s);if("select"===t)return e=this,(o=s)&&null==o.z2&&(o=l({},o),a=e.z2SelectLift,o.z2=e.z2+(null!=a?a:9)),o}return s}function ao(t){t.stateProxy=ro;var e=t.getTextContent(),t=t.getTextGuideLine();e&&(e.stateProxy=ro),t&&(t.stateProxy=ro)}function so(t,e){go(t,e)||t.__highByOuter||io(t,Zn)}function lo(t,e){go(t,e)||t.__highByOuter||io(t,Kn)}function ho(t,e){t.__highByOuter|=1<<(e||0),io(t,Zn)}function uo(t,e){(t.__highByOuter&=~(1<<(e||0)))||io(t,Kn)}function co(t){io(t,$n)}function po(t){io(t,Jn)}function fo(t){io(t,to)}function go(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function yo(t){t.getModel().eachComponent(function(e,i){var n=av(i);n.isBlured&&("series"===e?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i)).group.traverse(function(t){$n(t)}),n.isBlured=!1})}function mo(t,e,i,n){function o(t,e){for(var i=0;i<e.length;i++){var n=t.getItemGraphicEl(e[i]);n&&co(n)}}var r,a,s,l=n.getModel();i=i||"coordinateSystem",null!=t&&e&&"none"!==e&&(r=l.getSeriesByIndex(t),(a=r.coordinateSystem)&&a.master&&(a=a.master),s=[],l.eachSeries(function(t){var l=r===t,h=t.coordinateSystem,h=(h=h&&h.master?h.master:h)&&a?h===a:l;if(!("series"===i&&!l||"coordinateSystem"===i&&!h||"series"===e&&l)){if(n.getViewOfSeriesModel(t).group.traverse(function(t){Qn(t)}),d(e))o(t.getData(),e);else if(C(e))for(var u=v(e),c=0;c<u.length;c++)o(t.getData(u[c]),e[u[c]]);s.push(t),av(t).isBlured=!0}}),l.eachComponent(function(t,e){"series"!==t&&(t=n.getViewOfComponentModel(e))&&t.blurSeries&&t.blurSeries(s,l)}))}function vo(t,e,i){var n;null!=t&&null!=e&&(t=i.getModel().getComponent(t,e))&&(av(t).isBlured=!0,n=i.getViewOfComponentModel(t))&&n.focusBlurEnabled&&n.group.traverse(function(t){Qn(t)})}function _o(t,e,i,n){var o={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==i)return o;if(!(t=n.getModel().getComponent(t,e)))return o;if(!(e=n.getViewOfComponentModel(t))||!e.findHighDownDispatchers)return o;for(var r,a=e.findHighDownDispatchers(i),s=0;s<a.length;s++)if("self"===iv(a[s]).focus){r=!0;break}return{focusSelf:r,dispatchers:a}}function xo(t){f(t.getAllData(),function(e){var i=e.data,n=e.type;i.eachItemGraphicEl(function(e,i){(t.isSelected(i,n)?po:fo)(e)})})}function wo(t,e,i){To(t,!0),io(t,ao),t=iv(t),null!=e?(t.focus=e,t.blurScope=i):t.focus&&(t.focus=null)}function bo(t,e,i,n){n?To(t,!1):wo(t,e,i)}function So(t,e,i,n){i=i||"itemStyle";for(var o=0;o<vv.length;o++){var r=vv[o],a=e.getModel([r,i]);t.ensureState(r).style=n?n(a):a[_v[i]]()}}function To(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 Co(t){return!(!t||!t.__highDownDispatcher)}function Mo(t){return(t=t.type)===fv||t===gv||t===yv}function Io(t){return(t=t.type)===pv||t===dv}function ko(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ao(t,e){return(t[0]*e[0]+t[1]*e[1])/(ko(t)*ko(e))}function Do(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Ao(t,e))}function Po(t,e,i,n,o,r,a,s,l,h,u){var l=l*(Iv/180),c=Mv(l)*(t-i)/2+Cv(l)*(e-n)/2,p=-1*Cv(l)*(t-i)/2+Mv(l)*(e-n)/2,d=c*c/(a*a)+p*p/(s*s),d=(1<d&&(a*=Tv(d),s*=Tv(d)),(o===r?-1:1)*Tv((a*a*(s*s)-a*a*(p*p)-s*s*(c*c))/(a*a*(p*p)+s*s*(c*c)))||0),o=d*a*p/s,d=d*-s*c/a,t=(t+i)/2+Mv(l)*o-Cv(l)*d,i=(e+n)/2+Cv(l)*o+Mv(l)*d,e=Do([1,0],[(c-o)/a,(p-d)/s]),n=[(c-o)/a,(p-d)/s],c=[(-1*c-o)/a,(-1*p-d)/s],o=Do(n,c);Ao(n,c)<=-1&&(o=Iv),(o=1<=Ao(n,c)?0:o)<0&&(p=Math.round(o/Iv*1e6)/1e6,o=2*Iv+p%2*Iv),u.addData(h,t,i,a,s,e,o,l,r)}function Oo(){return null!==Dv&&Dv.apply(this,arguments)||this}function Lo(t){return null!=t.setData}function Eo(t,e){var i=function(t){var e=new Mm;if(t){var i,n=0,o=0,r=n,a=o,s=Mm.CMD,l=t.match(kv);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(Av)||[],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=o,M=void 0,I=void 0;switch(c){case"l":n+=d[y++],o+=d[y++],p=s.L,e.addData(p,n,o);break;case"L":n=d[y++],o=d[y++],p=s.L,e.addData(p,n,o);break;case"m":n+=d[y++],o+=d[y++],p=s.M,e.addData(p,n,o),r=n,a=o,c="l";break;case"M":n=d[y++],o=d[y++],p=s.M,e.addData(p,n,o),r=n,a=o,c="L";break;case"h":n+=d[y++],p=s.L,e.addData(p,n,o);break;case"H":n=d[y++],p=s.L,e.addData(p,n,o);break;case"v":o+=d[y++],p=s.L,e.addData(p,n,o);break;case"V":o=d[y++],p=s.L,e.addData(p,n,o);break;case"C":p=s.C,e.addData(p,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),n=d[y-2],o=d[y-1];break;case"c":p=s.C,e.addData(p,d[y++]+n,d[y++]+o,d[y++]+n,d[y++]+o,d[y++]+n,d[y++]+o),n+=d[y-2],o+=d[y-1];break;case"S":m=n,v=o,M=e.len(),I=e.data,i===s.C&&(m+=n-I[M-4],v+=o-I[M-3]),p=s.C,T=d[y++],C=d[y++],n=d[y++],o=d[y++],e.addData(p,m,v,T,C,n,o);break;case"s":m=n,v=o,M=e.len(),I=e.data,i===s.C&&(m+=n-I[M-4],v+=o-I[M-3]),p=s.C,T=n+d[y++],C=o+d[y++],n+=d[y++],o+=d[y++],e.addData(p,m,v,T,C,n,o);break;case"Q":T=d[y++],C=d[y++],n=d[y++],o=d[y++],p=s.Q,e.addData(p,T,C,n,o);break;case"q":T=d[y++]+n,C=d[y++]+o,n+=d[y++],o+=d[y++],p=s.Q,e.addData(p,T,C,n,o);break;case"T":m=n,v=o,M=e.len(),I=e.data,i===s.Q&&(m+=n-I[M-4],v+=o-I[M-3]),n=d[y++],o=d[y++],p=s.Q,e.addData(p,m,v,n,o);break;case"t":m=n,v=o,M=e.len(),I=e.data,i===s.Q&&(m+=n-I[M-4],v+=o-I[M-3]),n+=d[y++],o+=d[y++],p=s.Q,e.addData(p,m,v,n,o);break;case"A":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],Po(T=n,C=o,n=d[y++],o=d[y++],b,S,_,x,w,p=s.A,e);break;case"a":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],Po(T=n,C=o,n+=d[y++],o+=d[y++],b,S,_,x,w,p=s.A,e)}}"z"!==c&&"Z"!==c||(p=s.Z,e.addData(p),n=r,o=a),i=p}e.toStatic()}}return e}(t),t=l({},e);return t.buildPath=function(t){var e;Lo(t)?(t.setData(i.data),(e=t.getContext())&&t.rebuildPath(e,1)):i.rebuildPath(e=t,1)},t.applyTransform=function(t){var e=i,n=t;if(n){for(var o,r,a,s,l=e.data,h=e.len(),u=xv.M,c=xv.C,p=xv.L,d=xv.R,f=xv.A,g=xv.Q,y=0,m=0;y<h;){switch(o=l[y++],m=y,r=0,o){case u:case p:r=1;break;case c:r=3;break;case g:r=2;break;case f:var v=n[4],_=n[5],x=bv(n[0]*n[0]+n[1]*n[1]),w=bv(n[2]*n[2]+n[3]*n[3]),b=Sv(-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++],at(s,s,n),l[m++]=s[0],l[m++]=s[1],s[0]+=l[y++],s[1]+=l[y++],at(s,s,n),l[m++]=s[0],l[m++]=s[1]}for(a=0;a<r;a++){var S=wv[a];S[0]=l[y++],S[1]=l[y++],at(S,S,n),l[m++]=S[0],l[m++]=S[1]}}e.increaseVersion()}this.dirtyShape()},t}function Ro(t){return Pv.call(this,t)||this}function No(t){return Rv.call(this,t)||this}function Bo(t,e,i,n,o,r,a){var s=t-i,l=e-n,a=(a?r:-r)/Gv(s*s+l*l),l=a*l,a=-a*s,s=t+l,t=e+a,e=i+l,i=n+a,n=(s+e)/2,h=(t+i)/2,u=e-s,c=i-t,p=u*u+c*c,r=o-r,s=s*i-e*t,i=(c<0?-1:1)*Gv(jv(0,r*r*p-s*s)),e=(s*c-u*i)/p,t=(-s*u-c*i)/p,d=(s*c+u*i)/p,s=(-s*u+c*i)/p,u=e-n,c=t-h,i=d-n,p=s-h;return i*i+p*p<u*u+c*c&&(e=d,t=s),{cx:e,cy:t,x0:-l,y0:-a,x1:e*(o/r-1),y1:t*(o/r-1)}}function zo(t,e){var i,n,o,r,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=jv(e.r,0),E=jv(e.r0||0,0),R=0<L;(R||0<E)&&(R||(L=E,E=0),L<E&&(R=L,L=E,E=R),R=e.startAngle,i=e.endAngle,isNaN(R)||isNaN(i)||(n=e.cx,o=e.cy,r=!!e.clockwise,m=Uv(i-R),Zv<(a=Vv<m&&m%Vv)&&(m=a),Zv<L?Vv-Zv<m?(t.moveTo(n+L*Hv(R),o+L*Yv(R)),t.arc(n,o,L,R,i,!r),Zv<E&&(t.moveTo(n+E*Hv(i),o+E*Yv(i)),t.arc(n,o,E,i,R,r))):(T=S=b=w=_=v=c=u=k=I=M=C=h=l=s=a=void 0,p=L*Hv(R),d=L*Yv(R),f=E*Hv(i),g=E*Yv(i),(y=Zv<m)&&((e=e.cornerRadius)&&(a=(e=function(t){if(x(t)){var e=t.length;if(!e)return t;e=1===e?[t[0],t[0],0,0]:2===e?[t[0],t[0],t[1],t[1]]:3===e?t.concat(t[2]):t}else e=[t,t,t,t];return e}(e))[0],s=e[1],l=e[2],h=e[3]),e=Uv(L-E)/2,C=qv(e,l),M=qv(e,h),I=qv(e,a),k=qv(e,s),v=u=jv(C,M),_=c=jv(I,k),Zv<u||Zv<c)&&(w=L*Hv(i),b=L*Yv(i),S=E*Hv(R),T=E*Yv(R),m<Fv)&&(e=function(t,e,i,n,o,r,a,s){var l=(s-=r)*(i-=t)-(a-=o)*(n-=e);if(!(l*l<Zv))return[t+(l=(a*(e-r)-s*(t-o))/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/Yv(Wv((C*I+M*k)/(Gv(C*C+M*M)*Gv(I*I+k*k)))/2),C=Gv(e[0]*e[0]+e[1]*e[1]),v=qv(u,(L-C)/(1+m)),_=qv(c,(E-C)/(m-1))),y?Zv<v?(A=qv(l,v),D=qv(h,v),P=Bo(S,T,p,d,L,A,r),O=Bo(w,b,f,g,L,D,r),t.moveTo(n+P.cx+P.x0,o+P.cy+P.y0),v<u&&A===D?t.arc(n+P.cx,o+P.cy,v,Xv(P.y0,P.x0),Xv(O.y0,O.x0),!r):(0<A&&t.arc(n+P.cx,o+P.cy,A,Xv(P.y0,P.x0),Xv(P.y1,P.x1),!r),t.arc(n,o,L,Xv(P.cy+P.y1,P.cx+P.x1),Xv(O.cy+O.y1,O.cx+O.x1),!r),0<D&&t.arc(n+O.cx,o+O.cy,D,Xv(O.y1,O.x1),Xv(O.y0,O.x0),!r))):(t.moveTo(n+p,o+d),t.arc(n,o,L,R,i,!r)):t.moveTo(n+p,o+d),Zv<E&&y?Zv<_?(A=qv(a,_),P=Bo(f,g,w,b,E,-(D=qv(s,_)),r),O=Bo(p,d,S,T,E,-A,r),t.lineTo(n+P.cx+P.x0,o+P.cy+P.y0),_<c&&A===D?t.arc(n+P.cx,o+P.cy,_,Xv(P.y0,P.x0),Xv(O.y0,O.x0),!r):(0<D&&t.arc(n+P.cx,o+P.cy,D,Xv(P.y0,P.x0),Xv(P.y1,P.x1),!r),t.arc(n,o,E,Xv(P.cy+P.y1,P.cx+P.x1),Xv(O.cy+O.y1,O.cx+O.x1),r),0<A&&t.arc(n+O.cx,o+O.cy,A,Xv(O.y1,O.x1),Xv(O.y0,O.x0),!r))):(t.lineTo(n+f,o+g),t.arc(n,o,E,i,R,r)):t.lineTo(n+f,o+g)):t.moveTo(n,o),t.closePath()))}function Fo(t){return zv.call(this,t)||this}function Vo(t){return $v.call(this,t)||this}function Yo(t,e,i){var n=e.smooth,o=e.points;if(o&&2<=o.length){if(n)for(var r=function(t,e,i,n){var o,r,a=[],s=[],l=[],h=[];if(n){for(var u=[1/0,1/0],c=[-1/0,-1/0],p=0,d=t.length;p<d;p++)st(u,u,t[p]),lt(c,c,t[p]);st(u,u,n[0]),lt(c,c,n[1])}for(p=0,d=t.length;p<d;p++){var f=t[p];if(i)o=t[p?p-1:d-1],r=t[(p+1)%d];else{if(0===p||p===d-1){a.push(K(t[p]));continue}o=t[p-1],r=t[p+1]}$(s,r,o),et(s,s,e);var g=nt(f,o),y=nt(f,r),m=g+y,m=(0!==m&&(g/=m,y/=m),et(l,s,-g),et(h,s,y),Q([],f,l)),g=Q([],f,h);n&&(lt(m,m,u),st(m,m,c),lt(g,g,u),st(g,g,c)),a.push(m),a.push(g)}return i&&a.push(a.shift()),a}(o,n,i,e.smoothConstraint),a=(t.moveTo(o[0][0],o[0][1]),o.length),s=0;s<(i?a:a-1);s++){var l=r[2*s],h=r[2*s+1],u=o[(s+1)%a];t.bezierCurveTo(l[0],l[1],h[0],h[1],u[0],u[1])}else{t.moveTo(o[0][0],o[0][1]);for(var s=1,c=o.length;s<c;s++)t.lineTo(o[s][0],o[s][1])}i&&t.closePath()}}function Ho(t){return e_.call(this,t)||this}function Wo(t){return o_.call(this,t)||this}function Xo(t){return s_.call(this,t)||this}function Uo(t,e,i){var n=t.cpx2,o=t.cpy2;return null!=n||null!=o?[(i?Bt:Nt)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?Bt:Nt)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?Wt:Ht)(t.x1,t.cpx1,t.x2,e),(i?Wt:Ht)(t.y1,t.cpy1,t.y2,e)]}function Go(t){return d_.call(this,t)||this}function jo(t){return g_.call(this,t)||this}function qo(){var t=null!==v_&&v_.apply(this,arguments)||this;return t.type="compound",t}function Zo(t){this.colorStops=t||[]}function Ko(t,e,i,n,o,r){return o=w_.call(this,o)||this,o.x=null==t?0:t,o.y=null==e?0:e,o.x2=null==i?1:i,o.y2=null==n?0:n,o.type="linear",o.global=r||!1,o}function Qo(t,e,i,n,o){return n=S_.call(this,n)||this,n.x=null==t?.5:t,n.y=null==e?.5:e,n.r=null==i?.5:i,n.type="radial",n.global=o||!1,n}function $o(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new ny;for(i=0;i<2;i++)this._axes[i]=new ny;t&&this.fromBoundingRect(t,e)}function Jo(){var t=null!==T_&&T_.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}function tr(t,e,i,n,o,r,a){var s,l,h,u,c,p,d=!1,f=(w(o)?(a=r,r=o,o=null):C(o)&&(r=o.cb,a=o.during,d=o.isFrom,l=o.removeOpt,o=o.dataIndex),"leave"===t),g=(f||e.stopAnimation("leave"),p=t,s=o,l=f?l||{}:null,n=(g=n)&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,o):null,g&&g.ecModel&&(h=(h=g.ecModel.getUpdatePayload())&&h.animation),p="update"===p,g&&g.isAnimationEnabled()?(c=u=o=void 0,c=l?(o=E(l.duration,200),u=E(l.easing,"cubicOut"),0):(o=g.getShallow(p?"animationDurationUpdate":"animationDuration"),u=g.getShallow(p?"animationEasingUpdate":"animationEasing"),g.getShallow(p?"animationDelayUpdate":"animationDelay")),w(c=h&&(null!=h.duration&&(o=h.duration),null!=h.easing&&(u=h.easing),null!=h.delay)?h.delay:c)&&(c=c(s,n)),{duration:(o=w(o)?o(s):o)||0,delay:c,easing:u}):null);g&&0<g.duration?(p={duration:g.duration,delay:g.delay||0,easing:g.easing,done:r,force:!!r||!!a,setToFinal:!f,scope:t,during:a},d?e.animateFrom(i,p):e.animateTo(i,p)):(e.stopAnimation(),d||e.attr(i),a&&a(1),r&&r())}function er(t,e,i,n,o,r){tr("update",t,e,i,n,o,r)}function ir(t,e,i,n,o,r){tr("enter",t,e,i,n,o,r)}function nr(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 or(t,e,i,n,o,r){nr(t)||tr("leave",t,e,i,n,o,r)}function rr(t,e,i,n){t.removeTextContent(),t.removeTextGuideLine(),or(t,{style:{opacity:0}},e,i,n)}function ar(t){return Bm.extend(t)}function sr(t,e){return R_(t,e)}function lr(t,e){E_[t]=e}function hr(t){if(E_.hasOwnProperty(t))return E_[t]}function ur(t,e,i,n){return t=new Ov(Eo(t,e)),i&&("center"===n&&(i=pr(i,t.getBoundingRect())),fr(t,i)),t}function cr(t,e,i){var n=new Wm({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(pr(e,t)))}});return n}function pr(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 dr(t,e){for(var i=[],n=t.length,o=0;o<n;o++){var r=t[o];i.push(r.getUpdatedPathProxy(!0))}return(e=new Bm(e)).createPathProxy(),e.buildPath=function(t){var e;Lo(t)&&(t.appendPath(i),e=t.getContext())&&t.rebuildPath(e,1)},e}function fr(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}function gr(t,e){for(var i=Xe([]);t&&t!==e;)Ge(i,t.getLocalTransform(),i),t=t.parent;return i}function yr(t,e,i){return e&&!d(e)&&(e=ty.getLocalTransform(e)),at([],t,e=i?Ke([],e):e)}function mr(t){return!t.isGroup}function vr(t,e,i){function n(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=l({},t.shape)),e}var o,r;t&&e&&(r={},t.traverse(function(t){mr(t)&&t.anid&&(r[t.anid]=t)}),o=r,e.traverse(function(t){var e,r;mr(t)&&t.anid&&(e=o[t.anid])&&(r=n(t),t.attr(n(e)),er(t,r,i,iv(t).dataIndex))}))}function _r(t,e){return g(t,function(t){var i=t[0],i=O_(i,e.x),t=(i=L_(i,e.x+e.width),t[1]),t=O_(t,e.y);return[i,L_(t,e.y+e.height)]})}function xr(t,e){var i=O_(t.x,e.x),n=L_(t.x+t.width,e.x+e.width),o=O_(t.y,e.y),t=L_(t.y+t.height,e.y+e.height);if(i<=n&&o<=t)return{x:i,y:o,width:n-i,height:t-o}}function wr(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 Wm(e)):ur(t.replace("path://",""),e,i,"center")}function br(t,e,i,n,o,r,a,s){var l,i=i-t,n=n-e,a=a-o,s=s-r,h=a*n-i*s;return!((l=h)<=1e-6&&-1e-6<=l||(o=((l=t-o)*n-i*(t=e-r))/h)<0||1<o||(n=(l*s-a*t)/h)<0||1<n)}function Sr(t){var e=t.itemTooltipOption,i=t.componentModel,n=t.itemName,e=b(e)?{formatter:e}:e,o=i.mainType,i=i.componentIndex,r={componentType:o,name:n,$vars:["name"]},a=(r[o+"Index"]=i,t.formatterParamsExtra),t=(a&&f(v(a),function(t){j(r,t)||(r[t]=a[t],r.$vars.push(t))}),iv(t.el));t.componentMainType=o,t.componentIndex=i,t.tooltipConfig={name:n,option:h({content:n,formatterParams:r},e)}}function Tr(t,e){var i;(i=t.isGroup?e(t):i)||t.traverse(e)}function Cr(t,e){if(t)if(x(t))for(var i=0;i<t.length;i++)Tr(t[i],e);else Tr(t,e)}function Mr(t,e){for(var i=0;i<uv.length;i++){var n=uv[i],o=e[n],n=t.ensureState(n);n.style=n.style||{},n.style.text=o}var r=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(r,!0)}function Ir(t,e,i){for(var n,o=t.labelFetcher,r=t.labelDataIndex,a=t.labelDimIndex,s=e.normal,l={normal:n=null==(n=o?o.getFormattedLabel(r,"normal",null,a,s&&s.get("formatter"),null!=i?{interpolatedValue:i}:null):n)?w(t.defaultText)?t.defaultText(r,t,i):t.defaultText:n},h=0;h<uv.length;h++){var u=uv[h],c=e[u];l[u]=E(o?o.getFormattedLabel(r,u,null,a,c&&c.get("formatter")):null,n)}return l}function kr(t,e,i,n){i=i||z_;for(var o=t instanceof $m,r=!1,a=0;a<cv.length;a++)if((p=e[cv[a]])&&p.getShallow("show")){r=!0;break}var s=o?t:t.getTextContent();if(r){o||(s||(s=new $m,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=Ir(i,e),h=e.normal,u=!!h.getShallow("show"),c=Dr(h,n&&n.normal,i,!1,!o);for(c.text=l.normal,o||t.setTextConfig(Pr(h,i,!1)),a=0;a<uv.length;a++){var p,d,f,g=uv[a];(p=e[g])&&(d=s.ensureState(g),(f=!!E(p.getShallow("show"),u))!=u&&(d.ignore=!f),d.style=Dr(p,n&&n[g],i,!0,!o),d.style.text=l[g],o||(t.ensureState(g).textConfig=Pr(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&&(H_(s).setLabelText=function(t){t=Ir(i,e,t),Mr(s,t)})}else s&&(s.ignore=!0);t.dirty()}function Ar(t,e){for(var i={normal:t.getModel(e=e||"label")},n=0;n<uv.length;n++){var o=uv[n];i[o]=t.getModel([o,e])}return i}function Dr(t,e,i,n,o){var r,a={},s=a,h=t,u=i,c=n,p=o;u=u||z_;var d,t=h.ecModel,f=t&&t.option.textStyle,g=function(t){for(var e;t&&t!==t.ecModel;){var i=(t.option||z_).rich;if(i){e=e||{};for(var n=v(i),o=0;o<n.length;o++){e[n[o]]=1}}t=t.parentModel}return e}(h);if(g)for(var y in d={},g)g.hasOwnProperty(y)&&(r=h.getModel(["rich",y]),Or(d[y]={},r,f,u,c,p,!1,!0));return d&&(s.rich=d),(t=h.get("overflow"))&&(s.overflow=t),null!=(t=h.get("minMargin"))&&(s.margin=t),Or(s,h,f,u,c,p,!0,!1),e&&l(a,e),a}function Pr(t,e,i){e=e||{};var n={},o=t.getShallow("rotate"),r=E(t.getShallow("distance"),i?null:5),a=t.getShallow("offset"),i=t.getShallow("position")||(i?null:"inside");return null!=(i="outside"===i?e.defaultOutsidePosition||"top":i)&&(n.position=i),null!=a&&(n.offset=a),null!=o&&(o*=Math.PI/180,n.rotation=o),null!=r&&(n.distance=r),n.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",n}function Or(t,e,i,n,o,r,a,s){i=!o&&i||z_;var l=n&&n.inheritColor,h=e.getShallow("color"),u=e.getShallow("textBorderColor"),c=E(e.getShallow("opacity"),i.opacity),h=("inherit"!==h&&"auto"!==h||(h=l||null),"inherit"!==u&&"auto"!==u||(u=l||null),r||(h=h||i.color,u=u||i.textBorderColor),null!=h&&(t.fill=h),null!=u&&(t.stroke=u),E(e.getShallow("textBorderWidth"),i.textBorderWidth)),u=(null!=h&&(t.lineWidth=h),E(e.getShallow("textBorderType"),i.textBorderType)),h=(null!=u&&(t.lineDash=u),E(e.getShallow("textBorderDashOffset"),i.textBorderDashOffset));null!=h&&(t.lineDashOffset=h),null!=(c=o||null!=c||s?c:n&&n.defaultOpacity)&&(t.opacity=c),o||r||null==t.fill&&n.inheritColor&&(t.fill=n.inheritColor);for(var p=0;p<F_.length;p++){var d=F_[p];null!=(f=E(e.getShallow(d),i[d]))&&(t[d]=f)}for(var p=0;p<V_.length;p++)d=V_[p],null!=(f=e.getShallow(d))&&(t[d]=f);if(null==t.verticalAlign&&null!=(u=e.getShallow("baseline"))&&(t.verticalAlign=u),!a||!n.disableBox){for(p=0;p<Y_.length;p++){var f,d=Y_[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 Lr(t,e,i,n,o){var r,a,s,l=H_(t);l.valueAnimation&&l.prevValue!==l.value&&(r=l.defaultInterpolatedText,a=E(l.interpolatedValue,l.prevValue),s=l.value,t.percent=0,(null==l.prevValue?ir:er)(t,{percent:1},n,e,null,function(n){var h=tn(i,l.precision,a,s,n),n=(l.interpolatedValue=1===n?null:h,Ir({labelDataIndex:e,labelFetcher:o,defaultText:r?r(h):h+""},l.statesModels,h));Mr(t,n)}))}function Er(){}function Rr(){}function Nr(){}function Br(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}function zr(t){return[t||"",tx++].join("_")}function Fr(t,e){t=t.toUpperCase(),rx[t]=new J_(e),ox[t]=e}function Vr(t,e){return"0000".substr(0,e-(t+="").length)+t}function Yr(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 Hr(t,e,i,n){var t=ki(t),o=t[Ur(i)](),r=t[Gr(i)]()+1,a=Math.floor((r-1)/4)+1,s=t[jr(i)](),l=t["get"+(i?"UTC":"")+"Day"](),h=t[qr(i)](),u=(h-1)%12+1,c=t[Zr(i)](),p=t[Kr(i)](),t=t[Qr(i)](),i=(n instanceof J_?n:rx[n||ax]||rx[nx]).getModel("time"),n=i.get("month"),d=i.get("monthAbbr"),f=i.get("dayOfWeek"),i=i.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,a+"").replace(/{MMMM}/g,n[r-1]).replace(/{MMM}/g,d[r-1]).replace(/{MM}/g,Vr(r,2)).replace(/{M}/g,r+"").replace(/{dd}/g,Vr(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,f[l]).replace(/{ee}/g,i[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Vr(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,Vr(u+"",2)).replace(/{h}/g,u+"").replace(/{mm}/g,Vr(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Vr(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Vr(t,3)).replace(/{S}/g,t+"")}function Wr(t,e){var t=ki(t),i=t[Gr(e)]()+1,n=t[jr(e)](),o=t[qr(e)](),r=t[Zr(e)](),a=t[Kr(e)](),t=0===t[Qr(e)](),e=t&&0===a,a=e&&0===r,r=a&&0===o,o=r&&1===n;return o&&1===i?"year":o?"month":r?"day":a?"hour":e?"minute":t?"second":"millisecond"}function Xr(t,e,i){var n=T(t)?ki(t):t;switch(e=e||Wr(t,i)){case"year":return n[Ur(i)]();case"half-year":return 6<=n[Gr(i)]()?1:0;case"quarter":return Math.floor((n[Gr(i)]()+1)/4);case"month":return n[Gr(i)]();case"day":return n[jr(i)]();case"half-day":return n[qr(i)]()/24;case"hour":return n[qr(i)]();case"minute":return n[Zr(i)]();case"second":return n[Kr(i)]();case"millisecond":return n[Qr(i)]()}}function Ur(t){return t?"getUTCFullYear":"getFullYear"}function Gr(t){return t?"getUTCMonth":"getMonth"}function jr(t){return t?"getUTCDate":"getDate"}function qr(t){return t?"getUTCHours":"getHours"}function Zr(t){return t?"getUTCMinutes":"getMinutes"}function Kr(t){return t?"getUTCSeconds":"getSeconds"}function Qr(t){return t?"getUTCMilliseconds":"getMilliseconds"}function $r(t){return t?"setUTCMonth":"setMonth"}function Jr(t){return t?"setUTCDate":"setDate"}function ta(t){return t?"setUTCHours":"setHours"}function ea(t){return t?"setUTCMinutes":"setMinutes"}function ia(t){return t?"setUTCSeconds":"setSeconds"}function na(t){return t?"setUTCMilliseconds":"setMilliseconds"}function oa(t){var e;return Li(t)?(e=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<e.length?"."+e[1]:""):b(t)?t:"-"}function ra(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),t=e?t&&t.charAt(0).toUpperCase()+t.slice(1):t}function aa(t){return null==t?"":(t+"").replace(mx,function(t,e){return vx[e]})}function sa(t,e,i){function n(t){return t&&F(t)?t:"-"}function o(t){return null!=t&&!isNaN(t)&&isFinite(t)}var r="time"===e,a=t instanceof Date;if(r||a){var r=r?ki(t):t;if(!isNaN(+r))return Hr(r,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",i);if(a)return"-"}return"ordinal"===e?S(t)?n(t):T(t)&&o(t)?t+"":"-":o(r=Oi(t))?oa(r):S(t)?n(t):"boolean"==typeof t?t+"":"-"}function la(t,e){return"{"+t+(null==e?"":e)+"}"}function ha(t,e,i){var n=(e=x(e)?e:[e]).length;if(!n)return"";for(var o=e[0].$vars||[],r=0;r<o.length;r++){var a=_x[r];t=t.replace(la(a),la(a,0))}for(var s=0;s<n;s++)for(var l=0;l<o.length;l++){var h=e[s][o[l]];t=t.replace(la(_x[l],s),i?aa(h):h)}return t}function ua(t,e){var t=b(t)?{color:t,extraCssText:e}:t||{},i=t.color,n=t.type,o=(e=t.extraCssText,t.renderMode||"html");return i?"html"===o?"subItem"===n?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+aa(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+aa(i)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===n?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function ca(t,e){return e=e||"transparent",b(t)?t:C(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function pa(t,e){var i;"_blank"===e||"blank"===e?((i=window.open()).opener=null,i.location.href=t):window.open(t,e)}function da(t,e,i,n,o){var r=0,a=0,s=(null==n&&(n=1/0),null==o&&(o=1/0),0);e.eachChild(function(l,h){var u,c,p,d=l.getBoundingRect(),h=e.childAt(h+1),h=h&&h.getBoundingRect();s="horizontal"===t?(c=d.width+(h?-h.x+d.x:0),n<(u=r+c)||l.newline?(r=0,u=c,a+=s+i,d.height):Math.max(s,d.height)):(c=d.height+(h?-h.y+d.y:0),o<(p=a+c)||l.newline?(r+=s+i,a=0,p=c,d.width):Math.max(s,d.width)),l.newline||(l.x=r,l.y=a,l.markRedraw(),"horizontal"===t?r=u+i:a=p+i)})}function fa(t,e,i){i=yx(i||0);var n=e.width,o=e.height,r=wi(t.left,n),a=wi(t.top,o),e=wi(t.right,n),s=wi(t.bottom,o),l=wi(t.width,n),h=wi(t.height,o),u=i[2]+i[0],c=i[1]+i[3],p=t.aspect;switch(isNaN(l)&&(l=n-e-c-r),isNaN(h)&&(h=o-s-u-a),null!=p&&(isNaN(l)&&isNaN(h)&&(n/o<p?l=.8*n:h=.8*o),isNaN(l)&&(l=p*h),isNaN(h))&&(h=l/p),isNaN(r)&&(r=n-e-l-c),isNaN(a)&&(a=o-s-h-u),t.left||t.right){case"center":r=n/2-l/2-i[3];break;case"right":r=n-l-c}switch(t.top||t.bottom){case"middle":case"center":a=o/2-h/2-i[0];break;case"bottom":a=o-h-u}return r=r||0,a=a||0,isNaN(l)&&(l=n-c-r-(e||0)),isNaN(h)&&(h=o-u-a-(s||0)),p=new py(r+i[3],a+i[0],l,h),p.margin=i,p}function ga(t){return t=t.layoutMode||t.constructor.layoutMode,C(t)?t:t?{type:t}:null}function ya(t,e,i){function n(i,n){var a={},l=0,h={},u=0;if(xx(i,function(e){h[e]=t[e]}),xx(i,function(t){o(e,t)&&(a[t]=h[t]=e[t]),r(a,t)&&l++,r(h,t)&&u++}),s[n])r(e,i[1])?h[i[2]]=null:r(e,i[2])&&(h[i[1]]=null);else if(2!==u&&l){if(!(2<=l))for(var c=0;c<i.length;c++){var p=i[c];if(!o(a,p)&&o(t,p)){a[p]=t[p];break}}return a}return h}function o(t,e){return t.hasOwnProperty(e)}function r(t,e){return null!=t[e]&&"auto"!==t[e]}function a(t,e,i){xx(t,function(t){e[t]=i[t]})}var s=i&&i.ignoreSize,i=(x(s)||(s=[s,s]),n(Sx[0],0)),l=n(Sx[1],1);a(Sx[0],t,i),a(Sx[1],t,l)}function ma(t){return e={},(i=t)&&e&&xx(bx,function(t){i.hasOwnProperty(t)&&(e[t]=i[t])}),e;var e,i}function va(t,e,i){return t=Cx.call(this,t,e,i)||this,t.uid=zr("ec_cpt_model"),t}function _a(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function xa(t,e,i){function n(t,e,i){for(var n=0;n<i;n++)t.push(e+n)}function o(t){return t=t.dimsDef,t?t.length:1}var r,a,s,l,h,u={},c=wa(e);return c&&t&&(r=[],a=[],e=e.ecModel,e=Gx(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=o(e)),u[e.name]=[]}),h=e.get(c)||e.set(c,{categoryWayDim:l,valueWayDim:0}),f(t,function(t,e){var i,l=t.name,t=o(t);null==s?(i=h.valueWayDim,n(u[l],i,t),n(a,i,t),h.valueWayDim+=t):s===e?(n(u[l],0,t),n(r,0,t)):(i=h.categoryWayDim,n(u[l],i,t),n(a,i,t),h.categoryWayDim+=t)}),r.length&&(u.itemName=r),a.length)&&(u.seriesName=a),u}function wa(t){if(!t.get("data",!0))return $i(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Oy).models[0]}function ba(t,e){function i(t){var e=b(t);return null!=t&&isFinite(t)&&""!==t?e?Ux.Might:Ux.Not:e&&"-"!==t?Ux.Must:void 0}var n,o,r,a=t.data,s=t.sourceFormat,l=t.seriesLayoutBy,h=t.dimensionsDefine,u=t.startIndex,c=e;if(!I(a)){if(h&&(C(h=h[c])?(o=h.name,r=h.type):b(h)&&(o=h)),null!=r)return"ordinal"===r?Ux.Must:Ux.Not;if(s===zx){var p=a;if(l===Xx){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===Fx){var y=a;if(!o)return Ux.Not;for(f=0;f<y.length&&f<5;f++)if((v=y[f])&&null!=(n=i(v[o])))return n}else if(s===Vx){if(h=a,!o)return Ux.Not;if(!(d=h[o])||I(d))return Ux.Not;for(f=0;f<d.length&&f<5;f++)if(null!=(n=i(d[f])))return n}else if(s===Bx)for(var m=a,f=0;f<m.length&&f<5;f++){var v,_=Vi(v=m[f]);if(!x(_))return Ux.Not;if(null!=(n=i(_[c])))return n}}return Ux.Not}function Sa(){}function Ta(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 Ca(){return null!==Ex&&Ex.apply(this,arguments)||this}function Ma(t,e,i){var n,o;return x(e)?(n=W(),f(e,function(t){null!=t&&null!=Xi(t,null)&&n.set(t,!0)}),m(i,function(e){return e&&n.get(e[t])})):(o=Xi(e,null),m(i,function(e){return e&&null!=o&&e[t]===o}))}function Ia(t,e){return e.hasOwnProperty("subType")?m(t,function(t){return t&&t.subType===e.subType}):t}function ka(t){var e=W();return t&&f(zi(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}function Aa(t){f(tw,function(e){this[e]=If(t[e],t)},this)}function Da(){this._coordinateSystems=[]}function Pa(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}function Oa(t){var e=t&&t.itemStyle;if(e)for(var i=0,n=sw.length;i<n;i++){var o=sw[i],r=e.normal,a=e.emphasis;r&&r[o]&&(t[o]=t[o]||{},t[o].normal?s(t[o].normal,r[o]):t[o].normal=r[o],r[o]=null),a&&a[o]&&(t[o]=t[o]||{},t[o].emphasis?s(t[o].emphasis,a[o]):t[o].emphasis=a[o],a[o]=null)}}function La(t,e,i){var n,o;t&&t[e]&&(t[e].normal||t[e].emphasis)&&(n=t[e].normal,o=t[e].emphasis,n&&(i?(t[e].normal=t[e].emphasis=null,h(t[e],n)):t[e]=n),o)&&(t.emphasis=t.emphasis||{},(t.emphasis[e]=o).focus&&(t.emphasis.focus=o.focus),o.blurScope)&&(t.emphasis.blurScope=o.blurScope)}function Ea(t){La(t,"itemStyle"),La(t,"lineStyle"),La(t,"areaStyle"),La(t,"label"),La(t,"labelLine"),La(t,"upperLabel"),La(t,"edgeLabel")}function Ra(t,e){var i=aw(t)&&t[e],n=aw(i)&&i.textStyle;if(n)for(var o=0,r=Dy.length;o<r;o++){var a=Dy[o];n.hasOwnProperty(a)&&(i[a]=n[a])}}function Na(t){t&&(Ea(t),Ra(t,"label"),t.emphasis)&&Ra(t.emphasis,"label")}function Ba(t){return x(t)?t:t?[t]:[]}function za(t){return(x(t)?t[0]:t)||{}}function Fa(t,e){rw(Ba(t.series),function(t){if(aw(t)&&aw(t)){Oa(t),Ea(t),Ra(t,"label"),Ra(t,"upperLabel"),Ra(t,"edgeLabel"),t.emphasis&&(Ra(t.emphasis,"label"),Ra(t.emphasis,"upperLabel"),Ra(t.emphasis,"edgeLabel"));var e=t.markPoint,i=(e&&(Oa(e),Na(e)),t.markLine),n=(i&&(Oa(i),Na(i)),t.markArea),o=(n&&Na(n),t.data);if("graph"===t.type){var o=o||t.nodes,r=t.links||t.edges;if(r&&!I(r))for(var a=0;a<r.length;a++)Na(r[a]);f(t.categories,function(t){Ea(t)})}if(o&&!I(o))for(a=0;a<o.length;a++)Na(o[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)Na(s[a]);if((i=t.markLine)&&i.data)for(var l=i.data,a=0;a<l.length;a++)x(l[a])?(Na(l[a][0]),Na(l[a][1])):Na(l[a]);"gauge"===t.type?(Ra(t,"axisLabel"),Ra(t,"title"),Ra(t,"detail")):"treemap"===t.type?(La(t.breadcrumb,"itemStyle"),f(t.levels,function(t){Ea(t)})):"tree"===t.type&&Ea(t.leaves)}});var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),rw(i,function(e){rw(Ba(t[e]),function(t){t&&(Ra(t,"axisLabel"),Ra(t.axisPointer,"label"))})}),rw(Ba(t.parallel),function(t){t=t&&t.parallelAxisDefault,Ra(t,"axisLabel"),Ra(t&&t.axisPointer,"label")}),rw(Ba(t.calendar),function(t){La(t,"itemStyle"),Ra(t,"dayLabel"),Ra(t,"monthLabel"),Ra(t,"yearLabel")}),rw(Ba(t.radar),function(t){Ra(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(Ba(t.geo),function(t){aw(t)&&(Na(t),rw(Ba(t.regions),function(t){Na(t)}))}),rw(Ba(t.timeline),function(t){Na(t),La(t,"label"),La(t,"itemStyle"),La(t,"controlStyle",!0),t=t.data,x(t)&&f(t,function(t){C(t)&&(La(t,"label"),La(t,"itemStyle"))})}),rw(Ba(t.toolbox),function(t){La(t,"iconStyle"),rw(t.feature,function(t){La(t,"iconStyle")})}),Ra(za(t.axisPointer),"label"),Ra(za(t.tooltip).axisPointer,"label")}function Va(t){t&&f(lw,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function Ya(t){var e=t&&t.itemStyle;if(e)for(var i=0;i<uw.length;i++){var n=uw[i][1],o=uw[i][0];null!=e[n]&&(e[o]=e[n])}}function Ha(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Wa(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Xa(t,e){Fa(t,e),t.series=zi(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),Ha(t.label),(e=t.data)&&!I(e))for(var n=0;n<e.length;n++)Ha(e[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset)}else if("gauge"===i){var o=function(t,e){for(var i=e.split(","),n=t,o=0;o<i.length&&null!=(n=n&&n[i[o]]);o++);return n}(t,"pointer.color");if(null!=o){for(var r,a=t,s="itemStyle.color",l=s.split(","),u=a,c=0;c<l.length-1;c++)null==u[r=l[c]]&&(u[r]={}),u=u[r];null!=u[l[c]]||(u[l[c]]=o)}}else if("bar"===i){if(Ya(t),Ya(t.backgroundStyle),Ya(t.emphasis),(e=t.data)&&!I(e))for(n=0;n<e.length;n++)"object"==typeof e[n]&&(Ya(e[n]),Ya(e[n]&&e[n].emphasis))}else"sunburst"===i?((s=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),Wa(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,Wa)):"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),Va(t)}}),t.dataRange&&(t.visualMap=t.dataRange),f(hw,function(e){(e=t[e])&&f(e=x(e)?e:[e],function(t){Va(t)})})}function Ua(t){f(t,function(e,i){var n=[],o=[NaN,NaN],r=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex;a.modify(r,function(r,l,h){var u,c,p=a.get(e.stackedDimension,h);if(isNaN(p))return o;s?c=a.getRawIndex(h):u=a.get(e.stackedByDimension,h);for(var d,f,g,y=NaN,m=i-1;0<=m;m--){var v=t[m];if(0<=(c=s?c:v.data.rawIndexOf(v.stackedByDimension,u))&&(v=v.data.getByRawIndex(v.stackResultDimension,c),0<=p&&0<v||p<=0&&v<0)){d=p,f=v,g=void 0,g=Math.max(Si(d),Si(f)),d+=f,p=Iy<g?d:bi(d,g),y=v;break}}return n[0]=p,n[1]=y,n})})}function Ga(t){return t instanceof cw}function ja(t,e,i){i=i||Za(t);var n=e.seriesLayoutBy,o=function(t,e,i,n,o){var r,a;if(!t)return{dimensionsDefine:Ka(o),startIndex:a,dimensionsDetectedCount:r};var s;return e===zx?(s=t,"auto"===n||null==n?Qa(function(t){null!=t&&"-"!==t&&(b(t)?null==a&&(a=1):a=0)},i,s,10):a=T(n)?n:n?1:0,o||1!==a||(o=[],Qa(function(t,e){o[e]=null!=t?t+"":""},i,s,1/0)),r=o?o.length:i===Xx?s.length:s[0]?s[0].length:null):e===Fx?o=o||function(t){for(var e,i=0;i<t.length&&!(e=t[i++]););var n;if(e)return n=[],f(e,function(t,e){n.push(e)}),n}(t):e===Vx?o||(o=[],f(t,function(t,e){o.push(e)})):e===Bx&&(n=Vi(t[0]),r=x(n)&&n.length||1),{startIndex:a,dimensionsDefine:Ka(o),dimensionsDetectedCount:r}}(t,i,n,e.sourceHeader,e.dimensions);return new cw({data:t,sourceFormat:i,seriesLayoutBy:n,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:a(e)})}function qa(t){return new cw({data:t,sourceFormat:I(t)?Yx:Bx})}function Za(t){var e=Hx;if(I(t))e=Yx;else if(x(t)){0===t.length&&(e=zx);for(var i=0,n=t.length;i<n;i++){var o=t[i];if(null!=o){if(x(o)){e=zx;break}if(C(o)){e=Fx;break}}}}else if(C(t))for(var r in t)if(j(t,r)&&d(t[r])){e=Vx;break}return e}function Ka(t){var e;if(t)return e=W(),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 Qa(t,e,i,n){if(e===Xx)for(var o=0;o<i.length&&o<n;o++)t(i[o]?i[o][0]:null,o);else for(var r=i[0]||[],o=0;o<r.length&&o<n;o++)t(r[o],o)}function $a(t){return(t=t.sourceFormat)===Fx||t===Vx}function Ja(t,e){var t=Ga(t)?t:qa(t),i=(this._source=t,this._data=t.data);t.sourceFormat===Yx&&(this._offset=0,this._dimSize=e,this._data=i),Jx(this,i,t)}function ts(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function es(t,e,i,n){return t[n]}function is(t,e){return yw[ss(t,e)]}function ns(t,e,i){return t.length}function os(t,e){return mw[ss(t,e)]}function rs(t,e,i){return t[e]}function as(t){return vw[t]}function ss(t,e){return t===zx?t+"_"+e:t}function ls(t,e,i){if(t){var n,o,e=t.getRawDataItem(e);if(null!=e)return n=(o=t.getStore()).getSource().sourceFormat,null!=i?(t=t.getDimensionIndex(i),i=o.getDimensionProperty(t),as(n)(e,t,i)):(o=e,n===Bx?Vi(e):o)}}function hs(){}function us(t){var e,i;return C(t)?t.type&&(i=t):e=t,{text:e,frag:i}}function cs(t){return new Mw(t)}function ps(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}function ds(){return ww<xw?ww++:null}function fs(){var t=ww%Tw*bw+Math.ceil(ww/Tw),t=xw<=ww?null:t<Sw?t:ww;return ww++,t}function gs(t,e){return e=e&&e.type,"ordinal"===e?t:null==(t="time"!==e||T(t)||null==t||"-"===t?t:+ki(t))||""===t?NaN:+t}function ys(t){return kw.get(t)}function ms(t,e){T(e)||Ni(""),this._opFn=Aw[t],this._rvalFloat=Oi(e)}function vs(t,e){t="desc"===t,this._resultLT=t?1:-1,this._incomparable="min"===(e=null==e?t?"min":"max":e)?-1/0:1/0}function _s(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Oi(e)}function xs(){}function ws(t){return Ms(t.sourceFormat)||Ni(""),t.data}function bs(t){var e=t.sourceFormat,i=t.data;if(Ms(e)||Ni(""),e===zx){for(var n=[],o=0,r=i.length;o<r;o++)n.push(i[o].slice());return n}if(e===Fx){for(n=[],o=0,r=i.length;o<r;o++)n.push(l({},i[o]));return n}}function Ss(t,e,i){if(null!=i)return T(i)||!isNaN(i)&&!j(e,i)?t[i]:j(e,i)?e[i]:void 0}function Ts(t){return a(t)}function Cs(t,e){var i=zi(t),t=i.length;t||Ni("");for(var n=0,o=t;n<o;n++)e=function(t,e){e.length||Ni(""),C(t)||Ni("");var i=t.type,n=Rw.get(i);return n||Ni(""),i=g(e,function(t){var e=t,t=n,i=new Ew,o=e.data,r=i.sourceFormat=e.sourceFormat,a=e.startIndex,s=(e.seriesLayoutBy!==Wx&&Ni(""),[]),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&&(j(l,i)&&Ni(""),l[i]=e)});else for(var h=0;h<e.dimensionsDetectedCount;h++)s.push({index:h});var u=is(r,Wx),c=(t.__isBuiltIn&&(i.getRawDataItem=function(t){return u(o,a,s,t)},i.getRawData=If(ws,null,e)),i.cloneRawData=If(bs,null,e),os(r,Wx)),p=(i.count=If(c,null,o,a,s),as(r)),d=(i.retrieveValue=function(t,e){return t=u(o,a,s,t),d(t,e)},i.retrieveValueFromItem=function(t,e){var i;return null!=t&&(i=s[e])?p(t,e,i.name):void 0});return i.getDimensionInfo=If(Ss,null,s,l),i.cloneAllDimensionInfo=If(Ts,null,s),i}),g(zi(n.transform({upstream:i[0],upstreamList:i,config:a(t.config)})),function(t,i){C(t)||Ni(""),t.data||Ni(""),Ms(Za(t.data))||Ni("");var n=e[0],i=n&&0===i&&!t.dimensions?((i=n.startIndex)&&(t.data=n.data.slice(0,i).concat(t.data)),{seriesLayoutBy:Wx,sourceHeader:i,dimensions:n.metaRawOption.dimensions}):{seriesLayoutBy:Wx,sourceHeader:0,dimensions:t.dimensions};return ja(t.data,i,null)})}(i[n],e),n!==o-1&&(e.length=Math.max(e.length,1));return e}function Ms(t){return t===zx||t===Fx}function Is(t){return 65535<t?Nw:Bw}function ks(){return[1/0,-1/0]}function As(t,e,i,n,o){if(i=Fw[i||"float"],o){var r=t[e],a=r&&r.length;if(a!==n){for(var s=new i(n),l=0;l<a;l++)s[l]=r[l];t[e]=s}}else t[e]=new i(n)}function Ds(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=W()}function Ps(t,e,i,n){return gs(t[n],this._dimensions[n])}function Os(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}function Ls(t){t.option.transform&&V(t.option.transform)}function Es(t){return"series"===t.mainType}function Rs(t){throw new Error(t)}function Ns(t,e){var i=t.color||"#6e7079",n=t.fontSize||12,o=t.fontWeight||"400",r=t.color||"#464646",a=t.fontSize||14,t=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+aa(n+"")+"px;color:"+aa(i)+";font-weight:"+aa(o+""),valueStyle:"font-size:"+aa(a+"")+"px;color:"+aa(r)+";font-weight:"+aa(t+"")}:{nameStyle:{fontSize:n,fill:i,fontWeight:o},valueStyle:{fontSize:a,fill:r,fontWeight:t}}}function Bs(t,e){return e.type=t,e}function zs(t){return"section"===t.type}function Fs(t){return zs(t)?Vs:Ys}function Vs(t,e,i,n){var o,r=e.noHeader,a=(h=function t(e){var i,n,o;return zs(e)?(i=0,n=e.blocks.length,o=1<n||0<n&&!e.noHeader,f(e.blocks,function(e){var n=t(e);i<=n&&(i=n+ +(o&&(!n||zs(e)&&!e.noHeader)))}),i):0}(e),{html:Ww[h],richText:Xw[h]}),s=[],h=e.blocks||[],u=(z(!h||x(h)),h=h||[],t.orderMode),c=(e.sortBlocks&&u&&(h=h.slice(),j(c={valueAsc:"asc",valueDesc:"desc"},u)?(o=new Pw(c[u],null),h.sort(function(t,e){return o.evaluate(t.sortParam,e.sortParam)})):"seriesDesc"===u&&h.reverse()),f(h,function(i,o){var r=e.valueFormatter,r=Fs(i)(r?l(l({},t),{valueFormatter:r}):t,i,0<o?a.html:0,n);null!=r&&s.push(r)}),"richText"===t.renderMode?s.join(a.richText):Ws(s.join(""),r?i:a.html));return r?c:(u=sa(e.header,"ordinal",t.useUTC),h=Ns(n,t.renderMode).nameStyle,"richText"===t.renderMode?Xs(t,u,h)+a.richText+c:Ws('<div style="'+h+";"+Hw+';">'+aa(u)+"</div>"+c,i))}function Ys(t,e,i,n){var o,r,a,s,l=t.renderMode,h=e.noName,u=e.noValue,c=!e.markerType,p=e.name,d=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(t){return g(t=x(t)?t:[t],function(t,e){return sa(t,x(r)?r[e]:r,d)})};if(!h||!u)return o=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",l),p=h?"":sa(p,"ordinal",d),r=e.valueType,f=u?[]:f(e.value),e=!c||!h,a=!c&&h,n=Ns(n,l),s=n.nameStyle,n=n.valueStyle,"richText"===l?(c?"":o)+(h?"":Xs(t,p,s))+(u?"":function(t,e,i,n,o){return o=[o],n=n?10:20,i&&o.push({padding:[0,0,0,n],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(x(e)?e.join(" "):e,o)}(t,f,e,a,n)):Ws((c?"":o)+(h?"":'<span style="'+s+";"+(c?"":"margin-left:2px")+'">'+aa(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,aa).join("&nbsp;&nbsp;")+"</span>"}(f,e,a,n)),i)}function Hs(t,e,i,n,o,r){if(t)return Fs(t)({useUTC:o,renderMode:i,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,r)}function Ws(t,e){return'<div style="margin: '+e+"px 0 0;"+Hw+';">'+t+'<div style="clear:both"></div></div>'}function Xs(t,e,i){return t.markupStyleCreator.wrapRichTextStyle(e,i)}function Us(t,e){return t=t.get("padding"),null!=t?t:"richText"===e?[8,10]:10}function Gs(){this.richTextStyles={},this._nextStyleNameId=Ei()}function js(t){function e(t,e){(e=l.getDimensionInfo(e))&&!1!==e.otherDims.tooltip&&(h?p.push(Bs("nameValue",{markerType:"subItem",markerColor:s,name:e.displayName,value:t,valueType:e.type})):(u.push(t),c.push(e.type)))}var i,n,o,r,a,s,l,h,u,c,p,d=t.series,g=t.dataIndex,t=t.multipleSeries,m=d.getData(),v=m.mapDimensionsAll("defaultedTooltip"),_=v.length,w=d.getRawValue(g),b=x(w),S=(S=g,ca((T=d).getData().getItemVisual(S,"style")[T.visualDrawType]));1<_||b&&!_?(T=w,r=g,a=v,s=S,l=d.getData(),h=y(T,function(t,e,i){return i=l.getDimensionInfo(i),t||i&&!1!==i.tooltip&&null!=i.displayName},!1),u=[],c=[],p=[],a.length?f(a,function(t){e(ls(l,r,t),t)}):f(T,e),i=(a={inlineValues:u,inlineValueTypes:c,blocks:p}).inlineValueTypes,n=a.blocks,o=(a=a.inlineValues)[0]):_?(T=m.getDimensionInfo(v[0]),o=a=ls(m,g,v[0]),i=T.type):o=a=b?w[0]:w;var _=Ui(d),v=_&&d.name||"",T=m.getName(g),b=t?v:T;return Bs("section",{header:v,noHeader:t||!_,sortParam:o,blocks:[Bs("nameValue",{markerType:"item",markerColor:S,name:b,noName:!F(b),value:a,valueType:i})].concat(n||[])})}function qs(t,e){return t.getName(e)||t.getId(e)}function Zs(){var t=null!==jw&&jw.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function Ks(t){var e,i,n=t.name;Ui(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 Qs(t){return t.model.getRawData().count()}function $s(t){return t=t.model,t.setData(t.getRawData().cloneShallow()),Js}function Js(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function tl(t,e){f(X(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(i){t.wrapMethod(i,_(el,e))})}function el(t,e){return t=il(t),t&&t.setOutputEnd((e||this).count()),e}function il(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 nl(){this.group=new wy,this.uid=zr("viewComponent")}function ol(){var t=Zi();return function(e){var i=t(e),e=e.pipelineContext,n=!!i.large,o=!!i.progressiveRender,r=i.large=!(!e||!e.large),i=i.progressiveRender=!(!e||!e.progressiveRender);return!(n==r&&o==i)&&"reset"}}function rl(){this.group=new wy,this.uid=zr("viewChart"),this.renderTask=cs({plan:ll,reset:hl}),this.renderTask.context={view:this}}function al(t,e,i){t&&Co(t)&&("emphasis"===e?ho:uo)(t,i)}function sl(t,e,i){var n,o=qi(t,e),r=e&&null!=e.highlightKey?(e=e.highlightKey,n=null==(n=ov[e])&&nv<=32?ov[e]=nv++:n):null;null!=o?f(zi(o),function(e){al(t.getItemGraphicEl(e),i,r)}):t.eachItemGraphicEl(function(t){al(t,i,r)})}function ll(t){return Qw(t.model)}function hl(t){var e=t.model,i=t.ecModel,n=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,t=t.view,a=o&&Kw(o).updateMethod,r=r?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==r&&t[r](e,i,n,o),Jw[r]}function ul(t,e,i){function n(){c=(new Date).getTime(),p=null,t.apply(s,l||[])}function o(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];r=(new Date).getTime(),s=this,l=t;var d=h||e,f=h||i;h=null,a=r-(f?u:c)-d,clearTimeout(p),f?p=setTimeout(n,d):0<=a?n():p=setTimeout(n,-a),u=r}var r,a,s,l,h,u=0,c=0,p=null;return e=e||0,o.clear=function(){p&&(clearTimeout(p),p=null)},o.debounceNextCall=function(t){h=t},o}function cl(t,e,i,n){var o=t[e];if(o){var r=o[tb]||o,a=o[ib];if(o[eb]!==i||a!==n){if(null==i||!n)return t[e]=r;(o=t[e]=ul(r,i,"debounce"===n))[tb]=r,o[ib]=n,o[eb]=i}}}function pl(t,e){var i=t[e];i&&i[tb]&&(i.clear&&i.clear(),t[e]=i[tb])}function dl(t,e){return(t=t.visualStyleMapper||ob[e])||(console.warn("Unkown style type '"+e+"'."),ob.itemStyle)}function fl(t,e){return(t=t.visualDrawType||rb[e])||(console.warn("Unkown style type '"+e+"'."),"fill")}function gl(t,e,i,n){this._stageTaskMap=W(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}function yl(t){t.overallReset(t.ecModel,t.api,t.payload)}function ml(t){return t.overallProgress&&vl}function vl(){this.agent.dirty(),this.getDownstream().dirty()}function _l(){this.agent&&this.agent.dirty()}function xl(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function wl(t){return t.useClearVisual&&t.data.clearAllVisual(),t=t.resetDefines=zi(t.reset(t.model,t.ecModel,t.api,t.payload)),1<t.length?g(t,function(t,e){return bl(e)}):ub}function bl(t){return function(e,i){var n=i.data,o=i.resetDefines[t];if(o&&o.dataEach)for(var r=e.start;r<e.end;r++)o.dataEach(n,r);else o&&o.progress&&o.progress(e,n)}}function Sl(t){return t.data.count()}function Tl(t,e){for(var i in e.prototype)t[i]=q}function Cl(){return{axisLine:{lineStyle:{color:db}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}}function Ml(){}function Il(t,e,i,n,o){var r=t+e;i.isSilent(r)||n.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e,n,a=t.seriesIndex,s=t.option.selectedMap,h=o.selected,u=0;u<h.length;u++)h[u].seriesIndex===a&&(n=qi(e=t.getData(),o.fromActionPayload),i.trigger(r,{type:r,seriesId:t.id,name:x(n)?e.getName(n[0]):e.getName(n),selected:b(s)?s:l({},s)}))})}function kl(t,e,i){for(var n;t&&(!e(t)||(n=t,!i));)t=t.__hostTarget||t.parent;return n}function Al(){this._id="__ec_inner_"+mb++}function Dl(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 Pl(t,e,i,n,o,r,a){var s=0===t.indexOf("empty");return(a=0===(t=s?t.substr(5,1).toLowerCase()+t.substr(6):t).indexOf("image://")?cr(t.slice(8),new py(e,i,n,o),a?"center":"cover"):0===t.indexOf("path://")?ur(t.slice(7),{},new py(e,i,n,o),a?"center":"cover"):new Mb({shape:{symbolType:t,x:e,y:i,width:n,height:o}})).__isEmptyBrush=s,a.setColor=Dl,r&&a.setColor(r),a}function Ol(t,e){if(null!=t)return[wi((t=x(t)?t:[t,t])[0],e[0])||0,wi(E(t[1],t[0]),e[1])||0]}function Ll(t,e,i){for(var n,o,r,a,s,l,h,u,c,p="radial"===e.type?(n=t,o=e,a=(r=i).width,s=r.height,l=Math.min(a,s),h=null==o.x?.5:o.x,u=null==o.y?.5:o.y,c=null==o.r?.5:o.r,o.global||(h=h*a+r.x,u=u*s+r.y,c*=l),n.createRadialGradient(h,u,0,h,u,c)):(o=t,a=i,r=null==(s=e).x?0:s.x,l=null==s.x2?1:s.x2,n=null==s.y?0:s.y,h=null==s.y2?0:s.y2,s.global||(r=r*a.width+a.x,l=l*a.width+a.x,n=n*a.height+a.y,h=h*a.height+a.y),r=isNaN(r)?0:r,l=isNaN(l)?1:l,n=isNaN(n)?0:n,h=isNaN(h)?0:h,o.createLinearGradient(r,n,l,h)),d=e.colorStops,f=0;f<d.length;f++)p.addColorStop(d[f].offset,d[f].color);return p}function El(t){return parseInt(t,10)}function Rl(t,e,i){var n=["width","height"][e],o=["clientWidth","clientHeight"][e],r=["paddingLeft","paddingTop"][e],e=["paddingRight","paddingBottom"][e];return null!=i[n]&&"auto"!==i[n]?parseFloat(i[n]):(i=document.defaultView.getComputedStyle(t),(t[o]||El(i[n])||El(t.style[n]))-(El(i[r])||0)-(El(i[e])||0)|0)}function Nl(t){var e,i=t.style,n=i.lineDash&&0<i.lineWidth&&(o=i.lineDash,n=i.lineWidth,o&&"solid"!==o&&0<n?"dashed"===o?[4*n,2*n]:"dotted"===o?[n]:T(o)?[o]:x(o)?o:null:null),o=i.lineDashOffset;return n&&(e=i.strokeNoScale&&t.getLineScale?t.getLineScale():1)&&1!==e&&(n=g(n,function(t){return t/e}),o/=e),[n,o]}function Bl(t){var e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))}function zl(t){return"string"==typeof t&&"none"!==t}function Fl(t){return null!=(t=t.fill)&&"none"!==t}function Vl(t,e){var i;null!=e.fillOpacity&&1!==e.fillOpacity?(i=t.globalAlpha,t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=i):t.fill()}function Yl(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 Hl(t,e,i){var i=un(e.image,e.__image,i);if(pn(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)*Df),i.scaleSelf(e.scaleX||1,e.scaleY||1),t.setTransform(i)),t}function Wl(t,e,i,n,o){var r,a=!1;if(!n&&e===(i=i||{}))return!1;!n&&e.opacity===i.opacity||(Gl(t,o),a=!0,r=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(r)?Gy.opacity:r),!n&&e.blend===i.blend||(a||(Gl(t,o),a=!0),t.globalCompositeOperation=e.blend||Gy.blend);for(var s=0;s<kb.length;s++){var l=kb[s];!n&&e[l]===i[l]||(a||(Gl(t,o),a=!0),t[l]=t.dpr*(e[l]||0))}return!n&&e.shadowColor===i.shadowColor||(a||(Gl(t,o),a=!0),t.shadowColor=e.shadowColor||Gy.shadowColor),a}function Xl(t,e,i,n,o){var r=jl(e,o.inHover),a=n?null:i&&jl(i,o.inHover)||{};if(r!==a){var s=Wl(t,r,a,n,o);(n||r.fill!==a.fill)&&(s||(Gl(t,o),s=!0),zl(r.fill))&&(t.fillStyle=r.fill),(n||r.stroke!==a.stroke)&&(s||(Gl(t,o),s=!0),zl(r.stroke))&&(t.strokeStyle=r.stroke),!n&&r.opacity===a.opacity||(s||(Gl(t,o),s=!0),t.globalAlpha=null==r.opacity?1:r.opacity),e.hasStroke()&&(i=r.lineWidth/(r.strokeNoScale&&e.getLineScale?e.getLineScale():1),t.lineWidth!==i)&&(s||(Gl(t,o),s=!0),t.lineWidth=i);for(var l=0;l<Ab.length;l++){var h=Ab[l],u=h[0];!n&&r[u]===a[u]||(s||(Gl(t,o),s=!0),t[u]=r[u]||h[1])}}}function Ul(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 Gl(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function jl(t,e){return e&&t.__hoverStyle||t.style}function ql(t,e){Zl(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Zl(t,e,i,n){var o=e.transform;if(e.shouldBePainted(i.viewWidth,i.viewHeight,!1,!1)){var r=e.__clipPaths,a=i.prevElClipPaths,s=!1,l=!1;if(!a||function(t,e){if(t!==e&&(t||e)){if(!t||!e||t.length!==e.length)return 1;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return 1}}(r,a)){if(a&&a.length&&(Gl(t,i),t.restore(),l=s=!0,i.prevElClipPaths=null,i.allClipped=!1,i.prevEl=null),r&&r.length){Gl(t,i),t.save();for(var h=r,u=t,a=i,c=!1,p=0;p<h.length;p++){var d=h[p],c=c||d.isZeroArea();Ul(u,d),u.beginPath(),d.buildPath(u,d.shape),u.clip()}a.allClipped=c,s=!0}i.prevElClipPaths=r}if(i.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var f,g,y,m,v,_,x,w,b,S,T,C,M,I,k,A,D,P,O,L,E,R,N,a=i.prevEl,B=(a||(l=s=!0),e instanceof Bm&&e.autoBatch&&(r=e.style,B=Fl(r),f=Bl(r),!(r.lineDash||!(+B^+f)||B&&"string"!=typeof r.fill||f&&"string"!=typeof r.stroke||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1))),s=(s||(f=o,r=a.transform,f&&r?f[0]!==r[0]||f[1]!==r[1]||f[2]!==r[2]||f[3]!==r[3]||f[4]!==r[4]||f[5]!==r[5]:f||r)?(Gl(t,i),Ul(t,e)):B||Gl(t,i),jl(e,i.inHover));if(e instanceof Bm)i.lastDrawType!==Db&&(l=!0,i.lastDrawType=Db),Xl(t,e,a,l,i),B&&(i.batchFill||i.batchStroke)||t.beginPath(),o=t,r=e,H=B,k=Bl(m=s),A=Fl(m),D=m.strokePercent,P=D<1,O=!r.path,r.silent&&!P||!O||r.createPathProxy(),L=r.path||Ib,E=r.__dirty,H||(v=m.fill,N=m.stroke,_=A&&!!v.colorStops,x=k&&!!N.colorStops,w=A&&!!v.image,b=k&&!!N.image,R=M=C=T=S=void 0,(_||x)&&(R=r.getBoundingRect()),_&&(S=E?Ll(o,v,R):r.__canvasFillGradient,r.__canvasFillGradient=S),x&&(T=E?Ll(o,N,R):r.__canvasStrokeGradient,r.__canvasStrokeGradient=T),w&&(C=E||!r.__canvasFillPattern?Hl(o,v,r):r.__canvasFillPattern,r.__canvasFillPattern=C),b&&(M=E||!r.__canvasStrokePattern?Hl(o,N,r):r.__canvasStrokePattern,r.__canvasStrokePattern=C),_?o.fillStyle=S:w&&(C?o.fillStyle=C:A=!1),x?o.strokeStyle=T:b&&(M?o.strokeStyle=M:k=!1)),R=r.getGlobalScale(),L.setScale(R[0],R[1],r.segmentIgnoreThreshold),o.setLineDash&&m.lineDash&&(I=(v=Nl(r))[0],Y=v[1]),N=!0,(O||E&ig)&&(L.setDPR(o.dpr),P?L.setContext(null):(L.setContext(o),N=!1),L.reset(),r.buildPath(L,r.shape,H),L.toStatic(),r.pathUpdated()),N&&L.rebuildPath(o,P?D:1),I&&(o.setLineDash(I),o.lineDashOffset=Y),H||(m.strokeFirst?(k&&Yl(o,m),A&&Vl(o,m)):(A&&Vl(o,m),k&&Yl(o,m))),I&&o.setLineDash([]),B&&(i.batchFill=s.fill||"",i.batchStroke=s.stroke||"");else if(e instanceof Fm)i.lastDrawType!==Ob&&(l=!0,i.lastDrawType=Ob),Xl(t,e,a,l,i),_=t,S=e,null!=(C=(w=s).text)&&(C+=""),C&&(_.font=w.font||cf,_.textAlign=w.textAlign,_.textBaseline=w.textBaseline,T=x=void 0,_.setLineDash&&w.lineDash&&(x=(S=Nl(S))[0],T=S[1]),x&&(_.setLineDash(x),_.lineDashOffset=T),w.strokeFirst?(Bl(w)&&_.strokeText(C,w.x,w.y),Fl(w)&&_.fillText(C,w.x,w.y)):(Fl(w)&&_.fillText(C,w.x,w.y),Bl(w)&&_.strokeText(C,w.x,w.y)),x)&&_.setLineDash([]);else if(e instanceof Wm)i.lastDrawType!==Pb&&(l=!0,i.lastDrawType=Pb),b=a,M=l,Wl(t,jl(e,(R=i).inHover),b&&jl(b,R.inHover),M,R),v=t,O=s,(r=(E=e).__image=un(O.image,E.__image,E,E.onload))&&pn(r)&&(N=O.x||0,L=O.y||0,P=E.getWidth(),E=E.getHeight(),D=r.width/r.height,null==P&&null!=E?P=E*D:null==E&&null!=P?E=P/D:null==P&&null==E&&(P=r.width,E=r.height),O.sWidth&&O.sHeight?(g=O.sx||0,y=O.sy||0,v.drawImage(r,g,y,O.sWidth,O.sHeight,N,L,P,E)):O.sx&&O.sy?(g=O.sx,y=O.sy,v.drawImage(r,g,y,P-g,E-y,N,L,P,E)):v.drawImage(r,N,L,P,E));else if(e.getTemporalDisplayables){i.lastDrawType!==Lb&&(l=!0,i.lastDrawType=Lb);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(),Zl(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(),Zl(V,G,U,j===q-1),G.innerAfterBrush(),G.afterBrush&&G.afterBrush(),U.prevEl=G;Y.clearTemporalDisplayables(),Y.notClear=!0,V.restore()}B&&n&&Gl(t,i),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(i.prevEl=e).__dirty=0,e.__isRendered=!0}}else e.__dirty&=~eg,e.__isRendered=!1}function Kl(t,e){if("none"===t)return null;var i=e.getDevicePixelRatio(),n=e.getZr(),o="svg"===n.painter.type,e=(t.dirty&&Eb.delete(t),Eb.get(t));if(e)return e;for(var r,a=h(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512}),e=("none"===a.backgroundColor&&(a.backgroundColor=null),{repeat:"repeat"}),s=e,l=[i],u=!0,c=0;c<Nb.length;++c){var p=a[Nb[c]];if(null!=p&&!x(p)&&!b(p)&&!T(p)&&"boolean"!=typeof p){u=!1;break}l.push(p)}u&&(r=l.join(",")+(o?"-svg":""),w=Rb.get(r))&&(o?s.svgElement=w:s.image=w);var d,f=function t(e){if(!e||0===e.length)return[[0,0]];if(T(e))return[[r=Math.ceil(e),r]];for(var i=!0,n=0;n<e.length;++n)if(!T(e[n])){i=!1;break}if(i)return t([e]);var o=[];for(n=0;n<e.length;++n){var r;T(e[n])?(r=Math.ceil(e[n]),o.push([r,r])):(r=g(e[n],function(t){return Math.ceil(t)})).length%2==1?o.push(r.concat(r)):o.push(r)}return o}(a.dashArrayX),y=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(T(t))return[e=Math.ceil(t),e];var e=g(t,function(t){return Math.ceil(t)});return t.length%2?e.concat(e):e}(a.dashArrayY),m=function t(e){if(!e||0===e.length)return[["rect"]];if(b(e))return[[e]];for(var i=!0,n=0;n<e.length;++n)if(!b(e[n])){i=!1;break}if(i)return t([e]);var o=[];for(n=0;n<e.length;++n)b(e[n])?o.push([e[n]]):o.push(e[n]);return o}(a.symbol),v=function(t){return g(t,Ql)}(f),_=Ql(y),w=!o&&df.createCanvas(),S=o&&{tag:"g",attrs:{},key:"dcl",children:[]},C=function(){for(var t=1,e=0,i=v.length;e<i;++e)t=Ri(t,v[e]);for(var n=1,e=0,i=m.length;e<i;++e)n=Ri(n,m[e].length);t*=n;var o=_*v.length*m.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(o,a.maxTileHeight))}}();w&&(w.width=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,r,s,l){var h=o?1:i,l=Pl(l,t*h,e*h,r*h,s*h,a.color,a.symbolKeepAspect);o?(t=n.painter.renderOneToVNode(l))&&S.children.push(t):ql(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&&Rb.put(r,w||S),s.image=w,s.svgElement=S,s.svgWidth=C.width,s.svgHeight=C.height,e.rotation=a.rotation,e.scaleX=e.scaleY=o?1:1/i,Eb.set(t,e),t.dirty=!1,e}function Ql(t){for(var e=0,i=0;i<t.length;++i)e+=t[i];return t.length%2==1?2*e:e}function $l(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];if(!this.isDisposed())return th(this,t,e);this.id}}function Jl(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return th(this,t,e)}}function th(t,e,i){return i[0]=i[0]&&i[0].toLowerCase(),Bf.prototype[e].apply(t,i)}function eh(){return null!==Ub&&Ub.apply(this,arguments)||this}function ih(t,e,i){function n(t,e){return t.__prio-e.__prio}var o=uS.call(this,new fb)||this,t=(o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],i=i||{},b(e)&&(e=_S[e]),o._dom=t,o._zr=vi(t,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:null!=i.useDirtyRect&&i.useDirtyRect})),i=(o._ssr=i.ssr,o._throttledZrFlush=ul(If(t.flush,t),17),(e=a(e))&&Xa(e,!0),o._theme=e,o._locale=b(e=i.locale||ax)?(i=ox[e.toUpperCase()]||{},e===ex||e===ix?a(i):s(a(i),a(ox[nx]),!1)):s(a(e),a(ox[nx]),!1),o._coordSysMgr=new iw,o._api=aS(o));return Dt(vS,n),Dt(yS,n),o._scheduler=new hb(o,i,yS,vS),o._messageCenter=new cS,o._initEvents(),o.resize=If(o.resize,o),t.animation.on("frame",o._onframe,o),eS(t,o),iS(t,o),V(o),o}function nh(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function oh(t){for(var e=[],i=t.currentStates,n=0;n<i.length;n++){var o=i[n];"emphasis"!==o&&"blur"!==o&&"select"!==o&&e.push(o)}t.selected&&t.states.select&&e.push("select"),t.hoverState===hv&&t.states.emphasis?e.push("emphasis"):t.hoverState===lv&&t.states.blur&&e.push("blur"),t.useStates(e)}function rh(t,e){var i,n;t.preventAutoZ||(i=t.get("z")||0,n=t.get("zlevel")||0,e.eachRendered(function(t){return function t(e,i,n,o){var r=e.getTextContent(),a=e.getTextGuideLine(),s=e.isGroup;if(s)for(var l=e.childrenRef(),h=0;h<l.length;h++)o=Math.max(t(l[h],i,n,o),o);else e.z=i,e.zlevel=n,o=Math.max(e.z2,o);return r&&(r.z=i,r.zlevel=n,isFinite(o))&&(r.z2=o+2),a&&(s=e.textGuideLineConfig,a.z=i,a.zlevel=n,isFinite(o))&&(a.z2=o+(s&&s.showAbove?1:-1)),o}(t,i,n,-1/0),!0}))}function ah(t,e){e.eachRendered(function(t){var e,i;nr(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 sh(t,e){var i=t.getModel("stateAnimation"),n=t.isAnimationEnabled(),t=i.get("duration"),o=0<t?{duration:t,delay:i.get("delay"),easing:i.get("easing")}:null;e.eachRendered(function(t){var e,i,r;t.states&&t.states.emphasis&&(nr(t)||(t instanceof Bm&&((r=rv(i=t)).normalFill=i.style.fill,r.normalStroke=i.style.stroke,i=i.states.select||{},r.selectFill=i.style&&i.style.fill||null,r.selectStroke=i.style&&i.style.stroke||null),t.__dirty&&(r=t.prevStates)&&t.useStates(r),n&&(t.stateTransition=o,i=t.getTextContent(),e=t.getTextGuideLine(),i&&(i.stateTransition=o),e)&&(e.stateTransition=o),t.__dirty&&oh(t)))})}function lh(t){bS[t]=!1}function hh(t){return wS[(e=CS,(t=t).getAttribute?t.getAttribute(e):t[e])];var e}function uh(t,e){_S[t]=e}function ch(t){u(mS,t)<0&&mS.push(t)}function ph(t,e){xh(yS,t,e,2e3)}function dh(t){gh("afterinit",t)}function fh(t){gh("afterupdate",t)}function gh(t,e){Bb.on(t,e)}function yh(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,gS[e]||(z(Wb.test(n)&&Wb.test(e)),fS[n]||(fS[n]={action:i,actionInfo:t}),gS[e]=n)}function mh(t,e){iw.register(t,e)}function vh(t,e){xh(vS,t,e,1e3,"layout")}function _h(t,e){xh(vS,t,e,3e3,"visual")}function xh(t,e,i,n,o){(w(e)||C(e))&&(i=e,e=n),0<=u(MS,i)||(MS.push(i),(n=hb.wrapStageHandler(i,o)).__prio=e,n.__raw=i,t.push(n))}function wh(t,e){xS[t]=e}function bh(t,e,i){var n=zb.registerMap;n&&n(t,e,i)}function Sh(t){var e=(t=a(t)).type,i=(e||Ni(""),e.split(":")),n=(2!==i.length&&Ni(""),!1);"echarts"===i[0]&&(e=i[1],n=!0),t.__isBuiltIn=n,Rw.set(e,t)}function Th(t){return null==t?0:t.length||1}function Ch(t){return t}function Mh(t,e,i,n,o,r){this._old=t,this._new=e,this._oldKeyGetter=i||Ch,this._newKeyGetter=n||Ch,this.context=o,this._diffModeMultiple="multiple"===r}function Ih(t,e){this._encode=t,this._schema=e}function kh(t,e){var i={},n=i.encode={},o=W(),r=[],a=[],s={},l=(f(t.dimensions,function(e){var i,l,h=t.getDimensionInfo(e),u=h.coordDim;u&&(i=h.coordDimIndex,Ah(n,u)[i]=e,h.isExtraCoord||(o.set(u,1),"ordinal"!==(l=h.type)&&"time"!==l&&(r[0]=e),Ah(s,u)[i]=t.getDimensionIndex(h.name)),h.defaultTooltip)&&a.push(e),Nx.each(function(t,e){var i=Ah(n,e),e=h.otherDims[e];null!=e&&!1!==e&&(i[e]=h.name)})}),[]),h={},u=(o.each(function(t,e){var i=n[e];h[e]=i[0],l=l.concat(i)}),i.dataDimsOnCoord=l,i.dataDimIndicesOnCoord=g(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),i.encodeFirstDimNotExtra=h,n.label),u=(u&&u.length&&(r=u.slice()),n.tooltip);return u&&u.length?a=u.slice():a.length||(a=r.slice()),n.defaultedLabel=r,n.defaultedTooltip=a,i.userOutput=new RS(s,e),i}function Ah(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Dh(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}function Ph(t){return t instanceof FS}function Oh(t){for(var e=W(),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 Lh(t){var e=BS(t);return e.dimNameMap||(e.dimNameMap=Oh(t.dimensionsDefine))}function Eh(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"];for(var i,n,o=!(this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"]),r=(Ph(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(o=!0,i=t),i=i||["x","y"],{}),a=[],s={},l=!1,h={},u=0;u<i.length;u++){var c=i[u],c=b(c)?new NS({name:c}):c instanceof NS?c:new NS(c),p=c.name,d=(c.type=c.type||"float",c.coordDim||(c.coordDim=p,c.coordDimIndex=0),c.otherDims=c.otherDims||{});a.push(p),null!=h[p]&&(l=!0),(r[p]=c).createInvertedIndices&&(s[p]=[]),0===d.itemName&&(this._nameDimIdx=u),0===d.itemId&&(this._idDimIdx=u),o&&(c.storeDimIndex=u)}this.dimensions=a,this._dimInfos=r,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted&&(n=this._dimIdxToName=W(),f(a,function(t){n.set(r[t].storeDimIndex,t)}))}function Rh(t,e){function i(t){var e,i,n,o=x[t];return o<0?(e=C(e=u[t])?e:{name:e},i=new NS,null!=(n=e.name)&&null!=m.get(n)&&(i.name=i.displayName=n),null!=e.type&&(i.type=e.type),null!=e.displayName&&(i.displayName=e.displayName),x[t]=p.length,i.storeDimIndex=t,p.push(i),i):p[o]}function n(t,e,i){null!=Nx.get(e)?t.otherDims[e]=i:(t.coordDim=e,t.coordDimIndex=i,c.set(e,!0))}function o(t){null==t.name&&(t.name=t.coordDim)}Ga(t)||(t=qa(t));for(var r,a,s=(e=e||{}).coordDimensions||[],u=e.dimensionsDefine||t.dimensionsDefine||[],c=W(),p=[],d=(g=t,r=s,v=e.dimensionsCount,a=Math.max(g.dimensionsDetectedCount||1,r.length,u.length,v||0),f(r,function(t){C(t)&&(t=t.dimsDef)&&(a=Math.max(a,t.length))}),a),g=e.canOmitUnusedDimensions&&30<d,y=u===t.dimensionsDefine,m=y?Lh(t):Oh(u),v=e.encodeDefine,_=W(v=!v&&e.encodeDefaulter?e.encodeDefaulter(t,d):v),x=new zw(d),w=0;w<x.length;w++)x[w]=-1;if(!g)for(w=0;w<d;w++)i(w);_.each(function(t,e){var o,t=zi(t).slice();1===t.length&&!b(t[0])&&t[0]<0?_.set(e,!1):(o=_.set(e,[]),f(t,function(t,r){null!=(t=b(t)?m.get(t):t)&&t<d&&n(i(o[r]=t),e,r)}))});var S=0;f(s,function(t){b(t)?(a=t,r={}):(a=(r=t).name,t=r.ordinalMeta,r.ordinalMeta=null,(r=l({},r)).ordinalMeta=t,e=r.dimsDef,o=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null);var e,o,r,a,s=_.get(a);if(!1!==s){if(!(s=zi(s)).length)for(var u=0;u<(e&&e.length||1);u++){for(;S<d&&null!=i(S).coordDim;)S++;S<d&&s.push(S++)}f(s,function(t,s){t=i(t),y&&null!=r.type&&(t.type=r.type),n(h(t,r),a,s),null==t.name&&e&&(C(s=e[s])||(s={name:s}),t.name=t.displayName=s.name,t.defaultTooltip=s.defaultTooltip),o&&h(t.otherDims,o)})}});var T=e.generateCoord,M=null!=(I=e.generateCoordCount),I=T?I||1:0,k=T||"value";if(g)f(p,function(t){o(t)}),p.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var A=0;A<d;A++){var D=i(A);null==D.coordDim&&(D.coordDim=function(t,e,i){var n=e.data;if(i||n.hasOwnProperty(t)){for(var o=0;n.hasOwnProperty(t+o);)o++;t+=o}return e.set(t,!0),t}(k,c,M),D.coordDimIndex=0,(!T||I<=0)&&(D.isExtraCoord=!0),I--),o(D),null!=D.type||ba(t,A)!==Ux.Must&&(!D.isExtraCoord||null==D.otherDims.itemName&&null==D.otherDims.seriesName)||(D.type="ordinal")}for(var P=p,O=W(),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 FS({source:t,dimensions:p,fullDimensionCount:d,dimensionOmitted:g})}function Nh(t){return"category"===t.get("type")}function Bh(t,e,i){var n,o,r,a,s,l,h,u,c,p=(i=i||{}).byIndex,d=i.stackedCoordDimension,g=(Ph(e.schema)?(o=e.schema,n=o.dimensions,r=e.store):n=e,!(!t||!t.get("stack")));return f(n,function(t,e){b(t)&&(n[e]=t={name:t}),g&&!t.isExtraCoord&&(p||a||!t.ordinalMeta||(a=t),s||"ordinal"===t.type||"time"===t.type||d&&d!==t.coordDim||(s=t))}),!s||p||a||(p=!0),s&&(l="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,a&&(a.createInvertedIndices=!0),u=s.coordDim,i=s.type,c=0,f(n,function(t){t.coordDim===u&&c++}),e={name:l,coordDim:u,coordDimIndex:c,type:i,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},t={name:h,coordDim:h,coordDimIndex:c+1,type:i,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1},o?(r&&(e.storeDimIndex=r.ensureCalculationDimension(h,i),t.storeDimIndex=r.ensureCalculationDimension(l,i)),o.appendCalculationDimension(e),o.appendCalculationDimension(t)):(n.push(e),n.push(t))),{stackedDimension:s&&s.name,stackedByDimension:a&&a.name,isStackedByIndex:p,stackedOverDimension:h,stackResultDimension:l}}function zh(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Fh(t,e){return zh(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Vh(t,e,i){i=i||{};var n,o,r,a,s,l,h=e.getSourceManager(),u=!1,t=(t?(u=!0,n=qa(t)):u=(n=h.getSource()).sourceFormat===Bx,function(t){var e=t.get("coordinateSystem"),i=new GS(e);if(e=jS[e])return e(t,i,i.axisMap,i.categoryAxisMap),i}(e)),c=(o=t,c=(c=e).get("coordinateSystem"),c=iw.get(c),p=(p=o&&o.coordSysDims?g(o.coordSysDims,function(t){var e={name:t},t=o.axisMap.get(t);return t&&(t=t.get("type"),e.type="category"===(t=t)?"ordinal":"time"===t?"time":"float"),e}):p)||c&&(c.getDimensionsInfo?c.getDimensionsInfo():c.dimensions.slice())||["x","y"]),p=i.useEncodeDefaulter,p=w(p)?p:p?_(xa,c,e):null,c={coordDimensions:c,generateCoord:i.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:p,canOmitUnusedDimensions:!u},p=Rh(n,c),d=(c=p.dimensions,r=i.createInvertedIndices,(a=t)&&f(c,function(t,e){var i=t.coordDim,i=a.categoryAxisMap.get(i);i&&(null==s&&(s=e),t.ordinalMeta=i.getOrdinalMeta(),r)&&(t.createInvertedIndices=!0),null!=t.otherDims.itemName&&(l=!0)}),l||null==s||(c[s].otherDims.itemName=0),s),i=u?null:h.getSharedDataStore(p),t=Bh(e,{schema:p,store:i}),c=new US(p,e),p=(c.setCalculationInfo(t),null==d||(h=n).sourceFormat!==Bx||x(Vi(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 Yh(t){this._setting=t||{},this._extent=[1/0,-1/0]}function Hh(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++ZS}function Wh(t){return C(t)&&null!=t.value?t.value:t+""}function Xh(t){return"interval"===t.type||"log"===t.type}function Uh(t,e,i,n){var o={},r=t[1]-t[0],r=o.interval=Pi(r/e,!0),e=(null!=i&&r<i&&(r=o.interval=i),null!=n&&n<r&&(r=o.interval=n),o.intervalPrecision=jh(r)),i=o.niceTickExtent=[bi(Math.ceil(t[0]/r)*r,e),bi(Math.floor(t[1]/r)*r,e)];return n=i,r=t,isFinite(n[0])||(n[0]=r[0]),isFinite(n[1])||(n[1]=r[1]),qh(n,0,r),qh(n,1,r),n[0]>n[1]&&(n[0]=n[1]),o}function Gh(t){var e=Math.pow(10,Di(t)),t=t/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,bi(t*e)}function jh(t){return Si(t)+2}function qh(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function Zh(t,e){return t>=e[0]&&t<=e[1]}function Kh(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Qh(t,e){return t*(e[1]-e[0])+e[0]}function $h(t){var t=QS.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return x(e=e||new KS({}))&&(e=new KS({categories:g(e,function(t){return C(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}function Jh(){var t=null!==JS&&JS.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}function tu(t){return x(t)?iT?new Float32Array(t):t:new nT(t)}function eu(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function iu(t){return t.dim+t.index}function nu(t,e){var i=[];return e.eachSeriesByType(t,function(t){var e;(e=t).coordinateSystem&&"cartesian2d"===e.coordinateSystem.type&&i.push(t)}),i}function ou(t){var e,i,n=function(t){var e,i={},n=(f(t,function(t){var e=t.coordinateSystem.getBaseAxis();if("time"===e.type||"value"===e.type)for(var t=t.getData(),n=e.dim+"_"+e.index,o=t.getDimensionIndex(t.mapDimension(e.dim)),r=t.getStore(),a=0,s=r.count();a<s;++a){var l=r.get(o,a);i[n]?i[n].push(l):i[n]=[l]}}),{});for(e in i)if(i.hasOwnProperty(e)){var o=i[e];if(o){o.sort(function(t,e){return t-e});for(var r=null,a=1;a<o.length;++a){var s=o[a]-o[a-1];0<s&&(r=null===r?s:Math.min(r,s))}n[e]=r}}return n}(t),o=[];return f(t,function(t){var e,i,r=t.coordinateSystem.getBaseAxis(),a=r.getExtent(),s=(e="category"===r.type?r.getBandWidth():"value"===r.type||"time"===r.type?(e=r.dim+"_"+r.index,e=n[e],s=Math.abs(a[1]-a[0]),i=r.scale.getExtent(),i=Math.abs(i[1]-i[0]),e?s/i*e:s):(i=t.getData(),Math.abs(a[1]-a[0])/i.count()),wi(t.get("barWidth"),e)),a=wi(t.get("barMaxWidth"),e),l=wi(t.get("barMinWidth")||((i=t).pipelineContext&&i.pipelineContext.large?.5:1),e),h=t.get("barGap"),u=t.get("barCategoryGap");o.push({bandWidth:e,barWidth:s,barMaxWidth:a,barMinWidth:l,barGap:h,barCategoryGap:u,axisKey:iu(r),stackId:eu(t)})}),e={},f(o,function(t,i){var n=t.axisKey,o=t.bandWidth,o=e[n]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},r=o.stacks,n=(e[n]=o,t.stackId),a=(r[n]||o.autoWidthCount++,r[n]=r[n]||{width:0,maxWidth:0},t.barWidth),a=(a&&!r[n].width&&(r[n].width=a,a=Math.min(o.remainedWidth,a),o.remainedWidth-=a),t.barMaxWidth),a=(a&&(r[n].maxWidth=a),t.barMinWidth),r=(a&&(r[n].minWidth=a),t.barGap),n=(null!=r&&(o.gap=r),t.barCategoryGap);null!=n&&(o.categoryGap=n)}),i={},f(e,function(t,e){i[e]={};var n,o=t.stacks,r=t.bandWidth,a=t.categoryGap,s=(null==a&&(s=v(o).length,a=Math.max(35-4*s,15)+"%"),wi(a,r)),l=wi(t.gap,1),h=t.remainedWidth,u=t.autoWidthCount,c=(h-s)/(u+(u-1)*l),c=Math.max(c,0),p=(f(o,function(t){var e,i=t.maxWidth,n=t.minWidth;t.width?(e=t.width,i&&(e=Math.min(e,i)),n&&(e=Math.max(e,n)),t.width=e,h-=e+l*e,u--):(e=c,i&&i<e&&(e=Math.min(i,h)),(e=n&&e<n?n:e)!==c&&(t.width=e,h-=e+l*e,u--))}),c=(h-s)/(u+(u-1)*l),c=Math.max(c,0),0),d=(f(o,function(t,e){t.width||(t.width=c),p+=(n=t).width*(1+l)}),n&&(p-=n.width*l),-p/2);f(o,function(t,n){i[e][n]=i[e][n]||{bandWidth:r,offset:d,width:t.width},d+=t.width*(1+l)})}),i}function ru(t){return t=oT.call(this,t)||this,t.type="time",t}function au(t,e){return 30<(t/=e?lx:sx)?30:20<t?20:15<t?15:10<t?10:5<t?5:2<t?2:1}function su(){var t=null!==sT&&sT.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new eT,t._interval=0,t}function lu(t,e){return uT(t,Si(e))}function hu(t,e,i){this._prepareParams(t,e,i)}function uu(t,e){return null==e?null:O(e)?NaN:t.parse(e)}function cu(t,e){var i,n,o,r,a,s=t.type,l=(l=e,h=(u=t).getExtent(),(c=u.rawExtentInfo)||(c=new yT(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=nu("bar",c),i=!1,f(t,function(t){i=i||t.getBaseAxis()===e.axis}),i)&&(s=ou(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[iu(e)],t}(s,n.axis))&&(o=1/0,f(s,function(t){o=Math.min(t.offset,o)}),r=-1/0,f(s,function(t){r=Math.max(t.offset+t.width,r)}),o=Math.abs(o),r=Math.abs(r),t+=r/(n=o+r)*(a=(s=t-c)/(1-(o+r)/a)-s),c-=o/n*a),h=(s={min:c,max:t}).min,u=s.max),{extent:[h,u],fixMin:l.minFixed,fixMax:l.maxFixed}}function pu(t,e){var i=cu(t,e),n=i.extent,o=e.get("splitNumber"),r=(t instanceof gT&&(t.base=e.get("logBase")),t.type),a=e.get("interval"),r="interval"===r||"time"===r;t.setExtent(n[0],n[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:r?e.get("minInterval"):null,maxInterval:r?e.get("maxInterval"):null}),null!=a&&t.setInterval&&t.setInterval(a)}function du(t,e){if(e=e||t.get("type"))switch(e){case"category":return new $S({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(qS.getClass(e)||eT)}}function fu(t){var e,i,n,o=t.getLabelModel().get("formatter"),r="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=o,function(e,i){return t.scale.getFormattedLabel(e,i,n)}):b(o)?(i=o,function(e){return e=t.scale.getLabel(e),i.replace("{value}",null!=e?e:"")}):w(o)?(e=o,function(i,n){return null!=r&&(n=i.value-r),e(gu(t,i),n,null!=i.level?{level:i.level}:null)}):function(e){return t.scale.getLabel(e)}}function gu(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function yu(t){var e=t.model,i=t.scale;if(e.get(["axisLabel","show"])&&!i.isBlank()){var n,o,r=i.getExtent(),a=i instanceof $S?i.count():(n=i.getTicks()).length,s=t.getLabelModel(),l=fu(t),h=1;40<a&&(h=Math.ceil(a/40));for(var u,c,p,d=0;d<a;d+=h){var f=l(n?n[d]:{value:r[0]+d},d),f=s.getTextRect(f),g=(f=f,u=s.get("rotate")||0,c=p=g=c=void 0,u=u*Math.PI/180,c=f.width,g=f.height,p=c*Math.abs(Math.cos(u))+Math.abs(g*Math.sin(u)),c=c*Math.abs(Math.sin(u))+Math.abs(g*Math.cos(u)),new py(f.x,f.y,p,c));o?o.union(g):o=g}return o}}function mu(t){return t=t.get("interval"),null==t?"auto":t}function vu(t){return"category"===t.type&&0===mu(t.getLabelModel())}function _u(){}function xu(t){x(t)?f(t,function(t){xu(t)}):0<=u(xT,t)||(xT.push(t),(t=w(t)?{install:t}:t).install(wT))}function wu(t,e){return Math.abs(t-e)<bT}function bu(t,e,i){var n=0,o=t[0];if(o){for(var r=1;r<t.length;r++){var a=t[r];n+=Cn(o[0],o[1],a[0],a[1],e,i),o=a}var s=t[0];return wu(o[0],s[0])&&wu(o[1],s[1])||(n+=Cn(o[0],o[1],s[0],s[1],e,i)),0!==n}}function Su(t,e){for(var i=0;i<t.length;i++)at(t[i],t[i],e)}function Tu(t,e,i,n){for(var o=0;o<t.length;o++){var r=t[o];(r=n?n.project(r):r)&&isFinite(r[0])&&isFinite(r[1])&&(st(e,e,r),lt(i,i,r))}}function Cu(t){this.name=t}function Mu(t,e,i){return t=TT.call(this,t)||this,t.type="geoJSON",t.geometries=e,t._center=i&&[i[0],i[1]],t}function Iu(t,e){return t=CT.call(this,t)||this,t.type="geoSVG",t._elOnlyForCalculate=e,t}function ku(t,e,i){for(var n=0;n<t.length;n++)t[n]=Au(t[n],e[n],i)}function Au(t,e,i){for(var n=[],o=e[0],r=e[1],a=0;a<t.length;a+=2){var s=(s=t.charCodeAt(a)-64)>>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);n.push([(o=s+=o)/i,(r=l+=r)/i])}return n}function Du(t,e){var i,n,o;return g(m((t=(i=t).UTF8Encoding?(null==(o=(n=i).UTF8Scale)&&(o=1024),f(n.features,function(t){var e=t.geometry,i=e.encodeOffsets,n=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=Au(n,i,o);break;case"Polygon":case"MultiLineString":ku(n,i,o);break;case"MultiPolygon":f(n,function(t,e){return ku(t,i[e],o)})}}),n.UTF8Encoding=!1,n):i).features,function(t){return t.geometry&&t.properties&&0<t.geometry.coordinates.length}),function(t){var i=t.properties,n=t.geometry,o=[];switch(n.type){case"Polygon":var r=n.coordinates;o.push(new MT(r[0],r.slice(1)));break;case"MultiPolygon":f(n.coordinates,function(t){t[0]&&o.push(new MT(t[0],t.slice(1)))});break;case"LineString":o.push(new IT([n.coordinates]));break;case"MultiLineString":o.push(new IT(n.coordinates))}return t=new kT(i[e||"name"],o,i.cp),t.properties=i,t})}function Pu(t){return"category"===t.type?(o=(n=t).getLabelModel(),r=Lu(n,o),!o.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r):(o=(e=t).scale.getTicks(),i=fu(e),{labels:g(o,function(t,n){return{level:t.level,formattedLabel:i(t,n),rawLabel:e.scale.getLabel(t),tickValue:t.value}})});var e,i,n,o,r}function Ou(t,e){var i,n,o,r,a,s;return"category"===t.type?(e=e,r=Eu(i=t,"ticks"),a=mu(e),(s=Ru(r,a))||(e.get("show")&&!i.scale.isBlank()||(n=[]),n=w(a)?zu(i,a,!0):"auto"===a?(s=Lu(i,i.getLabelModel()),o=s.labelCategoryInterval,g(s.labels,function(t){return t.tickValue})):Bu(i,o=a,!0),Nu(r,a,{ticks:n,tickCategoryInterval:o}))):{ticks:g(t.scale.getTicks(),function(t){return t.value})}}function Lu(t,e){var i,n=Eu(t,"labels"),e=mu(e),o=Ru(n,e);return o||Nu(n,e,{labels:w(e)?zu(t,e):Bu(t,i="auto"===e?null!=(n=AT(o=t).autoInterval)?n:AT(o).autoInterval=o.calculateCategoryInterval():e),labelCategoryInterval:i})}function Eu(t,e){return AT(t)[e]||(AT(t)[e]=[])}function Ru(t,e){for(var i=0;i<t.length;i++)if(t[i].key===e)return t[i].value}function Nu(t,e,i){return t.push({key:e,value:i}),i}function Bu(t,e,i){function n(t){var e={value:t};l.push(i?t:{formattedLabel:o(e),rawLabel:r.getLabel(e),tickValue:t})}for(var o=fu(t),r=t.scale,a=r.getExtent(),s=t.getLabelModel(),l=[],h=Math.max((e||0)+1,1),e=a[0],u=r.count(),u=(0!==e&&1<h&&2<u/h&&(e=Math.round(Math.ceil(e/h)*h)),vu(t)),t=s.get("showMinLabel")||u,s=s.get("showMaxLabel")||u,c=(t&&e!==a[0]&&n(a[0]),e);c<=a[1];c+=h)n(c);return s&&c-h!==a[1]&&n(a[1]),l}function zu(t,e,i){var n=t.scale,o=fu(t),r=[];return f(n.getTicks(),function(t){var a=n.getLabel(t),s=t.value;e(t.value,a)&&r.push(i?s:{formattedLabel:o(t),rawLabel:a,tickValue:s})}),r}function Fu(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}function Vu(t,e){e=(t[1]-t[0])/e/2,t[0]+=e,t[1]-=e}function Yu(t,e,i,n,o,r,a,s){var l=o-t,h=r-e,i=i-t,n=n-e,u=Math.sqrt(i*i+n*n),l=(l*(i/=u)+h*(n/=u))/u,h=(s&&(l=Math.min(Math.max(l,0),1)),a[0]=t+(l*=u)*i),s=a[1]=e+l*n;return Math.sqrt((h-o)*(h-o)+(s-r)*(s-r))}function Hu(t,e,i,n,o,r,a){return i<0&&(t+=i,i=-i),n<0&&(e+=n,n=-n),i=t+i,n=e+n,t=a[0]=Math.min(Math.max(o,t),i),i=a[1]=Math.min(Math.max(r,e),n),Math.sqrt((t-o)*(t-o)+(i-r)*(i-r))}function Wu(t,e,i){for(var n,o,r,a,s,l,h,u,c,p=0,d=0,f=0,g=0,y=1/0,m=e.data,v=t.x,_=t.y,x=0;x<m.length;){var w=m[x++],b=(1===x&&(f=p=m[x],g=d=m[x+1]),y);switch(w){case OT.M:p=f=m[x++],d=g=m[x++];break;case OT.L:b=Yu(p,d,m[x],m[x+1],v,_,ET,!0),p=m[x++],d=m[x++];break;case OT.C:b=Yt(p,d,m[x++],m[x++],m[x++],m[x++],m[x],m[x+1],v,_,ET),p=m[x++],d=m[x++];break;case OT.Q:b=Gt(p,d,m[x++],m[x++],m[x],m[x+1],v,_,ET),p=m[x++],d=m[x++];break;case OT.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)*(r=M)/C+S,s=_,l=ET,c=u=h=void 0,a-=n=S,s-=o=T,h=Math.sqrt(a*a+s*s),u=(a/=h)*r+n,c=(s/=h)*r+o,b=Math.abs(D-P)%PT<1e-4||((P=A?(A=D,D=Tn(P),Tn(A)):(D=Tn(D),Tn(P)))<D&&(P+=PT),(A=Math.atan2(s,a))<0&&(A+=PT),D<=A&&A<=P)||D<=A+PT&&A+PT<=P?(l[0]=u,l[1]=c,h-r):(c=((A=r*Math.cos(D)+n)-a)*(A-a)+((u=r*Math.sin(D)+o)-s)*(u-s))<(n=((h=r*Math.cos(P)+n)-a)*(h-a)+((D=r*Math.sin(P)+o)-s)*(D-s))?(l[0]=A,l[1]=u,Math.sqrt(c)):(l[0]=h,l[1]=D,Math.sqrt(n)),p=Math.cos(I+k)*C+S,d=Math.sin(I+k)*M+T;break;case OT.R:b=Hu(f=p=m[x++],g=d=m[x++],m[x++],m[x++],v,_,ET);break;case OT.Z:b=Yu(p,d,f,g,v,_,ET,!0),p=f,d=g}b<y&&(y=b,i.set(ET[0],ET[1]))}return y}function Xu(t,e){if(t){var i=t.getTextGuideLine(),n=t.getTextContent();if(n&&i){var o=t.textGuideLineConfig||{},r=[[0,0],[0,0],[0,0]],a=o.candidates||LT,s=n.getBoundingRect().clone(),l=(s.applyTransform(n.getComputedTransform()),1/0),h=o.anchor,u=t.getComputedTransform(),c=u&&Ke([],u),p=e.get("length2")||0;h&&BT.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=RT,w=zT,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)}ny.scaleAndAdd(NT,RT,zT,p),NT.transform(c),y=t.getBoundingRect(),y=h?h.distance(NT):t instanceof Bm?Wu(NT,t.path,BT):(m=BT,d=Hu((d=y).x,y.y,y.width,y.height,NT.x,NT.y,ET),m.set(ET[0],ET[1]),d),y<l&&(l=y,NT.transform(u),BT.transform(u),BT.toArray(r[0]),NT.toArray(r[1]),RT.toArray(r[2]))}n=r,(o=e.get("minTurnAngle"))<=180&&0<o&&(o=o/180*Math.PI,RT.fromArray(n[0]),NT.fromArray(n[1]),BT.fromArray(n[2]),ny.sub(zT,RT,NT),ny.sub(FT,BT,NT),e=zT.len(),f=FT.len(),e<.001||f<.001||(zT.scale(1/e),FT.scale(1/f),e=zT.dot(FT),Math.cos(o)<e&&(f=Yu(NT.x,NT.y,BT.x,BT.y,RT.x,RT.y,VT,!1),YT.fromArray(VT),YT.scaleAndAdd(FT,f/Math.tan(Math.PI-o)),e=BT.x!==NT.x?(YT.x-NT.x)/(BT.x-NT.x):(YT.y-NT.y)/(BT.y-NT.y),isNaN(e)||(e<0?ny.copy(YT,NT):1<e&&ny.copy(YT,BT),YT.toArray(n[1]))))),i.setShape({points:r})}}}function Uu(t,e,i,n){var o="normal"===i,i=o?t:t.ensureState(i),e=(i.ignore=e,n.get("smooth")),e=(e&&!0===e&&(e=.3),i.shape=i.shape||{},0<e&&(i.shape.smooth=e),n.getModel("lineStyle").getLineStyle());o?t.useStyle(e):i.style=e}function Gu(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=Of(n[0],n[1]),o=Of(n[1],n[2]);e&&o?(i=Math.min(e,o)*i,e=rt([],n[1],n[0],i/e),i=rt([],n[1],n[2],i/o),o=rt([],e,i,.5),t.bezierCurveTo(e[0],e[1],e[0],e[1],o[0],o[1]),t.bezierCurveTo(i[0],i[1],i[0],i[1],n[2][0],n[2][1])):(t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]))}else for(var r=1;r<n.length;r++)t.lineTo(n[r][0],n[r][1])}function ju(t){for(var e=[],i=0;i<t.length;i++){var n,o,r,a,s,l,h=t[i];h.defaultAttr.ignore||(o=(n=h.label).getComputedTransform(),r=n.getBoundingRect(),a=!o||o[1]<1e-5&&o[2]<1e-5,l=n.style.margin||0,(s=r.clone()).applyTransform(o),s.x-=l/2,s.y-=l/2,s.width+=l,s.height+=l,l=a?new A_(r,o):null,e.push({label:n,labelLine:h.labelLine,rect:s,localRect:r,obb:l,priority:h.priority,defaultAttr:h.defaultAttr,layoutOption:h.computedLayoutOption,axisAligned:a,transform:o}))}return e}function qu(t,e,i,n,o,r){function a(){_=w.rect[e]-n,x=o-b.rect[e]-b.rect[i]}function s(t,e,i){t<0&&(0<(e=Math.min(e,-t))?(l(e*i,0,c),(e+=t)<0&&h(-e*i,1)):h(-t*i,1))}function l(i,n,o){0!==i&&(d=!0);for(var r=n;r<o;r++){var a=t[r];a.rect[e]+=i,a.label[e]+=i}}function h(n,o){for(var r=[],a=0,s=1;s<c;s++){var h=t[s-1].rect,h=Math.max(t[s].rect[e]-h[e]-h[i],0);r.push(h),a+=h}if(a){var u=Math.min(Math.abs(n)/a,o);if(0<n)for(s=0;s<c-1;s++)l(r[s]*u,0,s+1);else for(s=c-1;0<s;s--)l(-r[s-1]*u,s,c)}}function u(t){for(var e=t<0?-1:1,i=(t=Math.abs(t),Math.ceil(t/(c-1))),n=0;n<c-1;n++)if(0<e?l(i,0,n+1):l(-i,c-n-1,c),(t-=i)<=0)return}var c=t.length;if(!(c<2)){t.sort(function(t,i){return t.rect[e]-i.rect[e]});for(var p=0,d=!1,f=0,g=0;g<c;g++){var y,m=t[g],v=m.rect;(y=v[e]-p)<0&&(v[e]-=y,m.label[e]-=y,d=!0),f+=Math.max(-y,0),p=v[e]+v[i]}0<f&&r&&l(-f/c,0,c);var _,x,w=t[0],b=t[c-1];return a(),_<0&&h(-_,.8),x<0&&h(x,.8),a(),s(_,x,1),s(x,_,-1),a(),_<0&&u(-_),x<0&&u(x),d}}function Zu(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 py(0,0,0,0)),o=0;o<t.length;o++){for(var r=t[o],a=r.axisAligned,s=r.localRect,l=r.transform,h=r.label,u=r.labelLine,c=(n.copy(r.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05,r.obb),p=!1,d=0;d<i.length;d++){var f=i[d];if(n.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new A_(f.localRect,f.transform)),(c=c||new A_(s,l)).intersect(f.obb)){p=!0;break}}}p?(e(h),u&&e(u)):(h.attr("ignore",r.defaultAttr.ignore),u&&u.attr("ignore",r.defaultAttr.labelGuideIgnore),i.push(r))}}function Ku(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 Qu(t,e,i){for(var n=0;n<i.length;n++){var o=i[n];null!=e[o]&&(t[o]=e[o])}}function $u(){this._labelList=[],this._chartViewList=[]}function Ju(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,i){(qT(e).labelManager||(qT(e).labelManager=new jT)).clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,i){var n=qT(e).labelManager;i.updatedSeries.forEach(function(t){n.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}function tc(t,e,i){var n=df.createCanvas(),o=e.getWidth(),e=e.getHeight(),r=n.style;return r&&(r.position="absolute",r.left="0",r.top="0",r.width=o+"px",r.height=e+"px",n.setAttribute("data-zr-dom-id",t)),n.width=o*i,n.height=e*i,n}function ec(t,e,i){var n,o=ZT.call(this)||this,t=(o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||Gg,"string"==typeof t?n=tc(t,e,i):C(t)&&(t=(n=t).id),o.id=t,(o.dom=n).style);return t&&(G(n),n.onselectstart=function(){return!1},t.padding="0",t.margin="0",t.borderWidth="0"),o.painter=e,o.dpr=i,o}function ic(t,e,i,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=i=l({},i||{}),this.dpr=i.devicePixelRatio||Gg,this._singleCanvas=o,(this.root=t).style&&(G(t),t.innerHTML=""),this.storage=e;var r,a,e=this._zlevelList,s=(this._prevDisplayList=[],this._layers);o?(r=(o=t).width,a=o.height,null!=i.width&&(r=i.width),null!=i.height&&(a=i.height),this.dpr=i.devicePixelRatio||1,o.width=r*this.dpr,o.height=a*this.dpr,this._width=r,this._height=a,(r=new KT(o,this,this.dpr)).__builtin__=!0,r.initContext(),(s[QT]=r).zlevel=QT,e.push(QT),this._domRoot=t):(this._width=Rl(t,0,i),this._height=Rl(t,1,i),r=this._domRoot=(a=this._width,o=this._height,(s=document.createElement("div")).style.cssText=["position:relative","width:"+a+"px","height:"+o+"px","padding:0","margin:0","border-width:0"].join(";")+";",s),t.appendChild(r))}function nc(){var t=null!==JT&&JT.apply(this,arguments)||this;return t.type="dataset",t}function oc(){var t=null!==eC&&eC.apply(this,arguments)||this;return t.type="dataset",t}function rc(t){t.registerComponentModel(tC),t.registerComponentView(iC)}function ac(){var t=null!==nC&&nC.apply(this,arguments)||this;return t.type=ac.type,t.hasSymbolVisual=!0,t}function sc(t,e){var i,n=t.mapDimensionsAll("defaultedLabel"),o=n.length;if(1===o)return null!=(i=ls(t,e,n[0]))?i+"":null;if(o){for(var r=[],a=0;a<n.length;a++)r.push(ls(t,e,n[a]));return r.join(" ")}}function lc(t,e,i,n){var o=rC.call(this)||this;return o.updateData(t,e,i,n),o}function hc(t,e){this.parent.drift(t,e)}function uc(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 cc(t){return(t=null==t||C(t)?t:{isIgnore:t})||{}}function pc(t){var t=t.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Ar(t),cursorStyle:t.get("cursor")}}function dc(t){this.group=new wy,this._SymbolCtor=t||aC}function fc(t,e,i){var n=t.getBaseAxis(),o=t.getOtherAxis(n),i=function(t,e){var i=0,t=t.scale.getExtent();return"start"===e?i=t[0]:"end"===e?i=t[1]:0<t[0]?i=t[0]:t[1]<0&&(i=t[1]),i}(o,i),n=n.dim,o=o.dim,r=e.mapDimension(o),a=e.mapDimension(n),s="x"===o||"radius"===o?1:0,t=g(t.dimensions,function(t){return e.mapDimension(t)}),l=!1,h=e.getCalculationInfo("stackResultDimension");return zh(e,t[0])&&(l=!0,t[0]=h),zh(e,t[1])&&(l=!0,t[1]=h),{dataDimsForPoint:t,valueStart:i,valueAxisDim:o,baseAxisDim:n,stacked:!!l,valueDim:r,baseDim:a,baseDataOffset:s,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function gc(t,e,i,n){var o=NaN,r=(t.stacked&&(o=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(o)&&(o=t.valueStart),t.baseDataOffset),a=[];return a[r]=i.get(t.baseDim,n),a[1-r]=o,e.dataToPoint(a)}function yc(t,e){return isNaN(t)||isNaN(e)}function mc(t,e,i,n,o,r,a,s,l){for(var h,u,c,p,d=i,f=0;f<n;f++){var g=e[2*d],y=e[2*d+1];if(o<=d||d<0)break;if(yc(g,y)){if(l){d+=r;continue}break}if(d===i)t[0<r?"moveTo":"lineTo"](g,y),c=g,p=y;else{var m=g-h,v=y-u;if(m*m+v*v<.5){d+=r;continue}if(0<a){for(var _=d+r,x=e[2*_],w=e[2*_+1];x===g&&w===y&&f<n;)f++,d+=r,x=e[2*(_+=r)],w=e[2*_+1],g=e[2*d],y=e[2*d+1];var b=f+1;if(l)for(;yc(x,w)&&b<n;)b++,x=e[2*(_+=r)],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||yc(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=hC(O=g+m*a*S,uC(x,g)),L=hC(L,uC(w,y)),O=uC(O,hC(x,g)),D=y-(v=(L=uC(L,hC(w,y)))-y)*I/k,A=hC(A=g-(m=O-g)*I/k,uC(h,g)),D=hC(D,uC(u,y)),O=g+(m=g-(A=uC(A,hC(h,g))))*k/I,y+(v=y-(D=uC(D,hC(u,y))))*k/I)),t.bezierCurveTo(c,p,A,D,g,y),c=O,p=L}else t.lineTo(g,y)}h=g,u=y,d+=r}return f}function vc(t){return t=sC.call(this,t)||this,t.type="ec-polyline",t}function _c(){return null!==dC&&dC.apply(this,arguments)||this}function xc(t){return t=gC.call(this,t)||this,t.type="ec-polygon",t}function wc(t,e){if(t.length===e.length){for(var i=0;i<t.length;i++)if(t[i]!==e[i])return;return 1}}function bc(t){for(var e=1/0,i=1/0,n=-1/0,o=-1/0,r=0;r<t.length;){var a=t[r++],s=t[r++];isNaN(a)||(e=Math.min(a,e),n=Math.max(a,n)),isNaN(s)||(i=Math.min(s,i),o=Math.max(s,o))}return[[e,i],[n,o]]}function Sc(t,e){var t=bc(t),i=t[0],t=t[1],e=bc(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 Tc(t){return T(t)?t:t?.5:0}function Cc(t,e,i){for(var e=e.getBaseAxis(),n="x"===e.dim||"radius"===e.dim?0:1,o=[],r=0,a=[],s=[],l=[];r<t.length-2;r+=2)switch(l[0]=t[r+2],l[1]=t[r+3],s[0]=t[r],s[1]=t[r+1],o.push(s[0],s[1]),i){case"end":a[n]=l[n],a[1-n]=s[1-n],o.push(a[0],a[1]);break;case"middle":var h=[];a[n]=h[n]=(s[n]+l[n])/2,a[1-n]=s[1-n],h[1-n]=l[1-n],o.push(a[0],a[1]),o.push(h[0],h[1]);break;default:a[n]=s[n],a[1-n]=l[1-n],o.push(a[0],a[1])}return o.push(t[r++],t[r++]),o}function Mc(t,e,i){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var o,r=n.length-1;0<=r;r--){var a,s=t.getDimensionInfo(n[r].dimension);if("x"===(a=s&&s.coordDim)||"y"===a){o=n[r];break}}if(o){var l=e.getAxis(a),e=g(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),h=e.length,u=o.outerColors.slice(),i=(h&&e[0].coord>e[h-1].coord&&(e.reverse(),u.reverse()),function(t,e){function i(t,e,i){var n=t.coord;return{coord:i,color:ue((i-n)/(e.coord-n),[t.color,e.color])}}for(var n,o,r=[],a=t.length,s=0;s<a;s++){var l=t[s],h=l.coord;if(h<0)n=l;else{if(e<h){o?r.push(i(o,l,e)):n&&r.push(i(n,l,0),i(n,l,e));break}n&&(r.push(i(n,l,0)),n=null),r.push(l),o=l}}return r}(e,"x"===a?i.getWidth():i.getHeight())),c=i.length;if(!c&&h)return e[0].coord<0?u[1]||e[h-1].color:u[0]||e[0].color;var p=i[0].coord-10,h=i[c-1].coord+10,d=h-p;return d<.001?"transparent":(f(i,function(t){t.offset=(t.coord-p)/d}),i.push({offset:c?i[c-1].offset:.5,color:u[1]||"transparent"}),i.unshift({offset:c?i[0].offset:.5,color:u[0]||"transparent"}),e=new b_(0,0,0,0,i,!0),e[a]=p,e[a+"2"]=h,e)}}}function Ic(t,e,i){var t=t.get("showAllSymbol"),n="auto"===t;if(!t||n){var o,r,a=i.getAxesByScale("ordinal")[0];if(a&&(!n||!function(t,e){for(var i=t.getExtent(),n=Math.abs(i[1]-i[0])/t.scale.count(),o=(isNaN(n)&&(n=0),e.count()),r=Math.max(1,Math.round(o/5)),a=0;a<o;a+=r)if(1.5*aC.getSymbolSize(e,a)[t.isHorizontal()?1:0]>n)return;return 1}(a,e)))return o=e.mapDimension(a.dim),r={},f(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue),r[t]=1}),function(t){return!r.hasOwnProperty(e.get(o,t))}}}function kc(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 Ac(t,e){return[t[2*e],t[2*e+1]]}function Dc(t){if(t.get(["endLabel","show"]))return 1;for(var e=0;e<uv.length;e++)if(t.get([uv[e],"endLabel","show"]))return 1}function Pc(t,e,i,n){var o,r,a,s,l,h,u,c,p,d,f,g,y,m,v,_,x;return x="cartesian2d",e.type===x?(o=n.getModel("endLabel"),r=o.get("valueAnimation"),a=n.getData(),s={lastFrameIndex:0},x=Dc(n)?function(i,n){t._endLabelOnDuring(i,n,a,s,r,o,e)}:null,l=e.getBaseAxis().isHorizontal(),u=i,c=n,p=function(){var e=t._endLabel;e&&i&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},d=x,f=(m=(h=e).getArea()).x,g=m.y,y=m.width,m=m.height,v=c.get(["lineStyle","width"])||2,f-=v/2,g-=v/2,y+=v,m+=v,f=Math.floor(f),y=Math.round(y),_=new qm({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,ir(_,{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=bi(c.r0,1),v=bi(c.r,1),l=new Qv({shape:{cx:bi(g.cx,1),cy:bi(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,ir(l,{shape:{endAngle:c.endAngle,r:v}},f)),l)}function Oc(){return null!==mC&&mC.apply(this,arguments)||this}function Lc(){return null!==wC&&wC.apply(this,arguments)||this}function Ec(){return null!==SC&&SC.apply(this,arguments)||this}function Rc(t,e,n,o){f(MC,function(r,a){function l(){var t=null!==h&&h.apply(this,arguments)||this;return t.type=e+"Axis."+a,t}var h,u=s(s({},CC[a],!0),o,!0),u=(i(l,h=n),l.prototype.mergeDefaultAndTheme=function(t,e){var i=ga(this),n=i?ma(t):{};s(t,e.getTheme().get(a+"Axis")),s(t,this.getDefaultOption()),t.type=Nc(t),i&&ya(t,n,i)},l.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=KS.createByAxisModel(this))},l.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=e+"Axis."+a,l.defaultOption=u,l);t.registerComponentModel(u)}),t.registerSubTypeDefaulter(e+"Axis",Nc)}function Nc(t){return t.type||(t.data?"category":"value")}function Bc(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}function zc(t){return"interval"===t.type||"time"===t.type}function Fc(){var t=null!==kC&&kC.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=IC,t}function Vc(t,e,i,n,o){return t=DC.call(this,t,e,i)||this,t.index=0,t.type=n||"value",t.position=o||"bottom",t}function Yc(t,e,i){i=i||{};var t=t.coordinateSystem,n=e.axis,o={},r=n.getAxesOnZeroOf()[0],a=n.position,s=r?"onZero":a,n=n.dim,t=t.getRect(),t=[t.x,t.x+t.width,t.y,t.y+t.height],l={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,h="x"===n?[t[2]-h,t[3]+h]:[t[0]-h,t[1]+h],u=(r&&(u=r.toGlobalCoord(r.dataToCoord(0)),h[l.onZero]=Math.max(Math.min(u,h[1]),h[0])),o.position=["y"===n?h[l[s]]:t[0],"x"===n?h[l[s]]:t[3]],o.rotation=Math.PI/2*("x"===n?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],o.labelOffset=r?h[l[a]]-h[l.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),L(i.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection),e.get(["axisLabel","rotate"]));return o.labelRotate="top"===s?-u:u,o.z2=1,o}function Hc(t){return"cartesian2d"===t.get("coordinateSystem")}function Wc(t){var e={xAxisModel:null,yAxisModel:null};return f(e,function(i,n){var o=n.replace(/Model$/,""),o=t.getReferringComponents(o,Oy).models[0];e[n]=o}),e}function Xc(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=IC,this._initCartesian(t,e,i),this.model=t}function Uc(t,e){return t.getCoordSysModel()===e}function Gc(t,e,i,n){function o(t){return t.dim+"_"+t.index}i.getAxesOnZeroOf=function(){return r?[r]:[]};var r,a=t[e],t=i.model,e=t.get(["axisLine","onZero"]),i=t.get(["axisLine","onZeroAxisIndex"]);if(e){if(null!=i)jc(a[i])&&(r=a[i]);else for(var s in a)if(a.hasOwnProperty(s)&&jc(a[s])&&!n[o(a[s])]){r=a[s];break}r&&(n[o(r)]=!0)}}function jc(t){return t&&"category"!==t.type&&"time"!==t.type&&(e=(t=(t=t).scale.getExtent())[0],t=t[1],!(0<e&&0<t||e<0&&t<0));var e}function qc(t,e){this.group=new wy,this.opt=e,this.axisModel=t,h(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}}),t=new wy({x:e.position[0],y:e.position[1],rotation:e.rotation}),t.updateTransform(),this._transformGroup=t}function Zc(t){t&&(t.ignore=!0)}function Kc(t,e){var i,n=t&&t.getBoundingRect().clone(),o=e&&e.getBoundingRect().clone();if(n&&o)return qe(i=Xe([]),i,-t.rotation),n.applyTransform(Ge([],i,t.getLocalTransform())),o.applyTransform(Ge([],i,e.getLocalTransform())),n.intersect(o)}function Qc(t){return"middle"===t||"center"===t}function $c(t,e,i,n,o){for(var r=[],a=[],s=[],l=0;l<t.length;l++){var h=t[l].coord,h=(a[0]=h,s[a[1]=0]=h,s[1]=i,e&&(at(a,a,e),at(s,s,e)),new u_({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0}));h.anid=o+"_"+t[l].tickValue,r.push(h)}return r}function Jc(t,e){var i,n,o,r,s,l,u,c={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return i=c,e=e,o=(n=t).getComponent("tooltip"),r=n.getComponent("axisPointer"),s=r.get("link",!0)||[],l=[],f(e.getCoordinateSystems(),function(t){function e(e,o,p){var d,g=p.model.getModel("axisPointer",r),y=g.get("show");y&&("auto"!==y||e||ip(g))&&(null==o&&(o=g.get("triggerTooltip")),y=(g=e?function(t,e,i,n,o,r){var s=e.getModel("axisPointer"),l={};return f(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){l[t]=a(s.get(t))}),l.snap="category"!==t.type&&!!r,"cross"===s.get("type")&&(l.type="line"),e=l.label||(l.label={}),null==e.show&&(e.show=!1),"cross"===o&&(o=s.get(["label","show"]),e.show=null==o||o,r||(o=l.lineStyle=s.get("crossStyle"))&&h(e,o.textStyle)),t.model.getModel("axisPointer",new J_(l,i,n))}(p,c,r,n,e,o):g).get("snap"),e=np(p.model),d=o||y||"category"===p.type,o=i.axesInfo[e]={key:e,axis:p,coordSys:t,axisPointerModel:g,triggerTooltip:o,involveSeries:d,snap:y,useHandle:ip(g),seriesModels:[],linkGroup:null},u[e]=o,i.seriesInvolved=i.seriesInvolved||d,null!=(y=function(t,e){for(var i=e.model,n=e.dim,o=0;o<t.length;o++){var r=t[o]||{};if(tp(r[n+"AxisId"],i.id)||tp(r[n+"AxisIndex"],i.componentIndex)||tp(r[n+"AxisName"],i.name))return o}}(s,p)))&&((g=l[y]||(l[y]={axesInfo:{}})).axesInfo[e]=o,g.mapper=s[y].mapper,o.linkGroup=g)}var u,c,p,d,g;t.axisPointerEnabled&&(p=np(t.model),u=i.coordSysAxesInfo[p]={},c=(i.coordSysMap[p]=t).model.getModel("tooltip",o),f(t.getAxes(),_(e,!1,null)),t.getTooltipAxes)&&o&&c.get("show")&&(p="axis"===c.get("trigger"),d="cross"===c.get(["axisPointer","type"]),g=t.getTooltipAxes(c.get(["axisPointer","axis"])),(p||d)&&f(g.baseAxes,_(e,!d||"cross",p)),d)&&f(g.otherAxes,_(e,"cross",!1))}),c.seriesInvolved&&(u=c,t.eachSeries(function(t){var e=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),n=t.get(["tooltip","show"],!0);e&&"none"!==i&&!1!==i&&"item"!==i&&!1!==n&&!1!==t.get(["axisPointer","show"],!0)&&f(u.coordSysAxesInfo[np(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 tp(t,e){return"all"===t||x(t)&&0<=u(t,e)||t===e}function ep(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[np(t)]}function ip(t){return!!t.get(["handle","show"])}function np(t){return t.type+"||"+t.id}function op(){var t=null!==LC&&LC.apply(this,arguments)||this;return t.type=op.type,t}function rp(){var t=null!==EC&&EC.apply(this,arguments)||this;return t.type=rp.type,t.axisPointerClass="CartesianAxisPointer",t}function ap(){var t=null!==RC&&RC.apply(this,arguments)||this;return t.type=ap.type,t}function sp(){var t=null!==jC&&jC.apply(this,arguments)||this;return t.type=GC.type,t}function lp(){var t=null!==ZC&&ZC.apply(this,arguments)||this;return t.type="grid",t}function hp(){var t=null!==$C&&$C.apply(this,arguments)||this;return t.type=hp.type,t.layoutMode={type:"box",ignoreSize:!0},t}function up(){var t=null!==tM&&tM.apply(this,arguments)||this;return t.type=up.type,t}function cp(){var t=null!==iM&&iM.apply(this,arguments)||this;return t.type=cp.type,t.layoutMode={type:"box",ignoreSize:!0},t}function pp(){var t=null!==nM&&nM.apply(this,arguments)||this;return t.type=pp.type,t.newlineDisabled=!1,t}function dp(t,e,i,n){yp(t,e,i,n),i.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),gp(t,e,i,n)}function fp(t){for(var e,i=t.getZr().storage.getDisplayList(),n=0,o=i.length;n<o&&!(e=i[n].states.emphasis);)n++;return e&&e.hoverLayer}function gp(t,e,i,n){fp(i)||i.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function yp(t,e,i,n){fp(i)||i.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function mp(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 vp(t,e,i){var n,o={},r="toggleSelected"===t;return i.eachComponent("legend",function(i){r&&null!=n?i[n?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?i[t]():(i[t](e.name),n=i.isSelected(e.name)),f(i.getData(),function(t){var e,t=t.get("name");"\n"!==t&&""!==t&&(e=i.isSelected(t),o.hasOwnProperty(t)?o[t]=o[t]&&e:o[t]=e)})}),"allSelect"===t||"inverseSelect"===t?{selected:o}:{name:e.name,selected:o}}function _p(t){t.registerComponentModel(oM),t.registerComponentView(lM),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,mp),t.registerSubTypeDefaulter("legend",function(){return"plain"}),(t=t).registerAction("legendToggleSelect","legendselectchanged",_(vp,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",_(vp,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",_(vp,"inverseSelect")),t.registerAction("legendSelect","legendselected",_(vp,"select")),t.registerAction("legendUnSelect","legendunselected",_(vp,"unSelect"))}function xp(){var t=null!==hM&&hM.apply(this,arguments)||this;return t.type=xp.type,t}function wp(t,e,i){var n=[1,1];n[t.getOrient().index]=0,ya(e,i,{type:"box",ignoreSize:!!n})}function bp(){var t=null!==uM&&uM.apply(this,arguments)||this;return t.type=bp.type,t.newlineDisabled=!0,t._currentIndex=0,t}function Sp(){this._dragging=!1,this.animationThreshold=15}function Tp(t,e,i,n){!function t(e,i){var n;return C(e)&&C(i)?(n=!0,f(i,function(i,o){n=n&&t(e[o],i)}),!!n):e===i}(yM(i).lastProp,n)&&(yM(i).lastProp=n,e?er(i,n,t):(i.stopAnimation(),i.attr(n)))}function Cp(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Mp(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Ip(t,e,i){var n=e.get("z"),o=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=o&&(t.zlevel=o),t.silent=i)})}function kp(t,e,i,n,o){var r=Ap(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=yx(i.get("padding")||0),s=i.getFont(),l=oi(r,s),h=o.position,u=l.width+a[1]+a[3],l=l.height+a[0]+a[2],c=o.align,c=("right"===c&&(h[0]-=u),"center"===c&&(h[0]-=u/2),o.verticalAlign),n=("bottom"===c&&(h[1]-=l),"middle"===c&&(h[1]-=l/2),o=h,c=u,u=l,n=(l=n).getWidth(),l=l.getHeight(),o[0]=Math.min(o[0]+c,n)-c,o[1]=Math.min(o[1]+u,l)-u,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0),i.get("backgroundColor"));n&&"auto"!==n||(n=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:Dr(i,{text:r,font:s,fill:i.getTextColor(),padding:a,backgroundColor:n}),z2:10}}function Ap(t,e,i,n,o){t=e.scale.parse(t);var r,a=e.scale.getLabel({value:t},{precision:o.precision}),o=o.formatter;return o&&(r={value:gu(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},f(n,function(t){var e=i.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&r.seriesData.push(e)}),b(o)?a=o.replace("{value}",a):w(o)&&(a=o(r))),a}function Dp(t,e,i){var n=We();return qe(n,n,i.rotation),je(n,n,i.position),yr([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function Pp(){return null!==_M&&_M.apply(this,arguments)||this}function Op(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}function Lp(t){return"x"===t.dim?0:1}function Ep(){var t=null!==bM&&bM.apply(this,arguments)||this;return t.type=Ep.type,t}function Rp(t,e,i){function n(t,e){r.on(t,function(t){function i(t){var e=o[t.type];e?e.push(t):(t.dispatchAction=i,n.dispatchAction(t))}n=a;var n,o,s={dispatchAction:i,pendings:o={showTip:[],hideTip:[]}};CM(TM(r).records,function(i){i&&e(i,t,s.dispatchAction)});var l,h=s.pendings,u=a,c=h.showTip.length,p=h.hideTip.length;c?l=h.showTip[c-1]:p&&(l=h.hideTip[p-1]),l&&(l.dispatchAction=null,u.dispatchAction(l))})}var o,r,a;af.node||(o=e.getZr(),TM(o).records||(TM(o).records={}),a=e,TM(r=o).initialized||(TM(r).initialized=!0,n("click",_(Bp,"click")),n("mousemove",_(Bp,"mousemove")),n("globalout",Np)),(TM(o).records[t]||(TM(o).records[t]={})).handler=i)}function Np(t,e,i){t.handler("leave",null,i)}function Bp(t,e,i,n){e.handler(t,i,n)}function zp(t,e){af.node||(e=e.getZr(),(TM(e).records||{})[t]&&(TM(e).records[t]=null))}function Fp(){var t=null!==MM&&MM.apply(this,arguments)||this;return t.type=Fp.type,t}function Vp(t,e){var i,n,o,r,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=qi(i=e.getData(),t))||s<0||x(s)?{point:[]}:(n=i.getItemGraphicEl(s),o=e.coordinateSystem,e.getTooltipPosition?a=e.getTooltipPosition(s)||[]:o&&o.dataToPoint?a=t.isStacked?(e=o.getBaseAxis(),t=o.getOtherAxis(e).dim,e=e.dim,t="x"===t||"radius"===t?1:0,e=i.mapDimension(e),(r=[])[t]=i.get(e,s),r[1-t]=i.get(i.getCalculationInfo("stackResultDimension"),s),o.dataToPoint(r)||[]):o.dataToPoint(i.getValues(g(o.dimensions,function(t){return i.mapDimension(t)}),s))||[]:n&&((e=n.getBoundingRect().clone()).applyTransform(n.transform),a=[e.x+e.width/2,e.y+e.height/2]),{point:a,el:n})}function Yp(t,e,i){var n,o,r,a,s,l,h,u,c,p,d,g,y,m,v=t.currTrigger,x=[t.x,t.y],w=t,b=t.dispatchAction||If(i.dispatchAction,i),S=e.getComponent("axisPointer").coordSysAxesInfo;if(S)return Gp(x)&&(x=Vp({seriesIndex:w.seriesIndex,dataIndex:w.dataIndex},e).point),n=Gp(x),o=w.axesInfo,r=S.axesInfo,a="leave"===v||Gp(x),s={},e={list:[],map:{}},h={showPointer:_(Wp,l={}),showTooltip:_(Xp,e)},f(S.coordSysMap,function(t,e){var i=n||t.containPoint(x);f(S.coordSysAxesInfo[e],function(t,e){var r=t.axis,l=function(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}(o,t);a||!i||o&&!l||null!=(l=null!=(l=l&&l.value)||n?l:r.pointToData(x))&&Hp(t,l,h,!1,s)})}),u={},f(r,function(t,e){var i=t.linkGroup;i&&!l[e]&&f(i.axesInfo,function(e,n){var n=l[n];e!==t&&n&&(n=n.value,i.mapper&&(n=t.axis.scale.parse(i.mapper(n,Up(e),Up(t)))),u[t.key]=n)})}),f(u,function(t,e){Hp(r[e],t,h,!0,s)}),c=l,w=r,p=s.axesInfo=[],f(w,function(t,e){var i=t.axisPointerModel.option,e=c[e];e?(t.useHandle||(i.status="show"),i.value=e.value,i.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(i.status="hide"),"show"===i.status&&p.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})}),v=e,w=t,e=b,Gp(t=x)||!v.list.length?e({type:"hideTip"}):(b=((v.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:w.tooltipOption,position:w.position,dataIndexInside:b.dataIndexInside,dataIndex:b.dataIndex,seriesIndex:b.seriesIndex,dataByCoordSys:v.list})),e=r,w=(t=i).getZr(),b="axisPointerLastHighlights",d=kM(w)[b]||{},g=kM(w)[b]={},f(e,function(t,e){t=t.axisPointerModel.option,"show"===t.status&&f(t.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;g[e]=t})}),y=[],m=[],f(d,function(t,e){g[e]||m.push(t)}),f(g,function(t,e){d[e]||y.push(t)}),m.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:m}),y.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:y}),s}function Hp(t,e,i,n,o){var r,a,s,h,u,c,p,d,g,y,m=t.axis;!m.scale.isBlank()&&m.containData(e)&&(t.involveSeries?(a=e,s=t.axis,h=s.dim,u=a,c=[],p=Number.MAX_VALUE,d=-1,f(t.seriesModels,function(t,e){var i,n=t.getData().mapDimensionsAll(h);if(t.getAxisTooltipData)var o=t.getAxisTooltipData(n,a,s),r=o.dataIndices,o=o.nestestValue;else{if(!(r=t.getData().indicesOfNearest(n[0],a,"category"===s.type?.5:null)).length)return;o=t.getData().get(n[0],r[0])}null!=o&&isFinite(o)&&(n=a-o,(i=Math.abs(n))<=p)&&((i<p||0<=n&&d<0)&&(p=i,d=n,u=o,c.length=0),f(r,function(e){c.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}),y=(r={payloadBatch:c,snapToValue:u}).snapToValue,(g=r.payloadBatch)[0]&&null==o.seriesIndex&&l(o,g[0]),!n&&t.snap&&m.containData(y)&&null!=y&&(e=y),i.showPointer(t,e,g),i.showTooltip(t,r,y)):i.showPointer(t,e))}function Wp(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function Xp(t,e,i,n){var o,r,i=i.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&i.length&&(o=np(e=e.coordSys.model),(r=t.map[o])||(r=t.map[o]={coordSysId:e.id,coordSysIndex:e.componentIndex,coordSysType:e.type,coordSysMainType:e.mainType,dataByAxis:[]},t.list.push(r)),r.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:n,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:i.slice()}))}function Up(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 Gp(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function jp(t){YC.registerAxisPointerClass("CartesianAxisPointer",xM),t.registerComponentModel(SM),t.registerComponentView(IM),t.registerPreprocessor(function(t){var e;t&&(t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={}),e=t.axisPointer.link)&&!x(e)&&(t.axisPointer.link=[e])}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Jc(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Yp)}function qp(){var t=null!==AM&&AM.apply(this,arguments)||this;return t.type=qp.type,t}function Zp(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}function Kp(t){if(af.domSupported)for(var e=document.documentElement.style,i=0,n=t.length;i<n;i++)if(t[i]in e)return t[i]}function Qp(t,e){if(!t)return e;e=ra(e,!0);var i=t.indexOf(e);return(t=-1===i?e:"-"+t.slice(0,i)+"-"+e).toLowerCase()}function $p(t,e,i){var n,t=t.toFixed(0)+"px",e=e.toFixed(0)+"px";return af.transformSupported?(n="translate"+((n=af.transform3dSupported)?"3d":"")+"("+t+","+e+(n?",0":"")+")",i?"top:0;left:0;"+LM+":"+n+";":[["top",0],["left",0],[PM,n]]):i?"top:"+e+";left:"+t+";":[["top",e],["left",t]]}function Jp(t,e,i){var n,o,r=[],a=t.get("transitionDuration"),s=t.get("backgroundColor"),l=t.get("shadowBlur"),h=t.get("shadowColor"),u=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),p=t.getModel("textStyle"),d=Us(t,"html");return r.push("box-shadow:"+u+"px "+c+"px "+l+"px "+h),e&&a&&r.push((h="opacity"+(l=" "+(u=a)/2+"s "+(c="cubic-bezier(0.23,1,0.32,1)"))+",visibility"+l,i||(l=" "+u+"s "+c,h+=af.transformSupported?","+LM+l:",left"+l+",top"+l),OM+":"+h)),s&&r.push("background-color:"+s),f(["width","color","radius"],function(e){var i="border-"+e,n=ra(i),n=t.get(n);null!=n&&r.push(i+":"+n+("color"===e?"":"px"))}),r.push((o=[],e=(n=p).get("fontSize"),(a=n.getTextColor())&&o.push("color:"+a),o.push("font:"+n.getFont()),e&&o.push("line-height:"+Math.round(3*e/2)+"px"),a=n.get("textShadowColor"),e=n.get("textShadowBlur")||0,i=n.get("textShadowOffsetX")||0,u=n.get("textShadowOffsetY")||0,a&&e&&o.push("text-shadow:"+i+"px "+u+"px "+e+"px "+a),f(["decoration","align"],function(t){var e=n.get(t);e&&o.push("text-"+t+":"+e)}),o.join(";"))),null!=d&&r.push("padding:"+yx(d).join("px ")+"px"),r.join(";")+";"}function td(t,e,i,n,o){var r,a,s=e&&e.painter;i?(i=s&&s.getViewportRoot())&&(r=t,a=document.body,dt(Vf,i,n,o,!0))&&dt(r,a,Vf[0],Vf[1]):(t[0]=n,t[1]=o,(i=s&&s.getViewportRootOffset())&&(t[0]+=i.offsetLeft,t[1]+=i.offsetTop)),t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function ed(t,e,i){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,af.wxa)return null;var n=document.createElement("div"),o=(n.domBelongToZr=!0,this.el=n,this._zr=e.getZr()),i=this._appendToBody=i&&i.appendToBody,r=(td(this._styleCoord,o,i,e.getWidth()/2,e.getHeight()/2),(i?document.body:t).appendChild(n),this._container=t,this);n.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},n.onmousemove=function(t){var e;t=t||window.event,r._enterable||(e=o.handler,vt(o.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t))},n.onmouseleave=function(){r._inContent=!1,r._enterable&&r._show&&r.hideLater(r._hideDelay)}}function id(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),rd(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}function nd(t){return Math.max(0,t)}function od(t){var e=nd(t.shadowBlur||0),i=nd(t.shadowOffsetX||0),t=nd(t.shadowOffsetY||0);return{left:nd(e-i),right:nd(e+i),top:nd(e-t),bottom:nd(e+t)}}function rd(t,e,i,n){t[0]=i,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function ad(){var t=null!==NM&&NM.apply(this,arguments)||this;return t.type=ad.type,t}function sd(t,e,i){for(var n=e.ecModel,o=i?(o=new J_(i,n,n),new J_(e.option,o,n)):e,r=t.length-1;0<=r;r--){var a=t[r];(a=a&&(b(a=a instanceof J_?a.get("tooltip",!0):a)?{formatter:a}:a))&&(o=new J_(a,o,n))}return o}function ld(t,e){return t.dispatchAction||If(e.dispatchAction,e)}function hd(t){return"center"===t||"middle"===t}function ud(t){null==(this._condVal=b(t)?new RegExp(t):P(t)?t:null)&&Ni("")}function cd(){}function pd(){}function dd(){}function fd(){}function gd(){}function yd(t,e){if(!0===t||!1===t)return(i=new HM).value=t,i;var i;if(vd(t)||Ni(""),t.and)return md("and",t,e);if(t.or)return md("or",t,e);if(t.not)return i=e,vd(r=(r=t).not)||Ni(""),(l=new UM).child=yd(r,i),l.child||Ni(""),l;for(var n=t,o=e,r=o.prepareGetValue(n),a=[],s=v(n),l=n.parser,h=l?ys(l):null,u=0;u<s.length;u++){var c,p=s[u];"parser"===p||o.valueGetterAttrMap.get(p)||(c=j(VM,p)?VM[p]:p,p=n[p],p=h?h(p):p,(c=function(t,e){return"eq"===t||"ne"===t?new Ow("eq"===t,e):j(Aw,t)?new Dw(t,e):null}(c,p)||"reg"===c&&new YM(p))||Ni(""),a.push(c))}return a.length||Ni(""),(l=new GM).valueGetterParam=r,l.valueParser=h,l.getValue=o.getValue,l.subCondList=a,l}function md(t,e,i){return e=e[t],x(e)||Ni(""),e.length||Ni(""),t=new("and"===t?WM:XM),t.children=g(e,function(t){return yd(t,i)}),t.children.length||Ni(""),t}function vd(t){return C(t)&&!d(t)}function _d(t,e){this._cond=yd(t,e)}function xd(){}function wd(t,e,i,n){var o=null==e.opacity?1:e.opacity;if(i instanceof Wm)t("opacity",o);else if(null!=(r=(r=e).fill)&&r!==nI?(t("fill",(r=de(e.fill)).color),r=null!=e.fillOpacity?e.fillOpacity*r.opacity*o:r.opacity*o,(n||r<1)&&t("fill-opacity",r)):t("fill",nI),null!=(r=(r=e).stroke)&&r!==nI){var r=de(e.stroke),a=(t("stroke",r.color),e.strokeNoScale?i.getLineScale():1),a=a?(e.lineWidth||0)/a:0,r=null!=e.strokeOpacity?e.strokeOpacity*r.opacity*o:r.opacity*o,o=e.strokeFirst;!n&&1==a||t("stroke-width",a),(n||o)&&t("paint-order",o?"stroke":"fill"),(n||r<1)&&t("stroke-opacity",r),e.lineDash?(o=(a=Nl(i))[0],r=a[1],o&&(r=oI(r||0),t("stroke-dasharray",o.join(",")),r||n)&&t("stroke-dashoffset",r)):n&&t("stroke-dasharray",nI);for(var s=0;s<rI.length;s++){var l=rI[s];(n||e[l]!==Em[l])&&(l=e[l]||Em[l])&&t(aI[s],l)}}else n&&t("stroke",nI)}function bd(t){return document.createElementNS(sI,t)}function Sd(t,e,i,n,o){return{tag:t,attrs:i||{},children:n,text:o,key:e}}function Td(t,e){var i=(e=e||{}).newline?"\n":"";return function t(e){var n=e.children,o=e.tag;return function(t,e){var i=[];if(e)for(var n in e){var o=e[n];!1!==o&&(!0!==o&&null!=o&&(n+='="'+o+'"'),i.push(n))}return"<"+t+" "+i.join(" ")+">"}(o,e.attrs)+(e.text||"")+(n?i+g(n,t).join(i)+i:"")+"</"+o+">"}(t)}function Cd(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Md(t,e,i,n){return Sd("svg","root",{width:t,height:e,xmlns:sI,"xmlns:xlink":lI,version:"1.1",baseProfile:"full",viewBox:!!n&&"0 0 "+t+" "+e},i)}function Id(t,e){var i=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[i]=t,i}function kd(t){return b(t)?cI[t]?"cubic-bezier("+cI[t]+")":jt(t)?t:"":""}function Ad(t,e,i,n){var o=t.animators,r=o.length,a=[];if(t instanceof __){if(h=function(t,e,i){var n,o,t=t.shape.paths,r={};if(f(t,function(t){var e=Cd(i.zrId),t=(e.animation=!0,Ad(t,{},e,!0),e.cssAnims),a=e.cssNodes,e=v(t),s=e.length;if(s){var l,h,u=t[o=e[s-1]];for(l in u){var c=u[l];r[l]=r[l]||{d:""},r[l].d+=c.d||""}for(h in a){var p=a[h].animation;0<=p.indexOf(o)&&(n=p)}}}),n)return e.d=!1,t=Id(r,i),n.replace(o,t)}(t,e,i))a.push(h);else if(!r)return}else if(!r)return;for(var s,h,u,c={},p=0;p<r;p++){var d=o[p],g=[d.getMaxTime()/1e3+"s"],y=kd(d.getClip().easing),_=d.getDelay(),y=(g.push(y||"linear"),_&&g.push(_/1e3+"s"),d.getLoop()&&g.push("infinite"),g.join(" "));c[y]=c[y]||[y,[]],c[y][1].push(d)}for(s in c)(h=function(o){function r(t,e,i){for(var n=t.getTracks(),o=t.getMaxTime(),r=0;r<n.length;r++){var a=n[r];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(l=i?i(l):l)for(var h=0;h<s.length;h++){var u=s[h],c=Math.round(u.time/o*100)+"%",p=kd(u.easing),d=u.rawValue;(b(d)||T(d))&&(e[c]=e[c]||{},e[c][l]=u.rawValue,p)&&(e[c][f]=p)}}}}for(var a,s,h=o[1],u=h.length,c={},p={},d={},f="animation-timing-function",g=0;g<u;g++)(O=(P=h[g]).targetName)?"shape"===O&&r(P,p):n||r(P,c);for(D in c){var y={},_=(Je(y,t),l(y,c[D]),be(y)),x=c[D][f];d[D]=_?{transform:_}:{},_=d[D],a=void 0,a=(y=y).originX,y=y.originY,(a||y)&&(_[pI]=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 Mm: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 iI).reset(we(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)&&r(P,d,function(t){return dI[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][pI]!==d[B][pI]){R=!1;break}L=d[N][pI]}if(R&&L){for(var D in d)d[D][pI]&&delete d[D][pI];e[pI]=L}if(m(E,function(t){return 0<v(d[t]).length}).length)return Id(d,i)+" "+o[0]+" both"}(c[s]))&&a.push(h);a.length&&(u=i.zrId+"-cls-"+i.cssClassIdx++,i.cssNodes["."+u]={animation:a.join(",")},e.class=u)}function Dd(t){return t&&b(t.src)}function Pd(t){return t&&w(t.toDataURL)}function Od(t,e,i,n){wd(function(o,r){var a,s,l,h,u,c,p,d="fill"===o||"stroke"===o;if(d&&(g=r)&&("linear"===g.type||"radial"===g.type)){var f,g=t,y=o,m=n,v={gradientUnits:(I=(I=e)[y]).global?"userSpaceOnUse":"objectBoundingBox"};if(ve(I))f="linearGradient",v.x1=I.x,v.y1=I.y,v.x2=I.x2,v.y2=I.y2;else{if(!_e(I))return;f="radialGradient",v.cx=E(I.x,.5),v.cy=E(I.y,.5),v.r=E(I.r,.5)}for(var _=I.colorStops,x=[],w=0,S=_.length;w<S;++w){var T=100*ye(_[w].offset)+"%",C=de(_[w].color),M=C.color,C=C.opacity,T={offset:T};T["stop-color"]=M,C<1&&(T["stop-opacity"]=C),x.push(Sd("stop",w+"",T))}var I=Td(Sd(f,"",v,x)),k=m.gradientCache,A=k[I];A||(A=m.zrId+"-g"+m.gradientIdx++,k[I]=A,v.id=A,m.defs[A]=Sd(f,A,v,x)),g[y]=xe(A)}else d&&(me(k=r)||(k=k)&&k.svgElement)?(I=t,m=o,f=n,g=(v=i).style[m],y={patternUnits:"userSpaceOnUse"},me(g)?(l=g.imageWidth,h=g.imageHeight,u=void 0,b(p=g.image)?u=p:Dd(p)?u=p.src:Pd(p)&&(u=p.toDataURL()),"undefined"==typeof Image?(z(l,p="Image width/height must been given explictly in svg-ssr renderer."),z(h,p)):null!=l&&null!=h||(c=function(t,e){var i,n;t&&(i=t.elm,n=t.attrs.width=l||e.width,t=t.attrs.height=h||e.height,i)&&(i.setAttribute("width",n),i.setAttribute("height",t))},(p=un(u,null,v,function(t){c(s,t),c(a,t)}))&&p.width&&p.height&&(l=l||p.width,h=h||p.height)),a=Sd("image","img",{href:u,width:l,height:h}),y.width=l,y.height=h):g.svgElement&&(a=g.svgElement,y.width=g.svgWidth,y.height=g.svgHeight),a&&(y.patternTransform=be(g),s=Sd("pattern","",y,[a]),v=Td(s),p=f.patternCache,(u=p[v])||(u=f.zrId+"-p"+f.patternIdx++,p[v]=u,y.id=u,s=f.defs[u]=Sd("pattern",u,y,[a])),I[m]=xe(u))):t[o]=r},e,i,!1);var o=t,r=n;if(function(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}(f=(h=i).style)){var a=function(t){var e=t.style,t=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}(h),s=r.shadowCache,l=s[a];if(!l){var h=h.getGlobalScale(),u=h[0],h=h[1];if(!u||!h)return;var c=f.shadowOffsetX||0,p=f.shadowOffsetY||0,d=f.shadowBlur,f=de(f.shadowColor),g=f.opacity,f=f.color,d=d/2/u+" "+d/2/h;l=r.zrId+"-s"+r.shadowIdx++,r.defs[l]=Sd("filter",l,{id:l,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Sd("feDropShadow","",{dx:c/u,dy:p/h,stdDeviation:d,"flood-color":f,"flood-opacity":g})]),s[a]=l}o.filter=xe(l)}}function Ld(t){return fe(t[0]-1)&&fe(t[1])&&fe(t[2])&&fe(t[3]-1)}function Ed(t,e,i){var n;!e||fe((n=e)[4])&&fe(n[5])&&Ld(e)||(n=i?10:1e4,t.transform=Ld(e)?"translate("+fI(e[4]*n)/n+" "+fI(e[5]*n)/n+")":"matrix("+ge((i=e)[0])+","+ge(i[1])+","+ge(i[2])+","+ge(i[3])+","+ye(i[4])+","+ye(i[5])+")")}function Rd(t,e,i){for(var n=t.points,o=[],r=0;r<n.length;r++)o.push(fI(n[r][0]*i)/i),o.push(fI(n[r][1]*i)/i);e.points=o.join(" ")}function Nd(t){return!t.smooth}function Bd(t,e){var i,n,o,r=t.style,a=t.shape,s=gI[t.type],l={},h=e.animation,u="path",c=t.style.strokePercent,p=e.compress&&we(t)||4;return!s||e.willUpdate||s[1]&&!s[1](a)||h&&function(t){for(var e=t.animators,i=0;i<e.length;i++)if("shape"===e[i].targetName)return 1}(t)||c<1?(t.path||t.createPathProxy(),h=t.path,t.shapeChanged()&&(h.beginPath(),t.buildPath(h,t.shape),t.pathUpdated()),i=h.getVersion(),o=(n=t).__svgPathBuilder,n.__svgPathVersion===i&&o&&c===n.__svgPathStrokePercent||((o=o||(n.__svgPathBuilder=new iI)).reset(p),h.rebuildPath(o,c),o.generateStr(),n.__svgPathVersion=i,n.__svgPathStrokePercent=c),l.d=o.getStr()):(u=t.type,h=Math.pow(10,p),s[0](a,l,h)),Ed(l,t.transform),Od(l,r,t,e),e.animation&&Ad(t,l,e),Sd(u,t.id+"",l)}function zd(t,e){if(t instanceof Bm)return Bd(t,e);if(t instanceof Wm){var i=t,n=e,o=i.style,r=o.image;if(r&&!b(r)&&(Dd(r)?r=r.src:Pd(r)&&(r=r.toDataURL())),r)return a=o.x||0,s=o.y||0,r={href:r,width:o.width,height:o.height},a&&(r.x=a),s&&(r.y=s),Ed(r,i.transform),Od(r,o,i,n),n.animation&&Ad(i,r,n),Sd("image",i.id+"",r)}else if(t instanceof Fm){var a=t,s=e,o=a.style,n=o.text;if(null!=n&&(n+=""),n&&!isNaN(o.x)&&!isNaN(o.y)){var i=o.font||cf,r=o.x||0,l=(t=o.y||0,e=si(i),"top"===(l=o.textBaseline)?t+=e/2:"bottom"===l&&(t-=e/2),t),e={"dominant-baseline":"central","text-anchor":Cg[o.textAlign]||o.textAlign};if(Fn(o)){var t="",h=o.fontStyle,u=Bn(o.fontSize);if(!parseFloat(u))return;var c=o.fontFamily||uf,p=o.fontWeight;t+="font-size:"+u+";font-family:"+c+";",h&&"normal"!==h&&(t+="font-style:"+h+";"),p&&"normal"!==p&&(t+="font-weight:"+p+";"),e.style=t}else e.style="font: "+i;return n.match(/\s/)&&(e["xml:space"]="preserve"),r&&(e.x=r),l&&(e.y=l),Ed(e,a.transform),Od(e,o,a,s),s.animation&&Ad(a,e,s),Sd("text",a.id+"",e,void 0,n)}}}function Fd(t){return document.createTextNode(t)}function Vd(t,e,i){t.insertBefore(e,i)}function Yd(t,e){t.removeChild(e)}function Hd(t,e){t.appendChild(e)}function Wd(t){return t.parentNode}function Xd(t){return t.nextSibling}function Ud(t,e){t.textContent=e}function Gd(t){return void 0===t}function jd(t){return void 0!==t}function qd(t,e){var i=t.key===e.key;return t.tag===e.tag&&i}function Zd(t){var e,i=t.children,n=t.tag;if(jd(n)){var o=t.elm=bd(n);if($d(vI,t),x(i))for(e=0;e<i.length;++e){var r=i[e];null!=r&&Hd(o,Zd(r))}else jd(t.text)&&!C(t.text)&&Hd(o,Fd(t.text))}else t.elm=Fd(t.text);return t.elm}function Kd(t,e,i,n,o){for(;n<=o;++n){var r=i[n];null!=r&&Vd(t,Zd(r),e)}}function Qd(t,e,i,n){for(;i<=n;++i){var o=e[i];null!=o&&(jd(o.tag)?Yd(Wd(o.elm),o.elm):Yd(t,o.elm))}}function $d(t,e){var i,n=e.elm,o=t&&t.attrs||{},r=e.attrs||{};if(o!==r){for(i in r){var a=r[i];o[i]!==a&&(!0===a?n.setAttribute(i,""):!1===a?n.removeAttribute(i):i.charCodeAt(0)!==mI?n.setAttribute(i,a):"xmlns:xlink"===i||"xmlns"===i?n.setAttributeNS(hI,i,a):i.charCodeAt(3)===yI?n.setAttributeNS(uI,i,a):i.charCodeAt(5)===yI?n.setAttributeNS(lI,i,a):n.setAttribute(i,a))}for(i in o)i in r||n.removeAttribute(i)}}function Jd(t,e,i){for(var n,o,r,a=0,s=0,l=e.length-1,h=e[0],u=e[l],c=i.length-1,p=i[0],d=i[c];a<=l&&s<=c;)null==h?h=e[++a]:null==u?u=e[--l]:null==p?p=i[++s]:null==d?d=i[--c]:qd(h,p)?(tf(h,p),h=e[++a],p=i[++s]):qd(u,d)?(tf(u,d),u=e[--l],d=i[--c]):qd(h,d)?(tf(h,d),Vd(t,h.elm,Xd(u.elm)),h=e[++a],d=i[--c]):(qd(u,p)?(tf(u,p),Vd(t,u.elm,h.elm),u=e[--l]):(Gd(n)&&(n=function(t,e,i){for(var n={},o=e;o<=i;++o){var r=t[o].key;void 0!==r&&(n[r]=o)}return n}(e,a,l)),Gd(o=n[p.key])||(r=e[o]).tag!==p.tag?Vd(t,Zd(p),h.elm):(tf(r,p),e[o]=void 0,Vd(t,r.elm,h.elm))),p=i[++s]);(a<=l||s<=c)&&(l<a?Kd(t,null==i[c+1]?null:i[c+1].elm,i,s,c):Qd(t,e,a,l))}function tf(t,e){var i=e.elm=t.elm,n=t.children,o=e.children;t!==e&&($d(t,e),Gd(e.text)?jd(n)&&jd(o)?n!==o&&Jd(i,n,o):jd(o)?(jd(t.text)&&Ud(i,""),Kd(i,null,o,0,o.length-1)):jd(n)?Qd(i,n,0,n.length-1):jd(t.text)&&Ud(i,""):t.text!==e.text&&(jd(n)&&Qd(i,n,0,n.length-1),Ud(i,e.text)))}function ef(t,e,i){var n;this.type="svg",this.refreshHover=nf(),this.configLayer=nf(),this.storage=e,this._opts=i=l({},i),this.root=t,this._id="zr"+_I++,this._oldVNode=Md(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=bd("svg"),$d(null,this._oldVNode),e.appendChild(n),t.appendChild(e)),this.resize(i.width,i.height)}function nf(){return function(){}}var of=function(t,e){return(of=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)},rf=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},af=new function(){this.browser=new rf,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(af.wxa=!0,af.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?af.worker=!0:"undefined"==typeof navigator?(af.node=!0,af.svgSupported=!0):(Sf=navigator.userAgent,Ef=(Pf=af).browser,Mf=Sf.match(/Firefox\/([\d.]+)/),mf=Sf.match(/MSIE\s([\d.]+)/)||Sf.match(/Trident\/.+?rv:(([\d.]+))/),bf=Sf.match(/Edge?\/([\d.]+)/),Sf=/micromessenger/i.test(Sf),Mf&&(Ef.firefox=!0,Ef.version=Mf[1]),mf&&(Ef.ie=!0,Ef.version=mf[1]),bf&&(Ef.edge=!0,Ef.version=bf[1],Ef.newEdge=18<+bf[1].split(".")[0]),Sf&&(Ef.weChat=!0),Pf.svgSupported="undefined"!=typeof SVGRect,Pf.touchEventsSupported="ontouchstart"in window&&!Ef.ie&&!Ef.edge,Pf.pointerEventsSupported="onpointerdown"in window&&(Ef.edge||Ef.ie&&11<=+Ef.version),Pf.domSupported="undefined"!=typeof document,Mf=document.documentElement.style,Pf.transform3dSupported=(Ef.ie&&"transition"in Mf||Ef.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in Mf)&&!("OTransition"in Mf),Pf.transformSupported=Pf.transform3dSupported||Ef.ie&&9<=+Ef.version);var sf,lf,hf=12,uf="sans-serif",cf=hf+"px "+uf,pf=function(t){var e={};if("undefined"!=typeof JSON)for(var i=0;i<t.length;i++){var n=String.fromCharCode(i+32),o=(t.charCodeAt(i)-20)/100;e[n]=o}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),df={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(sf||(i=df.createCanvas(),sf=i&&i.getContext("2d")),sf)return lf!==e&&(lf=sf.font=e||cf),sf.measureText(t);t=t||"",e=e||cf;var i=/^([0-9]*?)px$/.exec(e),n=+(i&&i[1])||hf,o=0;if(0<=e.indexOf("mono"))o=n*t.length;else for(var r=0;r<t.length;r++){var a=pf[t[r]];o+=null==a?n:a*n}return{width:o}},loadImage:function(t,e,i){var n=new Image;return n.onload=e,n.onerror=i,n.src=t,n}},ff=y(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),gf=y(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),yf=Object.prototype.toString,mf=Array.prototype,vf=mf.forEach,_f=mf.filter,xf=mf.slice,wf=mf.map,bf=function(){}.constructor,Sf=bf?bf.prototype:null,Tf="__proto__",Cf=2311,Mf=df.createCanvas,If=Sf&&w(Sf.bind)?Sf.call.bind(Sf.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(xf.call(arguments)))}},kf="__ec_primitive__";H.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},H.prototype.set=function(t,e){return this.data[t]=e},H.prototype.each=function(t,e){for(var i in this.data)this.data.hasOwnProperty(i)&&t.call(e,this.data[i],i)},H.prototype.keys=function(){return v(this.data)},H.prototype.removeKey=function(t){delete this.data[t]};var Af=H,Df=180/Math.PI,Pf=Object.freeze({__proto__:null,HashMap:Af,RADIAN_TO_DEGREE:Df,assert:z,bind:If,clone:a,concatArray:X,createCanvas:Mf,createHashMap:W,createObject:U,curry:_,defaults:h,disableUserSelect:G,each:f,eqNaN:O,extend:l,filter:m,find:function(t,e,i){if(t&&e)for(var n=0,o=t.length;n<o;n++)if(e.call(i,t[n],n,t))return t[n]},guid:o,hasOwn:j,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:r,map:g,merge:s,mergeAll:function(t,e){for(var i=t[0],n=1,o=t.length;n<o;n++)i=s(i,t[n],e);return i},mixin:p,noop:q,normalizeCssArray:B,reduce:y,retrieve:L,retrieve2:E,retrieve3:R,setAsPrimitive:V,slice:N,trim:F}),Of=nt,Lf=ot,Ef=Object.freeze({__proto__:null,add:Q,applyTransform:at,clone:K,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},create:Z,dist:Of,distSquare:Lf,distance:nt,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:J,lenSquare:tt,length:J,lengthSquare:tt,lerp:rt,max:lt,min:st,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:it,scale:et,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:$}),Rf=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},Nf=(ht.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 Rf(e,t),"dragstart",t.event))},ht.prototype._drag=function(t){var e,i,n,o,r=this._draggingTarget;r&&(e=t.offsetX,i=t.offsetY,n=e-this._x,o=i-this._y,this._x=e,this._y=i,r.drift(n,o,t),this.handler.dispatchToElement(new Rf(r,t),"drag",t.event),n=this.handler.findHover(e,i,r).target,o=this._dropTarget,r!==(this._dropTarget=n))&&(o&&n!==o&&this.handler.dispatchToElement(new Rf(o,t),"dragleave",t.event),n)&&n!==o&&this.handler.dispatchToElement(new Rf(n,t),"dragenter",t.event)},ht.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Rf(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Rf(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},ht);ut.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var o=this._$handlers;if("function"==typeof e&&(n=i,i=e,e=null),i&&t){var r=this._$eventProcessor;null!=e&&r&&r.normalizeQuery&&(e=r.normalizeQuery(e)),o[t]||(o[t]=[]);for(var a=0;a<o[t].length;a++)if(o[t][a].h===i)return this;r={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},e=o[t].length-1,n=o[t][e],n&&n.callAtLast?o[t].splice(e,0,r):o[t].push(r)}return this},ut.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},ut.prototype.off=function(t,e){var i=this._$handlers;if(i)if(t)if(e){if(i[t]){for(var n=[],o=0,r=i[t].length;o<r;o++)i[t][o].h!==e&&n.push(i[t][o]);i[t]=n}i[t]&&0===i[t].length&&delete i[t]}else delete i[t];else this._$handlers={};return this},ut.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(this._$handlers){var n=this._$handlers[t],o=this._$eventProcessor;if(n)for(var r=e.length,a=n.length,s=0;s<a;s++){var l=n[s];if(!o||!o.filter||null==l.query||o.filter(t,l.query))switch(r){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}o&&o.afterTrigger&&o.afterTrigger(t)}return this},ut.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(this._$handlers){var n=this._$handlers[t],o=this._$eventProcessor;if(n)for(var r=e.length,a=e[r-1],s=n.length,l=0;l<s;l++){var h=n[l];if(!o||!o.filter||null==h.query||o.filter(t,h.query))switch(r){case 0:h.h.call(a);break;case 1:h.h.call(a,e[0]);break;case 2:h.h.call(a,e[0],e[1]);break;default:h.h.apply(a,e.slice(1,r-1))}}o&&o.afterTrigger&&o.afterTrigger(t)}return this};var Bf=ut,zf=Math.log(2),Ff="___zrEVENTSAVED",Vf=[],Yf=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Hf=[],Wf=af.browser.firefox&&+af.browser.version.split(".")[0]<39,Xf=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},Uf=(_t.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},_t.prototype.clear=function(){return this._track.length=0,this},_t.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var o={points:[],touches:[],target:e,event:t},r=0,a=n.length;r<a;r++){var s=n[r],l=gt(i,s,{});o.points.push([l.zrX,l.zrY]),o.touches.push(s)}this._track.push(o)}},_t.prototype._recognize=function(t){for(var e in Gf)if(Gf.hasOwnProperty(e)&&(e=Gf[e](this._track,t)))return e},_t),Gf={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=xt(i)/xt(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}};i(bt,jf=Bf),bt.prototype.dispose=function(){},bt.prototype.setCursor=function(){};var jf,qf,Zf=bt,Kf=function(t,e){this.x=t,this.y=e},Qf=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],$f=(i(St,qf=Bf),St.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(f(Qf,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},St.prototype.mousemove=function(t){var e=t.zrX,i=t.zrY,n=Tt(this,e,i),o=this._hovered,r=o.target,n=(r&&!r.__zr&&(r=(o=this.findHover(o.x,o.y)).target),this._hovered=n?new Kf(e,i):this.findHover(e,i)),e=n.target,i=this.proxy;i.setCursor&&i.setCursor(e?e.cursor:"default"),r&&e!==r&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(n,"mousemove",t),e&&e!==r&&this.dispatchToElement(n,"mouseover",t)},St.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},St.prototype.resize=function(){this._hovered=new Kf(0,0)},St.prototype.dispatch=function(t,e){(t=this[t])&&t.call(this,e)},St.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},St.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},St.prototype.dispatchToElement=function(t,e,i){var n=(t=t||{}).target;if(!n||!n.silent){for(var o="on"+e,r={type:e,event:i,target:(t=t).target,topTarget:t.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:wt};n&&(n[o]&&(r.cancelBubble=!!n[o].call(n,r)),n.trigger(e,r),n=n.__hostTarget||n.parent,!r.cancelBubble););r.cancelBubble||(this.trigger(e,r),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[o]&&t[o].call(t,r),t.trigger&&t.trigger(e,r)}))}},St.prototype.findHover=function(t,e,i){for(var n=this.storage.getDisplayList(),o=new Kf(t,e),r=n.length-1;0<=r;r--){var a=void 0;if(n[r]!==i&&!n[r].ignore&&(a=function(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n=t,o=void 0,r=!1;n;){if(!(r=!!n.ignoreClip||r)){var a=n.getClipPath();if(a&&!a.contain(e,i))return!1;n.silent&&(o=!0)}a=n.__hostTarget,n=a||n.parent}return!o||"silent"}return!1}(n[r],t,e))&&(o.topTarget||(o.topTarget=n[r]),"silent"!==a)){o.target=n[r];break}}return o},St.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Uf);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 Kf).target=n.target,this.dispatchToElement(i,e,n.event))},St);f(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){$f.prototype[t]=function(e){var i,n,o=e.zrX,r=e.zrY,a=Tt(this,o,r);if("mouseup"===t&&a||(n=(i=this.findHover(o,r)).target),"mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||4<Of(this._downPoint,[e.zrX,e.zrY]))return;this._downPoint=null}this.dispatchToElement(i,t,e)}});var Jf=32,tg=7,eg=1,ig=4,ng=!1;Lt.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},Lt.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return!t&&i.length||this.updateDisplayList(e),i},Lt.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,o=e.length;n<o;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,Dt(i,Ot)},Lt.prototype._updateAndAddDisplayable=function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)e=null;else if(n){e=e?e.slice():[];for(var o=n,r=t;o;)o.parent=r,o.updateTransform(),e.push(o),o=(r=o).getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=eg),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)&&(Pt(),n.z=0),isNaN(n.z2)&&(Pt(),n.z2=0),isNaN(n.zlevel)&&(Pt(),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)}},Lt.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},Lt.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);else{var n=u(this._roots,t);0<=n&&this._roots.splice(n,1)}},Lt.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},Lt.prototype.getRoots=function(){return this._roots},Lt.prototype.dispose=function(){this._displayList=null,this._roots=null};var og=Lt,rg=af.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},ag={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,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-ag.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*ag.bounceIn(2*t):.5*ag.bounceOut(2*t-1)+.5}},sg=Math.pow,lg=Math.sqrt,hg=1e-8,ug=lg(3),cg=1/3,pg=Z(),dg=Z(),fg=Z(),gg=/cubic-bezier\(([0-9,\.e ]+)\)/;qt.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var i=this._life,n=t-this._startTime-this._pausedTime,o=n/i,r=(o<0&&(o=0),o=Math.min(o,1),this.easingFunc),r=r?r(o):o;if(this.onframe(r),1===o){if(!this.loop)return!0;this._startTime=t-n%i,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},qt.prototype.pause=function(){this._paused=!0},qt.prototype.resume=function(){this._paused=!1},qt.prototype.setEasing=function(t){this.easing=t,this.easingFunc=w(t)?t:ag[t]||jt(t)};var yg=qt,mg=function(t){this.value=t},vg=(Zt.prototype.insert=function(t){return t=new mg(t),this.insertEntry(t),t},Zt.prototype.insertEntry=function(t){this.head?((this.tail.next=t).prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},Zt.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},Zt.prototype.len=function(){return this._len},Zt.prototype.clear=function(){this.head=this.tail=null,this._len=0},Zt);Kt.prototype.put=function(t,e){var i,n,o=this._list,r=this._map,a=null;return null==r[t]&&(n=o.len(),i=this._lastRemovedEntry,n>=this._maxSize&&0<n&&(n=o.head,o.remove(n),delete r[n.key],a=n.value,this._lastRemovedEntry=n),i?i.value=e:i=new mg(e),i.key=t,o.insertEntry(i),r[t]=i),a},Kt.prototype.get=function(t){var t=this._map[t],e=this._list;if(null!=t)return t!==e.tail&&(e.remove(t),e.insertEntry(t)),t.value},Kt.prototype.clear=function(){this._list.clear(),this._map={}},Kt.prototype.len=function(){return this._list.len()};var _g=Kt,xg={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]},wg=new _g(20),bg=null,Sg=Object.freeze({__proto__:null,fastLerp:he,fastMapToColor:he,lerp:ue,lift:le,lum:pe,mapToColor:ue,modifyAlpha:function(t,e){if((t=ae(t))&&null!=e)return t[3]=$t(e),ce(t,"rgba")},modifyHSL:function(t,e,i,n){var o=ae(t);if(t)return o=function(t){var e,i,n,o,r,a,s,l,h,u;if(t)return u=t[0]/255,e=t[1]/255,i=t[2]/255,s=Math.min(u,e,i),o=((n=Math.max(u,e,i))+s)/2,0==(h=n-s)?a=r=0:(a=o<.5?h/(n+s):h/(2-n-s),s=((n-u)/6+h/2)/h,l=((n-e)/6+h/2)/h,h=((n-i)/6+h/2)/h,u===n?r=h-l:e===n?r=1/3+s-h:i===n&&(r=2/3+l-s),r<0&&(r+=1),1<r&&--r),u=[360*r,a,o],null!=t[3]&&u.push(t[3]),u}(o),null!=e&&(o[0]=(t=e,(t=Math.round(t))<0?0:360<t?360:t)),null!=i&&(o[1]=te(i)),null!=n&&(o[2]=te(n)),ce(se(o),"rgba")},parse:ae,random:function(){return ce([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:ce,toHex:function(t){if(t=ae(t))return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}}),Tg=Math.round,Cg={left:"start",right:"end",center:"middle",middle:"middle"},Mg=af.hasGlobalWindow&&w(window.btoa)?function(t){return window.btoa(unescape(t))}:void 0!==t?function(e){return t.from(e).toString("base64")}:function(t){return null},Ig=Array.prototype.slice,kg=[0,0,0,0],Ag=(Pe.prototype.isFinished=function(){return this._finished},Pe.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},Pe.prototype.needsAnimate=function(){return 1<=this.keyframes.length},Pe.prototype.getAdditiveTrack=function(){return this._additiveTrack},Pe.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n,o=this.keyframes,r=o.length,a=!1,s=6,h=e,u=(d(e)?(1==(s=n=d((n=e)&&n[0])?2:1)&&!T(e[0])||2==n&&!T(e[0][0]))&&(a=!0):T(e)&&!O(e)?s=0:b(e)?isNaN(+e)?(n=ae(e))&&(h=n,s=3):s=0:A(e)&&((u=l({},h)).colorStops=g(e.colorStops,function(t){return{offset:t.offset,color:ae(t.color)}}),ve(e)?s=4:_e(e)&&(s=5),h=u),0===r?this.valType=s:s===this.valType&&6!==s||(a=!0),this.discrete=this.discrete||a,{time:t,value:h,rawValue:e,percent:0});return i&&(u.easing=i,u.easingFunc=w(i)?i:ag[i]||jt(i)),o.push(u),u},Pe.prototype.prepare=function(t,e){for(var i=this.keyframes,n=(this._needsSort&&i.sort(function(t,e){return t.time-e.time}),this.valType),o=i.length,r=i[o-1],a=this.discrete,s=De(n),l=Ae(n),h=0;h<o;h++){var u=i[h],c=u.value,p=r.value;if(u.percent=u.time/t,!a)if(s&&h!==o-1){x=_=v=m=y=g=f=d=u=void 0;var d=p,f=n,g=u=c,y=d;if(g.push&&y.push){var u=g.length,m=y.length;if(u!==m)if(m<u)g.length=m;else for(var v=u;v<m;v++)g.push(1===f?y[v]:Ig.call(y[v]));for(var _=g[0]&&g[0].length,v=0;v<g.length;v++)if(1===f)isNaN(g[v])&&(g[v]=y[v]);else for(var x=0;x<_;x++)isNaN(g[v][x])&&(g[v][x]=y[v][x])}}else if(l){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<o;h++)0===n?i[h].additiveValue=i[h].value-M:3===n?i[h].additiveValue=Ce([],i[h].value,M,-1):De(n)&&(i[h].additiveValue=(1===n?Ce:Me)([],i[h].value,M,-1))}},Pe.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i,n,o,r,a=null!=this._additiveTrack,s=a?"additiveValue":"value",l=this.valType,h=this.keyframes,u=h.length,c=this.propName,p=3===l,d=this._lastFr,f=Math.min;if(1===u)i=n=h[0];else{if(e<0)y=0;else if(e<this._lastFrP){for(var y=f(d+1,u-1);0<=y&&!(h[y].percent<=e);y--);y=f(y,u-2)}else{for(y=d;y<u&&!(h[y].percent>e);y++);y=f(y-1,u-2)}n=h[y+1],i=h[y]}i&&n&&(this._lastFr=y,this._lastFrP=e,d=n.percent-i.percent,o=0==d?1:f((e-i.percent)/d,1),n.easingFunc&&(o=n.easingFunc(o)),f=a?this._additiveValue:p?kg:t[c],(De(l)||p)&&(f=f||(this._additiveValue=[])),this.discrete?t[c]=(o<1?i:n).rawValue:De(l)?(1===l?Te:function(t,e,i,n){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){t[a]||(t[a]=[]);for(var s=0;s<r;s++)t[a][s]=Se(e[a][s],i[a][s],n)}})(f,i[s],n[s],o):Ae(l)?(d=i[s],r=n[s],t[c]={type:(l=4===l)?"linear":"radial",x:Se(d.x,r.x,o),y:Se(d.y,r.y,o),colorStops:g(d.colorStops,function(t,e){return e=r.colorStops[e],{offset:Se(t.offset,e.offset,o),color:ke(Te([],t.color,e.color,o))}}),global:r.global},l?(t[c].x2=Se(d.x2,r.x2,o),t[c].y2=Se(d.y2,r.y2,o)):t[c].r=Se(d.r,r.r,o)):p?(Te(f,i[s],n[s],o),a||(t[c]=ke(f))):(l=Se(i[s],n[s],o),a?this._additiveValue=l:t[c]=l),a)&&this._addToTarget(t)}},Pe.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;0===e?t[i]=t[i]+n:3===e?(ae(t[i],kg),Ce(kg,kg,n,1),t[i]=ke(kg)):1===e?Ce(t[i],t[i],n,1):2===e&&Me(t[i],t[i],n,1)},Pe);Oe.prototype.getMaxTime=function(){return this._maxTime},Oe.prototype.getDelay=function(){return this._delay},Oe.prototype.getLoop=function(){return this._loop},Oe.prototype.getTarget=function(){return this._target},Oe.prototype.changeTarget=function(t){this._target=t},Oe.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,v(e),i)},Oe.prototype.whenWithKeys=function(t,e,i,n){for(var o=this._tracks,r=0;r<i.length;r++){var a=i[r];if(!(l=o[a])){var s,l=o[a]=new Ag(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&&ke(h))):h=this._target[a],null==h)continue;0<t&&l.addKeyframe(0,Ie(h),n),this._trackKeys.push(a)}l.addKeyframe(t,Ie(e[a]),n)}return this._maxTime=Math.max(this._maxTime,t),this},Oe.prototype.pause=function(){this._clip.pause(),this._paused=!0},Oe.prototype.resume=function(){this._clip.resume(),this._paused=!1},Oe.prototype.isPaused=function(){return!!this._paused},Oe.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},Oe.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},Oe.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},Oe.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},Oe.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var o=i[n].getTrack(t);o&&(e=o)}return e},Oe.prototype.start=function(t){if(!(0<this._started)){this._started=1;for(var e,i=this,n=[],o=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var a=this._trackKeys[r],s=this._tracks[a],a=this._getAdditiveTrack(a),l=s.keyframes,h=l.length;s.prepare(o,a),s.needsAnimate()&&(!this._allowDiscrete&&s.discrete?((a=l[h-1])&&(i._target[s.propName]=a.rawValue),s.setFinished()):n.push(s))}return n.length||this._force?(e=new yg({life:o,loop:this._loop,delay:this._delay||0,onframe:function(t){i._started=2;var e=i._additiveAnimators;if(e){for(var o=!1,r=0;r<e.length;r++)if(e[r]._clip){o=!0;break}o||(i._additiveAnimators=null)}for(r=0;r<n.length;r++)n[r].step(i._target,t);var a=i._onframeCbs;if(a)for(r=0;r<a.length;r++)a[r](i._target,t)},ondestroy:function(){i._doneCallback()}}),this._clip=e,this.animation&&this.animation.addClip(e),t&&e.setEasing(t)):this._doneCallback(),this}},Oe.prototype.stop=function(t){var e;this._clip&&(e=this._clip,t&&e.onframe(1),this._abortedCallback())},Oe.prototype.delay=function(t){return this._delay=t,this},Oe.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},Oe.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},Oe.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},Oe.prototype.getClip=function(){return this._clip},Oe.prototype.getTrack=function(t){return this._tracks[t]},Oe.prototype.getTracks=function(){var t=this;return g(this._trackKeys,function(e){return t._tracks[e]})},Oe.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,o=0;o<t.length;o++){var r=i[t[o]];r&&!r.isFinished()&&(e?r.step(this._target,1):1===this._started&&r.step(this._target,0),r.setFinished())}for(var a=!0,o=0;o<n.length;o++)if(!i[n[o]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},Oe.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var o=e[n],r=this._tracks[o];r&&!r.isFinished()&&(r=(r=r.keyframes)[i?0:r.length-1])&&(t[o]=Ie(r.rawValue))}}},Oe.prototype.__changeFinalValue=function(t,e){e=e||v(t);for(var i=0;i<e.length;i++){var n,o=e[i],r=this._tracks[o];r&&1<(n=r.keyframes).length&&(n=n.pop(),r.addKeyframe(n.time,t[o]),r.prepare(this._maxTime,r.getAdditiveTrack()))}};var Dg=Oe;i(Ee,Pg=Bf),Ee.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},Ee.prototype.addAnimator=function(t){t.animation=this,(t=t.getClip())&&this.addClip(t)},Ee.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)},Ee.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},Ee.prototype.update=function(t){for(var e=Le()-this._pausedTime,i=e-this._time,n=this._head;n;)var o=n.next,n=(n.step(e,i)&&(n.ondestroy(),this.removeClip(n)),o);this._time=e,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},Ee.prototype._startLoop=function(){var t=this;this._running=!0,rg(function e(){t._running&&(rg(e),t._paused||t.update())})},Ee.prototype.start=function(){this._running||(this._time=Le(),this._pausedTime=0,this._startLoop())},Ee.prototype.stop=function(){this._running=!1},Ee.prototype.pause=function(){this._paused||(this._pauseStart=Le(),this._paused=!0)},Ee.prototype.resume=function(){this._paused&&(this._pausedTime+=Le()-this._pauseStart,this._paused=!1)},Ee.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},Ee.prototype.isFinished=function(){return null==this._head},Ee.prototype.animate=function(t,e){return e=e||{},this.start(),t=new Dg(t,e.loop),this.addAnimator(t),t};var Pg,Og,Lg,Eg=Ee,Rg=af.domSupported,Ng=(Og={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Ug=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:g(Ug,function(t){var e=t.replace("mouse","pointer");return Og.hasOwnProperty(e)?e:t})}),Bg=["mousemove","mouseup"],zg=["pointermove","pointerup"],Fg=!1,Vg=function(t,e){this.stopPropagation=q,this.stopImmediatePropagation=q,this.preventDefault=q,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Yg={mousedown:function(t){t=vt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=vt(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=vt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Be(this,(t=vt(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Fg=!0,t=vt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Fg||(t=vt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Ne(t=vt(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Yg.mousemove.call(this,t),Yg.mousedown.call(this,t)},touchmove:function(t){Ne(t=vt(this.dom,t)),this.handler.processGesture(t,"change"),Yg.mousemove.call(this,t)},touchend:function(t){Ne(t=vt(this.dom,t)),this.handler.processGesture(t,"end"),Yg.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Yg.click.call(this,t)},pointerdown:function(t){Yg.mousedown.call(this,t)},pointermove:function(t){Re(t)||Yg.mousemove.call(this,t)},pointerup:function(t){Yg.mouseup.call(this,t)},pointerout:function(t){Re(t)||Yg.mouseout.call(this,t)}},Hg=(f(["click","dblclick","contextmenu"],function(t){Yg[t]=function(e){e=vt(this.dom,e),this.trigger(t,e)}}),{pointermove:function(t){Re(t)||Hg.mousemove.call(this,t)},pointerup:function(t){Hg.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}}),Wg=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},Xg=(i(He,Lg=Bf),He.prototype.dispose=function(){Ye(this._localHandlerScope),Rg&&Ye(this._globalHandlerScope)},He.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},He.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,Rg&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?Fe(this,e):Ye(e))},He),Ug=1,Gg=Ug=af.hasGlobalWindow?Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1):Ug,jg="#333",qg="#ccc",Ug=Object.freeze({__proto__:null,clone:function(t){var e=We();return Ue(e,t),e},copy:Ue,create:We,identity:Xe,invert:Ke,mul:Ge,rotate:qe,scale:Ze,translate:je}),Zg=Xe,Kg=[],Qg=[],$g=We(),Jg=Math.abs,ty=($e.prototype.getLocalTransform=function(t){return $e.getLocalTransform(this,t)},$e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},$e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},$e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},$e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},$e.prototype.needLocalTransform=function(){return Qe(this.rotation)||Qe(this.x)||Qe(this.y)||Qe(this.scaleX-1)||Qe(this.scaleY-1)||Qe(this.skewX)||Qe(this.skewY)},$e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;e||t?(i=i||We(),e?this.getLocalTransform(i):Zg(i),t&&(e?Ge(i,t,i):Ue(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)):i&&Zg(i)},$e.prototype._resolveGlobalScaleRatio=function(t){var e,i,n=this.globalScaleRatio;null!=n&&1!==n&&(this.getGlobalScale(Kg),i=((Kg[1]-(i=Kg[1]<0?-1:1))*n+i)/Kg[1]||0,t[0]*=n=((Kg[0]-(e=Kg[0]<0?-1:1))*n+e)/Kg[0]||0,t[1]*=n,t[2]*=i,t[3]*=i),this.invTransform=this.invTransform||We(),Ke(this.invTransform,t)},$e.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},$e.prototype.setLocalTransform=function(t){var e,i,n,o;t&&(o=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],e=Math.atan2(t[1],t[0]),i=Math.PI/2+e-Math.atan2(t[3],t[2]),n=Math.sqrt(n)*Math.cos(i),o=Math.sqrt(o),this.skewX=i,this.skewY=0,this.rotation=-e,this.x=+t[4],this.y=+t[5],this.scaleX=o,this.scaleY=n,this.originX=0,this.originY=0)},$e.prototype.decomposeTransform=function(){var t,e,i;this.transform&&(e=this.parent,t=this.transform,e&&e.transform&&(Ge(Qg,e.invTransform,t),t=Qg),e=this.originX,i=this.originY,(e||i)&&($g[4]=e,$g[5]=i,Ge(Qg,t,$g),Qg[4]-=e,Qg[5]-=i,t=Qg),this.setLocalTransform(t))},$e.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},$e.prototype.transformCoordToLocal=function(t,e){return t=[t,e],e=this.invTransform,e&&at(t,t,e),t},$e.prototype.transformCoordToGlobal=function(t,e){return t=[t,e],e=this.transform,e&&at(t,t,e),t},$e.prototype.getLineScale=function(){var t=this.transform;return t&&1e-10<Jg(t[0]-1)&&1e-10<Jg(t[3]-1)?Math.sqrt(Jg(t[0]*t[3]-t[2]*t[1])):1},$e.prototype.copyTransform=function(t){Je(this,t)},$e.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,o=t.scaleX,r=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,h=t.x,u=t.y,c=t.skewX?Math.tan(t.skewX):0,t=t.skewY?Math.tan(-t.skewY):0;return i||n||a||s?(e[4]=-(a=i+a)*o-c*(s=n+s)*r,e[5]=-s*r-t*a*o):e[4]=e[5]=0,e[0]=o,e[3]=r,e[1]=t*o,e[2]=c*r,l&&qe(e,e,l),e[4]+=i+h,e[5]+=n+u,e},$e.initDefaultProps=((_y=$e.prototype).scaleX=_y.scaleY=_y.globalScaleRatio=1,void(_y.x=_y.y=_y.originX=_y.originY=_y.skewX=_y.skewY=_y.rotation=_y.anchorX=_y.anchorY=0)),$e),ey=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];ti.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},ti.prototype.clone=function(){return new ti(this.x,this.y)},ti.prototype.set=function(t,e){return this.x=t,this.y=e,this},ti.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},ti.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},ti.prototype.scale=function(t){this.x*=t,this.y*=t},ti.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},ti.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},ti.prototype.dot=function(t){return this.x*t.x+this.y*t.y},ti.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},ti.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},ti.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},ti.prototype.distance=function(t){var e=this.x-t.x,t=this.y-t.y;return Math.sqrt(e*e+t*t)},ti.prototype.distanceSquare=function(t){var e=this.x-t.x,t=this.y-t.y;return e*e+t*t},ti.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},ti.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},ti.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},ti.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},ti.set=function(t,e,i){t.x=e,t.y=i},ti.copy=function(t,e){t.x=e.x,t.y=e.y},ti.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},ti.lenSquare=function(t){return t.x*t.x+t.y*t.y},ti.dot=function(t,e){return t.x*e.x+t.y*e.y},ti.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},ti.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},ti.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},ti.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},ti.lerp=function(t,e,i,n){var o=1-n;t.x=o*e.x+n*i.x,t.y=o*e.y+n*i.y};var iy,ny=ti,oy=Math.min,ry=Math.max,ay=new ny,sy=new ny,ly=new ny,hy=new ny,uy=new ny,cy=new ny,py=(ei.prototype.union=function(t){var e=oy(t.x,this.x),i=oy(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ry(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ry(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},ei.prototype.applyTransform=function(t){ei.applyTransform(this,this,t)},ei.prototype.calculateTransform=function(t){var e=t.width/this.width,i=t.height/this.height,n=We();return je(n,n,[-this.x,-this.y]),Ze(n,n,[e,i]),je(n,n,[t.x,t.y]),n},ei.prototype.intersect=function(t,e){if(!t)return!1;t instanceof ei||(t=ei.create(t));var i,n,o,r,a,s,l,h,u=this,c=u.x,p=u.x+u.width,d=u.y,u=u.y+u.height,f=t.x,g=t.x+t.width,y=t.y,t=t.y+t.height,m=!(p<f||g<c||u<y||t<d);return e&&(i=1/0,n=0,o=Math.abs(p-f),r=Math.abs(g-c),a=Math.abs(u-y),s=Math.abs(t-d),l=Math.min(o,r),h=Math.min(a,s),p<f||g<c?n<l&&(n=l,o<r?ny.set(cy,-o,0):ny.set(cy,r,0)):l<i&&(i=l,o<r?ny.set(uy,o,0):ny.set(uy,-r,0)),u<y||t<d?n<h&&(n=h,a<s?ny.set(cy,0,-a):ny.set(cy,0,s)):l<i&&(i=l,a<s?ny.set(uy,0,a):ny.set(uy,0,-s))),e&&ny.copy(e,m?uy:cy),m},ei.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},ei.prototype.clone=function(){return new ei(this.x,this.y,this.width,this.height)},ei.prototype.copy=function(t){ei.copy(this,t)},ei.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},ei.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},ei.prototype.isZero=function(){return 0===this.width||0===this.height},ei.create=function(t){return new ei(t.x,t.y,t.width,t.height)},ei.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},ei.applyTransform=function(t,e,i){var n,o,r,a;i?i[1]<1e-5&&-1e-5<i[1]&&i[2]<1e-5&&-1e-5<i[2]?(n=i[0],o=i[3],r=i[4],a=i[5],t.x=e.x*n+r,t.y=e.y*o+a,t.width=e.width*n,t.height=e.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height)):(ay.x=ly.x=e.x,ay.y=hy.y=e.y,sy.x=hy.x=e.x+e.width,sy.y=ly.y=e.y+e.height,ay.transform(i),hy.transform(i),sy.transform(i),ly.transform(i),t.x=oy(ay.x,sy.x,ly.x,hy.x),t.y=oy(ay.y,sy.y,ly.y,hy.y),r=ry(ay.x,sy.x,ly.x,hy.x),a=ry(ay.y,sy.y,ly.y,hy.y),t.width=r-t.x,t.height=a-t.y):t!==e&&ei.copy(t,e)},ei),dy={},fy="__zr_normal__",gy=ey.concat(["ignore"]),yy=y(ey,function(t,e){return t[e]=!0,t},{ignore:!1}),my={},vy=new py(0,0,0,0),_y=(ui.prototype._init=function(t){this.attr(t)},ui.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()},ui.prototype.beforeUpdate=function(){},ui.prototype.afterUpdate=function(){},ui.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},ui.prototype.updateInnerText=function(t){var e,i,n,o,r,a,s,l,h,u,c=this._textContent;!c||c.ignore&&!t||(this.textConfig||(this.textConfig={}),l=(t=this.textConfig).local,n=i=void 0,o=!1,(e=c.innerTransformable).parent=l?this:null,u=!1,e.copyTransform(c),null!=t.position&&(h=vy,t.layoutRect?h.copy(t.layoutRect):h.copy(this.getBoundingRect()),l||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(my,t,h):hi(my,t,h),e.x=my.x,e.y=my.y,i=my.align,n=my.verticalAlign,r=t.origin)&&null!=t.rotation&&(s=a=void 0,s="center"===r?(a=.5*h.width,.5*h.height):(a=li(r[0],h.width),li(r[1],h.height)),u=!0,e.originX=-e.x+a+(l?0:h.x),e.originY=-e.y+s+(l?0:h.y)),null!=t.rotation&&(e.rotation=t.rotation),(r=t.offset)&&(e.x+=r[0],e.y+=r[1],u||(e.originX=-r[0],e.originY=-r[1])),a=null==t.inside?"string"==typeof t.position&&0<=t.position.indexOf("inside"):t.inside,s=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),u=h=l=void 0,a&&this.canBeInsideText()?(l=t.insideFill,h=t.insideStroke,null!=l&&"auto"!==l||(l=this.getInsideTextFill()),null!=h&&"auto"!==h||(h=this.getInsideTextStroke(l),u=!0)):(l=t.outsideFill,h=t.outsideStroke,null!=l&&"auto"!==l||(l=this.getOutsideFill()),null!=h&&"auto"!==h||(h=this.getOutsideStroke(l),u=!0)),(l=l||"#000")===s.fill&&h===s.stroke&&u===s.autoStroke&&i===s.align&&n===s.verticalAlign||(o=!0,s.fill=l,s.stroke=h,s.autoStroke=u,s.align=i,s.verticalAlign=n,c.setDefaultTextStyle(s)),c.__dirty|=eg,o&&c.dirtyStyle(!0))},ui.prototype.canBeInsideText=function(){return!0},ui.prototype.getInsideTextFill=function(){return"#fff"},ui.prototype.getInsideTextStroke=function(t){return"#000"},ui.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?qg:jg},ui.prototype.getOutsideStroke=function(t){for(var e=this.__zr&&this.__zr.getBackgroundColor(),i="string"==typeof e&&ae(e),n=(i=i||[255,255,255,1])[3],o=this.__zr.isDarkMode(),r=0;r<3;r++)i[r]=i[r]*n+(o?0:255)*(1-n);return i[3]=1,ce(i,"rgba")},ui.prototype.traverse=function(t,e){},ui.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},ui.prototype.hide=function(){this.ignore=!0,this.markRedraw()},ui.prototype.show=function(){this.ignore=!1,this.markRedraw()},ui.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 o=i[n];this.attrKV(o,t[o])}return this.markRedraw(),this},ui.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],o=n.__fromStateTransition;n.getLoop()||o&&o!==fy||(o=(o=n.targetName)?e[o]:e,n.saveTo(o))}},ui.prototype._innerSaveToNormal=function(t){var e=(e=this._normalState)||(this._normalState={});t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,gy)},ui.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var o=i[n];null==t[o]||o in e||(e[o]=this[o])}},ui.prototype.hasState=function(){return 0<this.currentStates.length},ui.prototype.getState=function(t){return this.states[t]},ui.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},ui.prototype.clearStates=function(t){this.useState(fy,!1,t)},ui.prototype.useState=function(t,e,i,n){var o=t===fy,a=this.hasState();if(a||!o){var s,a=this.currentStates,l=this.stateTransition;if(!(0<=u(a,t))||!e&&1!==a.length){if((s=(s=this.stateProxy&&!o?this.stateProxy(t):s)||this.states&&this.states[t])||o)return o||this.saveCurrentToNormalState(s),(a=!!(s&&s.hoverLayer||n))&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!i&&!this.__inHover&&l&&0<l.duration,l),n=this._textContent,l=this._textGuide,n&&n.useState(t,e,i,a),l&&l.useState(t,e,i,a),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!a&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~eg),s;r("State "+t+" not exists.")}}},ui.prototype.useStates=function(t,e,i){if(t.length){var n=[],o=this.currentStates,r=t.length,a=r===o.length;if(a)for(var s=0;s<r;s++)if(t[s]!==o[s]){a=!1;break}if(!a){for(s=0;s<r;s++){var l=t[s],h=void 0;(h=(h=this.stateProxy?this.stateProxy(l,t):h)||this.states[l])&&n.push(h)}var u=n[r-1],u=!!(u&&u.hoverLayer||i),i=(u&&this._toggleHoverLayerFlag(!0),this._mergeStates(n)),c=this.stateTransition,i=(this.saveCurrentToNormalState(i),this._applyStateObj(t.join(","),i,this._normalState,!1,!e&&!this.__inHover&&c&&0<c.duration,c),this._textContent),c=this._textGuide;i&&i.useStates(t,e,u),c&&c.useStates(t,e,u),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~eg)}}else this.clearStates()},ui.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},ui.prototype.removeState=function(t){var e,t=u(this.currentStates,t);0<=t&&((e=this.currentStates.slice()).splice(t,1),this.useStates(e))},ui.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),t=u(n,t),o=0<=u(n,e);0<=t?o?n.splice(t,1):n[t]=e:i&&!o&&n.push(e),this.useStates(n)},ui.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},ui.prototype._mergeStates=function(t){for(var e,i={},n=0;n<t.length;n++){var o=t[n];l(i,o),o.textConfig&&l(e=e||{},o.textConfig)}return e&&(i.textConfig=e),i},ui.prototype._applyStateObj=function(t,e,i,n,o,r){for(var a=!(e&&n),s=(e&&e.textConfig?(this.textConfig=l({},(n?this:i).textConfig),l(this.textConfig,e.textConfig)):a&&i.textConfig&&(this.textConfig=i.textConfig),{}),h=!1,u=0;u<gy.length;u++){var c=gy[u],p=o&&yy[c];e&&null!=e[c]?p?(h=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=i[c]&&(p?(h=!0,s[c]=i[c]):this[c]=i[c])}if(!o)for(u=0;u<this.animators.length;u++){var d=this.animators[u],f=d.targetName;d.getLoop()||d.__changeFinalValue(f?(e||i)[f]:e||i)}h&&this._transitionState(t,s,r)},ui.prototype._attachComponent=function(t){var e;t.__zr&&!t.__hostTarget||t!==this&&((e=this.__zr)&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this)},ui.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},ui.prototype.getClipPath=function(){return this._clipPath},ui.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},ui.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},ui.prototype.getTextContent=function(){return this._textContent},ui.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new ty,this._attachComponent(t),this._textContent=t,this.markRedraw())},ui.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),l(this.textConfig,t),this.markRedraw()},ui.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},ui.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},ui.prototype.getTextGuideLine=function(){return this._textGuide},ui.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},ui.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},ui.prototype.markRedraw=function(){this.__dirty|=eg;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},ui.prototype.dirty=function(){this.markRedraw()},ui.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},ui.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)}},ui.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)}},ui.prototype.animate=function(t,e,i){var n=t?this[t]:this,n=new Dg(n,e,i);return t&&(n.targetName=t),this.addAnimator(n,t),n},ui.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()},ui.prototype.updateDuringAnimation=function(t){this.markRedraw()},ui.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,o=[],r=0;r<n;r++){var a=i[r];t&&t!==a.scope?o.push(a):a.stop(e)}return this.animators=o,this},ui.prototype.animateTo=function(t,e,i){pi(this,t,e,i)},ui.prototype.animateFrom=function(t,e,i){pi(this,t,e,i,!0)},ui.prototype._transitionState=function(t,e,i,n){for(var o=pi(this,e,i,n),r=0;r<o.length;r++)o[r].__fromStateTransition=t},ui.prototype.getBoundingRect=function(){return null},ui.prototype.getPaintRect=function(){return null},ui.initDefaultProps=((iy=ui.prototype).type="element",iy.name="",iy.ignore=iy.silent=iy.isGroup=iy.draggable=iy.dragging=iy.ignoreClip=iy.__inHover=!1,iy.__dirty=eg,void(Object.defineProperty&&(ci("position","_legacyPos","x","y"),ci("scale","_legacyScale","scaleX","scaleY"),ci("origin","_legacyOrigin","originX","originY")))),ui);p(_y,Bf),p(_y,ty),i(yi,xy=_y),yi.prototype.childrenRef=function(){return this._children},yi.prototype.children=function(){return this._children.slice()},yi.prototype.childAt=function(t){return this._children[t]},yi.prototype.childOfName=function(t){for(var e=this._children,i=0;i<e.length;i++)if(e[i].name===t)return e[i]},yi.prototype.childCount=function(){return this._children.length},yi.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},yi.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},yi.prototype.replace=function(t,e){return t=u(this._children,t),0<=t&&this.replaceAt(e,t),this},yi.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},yi.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()},yi.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},yi.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},yi.prototype.eachChild=function(t,e){for(var i=this._children,n=0;n<i.length;n++){var o=i[n];t.call(e,o,n)}return this},yi.prototype.traverse=function(t,e){for(var i=0;i<this._children.length;i++){var n=this._children[i],o=t.call(e,n);n.isGroup&&!o&&n.traverse(t,e)}return this},yi.prototype.addSelfToZr=function(t){xy.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].addSelfToZr(t)},yi.prototype.removeSelfFromZr=function(t){xy.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].removeSelfFromZr(t)},yi.prototype.getBoundingRect=function(t){for(var e=new py(0,0,0,0),i=t||this._children,n=[],o=null,r=0;r<i.length;r++){var a,s=i[r];s.ignore||s.invisible||(a=s.getBoundingRect(),(s=s.getLocalTransform(n))?(py.applyTransform(e,a,s),(o=o||e.clone()).union(e)):(o=o||a.clone()).union(a))}return o||e};var xy,wy=yi;wy.prototype.type="group";var by={},Sy={};mi.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},mi.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},mi.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},mi.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(t){if("string"==typeof t)return pe(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,i=0,n=e.length,o=0;o<n;o++)i+=pe(e[o].color,1);return(i/=n)<.4}}return!1}(t)},mi.prototype.getBackgroundColor=function(){return this._backgroundColor},mi.prototype.setDarkMode=function(t){this._darkMode=t},mi.prototype.isDarkMode=function(){return this._darkMode},mi.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},mi.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},mi.prototype.flush=function(){this._flush(!1)},mi.prototype._flush=function(t){var e,i=Le(),t=(this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),Le());e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:t-i})):0<this._sleepAfterStill&&++this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop()},mi.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},mi.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},mi.prototype.refreshHover=function(){this._needsRefreshHover=!0},mi.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},mi.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},mi.prototype.clearAnimation=function(){this.animation.clear()},mi.prototype.getWidth=function(){return this.painter.getWidth()},mi.prototype.getHeight=function(){return this.painter.getHeight()},mi.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},mi.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},mi.prototype.on=function(t,e,i){return this.handler.on(t,e,i),this},mi.prototype.off=function(t,e){this.handler.off(t,e)},mi.prototype.trigger=function(t,e){this.handler.trigger(t,e)},mi.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof wy&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},mi.prototype.dispose=function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete Sy[t]};var Ty,Cy=mi,My=Object.freeze({__proto__:null,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in Sy)Sy.hasOwnProperty(t)&&Sy[t].dispose();Sy={}},getInstance:function(t){return Sy[t]},init:vi,registerPainter:_i,version:"5.3.0"}),Iy=20,ky=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,Ay="series\0",Dy=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"],Py=Ei(),Oy={useDefault:!0,enableAll:!1,enableNone:!1},Ly=".",Ey="___EC__COMPONENT__CONTAINER___",Ry="___EC__EXTENDED_CLASS___",Ny=Math.round(10*Math.random()),By=ln([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),zy=(hn.prototype.getAreaStyle=function(t,e){return By(this,t,e)},hn),Fy=new _g(50),Vy=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,Yy=function(){},Hy=function(t){this.tokens=[],t&&(this.tokens=t)},Wy=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]},Xy=y(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{}),Uy="__zr_style_"+Math.round(10*Math.random()),Gy={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},jy={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},qy=(Gy[Uy]=!0,["z","z2","invisible"]),Zy=["invisible"],_y=(i(_n,Ty=_y),_n.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]):Ty.prototype.attrKV.call(this,n,t[n])}this.style||this.useStyle({})},_n.prototype.beforeBrush=function(){},_n.prototype.afterBrush=function(){},_n.prototype.innerBeforeBrush=function(){},_n.prototype.innerAfterBrush=function(){},_n.prototype.shouldBePainted=function(t,e,i,n){var o=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,i){return Ky.copy(t.getBoundingRect()),t.transform&&Ky.applyTransform(t.transform),Qy.width=e,Qy.height=i,!Ky.intersect(Qy)}(this,t,e)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths)for(var r=0;r<this.__clipPaths.length;++r)if(this.__clipPaths[r].isZeroArea())return!1;if(n&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},_n.prototype.contain=function(t,e){return this.rectContain(t,e)},_n.prototype.traverse=function(t,e){t.call(e,this)},_n.prototype.rectContain=function(t,e){return t=this.transformCoordToLocal(t,e),this.getBoundingRect().contain(t[0],t[1])},_n.prototype.getPaintRect=function(){var t,e,i,n,o,r=this._paintRect;return this._paintRect&&!this.__dirty||(o=this.transform,t=this.getBoundingRect(),e=(n=this.style).shadowBlur||0,i=n.shadowOffsetX||0,n=n.shadowOffsetY||0,r=this._paintRect||(this._paintRect=new py(0,0,0,0)),o?py.applyTransform(r,t,o):r.copy(t),(e||i||n)&&(r.width+=2*e+Math.abs(i),r.height+=2*e+Math.abs(n),r.x=Math.min(r.x,r.x+i-e),r.y=Math.min(r.y,r.y+n-e)),o=this.dirtyRectTolerance,r.isZero())||(r.x=Math.floor(r.x-o),r.y=Math.floor(r.y-o),r.width=Math.ceil(r.width+1+2*o),r.height=Math.ceil(r.height+1+2*o)),r},_n.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new py(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},_n.prototype.getPrevPaintRect=function(){return this._prevPaintRect},_n.prototype.animateStyle=function(t){return this.animate("style",t)},_n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},_n.prototype.attrKV=function(t,e){"style"!==t?Ty.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},_n.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:l(this.style,t),this.dirtyStyle(),this},_n.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},_n.prototype.dirty=function(){this.dirtyStyle()},_n.prototype.styleChanged=function(){return!!(2&this.__dirty)},_n.prototype.styleUpdated=function(){this.__dirty&=-3},_n.prototype.createStyle=function(t){return U(Gy,t)},_n.prototype.useStyle=function(t){t[Uy]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},_n.prototype.isStyleObject=function(t){return t[Uy]},_n.prototype._innerSaveToNormal=function(t){Ty.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.style&&!e.style&&(e.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,e,qy)},_n.prototype._applyStateObj=function(t,e,i,n,o,r){Ty.prototype._applyStateObj.call(this,t,e,i,n,o,r);var a,s=!(e&&n);if(e&&e.style?o?n?a=e.style:(a=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(a,e.style)):(a=this._mergeStyle(this.createStyle(),(n?this:i).style),this._mergeStyle(a,e.style)):s&&(a=i.style),a)if(o){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var h=v(l),u=0;u<h.length;u++)(p=h[u])in a&&(a[p]=a[p],this.style[p]=l[p]);for(var c=v(a),u=0;u<c.length;u++){var p=c[u];this.style[p]=this.style[p]}this._transitionState(t,{style:a},r,this.getAnimationStyleProps())}else this.useStyle(a);for(var d=this.__inHover?Zy:qy,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])},_n.prototype._mergeStates=function(t){for(var e,i=Ty.prototype._mergeStates.call(this,t),n=0;n<t.length;n++){var o=t[n];o.style&&this._mergeStyle(e=e||{},o.style)}return e&&(i.style=e),i},_n.prototype._mergeStyle=function(t,e){return l(t,e),t},_n.prototype.getAnimationStyleProps=function(){return jy},_n.initDefaultProps=((_y=_n.prototype).type="displayable",_y.invisible=!1,_y.z=0,_y.z2=0,_y.zlevel=0,_y.culling=!1,_y.cursor="pointer",_y.rectHover=!1,_y.incremental=!1,_y._rect=null,_y.dirtyRectTolerance=0,void(_y.__dirty=2|eg)),_n),Ky=new py(0,0,0,0),Qy=new py(0,0,0,0),$y=Math.min,Jy=Math.max,tm=Math.sin,em=Math.cos,im=2*Math.PI,nm=Z(),om=Z(),rm=Z(),am=[],sm=[],lm={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},hm=[],um=[],cm=[],pm=[],dm=[],fm=[],gm=Math.min,ym=Math.max,mm=Math.cos,vm=Math.sin,_m=Math.abs,xm=Math.PI,wm=2*xm,bm="undefined"!=typeof Float32Array,Sm=[];bn.prototype.increaseVersion=function(){this._version++},bn.prototype.getVersion=function(){return this._version},bn.prototype.setScale=function(t,e,i){0<(i=i||0)&&(this._ux=_m(i/Gg/t)||0,this._uy=_m(i/Gg/e)||0)},bn.prototype.setDPR=function(t){this.dpr=t},bn.prototype.setContext=function(t){this._ctx=t},bn.prototype.getContext=function(){return this._ctx},bn.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},bn.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},bn.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(lm.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},bn.prototype.lineTo=function(t,e){var i=_m(t-this._xi),n=_m(e-this._yi),o=i>this._ux||n>this._uy;return this.addData(lm.L,t,e),this._ctx&&o&&this._ctx.lineTo(t,e),o?(this._xi=t,this._yi=e,this._pendingPtDist=0):(o=i*i+n*n)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o),this},bn.prototype.bezierCurveTo=function(t,e,i,n,o,r){return this._drawPendingPt(),this.addData(lm.C,t,e,i,n,o,r),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,o,r),this._xi=o,this._yi=r,this},bn.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(lm.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},bn.prototype.arc=function(t,e,i,n,o,r){this._drawPendingPt(),Sm[0]=n,Sm[1]=o,s=r,(l=wn((a=Sm)[0]))<0&&(l+=wm),u=l-a[0],h=a[1],h+=u,!s&&wm<=h-l?h=l+wm:s&&wm<=l-h?h=l-wm:!s&&h<l?h=l+(wm-wn(l-h)):s&&l<h&&(h=l-(wm-wn(h-l))),a[0]=l,a[1]=h;var a,s,l,h,u=(o=Sm[1])-(n=Sm[0]);return this.addData(lm.A,t,e,i,i,n,u,0,r?0:1),this._ctx&&this._ctx.arc(t,e,i,n,o,r),this._xi=mm(o)*i+t,this._yi=vm(o)*i+e,this},bn.prototype.arcTo=function(t,e,i,n,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,o),this},bn.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(lm.R,t,e,i,n),this},bn.prototype.closePath=function(){this._drawPendingPt(),this.addData(lm.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},bn.prototype.fill=function(t){t&&t.fill(),this.toStatic()},bn.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},bn.prototype.len=function(){return this._len},bn.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!bm||(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e},bn.prototype.appendPath=function(t){for(var e=(t=t instanceof Array?t:[t]).length,i=0,n=this._len,o=0;o<e;o++)i+=t[o].len();for(bm&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i)),o=0;o<e;o++)for(var r=t[o].data,a=0;a<r.length;a++)this.data[n++]=r[a];this._len=n},bn.prototype.addData=function(t,e,i,n,o,r,a,s,l){if(this._saveData){var h=this.data;this._len+arguments.length>h.length&&(this._expandData(),h=this.data);for(var u=0;u<arguments.length;u++)h[this._len++]=arguments[u]}},bn.prototype._drawPendingPt=function(){0<this._pendingPtDist&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},bn.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}},bn.prototype.toStatic=function(){var t;this._saveData&&(this._drawPendingPt(),(t=this.data)instanceof Array)&&(t.length=this._len,bm)&&11<this._len&&(this.data=new Float32Array(t))},bn.prototype.getBoundingRect=function(){cm[0]=cm[1]=dm[0]=dm[1]=Number.MAX_VALUE,pm[0]=pm[1]=fm[0]=fm[1]=-Number.MAX_VALUE;for(var t,e=this.data,i=0,n=0,o=0,r=0,a=0;a<this._len;){var s=e[a++],l=1===a;switch(l&&(o=i=e[a],r=n=e[a+1]),s){case lm.M:i=o=e[a++],n=r=e[a++],dm[0]=o,dm[1]=r,fm[0]=o,fm[1]=r;break;case lm.L:xn(i,n,e[a],e[a+1],dm,fm),i=e[a++],n=e[a++];break;case lm.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=dm,v=fm,_=Ft,x=Nt,w=_(h,c,d,g,am);m[0]=1/0,m[1]=1/0,v[0]=-1/0,v[1]=-1/0;for(var b=0;b<w;b++){var S=x(h,c,d,g,am[b]);m[0]=$y(S,m[0]),v[0]=Jy(S,v[0])}for(w=_(u,p,f,y,sm),b=0;b<w;b++){var T=x(u,p,f,y,sm[b]);m[1]=$y(T,m[1]),v[1]=Jy(T,v[1])}m[0]=$y(h,m[0]),v[0]=Jy(h,v[0]),m[0]=$y(g,m[0]),v[0]=Jy(g,v[0]),m[1]=$y(u,m[1]),v[1]=Jy(u,v[1]),m[1]=$y(y,m[1]),v[1]=Jy(y,v[1]),i=e[a++],n=e[a++];break;case lm.Q:_=i,F=n,P=e[a++],I=e[a++],D=e[a],C=e[a+1],A=dm,O=fm,t=k=t=M=void 0,M=Ht,t=Jy($y((k=Xt)(_,P,D),1),0),k=Jy($y(k(F,I,C),1),0),P=M(_,P,D,t),t=M(F,I,C,k),A[0]=$y(_,D,P),A[1]=$y(F,C,t),O[0]=Jy(_,D,P),O[1]=Jy(F,C,t),i=e[a++],n=e[a++];break;case lm.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&&(o=mm(D)*k+M,r=vm(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=dm,Y=fm,H=st,W=lt;if((C=Math.abs(B-z))%im<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]=tm(B)*N+E,om[0]=em(z)*R+L,om[1]=tm(z)*N+E,H(V,nm,om),W(Y,nm,om),(B%=im)<0&&(B+=im),(z%=im)<0&&(z+=im),z<B&&!F?z+=im:B<z&&F&&(B+=im),F&&(C=z,z=B,B=C);for(var X=0;X<z;X+=Math.PI/2)B<X&&(rm[0]=em(X)*R+L,rm[1]=tm(X)*N+E,H(V,rm,V),W(Y,rm,Y))}i=mm(P)*k+M,n=vm(P)*A+I;break;case lm.R:xn(o=i=e[a++],r=n=e[a++],o+e[a++],r+e[a++],dm,fm);break;case lm.Z:i=o,n=r}st(cm,cm,dm),lt(pm,pm,fm)}return 0===a&&(cm[0]=cm[1]=pm[0]=pm[1]=0),new py(cm[0],cm[1],pm[0]-cm[0],pm[1]-cm[1])},bn.prototype._calculateLength=function(){for(var t=this.data,e=this._len,i=this._ux,n=this._uy,o=0,r=0,a=0,s=0,l=(this._pathSegLen||(this._pathSegLen=[]),this._pathSegLen),h=0,u=0,c=0;c<e;){var p=t[c++],d=1===c,f=(d&&(a=o=t[c],s=r=t[c+1]),-1);switch(p){case lm.M:o=a=t[c++],r=s=t[c++];break;case lm.L:var g=t[c++],y=(_=t[c++])-r;(_m(I=g-o)>i||_m(y)>n||c===e-1)&&(f=Math.sqrt(I*I+y*y),o=g,r=_);break;case lm.C:var m=t[c++],v=t[c++],g=t[c++],_=t[c++],x=t[c++],w=t[c++],f=function(t,e,i,n,o,r,a,s,l){for(var h=t,u=e,c=0,p=1;p<=10;p++){var d=.1*p,f=Nt(t,i,o,a,d),d=Nt(e,n,r,s,d),g=f-h,y=d-u;c+=Math.sqrt(g*g+y*y),h=f,u=d}return c}(o,r,m,v,g,_,x,w),o=x,r=w;break;case lm.Q:f=function(t,e,i,n,o,r,a){for(var s=t,l=e,h=0,u=1;u<=10;u++){var c=.1*u,p=Ht(t,i,o,c),c=Ht(e,n,r,c),d=p-s,f=c-l;h+=Math.sqrt(d*d+f*f),s=p,l=c}return h}(o,r,m=t[c++],v=t[c++],g=t[c++],_=t[c++]),o=g,r=_;break;case lm.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,t[c++],d&&(a=mm(T)*b+x,s=vm(T)*S+w),f=ym(b,S)*gm(wm,Math.abs(C)),o=mm(M)*b+x,r=vm(M)*S+w;break;case lm.R:a=o=t[c++],s=r=t[c++],f=2*t[c++]+2*t[c++];break;case lm.Z:var I=a-o,y=s-r;f=Math.sqrt(I*I+y*y),o=a,r=s}0<=f&&(h+=l[u++]=f)}return this._pathLen=h},bn.prototype.rebuildPath=function(t,e){var i,n,o,r,a,s,l,h,u=this.data,c=this._ux,p=this._uy,d=this._len,f=e<1,g=0,y=0,m=0;if(!f||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var v=0;v<d;){var _=u[v++],x=1===v;switch(x&&(i=o=u[v],n=r=u[v+1]),_!==lm.L&&0<m&&(t.lineTo(l,h),m=0),_){case lm.M:i=o=u[v++],n=r=u[v++],t.moveTo(o,r);break;case lm.L:var w=u[v++],b=u[v++],S=_m(w-o),T=_m(b-r);if(c<S||p<T){if(f){if(s<g+(H=a[y++])){var C=(s-g)/H;t.lineTo(o*(1-C)+w*C,r*(1-C)+b*C);break t}g+=H}t.lineTo(w,b),o=w,r=b,m=0}else S=S*S+T*T,m<S&&(l=w,h=b,m=S);break;case lm.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++])){Vt(o,M,k,T,C=(s-g)/H,hm),Vt(r,I,A,S,C,um),t.bezierCurveTo(hm[1],um[1],hm[2],um[2],hm[3],um[3]);break t}g+=H}t.bezierCurveTo(M,I,k,A,T,S),o=T,r=S;break;case lm.Q:if(M=u[v++],I=u[v++],k=u[v++],A=u[v++],f){if(s<g+(H=a[y++])){Ut(o,M,k,C=(s-g)/H,hm),Ut(r,I,A,C,um),t.quadraticCurveTo(hm[1],um[1],hm[2],um[2]);break t}g+=H}t.quadraticCurveTo(M,I,k,A),o=k,r=A;break;case lm.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=mm(E)*O+D,n=vm(E)*L+P),o=mm(V)*O+D,r=vm(V)*L+P;break;case lm.R:i=o=u[v],n=r=u[v+1],w=u[v++],b=u[v++];var H,R=u[v++],F=u[v++];if(f){if(s<g+(H=a[y++])){N=s-g,t.moveTo(w,b),t.lineTo(w+gm(N,R),b),0<(N-=R)&&t.lineTo(w+R,b+gm(N,F)),0<(N-=F)&&t.lineTo(w+ym(R-N,0),b+F),0<(N-=R)&&t.lineTo(w,b+ym(F-N,0));break t}g+=H}t.rect(w,b,R,F);break;case lm.Z:if(f){if(s<g+(H=a[y++])){C=(s-g)/H,t.lineTo(o*(1-C)+i*C,r*(1-C)+n*C);break t}g+=H}t.closePath(),o=i,r=n}}},bn.prototype.clone=function(){var t=new bn,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},bn.CMD=lm,bn.initDefaultProps=((Ev=bn.prototype)._saveData=!0,Ev._ux=0,Ev._uy=0,Ev._pendingPtDist=0,void(Ev._version=0));var Tm,Cm,Mm=bn,Im=2*Math.PI,km=2*Math.PI,Am=Mm.CMD,Dm=2*Math.PI,Pm=1e-4,Om=[-1,-1,-1],Lm=[-1,-1],Em=h({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Gy),Rm={style:h({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},jy.style)},Nm=ey.concat(["invisible","culling","z","z2","zlevel","parent"]),Bm=(i(An,Tm=_y),An.prototype.update=function(){var t=this,e=(Tm.prototype.update.call(this),this.style);if(e.decal){var i,n=this._decalEl=this._decalEl||new An,o=(n.buildPath===An.prototype.buildPath&&(n.buildPath=function(e){t.buildPath(e,t.shape)}),n.silent=!0,n.style);for(i in e)o[i]!==e[i]&&(o[i]=e[i]);o.fill=e.fill?e.decal:null,o.decal=null,o.shadowColor=null,e.strokeFirst&&(o.stroke=null);for(var r=0;r<Nm.length;++r)n[Nm[r]]=this[Nm[r]];n.__dirty|=eg}else this._decalEl&&(this._decalEl=null)},An.prototype.getDecalElement=function(){return this._decalEl},An.prototype._init=function(t){var e=v(t),i=(this.shape=this.getDefaultShape(),this.getDefaultStyle());i&&this.useStyle(i);for(var n=0;n<e.length;n++){var o=e[n],r=t[o];"style"===o?this.style?l(this.style,r):this.useStyle(r):"shape"===o?l(this.shape,r):Tm.prototype.attrKV.call(this,o,r)}this.style||this.useStyle({})},An.prototype.getDefaultStyle=function(){return null},An.prototype.getDefaultShape=function(){return{}},An.prototype.canBeInsideText=function(){return this.hasFill()},An.prototype.getInsideTextFill=function(){var t,e=this.style.fill;if("none"!==e){if(b(e))return.5<(t=pe(e,0))?jg:.2<t?"#eee":qg;if(e)return qg}return jg},An.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(b(e)){var i=this.__zr;if(!(!i||!i.isDarkMode())==pe(t,0)<.4)return e}},An.prototype.buildPath=function(t,e,i){},An.prototype.pathUpdated=function(){this.__dirty&=~ig},An.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},An.prototype.createPathProxy=function(){this.path=new Mm(!1)},An.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))},An.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},An.prototype.getBoundingRect=function(){var t,e,i=this._rect,n=this.style,o=!i;return o&&(t=!1,this.path||(t=!0,this.createPathProxy()),e=this.path,(t||this.__dirty&ig)&&(e.beginPath(),this.buildPath(e,this.shape,!1),this.pathUpdated()),i=e.getBoundingRect()),this._rect=i,this.hasStroke()&&this.path&&0<this.path.len()?(t=this._rectStroke||(this._rectStroke=i.clone()),(this.__dirty||o)&&(t.copy(i),e=n.strokeNoScale?this.getLineScale():1,o=n.lineWidth,this.hasFill()||(n=this.strokeContainThreshold,o=Math.max(o,null==n?4:n)),1e-10<e)&&(t.width+=o/e,t.height+=o/e,t.x-=o/e/2,t.y-=o/e/2),t):i},An.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),o=this.style;if(t=i[0],e=i[1],n.contain(t,e)){if(i=this.path,this.hasStroke()&&(n=o.lineWidth,1e-10<(o=o.strokeNoScale?this.getLineScale():1)&&(this.hasFill()||(n=Math.max(n,this.strokeContainThreshold)),kn(i,n/o,!0,t,e))))return!0;if(this.hasFill())return kn(i,0,!1,t,e)}return!1},An.prototype.dirtyShape=function(){this.__dirty|=ig,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},An.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},An.prototype.animateShape=function(t){return this.animate("shape",t)},An.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},An.prototype.attrKV=function(t,e){"shape"===t?this.setShape(e):Tm.prototype.attrKV.call(this,t,e)},An.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},An.prototype.shapeChanged=function(){return!!(this.__dirty&ig)},An.prototype.createStyle=function(t){return U(Em,t)},An.prototype._innerSaveToNormal=function(t){Tm.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.shape&&!e.shape&&(e.shape=l({},this.shape))},An.prototype._applyStateObj=function(t,e,i,n,o,r){Tm.prototype._applyStateObj.call(this,t,e,i,n,o,r);var a,s=!(e&&n);if(e&&e.shape?o?n?a=e.shape:(a=l({},i.shape),l(a,e.shape)):(a=l({},(n?this:i).shape),l(a,e.shape)):s&&(a=i.shape),a)if(o){this.shape=l({},this.shape);for(var h={},u=v(a),c=0;c<u.length;c++){var p=u[c];"object"==typeof a[p]?this.shape[p]=a[p]:h[p]=a[p]}this._transitionState(t,{shape:h},r)}else this.shape=a,this.dirtyShape()},An.prototype._mergeStates=function(t){for(var e,i=Tm.prototype._mergeStates.call(this,t),n=0;n<t.length;n++){var o=t[n];o.shape&&this._mergeStyle(e=e||{},o.shape)}return e&&(i.shape=e),i},An.prototype.getAnimationStyleProps=function(){return Rm},An.prototype.isZeroArea=function(){return!1},An.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=An),e.prototype.getDefaultStyle=function(){return a(t.style)},e.prototype.getDefaultShape=function(){return a(t.shape)};var n,o,r=e;for(o in t)"function"==typeof t[o]&&(r.prototype[o]=t[o]);return r},An.initDefaultProps=((Ev=An.prototype).type="path",Ev.strokeContainThreshold=5,Ev.segmentIgnoreThreshold=0,Ev.subPixelOptimize=!1,Ev.autoBatch=!1,void(Ev.__dirty=2|eg|ig)),An),zm=h({strokeFirst:!0,font:cf,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Em),Fm=(i(Dn,Cm=_y),Dn.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth},Dn.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Dn.prototype.createStyle=function(t){return U(zm,t)},Dn.prototype.setBoundingRect=function(t){this._rect=t},Dn.prototype.getBoundingRect=function(){var t,e=this.style;return this._rect||(null!=(t=e.text)?t+="":t="",(t=oi(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},Dn.initDefaultProps=void(Dn.prototype.dirtyRectTolerance=10),Dn);Fm.prototype.type="tspan";var Vm=h({x:0,y:0},Gy),Ym={style:h({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},jy.style)};i(Pn,Hm=_y),Pn.prototype.createStyle=function(t){return U(Vm,t)},Pn.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},Pn.prototype.getWidth=function(){return this._getSize("width")},Pn.prototype.getHeight=function(){return this._getSize("height")},Pn.prototype.getAnimationStyleProps=function(){return Ym},Pn.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new py(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect};var Hm,Wm=Pn;Wm.prototype.type="image";var Xm,Um=Math.round,Gm=function(){this.x=0,this.y=0,this.width=0,this.height=0},jm={},qm=(i(Rn,Xm=Bm),Rn.prototype.getDefaultShape=function(){return new Gm},Rn.prototype.buildPath=function(t,e){var i,n,o,r,a,s,l,h,u,c,p,d,f,g;this.subPixelOptimize?(i=(a=Ln(jm,e,this.style)).x,n=a.y,o=a.width,r=a.height,a.r=e.r,e=a):(i=e.x,n=e.y,o=e.width,r=e.height),e.r?(a=t,p=(e=e).x,d=e.y,f=e.width,g=e.height,e=e.r,f<0&&(p+=f,f=-f),g<0&&(d+=g,g=-g),"number"==typeof e?s=l=h=u=e:e instanceof Array?1===e.length?s=l=h=u=e[0]:2===e.length?(s=h=e[0],l=u=e[1]):3===e.length?(s=e[0],l=u=e[1],h=e[2]):(s=e[0],l=e[1],h=e[2],u=e[3]):s=l=h=u=0,f<s+l&&(s*=f/(c=s+l),l*=f/c),f<h+u&&(h*=f/(c=h+u),u*=f/c),g<l+h&&(l*=g/(c=l+h),h*=g/c),g<s+u&&(s*=g/(c=s+u),u*=g/c),a.moveTo(p+s,d),a.lineTo(p+f-l,d),0!==l&&a.arc(p+f-l,d+l,l,-Math.PI/2,0),a.lineTo(p+f,d+g-h),0!==h&&a.arc(p+f-h,d+g-h,h,0,Math.PI/2),a.lineTo(p+u,d+g),0!==u&&a.arc(p+u,d+g-u,u,Math.PI/2,Math.PI),a.lineTo(p,d+s),0!==s&&a.arc(p+s,d+s,s,Math.PI,1.5*Math.PI)):t.rect(i,n,o,r)},Rn.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},Rn);qm.prototype.type="rect";var Zm,Km={fill:"#000"},Qm={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},jy.style)},$m=(i(Nn,Zm=_y),Nn.prototype.childrenRef=function(){return this._children},Nn.prototype.update=function(){Zm.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var e=this._children[t];e.zlevel=this.zlevel,e.z=this.z,e.z2=this.z2,e.culling=this.culling,e.cursor=this.cursor,e.invisible=this.invisible}},Nn.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):Zm.prototype.updateTransform.call(this)},Nn.prototype.getLocalTransform=function(t){var e=this.innerTransformable;return e?e.getLocalTransform(t):Zm.prototype.getLocalTransform.call(this,t)},Nn.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),Zm.prototype.getComputedTransform.call(this)},Nn.prototype._updateSubTexts=function(){var t;this._childCursor=0,Vn(t=this.style),f(t.rich,Vn),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},Nn.prototype.addSelfToZr=function(t){Zm.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=t},Nn.prototype.removeSelfFromZr=function(t){Zm.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=null},Nn.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new py(0,0,0,0),e=this._children,i=[],n=null,o=0;o<e.length;o++){var r=e[o],a=r.getBoundingRect(),r=r.getLocalTransform(i);r?(t.copy(a),t.applyTransform(r),(n=n||t.clone()).union(t)):(n=n||a.clone()).union(a)}this._rect=n||t}return this._rect},Nn.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Km},Nn.prototype.setTextContent=function(t){},Nn.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},Nn.prototype._mergeRich=function(t,e){for(var i=v(e),n=0;n<i.length;n++){var o=i[n];t[o]=t[o]||{},l(t[o],e[o])}},Nn.prototype.getAnimationStyleProps=function(){return Qm},Nn.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},Nn.prototype._updatePlainTexts=function(){for(var t,e=this.style,i=e.font||cf,n=e.padding,o=function(t,e){null!=t&&(t+="");var i,n=e.overflow,o=e.padding,r=e.font,a="truncate"===n,s=si(r),l=E(e.lineHeight,s),h=!!e.backgroundColor,u="truncate"===e.lineOverflow,c=e.width,n=(i=null==c||"break"!==n&&"breakAll"!==n?t?t.split("\n"):[]:t?vn(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=fn(c,r,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),f=0;f<i.length;f++)i[f]=gn(i[f],d);for(var u=p,g=0,f=0;f<i.length;f++)g=Math.max(ii(i[f],r),g);return null==c&&(c=g),t=g,o&&(u+=o[0]+o[2],t+=o[1]+o[3],c+=o[1]+o[3]),{lines:i,height:p,outerWidth:t=h?c:t,outerHeight:u,lineHeight:l,calculatedLineHeight:s,contentWidth:g,contentHeight:n,width:c}}(Xn(e),e),r=Un(e),a=!!e.backgroundColor,s=o.outerHeight,l=o.outerWidth,h=o.contentWidth,u=o.lines,c=o.lineHeight,p=this._defaultStyle,d=e.x||0,f=e.y||0,g=e.align||p.align||"left",y=e.verticalAlign||p.verticalAlign||"top",m=d,v=ai(f,o.contentHeight,y),_=((r||n)&&(t=ri(d,l,g),f=ai(f,s,y),r)&&this._renderBackground(e,e,t,f,l,s),v+=c/2,n&&(m=Wn(d,g,n),"top"===y?v+=n[0]:"bottom"===y&&(v-=n[2])),0),r=!1,x=(Hn(("fill"in e?e:(r=!0,p)).fill)),w=(Yn("stroke"in e?e.stroke:a||p.autoStroke&&!r?null:(_=2,p.stroke))),b=0<e.textShadowBlur,S=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),T=o.calculatedLineHeight,C=0;C<u.length;C++){var M=this._getOrCreateChild(Fm),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,zn(I,e),v+=c,S&&M.setBoundingRect(new py(ri(I.x,e.width,I.textAlign),ai(I.y,T,I.textBaseline),h,T))}},Nn.prototype._updateRichTexts=function(){for(var t=this.style,e=yn(Xn(t),t),i=e.width,n=e.outerWidth,o=e.outerHeight,r=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,h=t.align||l.align,l=t.verticalAlign||l.verticalAlign,a=ri(a,n,h),h=ai(s,o,l),u=a,c=h,p=(r&&(u+=r[3],c+=r[0]),u+i),d=(Un(t)&&this._renderBackground(t,t,a,h,n,o),!!t.backgroundColor),f=0;f<e.lines.length;f++){for(var g=e.lines[f],y=g.tokens,m=y.length,v=g.lineHeight,_=g.width,x=0,w=u,b=p,S=m-1,T=void 0;x<m&&(!(T=y[x]).align||"left"===T.align);)this._placeToken(T,t,v,c,w,"left",d),_-=T.width,w+=T.width,x++;for(;0<=S&&"right"===(T=y[S]).align;)this._placeToken(T,t,v,c,b,"right",d),_-=T.width,b-=T.width,S--;for(w+=(i-(w-u)-(p-b)-_)/2;x<=S;)T=y[x],this._placeToken(T,t,v,c,w+T.width/2,"center",d),w+=T.width,x++;c+=v}},Nn.prototype._placeToken=function(t,e,i,n,o,r,a){var s=e.rich[t.styleName]||{},l=(s.text=t.text,t.verticalAlign),h=n+i/2;"top"===l?h=n+t.height/2:"bottom"===l&&(h=n+i-t.height/2),!t.isLineHolder&&Un(s)&&this._renderBackground(s,e,"right"===r?o-t.width:"center"===r?o-t.width/2:o,h-t.height/2,t.width,t.height);var l=!!s.backgroundColor,n=t.textPadding,i=(n&&(o=Wn(o,r,n),h-=t.height/2-n[0]-t.innerHeight/2),this._getOrCreateChild(Fm)),n=i.createStyle(),u=(i.useStyle(n),this._defaultStyle),c=!1,p=0,d=Hn(("fill"in s?s:"fill"in e?e:(c=!0,u)).fill),l=Yn("stroke"in s?s.stroke:"stroke"in e?e.stroke:l||a||u.autoStroke&&!c?null:(p=2,u.stroke)),a=0<s.textShadowBlur||0<e.textShadowBlur,c=(n.text=t.text,n.x=o,n.y=h,a&&(n.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,n.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",n.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,n.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),n.textAlign=r,n.textBaseline="middle",n.font=t.font||cf,n.opacity=R(s.opacity,e.opacity,1),zn(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 py(ri(n.x,c,n.textAlign),ai(n.y,u,n.textBaseline),c,u))},Nn.prototype._renderBackground=function(t,e,i,n,o,r){var a,s,l,h,u=t.backgroundColor,c=t.borderWidth,p=t.borderColor,d=u&&u.image,f=u&&!d,g=t.borderRadius,y=this,g=((f||t.lineHeight||c&&p)&&((a=this._getOrCreateChild(qm)).useStyle(a.createStyle()),a.style.fill=null,(l=a.shape).x=i,l.y=n,l.width=o,l.height=r,l.r=g,a.dirtyShape()),f?((h=a.style).fill=u||null,h.fillOpacity=E(t.fillOpacity,1)):d&&((s=this._getOrCreateChild(Wm)).onload=function(){y.dirtyStyle()},(l=s.style).image=u.image,l.x=i,l.y=n,l.width=o,l.height=r),c&&p&&((h=a.style).lineWidth=c,h.stroke=p,h.strokeOpacity=E(t.strokeOpacity,1),h.lineDash=t.borderDash,h.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill())&&a.hasStroke()&&(h.strokeFirst=!0,h.lineWidth*=2),(a||s).style);g.shadowBlur=t.shadowBlur||0,g.shadowColor=t.shadowColor||"transparent",g.shadowOffsetX=t.shadowOffsetX||0,g.shadowOffsetY=t.shadowOffsetY||0,g.opacity=R(t.opacity,e.opacity,1)},Nn.makeFont=function(t){var e="";return(e=Fn(t)?[t.fontStyle,t.fontWeight,Bn(t.fontSize),t.fontFamily||"sans-serif"].join(" "):e)&&F(e)||t.textFont||t.font},Nn),Jm={left:!0,right:1,center:1},tv={top:1,bottom:1,middle:1},ev=["fontStyle","fontWeight","fontSize","fontFamily"],iv=Zi(),nv=1,ov={},rv=Zi(),av=Zi(),sv=0,lv=1,hv=2,uv=["emphasis","blur","select"],cv=["normal","emphasis","blur","select"],pv="highlight",dv="downplay",fv="select",gv="unselect",yv="toggleSelect",mv=new _g(100),vv=["emphasis","blur","select"],_v={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"},xv=Mm.CMD,wv=[[],[],[]],bv=Math.sqrt,Sv=Math.atan2,Tv=Math.sqrt,Cv=Math.sin,Mv=Math.cos,Iv=Math.PI,kv=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Av=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;i(Oo,Dv=Bm),Oo.prototype.applyTransform=function(t){};var Dv,Pv,Ov=Oo,Lv=function(){this.cx=0,this.cy=0,this.r=0},Ev=(i(Ro,Pv=Bm),Ro.prototype.getDefaultShape=function(){return new Lv},Ro.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)},Ro);Ev.prototype.type="circle";var Rv,Nv=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},Bv=(i(No,Rv=Bm),No.prototype.getDefaultShape=function(){return new Nv},No.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,o=e.rx,e=e.ry,r=.5522848*o,a=.5522848*e;t.moveTo(i-o,n),t.bezierCurveTo(i-o,n-a,i-r,n-e,i,n-e),t.bezierCurveTo(i+r,n-e,i+o,n-a,i+o,n),t.bezierCurveTo(i+o,n+a,i+r,n+e,i,n+e),t.bezierCurveTo(i-r,n+e,i-o,n+a,i-o,n),t.closePath()},No);Bv.prototype.type="ellipse";var zv,Fv=Math.PI,Vv=2*Fv,Yv=Math.sin,Hv=Math.cos,Wv=Math.acos,Xv=Math.atan2,Uv=Math.abs,Gv=Math.sqrt,jv=Math.max,qv=Math.min,Zv=1e-4,Kv=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},Qv=(i(Fo,zv=Bm),Fo.prototype.getDefaultShape=function(){return new Kv},Fo.prototype.buildPath=function(t,e){zo(t,e)},Fo.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},Fo);Qv.prototype.type="sector";var $v,Jv=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},t_=(i(Vo,$v=Bm),Vo.prototype.getDefaultShape=function(){return new Jv},Vo.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,o=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,o,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,o,!0)},Vo);t_.prototype.type="ring";var e_,i_=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},n_=(i(Ho,e_=Bm),Ho.prototype.getDefaultShape=function(){return new i_},Ho.prototype.buildPath=function(t,e){Yo(t,e,!0)},Ho);n_.prototype.type="polygon";var o_,r_=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},a_=(i(Wo,o_=Bm),Wo.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Wo.prototype.getDefaultShape=function(){return new r_},Wo.prototype.buildPath=function(t,e){Yo(t,e,!1)},Wo);a_.prototype.type="polyline";var s_,l_={},h_=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},u_=(i(Xo,s_=Bm),Xo.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Xo.prototype.getDefaultShape=function(){return new h_},Xo.prototype.buildPath=function(t,e){r=(this.subPixelOptimize?(i=(r=On(l_,e,this.style)).x1,n=r.y1,o=r.x2,r):(i=e.x1,n=e.y1,o=e.x2,e)).y2;var i,n,o,r,e=e.percent;0!==e&&(t.moveTo(i,n),e<1&&(o=i*(1-e)+o*e,r=n*(1-e)+r*e),t.lineTo(o,r))},Xo.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},Xo);u_.prototype.type="line";var c_=[],p_=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};i(Go,d_=Bm),Go.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Go.prototype.getDefaultShape=function(){return new p_},Go.prototype.buildPath=function(t,e){var i=e.x1,n=e.y1,o=e.x2,r=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,h=e.cpy2,e=e.percent;0!==e&&(t.moveTo(i,n),null==l||null==h?(e<1&&(Ut(i,a,o,e,c_),a=c_[1],o=c_[2],Ut(n,s,r,e,c_),s=c_[1],r=c_[2]),t.quadraticCurveTo(a,s,o,r)):(e<1&&(Vt(i,a,l,o,e,c_),a=c_[1],l=c_[2],o=c_[3],Vt(n,s,h,r,e,c_),s=c_[1],h=c_[2],r=c_[3]),t.bezierCurveTo(a,s,l,h,o,r)))},Go.prototype.pointAt=function(t){return Uo(this.shape,t,!1)},Go.prototype.tangentAt=function(t){return t=Uo(this.shape,t,!0),it(t,t)};var d_,f_=Go;f_.prototype.type="bezier-curve";var g_,y_=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},m_=(i(jo,g_=Bm),jo.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},jo.prototype.getDefaultShape=function(){return new y_},jo.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,o=Math.max(e.r,0),r=e.startAngle,a=e.endAngle,e=e.clockwise,s=Math.cos(r),l=Math.sin(r);t.moveTo(s*o+i,l*o+n),t.arc(i,n,o,r,a,!e)},jo);m_.prototype.type="arc",i(qo,v_=Bm),qo.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()},qo.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)},qo.prototype.buildPath=function(t,e){for(var i=e.paths||[],n=0;n<i.length;n++)i[n].buildPath(t,i[n].shape,!0)},qo.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},qo.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Bm.prototype.getBoundingRect.call(this)};var v_,__=qo;Zo.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})};var x_=Zo;i(Ko,w_=x_);var w_,b_=Ko;i(Qo,S_=x_);var S_,T_,x_=Qo,C_=[0,0],M_=[0,0],I_=new ny,k_=new ny,A_=($o.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,o=t.x,r=t.y,a=o+t.width,t=r+t.height;if(i[0].set(o,r),i[1].set(a,r),i[2].set(a,t),i[3].set(o,t),e)for(var s=0;s<4;s++)i[s].transform(e);for(ny.sub(n[0],i[1],i[0]),ny.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])},$o.prototype.intersect=function(t,e){var i=!0,n=!e;return I_.set(1/0,1/0),k_.set(0,0),!this._intersectCheckOneSide(this,t,I_,k_,n,1)&&(i=!1,n)||!this._intersectCheckOneSide(t,this,I_,k_,n,-1)&&(i=!1,n)||n||ny.copy(e,i?I_:k_),i},$o.prototype._intersectCheckOneSide=function(t,e,i,n,o,r){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,C_),this._getProjMinMaxOnAxis(s,e._corners,M_),C_[1]<M_[0]||M_[1]<C_[0]){if(a=!1,o)return a;var h=Math.abs(M_[0]-C_[1]),u=Math.abs(C_[0]-M_[1]);Math.min(h,u)>n.len()&&(h<u?ny.scale(n,l,-h*r):ny.scale(n,l,u*r))}else i&&(h=Math.abs(M_[0]-C_[1]),u=Math.abs(C_[0]-M_[1]),Math.min(h,u)<i.len())&&(h<u?ny.scale(i,l,h*r):ny.scale(i,l,-u*r))}return a},$o.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],o=this._origin,r=e[0].dot(n)+o[t],a=r,s=r,l=1;l<e.length;l++)var h=e[l].dot(n)+o[t],a=Math.min(h,a),s=Math.max(h,s);i[0]=a,i[1]=s},$o),D_=[],_y=(i(Jo,T_=_y),Jo.prototype.traverse=function(t,e){t.call(e,this)},Jo.prototype.useStyle=function(){this.style={}},Jo.prototype.getCursor=function(){return this._cursor},Jo.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},Jo.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},Jo.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},Jo.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},Jo.prototype.addDisplayables=function(t,e){e=e||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],e)},Jo.prototype.getDisplayables=function(){return this._displayables},Jo.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},Jo.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])},Jo.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},Jo.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new py(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var i=this._displayables[e],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(D_)),t.union(n)}this._rect=t}return this._rect},Jo.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},Jo),P_=Zi(),O_=Math.max,L_=Math.min,E_={},R_=function(t,e){function n(t){return t=o.call(this,t)||this,t.applyTransform=r.applyTransform,t.buildPath=r.buildPath,t}var o,r=Eo(t,e);return i(n,o=Ov),n},N_=En;lr("circle",Ev),lr("ellipse",Bv),lr("sector",Qv),lr("ring",t_),lr("polygon",n_),lr("polyline",a_),lr("rect",qm),lr("line",u_),lr("bezierCurve",f_),lr("arc",m_);var B_=Object.freeze({__proto__:null,Arc:m_,BezierCurve:f_,BoundingRect:py,Circle:Ev,CompoundPath:__,Ellipse:Bv,Group:wy,Image:Wm,IncrementalDisplayable:_y,Line:u_,LinearGradient:b_,OrientedBoundingRect:A_,Path:Bm,Point:ny,Polygon:n_,Polyline:a_,RadialGradient:x_,Rect:qm,Ring:t_,Sector:Qv,Text:$m,applyTransform:yr,clipPointsByRect:_r,clipRectByRect:xr,createIcon:wr,extendPath:sr,extendShape:ar,getShapeClass:hr,getTransform:gr,groupTransition:vr,initProps:ir,isElementRemoved:nr,lineLineIntersect:br,linePolygonIntersect:function(t,e,i,n,o){for(var r=0,a=o[o.length-1];r<o.length;r++){var s=o[r];if(br(t,e,i,n,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:cr,makePath:ur,mergePath:dr,registerShape:lr,removeElement:or,removeElementWithFadeOut:function(t,e,i){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||rr(t,e,i,n)}):rr(t,e,i,n)},resizePath:fr,setTooltipConfig:Sr,subPixelOptimize:N_,subPixelOptimizeLine:function(t){return On(t.shape,t.shape,t.style),t},subPixelOptimizeRect:function(t){return Ln(t.shape,t.shape,t.style),t},transformDirection:function(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),o=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),n=yr(["left"===t?-n:"right"===t?n:0,"top"===t?-o:"bottom"===t?o:0],e,i);return Math.abs(n[0])>Math.abs(n[1])?0<n[0]?"right":"left":0<n[1]?"bottom":"top"},traverseElements:Cr,updateProps:er}),z_={},F_=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],V_=["align","lineHeight","width","height","tag","verticalAlign"],Y_=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],H_=Zi(),W_=["textStyle","color"],X_=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],U_=new $m,N_=(Er.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(W_):null)},Er.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},Er.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<X_.length;i++)e[X_[i]]=this.getShallow(X_[i]);return U_.useStyle(e),U_.update(),U_.getBoundingRect()},Er),G_=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],j_=ln(G_),q_=(Rr.prototype.getLineStyle=function(t){return j_(this,t)},Rr),Z_=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],K_=ln(Z_),Q_=(Nr.prototype.getItemStyle=function(t,e){return K_(this,t,e)},Nr);Br.prototype.init=function(t,e,i){},Br.prototype.mergeOption=function(t,e){s(this.option,t,!0)},Br.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},Br.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},Br.prototype.getModel=function(t,e){var i=null!=t,t=i?this.parsePath(t):null;return new Br(i?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},Br.prototype.isEmpty=function(){return null==this.option},Br.prototype.restoreData=function(){},Br.prototype.clone=function(){return new this.constructor(a(this.option))},Br.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},Br.prototype.resolveParentPath=function(t){return t},Br.prototype.isAnimationEnabled=function(){if(!af.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},Br.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 $_,J_=Br;nn(J_),px=J_,$_=["__\0is_clz",Ny++].join("_"),px.prototype[$_]=!0,px.isInstance=function(t){return!(!t||!t[$_])},p(J_,q_),p(J_,Q_),p(J_,zy),p(J_,N_);var tx=Math.round(10*Math.random()),ex="ZH",ix="EN",nx=ix,ox={},rx={},ax=af.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(ex)?ex:nx;Fr(ix,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),Fr(ex,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var sx=1e3,lx=60*sx,hx=60*lx,ux=24*hx,Ny=365*ux,cx={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},px="{yyyy}-{MM}-{dd}",dx={year:"{yyyy}",month:"{yyyy}-{MM}",day:px,hour:px+" "+cx.hour,minute:px+" "+cx.minute,second:px+" "+cx.second,millisecond:cx.none},fx=["year","month","day","hour","minute","second","millisecond"],gx=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],yx=B,mx=/([&<>"'])/g,vx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_x=["a","b","c","d","e","f","g"],xx=f,bx=["left","right","top","bottom","width","height"],Sx=[["width","left","right"],["height","top","bottom"]],Tx=da;_(da,"vertical"),_(da,"horizontal");var Cx,Mx,Ix,kx,Ax=Zi(),Dx=(i(va,Cx=J_),va.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i)},va.prototype.mergeDefaultAndTheme=function(t,e){var i=ga(this),n=i?ma(t):{};s(t,e.getTheme().get(this.mainType)),s(t,this.getDefaultOption()),i&&ya(t,n,i)},va.prototype.mergeOption=function(t,e){s(this.option,t,!0);var i=ga(this);i&&ya(this.option,t,i)},va.prototype.optionUpdated=function(t,e){},va.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[Ry])return t.defaultOption;var e=Ax(this);if(!e.defaultOption){for(var i=[],n=t;n;){var o=n.prototype.defaultOption;o&&i.push(o),n=n.superClass}for(var r={},a=i.length-1;0<=a;a--)r=s(r,i[a],!0);e.defaultOption=r}return e.defaultOption},va.prototype.getReferringComponents=function(t,e){var i=t+"Id";return $i(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(i,!0)},e)},va.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},va.prototype.getZLevelKey=function(){return""},va.prototype.setZLevel=function(t){this.option.zlevel=t},va.protoInitialize=((q_=va.prototype).type="component",q_.id="",q_.name="",q_.mainType="",q_.subType="",void(q_.componentIndex=0)),va);on(Dx,J_),sn(Dx),Ix={},(Mx=Dx).registerSubTypeDefaulter=function(t,e){t=en(t),Ix[t.main]=e},Mx.determineSubType=function(t,e){var i,n=e.type;return n||(i=en(t).main,Mx.hasSubTypes(t)&&Ix[i]&&(n=Ix[i](e))),n},kx=function(t){var e=[];return f(Dx.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=g(e,function(t){return en(t).main}),"dataset"!==t&&u(e,"dataset")<=0&&e.unshift("dataset"),e},Dx.topologicalTravel=function(t,e,i,n){function o(t){0===--h[t].entryCount&&c.push(t)}function r(t){p[t]=!0,o(t)}if(t.length){s={},l=[],f(a=e,function(t){var e,i,n=_a(s,t),o=n.originalDeps=kx(t),o=(e=a,i=[],f(o,function(t){0<=u(e,t)&&i.push(t)}),i);n.entryCount=o.length,0===n.entryCount&&l.push(t),f(o,function(e){u(n.predecessor,e)<0&&n.predecessor.push(e);var i=_a(s,e);u(i.successor,e)<0&&i.successor.push(t)})});var a,s,l,e={graph:s,noEntryList:l},h=e.graph,c=e.noEntryList,p={};for(f(t,function(t){p[t]=!0});c.length;){var d=c.pop(),g=h[d],y=!!p[d];y&&(i.call(n,d,g.originalDeps.slice()),delete p[d]),f(g.successor,y?r:o)}f(p,function(){throw new Error("")})}};var Px,Ox,Lx,Ex,Q_="",zy=("undefined"!=typeof navigator&&(Q_=navigator.platform||""),"rgba(0, 0, 0, 0.2)"),Rx={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:zy,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:zy,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:zy,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:zy,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:zy,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:zy,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Q_.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},Nx=W(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Bx="original",zx="arrayRows",Fx="objectRows",Vx="keyedColumns",Yx="typedArray",Hx="unknown",Wx="column",Xx="row",Ux={Must:1,Might:2,Not:3},Gx=Zi(),jx=W(),qx=Zi(),Zx=(Zi(),Sa.prototype.getColorFromPalette=function(t,e,i){var n=zi(this.get("color",!0)),o=this.get("colorLayer",!0),r=this,a=qx;return a=a(e=e||r),r=a.paletteIdx||0,(e=a.paletteNameMap=a.paletteNameMap||{}).hasOwnProperty(t)?e[t]:(o=(o=null!=i&&o?Ta(o,i):n)||n)&&o.length?(i=o[r],t&&(e[t]=i),a.paletteIdx=(r+1)%o.length,i):void 0},Sa.prototype.clearColorPalette=function(){var t,e;(e=qx)(t=this).paletteIdx=0,e(t).paletteNameMap={}},Sa),Kx="\0_ec_inner",Qx=(i(Ca,Ex=J_),Ca.prototype.init=function(t,e,i,n,o,r){n=n||{},this.option=null,this._theme=new J_(n),this._locale=new J_(o),this._optionManager=r},Ca.prototype.setOption=function(t,e,i){e=ka(e),this._optionManager.setOption(t,i,e),this._resetOption(null,e)},Ca.prototype.resetOption=function(t,e){return this._resetOption(t,ka(e))},Ca.prototype._resetOption=function(t,e){var i,n=!1,o=this._optionManager;return t&&"recreate"!==t||(i=o.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):Lx(this,i),n=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(i=o.getTimelineOption(this))&&(n=!0,this._mergeOption(i,e)),t&&"recreate"!==t&&"media"!==t||(i=o.getMediaOption(this)).length&&f(i,function(t){n=!0,this._mergeOption(t,e)},this),n},Ca.prototype.mergeOption=function(t){this._mergeOption(t,null)},Ca.prototype._mergeOption=function(t,e){var i=this.option,n=this._componentsMap,o=this._componentsCount,r=[],h=W(),u=e&&e.replaceMergeMainTypeMap;Gx(this).datasetMap=W(),f(t,function(t,e){null!=t&&(Dx.hasClass(e)?e&&(r.push(e),h.set(e,!0)):i[e]=null==i[e]?a(t):s(i[e],t,!0))}),u&&u.each(function(t,e){Dx.hasClass(e)&&!h.get(e)&&(r.push(e),h.set(e,!0))}),Dx.topologicalTravel(r,Dx.getAllClassMainTypes(),function(e){var r,a=function(t,e,i){return(e=(e=jx.get(e))&&e(t))?i.concat(e):i}(this,e,zi(t[e])),s=n.get(e),h=s?u&&u.get(e)?"replaceMerge":"normalMerge":"replaceAll",s=Yi(s,a,h),c=(ji(s,e,Dx),i[e]=null,n.set(e,null),o.set(e,0),[]),p=[],d=0;f(s,function(t,i){var n=t.existing,o=t.newOption;if(o){var a=Dx.getClass(e,t.keyInfo.subType,!("series"===e));if(!a)return;if("tooltip"===e){if(r)return;r=!0}n&&n.constructor===a?(n.name=t.keyInfo.name,n.mergeOption(o,this),n.optionUpdated(o,!1)):(i=l({componentIndex:i},t.keyInfo),l(n=new a(o,this,this,i),i),t.brandNew&&(n.__requireNewView=!0),n.init(o,this,this),n.optionUpdated(null,!0))}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(c.push(n.option),p.push(n),d++):(c.push(void 0),p.push(void 0))},this),i[e]=c,n.set(e,p),o.set(e,d),"series"===e&&Px(this)},this),this._seriesIndices||Px(this)},Ca.prototype.getOption=function(){var t=a(this.option);return f(t,function(e,i){if(Dx.hasClass(i)){for(var n=zi(e),o=n.length,r=!1,a=o-1;0<=a;a--)n[a]&&!Gi(n[a])?r=!0:(n[a]=null,r||o--);n.length=o,t[i]=n}}),delete t[Kx],t},Ca.prototype.getTheme=function(){return this._theme},Ca.prototype.getLocaleModel=function(){return this._locale},Ca.prototype.setUpdatePayload=function(t){this._payload=t},Ca.prototype.getUpdatePayload=function(){return this._payload},Ca.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]}},Ca.prototype.queryComponents=function(t){var e,i,n,o,r,a=t.mainType;return a&&(e=t.index,i=t.id,n=t.name,o=this._componentsMap.get(a))&&o.length?(null!=e?(r=[],f(zi(e),function(t){o[t]&&r.push(o[t])})):r=null!=i?Ma("id",i,o):null!=n?Ma("name",n,o):m(o,function(t){return!!t}),Ia(r,t)):[]},Ca.prototype.findComponents=function(t){var e,i=t.query,n=t.mainType,o=(o=n+"Index",r=n+"Id",e=n+"Name",!(i=i)||null==i[o]&&null==i[r]&&null==i[e]?null:{mainType:n,index:i[o],id:i[r],name:i[e]}),r=o?this.queryComponents(o):m(this._componentsMap.get(n),function(t){return!!t});return i=Ia(r,t),t.filter?m(i,t.filter):i},Ca.prototype.eachComponent=function(t,e,i){var n=this._componentsMap;if(w(t)){var o=e,r=t;n.each(function(t,e){for(var i=0;t&&i<t.length;i++){var n=t[i];n&&r.call(o,e,n,n.componentIndex)}})}else for(var a=b(t)?n.get(t):C(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(i,l,l.componentIndex)}},Ca.prototype.getSeriesByName=function(t){var e=Xi(t,null);return m(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},Ca.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},Ca.prototype.getSeriesByType=function(t){return m(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},Ca.prototype.getSeries=function(){return m(this._componentsMap.get("series"),function(t){return!!t})},Ca.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},Ca.prototype.eachSeries=function(t,e){Ox(this),f(this._seriesIndices,function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)},this)},Ca.prototype.eachRawSeries=function(t,e){f(this._componentsMap.get("series"),function(i){i&&t.call(e,i,i.componentIndex)})},Ca.prototype.eachSeriesByType=function(t,e,i){Ox(this),f(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];o.subType===t&&e.call(i,o,n)},this)},Ca.prototype.eachRawSeriesByType=function(t,e,i){return f(this.getSeriesByType(t),e,i)},Ca.prototype.isSeriesFiltered=function(t){return Ox(this),null==this._seriesIndicesMap.get(t.componentIndex)},Ca.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},Ca.prototype.filterSeries=function(t,e){Ox(this);var i=[];f(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];t.call(e,o,n)&&i.push(n)},this),this._seriesIndices=i,this._seriesIndicesMap=W(i)},Ca.prototype.restoreData=function(t){Px(this);var e=this._componentsMap,i=[];e.each(function(t,e){Dx.hasClass(e)&&i.push(e)}),Dx.topologicalTravel(i,Dx.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()})})},Ca.internalField=(Px=function(t){var e=t._seriesIndices=[];f(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=W(e)},Ox=function(t){},void(Lx=function(t,e){t.option={},t.option[Kx]=1,t._componentsMap=W({series:[]}),t._componentsCount=W();var i,n,o=e.aria;C(o)&&null==o.enabled&&(o.enabled=!0),i=e,o=t._theme.option,n=i.color&&!i.colorLayer,f(o,function(t,e){"colorLayer"===e&&n||Dx.hasClass(e)||("object"==typeof t?i[e]=i[e]?s(i[e],t,!1):a(t):null==i[e]&&(i[e]=t))}),s(e,Rx,!1),t._mergeOption(e,null)})),Ca);p(Qx,Zx);var $x,Jx,tw=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ew={},iw=(Da.prototype.create=function(t,e){var i=[];f(ew,function(n,o){n=n.create(t,e),i=i.concat(n||[])}),this._coordinateSystems=i},Da.prototype.update=function(t,e){f(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},Da.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},Da.register=function(t,e){ew[t]=e},Da.get=function(t){return ew[t]},Da),nw=/^(min|max)?(.+)$/,ow=(Pa.prototype.setOption=function(t,e,i){t&&(f(zi(t.series),function(t){t&&t.data&&I(t.data)&&V(t.data)}),f(zi(t.dataset),function(t){t&&t.source&&I(t.source)&&V(t.source)})),t=a(t);var n=this._optionBackup,t=function(t,e,i){function n(t){f(e,function(e){e(t,i)})}var o,r,a=[],s=t.baseOption,l=t.timeline,h=t.options,u=t.media,c=!!t.media,p=!!(h||l||s&&s.timeline);return s?(r=s).timeline||(r.timeline=l):((p||c)&&(t.options=t.media=null),r=t),c&&x(u)&&f(u,function(t){t&&t.option&&(t.query?a.push(t):o=o||t)}),n(r),f(h,n),f(a,function(t){return n(t.option)}),{baseOption:r,timelineOptions:h||[],mediaDefault:o,mediaList:a}}(t,e,!n);this._newBaseOption=t.baseOption,n?(t.timelineOptions.length&&(n.timelineOptions=t.timelineOptions),t.mediaList.length&&(n.mediaList=t.mediaList),t.mediaDefault&&(n.mediaDefault=t.mediaDefault)):this._optionBackup=t},Pa.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],a(t?e.baseOption:this._newBaseOption)},Pa.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;return e=i.length&&(t=t.getComponent("timeline"))?a(i[t.getCurrentIndex()]):e},Pa.prototype.getMediaOption=function(t){var e=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,o=this._mediaDefault,r=[],s=[];if(n.length||o){for(var l,h,u=0,c=n.length;u<c;u++)!function(t,e,i){var n={width:e,height:i,aspectratio:e/i},o=!0;return f(t,function(t,e){var i,e=e.match(nw);e&&e[1]&&e[2]&&(i=e[1],e=e[2].toLowerCase(),e=n[e],t=t,("min"===(i=i)?t<=e:"max"===i?e<=t:e===t)||(o=!1))}),o}(n[u].query,e,i)||r.push(u);(r=!r.length&&o?[-1]:r).length&&(l=r,h=this._currentMediaIndices,l.join(",")!==h.join(","))&&(s=g(r,function(t){return a((-1===t?o:n[t]).option)})),this._currentMediaIndices=r}return s},Pa),rw=f,aw=C,sw=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],lw=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],hw=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],uw=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]],cw=function(t){this.data=t.data||(t.sourceFormat===Vx?{}:[]),this.sourceFormat=t.sourceFormat||Hx,this.seriesLayoutBy=t.seriesLayoutBy||Wx,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;i<e.length;i++){var n=e[i];null==n.type&&ba(this,i)===Ux.Must&&(n.type="ordinal")}};Ja.prototype.getSource=function(){return this._source},Ja.prototype.count=function(){return 0},Ja.prototype.getItem=function(t,e){},Ja.prototype.appendData=function(t){},Ja.prototype.clean=function(){},Ja.protoInitialize=((N_=Ja.prototype).pure=!1,void(N_.persistent=!0)),Ja.internalField=(Jx=function(t,e,i){var n,o=i.sourceFormat,r=i.seriesLayoutBy,a=i.startIndex,i=i.dimensionsDefine;l(t,$x[ss(o,r)]),o===Yx?(t.getItem=pw,t.count=fw,t.fillStorage=dw):(n=is(o,r),t.getItem=If(n,null,e,a,i),n=os(o,r),t.count=If(n,null,e,a,i))},pw=function(t,e){t-=this._offset,e=e||[];for(var i=this._data,n=this._dimSize,o=n*t,r=0;r<n;r++)e[r]=i[o+r];return e},dw=function(t,e,i,n){for(var o=this._data,r=this._dimSize,a=0;a<r;a++){for(var s=n[a],l=null==s[0]?1/0:s[0],h=null==s[1]?-1/0:s[1],u=e-t,c=i[a],p=0;p<u;p++){var d=o[p*r+a];(c[t+p]=d)<l&&(l=d),h<d&&(h=d)}s[0]=l,s[1]=h}},fw=function(){return this._data?this._data.length/this._dimSize:0},(N_={})[zx+"_"+Wx]={pure:!0,appendData:ts},N_[zx+"_"+Xx]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},N_[Fx]={pure:!0,appendData:ts},N_[Vx]={pure:!0,appendData:function(t){var e=this._data;f(t,function(t,i){for(var n=e[i]||(e[i]=[]),o=0;o<(t||[]).length;o++)n.push(t[o])})}},N_[Bx]={appendData:ts},N_[Yx]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},void($x=N_));var pw,dw,fw,gw=Ja;(px={})[zx+"_"+Wx]=function(t,e,i,n){return t[n+e]},px[zx+"_"+Xx]=function(t,e,i,n,o){n+=e;for(var r=o||[],a=t,s=0;s<a.length;s++){var l=a[s];r[s]=l?l[n]:null}return r},px[Fx]=es,px[Vx]=function(t,e,i,n,o){for(var r=o||[],a=0;a<i.length;a++){var s=t[i[a].name];r[a]=s?s[n]:null}return r},px[Bx]=es;var yw=px;(q_={})[zx+"_"+Wx]=function(t,e,i){return Math.max(0,t.length-e)},q_[zx+"_"+Xx]=function(t,e,i){return t=t[0],t?Math.max(0,t.length-e):0},q_[Fx]=ns,q_[Vx]=function(t,e,i){return t=t[i[0].name],t?t.length:0},q_[Bx]=ns;var mw=q_;(zy={})[zx]=rs,zy[Fx]=function(t,e,i){return t[i]},zy[Vx]=rs,zy[Bx]=function(t,e,i){return t=Vi(t),t instanceof Array?t[e]:t},zy[Yx]=rs;var vw=zy,_w=/\{@(.+?)\}/g,Q_=(hs.prototype.getDataParams=function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),o=i.getRawIndex(t),r=i.getName(t),a=i.getRawDataItem(t),s=i.getItemVisual(t,"style"),t=s&&s[i.getItemVisual(t,"drawType")||"fill"],s=s&&s.stroke,l=this.mainType,h="series"===l,i=i.userOutput&&i.userOutput.get();return{componentType:l,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:r,dataIndex:o,data:a,dataType:e,value:n,color:t,borderColor:s,dimensionNames:i?i.fullDimensions:null,encode:i?i.encode:null,$vars:["seriesName","name","value"]}},hs.prototype.getFormattedLabel=function(t,e,i,n,o,r){e=e||"normal";var a=this.getData(i),i=this.getDataParams(t,i);return r&&(i.value=r.interpolatedValue),null!=n&&x(i.value)&&(i.value=i.value[n]),w(o=o||a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]))?(i.status=e,i.dimensionIndex=n,o(i)):b(o)?ha(o,i).replace(_w,function(e,i){var n=i.length,n=("["===i.charAt(0)&&"]"===i.charAt(n-1)&&(i=+i.slice(1,n-1)),ls(a,t,i));return null!=(n=r&&x(r.interpolatedValue)&&0<=(i=a.getDimensionIndex(i))?r.interpolatedValue[i]:n)?n+"":""}):void 0},hs.prototype.getRawValue=function(t,e){return ls(this.getData(e),t)},hs.prototype.formatTooltip=function(t,e,i){},hs);ps.prototype.perform=function(t){function e(t){return t=1<=t?t:1}var i,n,o=this._upstream,r=t&&t.skip,a=(this._dirty&&o&&((a=this.context).data=a.outputData=o.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(i=this._plan(this.context)),e(this._modBy)),s=this._modDataCount||0,l=e(t&&t.modBy),h=t&&t.modDataCount||0;if(a===l&&s===h||(i="reset"),!this._dirty&&"reset"!==i||(this._dirty=!1,n=this._doReset(r)),this._modBy=l,this._modDataCount=h,a=t&&t.step,this._dueEnd=o?o._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var u=this._dueIndex,c=Math.min(null!=a?this._dueIndex+a:1/0,this._dueEnd);if(!r&&(n||u<c)){var p=this._progress;if(x(p))for(var d=0;d<p.length;d++)this._doProgress(p[d],u,c,l,h);else this._doProgress(p,u,c,l,h)}this._dueIndex=c,s=null!=this._settedOutputEnd?this._settedOutputEnd:c,this._outputDueEnd=s}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},ps.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},ps.prototype._doProgress=function(t,e,i,n,o){Iw.reset(e,i,n,o),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:Iw.next},this.context)},ps.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(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},ps.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},ps.prototype.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},ps.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},ps.prototype.getUpstream=function(){return this._upstream},ps.prototype.getDownstream=function(){return this._downstream},ps.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var xw,ww,bw,Sw,Tw,Cw,Mw=ps,Iw=Cw={reset:function(t,e,i,n){ww=t,xw=e,bw=i,Sw=n,Tw=Math.ceil(Sw/bw),Cw.next=1<bw&&0<Sw?fs:ds}},kw=W({number:function(t){return parseFloat(t)},time:function(t){return+ki(t)},trim:function(t){return b(t)?F(t):t}}),Aw={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}},Dw=(ms.prototype.evaluate=function(t){return T(t)?this._opFn(t,this._rvalFloat):this._opFn(Oi(t),this._rvalFloat)},ms);vs.prototype.evaluate=function(t,e){var i=T(t)?t:Oi(t),n=T(e)?e:Oi(e),o=isNaN(i),r=isNaN(n);return o&&(i=this._incomparable),r&&(n=this._incomparable),o&&r&&(o=b(t),r=b(e),o&&(i=r?t:0),r)&&(n=o?e:0),i<n?this._resultLT:n<i?-this._resultLT:0};var Pw=vs;_s.prototype.evaluate=function(t){var e,i=t===this._rval;return i||(e=typeof t)===this._rvalTypeof||"number"!=e&&"number"!==this._rvalTypeof||(i=Oi(t)===this._rvalFloat),this._isEQ?i:!i};var Ow=_s;xs.prototype.getRawData=function(){throw new Error("not supported")},xs.prototype.getRawDataItem=function(t){throw new Error("not supported")},xs.prototype.cloneRawData=function(){},xs.prototype.getDimensionInfo=function(t){},xs.prototype.cloneAllDimensionInfo=function(){},xs.prototype.count=function(){},xs.prototype.retrieveValue=function(t,e){},xs.prototype.retrieveValueFromItem=function(t,e){},xs.prototype.convertValue=gs;var Lw,Ew=xs,Rw=W(),N_="undefined",Nw=typeof Uint32Array==N_?Array:Uint32Array,Bw=typeof Uint16Array==N_?Array:Uint16Array,zw=typeof Int32Array==N_?Array:Int32Array,px=typeof Float64Array==N_?Array:Float64Array,Fw={float:px,int:zw,ordinal:Array,number:Array,time:px};Ds.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),o=this.defaultDimValueGetter=Lw[n.sourceFormat];this._dimValueGetter=i||o,this._rawExtent=[],$a(n),this._dimensions=g(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},Ds.prototype.getProvider=function(){return this._provider},Ds.prototype.getSource=function(){return this._provider.getSource()},Ds.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,n=this._dimensions,o=i.get(t);if(null!=o){if(n[o].type===e)return o}else o=n.length;return n[o]={type:e},i.set(t,o),this._chunks[o]=new Fw[e||"float"](this._rawCount),this._rawExtent[o]=ks(),o},Ds.prototype.collectOrdinalMeta=function(t,e){for(var i=this._chunks[t],n=this._dimensions[t],o=this._rawExtent,r=n.ordinalOffset||0,a=i.length,s=(0===r&&(o[t]=ks()),o[t]),l=r;l<a;l++){var h=i[l]=e.parseAndCollect(i[l]);s[0]=Math.min(h,s[0]),s[1]=Math.max(h,s[1])}n.ordinalMeta=e,n.ordinalOffset=a,n.type="ordinal"},Ds.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},Ds.prototype.getDimensionProperty=function(t){return(t=this._dimensions[t])&&t.property},Ds.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]},Ds.prototype.appendValues=function(t,e){for(var i=this._chunks,n=this._dimensions,o=n.length,r=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<o;l++)As(i,l,(d=n[l]).type,s,!0);for(var h=[],u=a;u<s;u++)for(var c=u-a,p=0;p<o;p++){var d=n[p],f=Lw.arrayRows.call(this,t[c]||h,d.property,c,p),g=(i[p][u]=f,r[p]);f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},Ds.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,o=this._chunks,r=this._dimensions,a=r.length,s=this._rawExtent,l=g(r,function(t){return t.property}),h=0;h<a;h++){var u=r[h];s[h]||(s[h]=ks()),As(o,h,u.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,o,s);else for(var c=[],p=t;p<e;p++)for(var c=n.getItem(p,c),d=0;d<a;d++){var f=o[d],y=this._dimValueGetter(c,l[d],p,d),f=(f[p]=y,s[d]);y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y)}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},Ds.prototype.count=function(){return this._count},Ds.prototype.get=function(t,e){return 0<=e&&e<this._count&&(t=this._chunks[t])?t[this.getRawIndex(e)]:NaN},Ds.prototype.getValues=function(t,e){var i=[],n=[];if(null==e){e=t,t=[];for(var o=0;o<this._dimensions.length;o++)n.push(o)}else n=t;for(var o=0,r=n.length;o<r;o++)i.push(this.get(n[o],e));return i},Ds.prototype.getByRawIndex=function(t,e){return 0<=e&&e<this._rawCount&&(t=this._chunks[t])?t[e]:NaN},Ds.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var i=0,n=this.count();i<n;i++){var o=this.get(t,i);isNaN(o)||(e+=o)}return e},Ds.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},Ds.prototype.indexOfRawIndex=function(t){if(!(t>=this._rawCount||t<0)){if(!this._indices)return t;var e=this._indices,i=e[t];if(null!=i&&i<this._count&&i===t)return t;for(var n=0,o=this._count-1;n<=o;){var r=(n+o)/2|0;if(e[r]<t)n=1+r;else{if(!(e[r]>t))return r;o=r-1}}}return-1},Ds.prototype.indicesOfNearest=function(t,e,i){var n=this._chunks[t],o=[];if(n){null==i&&(i=1/0);for(var r=1/0,a=-1,s=0,l=0,h=this.count();l<h;l++){var u=e-n[this.getRawIndex(l)],c=Math.abs(u);c<=i&&((c<r||c===r&&0<=u&&a<0)&&(r=c,a=u,s=0),u===a)&&(o[s++]=l)}o.length=s}return o},Ds.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,i=this._count;if(e===Array)for(var n=new e(i),o=0;o<i;o++)n[o]=t[o];else n=new e(t.buffer,0,i)}else for(n=new(e=Is(this._rawCount))(this.count()),o=0;o<n.length;o++)n[o]=o;return n},Ds.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),n=i.count(),o=new(Is(i._rawCount))(n),r=[],a=t.length,s=0,l=t[0],h=i._chunks,u=0;u<n;u++){var c=void 0,p=i.getRawIndex(u);if(0===a)c=e(u);else if(1===a)c=e(h[l][p],u);else{for(var d=0;d<a;d++)r[d]=h[t[d]][p];r[d]=u,c=e.apply(null,r)}c&&(o[s++]=p)}return s<n&&(i._indices=o),i._count=s,i._extent=[],i._updateGetRawIdx(),i},Ds.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var n=v(t),o=n.length;if(!o)return this;var r=e.count(),a=new(Is(e._rawCount))(r),s=0,l=n[0],h=t[l][0],u=t[l][1],c=e._chunks,l=!1;if(!e._indices){var p=0;if(1===o){for(var d=c[n[0]],f=0;f<i;f++)(h<=(_=d[f])&&_<=u||isNaN(_))&&(a[s++]=p),p++;l=!0}else if(2===o){for(var d=c[n[0]],g=c[n[1]],y=t[n[1]][0],m=t[n[1]][1],f=0;f<i;f++){var _=d[f],x=g[f];(h<=_&&_<=u||isNaN(_))&&(y<=x&&x<=m||isNaN(x))&&(a[s++]=p),p++}l=!0}}if(!l)if(1===o)for(f=0;f<r;f++){var w=e.getRawIndex(f);(h<=(_=c[n[0]][w])&&_<=u||isNaN(_))&&(a[s++]=w)}else for(f=0;f<r;f++){for(var b=!0,w=e.getRawIndex(f),S=0;S<o;S++){var T=n[S];((_=c[T][w])<t[T][0]||_>t[T][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(f))}return s<r&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},Ds.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},Ds.prototype.modify=function(t,e){this._updateDims(this,t,e)},Ds.prototype._updateDims=function(t,e,i){for(var n=t._chunks,o=[],r=e.length,a=t.count(),s=[],l=t._rawExtent,h=0;h<e.length;h++)l[e[h]]=ks();for(var u=0;u<a;u++){for(var c=t.getRawIndex(u),p=0;p<r;p++)s[p]=n[e[p]][c];s[r]=u;var d=i&&i.apply(null,s);if(null!=d)for("object"!=typeof d&&(o[0]=d,d=o),h=0;h<d.length;h++){var f=e[h],g=d[h],y=l[f],f=n[f];f&&(f[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}},Ds.prototype.lttbDownSample=function(t,e){var i,n=this.clone([t],!0),o=n._chunks[t],r=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),h=new(Is(this._rawCount))(Math.ceil(r/s)+2);h[a++]=l;for(var u=1;u<r-1;u+=s){for(var c=Math.min(u+s,r-1),p=Math.min(u+2*s,r),d=(p+c)/2,f=0,g=c;g<p;g++){var y=o[b=this.getRawIndex(g)];isNaN(y)||(f+=y)}f/=p-c;for(var c=u,m=Math.min(u+s,r),v=u-1,_=o[l],x=-1,w=c,g=c;g<m;g++){var b,y=o[b=this.getRawIndex(g)];isNaN(y)||x<(i=Math.abs((v-d)*(y-_)-(v-g)*(f-_)))&&(x=i,w=b)}l=h[a++]=w}return h[a++]=this.getRawIndex(r-1),n._count=a,n._indices=h,n.getRawIndex=this._getRawIdx,n},Ds.prototype.downSample=function(t,e,i,n){for(var o=this.clone([t],!0),r=o._chunks,a=[],s=Math.floor(1/e),l=r[t],h=this.count(),u=o._rawExtent[t]=ks(),c=new(Is(this._rawCount))(Math.ceil(h/s)),p=0,d=0;d<h;d+=s){h-d<s&&(a.length=s=h-d);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var y=i(a),m=this.getRawIndex(Math.min(d+n(a,y)||0,h-1));(l[m]=y)<u[0]&&(u[0]=y),y>u[1]&&(u[1]=y),c[p++]=m}return o._count=p,o._indices=c,o._updateGetRawIdx(),o},Ds.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,o=0,r=this.count();o<r;o++){var a=this.getRawIndex(o);switch(i){case 0:e(o);break;case 1:e(n[t[0]][a],o);break;case 2:e(n[t[0]][a],n[t[1]][a],o);break;default:for(var s=0,l=[];s<i;s++)l[s]=n[t[s]][a];l[s]=o,e.apply(null,l)}}},Ds.prototype.getDataExtent=function(t){var e=this._chunks[t],i=ks();if(!e)return i;var n=this.count();if(!this._indices)return this._rawExtent[t].slice();if(o=this._extent[t])return o.slice();for(var o,r=(o=i)[0],a=o[1],s=0;s<n;s++){var l=e[this.getRawIndex(s)];l<r&&(r=l),a<l&&(a=l)}return this._extent[t]=o=[r,a]},Ds.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,o=0;o<n.length;o++)i.push(n[o][e]);return i},Ds.prototype.clone=function(t,e){var i,n,o=new Ds,r=this._chunks,a=t&&y(t,function(t,e){return t[e]=!0,t},{});if(a)for(var s=0;s<r.length;s++)o._chunks[s]=a[s]?(i=r[s],n=void 0,(n=i.constructor)===Array?i.slice():new n(i)):r[s];else o._chunks=r;return this._copyCommonProps(o),e||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},Ds.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)},Ds.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},Ds.prototype._getRawIdxIdentity=function(t){return t},Ds.prototype._getRawIdx=function(t){return t<this._count&&0<=t?this._indices[t]:-1},Ds.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},Ds.internalField=void(Lw={arrayRows:Ps,objectRows:function(t,e,i,n){return gs(t[e],this._dimensions[n])},keyedColumns:Ps,original:function(t,e,i,n){return t=t&&(null==t.value?t:t.value),gs(t instanceof Array?t[n]:t,this._dimensions[n])},typedArray:function(t,e,i,n){return t[n]}});var Vw=Ds;Os.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},Os.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,9e10<++this._versionSignBase&&(this._versionSignBase=0)},Os.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},Os.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},Os.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,i,n,o,r,a,s=this._sourceHost,l=this._getUpstreamSourceManagers(),h=!!l.length;Es(s)?(n=s,o=t=r=void 0,e=h?((e=l[0]).prepareSource(),r=(o=e.getSource()).data,t=o.sourceFormat,[e._getVersionSign()]):(t=I(r=n.get("data",!0))?Yx:Bx,[]),n=this._getSourceMetaRawOption()||{},o=o&&o.metaRawOption||{},a=E(n.seriesLayoutBy,o.seriesLayoutBy)||null,i=E(n.sourceHeader,o.sourceHeader),n=E(n.dimensions,o.dimensions),o=a!==o.seriesLayoutBy||!!i!=!!o.sourceHeader||n?[ja(r,{seriesLayoutBy:a,sourceHeader:i,dimensions:n},t)]:[]):(r=s,e=h?(o=(a=this._applyTransform(l)).sourceList,a.upstreamSignList):(o=[ja(r.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(o,e)},Os.prototype._applyTransform=function(t){var e,i=this._sourceHost,n=i.get("transform",!0),o=i.get("fromTransformResult",!0),r=(null!=o&&1!==t.length&&Rs(""),[]),s=[];return f(t,function(t){t.prepareSource();var e=t.getSource(o||0);null==o||e||Rs(""),r.push(e),s.push(t._getVersionSign())}),n?e=Cs(n,r,i.componentIndex):null!=o&&(e=[new cw({data:(t=r[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:a(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:e,upstreamSignList:s}},Os.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}},Os.prototype.getSource=function(t){var e=this._sourceList[t=t||0];return e||(e=this._getUpstreamSourceManagers())[0]&&e[0].getSource(t)},Os.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},Os.prototype._innerGetDataStore=function(t,e,i){var n,o=this._storeList,r=o[0],o=(r=r||(o[0]={}))[i];return o||(n=this._getUpstreamSourceManagers()[0],Es(this._sourceHost)&&n?o=n._innerGetDataStore(t,e,i):(o=new Vw).initData(new gw(e,t.length),t),r[i]=o),o},Os.prototype._getUpstreamSourceManagers=function(){var t,e=this._sourceHost;return Es(e)?(t=wa(e))?[t.getSourceManager()]:[]:g((t=e).get("transform",!0)||t.get("fromTransformResult",!0)?$i(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Oy).models:[],function(t){return t.getSourceManager()})},Os.prototype._getSourceMetaRawOption=function(){var t,e,i,n=this._sourceHost;return Es(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 Yw=Os,Hw="line-height:1",Ww=[0,10,20,30],Xw=["","\n","\n\n","\n\n\n"];Gs.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},Gs.prototype.makeTooltipMarker=function(t,e,i){var n="richText"===i?this._generateStyleName():null,e=ua({color:e,type:t,renderMode:i,markerId:n});return b(e)?e:(this.richTextStyles[n]=e.style,e.content)},Gs.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 Uw=Gs,Gw=Zi();i(Zs,jw=Dx),Zs.prototype.init=function(t,e,i){this.seriesIndex=this.componentIndex,this.dataTask=cs({count:Qs,reset:$s}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i),(Gw(this).sourceManager=new Yw(this)).prepareSource(),t=this.getInitialData(t,i),tl(t,this),this.dataTask.context.data=t,Gw(this).dataBeforeProcessed=t,Ks(this),this._initSelectedMapFromData(t)},Zs.prototype.mergeDefaultAndTheme=function(t,e){var i=ga(this),n=i?ma(t):{},o=this.subType;Dx.hasClass(o),s(t,e.getTheme().get(this.subType)),s(t,this.getDefaultOption()),Fi(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&ya(t,n,i)},Zs.prototype.mergeOption=function(t,e){t=s(this.option,t,!0),this.fillDataTextStyle(t.data);var i=ga(this),i=(i&&ya(this.option,t,i),Gw(this).sourceManager),i=(i.dirty(),i.prepareSource(),this.getInitialData(t,e));tl(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Gw(this).dataBeforeProcessed=i,Ks(this),this._initSelectedMapFromData(i)},Zs.prototype.fillDataTextStyle=function(t){if(t&&!I(t))for(var e=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&Fi(t[i],"label",e)},Zs.prototype.getInitialData=function(t,e){},Zs.prototype.appendData=function(t){this.getRawData().appendData(t.data)},Zs.prototype.getData=function(t){var e=il(this);return e?(e=e.context.data,null==t?e:e.getLinkedData(t)):Gw(this).data},Zs.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},Zs.prototype.setData=function(t){var e,i=il(this);i&&((e=i.context).outputData=t,i!==this.dataTask)&&(e.data=t),Gw(this).data=t},Zs.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return W(t)},Zs.prototype.getSourceManager=function(){return Gw(this).sourceManager},Zs.prototype.getSource=function(){return this.getSourceManager().getSource()},Zs.prototype.getRawData=function(){return Gw(this).dataBeforeProcessed},Zs.prototype.getColorBy=function(){return this.get("colorBy")||"series"},Zs.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},Zs.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},Zs.prototype.formatTooltip=function(t,e,i){return js({series:this,dataIndex:t,multipleSeries:e})},Zs.prototype.isAnimationEnabled=function(){var t=this.ecModel;return!!(!af.node||t&&t.ssr)&&!!(t=!((t=this.getShallow("animation"))&&this.getData().count()>this.getShallow("animationThreshold"))&&t)},Zs.prototype.restoreData=function(){this.dataTask.dirty()},Zs.prototype.getColorFromPalette=function(t,e,i){var n=this.ecModel;return Zx.prototype.getColorFromPalette.call(this,t,e,i)||n.getColorFromPalette(t,e,i)},Zs.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},Zs.prototype.getProgressive=function(){return this.get("progressive")},Zs.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},Zs.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},Zs.prototype.unselect=function(t,e){var i=this.option.selectedMap;if(i){var n=this.option.selectedMode,o=this.getData(e);if("series"===n||"all"===i)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var r=0;r<t.length;r++){var a=qs(o,t[r]);i[a]=!1,this._selectedDataIndicesMap[a]=-1}}},Zs.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)},Zs.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=v(t),i=[],n=0;n<e.length;n++){var o=t[e[n]];0<=o&&i.push(o)}return i},Zs.prototype.isSelected=function(t,e){var i=this.option.selectedMap;return!!i&&(e=this.getData(e),"all"===i||i[qs(e,t)])&&!e.getItemModel(t).get(["select","disabled"])},Zs.prototype.isUniversalTransitionEnabled=function(){var t;return!!this.__universalTransitionEnabled||!!(t=this.option.universalTransition)&&(!0===t||t&&t.enabled)},Zs.prototype._innerSelect=function(t,e){var i=this.option,n=i.selectedMode,o=e.length;if(n&&o)if("series"===n)i.selectedMap="all";else if("multiple"===n){C(i.selectedMap)||(i.selectedMap={});for(var r=i.selectedMap,a=0;a<o;a++){var s,l=e[a];r[s=qs(t,l)]=!0,this._selectedDataIndicesMap[s]=t.getRawIndex(l)}}else"single"!==n&&!0!==n||(s=qs(t,n=e[o-1]),i.selectedMap=((i={})[s]=!0,i),this._selectedDataIndicesMap=((i={})[s]=t.getRawIndex(n),i))},Zs.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))},Zs.registerClass=function(t){return Dx.registerClass(t)},Zs.protoInitialize=((q_=Zs.prototype).type="series.__base__",q_.seriesIndex=0,q_.ignoreStyleOnData=!1,q_.hasSymbolVisual=!1,q_.defaultSymbol="circle",q_.visualStyleAccessPath="itemStyle",void(q_.visualDrawType="fill"));var jw,qw=Zs;p(qw,Q_),p(qw,Zx),on(qw,Dx),nl.prototype.init=function(t,e){},nl.prototype.render=function(t,e,i,n){},nl.prototype.dispose=function(t,e){},nl.prototype.updateView=function(t,e,i,n){},nl.prototype.updateLayout=function(t,e,i,n){},nl.prototype.updateVisual=function(t,e,i,n){},nl.prototype.blurSeries=function(t,e){},nl.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var Zw=nl;nn(Zw),sn(Zw);var Kw=Zi(),Qw=ol(),$w=(rl.prototype.init=function(t,e){},rl.prototype.render=function(t,e,i,n){},rl.prototype.highlight=function(t,e,i,n){(t=t.getData(n&&n.dataType))&&sl(t,n,"emphasis")},rl.prototype.downplay=function(t,e,i,n){(t=t.getData(n&&n.dataType))&&sl(t,n,"normal")},rl.prototype.remove=function(t,e){this.group.removeAll()},rl.prototype.dispose=function(t,e){},rl.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},rl.prototype.updateLayout=function(t,e,i,n){this.render(t,e,i,n)},rl.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},rl.prototype.eachRendered=function(t){Cr(this.group,t)},rl.markUpdateMethod=function(t,e){Kw(t).updateMethod=e},rl.protoInitialize=void(rl.prototype.type="chart"),rl);nn($w),sn($w);var Jw={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},tb="\0__throttleOriginMethod",eb="\0__throttleRate",ib="\0__throttleType",nb=Zi(),ob={itemStyle:ln(Z_,!0),lineStyle:ln(G_,!0)},rb={lineStyle:"stroke",itemStyle:"fill"},zy={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",o=t.getModel(n),r=dl(t,n)(o),o=o.getShallow("decal"),a=(o&&(i.setVisual("decal",o),o.dirty=!0),fl(t,n)),o=r[a],s=w(o)?o:null,n="auto"===r.fill||"auto"===r.stroke;if(r[a]&&!s&&!n||(o=t.getColorFromPalette(t.name,null,e.getSeriesCount()),r[a]||(r[a]=o,i.setVisual("colorFromPalette",!0)),r.fill="auto"===r.fill||w(r.fill)?o:r.fill,r.stroke="auto"===r.stroke||w(r.stroke)?o:r.stroke),i.setVisual("style",r),i.setVisual("drawType",a),!e.isSeriesFiltered(t)&&s)return i.setVisual("colorFromPalette",!1),{dataEach:function(e,i){var n=t.getDataParams(i),o=l({},r);o[a]=s(n),e.setItemVisual(i,"style",o)}}}},ab=new J_,N_={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i,n,o;if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t))return e=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=dl(t,i),o=e.getVisual("drawType"),{dataEach:e.hasItemOption?function(t,e){var r=t.getRawDataItem(e);r&&r[i]&&(ab.option=r[i],r=n(ab),l(t.ensureUniqueItemVisual(e,"style"),r),ab.option.decal&&(t.setItemVisual(e,"decal",ab.option.decal),ab.option.decal.dirty=!0),o in r)&&t.setItemVisual(e,"colorFromPalette",!1)}:null}}},px={performRawSeries:!0,overallReset:function(t){var e=W();t.eachSeries(function(t){var i,n=t.getColorBy();t.isColorBySeries()||(n=t.type+"-"+n,(i=e.get(n))||e.set(n,i={}),nb(t).scope=i)}),t.eachSeries(function(e){var i,n,o,r,a,s;e.isColorBySeries()||t.isSeriesFiltered(e)||(i=e.getRawData(),n={},o=e.getData(),r=nb(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=fl(e,a),o.each(function(t){var e=o.getRawIndex(t);n[e]=t}),i.each(function(t){var a,l=n[t];o.getItemVisual(l,"colorFromPalette")&&(l=o.ensureUniqueItemVisual(l,"style"),t=i.getName(t)||t+"",a=i.count(),l[s]=e.getColorFromPalette(t,r,a))}))})}},sb=Math.PI;gl.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){(t=t.overallTask)&&t.dirty()})},gl.prototype.getPerformArgs=function(t,e){var 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}},gl.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},gl.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData().count(),e=i.progressiveEnabled&&e.incrementalPrepareRender&&n>=i.threshold,o=t.get("large")&&n>=t.get("largeThreshold"),n="mod"===t.get("progressiveChunkMode")?n:null;t.pipelineContext=i.context={progressiveRender:e,modDataCount:n,large:o}},gl.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=W();t.eachSeries(function(t){var n=t.getProgressive(),o=t.uid;i.set(o,{id:o,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),e._pipe(t,t.dataTask)})},gl.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;f(this._allHandlers,function(n){var o=t.get(n.uid)||t.set(n.uid,{});z(!(n.reset&&n.overallReset),""),n.reset&&this._createSeriesStageTask(n,o,e,i),n.overallReset&&this._createOverallStageTask(n,o,e,i)},this)},gl.prototype.prepareView=function(t,e,i,n){var o=t.renderTask,r=o.context;r.model=e,r.ecModel=i,r.api=n,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},gl.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},gl.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},gl.prototype._performStageTasks=function(t,e,i,n){function o(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}n=n||{};var r=!1,a=this;f(t,function(t,s){var l,h,u,c,p;n.visualType&&n.visualType!==t.visualType||(l=(h=a._stageTaskMap.get(t.uid)).seriesTaskMap,(h=h.overallTask)?((c=h.agentStubMap).each(function(t){o(n,t)&&(t.dirty(),u=!0)}),u&&h.dirty(),a.updatePayload(h,i),p=a.getPerformArgs(h,n.block),c.each(function(t){t.perform(p)}),h.perform(p)&&(r=!0)):l&&l.each(function(s,l){o(n,s)&&s.dirty();var h=a.getPerformArgs(s,n.block);h.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,i),s.perform(h)&&(r=!0)}))}),this.unfinished=r||this.unfinished},gl.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},gl.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}}while(e=e.getUpstream())})},gl.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},gl.prototype._createSeriesStageTask=function(t,e,i,n){function o(e){var o=e.uid,o=s.set(o,a&&a.get(o)||cs({plan:xl,reset:wl,count:Sl}));o.context={model:e,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,o)}var r=this,a=e.seriesTaskMap,s=e.seriesTaskMap=W(),e=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(o):e?i.eachRawSeriesByType(e,o):l&&l(i,n).each(o)},gl.prototype._createOverallStageTask=function(t,e,i,n){function o(t){var e=t.uid,e=l.set(e,s&&s.get(e)||(c=!0,cs({reset:ml,onDirty:_l})));e.context={model:t,overallProgress:u},e.agent=a,e.__block=u,r._pipe(t,e)}var r=this,a=e.overallTask=e.overallTask||cs({reset:yl}),s=(a.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:r},a.agentStubMap),l=a.agentStubMap=W(),e=t.seriesType,h=t.getTargetSeries,u=!0,c=!1;z(!t.createOnAllSeries,""),e?i.eachRawSeriesByType(e,o):h?h(i,n).each(o):(u=!1,f(i.getSeries(),o)),c&&a.dirty()},gl.prototype._pipe=function(t,e){t=t.uid,t=this._pipelineMap.get(t),t.head||(t.head=e),t.tail&&t.tail.pipe(e),(t.tail=e).__idxInPipeline=t.count++,e.__pipeline=t},gl.wrapStageHandler=function(t,e){return(t=w(t)?{overallReset:t,seriesType:function(t){lb=null;try{t(cb,pb)}catch(t){}return lb}(t)}:t).uid=zr("stageHandler"),e&&(t.visualType=e),t};var lb,hb=gl,ub=bl(0),cb={},pb={};Tl(cb,Qx),Tl(pb,Aa),cb.eachSeriesByType=cb.eachRawSeriesByType=function(t){lb=t},cb.eachComponent=function(t){"series"===t.mainType&&t.subType&&(lb=t.subType)};var q_=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Q_={color:q_,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],q_]},db="#B9B8CE",Z_="#100C2A",G_=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],q_={darkMode:!0,color:G_,backgroundColor:Z_,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:db}},textStyle:{color:db},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:db}},dataZoom:{borderColor:"#71708A",textStyle:{color:db},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:db}},timeline:{lineStyle:{color:db},label:{color:db},controlStyle:{color:db,borderColor:db}},calendar:{itemStyle:{color:Z_},dayLabel:{color:db},monthLabel:{color:db},yearLabel:{color:db}},timeAxis:Cl(),logAxis:Cl(),valueAxis:Cl(),categoryAxis:Cl(),line:{symbol:"circle"},graph:{color:G_},gauge:{title:{color:db},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:db},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}},fb=(q_.categoryAxis.splitLine.show=!1,Ml.prototype.normalizeQuery=function(t){var e,i,n,o={},r={},a={};return b(t)?(e=en(t),o.mainType=e.main||null,o.subType=e.sub||null):(i=["Index","Name","Id"],n={name:1,dataIndex:1,dataType:1},f(t,function(t,e){for(var s=!1,l=0;l<i.length;l++){var h=i[l],u=e.lastIndexOf(h);0<u&&u===e.length-h.length&&"data"!==(u=e.slice(0,u))&&(o.mainType=u,o[h.toLowerCase()]=t,s=!0)}n.hasOwnProperty(e)&&(r[e]=t,s=!0),s||(a[e]=t)})),{cptQuery:o,dataQuery:r,otherQuery:a}},Ml.prototype.filter=function(t,e){function i(t,e,i,n){return null==t[i]||e[n||i]===t[i]}var n,o,r,a,s,l=this.eventInfo;return!l||(n=l.targetEl,o=l.packedEvent,r=l.model,l=l.view,!r)||!l||(a=e.cptQuery,s=e.dataQuery,i(a,r,"mainType")&&i(a,r,"subType")&&i(a,r,"index","componentIndex")&&i(a,r,"name")&&i(a,r,"id")&&i(s,o,"name")&&i(s,o,"dataIndex")&&i(s,o,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(t,e.otherQuery,n,o)))},Ml.prototype.afterTrigger=function(){this.eventInfo=null},Ml),gb=["symbol","symbolSize","symbolRotate","symbolOffset"],yb=gb.concat(["symbolKeepAspect"]),Z_={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData();if(t.legendIcon&&i.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var n,o={},r={},a=!1,s=0;s<gb.length;s++){var h=gb[s],u=t.get(h);w(u)?(a=!0,r[h]=u):o[h]=u}if(o.symbol=o.symbol||t.defaultSymbol,i.setVisual(l({legendIcon:t.legendIcon||o.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},o)),!e.isSeriesFiltered(t))return n=v(r),{dataEach:a?function(e,i){for(var o=t.getRawValue(i),a=t.getDataParams(i),s=0;s<n.length;s++){var l=n[s];e.setItemVisual(i,l,r[l](o,a))}}:null}}}},G_={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<yb.length;n++){var o=yb[n],r=i.getShallow(o,!0);null!=r&&t.setItemVisual(e,o,r)}}:null}}},mb=Math.round(9*Math.random()),vb="function"==typeof Object.defineProperty,_b=(Al.prototype.get=function(t){return this._guard(t)[this._id]},Al.prototype.set=function(t,e){return t=this._guard(t),vb?Object.defineProperty(t,this._id,{value:e,enumerable:!1,configurable:!0}):t[this._id]=e,this},Al.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},Al.prototype.has=function(t){return!!this._guard(t)[this._id]},Al.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},Al),xb=Bm.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,o=e.width/2,e=e.height/2;t.moveTo(i,n-e),t.lineTo(i+o,n+e),t.lineTo(i-o,n+e),t.closePath()}}),wb=Bm.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,o=e.width/2,e=e.height/2;t.moveTo(i,n-e),t.lineTo(i+o,n),t.lineTo(i,n+e),t.lineTo(i-o,n),t.closePath()}}),bb=Bm.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,o=e.width/5*3,e=Math.max(o,e.height),o=o/2,r=o*o/(e-o),e=n-e+o+r,a=Math.asin(r/o),s=Math.cos(a)*o,l=Math.sin(a),h=Math.cos(a),u=.6*o,c=.7*o;t.moveTo(i-s,e+r),t.arc(i,e,o,Math.PI-a,2*Math.PI+a),t.bezierCurveTo(i+s-l*u,e+r+h*u,i,n-c,i,n),t.bezierCurveTo(i,n-c,i-s+l*u,e+r+h*u,i-s,e+r),t.closePath()}}),Sb=Bm.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,o=e.x,e=e.y,n=n/3*2;t.moveTo(o,e),t.lineTo(o+n,e+i),t.lineTo(o,e+i/4*3),t.lineTo(o-n,e+i),t.lineTo(o,e),t.closePath()}}),Tb={line:function(t,e,i,n,o){o.x1=t,o.y1=e+n/2,o.x2=t+i,o.y2=e+n/2},rect:function(t,e,i,n,o){o.x=t,o.y=e,o.width=i,o.height=n},roundRect:function(t,e,i,n,o){o.x=t,o.y=e,o.width=i,o.height=n,o.r=Math.min(i,n)/4},square:function(t,e,i,n,o){i=Math.min(i,n),o.x=t,o.y=e,o.width=i,o.height=i},circle:function(t,e,i,n,o){o.cx=t+i/2,o.cy=e+n/2,o.r=Math.min(i,n)/2},diamond:function(t,e,i,n,o){o.cx=t+i/2,o.cy=e+n/2,o.width=i,o.height=n},pin:function(t,e,i,n,o){o.x=t+i/2,o.y=e+n/2,o.width=i,o.height=n},arrow:function(t,e,i,n,o){o.x=t+i/2,o.y=e+n/2,o.width=i,o.height=n},triangle:function(t,e,i,n,o){o.cx=t+i/2,o.cy=e+n/2,o.width=i,o.height=n}},Cb={},Mb=(f({line:u_,rect:qm,roundRect:qm,square:qm,circle:Ev,diamond:wb,pin:bb,arrow:Sb,triangle:xb},function(t,e){Cb[e]=new t}),Bm.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,i){var t=hi(t,e,i),n=this.shape;return n&&"pin"===n.symbolType&&"inside"===e.position&&(t.y=i.y+.4*i.height),t},buildPath:function(t,e,i){var n,o=e.symbolType;"none"!==o&&(n=(n=Cb[o])||Cb[o="rect"],Tb[o](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,i))}})),Ib=new Mm(!0),kb=["shadowBlur","shadowOffsetX","shadowOffsetY"],Ab=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],Db=1,Pb=2,Ob=3,Lb=4,Eb=new _b,Rb=new _g(100),Nb=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"],Bb=new Bf,zb={},Fb="undefined"!=typeof window,wb={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},Vb="__flagInMainProcess",Yb="__pendingUpdate",Hb="__needsUpdateStatus",Wb=/^[a-zA-Z0-9_]+$/,Xb="__connectUpdateStatus";i(eh,Ub=Bf);var Ub,Gb,jb,qb,Zb,Kb,Qb,$b,Jb,tS,eS,iS,nS,oS,rS,aS,sS,lS,hS,uS,cS=eh,bb=cS.prototype,pS=(bb.on=Jl("on"),bb.off=Jl("off"),i(ih,uS=Bf),ih.prototype._onframe=function(){if(!this._disposed){hS(this);var t=this._scheduler;if(this[Yb]){var e=this[Yb].silent;this[Vb]=!0;try{Gb(this),Zb.update.call(this,null,this[Yb].updateParams)}catch(t){throw this[Vb]=!1,this[Yb]=null,t}this._zr.flush(),this[Vb]=!1,this[Yb]=null,Jb.call(this,e),tS.call(this,e)}else if(t.unfinished){var i=1,n=this._model,o=this._api;t.unfinished=!1;do{var r=+new Date}while(t.performSeriesTasks(n),t.performDataProcessorTasks(n),Qb(this,n),t.performVisualTasks(n),rS(this,this._model,o,"remain",{}),0<(i-=+new Date-r)&&t.unfinished);t.unfinished||this._zr.flush()}}},ih.prototype.getDom=function(){return this._dom},ih.prototype.getId=function(){return this.id},ih.prototype.getZr=function(){return this._zr},ih.prototype.isSSR=function(){return this._ssr},ih.prototype.setOption=function(t,e,i){if(!this[Vb])if(this._disposed)this.id;else{C(e)&&(i=e.lazyUpdate,n=e.silent,o=e.replaceMerge,r=e.transition,e=e.notMerge),this[Vb]=!0,this._model&&!e||(e=new ow(this._api),a=this._theme,(s=this._model=new Qx).scheduler=this._scheduler,s.ssr=this._ssr,s.init(null,null,null,a,this._locale,e)),this._model.setOption(t,{replaceMerge:o},mS);var n,o,r,a,s={seriesTransition:r,optionChanged:!0};if(i)this[Yb]={silent:n,updateParams:s},this[Vb]=!1,this.getZr().wakeUp();else{try{Gb(this),Zb.update.call(this,null,s)}catch(t){throw this[Yb]=null,this[Vb]=!1,t}this._ssr||this._zr.flush(),this[Yb]=null,this[Vb]=!1,Jb.call(this,n),tS.call(this,n)}}},ih.prototype.setTheme=function(){},ih.prototype.getModel=function(){return this._model},ih.prototype.getOption=function(){return this._model&&this._model.getOption()},ih.prototype.getWidth=function(){return this._zr.getWidth()},ih.prototype.getHeight=function(){return this._zr.getHeight()},ih.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Fb&&window.devicePixelRatio||1},ih.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},ih.prototype.renderToCanvas=function(t){return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},ih.prototype.renderToSVGString=function(t){return this._zr.painter.renderToString({useViewBox:(t=t||{}).useViewBox})},ih.prototype.getSvgDataURL=function(){var t;if(af.svgSupported)return f((t=this._zr).storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},ih.prototype.getDataURL=function(t){var e,i,n,o;if(!this._disposed)return o=(t=t||{}).excludeComponents,e=this._model,i=[],n=this,f(o,function(t){e.eachComponent({mainType:t},function(t){t=n._componentsMap[t.__viewId],t.group.ignore||(i.push(t),t.group.ignore=!0)})}),o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png")),f(i,function(t){t.group.ignore=!1}),o;this.id},ih.prototype.getConnectedDataURL=function(t){var e,i,n,o,r,s,l,h,u,c,p,d,g,y,m;if(!this._disposed)return e="svg"===t.type,i=this.group,n=Math.min,o=Math.max,bS[i]?(s=r=1/0,h=l=-1/0,u=[],c=t&&t.pixelRatio||this.getDevicePixelRatio(),f(wS,function(c,p){var d;c.group===i&&(d=e?c.getZr().painter.getSvgDom().innerHTML:c.renderToCanvas(a(t)),c=c.getDom().getBoundingClientRect(),r=n(c.left,r),s=n(c.top,s),l=o(c.right,l),h=o(c.bottom,h),u.push({dom:d,left:c.left,top:c.top}))}),p=(l*=c)-(r*=c),d=(h*=c)-(s*=c),g=df.createCanvas(),(y=vi(g,{renderer:e?"svg":"canvas"})).resize({width:p,height:d}),e?(m="",f(u,function(t){var e=t.left-r,i=t.top-s;m+='<g transform="translate('+e+","+i+')">'+t.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()):(t.connectedBackgroundColor&&y.add(new qm({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),f(u,function(t){t=new Wm({style:{x:t.left*c-r,y:t.top*c-s,image:t.dom}}),y.add(t)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png")))):this.getDataURL(t);this.id},ih.prototype.convertToPixel=function(t,e){return Kb(this,"convertToPixel",t,e)},ih.prototype.convertFromPixel=function(t,e){return Kb(this,"convertFromPixel",t,e)},ih.prototype.containPixel=function(t,e){var i;if(!this._disposed)return f(Ki(this._model,t),function(t,n){0<=n.indexOf("Models")&&f(t,function(t){var o=t.coordinateSystem;o&&o.containPoint?i=i||!!o.containPoint(e):"seriesModels"===n&&(o=this._chartsMap[t.__viewId])&&o.containPoint&&(i=i||o.containPoint(e,t))},this)},this),!!i;this.id},ih.prototype.getVisual=function(t,e){var t=Ki(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){var n=i,o=t,r=e;switch(r){case"color":return n.getItemVisual(o,"style")[n.getVisual("drawType")];case"opacity":return n.getItemVisual(o,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getItemVisual(o,r)}}else{var a=i,s=e;switch(s){case"color":return a.getVisual("style")[a.getVisual("drawType")];case"opacity":return a.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return a.getVisual(s)}}},ih.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},ih.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},ih.prototype._initEvents=function(){var t,e,i,n=this;f(dS,function(t){function e(e){var i,o,r,a=n.getModel(),s=e.target;"globalout"===t?i={}:s&&kl(s,function(t){var e,t=iv(t);return t&&null!=t.dataIndex?(e=t.dataModel||a.getSeriesByIndex(t.seriesIndex),i=e&&e.getDataParams(t.dataIndex,t.dataType)||{},1):t.eventData&&(i=l({},t.eventData),1)},!0),i&&(o=i.componentType,r=i.componentIndex,"markLine"!==o&&"markPoint"!==o&&"markArea"!==o||(o="series",r=i.seriesIndex),r=(o=o&&null!=r&&a.getComponent(o,r))&&n["series"===o.mainType?"_chartsMap":"_componentsMap"][o.__viewId],i.event=e,i.type=t,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:i,model:o,view:r},n.trigger(t,i))}e.zrEventfulCallAtLast=!0,n._zr.on(t,e,n)}),f(gS,function(t,e){n._messageCenter.on(e,function(t){this.trigger(e,t)},n)}),f(["selectchanged"],function(t){n._messageCenter.on(t,function(e){this.trigger(t,e)},n)}),t=this._messageCenter,i=(e=this)._api,t.on("selectchanged",function(t){var n=i.getModel();t.isFromClick?(Il("map","selectchanged",e,n,t),Il("pie","selectchanged",e,n,t)):"select"===t.fromAction?(Il("map","selected",e,n,t),Il("pie","selected",e,n,t)):"unselect"===t.fromAction&&(Il("map","unselected",e,n,t),Il("pie","unselected",e,n,t))})},ih.prototype.isDisposed=function(){return this._disposed},ih.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},ih.prototype.dispose=function(){var t,e,i;this._disposed?this.id:(this._disposed=!0,this.getDom()&&Ji(this.getDom(),CS,""),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 wS[t.id])},ih.prototype.resize=function(t){if(!this[Vb])if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var e=e.resetOption("media"),i=t&&t.silent;this[Yb]&&(null==i&&(i=this[Yb].silent),e=!0,this[Yb]=null),this[Vb]=!0;try{e&&Gb(this),Zb.update.call(this,{type:"resize",animation:l({duration:0},t&&t.animation)})}catch(t){throw this[Vb]=!1,t}this[Vb]=!1,Jb.call(this,i),tS.call(this,i)}}},ih.prototype.showLoading=function(t,e){this._disposed?this.id:(C(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),xS[t]&&(t=xS[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},ih.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},ih.prototype.makeActionFromEvent=function(t){var e=l({},t);return e.type=gS[t.type],e},ih.prototype.dispatchAction=function(t,e){var i;this._disposed?this.id:(C(e)||(e={silent:!!e}),fS[t.type]&&this._model&&(this[Vb]?this._pendingActions.push(t):(i=e.silent,$b.call(this,t,i),(t=e.flush)?this._zr.flush():!1!==t&&af.browser.weChat&&this._throttledZrFlush(),Jb.call(this,i),tS.call(this,i))))},ih.prototype.updateLabelLayout=function(){Bb.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},ih.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())},ih.internalField=(Gb=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),jb(t,!0),jb(t,!1),e.plan()},jb=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=en(t.type),(h=new(e?Zw.getClass(i.main,i.sub):$w.getClass(i.sub))).init(n,l),a[u]=h,r.push(h),s.add(h.group)),t.__viewId=h.__id=u,h.__alive=!0,h.__model=t,h.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},e||o.prepareView(h,t,n,l)}for(var n=t._model,o=t._scheduler,r=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,h=0;h<r.length;h++)r[h].__alive=!1;for(e?n.eachComponent(function(t,e){"series"!==t&&i(e)}):n.eachSeries(i),h=0;h<r.length;){var u=r[h];u.__alive?h++:(e||u.renderTask.dispose(),s.remove(u.group),u.dispose(n,l),r.splice(h,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},qb=function(t,e,i,n,o){function r(n){n&&n.__alive&&n[e]&&n[e](n.__model,l,t._api,i)}var a,s,l=t._model;l.setUpdatePayload(i),n?((a={})[n+"Id"]=i[n+"Id"],a[n+"Index"]=i[n+"Index"],a[n+"Name"]=i[n+"Name"],a={mainType:n,query:a},o&&(a.subType=o),null!=(o=i.excludeSeriesId)&&(s=W(),f(zi(o),function(t){null!=(t=Xi(t,null))&&s.set(t,!0)})),l&&l.eachComponent(a,function(e){var n,o,r=s&&null!==s.get(e.id);if(!r)if(Io(i))if(e instanceof qw){if(i.type===pv&&!i.notBlur&&!e.get(["emphasis","disabled"])){var r=e,a=i,l=t._api,h=r.seriesIndex,u=r.getData(a.dataType);if(u){var a=(x(a=qi(u,a))?a[0]:a)||0,c=u.getItemGraphicEl(a);if(!c)for(var p=u.count(),d=0;!c&&d<p;)c=u.getItemGraphicEl(d++);c?mo(h,(a=iv(c)).focus,a.blurScope,l):(a=r.get(["emphasis","focus"]),r=r.get(["emphasis","blurScope"]),null!=a&&mo(h,a,r,l))}}}else h=_o(e.mainType,e.componentIndex,i.name,t._api),a=h.focusSelf,r=h.dispatchers,i.type===pv&&a&&!i.notBlur&&vo(e.mainType,e.componentIndex,t._api),r&&f(r,function(t){(i.type===pv?ho:uo)(t)});else Mo(i)&&e instanceof qw&&(l=e,r=i,t._api,Mo(r)&&(n=r.dataType,x(o=qi(l.getData(n),r))||(o=[o]),l[r.type===yv?"toggleSelect":r.type===fv?"select":"unselect"](o,n)),xo(e),lS(t))},t),l&&l.eachComponent(a,function(e){s&&null!==s.get(e.id)||r(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])},t)):f([].concat(t._componentsViews).concat(t._chartsViews),r)},Zb={prepareAndUpdate:function(t){Gb(this),Zb.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(t,e){var i=this._model,n=this._api,o=this._zr,r=this._coordSysMgr,a=this._scheduler;i&&(i.setUpdatePayload(t),a.restoreData(i,t),a.performSeriesTasks(i),r.create(i,n),a.performDataProcessorTasks(i,t),Qb(this,i),r.update(i,n),nh(i),a.performVisualTasks(i,t),nS(this,i,n,t,e),r=i.get("backgroundColor")||"transparent",a=i.get("darkMode"),o.setBackgroundColor(r),null!=a&&"auto"!==a&&o.setDarkMode(a),Bb.trigger("afterupdate",i,n))},updateTransform:function(t){var e,i,n=this,o=this._model,r=this._api;o&&(o.setUpdatePayload(t),e=[],o.eachComponent(function(i,a){"series"!==i&&(i=n.getViewOfComponentModel(a))&&i.__alive&&(!i.updateTransform||(a=i.updateTransform(a,o,r,t))&&a.update)&&e.push(i)}),i=W(),o.eachSeries(function(e){var a=n._chartsMap[e.__viewId];(!a.updateTransform||(a=a.updateTransform(e,o,r,t))&&a.update)&&i.set(e.uid,1)}),nh(o),this._scheduler.performVisualTasks(o,t,{setDirty:!0,dirtyMap:i}),rS(this,o,r,t,{},i),Bb.trigger("afterupdate",o,r))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),$w.markUpdateMethod(t,"updateView"),nh(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),nS(this,e,this._api,t,{}),Bb.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()}),$w.markUpdateMethod(t,"updateVisual"),nh(i),this._scheduler.performVisualTasks(i,t,{visualType:"visual",setDirty:!0}),i.eachComponent(function(n,o){"series"!==n&&(n=e.getViewOfComponentModel(o))&&n.__alive&&n.updateVisual(o,i,e._api,t)}),i.eachSeries(function(n){e._chartsMap[n.__viewId].updateVisual(n,i,e._api,t)}),Bb.trigger("afterupdate",i,this._api))},updateLayout:function(t){Zb.update.call(this,t)}},Kb=function(t,e,i,n){if(t._disposed)t.id;else for(var o=t._model,r=t._coordSysMgr.getCoordinateSystems(),a=Ki(o,i),s=0;s<r.length;s++){var l=r[s];if(l[e]&&null!=(l=l[e](o,a,n)))return l}},Qb=function(t,e){var i=t._chartsMap,n=t._scheduler;e.eachSeries(function(t){n.updateStreamModes(t,i[t.__viewId])})},$b=function(t,e){var i,n,o=this,r=this.getModel(),a=t.type,s=t.escapeConnect,u=fS[a],c=u.actionInfo,p=(c.update||"update").split(":"),d=p.pop(),y=null!=p[0]&&en(p[0]),p=(this[Vb]=!0,[t]),m=!1,v=(t.batch&&(m=!0,p=g(t.batch,function(e){return(e=h(l({},e),t)).batch=null,e})),[]),_=Mo(t),x=Io(t);if(x&&yo(this._api),f(p,function(e){var n,r;(i=(i=u.action(e,o._model,o._api))||l({},e)).type=c.event||i.type,v.push(i),x?(n=(r=Qi(t)).queryOptionMap,r=r.mainTypeSpecified?n.keys()[0]:"series",qb(o,d,e,r),lS(o)):_?(qb(o,d,e,"series"),lS(o)):y&&qb(o,d,e,y.main,y.sub)}),"none"!==d&&!x&&!_&&!y)try{this[Yb]?(Gb(this),Zb.update.call(this,t),this[Yb]=null):Zb[d].call(this,t)}catch(e){throw this[Vb]=!1,e}i=m?{type:c.event||a,escapeConnect:s,batch:v}:v[0],this[Vb]=!1,e||((p=this._messageCenter).trigger(i.type,i),_&&(m={type:"selectchanged",escapeConnect:s,selected:(n=[],r.eachSeries(function(t){f(t.getAllData(),function(e){e.data;var e=e.type,i=t.getSelectedDataIndices();0<i.length&&(i={dataIndex:i,seriesIndex:t.seriesIndex},null!=e&&(i.dataType=e),n.push(i))})}),n),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t},p.trigger(m.type,m)))},Jb=function(t){for(var e=this._pendingActions;e.length;){var i=e.shift();$b.call(this,i,t)}},tS=function(t){t||this.trigger("updated")},eS=function(t,e){t.on("rendered",function(i){e.trigger("rendered",i),!t.animation.isFinished()||e[Yb]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},iS=function(t,e){t.on("mouseover",function(t){var i,n,o,r,a=kl(t.target,Co);a&&(a=a,i=t,t=e._api,n=iv(a),o=(r=_o(n.componentMainType,n.componentIndex,n.componentHighDownName,t)).dispatchers,r=r.focusSelf,o?(r&&vo(n.componentMainType,n.componentIndex,t),f(o,function(t){return so(t,i)})):(mo(n.seriesIndex,n.focus,n.blurScope,t),"self"===n.focus&&vo(n.componentMainType,n.componentIndex,t),so(a,i)),lS(e))}).on("mouseout",function(t){var i,n,o=kl(t.target,Co);o&&(o=o,i=t,yo(t=e._api),(n=_o((n=iv(o)).componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers)?f(n,function(t){return lo(t,i)}):lo(o,i),lS(e))}).on("click",function(t){var i,t=kl(t.target,function(t){return null!=iv(t).dataIndex},!0);t&&(i=t.selected?"unselect":"select",t=iv(t),e._api.dispatchAction({type:i,dataType:t.dataType,dataIndexInside:t.dataIndex,seriesIndex:t.seriesIndex,isFromClick:!0}))})},nS=function(t,e,i,n,o){var r,a,s,l,h,u,c;h=[],c=!(u=[]),(r=e).eachComponent(function(t,e){var i=e.get("zlevel")||0,n=e.get("z")||0,o=e.getZLevelKey();c=c||!!o,("series"===t?u:h).push({zlevel:i,z:n,idx:e.componentIndex,type:t,key:o})}),c&&(Dt(a=h.concat(u),function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),f(a,function(t){var e=r.getComponent(t.type,t.idx),i=t.zlevel,t=t.key;null!=s&&(i=Math.max(s,i)),t?(i===s&&t!==l&&i++,l=t):l&&(i===s&&i++,l=""),s=i,e.setZLevel(i)})),oS(t,e,i,n,o),f(t._chartsViews,function(t){t.__alive=!1}),rS(t,e,i,n,o),f(t._chartsViews,function(t){t.__alive||t.remove(e,i)})},oS=function(t,e,i,n,o,r){f(r||t._componentsViews,function(t){var o=t.__model;ah(0,t),t.render(o,e,i,n),rh(o,t),sh(o,t)})},rS=function(t,e,i,n,o,r){var a,s,h,u,c=t._scheduler,p=(o=l(o||{},{updatedSeries:e.getSeries()}),Bb.trigger("series:beforeupdate",e,i,o),!1);e.eachSeries(function(e){var i,o=t._chartsMap[e.__viewId],a=(o.__alive=!0,o.renderTask);c.updatePayload(a,n),ah(0,o),r&&r.get(e.uid)&&a.dirty(),a.perform(c.getPerformArgs(a))&&(p=!0),o.group.silent=!!e.get("silent"),a=o,i=e.get("blendMode")||null,a.eachRendered(function(t){t.isGroup||(t.style.blend=i)}),xo(e)}),c.unfinished=p||c.unfinished,Bb.trigger("series:layoutlabels",e,i,o),Bb.trigger("series:transition",e,i,o),e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];rh(e,i),sh(e,i)}),s=e,h=(a=t)._zr.storage,u=0,h.traverse(function(t){t.isGroup||u++}),u>s.get("hoverLayerThreshold")&&!af.node&&!af.worker&&s.eachSeries(function(t){t.preventUsingHoverLayer||(t=a._chartsMap[t.__viewId]).__alive&&t.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}),Bb.trigger("series:afterupdate",e,i,o)},lS=function(t){t[Hb]=!0,t.getZr().wakeUp()},hS=function(t){t[Hb]&&(t.getZr().storage.traverse(function(t){nr(t)||oh(t)}),t[Hb]=!1)},aS=function(t){function e(){return null!==n&&n.apply(this,arguments)||this}return i(e,n=Aa),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){ho(e,i),lS(t)},e.prototype.leaveEmphasis=function(e,i){uo(e,i),lS(t)},e.prototype.enterBlur=function(e){io(e,Qn),lS(t)},e.prototype.leaveBlur=function(e){co(e),lS(t)},e.prototype.enterSelect=function(e){po(e),lS(t)},e.prototype.leaveSelect=function(e){fo(e),lS(t)},e.prototype.getModel=function(){return t.getModel()},e.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},e.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},new e(t);var n},void(sS=function(t){function e(t,e){for(var i=0;i<t.length;i++)t[i][Xb]=e}f(gS,function(i,n){t._messageCenter.on(n,function(i){var n,o;!bS[t.group]||0===t[Xb]||i&&i.escapeConnect||(n=t.makeActionFromEvent(i),o=[],f(wS,function(e){e!==t&&e.group===t.group&&o.push(e)}),e(o,0),f(o,function(t){1!==t[Xb]&&t.dispatchAction(n)}),e(o,2))})})})),ih),Sb=pS.prototype,dS=(Sb.on=$l("on"),Sb.off=$l("off"),Sb.one=function(t,e,i){var n=this;this.on.call(this,t,function i(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];e&&e.apply&&e.apply(this,o),n.off(t,i)},i)},["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"]),fS={},gS={},yS=[],mS=[],vS=[],_S={},xS={},wS={},bS={},SS=+new Date,TS=+new Date,CS="_echarts_instance_";xb=lh;var MS=[];_h(2e3,zy),_h(4500,N_),_h(4500,px),_h(2e3,Z_),_h(4500,G_),_h(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=Kl(i,e))}),i=n.getVisual("decal"))&&(n.getVisual("style").decal=Kl(i,e))})}),ch(Xa),ph(900,function(t){var e=W();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(Ua)}),wh("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 wy,o=new qm({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),r=(n.add(o),new $m({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001})),a=new qm({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((i=new m_({shape:{startAngle:-sb/2,endAngle:-sb/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*sb/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*sb/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=r.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,n=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),l=t.getHeight()/2;e.showSpinner&&i.setShape({cx:n,cy:l}),a.setShape({x:n-s,y:l-s,width:2*s,height:2*s}),o.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}),yh({type:pv,event:pv,update:pv},q),yh({type:dv,event:dv,update:dv},q),yh({type:fv,event:fv,update:fv},q),yh({type:gv,event:gv,update:gv},q),yh({type:yv,event:yv,update:yv},q),uh("light",Q_),uh("dark",q_),Mh.prototype.add=function(t){return this._add=t,this},Mh.prototype.update=function(t){return this._update=t,this},Mh.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},Mh.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},Mh.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},Mh.prototype.remove=function(t){return this._remove=t,this},Mh.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},Mh.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},n=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var r=0;r<t.length;r++){var a,s=n[r],l=i[s],h=Th(l);1<h?(a=l.shift(),1===l.length&&(i[s]=l[0]),this._update&&this._update(a,r)):1===h?(i[s]=null,this._update&&this._update(l,r)):this._remove&&this._remove(r)}this._performRestAdd(o,i)},Mh.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},o=[],r=[];this._initIndexMap(t,i,o,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var a=0;a<o.length;a++){var s=o[a],l=i[s],h=n[s],u=Th(l),c=Th(h);if(1<u&&1===c)this._updateManyToOne&&this._updateManyToOne(h,l),n[s]=null;else if(1===u&&1<c)this._updateOneToMany&&this._updateOneToMany(h,l),n[s]=null;else if(1===u&&1===c)this._update&&this._update(h,l),n[s]=null;else if(1<u&&1<c)this._updateManyToMany&&this._updateManyToMany(h,l),n[s]=null;else if(1<u)for(var p=0;p<u;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(r,n)},Mh.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],o=e[n],r=Th(o);if(1<r)for(var a=0;a<r;a++)this._add&&this._add(o[a]);else 1===r&&this._add&&this._add(o);e[n]=null}},Mh.prototype._initIndexMap=function(t,e,i,n){for(var o=this._diffModeMultiple,r=0;r<t.length;r++){var a,s,l="_ec_"+this[n](t[r],r);o||(i[r]=l),e&&(0===(s=Th(a=e[l]))?(e[l]=r,o&&i.push(l)):1===s?e[l]=[a,r]:a.push(r))}};var IS=Mh;Ih.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},Ih.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames};var kS,AS,DS,PS,OS,LS,ES,RS=Ih,NS=function(t){this.otherDims={},null!=t&&l(this,t)},BS=Zi(),zS={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},FS=(Dh.prototype.isDimensionOmitted=function(){return this._dimOmitted},Dh.prototype._updateDimOmitted=function(t){(this._dimOmitted=t)&&!this._dimNameMap&&(this._dimNameMap=Lh(this.source))},Dh.prototype.getSourceDimensionIndex=function(t){return E(this._dimNameMap.get(t),-1)},Dh.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},Dh.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=$a(this.source),i=!(30<t),n="",o=[],r=0,a=0;r<t;r++){var s,l=void 0,h=void 0,u=void 0,c=this.dimensions[a];c&&c.storeDimIndex===r?(l=e?c.name:null,h=c.type,u=c.ordinalMeta,a++):(s=this.getSourceDimension(r))&&(l=e?s.name:null,h=s.type),o.push({property:l,type:h,ordinalMeta:u}),!e||null==l||c&&c.isCalculationCoord||(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n=n+"$"+(zS[h]||"f"),u&&(n+=u.uid),n+="$"}var p=this.source;return{dimensions:o,hash:[p.seriesLayoutBy,p.startIndex,n].join("$$")}},Dh.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var n=void 0,o=this.dimensions[i];o&&o.storeDimIndex===e?(o.isCalculationCoord||(n=o.name),i++):(o=this.getSourceDimension(e))&&(n=o.name),t.push(n)}return t},Dh.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},Dh),VS=C,YS=g,HS="undefined"==typeof Int32Array?Array:Int32Array,WS=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],XS=["_approximateExtent"],US=(Eh.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])},Eh.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},Eh.prototype._recognizeDimIndex=function(t){if(T(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},Eh.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},Eh.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},Eh.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]}},Eh.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},Eh.prototype.mapDimension=function(t,e){var i=this._dimSummary;return null==e?i.encodeFirstDimNotExtra[t]:(i=i.encode[t])?i[e]:null},Eh.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},Eh.prototype.getStore=function(){return this._store},Eh.prototype.initData=function(t,e,i){var n,o,r=this;(n=t instanceof Vw?t:n)||(o=this.dimensions,t=Ga(t)||d(t)?new gw(t,o.length):t,n=new Vw,o=YS(o,function(t){return{type:r._dimInfos[t].type,property:t}}),n.initData(t,o,i)),this._store=n,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,n.count()),this._dimSummary=kh(this,this._schema),this.userOutput=this._dimSummary.userOutput},Eh.prototype.appendData=function(t){t=this._store.appendData(t),this._doInit(t[0],t[1])},Eh.prototype.appendValues=function(t,e){var t=this._store.appendValues(t,e.length),i=t.start,n=t.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var r=i;r<n;r++)this._nameList[r]=e[r-i],o&&ES(this,r)},Eh.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)}},Eh.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Yx&&!t.fillStorage},Eh.prototype._doInit=function(t,e){if(!(e<=t)){var i=this._store.getProvider(),n=(this._updateOrdinalMeta(),this._nameList),o=this._idList;if(i.getSource().sourceFormat===Bx&&!i.pure)for(var r=[],a=t;a<e;a++){var s,l=i.getItem(a,r);this.hasItemOption||!C(s=l)||s instanceof Array||(this.hasItemOption=!0),l&&(s=l.name,null==n[a]&&null!=s&&(n[a]=Xi(s,null)),l=l.id,null==o[a])&&null!=l&&(o[a]=Xi(l,null))}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)ES(this,a);kS(this)}},Eh.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},Eh.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},Eh.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},Eh.prototype.setCalculationInfo=function(t,e){VS(t)?l(this._calculationInfo,t):this._calculationInfo[t]=e},Eh.prototype.getName=function(t){var t=this.getRawIndex(t),e=this._nameList[t];return e=null==(e=null==e&&null!=this._nameDimIdx?DS(this,this._nameDimIdx,t):e)?"":e},Eh.prototype._getCategory=function(t,e){return e=this._store.get(t,e),t=this._store.getOrdinalMeta(t),t?t.categories[e]:e},Eh.prototype.getId=function(t){return AS(this,this.getRawIndex(t))},Eh.prototype.count=function(){return this._store.count()},Eh.prototype.get=function(t,e){var i=this._store,t=this._dimInfos[t];if(t)return i.get(t.storeDimIndex,e)},Eh.prototype.getByRawIndex=function(t,e){var i=this._store,t=this._dimInfos[t];if(t)return i.getByRawIndex(t.storeDimIndex,e)},Eh.prototype.getIndices=function(){return this._store.getIndices()},Eh.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},Eh.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},Eh.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},Eh.prototype.getValues=function(t,e){var i=this,n=this._store;return x(t)?n.getValues(YS(t,function(t){return i._getStoreDimIndex(t)}),e):n.getValues(t)},Eh.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},Eh.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();e<i;e++)if(this.getName(e)===t)return e;return-1},Eh.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},Eh.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},Eh.prototype.rawIndexOf=function(t,e){return t=(t&&this._invertedIndicesMap[t])[e],null==t||isNaN(t)?-1:t},Eh.prototype.indicesOfNearest=function(t,e,i){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,i)},Eh.prototype.each=function(t,e,i){w(t)&&(i=e,e=t,t=[]),i=i||this,t=YS(PS(t),this._getStoreDimIndex,this),this._store.each(t,i?If(e,i):e)},Eh.prototype.filterSelf=function(t,e,i){return w(t)&&(i=e,e=t,t=[]),i=i||this,t=YS(PS(t),this._getStoreDimIndex,this),this._store=this._store.filter(t,i?If(e,i):e),this},Eh.prototype.selectRange=function(t){var e=this,i={};return f(v(t),function(n){var o=e._getStoreDimIndex(n);i[o]=t[n]}),this._store=this._store.selectRange(i),this},Eh.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},Eh.prototype.map=function(t,e,i,n){return i=i||n||this,n=YS(PS(t),this._getStoreDimIndex,this),t=LS(this),t._store=this._store.map(n,i?If(e,i):e),t},Eh.prototype.modify=function(t,e,i,n){i=i||n||this,n=YS(PS(t),this._getStoreDimIndex,this),this._store.modify(n,i?If(e,i):e)},Eh.prototype.downSample=function(t,e,i,n){var o=LS(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),o},Eh.prototype.lttbDownSample=function(t,e){var i=LS(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},Eh.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},Eh.prototype.getItemModel=function(t){var e=this.hostModel,t=this.getRawDataItem(t);return new J_(t,e,e&&e.ecModel)},Eh.prototype.diff=function(t){var e=this;return new IS(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return AS(t,e)},function(t){return AS(e,t)})},Eh.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},Eh.prototype.setVisual=function(t,e){this._visual=this._visual||{},VS(t)?l(this._visual,t):this._visual[t]=e},Eh.prototype.getItemVisual=function(t,e){return t=this._itemVisuals[t],t=t&&t[e],null==t?this.getVisual(e):t},Eh.prototype.hasItemVisual=function(){return 0<this._itemVisuals.length},Eh.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():VS(i)&&(i=l({},i)),n[e]=i),i},Eh.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,VS(e)?l(n,e):n[e]=i},Eh.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},Eh.prototype.setLayout=function(t,e){VS(t)?l(this._layout,t):this._layout[t]=e},Eh.prototype.getLayout=function(t){return this._layout[t]},Eh.prototype.getItemLayout=function(t){return this._itemLayouts[t]},Eh.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?l(this._itemLayouts[t]||{},e):e},Eh.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},Eh.prototype.setItemGraphicEl=function(t,e){var i,n,o,r,a=this.hostModel&&this.hostModel.seriesIndex;i=a,n=this.dataType,o=t,(a=e)&&((r=iv(a)).dataIndex=o,r.dataType=n,r.seriesIndex=i,"group"===a.type)&&a.traverse(function(t){t=iv(t),t.seriesIndex=i,t.dataIndex=o,t.dataType=n}),this._graphicEls[t]=e},Eh.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},Eh.prototype.eachItemGraphicEl=function(t,e){f(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},Eh.prototype.cloneShallow=function(t){return t=t||new Eh(this._schema||YS(this.dimensions,this._getDimInfo,this),this.hostModel),OS(t,this),t._store=this._store,t},Eh.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)))})},Eh.internalField=(kS=function(t){var e=t._invertedIndicesMap;f(e,function(i,n){var o=t._dimInfos[n],r=o.ordinalMeta,a=t._store;if(r){i=e[n]=new HS(r.categories.length);for(var s=0;s<i.length;s++)i[s]=-1;for(s=0;s<a.count();s++)i[a.get(o.storeDimIndex,s)]=s}})},DS=function(t,e,i){return Xi(t._getCategory(e,i),null)},AS=function(t,e){var i=t._idList[e];return i=null==(i=null==i&&null!=t._idDimIdx?DS(t,t._idDimIdx,e):i)?"e\0\0"+e:i},PS=function(t){return t=x(t)?t:null!=t?[t]:[]},LS=function(t){var e=new Eh(t._schema||YS(t.dimensions,t._getDimInfo,t),t.hostModel);return OS(e,t),e},OS=function(t,e){f(WS.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,f(XS,function(i){t[i]=a(e[i])}),t._calculationInfo=l({},e._calculationInfo)},void(ES=function(t,e){var i=t._nameList,n=t._idList,o=t._nameDimIdx,r=t._idDimIdx,a=i[e],s=n[e];null==a&&null!=o&&(i[e]=a=DS(t,o,e)),null==s&&null!=r&&(n[e]=s=DS(t,r,e)),null==s&&null!=a&&(s=a,1<(o=(i=t._nameRepeatCount)[a]=(i[a]||0)+1)&&(s+="__ec__"+o),n[e]=s)})),Eh),GS=function(t){this.coordSysDims=[],this.axisMap=W(),this.categoryAxisMap=W(),this.coordSysName=t},jS={cartesian2d:function(t,e,i,n){var o=t.getReferringComponents("xAxis",Oy).models[0],t=t.getReferringComponents("yAxis",Oy).models[0];e.coordSysDims=["x","y"],i.set("x",o),i.set("y",t),Nh(o)&&(n.set("x",o),e.firstCategoryDimIndex=0),Nh(t)&&(n.set("y",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},singleAxis:function(t,e,i,n){t=t.getReferringComponents("singleAxis",Oy).models[0],e.coordSysDims=["single"],i.set("single",t),Nh(t)&&(n.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var t=t.getReferringComponents("polar",Oy).models[0],o=t.findAxisModel("radiusAxis"),t=t.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",o),i.set("angle",t),Nh(o)&&(n.set("radius",o),e.firstCategoryDimIndex=0),Nh(t)&&(n.set("angle",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},geo:function(t,e,i,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){var o=t.ecModel,t=o.getComponent("parallel",t.get("parallelIndex")),r=e.coordSysDims=t.dimensions.slice();f(t.parallelAxisIndex,function(t,a){var t=o.getComponent("parallelAxis",t),s=r[a];i.set(s,t),Nh(t)&&(n.set(s,t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=a)})}};Yh.prototype.getSetting=function(t){return this._setting[t]},Yh.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},Yh.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Yh.prototype.getExtent=function(){return this._extent.slice()},Yh.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},Yh.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},Yh.prototype.isBlank=function(){return this._isBlank},Yh.prototype.setBlank=function(t){this._isBlank=t};var qS=Yh;sn(qS);var ZS=0,KS=(Hh.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&g(e,Wh);return new Hh({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},Hh.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},Hh.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},Hh.prototype._getOrCreateMap=function(){return this._map||(this._map=W(this.categories))},Hh);i($h,QS=qS),$h.prototype.parse=function(t){return b(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},$h.prototype.contain=function(t){return Zh(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},$h.prototype.normalize=function(t){return Kh(t=this._getTickNumber(this.parse(t)),this._extent)},$h.prototype.scale=function(t){return t=Math.round(Qh(t,this._extent)),this.getRawOrdinalNumber(t)},$h.prototype.getTicks=function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push({value:i}),i++;return t},$h.prototype.getMinorTicks=function(t){},$h.prototype.setSortInfo=function(t){if(null==t)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var e=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],o=0,r=this._ordinalMeta.categories.length,a=Math.min(r,e.length);o<a;++o){var s=e[o];n[i[o]=s]=o}for(var l=0;o<r;++o){for(;null!=n[l];)l++;i.push(l),n[l]=o}}},$h.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&0<=t&&t<e.length?e[t]:t},$h.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&0<=t&&t<e.length?e[t]:t},$h.prototype.getLabel=function(t){if(!this.isBlank())return t=this.getRawOrdinalNumber(t.value),null==(t=this._ordinalMeta.categories[t])?"":t+""},$h.prototype.count=function(){return this._extent[1]-this._extent[0]+1},$h.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},$h.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},$h.prototype.getOrdinalMeta=function(){return this._ordinalMeta},$h.prototype.calcNiceTicks=function(){},$h.prototype.calcNiceExtent=function(){},$h.type="ordinal";var QS,$S=$h;qS.registerClass($S);var JS,tT=bi,eT=(i(Jh,JS=qS),Jh.prototype.parse=function(t){return t},Jh.prototype.contain=function(t){return Zh(t,this._extent)},Jh.prototype.normalize=function(t){return Kh(t,this._extent)},Jh.prototype.scale=function(t){return Qh(t,this._extent)},Jh.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},Jh.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])},Jh.prototype.getInterval=function(){return this._interval},Jh.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=jh(t)},Jh.prototype.getTicks=function(t){var e=this._interval,i=this._extent,n=this._niceExtent,o=this._intervalPrecision,r=[];if(e){i[0]<n[0]&&r.push(t?{value:tT(n[0]-e,o)}:{value:i[0]});for(var a=n[0];a<=n[1]&&(r.push({value:a}),(a=tT(a+e,o))!==r[r.length-1].value);)if(1e4<r.length)return[];var s=r.length?r[r.length-1].value:n[1];i[1]>s&&r.push(t?{value:tT(s+e,o)}:{value:i[1]})}return r},Jh.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),i=[],n=this.getExtent(),o=1;o<e.length;o++){for(var r=e[o],a=e[o-1],s=0,l=[],h=(r.value-a.value)/t;s<t-1;){var u=tT(a.value+(s+1)*h);u>n[0]&&u<n[1]&&l.push(u),s++}i.push(l)}return i},Jh.prototype.getLabel=function(t,e){return null==t?"":(null==(e=e&&e.precision)?e=Si(t.value)||0:"auto"===e&&(e=this._intervalPrecision),oa(tT(t.value,e,!0)))},Jh.prototype.calcNiceTicks=function(t,e,i){t=t||5;var n=this._extent,o=n[1]-n[0];isFinite(o)&&(o<0&&n.reverse(),o=Uh(n,t,e,i),this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent)},Jh.prototype.calcNiceExtent=function(t){var e=this._extent,i=(e[0]===e[1]&&(0!==e[0]?(i=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]=tT(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=tT(Math.ceil(e[1]/i)*i))},Jh.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},Jh.type="interval",Jh);qS.registerClass(eT);var iT="undefined"!=typeof Float32Array,nT=iT?Float32Array:Array;i(ru,oT=eT),ru.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Hr(t.value,dx[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Yr(this._minLevelUnit))]||dx.second,e,this.getSetting("locale"))},ru.prototype.getFormattedLabel=function(t,e,i){var n=this.getSetting("useUTC"),o=this.getSetting("locale"),r=null;if(b(i))r=i;else if(w(i))r=i(t.value,e,{level:t.level});else{var a=l({},cx);if(0<t.level)for(var s=0;s<fx.length;++s)a[fx[s]]="{primary|"+a[fx[s]]+"}";var u=i?!1===i.inherit?i:h(i,a):a,c=Wr(t.value,n);if(u[c])r=u[c];else if(u.inherit){for(s=gx.indexOf(c)-1;0<=s;--s)if(u[c]){r=u[c];break}r=r||a.none}x(r)&&(e=null==t.level?0:0<=t.level?t.level:r.length+t.level,r=r[e=Math.min(e,r.length-1)])}return Hr(new Date(t.value),r,n,o)},ru.prototype.getTicks=function(){var t=this._interval,e=this._extent,i=[];return t&&(i.push({value:e[0],level:0}),t=this.getSetting("useUTC"),t=function(t,e,i,n){for(var o=gx,r=0,a=[],s=[],l=0,h=0,u=0;u<o.length&&r++<1e4;++u){var c=Yr(o[u]);if(function(t){return t===Yr(t)}(o[u])){!function(t,o,r){var a=[],s=!o.length;if(!function(t,e,i,n){function o(t){return Xr(c,t,n)===Xr(p,t,n)}function r(){return o("year")}function a(){return r()&&o("month")}function s(){return a()&&o("day")}function l(){return s()&&o("hour")}function h(){return l()&&o("minute")}function u(){return h()&&o("second")}var c=ki(e),p=ki(i);switch(t){case"year":return r();case"month":return a();case"day":return s();case"hour":return l();case"minute":return h();case"second":return u();case"millisecond":return u()&&o("millisecond")}}(Yr(t),n[0],n[1],i)){s&&(o=[{value:function(t,e,i){var n=new Date(t);switch(Yr(e)){case"year":case"month":n[$r(i)](0);case"day":n[Jr(i)](1);case"hour":n[ta(i)](0);case"minute":n[ea(i)](0);case"second":n[ia(i)](0),n[na(i)](0)}return n.getTime()}(new Date(n[0]),t,i)},{value:n[1]}]);for(var l,h,u=0;u<o.length-1;u++){var c=o[u].value,p=o[u+1].value;if(c!==p){var d=void 0,f=void 0,g=void 0;switch(t){case"year":d=Math.max(1,Math.round(e/ux/365)),f=Ur(i),g=i?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":h=e,d=6<(h/=30*ux)?6:3<h?3:2<h?2:1,f=Gr(i),g=$r(i);break;case"week":case"half-week":case"day":h=e,d=16<(h/=ux)?16:7.5<h?7:3.5<h?4:1.5<h?2:1,f=jr(i),g=Jr(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=qr(i),g=ta(i);break;case"minute":d=au(e,!0),f=Zr(i),g=ea(i);break;case"second":d=au(e,!1),f=Kr(i),g=ia(i);break;case"millisecond":d=Pi(e,!0),f=Qr(i),g=na(i)}T=S=b=w=x=_=v=m=y=void 0;for(var y=d,m=c,v=p,_=f,x=g,w=a,b=new Date(m),S=m,T=b[_]();S<v&&S<=n[1];)w.push({value:S}),b[x](T+=y),S=b.getTime();w.push({value:S,notAdd:!0}),"year"===t&&1<r.length&&0===u&&r.unshift({value:r[0].value-d})}}for(u=0;u<a.length;u++)r.push(a[u])}}(o[u],a[a.length-1]||[],s);if(c!==(o[u+1]?Yr(o[u+1]):null)){if(s.length){h=l,s.sort(function(t,e){return t.value-e.value});for(var p=[],d=0;d<s.length;++d){var f=s[d].value;0!==d&&s[d-1].value===f||(p.push(s[d]),f>=n[0]&&f<=n[1]&&l++)}if(1.5*(c=(n[1]-n[0])/e)<l&&c/1.5<h)break;if(a.push(p),c<l||t===o[u])break}s=[]}}}for(var y=m(g(a,function(t){return m(t,function(t){return t.value>=n[0]&&t.value<=n[1]&&!t.notAdd})}),function(t){return 0<t.length}),v=[],_=y.length-1,u=0;u<y.length;++u)for(var x=y[u],w=0;w<x.length;++w)v.push({value:x[w].value,level:_-u});v.sort(function(t,e){return t.value-e.value});for(var b=[],u=0;u<v.length;++u)0!==u&&v[u].value===v[u-1].value||b.push(v[u]);return b}(this._minLevelUnit,this._approxInterval,t,e),(i=i.concat(t)).push({value:e[1],level:0})),i},ru.prototype.calcNiceExtent=function(t){var e,i=this._extent;i[0]===i[1]&&(i[0]-=ux,i[1]+=ux),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]-ux),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},ru.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),aT.length),t=Math.min(function(t,e,i,n){for(;i<n;){var o=i+n>>>1;t[o][1]<e?i=1+o:n=o}return i}(aT,this._approxInterval,0,n),n-1);this._interval=aT[t][1],this._minLevelUnit=aT[Math.max(t-1,0)][0]},ru.prototype.parse=function(t){return T(t)?t:+ki(t)},ru.prototype.contain=function(t){return Zh(this.parse(t),this._extent)},ru.prototype.normalize=function(t){return Kh(this.parse(t),this._extent)},ru.prototype.scale=function(t){return Qh(t,this._extent)},ru.type="time";var oT,rT=ru,aT=[["second",sx],["minute",lx],["hour",hx],["quarter-day",6*hx],["half-day",12*hx],["day",1.2*ux],["half-week",3.5*ux],["week",7*ux],["month",31*ux],["quarter",95*ux],["half-year",Ny/2],["year",Ny]];qS.registerClass(rT);var sT,lT=qS.prototype,hT=eT.prototype,uT=bi,cT=Math.floor,pT=Math.ceil,dT=Math.pow,fT=Math.log,gT=(i(su,sT=qS),su.prototype.getTicks=function(t){var e=this._originalScale,i=this._extent,n=e.getExtent();return g(hT.getTicks.call(this,t),function(t){var t=t.value,e=bi(dT(this.base,t)),e=t===i[0]&&this._fixMin?lu(e,n[0]):e;return{value:t===i[1]&&this._fixMax?lu(e,n[1]):e}},this)},su.prototype.setExtent=function(t,e){var i=this.base;t=fT(t)/fT(i),e=fT(e)/fT(i),hT.setExtent.call(this,t,e)},su.prototype.getExtent=function(){var t=this.base,e=lT.getExtent.call(this);return e[0]=dT(t,e[0]),e[1]=dT(t,e[1]),t=this._originalScale.getExtent(),this._fixMin&&(e[0]=lu(e[0],t[0])),this._fixMax&&(e[1]=lu(e[1],t[1])),e},su.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=fT(t[0])/fT(e),t[1]=fT(t[1])/fT(e),lT.unionExtent.call(this,t)},su.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},su.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(i==1/0||i<=0)){var n=Ai(i);for(t/i*n<=.5&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&0<Math.abs(n);)n*=10;t=[bi(pT(e[0]/n)*n),bi(cT(e[1]/n)*n)],this._interval=n,this._niceExtent=t}},su.prototype.calcNiceExtent=function(t){hT.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},su.prototype.parse=function(t){return t},su.prototype.contain=function(t){return Zh(t=fT(t)/fT(this.base),this._extent)},su.prototype.normalize=function(t){return Kh(t=fT(t)/fT(this.base),this._extent)},su.prototype.scale=function(t){return t=Qh(t,this._extent),dT(this.base,t)},su.type="log",su);_b=gT.prototype,_b.getMinorTicks=hT.getMinorTicks,_b.getLabel=hT.getLabel,qS.registerClass(gT),hu.prototype._prepareParams=function(t,e,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var n=this._isOrdinal="ordinal"===t.type,o=(this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero(),this._modelMinRaw=e.get("min",!0)),o=(w(o)?this._modelMinNum=uu(t,o({min:i[0],max:i[1]})):"dataMin"!==o&&(this._modelMinNum=uu(t,o)),this._modelMaxRaw=e.get("max",!0));w(o)?this._modelMaxNum=uu(t,o({min:i[0],max:i[1]})):"dataMax"!==o&&(this._modelMaxNum=uu(t,o)),n?this._axisDataLen=e.getCategories().length:"boolean"==typeof(t=x(i=e.get("boundaryGap"))?i:[i||0,i||0])[0]||"boolean"==typeof t[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[li(t[0],1),li(t[1],1)]},hu.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,i=this._dataMax,n=this._axisDataLen,o=this._boundaryGapInner,r=t?null:i-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?i:this._modelMaxNum,l=null!=a,h=null!=s,e=(null==a&&(a=t?n?0:NaN:e-o[0]*r),null==s&&(s=t?n?n-1:NaN:i+o[1]*r),null!=a&&isFinite(a)||(a=NaN),null!=s&&isFinite(s)||(s=NaN),O(a)||O(s)||t&&!n),i=(this._needCrossZero&&(a=0<a&&0<s&&!l?0:a)<0&&s<0&&!h&&(s=0),this._determinedMin),o=this._determinedMax;return null!=i&&(a=i,l=!0),null!=o&&(s=o,h=!0),{min:a,max:s,minFixed:l,maxFixed:h,isBlank:e}},hu.prototype.modifyDataMinMax=function(t,e){this[vT[t]]=e},hu.prototype.setDeterminedMinMax=function(t,e){this[mT[t]]=e},hu.prototype.freeze=function(){this.frozen=!0};var yT=hu,mT={min:"_determinedMin",max:"_determinedMax"},vT={min:"_dataMin",max:"_dataMax"};_u.prototype.getNeedCrossZero=function(){return!this.option.scale},_u.prototype.getCoordSysModel=function(){};var _T=_u,bb=Object.freeze({__proto__:null,createDimensions:function(t,e){return Rh(t,e).dimensions},createList:function(t){return Vh(null,t)},createScale:function(t,e){var i=e;return(e=du(i=e instanceof J_?i:new J_(e))).setExtent(t[0],t[1]),pu(e,i),e},createSymbol:Pl,createTextStyle:function(t,e){return Dr(t,null,null,"normal"!==(e=e||{}).state)},dataStack:{isDimensionStacked:zh,enableDataStack:Bh,getStackedDimension:Fh},enableHoverEmphasis:wo,getECData:iv,getLayoutRect:fa,mixinAxisModelCommonMethods:function(t){p(t,_T)}}),xT=[],wT={registerPreprocessor:ch,registerProcessor:ph,registerPostInit:dh,registerPostUpdate:fh,registerUpdateLifecycle:gh,registerAction:yh,registerCoordinateSystem:mh,registerLayout:vh,registerVisual:_h,registerTransform:Sh,registerLoading:wh,registerMap:bh,registerImpl:function(t,e){zb[t]=e},PRIORITY:wb,ComponentModel:Dx,ComponentView:Zw,SeriesModel:qw,ChartView:$w,registerComponentModel:function(t){Dx.registerClass(t)},registerComponentView:function(t){Zw.registerClass(t)},registerSeriesModel:function(t){qw.registerClass(t)},registerChartView:function(t){$w.registerClass(t)},registerSubTypeDefaulter:function(t,e){Dx.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){_i(t,e)}},bT=1e-8,ST=[];Cu.prototype.setCenter=function(t){this._center=t},Cu.prototype.getCenter=function(){return this._center||(this._center=this.calcCenter())},Sb=Cu;var TT,CT,MT=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},IT=function(t){this.type="linestring",this.points=t},kT=(i(Mu,TT=Sb),Mu.prototype.calcCenter=function(){for(var t,e=this.geometries,i=0,n=0;n<e.length;n++){var o=e[n],r=o.exterior,r=r&&r.length;i<r&&(t=o,i=r)}if(t){for(var a=t.exterior,s=0,l=0,h=0,u=a.length,c=a[u-1][0],p=a[u-1][1],d=0;d<u;d++){var f=a[d][0],g=a[d][1],y=c*g-f*p;s+=y,l+=(c+f)*y,h+=(p+g)*y,c=f,p=g}return s?[l/s/3,h/s/3,s]:[a[0][0]||0,a[0][1]||0]}var m=this.getBoundingRect();return[m.x+m.width/2,m.y+m.height/2]},Mu.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?Tu(n.exterior,e,i,t):f(n.points,function(n){Tu(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 py(e[0],e[1],i[0]-e[0],i[1]-e[1]),t)||(this._rect=n),n},Mu.prototype.contain=function(t){var e=this.getBoundingRect(),i=this.geometries;if(e.contain(t[0],t[1]))t:for(var n=0,o=i.length;n<o;n++){var r=i[n];if("polygon"===r.type){var a=r.exterior,s=r.interiors;if(bu(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(bu(s[l],t[0],t[1]))continue t;return!0}}}return!1},Mu.prototype.transformTo=function(t,e,i,n){for(var o=this.getBoundingRect(),r=o.width/o.height,r=(i?n=n||i/r:i=r*n,new py(t,e,i,n)),a=o.calculateTransform(r),s=this.geometries,l=0;l<s.length;l++){var h=s[l];"polygon"===h.type?(Su(h.exterior,a),f(h.interiors,function(t){Su(t,a)})):f(h.points,function(t){Su(t,a)})}(o=this._rect).copy(r),this._center=[o.x+o.width/2,o.y+o.height/2]},Mu.prototype.cloneShallow=function(t){return t=new Mu(t=null==t?this.name:t,this.geometries,this._center),t._rect=this._rect,t.transformTo=null,t},Mu);i(Iu,CT=Sb),Iu.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),e=[e.x+e.width/2,e.y+e.height/2],i=Xe(ST),n=t;n&&!n.isGeoSVGGraphicRoot;)Ge(i,n.getLocalTransform(),i),n=n.parent;return Ke(i,i),at(e,e,i),e};var zy=Object.freeze({__proto__:null,MAX_SAFE_INTEGER:9007199254740991,asc:function(t){return t.sort(function(t,e){return t-e}),t},getPercentWithPrecision:function(t,e,i){if(!t[e])return 0;var n=y(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return 0;for(var o=Math.pow(10,i),i=g(t,function(t){return(isNaN(t)?0:t)/n*o*100}),r=100*o,a=g(i,function(t){return Math.floor(t)}),s=y(a,function(t,e){return t+e},0),l=g(i,function(t,e){return t-a[e]});s<r;){for(var h=Number.NEGATIVE_INFINITY,u=null,c=0,p=l.length;c<p;++c)l[c]>h&&(h=l[c],u=c);++a[u],l[u]=0,++s}return a[e]/o},getPixelPrecision:Ci,getPrecision:Si,getPrecisionSafe:Ti,isNumeric:Li,isRadianAroundZero:Ii,linearMap:xi,nice:Pi,numericToNumber:Oi,parseDate:ki,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:Ai,quantityExponent:Di,reformIntervals:function(t){t.sort(function(t,e){return function t(e,i,n){return e.interval[n]<i.interval[n]||e.interval[n]===i.interval[n]&&(e.close[n]-i.close[n]==(n?-1:1)||!n&&t(e,i,1))}(t,e,0)?-1:1});for(var e=-1/0,i=1,n=0;n<t.length;){for(var o=t[n].interval,r=t[n].close,a=0;a<2;a++)o[a]<=e&&(o[a]=e,r[a]=a?1:1-i),e=o[a],i=r[a];o[0]===o[1]&&r[0]*r[1]!=1?t.splice(n,1):n++}return t},remRadian:Mi,round:bi}),N_=Object.freeze({__proto__:null,format:Hr,parse:ki}),px=Object.freeze({__proto__:null,Arc:m_,BezierCurve:f_,BoundingRect:py,Circle:Ev,CompoundPath:__,Ellipse:Bv,Group:wy,Image:Wm,IncrementalDisplayable:_y,Line:u_,LinearGradient:b_,Polygon:n_,Polyline:a_,RadialGradient:x_,Rect:qm,Ring:t_,Sector:Qv,Text:$m,clipPointsByRect:_r,clipRectByRect:xr,createIcon:wr,extendPath:sr,extendShape:ar,getShapeClass:hr,getTransform:gr,initProps:ir,makeImage:cr,makePath:ur,mergePath:dr,registerShape:lr,resizePath:fr,updateProps:er}),Z_=Object.freeze({__proto__:null,addCommas:oa,capitalFirst:function(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)},encodeHTML:aa,formatTime:function(t,e,i){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var n=(e=ki(e))[(i=i?"getUTC":"get")+"FullYear"](),o=e[i+"Month"]()+1,r=e[i+"Date"](),a=e[i+"Hours"](),s=e[i+"Minutes"](),l=e[i+"Seconds"](),e=e[i+"Milliseconds"]();return t=t.replace("MM",Vr(o,2)).replace("M",o).replace("yyyy",n).replace("yy",n%100+"").replace("dd",Vr(r,2)).replace("d",r).replace("hh",Vr(a,2)).replace("h",a).replace("mm",Vr(s,2)).replace("m",s).replace("ss",Vr(l,2)).replace("s",l).replace("SSS",Vr(e,3))},formatTpl:ha,getTextRect:function(t,e,i,n,o,r,a,s){return new $m({style:{text:t,font:e,align:i,verticalAlign:n,padding:o,rich:r,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:ua,normalizeCssArray:yx,toCamelCase:ra,truncateText:dn}),G_=Object.freeze({__proto__:null,bind:If,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}),AT=Zi(),DT=[0,1],Q_=(Fu.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},Fu.prototype.containData=function(t){return this.scale.contain(t)},Fu.prototype.getExtent=function(){return this._extent.slice()},Fu.prototype.getPixelPrecision=function(t){return Ci(t||this.scale.getExtent(),this._extent)},Fu.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},Fu.prototype.dataToCoord=function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&Vu(i=i.slice(),n.count()),xi(t,DT,i,e)},Fu.prototype.coordToData=function(t,e){var i=this._extent,n=this.scale,n=(this.onBand&&"ordinal"===n.type&&Vu(i=i.slice(),n.count()),xi(t,i,DT,e));return this.scale.scale(n)},Fu.prototype.pointToData=function(t,e){},Fu.prototype.getTicksCoords=function(t){function e(t,e){return t=bi(t),e=bi(e),s?e<t:t<e}var i,n,o,r,a,s,l,h=(t=t||{}).tickModel||this.getTickModel(),u=g(Ou(this,h).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this),h=h.get("alignWithLabel");return i=this,n=u,h=h,t=t.clamp,l=n.length,i.onBand&&!h&&l&&(h=i.getExtent(),1===l?(n[0].coord=h[0],o=n[1]={coord:h[0]}):(a=n[l-1].tickValue-n[0].tickValue,r=(n[l-1].coord-n[0].coord)/a,f(n,function(t){t.coord-=r/2}),i=1+(a=i.scale.getExtent())[1]-n[l-1].tickValue,o={coord:n[l-1].coord+r*i},n.push(o)),s=h[0]>h[1],e(n[0].coord,h[0])&&(t?n[0].coord=h[0]:n.shift()),t&&e(h[0],n[0].coord)&&n.unshift({coord:h[0]}),e(h[1],o.coord)&&(t?o.coord=h[1]:n.pop()),t)&&e(o.coord,h[1])&&n.push({coord:h[1]}),u},Fu.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))},Fu.prototype.getViewLabels=function(){return Pu(this).labels},Fu.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},Fu.prototype.getTickModel=function(){return this.model.getModel("axisTick")},Fu.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},Fu.prototype.calculateCategoryInterval=function(){o=(i=d=this).getLabelModel();var t={axisRotate:i.getRotate?i.getRotate():i.isHorizontal&&!i.isHorizontal()?90:0,labelRotate:o.get("rotate")||0,font:o.getFont()},e=fu(d),i=(t.axisRotate-t.labelRotate)/180*Math.PI,n=(o=d.scale).getExtent(),o=o.count();if(n[1]-n[0]<1)return 0;for(var r=1,a=(40<o&&(r=Math.max(1,Math.floor(o/40))),n[0]),s=d.dataToCoord(a+1)-d.dataToCoord(a),l=Math.abs(s*Math.cos(i)),s=Math.abs(s*Math.sin(i)),h=0,u=0;a<=n[1];a+=r)var c=1.3*(p=oi(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=AT(d.model),l=d.getExtent(),d=i.lastAutoInterval,f=i.lastTickCount;return null!=d&&null!=f&&Math.abs(d-s)<=1&&Math.abs(f-o)<=1&&s<d&&i.axisExtent0===l[0]&&i.axisExtent1===l[1]?s=d:(i.lastTickCount=o,i.lastAutoInterval=s,i.axisExtent0=l[0],i.axisExtent1=l[1]),s},Fu),PT=2*Math.PI,OT=Mm.CMD,LT=["top","right","bottom","left"],ET=[],RT=new ny,NT=new ny,BT=new ny,zT=new ny,FT=new ny,VT=[],YT=new ny,HT=["align","verticalAlign","width","height","fontSize"],WT=new ty,XT=Zi(),UT=Zi(),GT=["x","y","rotation"],jT=($u.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},$u.prototype._addLabel=function(t,e,i,n,o){var r,a=n.style,s=n.__hostTarget.textConfig||{},l=n.getComputedTransform(),h=n.getBoundingRect().plain(),l=(py.applyTransform(h,h,l),l?WT.setLocalTransform(l):(WT.x=WT.y=WT.rotation=WT.originX=WT.originY=0,WT.scaleX=WT.scaleY=1),n.__hostTarget),u=(l&&(r=l.getBoundingRect().plain(),u=l.getComputedTransform(),py.applyTransform(r,r,u)),r&&l.getTextGuideLine());this._labelList.push({label:n,labelLine:u,seriesModel:i,dataIndex:t,dataType:e,layoutOption:o,computedLayoutOption:null,rect:h,hostRect:r,priority:r?r.width*r.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:u&&u.ignore,x:WT.x,y:WT.y,scaleX:WT.scaleX,scaleY:WT.scaleY,rotation:WT.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}})},$u.prototype.addLabelsOfSeries=function(t){var e=this,i=(this._chartViewList.push(t),t.__model),n=i.get("labelLayout");(w(n)||v(n).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var o=t.getTextContent(),t=iv(t);o&&!o.disableLabelLayout&&e._addLabel(t.dataIndex,t.dataType,i,o,n)})},$u.prototype.updateLayoutConfig=function(t){for(var e=t.getWidth(),i=t.getHeight(),n=0;n<this._labelList.length;n++){var o=this._labelList[n],r=o.label,a=r.__hostTarget,s=o.defaultAttr,l=void 0,l=w(o.layoutOption)?o.layoutOption(Ku(o,a)):o.layoutOption,h=(o.computedLayoutOption=l=l||{},Math.PI/180),u=(a&&a.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*h:s.attachedRot,offset:[l.dx||0,l.dy||0]}),!1);null!=l.x?(r.x=wi(l.x,e),r.setStyle("x",0),u=!0):(r.x=s.x,r.setStyle("x",s.style.x)),null!=l.y?(r.y=wi(l.y,i),r.setStyle("y",0),u=!0):(r.y=s.y,r.setStyle("y",s.style.y)),l.labelLinePoints&&(c=a.getTextGuideLine())&&(c.setShape({points:l.labelLinePoints}),u=!1),XT(r).needsUpdateLabelLine=u,r.rotation=null!=l.rotate?l.rotate*h:s.rotation,r.scaleX=s.scaleX,r.scaleY=s.scaleY;for(var c,p=0;p<HT.length;p++){var d=HT[p];r.setStyle(d,(null!=l[d]?l:s.style)[d])}l.draggable?(r.draggable=!0,r.cursor="move",a&&(c=o.seriesModel,null!=o.dataIndex&&(c=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex)),r.on("drag",function(t,e){return function(){Xu(t,e)}}(a,c.getModel("labelLine"))))):(r.off("drag"),r.cursor=s.cursor)}},$u.prototype.layout=function(t){var e=t.getWidth(),t=t.getHeight(),i=ju(this._labelList),n=m(i,function(t){return"shiftX"===t.layoutOption.moveOverlap}),o=m(i,function(t){return"shiftY"===t.layoutOption.moveOverlap});qu(n,"x","width",0,e,void 0),qu(o,"y","height",0,t,void 0),Zu(m(i,function(t){return t.layoutOption.hideOverlap}))},$u.prototype.processLabelsOverall=function(){var t=this;f(this._chartViewList,function(e){var i=e.__model,n=e.ignoreLabelLineUpdate,o=i.isAnimationEnabled();e.group.traverse(function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var r=!n,a=e.getTextContent();(r=!r&&a?XT(a).needsUpdateLabelLine:r)&&t._updateLabelLine(e,i),o&&t._animateLabels(e,i)})})},$u.prototype._updateLabelLine=function(t,e){var i=t.getTextContent(),n=iv(t),o=n.dataIndex;if(i&&null!=o){var i=e.getData(n.dataType),e=i.getItemModel(o),n={},o=i.getItemVisual(o,"style"),i=i.getVisual("drawType"),o=(n.stroke=o[i],e.getModel("labelLine")),r=t,a=function(t,e){for(var i={normal:t.getModel(e=e||"labelLine")},n=0;n<uv.length;n++){var o=uv[n];i[o]=t.getModel([o,e])}return i}(e),i=n,s=r.getTextGuideLine(),l=r.getTextContent();if(l){for(var e=a.normal,u=e.get("show"),c=l.ignore,p=0;p<cv.length;p++){var d,f=cv[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.normal)&&(d.ignore=!0):(s||(s=new a_,r.setTextGuideLine(s),y||!c&&u||Uu(s,!0,"normal",a.normal),r.stateProxy&&(s.stateProxy=r.stateProxy)),Uu(s,!1,f,g)))}s&&(h(s.style,i),s.style.fill=null,i=e.get("showAbove"),(r.textGuideLineConfig=r.textGuideLineConfig||{}).showAbove=i||!1,s.buildPath=Gu)}else s&&r.removeTextGuideLine();Xu(t,o)}},$u.prototype._animateLabels=function(t,e){var i,n,o,r,a,s=t.getTextContent(),l=t.getTextGuideLine();!s||!t.forceLabelAnimation&&(s.ignore||s.invisible||t.disableLabelAnimation||nr(t))||(r=(o=XT(s)).oldLayout,i=(n=iv(t)).dataIndex,a={x:s.x,y:s.y,rotation:s.rotation},n=e.getData(n.dataType),r?(s.attr(r),(t=t.prevStates)&&(0<=u(t,"select")&&s.attr(o.oldLayoutSelect),0<=u(t,"emphasis"))&&s.attr(o.oldLayoutEmphasis),er(s,a,e,i)):(s.attr(a),H_(s).valueAnimation||(t=E(s.style.opacity,1),s.style.opacity=0,ir(s,{style:{opacity:t}},e,i))),o.oldLayout=a,s.states.select&&(Qu(t=o.oldLayoutSelect={},a,GT),Qu(t,s.states.select,GT)),s.states.emphasis&&(Qu(t=o.oldLayoutEmphasis={},a,GT),Qu(t,s.states.emphasis,GT)),Lr(s,i,n,e,e)),!l||l.ignore||l.invisible||(r=(o=UT(l)).oldLayout,a={points:l.shape.points},r?(l.attr({shape:r}),er(l,{shape:a},e)):(l.setShape(a),l.style.strokePercent=0,ir(l,{style:{strokePercent:1}},e)),o.oldLayout=a)},$u),qT=Zi();xu(Ju),i(ec,ZT=Bf),ec.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},ec.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},ec.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},ec.prototype.setUnpainted=function(){this.__firstTimePaint=!0},ec.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=tc("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},ec.prototype.createRepaintRects=function(t,e,i,n){function o(t){if(t.isFinite()&&!t.isZero())if(0===a.length)(e=new py(0,0,0,0)).copy(t),a.push(e);else{for(var e,i=!1,n=1/0,o=0,r=0;r<a.length;++r){var u=a[r];if(u.intersect(t)){var c=new py(0,0,0,0);c.copy(u),c.union(t),a[r]=c,i=!0;break}l&&(h.copy(t),h.union(u),c=t.width*t.height,u=u.width*u.height,(u=h.width*h.height-c-u)<n)&&(n=u,o=r)}l&&(a[o].union(t),i=!0),i||((e=new py(0,0,0,0)).copy(t),a.push(e)),l=l||a.length>=s}}if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;for(var r,a=[],s=this.maxRepaintRectCount,l=!1,h=new py(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&eg||!d)?c.getPrevPaintRect():null)&&o(p),r=d&&(c.__dirty&eg||!c.__isRendered)?c.getPaintRect():null)&&o(r);for(u=this.__prevStartIndex;u<this.__prevEndIndex;++u){var c,p,d=(c=e[u]).shouldBePainted(i,n,!0,!0);!c||d&&c.__zr||!c.__isRendered||(p=c.getPrevPaintRect())&&o(p)}do{for(var f=!1,u=0;u<a.length;)if(a[u].isZero())a.splice(u,1);else{for(var g=u+1;g<a.length;)a[u].intersect(a[g])?(f=!0,a[u].union(a[g]),a.splice(g,1)):g++;u++}}while(f);return this._paintRects=a},ec.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},ec.prototype.resize=function(t,e){var i=this.dpr,n=this.dom,o=n.style,r=this.domBack;o&&(o.width=t+"px",o.height=e+"px"),n.width=t*i,n.height=e*i,r&&(r.width=t*i,r.height=e*i,1!==i)&&this.ctxBack.scale(i,i)},ec.prototype.clear=function(t,e,i){function n(t,i,n,o){var a;r.clearRect(t,i,n,o),e&&"transparent"!==e&&(a=void 0,A(e)?(a=e.__canvasGradient||Ll(r,e,{x:0,y:0,width:n,height:o}),e.__canvasGradient=a):D(e)&&(a=Hl(r,e,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}})),r.save(),r.fillStyle=a||e,r.fillRect(t,i,n,o),r.restore()),l&&(r.save(),r.globalAlpha=h,r.drawImage(p,t,i,n,o),r.restore())}var o=this.dom,r=this.ctx,a=o.width,s=o.height,l=(e=e||this.clearColor,this.motionBlur&&!t),h=this.lastFrameAlpha,u=this.dpr,c=this,p=(l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,a/u,s/u)),this.domBack);!i||l?n(0,0,a,s):i.length&&f(i,function(t){n(t.x*u,t.y*u,t.width*u,t.height*u)})};var ZT,KT=ec,QT=314159;ic.prototype.getType=function(){return"canvas"},ic.prototype.isSingleCanvas=function(){return this._singleCanvas},ic.prototype.getViewportRoot=function(){return this._domRoot},ic.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},ic.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var o=0;o<n.length;o++){var r,a=n[o],a=this._layers[a];!a.__builtin__&&a.refresh&&(r=0===o?this._backgroundColor:null,a.refresh(r))}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},ic.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},ic.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),e){for(var n,o={inHover:!0,viewWidth:this._width,viewHeight:this._height},r=0;r<e;r++){var a=t[r];a.__inHover&&(i=i||(this._hoverlayer=this.getLayer(1e5)),n||(n=i.ctx).save(),Zl(n,a,o,r===e-1))}n&&n.restore()}},ic.prototype.getHoverLayer=function(){return this.getLayer(1e5)},ic.prototype.paintOne=function(t,e){ql(t,e)},ic.prototype._paintList=function(t,e,i,n){var o,r,a;this._redrawId===n&&(i=i||!1,this._updateLayerStatus(t),o=(r=this._doPaintList(t,e,i)).finished,r=r.needsRefreshHover,this._needsManuallyCompositing&&this._compositeManually(),r&&this._paintHoverList(t),o?this.eachLayer(function(t){t.afterBrush&&t.afterBrush()}):(a=this,rg(function(){a._paintList(t,e,i,n)})))},ic.prototype._compositeManually=function(){var t=this.getLayer(QT).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)})},ic.prototype._doPaintList=function(t,e,i){for(var n=this,o=[],r=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],s=this._layers[s];s.__builtin__&&s!==this._hoverlayer&&(s.__dirty||i)&&o.push(s)}for(var l=!0,h=!1,u=this,c=0;c<o.length;c++)!function(a){function s(e){var i={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(p=y;p<d.__endIndex;p++){var o=t[p];if(o.__inHover&&(h=!0),n._doPaintEl(o,d,r,e,i,p===d.__endIndex-1),m&&15<Date.now()-v)break}i.prevElClipPaths&&f.restore()}var c,p,d=o[a],f=d.ctx,g=r&&d.createRepaintRects(t,e,u._width,u._height),y=i?d.__startIndex:d.__drawIndex,m=!i&&d.incremental&&Date.now,v=m&&Date.now(),a=d.zlevel===u._zlevelList[0]?u._backgroundColor:null;if(d.__startIndex!==d.__endIndex&&(y!==d.__startIndex||(c=t[y]).incremental&&c.notClear&&!i)||d.clear(!1,a,g),-1===y&&(console.error("For some unknown reason. drawIndex is -1"),y=d.__startIndex),g)if(0===g.length)p=d.__endIndex;else for(var _=u.dpr,x=0;x<g.length;++x){var w=g[x];f.save(),f.beginPath(),f.rect(w.x*_,w.y*_,w.width*_,w.height*_),f.clip(),s(w),f.restore()}else f.save(),s(),f.restore();d.__drawIndex=p,d.__drawIndex<d.__endIndex&&(l=!1)}(c);return af.wxa&&f(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:l,needsRefreshHover:h}},ic.prototype._doPaintEl=function(t,e,i,n,o,r){e=e.ctx,i?(i=t.getPaintRect(),(!n||i&&i.intersect(n))&&(Zl(e,t,o,r),t.setPrevPaintRect(i))):Zl(e,t,o,r)},ic.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=QT);var i=this._layers[t];return i||((i=new KT("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},ic.prototype.insertLayer=function(t,e){var i,n=this._layers,o=this._zlevelList,r=o.length,a=this._domRoot,s=null,l=-1;if(!n[t]&&(i=e)&&(i.__builtin__||"function"==typeof i.resize&&"function"==typeof i.refresh)){if(0<r&&t>o[0]){for(l=0;l<r-1&&!(o[l]<t&&o[l+1]>t);l++);s=n[o[l]]}o.splice(l+1,0,t),(n[t]=e).virtual||(s?(i=s.dom).nextSibling?a.insertBefore(e.dom,i.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.__painter=this}},ic.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var o=i[n];t.call(e,this._layers[o],o)}},ic.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var o=i[n],r=this._layers[o];r.__builtin__&&t.call(e,r,o)}},ic.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var o=i[n],r=this._layers[o];r.__builtin__||t.call(e,r,o)}},ic.prototype.getLayers=function(){return this._layers},ic.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var i=1;i<t.length;i++)if((l=t[i]).zlevel!==t[i-1].zlevel||l.incremental){this._needsManuallyCompositing=!0;break}for(var n,o=null,a=0,s=0;s<t.length;s++){var l,h=(l=t[s]).zlevel,u=void 0;n!==h&&(n=h,a=0),l.incremental?((u=this.getLayer(h+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(h+(0<a?.01:0),this._needsManuallyCompositing),u.__builtin__||r("ZLevel "+h+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==s&&(u.__dirty=!0),u.__startIndex=s,u.incremental?u.__drawIndex=-1:u.__drawIndex=s,e(s),o=u),l.__dirty&eg&&!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)})},ic.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},ic.prototype._clearLayer=function(t){t.clear()},ic.prototype.setBackgroundColor=function(t){this._backgroundColor=t,f(this._layers,function(t){t.setUnpainted()})},ic.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?s(i[t],e,!0):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var o=this._zlevelList[n];o!==t&&o!==t+.01||s(this._layers[o],i[t],!0)}}},ic.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))},ic.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot,n=(i.style.display="none",this._opts),o=this.root;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=Rl(o,0,n),e=Rl(o,1,n),i.style.display="",this._width!==t||e!==this._height){for(var r in i.style.width=t+"px",i.style.height=e+"px",this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(QT).resize(t,e)}return this},ic.prototype.clearLayer=function(t){(t=this._layers[t])&&t.clear()},ic.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},ic.prototype.getRenderedCanvas=function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[QT].dom;var e=new KT("image",this,(t=t||{}).pixelRatio||this.dpr),i=(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),e.ctx);if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,o=e.dom.height;this.eachLayer(function(t){t.__builtin__?i.drawImage(t.dom,0,0,n,o):t.renderToCanvas&&(i.save(),t.renderToCanvas(i),i.restore())})}else for(var r={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var h=a[s];Zl(i,h,r,s===l-1)}return e.dom},ic.prototype.getWidth=function(){return this._width},ic.prototype.getHeight=function(){return this._height};var $T=ic;i(nc,JT=Dx),nc.prototype.init=function(t,e,i){JT.prototype.init.call(this,t,e,i),this._sourceManager=new Yw(this),Ls(this)},nc.prototype.mergeOption=function(t,e){JT.prototype.mergeOption.call(this,t,e),Ls(this)},nc.prototype.optionUpdated=function(){this._sourceManager.dirty()},nc.prototype.getSourceManager=function(){return this._sourceManager},nc.type="dataset",nc.defaultOption={seriesLayoutBy:Wx};var JT,tC=nc;i(oc,eC=Zw),oc.type="dataset";var eC,iC=oc;xu([function(t){t.registerPainter("canvas",$T)},rc]),xu(Ju),i(ac,nC=qw),ac.prototype.getInitialData=function(t){return Vh(null,this,{useEncodeDefaulter:!0})},ac.prototype.getLegendIcon=function(t){var e=new wy,i=Pl("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1),i=(e.add(i),i.setStyle(t.lineStyle),this.getData().getVisual("symbol")),n=this.getData().getVisual("symbolRotate"),i="none"===i?"circle":i,o=.8*t.itemHeight,o=Pl(i,(t.itemWidth-o)/2,(t.itemHeight-o)/2,o,o,t.itemStyle.fill),n=(e.add(o),o.setStyle(t.itemStyle),"inherit"===t.iconRotate?n:t.iconRotate||0);return o.rotation=n*Math.PI/180,o.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<i.indexOf("empty")&&(o.style.stroke=o.style.fill,o.style.fill="#fff",o.style.lineWidth=2),e},ac.type="series.line",ac.dependencies=["grid","polar"],ac.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1};var nC,oC=ac;i(lc,rC=wy),lc.prototype._createSymbol=function(t,e,i,n,o){this.removeAll(),o=Pl(t,-1,-1,2,2,null,o),o.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),o.drift=hc,this._symbolType=t,this.add(o)},lc.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},lc.prototype.getSymbolType=function(){return this._symbolType},lc.prototype.getSymbolPath=function(){return this.childAt(0)},lc.prototype.highlight=function(){ho(this.childAt(0))},lc.prototype.downplay=function(){uo(this.childAt(0))},lc.prototype.setZ=function(t,e){var i=this.childAt(0);i.zlevel=t,i.z=e},lc.prototype.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},lc.prototype.updateData=function(t,e,i,n){this.silent=!1;var o,r,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,h=lc.getSymbolSize(t,e),u=s!==this._symbolType,c=n&&n.disableAnimation;u?(o=t.getItemVisual(e,"symbolKeepAspect"),this._createSymbol(s,t,e,h,o)):((r=this.childAt(0)).silent=!1,a={scaleX:h[0]/2,scaleY:h[1]/2},c?r.attr(a):er(r,a,l,e),P_(s=r).oldStyle=s.style),this._updateCommon(t,e,h,i,n),u&&(r=this.childAt(0),c||(a={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:r.style.opacity}},r.scaleX=r.scaleY=0,r.style.opacity=0,ir(r,a,l,e))),c&&this.childAt(0).stopAnimation("leave"),this._seriesModel=l},lc.prototype._updateCommon=function(t,e,i,n,o){var r,a,s,h,u,c,p,d,f=this.childAt(0),g=t.hostModel,y=(n&&(r=n.emphasisItemStyle,s=n.blurItemStyle,a=n.selectItemStyle,h=n.focus,u=n.blurScope,p=n.labelStatesModels,d=n.hoverScale,m=n.cursorStyle,c=n.emphasisDisabled),n&&!t.hasItemOption||(r=(y=(n=n&&n.itemModel?n.itemModel:t.getItemModel(e)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),a=n.getModel(["select","itemStyle"]).getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),h=y.get("focus"),u=y.get("blurScope"),c=y.get("disabled"),p=Ar(n),d=y.getShallow("scale"),m=n.getShallow("cursor")),t.getItemVisual(e,"symbolRotate")),n=(f.attr("rotation",(y||0)*Math.PI/180||0),Ol(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 Wm?(m=f.style,f.useStyle(l({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},y))):(f.__isEmptyBrush?f.useStyle(l({},y)):f.useStyle(y),f.style.decal=null,f.setColor(n,o&&o.symbolInnerColor),f.style.strokeNoScale=!0),t.getItemVisual(e,"liftZ")),v=this._z2,_=(null!=m?null==v&&(this._z2=f.z2,f.z2+=m):null!=v&&(f.z2=v,this._z2=null),o&&o.useNameLabel);kr(f,p,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return _?t.getName(e):sc(t,e)},inheritColor:n,defaultOpacity:y.opacity}),this._sizeX=i[0]/2,this._sizeY=i[1]/2,m=f.ensureState("emphasis"),m.style=r,f.ensureState("select").style=a,f.ensureState("blur").style=s,d&&(v=Math.max(1.1,3/this._sizeY),m.scaleX=this._sizeX*v,m.scaleY=this._sizeY*v),this.setSymbolScale(1),bo(this,h,u,c)},lc.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},lc.prototype.fadeOut=function(t,e){var i=this.childAt(0),n=this._seriesModel,o=iv(this).dataIndex,r=e&&e.animation;this.silent=i.silent=!0,e&&e.fadeLabel?(e=i.getTextContent())&&or(e,{style:{opacity:0}},n,{dataIndex:o,removeOpt:r,cb:function(){i.removeTextContent()}}):i.removeTextContent(),or(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:t,removeOpt:r})},lc.getSymbolSize=function(t,e){return[(t=x(t=t.getItemVisual(e,"symbolSize"))?t:[+t,+t])[0]||0,t[1]||0]};var rC,aC=lc;dc.prototype.updateData=function(t,e){this._progressiveEls=null,e=cc(e);var i=this.group,n=t.hostModel,o=this._data,r=this._SymbolCtor,a=e.disableAnimation,s=pc(t),l={disableAnimation:a},h=e.getSymbolPoint||function(e){return t.getItemLayout(e)};o||i.removeAll(),t.diff(o).add(function(n){var o,a=h(n);uc(t,a,n,e)&&((o=new r(t,n,s,l)).setPosition(a),t.setItemGraphicEl(n,o),i.add(o))}).update(function(u,c){var p,d,c=o.getItemGraphicEl(c),f=h(u);uc(t,f,u,e)?(p=t.getItemVisual(u,"symbol")||"circle",d=c&&c.getSymbolType&&c.getSymbolType(),!c||d&&d!==p?(i.remove(c),(c=new r(t,u,s,l)).setPosition(f)):(c.updateData(t,u,s,l),d={x:f[0],y:f[1]},a?c.attr(d):er(c,d,n)),i.add(c),t.setItemGraphicEl(u,c)):i.remove(c)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&e.fadeOut(function(){i.remove(e)})}).execute(),this._getSymbolPoint=h,this._data=t},dc.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,i){i=t._getSymbolPoint(i),e.setPosition(i),e.markRedraw()})},dc.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=pc(t),this._data=null,this.group.removeAll()},dc.prototype.incrementalUpdate=function(t,e,i){function n(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],i=cc(i);for(var o=t.start;o<t.end;o++){var r,a=e.getItemLayout(o);uc(e,a,o,i)&&((r=new this._SymbolCtor(e,o,this._seriesScope)).traverse(n),r.setPosition(a),this.group.add(r),e.setItemGraphicEl(o,r),this._progressiveEls.push(r))}},dc.prototype.eachRendered=function(t){Cr(this._progressiveEls||this.group,t)},dc.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll()};var sC,lC=dc,hC=Math.min,uC=Math.max,cC=function(){this.smooth=0,this.smoothConstraint=!0},pC=(i(vc,sC=Bm),vc.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},vc.prototype.getDefaultShape=function(){return new cC},vc.prototype.buildPath=function(t,e){var i=e.points,n=0,o=i.length/2;if(e.connectNulls){for(;0<o&&yc(i[2*o-2],i[2*o-1]);o--);for(;n<o&&yc(i[2*n],i[2*n+1]);n++);}for(;n<o;)n+=mc(t,i,n,o,o,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},vc.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i,n,o=this.path.data,r=Mm.CMD,a="x"===e,s=[],l=0;l<o.length;){var h=void 0,u=void 0;switch(o[l++]){case r.M:i=o[l++],n=o[l++];break;case r.L:var c,h=o[l++],u=o[l++];if((c=a?(t-i)/(h-i):(t-n)/(u-n))<=1&&0<=c)return v=a?(u-n)*c+n:(h-i)*c+i,a?[t,v]:[v,t];i=h,n=u;break;case r.C:h=o[l++],u=o[l++];var p=o[l++],d=o[l++],f=o[l++],g=o[l++],y=a?zt(i,h,p,f,t,s):zt(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?Nt(n,u,d,g,_):Nt(i,h,p,f,_),a?[t,v]:[v,t]}i=f,n=g}}},vc);i(_c,dC=cC);var dC,fC=_c;i(xc,gC=Bm),xc.prototype.getDefaultShape=function(){return new fC},xc.prototype.buildPath=function(t,e){var i=e.points,n=e.stackedOnPoints,o=0,r=i.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;0<r&&yc(i[2*r-2],i[2*r-1]);r--);for(;o<r&&yc(i[2*o],i[2*o+1]);o++);}for(;o<r;){var s=mc(t,i,o,r,r,1,e.smooth,a,e.connectNulls);mc(t,n,o+s-1,s,r,-1,e.stackedOnSmooth,a,e.connectNulls),o+=s+1,t.closePath()}};var gC,yC=xc;i(Oc,mC=$w),Oc.prototype.init=function(){var t=new wy,e=new lC;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},Oc.prototype.render=function(t,e,i){function n(t){o._changePolyState(t)}var o=this,r=t.coordinateSystem,a=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),c=s.getLayout("points")||[],p="polar"===r.type,d=this._coordSys,f=this._symbolDraw,g=this._polyline,y=this._polygon,m=this._lineGroup,v=t.get("animation"),_=!u.isEmpty(),x=u.get("origin"),w=fc(r,s,x),w=_&&function(t,e,i){if(!i.valueDim)return[];for(var n=e.count(),o=tu(2*n),r=0;r<n;r++){var a=gc(i,t,e,r);o[2*r]=a[0],o[2*r+1]=a[1]}return o}(r,s,w),b=t.get("showSymbol"),S=b&&!p&&Ic(t,s,r),T=this._data,C=(T&&T.eachItemGraphicEl(function(t,e){t.__temp&&(a.remove(t),T.setItemGraphicEl(e,null))}),b||f.remove(),a.add(m),!p&&t.get("step")),M=(r&&r.getArea&&t.get("clip",!0)&&(null!=(I=r.getArea()).width?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I,Mc(s,r,i)||s.getVisual("style")[s.getVisual("drawType")]),d=(g&&d.type===r.type&&C===this._step?(_&&!y?y=this._newPolygon(c,w):y&&!_&&(m.remove(y),y=this._polygon=null),p||this._initOrUpdateEndLabel(t,r,ca(M)),(d=m.getClipPath())?ir(d,{shape:Pc(this,r,!1,t).shape},t):m.setClipPath(Pc(this,r,!0,t)),b&&f.updateData(s,{isIgnore:S,clipShape:I,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),wc(this._stackedOnPoints,w)&&wc(this._points,c)||(v?this._doUpdateAnimation(s,w,r,i,C,x):(C&&(c=Cc(c,r,C),w=w&&Cc(w,r,C)),g.setShape({points:c}),y&&y.setShape({points:c,stackedOnPoints:w})))):(b&&f.updateData(s,{isIgnore:S,clipShape:I,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),v&&this._initSymbolLabelAnimation(s,r,I),C&&(c=Cc(c,r,C),w=w&&Cc(w,r,C)),g=this._newPolyline(c),_&&(y=this._newPolygon(c,w)),p||this._initOrUpdateEndLabel(t,r,ca(M)),m.setClipPath(Pc(this,r,!0,t))),t.getModel("emphasis")),i=d.get("focus"),b=d.get("blurScope"),f=d.get("disabled"),S=(g.useStyle(h(l.getLineStyle(),{fill:"none",stroke:M,lineJoin:"bevel"})),So(g,t,"lineStyle"),0<g.style.lineWidth&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(g.getState("emphasis").style.lineWidth=+g.style.lineWidth+1),iv(g).seriesIndex=t.seriesIndex,bo(g,i,b,f),Tc(t.get("smooth"))),v=t.get("smoothMonotone"),I=t.get("connectNulls");g.setShape({smooth:S,smoothMonotone:v,connectNulls:I}),y&&(_=s.getCalculationInfo("stackedOnSeries"),p=0,y.useStyle(h(u.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),_&&(p=Tc(_.get("smooth"))),y.setShape({smooth:S,stackedOnSmooth:p,smoothMonotone:v,connectNulls:I}),So(y,t,"areaStyle"),iv(y).seriesIndex=t.seriesIndex,bo(y,i,b,f)),s.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=n)}),this._polyline.onHoverStateChange=n,this._data=s,this._coordSys=r,this._stackedOnPoints=w,this._points=c,this._step=C,this._valueOrigin=x,t.get("triggerLineEvent")&&(this.packEventData(t,g),y)&&this.packEventData(t,y)},Oc.prototype.packEventData=function(t,e){iv(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},Oc.prototype.highlight=function(t,e,i,n){var o=t.getData(),r=qi(o,n);if(this._changePolyState("emphasis"),!(r instanceof Array)&&null!=r&&0<=r){var a=o.getLayout("points");if(!(l=o.getItemGraphicEl(r))){var s=a[2*r],a=a[2*r+1];if(isNaN(s)||isNaN(a))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s,a))return;var l,h=t.get("zlevel"),u=t.get("z"),s=((l=new aC(o,r)).x=s,l.y=a,l.setZ(h,u),l.getSymbolPath().getTextContent());s&&(s.zlevel=h,s.z=u,s.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(r,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else $w.prototype.highlight.call(this,t,e,i,n)},Oc.prototype.downplay=function(t,e,i,n){var o,r=t.getData(),a=qi(r,n);this._changePolyState("normal"),null!=a&&0<=a?(o=r.getItemGraphicEl(a))&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay()):$w.prototype.downplay.call(this,t,e,i,n)},Oc.prototype._changePolyState=function(t){var e=this._polygon;no(this._polyline,t),e&&no(e,t)},Oc.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new pC({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e},Oc.prototype._newPolygon=function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new yC({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i},Oc.prototype._initSymbolLabelAnimation=function(t,e,i){var n,o,r=e.getBaseAxis(),a=r.inverse,r=("cartesian2d"===e.type?(n=r.isHorizontal(),o=!1):"polar"===e.type&&(n="angle"===r.dim,o=!0),t.hostModel),s=r.get("animationDuration"),l=(w(s)&&(s=s(null)),r.get("animationDelay")||0),h=w(l)?l(null):l;t.eachItemGraphicEl(function(t,r){var u,c,p,d,f,g=t;g&&(d=[t.x,t.y],f=c=u=void 0,i&&(f=o?(p=i,d=e.pointToCoord(d),n?(u=p.startAngle,c=p.endAngle,-d[1]/180*Math.PI):(u=p.r0,c=p.r,d[0])):n?(u=i.x,c=i.x+i.width,t.x):(u=i.y+i.height,c=i.y,t.y)),p=c===u?0:(f-u)/(c-u),a&&(p=1-p),d=w(l)?l(r):s*p+h,f=(t=g.getSymbolPath()).getTextContent(),g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:d}),f&&f.animateFrom({style:{opacity:0}},{duration:300,delay:d}),t.disableLabelAnimation=!0)})},Oc.prototype._initOrUpdateEndLabel=function(t,e,i){var n,o,r,a=t.getModel("endLabel");Dc(t)?(n=t.getData(),o=this._polyline,(r=n.getLayout("points"))?(this._endLabel||((this._endLabel=new $m({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0),0<=(r=kc(r))&&(kr(o,Ar(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:r,defaultText:function(t,e,i){if(null==i)return sc(n,t);var o=n,r=i,a=o.mapDimensionsAll("defaultedLabel");if(!x(r))return r+"";for(var s=[],l=0;l<a.length;l++){var h=o.getDimensionIndex(a[l]);0<=h&&s.push(r[h])}return s.join(" ")},enableTextSetter:!0},(i=a,r=(t=(t=e).getBaseAxis()).isHorizontal(),t=t.inverse,a=r?t?"right":"left":"center",r=r?"middle":t?"top":"bottom",{normal:{align:i.get("align")||a,verticalAlign:i.get("verticalAlign")||r}})),o.textConfig.position=null)):(o.removeTextContent(),this._endLabel=null)):this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},Oc.prototype._endLabelOnDuring=function(t,e,i,n,o,r,a){var s,l,h,u,c,p,d,f,g,y,m=this._endLabel,v=this._polyline;m&&(t<1&&null==n.originalX&&(n.originalX=m.x,n.originalY=m.y),s=i.getLayout("points"),g=(l=i.hostModel).get("connectNulls"),h=r.get("precision"),r=r.get("distance")||0,c=(a=a.getBaseAxis()).isHorizontal(),a=a.inverse,e=e.shape,u=(c?r:0)*(a?-1:1),r=(c?0:-r)*(a?-1:1),d=void 0,1<=(f=(p=(c=function(t,e,i){for(var n,o,r=t.length/2,a="x"===i?0:1,s=0,l=-1,h=0;h<r;h++)if(o=t[2*h+a],!isNaN(o)&&!isNaN(t[2*h+1-a])){if(0!==h){if(n<=e&&e<=o||e<=n&&o<=e){l=h;break}s=h}n=o}return{range:[s,l],t:(e-n)/(o-n)}}(s,a=a?c?e.x:e.y+e.height:c?e.x+e.width:e.y,e=c?"x":"y")).range)[1]-p[0])?(1<f&&!g?(y=Ac(s,p[0]),m.attr({x:y[0]+u,y:y[1]+r}),o&&(d=l.getRawValue(p[0]))):((y=v.getPointOn(a,e))&&m.attr({x:y[0]+u,y:y[1]+r}),f=l.getRawValue(p[0]),g=l.getRawValue(p[1]),o&&(d=tn(i,h,f,g,c.t))),n.lastFrameIndex=p[0]):(y=Ac(s,v=1===t||0<n.lastFrameIndex?p[0]:0),o&&(d=l.getRawValue(v)),m.attr({x:y[0]+u,y:y[1]+r})),o)&&H_(m).setLabelText(d)},Oc.prototype._doUpdateAnimation=function(t,e,i,n,o,r){var a=this._polyline,s=this._polygon,l=t.hostModel,e=function(t,e,i,n,o,r){a=[],e.diff(t).add(function(t){a.push({cmd:"+",idx:t})}).update(function(t,e){a.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){a.push({cmd:"-",idx:t})}).execute();for(var a,s=a,l=[],h=[],u=[],c=[],p=[],d=[],f=[],g=fc(o,e,r),y=t.getLayout("points")||[],m=e.getLayout("points")||[],v=0;v<s.length;v++){var _=s[v],x=!0,w=void 0;switch(_.cmd){case"=":var b=2*_.idx,w=2*_.idx1,S=y[b],T=y[1+b],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=o.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=gc(g,o,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=tu(r=l.length),k=tu(r),A=tu(r),D=tu(r),P=[],v=0;v<d.length;v++){var O=d[v],L=2*v,E=2*O;I[L]=l[E],I[1+L]=l[1+E],k[L]=h[E],k[1+L]=h[1+E],A[L]=u[E],A[1+L]=u[1+E],D[L]=c[E],D[1+L]=c[1+E],P[v]=p[O]}return{current:I,next:k,stackedOnCurrent:A,stackedOnNext:D,status:P}}(this._data,t,this._stackedOnPoints,e,this._coordSys,this._valueOrigin),h=e.current,u=e.stackedOnCurrent,c=e.next,p=e.stackedOnNext;if(o&&(h=Cc(e.current,i,o),u=Cc(e.stackedOnCurrent,i,o),c=Cc(e.next,i,o),p=Cc(e.stackedOnNext,i,o)),3e3<Sc(h,c)||s&&3e3<Sc(u,p))a.stopAnimation(),a.setShape({points:c}),s&&(s.stopAnimation(),s.setShape({points:c,stackedOnPoints:p}));else{a.shape.__points=e.current,a.shape.points=h;for(var d,i={shape:{points:c}},f=(e.current!==h&&(i.shape.__points=e.next),a.stopAnimation(),er(a,i,l),s&&(s.setShape({points:h,stackedOnPoints:u}),s.stopAnimation(),er(s,{shape:{stackedOnPoints:p}},l),a.shape.points!==s.shape.points)&&(s.shape.points=a.shape.points),[]),g=e.status,y=0;y<g.length;y++)"="===g[y].cmd&&(d=t.getItemGraphicEl(g[y].idx1))&&f.push({el:d,ptIdx:y});a.animators&&a.animators.length&&a.animators[0].during(function(){s&&s.dirtyShape();for(var t=a.shape.__points,e=0;e<f.length;e++){var i=f[e].el,n=2*f[e].ptIdx;i.x=t[n],i.y=t[1+n],i.markRedraw()}})}},Oc.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},Oc.type="line";var mC,vC=Oc,_C={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},nearest:function(t){return t[0]}},xC=function(t){return Math.round(t.length/2)};xu(function(t){var e;t.registerChartView(vC),t.registerSeriesModel(oC),t.registerLayout((e=!0,{seriesType:"line",plan:ol(),reset:function(t){var i,n,o,r,a,s=t.getData(),l=t.coordinateSystem,t=t.pipelineContext,h=e||t.large;if(l)return t=g(l.dimensions,function(t){return s.mapDimension(t)}).slice(0,2),i=t.length,n=s.getCalculationInfo("stackResultDimension"),zh(s,t[0])&&(t[0]=n),zh(s,t[1])&&(t[1]=n),o=s.getStore(),r=s.getDimensionIndex(t[0]),a=s.getDimensionIndex(t[1]),i&&{progress:function(t,e){for(var n=t.end-t.start,s=h&&tu(n*i),u=[],c=[],p=t.start,d=0;p<t.end;p++){var f,g=void 0;g=1===i?(f=o.get(r,p),l.dataToPoint(f,null,c)):(u[0]=o.get(r,p),u[1]=o.get(a,p),l.dataToPoint(u,null,c)),h?(s[d++]=g[0],s[d++]=g[1]):e.setItemLayout(p,g.slice())}h&&e.setLayout("points",s)}}}})),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),t=t.getModel("lineStyle").getLineStyle();t&&!t.stroke&&(t.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",t)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{seriesType:"line",reset:function(t,e,i){var n,o=t.getData(),r=t.get("sampling"),a=t.coordinateSystem,s=o.count();10<s&&"cartesian2d"===a.type&&r&&(n=a.getBaseAxis(),a=a.getOtherAxis(n),n=n.getExtent(),i=i.getDevicePixelRatio(),n=Math.abs(n[1]-n[0])*(i||1),1<(i=Math.round(s/n)))&&("lttb"===r&&t.setData(o.lttbDownSample(o.mapDimension(a.dim),1/i)),s=void 0,b(r)?s=_C[r]:w(r)&&(s=r),s)&&t.setData(o.downSample(o.mapDimension(a.dim),1/i,s,xC))}})}),i(Lc,wC=Dx),Lc.type="grid",Lc.dependencies=["xAxis","yAxis"],Lc.layoutMode="box",Lc.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"};var wC,bC=Lc;i(Ec,SC=Dx),Ec.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Oy).models[0]},Ec.type="cartesian2dAxis";var SC,TC=Ec;p(TC,_T);var q_={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Ny=s({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},q_),_b=s({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},q_),CC={category:Ny,value:_b,time:s({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},_b),log:h({logBase:10},_b)},MC={value:1,category:1,time:1,log:1};Bc.prototype.getAxis=function(t){return this._axes[t]},Bc.prototype.getAxes=function(){return g(this._dimList,function(t){return this._axes[t]},this)},Bc.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),m(this.getAxes(),function(e){return e.scale.type===t})},Bc.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)};var IC=["x","y"];i(Fc,kC=Bc),Fc.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,i,n,o=this.getAxis("x").scale,r=this.getAxis("y").scale;zc(o)&&zc(r)&&(o=o.getExtent(),r=r.getExtent(),n=this.dataToPoint([o[0],r[0]]),e=this.dataToPoint([o[1],r[1]]),t=o[1]-o[0],i=r[1]-r[0],t)&&i&&(t=(e[0]-n[0])/t,e=(e[1]-n[1])/i,i=n[0]-o[0]*t,o=n[1]-r[0]*e,n=this._transform=[t,0,0,e,i,o],this._invTransform=Ke([],n))},Fc.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},Fc.prototype.containPoint=function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},Fc.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},Fc.prototype.dataToPoint=function(t,e,i){i=i||[];var n,o=t[0],r=t[1];return this._transform&&null!=o&&isFinite(o)&&null!=r&&isFinite(r)?at(i,t,this._transform):(t=this.getAxis("x"),n=this.getAxis("y"),i[0]=t.toGlobalCoord(t.dataToCoord(o,e)),i[1]=n.toGlobalCoord(n.dataToCoord(r,e)),i)},Fc.prototype.clampData=function(t,e){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,o=i.getExtent(),r=n.getExtent(),i=i.parse(t[0]),n=n.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(o[0],o[1]),i),Math.max(o[0],o[1])),e[1]=Math.min(Math.max(Math.min(r[0],r[1]),n),Math.max(r[0],r[1])),e},Fc.prototype.pointToData=function(t,e){var i,n,o=[];return this._invTransform?at(o,t,this._invTransform):(i=this.getAxis("x"),n=this.getAxis("y"),o[0]=i.coordToData(i.toLocalCoord(t[0]),e),o[1]=n.coordToData(n.toLocalCoord(t[1]),e),o)},Fc.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},Fc.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1]),n=Math.min(e[0],e[1]),t=Math.max(t[0],t[1])-i,e=Math.max(e[0],e[1])-n;return new py(i,n,t,e)};var kC,AC=Fc;i(Vc,DC=Q_),Vc.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},Vc.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},Vc.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},Vc.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var DC,PC=Vc,OC=Math.log;Xc.prototype.getRect=function(){return this._rect},Xc.prototype.update=function(t,e){function i(t){var e,i=v(t),n=i.length;if(n){for(var o=[],r=n-1;0<=r;r--){var a=t[+i[r]],s=a.model,l=a.scale;Xh(l)&&s.get("alignTicks")&&null==s.get("interval")?o.push(a):(pu(l,s),Xh(l)&&(e=a))}o.length&&(e||pu((e=o.pop()).scale,e.model),f(o,function(t){var i=t.scale,t=t.model,n=e.scale,o=eT.prototype,r=o.getTicks.call(n),a=o.getTicks.call(n,!0),s=r.length-1,n=o.getInterval.call(n),l=(t=cu(i,t)).extent,h=t.fixMin,t=t.fixMax,u=("log"===i.type&&(u=OC(i.base),l=[OC(l[0])/u,OC(l[1])/u]),i.setExtent(l[0],l[1]),i.calcNiceExtent({splitNumber:s,fixMin:h,fixMax:t}),o.getExtent.call(i)),c=(h&&(l[0]=u[0]),t&&(l[1]=u[1]),o.getInterval.call(i)),p=l[0],d=l[1];if(h&&t)c=(d-p)/s;else if(h)for(d=l[0]+c*s;d<l[1]&&isFinite(d)&&isFinite(l[1]);)c=Gh(c),d=l[0]+c*s;else if(t)for(p=l[1]-c*s;p>l[0]&&isFinite(p)&&isFinite(l[0]);)c=Gh(c),p=l[1]-c*s;else u=(c=s<i.getTicks().length-1?Gh(c):c)*s,(p=bi((d=Math.ceil(l[1]/c)*c)-u))<0&&0<=l[0]?(p=0,d=bi(u)):0<d&&l[1]<=0&&(d=0,p=-bi(u));h=(r[0].value-a[0].value)/n,t=(r[s].value-a[s].value)/n,o.setExtent.call(i,p+c*h,d+c*t),o.setInterval.call(i,c),(h||t)&&o.setNiceExtent.call(i,p+c,d-c)}))}}var n=this._axesMap;this._updateScale(t,this.model),i(n.x),i(n.y);var o={};f(n.x,function(t){Gc(n,"y",t,o)}),f(n.y,function(t){Gc(n,"x",t,o)}),this.resize(this.model,e)},Xc.prototype.resize=function(t,e,i){function n(){f(a,function(t){var e,i,n=t.isHorizontal(),o=n?[0,r.width]:[0,r.height],a=t.inverse?1:0;t.setExtent(o[a],o[1-a]),o=t,e=n?r.x:r.y,a=o.getExtent(),i=a[0]+a[1],o.toGlobalCoord="x"===o.dim?function(t){return t+e}:function(t){return i-t+e},o.toLocalCoord="x"===o.dim?function(t){return t-e}:function(t){return i-t+e}})}var o=t.getBoxLayoutParams(),i=!i&&t.get("containLabel"),r=fa(o,{width:e.getWidth(),height:e.getHeight()}),a=(this._rect=r,this._axesList);n(),i&&(f(a,function(t){var e,i,n;t.model.get(["axisLabel","inside"])||(e=yu(t))&&(i=t.isHorizontal()?"height":"width",n=t.model.get(["axisLabel","margin"]),r[i]-=e[i]+n,"top"===t.position?r.y+=e.height+n:"left"===t.position&&(r.x+=e.width+n))}),n()),f(this._coordsList,function(t){t.calcAffineTransform()})},Xc.prototype.getAxis=function(t,e){if(null!=(t=this._axesMap[t]))return t[e||0]},Xc.prototype.getAxes=function(){return this._axesList.slice()},Xc.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]},Xc.prototype.getCartesians=function(){return this._coordsList.slice()},Xc.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},Xc.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},Xc.prototype._findConvertTarget=function(t){var e,i,n=t.seriesModel,o=t.xAxisModel||n&&n.getReferringComponents("xAxis",Oy).models[0],r=t.yAxisModel||n&&n.getReferringComponents("yAxis",Oy).models[0],t=t.gridModel,a=this._coordsList;return n?u(a,e=n.coordinateSystem)<0&&(e=null):o&&r?e=this.getCartesian(o.componentIndex,r.componentIndex):o?i=this.getAxis("x",o.componentIndex):r?i=this.getAxis("y",r.componentIndex):t&&t.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:i}},Xc.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},Xc.prototype._initCartesian=function(t,e,i){function n(e){return function(i,n){var o,h;Uc(i,t)&&(o=i.get("position"),"x"===e?"top"!==o&&"bottom"!==o&&(o=a.bottom?"top":"bottom"):"left"!==o&&"right"!==o&&(o=a.left?"right":"left"),a[o]=!0,h="category"===(o=new PC(e,du(i),[0,0],i.get("type"),o)).type,o.onBand=h&&i.get("boundaryGap"),o.inverse=i.get("inverse"),(i.axis=o).model=i,o.grid=r,o.index=n,r._axesList.push(o),s[e][n]=o,l[e]++)}}var o=this,r=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};e.eachComponent("xAxis",n("x"),this),e.eachComponent("yAxis",n("y"),this),l.x&&l.y?f((this._axesMap=s).x,function(e,i){f(s.y,function(n,r){var r="x"+i+"y"+r,a=new AC(r);a.master=o,a.model=t,o._coordsMap[r]=a,o._coordsList.push(a),a.addAxis(e),a.addAxis(n)})}):(this._axesMap={},this._axesList=[])},Xc.prototype._updateScale=function(t,e){function i(t,e){var i,n,o;f((i=t,n=e.dim,o={},f(i.mapDimensionsAll(n),function(t){o[Fh(i,t)]=!0}),v(o)),function(i){e.scale.unionExtentFromData(t,i)})}f(this._axesList,function(t){var e;t.scale.setExtent(1/0,-1/0),"category"===t.type&&(e=t.model.get("categorySortInfo"),t.scale.setSortInfo(e))}),t.eachSeries(function(t){var n,o;Hc(t)&&(o=(n=Wc(t)).xAxisModel,n=n.yAxisModel,Uc(o,e))&&Uc(n,e)&&(o=this.getCartesian(o.componentIndex,n.componentIndex),n=t.getData(),t=o.getAxis("x"),o=o.getAxis("y"),i(n,t),i(n,o))},this)},Xc.prototype.getTooltipAxes=function(t){var e=[],i=[];return f(this.getCartesians(),function(n){var o=null!=t&&"auto"!==t?n.getAxis(t):n.getBaseAxis(),n=n.getOtherAxis(o);u(e,o)<0&&e.push(o),u(i,n)<0&&i.push(n)}),{baseAxes:e,otherAxes:i}},Xc.create=function(t,e){var i=[];return t.eachComponent("grid",function(n,o){var r=new Xc(n,t,e);r.name="grid_"+o,r.resize(n,e,!0),n.coordinateSystem=r,i.push(r)}),t.eachSeries(function(t){var e,i,n;Hc(t)&&(e=(i=Wc(t)).xAxisModel,i=i.yAxisModel,n=e.getCoordSysModel().coordinateSystem,t.coordinateSystem=n.getCartesian(e.componentIndex,i.componentIndex))}),i},Xc.dimensions=IC;var LC,EC,RC,NC=Xc,BC=Math.PI,zC=(qc.prototype.hasBuilder=function(t){return!!FC[t]},qc.prototype.add=function(t){FC[t](this.opt,this.axisModel,this.group,this._transformGroup)},qc.prototype.getGroup=function(){return this.group},qc.innerTextLayout=function(t,e,i){var n,e=Mi(e-t),t=Ii(e)?(n=0<i?"top":"bottom","center"):Ii(e-BC)?(n=0<i?"bottom":"top","center"):(n="middle",0<e&&e<BC?0<i?"right":"left":0<i?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:n}},qc.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},qc.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},qc),FC={axisLine:function(t,e,i,n){var o,r,a,s,h,u=e.get(["axisLine","show"]);(u="auto"===u&&t.handleAutoShown?t.handleAutoShown("axisLine"):u)&&(u=e.axis.getExtent(),n=n.transform,o=[u[0],0],u=[u[1],0],n&&(at(o,o,n),at(u,u,n)),r=l({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),(n=new u_({subPixelOptimize:!0,shape:{x1:o[0],y1:o[1],x2:u[0],y2:u[1]},style:r,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})).anid="line",i.add(n),null!=(a=e.get(["axisLine","symbol"])))&&(n=e.get(["axisLine","symbolSize"]),b(a)&&(a=[a,a]),(b(n)||T(n))&&(n=[n,n]),e=Ol(e.get(["axisLine","symbolOffset"])||0,n),s=n[0],h=n[1],f([{rotate:t.rotation+Math.PI/2,offset:e[0],r:0},{rotate:t.rotation-Math.PI/2,offset:e[1],r:Math.sqrt((o[0]-u[0])*(o[0]-u[0])+(o[1]-u[1])*(o[1]-u[1]))}],function(e,n){var l;"none"!==a[n]&&null!=a[n]&&(n=Pl(a[n],-s/2,-h/2,s,h,r.stroke,!0),l=e.r+e.offset,n.attr({rotation:e.rotate,x:o[0]+l*Math.cos(t.rotation),y:o[1]-l*Math.sin(t.rotation),silent:!0,z2:11}),i.add(n))}))},axisTickLabel:function(t,e,i,n){var o,r,a,s,l,u=function(t,e,i,n){var o=i.axis,r=i.getModel("axisTick"),a=r.get("show");if("auto"===a&&n.handleAutoShown&&(a=n.handleAutoShown("axisTick")),a&&!o.scale.isBlank()){for(var a=r.getModel("lineStyle"),n=n.tickDirection*r.get("length"),s=$c(o.getTicksCoords(),e.transform,n,h(a.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),l=0;l<s.length;l++)t.add(s[l]);return s}}(i,n,e,t),c=function(t,e,i,n){var o,r,a,s,l,h,u,c,p=i.axis,d=L(n.axisLabelShow,i.get(["axisLabel","show"]));if(d&&!p.scale.isBlank())return o=i.getModel("axisLabel"),r=o.get("margin"),d=p.getViewLabels(),a=(L(n.labelRotate,o.get("rotate"))||0)*BC/180,s=zC.innerTextLayout(n.rotation,a,n.labelDirection),l=i.getCategories&&i.getCategories(!0),h=[],u=zC.isLabelSilent(i),c=i.get("triggerEvent"),f(d,function(a,d){var f="ordinal"===p.scale.type?p.scale.getRawOrdinalNumber(a.tickValue):a.tickValue,g=a.formattedLabel,y=a.rawLabel,m=o,v=(m=l&&l[f]&&C(v=l[f])&&v.textStyle?new J_(v.textStyle,o,i.ecModel):m).getTextColor()||i.get(["axisLine","lineStyle","color"]),_=p.dataToCoord(f),_=new $m({x:_,y:n.labelOffset+n.labelDirection*r,rotation:s.rotation,silent:u,z2:10+(a.level||0),style:Dr(m,{text:g,align:m.getShallow("align",!0)||s.textAlign,verticalAlign:m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||s.textVerticalAlign,fill:w(v)?v("category"===p.type?y:"value"===p.type?f+"":f,d):v})});_.anid="label_"+f,c&&((a=zC.makeAxisEventDataBase(i)).targetType="axisLabel",a.value=y,iv(_).eventData=a),e.add(_),_.updateTransform(),h.push(_),t.add(_),_.decomposeTransform()}),h}(i,n,e,t),p=(r=c,u=u,vu((o=e).axis)||(y=o.get(["axisLabel","showMinLabel"]),o=o.get(["axisLabel","showMaxLabel"]),u=u||[],_=(r=r||[])[0],m=r[1],a=r[r.length-1],r=r[r.length-2],s=u[0],v=u[1],l=u[u.length-1],u=u[u.length-2],!1===y?(Zc(_),Zc(s)):Kc(_,m)&&(y?(Zc(m),Zc(v)):(Zc(_),Zc(s))),!1===o?(Zc(a),Zc(l)):Kc(r,a)&&(o?(Zc(r),Zc(u)):(Zc(a),Zc(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=$c(x[T],d.transform,b,S,"minorticks_"+T),I=0;I<M.length;I++)p.add(M[I])}e.get(["axisLabel","hideOverlap"])&&Zu(ju(g(c,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})))},axisName:function(t,e,i,n){var o,r,a,s,l,h,u,c,p=L(t.axisName,e.get("name"));p&&(c=e.get("nameLocation"),l=t.nameDirection,o=e.getModel("nameTextStyle"),h=e.get("nameGap")||0,r=(u=e.axis.getExtent())[0]>u[1]?-1:1,r=["start"===c?u[0]-r*h:"end"===c?u[1]+r*h:(u[0]+u[1])/2,Qc(c)?t.labelOffset+l*h:0],null!=(h=e.get("nameRotate"))&&(h=h*BC/180),Qc(c)?a=zC.innerTextLayout(t.rotation,null!=h?h:t.rotation,l):(a=function(t,e,i,n){var o,i=Mi(i-t),t=n[0]>n[1],n="start"===e&&!t||"start"!==e&&t;return e=Ii(i-BC/2)?(o=n?"bottom":"top","center"):Ii(i-1.5*BC)?(o=n?"top":"bottom","center"):(o="middle",i<1.5*BC&&BC/2<i?n?"left":"right":n?"right":"left"),{rotation:i,textAlign:e,textVerticalAlign:o}}(t.rotation,c,h||0,u),null!=(s=t.axisNameAvailableWidth)&&(s=Math.abs(s/Math.sin(a.rotation)),isFinite(s)||(s=null))),l=o.getFont(),h=(c=e.get("nameTruncate",!0)||{}).ellipsis,u=L(t.nameTruncateMaxWidth,c.maxWidth,s),Sr({el:t=new $m({x:r[0],y:r[1],rotation:a.rotation,silent:zC.isLabelSilent(e),style:Dr(o,{text:p,font:l,overflow:"truncate",width:u,ellipsis:h,fill:o.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:o.get("align")||a.textAlign,verticalAlign:o.get("verticalAlign")||a.textVerticalAlign}),z2:1}),componentModel:e,itemName:p}),t.__fullText=p,t.anid="name",e.get("triggerEvent")&&((c=zC.makeAxisEventDataBase(e)).targetType="axisName",c.name=p,iv(t).eventData=c),n.add(t),t.updateTransform(),i.add(t),t.decomposeTransform())}},VC={},YC=(i(op,LC=Zw),op.prototype.render=function(t,e,i,n){var o,r,a,s,l,h;this.axisPointerClass&&(o=ep(o=t))&&(l=o.axisPointerModel,r=o.axis.scale,a=l.option,h=l.get("status"),null!=(s=l.get("value"))&&(s=r.parse(s)),l=ip(l),null==h&&(a.status=l?"show":"hide"),(h=r.getExtent().slice())[0]>h[1]&&h.reverse(),(s=null==s||s>h[1]?h[1]:s)<h[0]&&(s=h[0]),a.value=s,l)&&(a.status=o.axis.scale.isBlank()?"hide":"show"),LC.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},op.prototype.updateAxisPointer=function(t,e,i,n){this._doUpdateAxisPointerClass(t,i,!1)},op.prototype.remove=function(t,e){var i=this._axisPointer;i&&i.remove(e)},op.prototype.dispose=function(t,e){this._disposeAxisPointer(e),LC.prototype.dispose.apply(this,arguments)},op.prototype._doUpdateAxisPointerClass=function(t,e,i){var n,o=op.getAxisPointerClass(this.axisPointerClass);o&&((n=(n=ep(n=t))&&n.axisPointerModel)?(this._axisPointer||(this._axisPointer=new o)).render(t,n,e,i):this._disposeAxisPointer(e))},op.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},op.registerAxisPointerClass=function(t,e){VC[t]=e},op.getAxisPointerClass=function(t){return t&&VC[t]},op.type="axis",op),HC=Zi(),WC=["axisLine","axisTickLabel","axisName"],XC=["splitArea","splitLine","minorSplitLine"],Sb=(i(rp,EC=YC),rp.prototype.render=function(t,e,i,n){this.group.removeAll();var o,r,a=this._axisGroup;this._axisGroup=new wy,this.group.add(this._axisGroup),t.get("show")&&(r=Yc(o=t.getCoordSysModel(),t),r=new zC(t,l({handleAutoShown:function(e){for(var i=o.coordinateSystem.getCartesians(),n=0;n<i.length;n++)if(Xh(i[n].getOtherAxis(t.axis).scale))return!0;return!1}},r)),f(WC,r.add,r),this._axisGroup.add(r.getGroup()),f(XC,function(e){t.get([e,"show"])&&UC[e](this,this._axisGroup,t,o)},this),n&&"changeAxisOrder"===n.type&&n.isInitSort||vr(a,this._axisGroup,t),EC.prototype.render.call(this,t,e,i,n))},rp.prototype.remove=function(){HC(this).splitAreaColors=null},rp.type="cartesianAxis",rp),UC={splitLine:function(t,e,i,n){var o=i.axis;if(!o.scale.isBlank())for(var i=i.getModel("splitLine"),r=i.getModel("lineStyle"),a=x(a=r.get("color"))?a:[a],s=n.coordinateSystem.getRect(),l=o.isHorizontal(),u=0,c=o.getTicksCoords({tickModel:i}),p=[],d=[],f=r.getLineStyle(),g=0;g<c.length;g++){var y=o.toGlobalCoord(c[g].coord),y=(l?(p[0]=y,p[1]=s.y,d[0]=y,d[1]=s.y+s.height):(p[0]=s.x,p[1]=y,d[0]=s.x+s.width,d[1]=y),u++%a.length),m=c[g].tickValue;e.add(new u_({anid:null!=m?"line_"+c[g].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:h({stroke:a[y]},f),silent:!0}))}},minorSplitLine:function(t,e,i,n){var o=i.axis,i=i.getModel("minorSplitLine").getModel("lineStyle"),r=n.coordinateSystem.getRect(),a=o.isHorizontal(),s=o.getMinorTicksCoords();if(s.length)for(var l=[],h=[],u=i.getLineStyle(),c=0;c<s.length;c++)for(var p=0;p<s[c].length;p++){var d=o.toGlobalCoord(s[c][p].coord);a?(l[0]=d,l[1]=r.y,h[0]=d,h[1]=r.y+r.height):(l[0]=r.x,l[1]=d,h[0]=r.x+r.width,h[1]=d),e.add(new u_({anid:"minor_line_"+s[c][p].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:l[0],y1:l[1],x2:h[0],y2:h[1]},style:u,silent:!0}))}},splitArea:function(t,e,i,n){var o=e,e=n,r=(n=i).axis;if(!r.scale.isBlank()){var n=n.getModel("splitArea"),i=n.getModel("areaStyle"),a=i.get("color"),s=e.coordinateSystem.getRect(),l=r.getTicksCoords({tickModel:n,clamp:!0});if(l.length){var u=a.length,c=HC(t).splitAreaColors,p=W(),d=0;if(c)for(var f=0;f<l.length;f++){var g=c.get(l[f].tickValue);if(null!=g){d=(g+(u-1)*f)%u;break}}for(var y=r.toGlobalCoord(l[0].coord),m=i.getAreaStyle(),a=x(a)?a:[a],f=1;f<l.length;f++){var v=r.toGlobalCoord(l[f].coord),_=void 0,w=void 0,b=void 0,S=void 0,y=r.isHorizontal()?(_=y,w=s.y,S=s.height,_+(b=v-_)):(_=s.x,w=y,b=s.width,w+(S=v-w)),v=l[f-1].tickValue;null!=v&&p.set(v,d),o.add(new qm({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}HC(t).splitAreaColors=p}}}},GC=(i(ap,RC=Sb),ap.type="xAxis",ap);i(sp,jC=Sb),sp.type="yAxis";var jC,qC=sp;i(lp,ZC=Zw),lp.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new qm({shape:t.coordinateSystem.getRect(),style:h({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},lp.type="grid";var ZC,KC=lp,QC={offset:0};xu(function(t){t.registerComponentView(KC),t.registerComponentModel(bC),t.registerCoordinateSystem("cartesian2d",NC),Rc(t,"x",TC,QC),Rc(t,"y",TC,QC),t.registerComponentView(GC),t.registerComponentView(qC),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}),i(hp,$C=Dx),hp.type="title",hp.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 $C,JC=hp;i(up,tM=Zw),up.prototype.render=function(t,e,i){var n,o,r,a,s,l,h,u,c;this.group.removeAll(),t.get("show")&&(n=this.group,h=t.getModel("textStyle"),o=t.getModel("subtextStyle"),u=t.get("textAlign"),c=E(t.get("textBaseline"),t.get("textVerticalAlign")),s=(h=new $m({style:Dr(h,{text:t.get("text"),fill:h.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),l=t.get("subtext"),o=new $m({style:Dr(o,{text:l,fill:o.getTextColor(),y:s.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),r=t.get("link"),a=t.get("sublink"),s=t.get("triggerEvent",!0),h.silent=!r&&!s,o.silent=!a&&!s,r&&h.on("click",function(){pa(r,"_"+t.get("target"))}),a&&o.on("click",function(){pa(a,"_"+t.get("subtarget"))}),iv(h).eventData=iv(o).eventData=s?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(h),l&&n.add(o),s=n.getBoundingRect(),(l=t.getBoxLayoutParams()).width=s.width,l.height=s.height,l=fa(l,{width:i.getWidth(),height:i.getHeight()},t.get("padding")),u||("right"===(u="middle"===(u=t.get("left")||t.get("right"))?"center":u)?l.x+=l.width:"center"===u&&(l.x+=l.width/2)),c||("bottom"===(c="center"===(c=t.get("top")||t.get("bottom"))?"middle":c)?l.y+=l.height:"middle"===c&&(l.y+=l.height/2),c=c||"top"),n.x=l.x,n.y=l.y,n.markRedraw(),h.setStyle(i={align:u,verticalAlign:c}),o.setStyle(i),s=n.getBoundingRect(),h=l.margin,(u=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),c=new qm({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))},up.type="title";var tM,eM=up;xu(function(t){t.registerComponentModel(JC),t.registerComponentView(eM)}),i(cp,iM=Dx),cp.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},cp.prototype.mergeOption=function(t,e){iM.prototype.mergeOption.call(this,t,e),this._updateSelector(t)},cp.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))})},cp.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"))}},cp.prototype._updateData=function(t){var e=[],i=[];t.eachRawSeries(function(n){var o,r=n.name;i.push(r),n.legendVisualProvider&&(r=n.legendVisualProvider.getAllNames(),t.isSeriesFiltered(n)||(i=i.concat(r)),r.length)?e=e.concat(r):o=!0,o&&Ui(n)&&e.push(n.name)}),this._availableNames=i;var n=g(this.get("data")||e,function(t){return(b(t)||T(t))&&(t={name:t}),new J_(t,this,this.ecModel)},this);this._data=n},cp.prototype.getData=function(){return this._data},cp.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&f(this._data,function(t){e[t.get("name")]=!1}),e[t]=!0},cp.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},cp.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},cp.prototype.allSelect=function(){var t=this._data,e=this.option.selected;f(t,function(t){e[t.get("name",!0)]=!0})},cp.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;f(t,function(t){t=t.get("name",!0),e.hasOwnProperty(t)||(e[t]=!0),e[t]=!e[t]})},cp.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&0<=u(this._availableNames,t)},cp.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},cp.type="legend.plain",cp.dependencies=["series"],cp.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}};var iM,nM,oM=cp,rM=_,aM=f,sM=wy,lM=(i(pp,nM=Zw),pp.prototype.init=function(){this.group.add(this._contentGroup=new sM),this.group.add(this._selectorGroup=new sM),this._isFirstRender=!0},pp.prototype.getContentGroup=function(){return this._contentGroup},pp.prototype.getSelectorGroup=function(){return this._selectorGroup},pp.prototype.render=function(t,e,i){var n,o,r,a,s,l=this._isFirstRender;this._isFirstRender=!1,this.resetInner(),t.get("show",!0)&&(o=t.get("align"),n=t.get("orient"),o&&"auto"!==o||(o="right"===t.get("left")&&"vertical"===n?"right":"left"),a=t.get("selector",!0),s=t.get("selectorPosition",!0),this.renderInner(o,t,e,i,a,n,s=!a||s&&"auto"!==s?s:"horizontal"===n?"end":"start"),r=fa(e=t.getBoxLayoutParams(),n={width:i.getWidth(),height:i.getHeight()},i=t.get("padding")),r=fa(h({width:(o=this.layoutInner(t,o,r,l,a,s)).width,height:o.height},e),n,i),this.group.x=r.x-o.x,this.group.y=r.y-o.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(l=o,s=yx((a=t).get("padding")),(e=a.getItemStyle(["color","opacity"])).fill=a.get("backgroundColor"),l=new qm({shape:{x:l.x-s[3],y:l.y-s[0],width:l.width+s[1]+s[3],height:l.height+s[0]+s[2],r:a.get("borderRadius")},style:e,silent:!0,z2:-1}))))},pp.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},pp.prototype.renderInner=function(t,e,i,n,o,r,a){var s=this.getContentGroup(),h=W(),u=e.get("selectedMode"),c=[];i.eachRawSeries(function(t){t.get("legendHoverLink")||c.push(t.id)}),aM(e.getData(),function(o,r){var a,p,d,f,g=o.get("name");this.newlineDisabled||""!==g&&"\n"!==g?(a=i.getSeriesByName(g)[0],h.get(g)||(a?(p=(f=a.getData()).getVisual("legendLineStyle")||{},d=f.getVisual("legendIcon"),f=f.getVisual("style"),this._createItem(a,g,r,o,e,t,p,f,d,u).on("click",rM(dp,g,null,n,c)).on("mouseover",rM(gp,a.name,null,n,c)).on("mouseout",rM(yp,a.name,null,n,c)),h.set(g,!0)):i.eachRawSeries(function(i){var a,s,p;h.get(g)||i.legendVisualProvider&&(s=i.legendVisualProvider).containName(g)&&(p=s.indexOfName(g),a=s.getItemVisual(p,"style"),s=s.getItemVisual(p,"legendIcon"),(p=ae(a.fill))&&0===p[3]&&(p[3]=.2,a=l(l({},a),{fill:ce(p,"rgba")})),this._createItem(i,g,r,o,e,t,{},a,s,u).on("click",rM(dp,null,g,n,c)).on("mouseover",rM(gp,null,g,n,c)).on("mouseout",rM(yp,null,g,n,c)),h.set(g,!0))},this))):((p=new sM).newline=!0,s.add(p))},this),o&&this._createSelector(o,e,n,r,a)},pp.prototype._createSelector=function(t,e,i,n,o){var r=this.getSelectorGroup();aM(t,function(t){var n=t.type,o=new $m({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===n?"legendAllSelect":"legendInverseSelect"})}});r.add(o),kr(o,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),wo(o)})},pp.prototype._createItem=function(t,e,i,n,o,r,a,s,l,h){var u=t.visualDrawType,c=o.get("itemWidth"),p=o.get("itemHeight"),d=o.isSelected(e),f=n.get("symbolRotate"),g=n.get("symbolKeepAspect"),y=n.get("icon"),a=function(t,e,i,n,o,r){function a(t,e){"auto"===t.lineWidth&&(t.lineWidth=0<e.lineWidth?2:0),aM(t,function(i,n){"inherit"===t[n]&&(t[n]=e[n])})}var s=e.getModel("itemStyle").getItemStyle(),t=0===t.lastIndexOf("empty",0)?"fill":"stroke";s.decal=n.decal,"inherit"===s.fill&&(s.fill=n[o]),"inherit"===s.stroke&&(s.stroke=n[t]),"inherit"===s.opacity&&(s.opacity=("fill"===o?n:i).opacity),a(s,n);var o=e.getModel("lineStyle"),l=o.getLineStyle();return a(l,i),"auto"===s.fill&&(s.fill=n.fill),"auto"===s.stroke&&(s.stroke=n.fill),"auto"===l.stroke&&(l.stroke=n.fill),r||(i=e.get("inactiveBorderWidth"),r=s[t],s.lineWidth="auto"===i?0<n.lineWidth&&r?2:0:s.lineWidth,s.fill=e.get("inactiveColor"),s.stroke=e.get("inactiveBorderColor"),l.stroke=o.get("inactiveColor"),l.lineWidth=o.get("inactiveWidth")),{itemStyle:s,lineStyle:l}}(l=y||l||"roundRect",n,a,s,u,d),s=new sM,u=n.getModel("textStyle"),y=(!w(t.getLegendIcon)||y&&"inherit"!==y?(y="inherit"===y&&t.getData().getVisual("symbol")?"inherit"===f?t.getData().getVisual("symbolRotate"):f:0,s.add(function(t){var e=t.icon||"roundRect",i=Pl(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:c,itemHeight:p,icon:l,iconRotate:y,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:g}))):s.add(t.getLegendIcon({itemWidth:c,itemHeight:p,icon:l,iconRotate:f,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:g})),"left"===r?c+5:-5),t=r,l=o.get("formatter"),f=e,a=(b(l)&&l?f=l.replace("{name}",null!=e?e:""):w(l)&&(f=l(e)),n.get("inactiveColor")),g=(s.add(new $m({style:Dr(u,{text:f,x:y,y:p/2,fill:d?u.getTextColor():a,align:t,verticalAlign:"middle"})})),new qm({shape:s.getBoundingRect(),invisible:!0})),c=n.getModel("tooltip");return c.get("show")&&Sr({el:g,componentModel:o,itemName:e,itemTooltipOption:c.option}),s.add(g),s.eachChild(function(t){t.silent=!0}),g.silent=!h,this.getContentGroup().add(s),wo(s),s.__legendDataIndex=i,s},pp.prototype.layoutInner=function(t,e,i,n,o,r){var a,s,l,h,u,c=this.getContentGroup(),p=this.getSelectorGroup(),i=(Tx(t.get("orient"),c,t.get("itemGap"),i.width,i.height),c.getBoundingRect()),d=[-i.x,-i.y];return p.markRedraw(),c.markRedraw(),o?(Tx("horizontal",p,t.get("selectorItemGap",!0)),a=[-(o=p.getBoundingRect()).x,-o.y],s=t.get("selectorButtonGap",!0),l=0===(t=t.getOrient().index)?"width":"height",h=0===t?"height":"width",u=0===t?"y":"x","end"===r?a[t]+=i[l]+s:d[t]+=o[l]+s,a[1-t]+=i[h]/2-o[h]/2,p.x=a[0],p.y=a[1],c.x=d[0],c.y=d[1],(r={x:0,y:0})[l]=i[l]+s+o[l],r[h]=Math.max(i[h],o[h]),r[u]=Math.min(0,o[u]+a[1-t]),r):(c.x=d[0],c.y=d[1],this.group.getBoundingRect())},pp.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},pp.type="legend.plain",pp);i(xp,hM=oM),xp.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},xp.prototype.init=function(t,e,i){var n=ma(t);hM.prototype.init.call(this,t,e,i),wp(this,t,n)},xp.prototype.mergeOption=function(t,e){hM.prototype.mergeOption.call(this,t,e),wp(this,this.option,t)},xp.type="legend.scroll",xp.defaultOption=(f_=oM.defaultOption,Ev={scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},s(s({},f_,!0),Ev,!0));var hM,uM,cM=xp,pM=wy,dM=["width","height"],fM=["x","y"],gM=(i(bp,uM=lM),bp.prototype.init=function(){uM.prototype.init.call(this),this.group.add(this._containerGroup=new pM),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new pM)},bp.prototype.resetInner=function(){uM.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},bp.prototype.renderInner=function(t,e,i,n,o,r,a){function s(t,i){var o=t+"DataIndex",i=wr(e.get("pageIcons",!0)[e.getOrient().name][i],{onclick:If(l._pageGo,l,o,e,n)},{x:-u[0]/2,y:-u[1]/2,width:u[0],height:u[1]});i.name=t,h.add(i)}var l=this,h=(uM.prototype.renderInner.call(this,t,e,i,n,o,r,a),this._controllerGroup),t=e.get("pageIconSize",!0),u=x(t)?t:[t,t],i=(s("pagePrev",0),e.getModel("pageTextStyle"));h.add(new $m({name:"pageText",style:{text:"xx/xx",fill:i.getTextColor(),font:i.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),s("pageNext",1)},bp.prototype.layoutInner=function(t,e,i,n,o,r){var s=this.getSelectorGroup(),l=t.getOrient().index,h=dM[l],u=fM[l],c=dM[1-l],p=fM[1-l],d=(o&&Tx("horizontal",s,t.get("selectorItemGap",!0)),t.get("selectorButtonGap",!0)),f=s.getBoundingRect(),g=[-f.x,-f.y],y=a(i),i=(o&&(y[h]=i[h]-f[h]-d),this._layoutContentAndController(t,n,y,l,h,c,p,u));return o&&("end"===r?g[l]+=i[h]+d:(t=f[h]+d,g[l]-=t,i[u]-=t),i[h]+=f[h]+d,g[1-l]+=i[p]+i[c]/2-f[c]/2,i[c]=Math.max(i[c],f[c]),i[p]=Math.min(i[p],f[p]+g[1-l]),s.x=g[0],s.y=g[1],s.markRedraw()),i},bp.prototype._layoutContentAndController=function(t,e,i,n,o,r,a,s){var l=this.getContentGroup(),h=this._containerGroup,u=this._controllerGroup,c=(Tx(t.get("orient"),l,t.get("itemGap"),n?i.width:null,n?null:i.height),Tx("horizontal",u,t.get("pageButtonItemGap",!0)),l.getBoundingRect()),p=u.getBoundingRect(),d=this._showController=c[o]>i[o],f=[-c.x,-c.y],e=(e||(f[n]=l[s]),[0,0]),s=[-p.x,-p.y],g=E(t.get("pageButtonGap",!0),t.get("itemGap",!0)),f=(d&&("end"===t.get("pageButtonPosition",!0)?s[n]+=i[o]-p[o]:e[n]+=p[o]+g),s[1-n]+=c[r]/2-p[r]/2,l.setPosition(f),h.setPosition(e),u.setPosition(s),{x:0,y:0}),c=(f[o]=(d?i:c)[o],f[r]=Math.max(c[r],p[r]),f[a]=Math.min(0,p[a]+s[1-n]),h.__rectSize=i[o],d?((e={x:0,y:0})[o]=Math.max(i[o]-p[o]-g,0),e[r]=f[r],h.setClipPath(new qm({shape:e})),h.__rectSize=e[o]):u.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=c.pageIndex&&er(l,{x:c.contentPosition[0],y:c.contentPosition[1]},d?t:null),this._updatePageInfoView(t,c),f},bp.prototype._pageGo=function(t,e,i){null!=(t=this._getPageInfo(e)[t])&&i.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},bp.prototype._updatePageInfoView=function(t,e){var i=this._controllerGroup,n=(f(["pagePrev","pageNext"],function(n){var o=null!=e[n+"DataIndex"],n=i.childOfName(n);n&&(n.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),n.cursor=o?"pointer":"default")}),i.childOfName("pageText")),o=t.get("pageFormatter"),r=e.pageIndex,r=null!=r?r+1:0,a=e.pageCount;n&&o&&n.setStyle("text",b(o)?o.replace("{current}",null==r?"":r+"").replace("{total}",null==a?"":a+""):o({current:r,total:a}))},bp.prototype._getPageInfo=function(t){function e(t){var e,i;if(t)return{s:i=(e=t.getBoundingRect())[s]+t[s],e:i+e[a],i:t.__legendDataIndex}}function i(t,e){return t.e>=e&&t.s<=e+r}var n=t.get("scrollDataIndex",!0),o=this.getContentGroup(),r=this._containerGroup.__rectSize,t=t.getOrient().index,a=dM[t],s=fM[t],n=this._findTargetItemIndex(n),l=o.children(),h=l[n],u=l.length,c=u?1:0,p={contentPosition:[o.x,o.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(h){o=e(h),p.contentPosition[t]=-o.s;for(var d=n+1,f=o,g=o,y=null;d<=u;++d)(!(y=e(l[d]))&&g.e>f.s+r||y&&!i(y,f.s))&&(f=g.i>f.i?g:y)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=f.i),++p.pageCount),g=y;for(d=n-1,f=o,g=o,y=null;-1<=d;--d)(y=e(l[d]))&&i(g,y.s)||!(f.i<g.i)||(g=f,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=f.i),++p.pageCount,++p.pageIndex),f=y}return p},bp.prototype._findTargetItemIndex=function(t){var e,i;return this._showController?(this.getContentGroup().eachChild(function(n,o){n=n.__legendDataIndex,null==i&&null!=n&&(i=o),n===t&&(e=o)}),null!=e?e:i):0},bp.type="legend.scroll",bp);xu(function(t){xu(_p),t.registerComponentModel(cM),t.registerComponentView(gM),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 yM=Zi(),mM=a,vM=If;Sp.prototype.render=function(t,e,i,n){var o,r,a=e.get("value"),s=e.get("status");this._axisModel=t,this._axisPointerModel=e,this._api=i,!n&&this._lastValue===a&&this._lastStatus===s||(this._lastValue=a,this._lastStatus=s,n=this._group,o=this._handle,s&&"hide"!==s?(n&&n.show(),o&&o.show(),this.makeElOption(s={},a,t,e,i),(r=s.graphicKey)!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=r,r=this._moveAnimation=this.determineAnimation(t,e),n?(r=_(Tp,e,r),this.updatePointerEl(n,s,r),this.updateLabelEl(n,s,r,e)):(n=this._group=new wy,this.createPointerEl(n,s,t,e),this.createLabelEl(n,s,t,e),i.getZr().add(n)),Ip(n,e,!0),this._renderHandle(a)):(n&&n.hide(),o&&o.hide()))},Sp.prototype.remove=function(t){this.clear(t)},Sp.prototype.dispose=function(t){this.clear(t)},Sp.prototype.determineAnimation=function(t,e){var i,n=e.get("animation"),o=t.axis,r="category"===o.type,e=e.get("snap");return!(!e&&!r)&&("auto"===n||null==n?(i=this.animationThreshold,r&&o.getBandWidth()>i||!!e&&(r=ep(t).seriesDataCount,e=o.getExtent(),Math.abs(e[0]-e[1])/r>i)):!0===n)},Sp.prototype.makeElOption=function(t,e,i,n,o){},Sp.prototype.createPointerEl=function(t,e,i,n){var o=e.pointer;o&&(o=yM(t).pointerEl=new B_[o.type](mM(e.pointer)),t.add(o))},Sp.prototype.createLabelEl=function(t,e,i,n){e.label&&(e=yM(t).labelEl=new $m(mM(e.label)),t.add(e),Cp(e,n))},Sp.prototype.updatePointerEl=function(t,e,i){(t=yM(t).pointerEl)&&e.pointer&&(t.setStyle(e.pointer.style),i(t,{shape:e.pointer.shape}))},Sp.prototype.updateLabelEl=function(t,e,i,n){(t=yM(t).labelEl)&&(t.setStyle(e.label.style),i(t,{x:e.label.x,y:e.label.y}),Cp(t,n))},Sp.prototype._renderHandle=function(t){var e,i,n,o,r,a;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,o=e.getModel("handle"),a=e.get("status"),o.get("show")&&a&&"hide"!==a?(this._handle||(r=!0,n=this._handle=wr(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Xf(t.event)},onmousedown:vM(this._onHandleDragMove,this,0,0),drift:vM(this._onHandleDragMove,this),ondragend:vM(this._onHandleDragEnd,this)}),i.add(n)),Ip(n,e,!1),n.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),x(a=o.get("size"))||(a=[a,a]),n.scaleX=a[0]/2,n.scaleY=a[1]/2,cl(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,r)):(n&&i.remove(n),this._handle=null))},Sp.prototype._moveHandleToValue=function(t,e){Tp(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Mp(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},Sp.prototype._onHandleDragMove=function(t,e){var i=this._handle;i&&(this._dragging=!0,t=this.updateHandleTransform(Mp(i),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,i.stopAnimation(),i.attr(Mp(t)),yM(i).lastProp=null,this._doDispatchAxisPointer())},Sp.prototype._doDispatchAxisPointer=function(){var t,e;this._handle&&(t=this._payloadInfo,e=this._axisModel,this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]}))},Sp.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},Sp.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var t=t.getZr(),e=this._group,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),pl(this,"_doDispatchAxisPointer")},Sp.prototype.doClear=function(){},Sp.prototype.buildLabel=function(t,e,i){return{x:t[i=i||0],y:t[1-i],width:e[i],height:e[1-i]}},i(Pp,_M=Sp),Pp.prototype.makeElOption=function(t,e,i,n,o){var r,a,s=i.axis,l=s.grid,h=n.get("type"),u=Op(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(e,!0)),p=(h&&"none"!==h&&(r=(a=n).get("type"),a=a.getModel(r+"Style"),"line"===r?(p=a.getLineStyle()).fill=null:"shadow"===r&&((p=a.getAreaStyle()).stroke=null),r=p,(a=wM[h](s,c,u)).style=r,t.graphicKey=a.type,t.pointer=a),Yc(l.model,i));h=e,s=t,c=p,u=i,r=n,a=o,l=zC.innerTextLayout(c.rotation,0,c.labelDirection),c.labelMargin=r.get(["label","margin"]),kp(s,u,r,a,{position:Dp(u.axis,h,c),align:l.textAlign,verticalAlign:l.textVerticalAlign})},Pp.prototype.getHandleTransform=function(t,e,i){var n=Yc(e.axis.grid.model,e,{labelInside:!1}),i=(n.labelMargin=i.get(["handle","margin"]),Dp(e.axis,t,n));return{x:i[0],y:i[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},Pp.prototype.updateHandleTransform=function(t,e,i,n){var i=i.axis,o=i.grid,r=i.getGlobalExtent(!0),o=Op(o,i).getOtherAxis(i).getGlobalExtent(),i="x"===i.dim?0:1,a=[t.x,t.y],e=(a[i]+=e[i],a[i]=Math.min(r[1],a[i]),a[i]=Math.max(r[0],a[i]),(o[1]+o[0])/2),r=[e,e];return r[i]=a[i],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:r,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][i]}};var _M,xM=Pp,wM={line:function(t,e,i){var n;return n=[e,i[0]],e=[e,i[1]],i=Lp(t),{type:"Line",subPixelOptimize:!0,shape:{x1:n[i=i||0],y1:n[1-i],x2:e[i],y2:e[1-i]}}},shadow:function(t,e,i){var n=Math.max(1,t.getBandWidth()),o=i[1]-i[0];return{type:"Rect",shape:(e=[e-n/2,i[0]],i=[n,o],n=Lp(t),{x:e[n=n||0],y:e[1-n],width:i[n],height:i[1-n]})}}};i(Ep,bM=Dx),Ep.type="axisPointer",Ep.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}};var bM,SM=Ep,TM=Zi(),CM=f;i(Fp,MM=Zw),Fp.prototype.render=function(t,e,i){var e=e.getComponent("tooltip"),n=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";Rp("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})})},Fp.prototype.remove=function(t,e){zp("axisPointer",e)},Fp.prototype.dispose=function(t,e){zp("axisPointer",e)},Fp.type="axisPointer";var MM,IM=Fp,kM=Zi();i(qp,AM=Dx),qp.type="tooltip",qp.dependencies=["axisPointer"],qp.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}};var AM,DM=qp,PM=Kp(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),OM=Qp(Kp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),LM=Qp(PM,"transform"),EM="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(af.transform3dSupported?"will-change:transform;":"");ed.prototype.update=function(t){var e=this._container,i=(i="position",(n=(n=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(n))?i?n[i]:n:null),n=e.style;"absolute"!==n.position&&"absolute"!==i&&(n.position="relative"),t.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=t.get("className")||""},ed.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,o=this._styleCoord;i.innerHTML?n.cssText=EM+Jp(t,!this._firstShow,this._longHide)+$p(o[0],o[1],!0)+"border-color:"+ca(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},ed.prototype.setContent=function(t,e,i,n,o){var r=this.el;if(null==t)r.innerHTML="";else{var a,s,l,h,c,p="";if(b(o)&&"item"===i.get("trigger")&&!Zp(i)&&(i=i,n=n,p=b(o=o)&&"inside"!==o?(a=i.get("backgroundColor"),i=i.get("borderWidth"),n=ca(n),o=o="left"===(o=o)?"right":"right"===o?"left":"top"===o?"bottom":"top",d=Math.max(1.5*Math.round(i),6),s="",l=LM+":",-1<u(["left","right"],o)?(s+="top:50%",l+="translateY(-50%) rotate("+(c="left"==o?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(c="top"==o?225:45)+"deg)"),c=c*Math.PI/180,c=(h=d+i)*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),n=n+" solid "+i+"px;",'<div style="'+["position:absolute;width:"+d+"px;height:"+d+"px;",(s+=";"+o+":-"+Math.round(100*((c-Math.SQRT2*i)/2+Math.SQRT2*i-(c-h)/2))/100+"px")+";"+l+";","border-bottom:"+n,"border-right:"+n,"background-color:"+a+";"].join("")+'"></div>'):""),b(t))r.innerHTML=t+p;else if(t){r.innerHTML="",x(t)||(t=[t]);for(var d,f=0;f<t.length;f++)k(t[f])&&t[f].parentNode!==r&&r.appendChild(t[f]);p&&r.childNodes.length&&((d=document.createElement("div")).innerHTML=p,r.appendChild(d))}}},ed.prototype.setEnterable=function(t){this._enterable=t},ed.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},ed.prototype.moveTo=function(t,e){var i,n=this._styleCoord;td(n,this._zr,this._appendToBody,t,e),null!=n[0]&&null!=n[1]&&(i=this.el.style,f($p(n[0],n[1]),function(t){i[t[0]]=t[1]}))},ed.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},ed.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",af.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},ed.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(If(this.hide,this),t)):this.hide())},ed.prototype.isShow=function(){return this._show},ed.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)};var RM=ed;id.prototype.update=function(t){t.get("alwaysShowContent")&&this._moveIfResized()},id.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},id.prototype.setContent=function(t,e,i,n,o){var r=this,a=(C(t)&&Ni(""),this.el&&this._zr.remove(this.el),i.getModel("textStyle")),s=(this.el=new $m({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:a.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Us(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),f(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){r.el.style[t]=i.get(t)}),f(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){r.el.style[t]=a.get(t)||0}),this._zr.add(this.el),this);this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},id.prototype.setEnterable=function(t){this._enterable=t},id.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),t=od(t.style);return[e.width+t.left+t.right,e.height+t.top+t.bottom]},id.prototype.moveTo=function(t,e){var i,n,o=this.el;o&&(rd(n=this._styleCoord,this._zr,t,e),t=n[0],e=n[1],i=nd((n=o.style).borderWidth||0),n=od(n),o.x=t+i+n.left,o.y=e+i+n.top,o.markRedraw())},id.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},id.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},id.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(If(this.hide,this),t)):this.hide())},id.prototype.isShow=function(){return this._show},id.prototype.dispose=function(){this._zr.remove(this.el)};var NM,BM=id,zM=new qm({shape:{x:-1,y:-1,width:2,height:2}}),FM=(i(ad,NM=Zw),ad.prototype.init=function(t,e){var i;!af.node&&e.getDom()&&(t=t.getComponent("tooltip"),i=this._renderMode="auto"===(i=t.get("renderMode"))?af.domSupported?"html":"richText":i||"html",this._tooltipContent="richText"===i?new BM(e):new RM(e.getDom(),e,{appendToBody:t.get("appendToBody",!0)}))},ad.prototype.render=function(t,e,i){!af.node&&i.getDom()&&(this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._alwaysShowContent=t.get("alwaysShowContent"),(e=this._tooltipContent).update(t),e.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?cl(this,"_updatePosition",50,"fixRate"):pl(this,"_updatePosition"))},ad.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");Rp("itemTooltip",this._api,If(function(e,i,n){"none"!==t&&(0<=t.indexOf(e)?this._tryShow(i,n):"leave"===e&&this._hide(n))},this))},ad.prototype._keepShow=function(){var t,e=this._tooltipModel,i=this._ecModel,n=this._api;null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")&&(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})}))},ad.prototype.manuallyShowTip=function(t,e,i,n){var o,r,a,s;n.from!==this.uid&&!af.node&&i.getDom()&&(o=ld(n,i),this._ticket="",s=n.dataByCoordSys,(r=function(t,e,i){var n=Qi(t).queryOptionMap,o=n.keys()[0];if(o&&"series"!==o){var r,e=$i(e,o,n.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(e&&(i.getViewOfComponentModel(e).group.traverse(function(e){var i=iv(e).tooltipConfig;if(i&&i.name===t.name)return r=e,!0}),r))return{componentMainType:o,componentIndex:e.componentIndex,el:r}}}(n,e,i))?((a=r.el.getBoundingRect().clone()).applyTransform(r.el.transform),this._tryShow({offsetX:a.x+a.width/2,offsetY:a.y+a.height/2,target:r.el,position:n.position,positionDefault:"bottom"},o)):n.tooltip&&null!=n.x&&null!=n.y?((a=zM).x=n.x,a.y=n.y,a.update(),iv(a).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:a},o)):s?this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:s,tooltipOption:n.tooltipOption},o):null!=n.seriesIndex?this._manuallyAxisShowTip(t,e,i,n)||(a=(r=Vp(n,e)).point[0],s=r.point[1],null!=a&&null!=s&&this._tryShow({offsetX:a,offsetY:s,target:r.el,position:n.position,positionDefault:"bottom"},o)):null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},o)))},ad.prototype.manuallyHideTip=function(t,e,i,n){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(ld(n,i))},ad.prototype._manuallyAxisShowTip=function(t,e,i,n){var o=n.seriesIndex,r=n.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=r&&null!=a&&(a=e.getSeriesByIndex(o))&&(e=sd([a.getData().getItemModel(r),a,(a.coordinateSystem||{}).model],this._tooltipModel),"axis"===e.get("trigger")))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:r,position:n.position}),!0},ad.prototype._tryShow=function(t,e){var i,n,o,r=t.target;this._tooltipModel&&(this._lastX=t.offsetX,this._lastY=t.offsetY,(i=t.dataByCoordSys)&&i.length?this._showAxisTooltip(i,t):r?(kl(r,function(t){return null!=iv(t).dataIndex?(n=t,1):null!=iv(t).tooltipConfig&&(o=t,1)},!(this._lastDataByCoordSys=null)),n?this._showSeriesItemTooltip(t,n,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)):(this._lastDataByCoordSys=null,this._hide(e)))},ad.prototype._showOrMove=function(t,e){t=t.get("showDelay"),e=If(e,this),clearTimeout(this._showTimout),0<t?this._showTimout=setTimeout(e,t):e()},ad.prototype._showAxisTooltip=function(t,e){var i=this._ecModel,n=this._tooltipModel,o=[e.offsetX,e.offsetY],r=sd([e.tooltipOption],n),a=this._renderMode,s=[],h=Bs("section",{blocks:[],noHeader:!0}),u=[],c=new Uw,p=(f(t,function(t){f(t.dataByAxis,function(t){var e,o,r=i.getComponent(t.axisDim+"Axis",t.axisIndex),p=t.value;r&&null!=p&&(e=Ap(p,r.axis,i,t.seriesDataIndices,t.valueLabelOpt),o=Bs("section",{header:e,noHeader:!F(e),sortBlocks:!0,blocks:[]}),h.blocks.push(o),f(t.seriesDataIndices,function(h){var d,f=i.getSeriesByIndex(h.seriesIndex),h=h.dataIndexInside,g=f.getDataParams(h);g.dataIndex<0||(g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=gu(r.axis,{value:p}),g.axisValueLabel=e,g.marker=c.makeTooltipMarker("item",ca(g.color),a),(d=(h=us(f.formatTooltip(h,!0,null))).frag)&&(f=sd([f],n).get("valueFormatter"),o.blocks.push(f?l({valueFormatter:f},d):d)),h.text&&u.push(h.text),s.push(g))}))})}),h.blocks.reverse(),u.reverse(),e.position),e=r.get("order"),e=Hs(h,c,a,e,i.get("useUTC"),r.get("textStyle")),e=(e&&u.unshift(e),"richText"===a?"\n\n":"<br/>"),d=u.join(e);this._showOrMove(r,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(r,p,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(r,d,s,Math.random()+"",o[0],o[1],p,null,c)})},ad.prototype._showSeriesItemTooltip=function(t,e,i){var n,o,r,a,s,h=this._ecModel,e=iv(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=sd([f.getItemModel(d),p,c&&(c.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null),c=m.get("trigger");null!=c&&"item"!==c||(n=p.getDataParams(d,e),o=new Uw,n.marker=o.makeTooltipMarker("item",ca(n.color),g),y=us(p.formatTooltip(d,!1,e)),c=m.get("order"),e=m.get("valueFormatter"),r=y.frag,a=r?Hs(e?l({valueFormatter:e},r):r,o,g,c,h.get("useUTC"),m.get("textStyle")):y.text,s="item_"+p.name+"_"+d,this._showOrMove(m,function(){this._showTooltipContent(m,a,n,s,t.offsetX,t.offsetY,t.position,t.target,o)}),i({type:"showTip",dataIndexInside:d,dataIndex:f.getRawIndex(d),seriesIndex:u,from:this.uid}))},ad.prototype._showComponentItemTooltip=function(t,e,i){var n=iv(e),o=n.tooltipConfig.option||{},r=[o=b(o)?{content:o,formatter:o}:o],n=this._ecModel.getComponent(n.componentMainType,n.componentIndex),n=(n&&r.push(n),r.push({formatter:o.content}),t.positionDefault),s=sd(r,this._tooltipModel,n?{position:n}:null),l=s.get("content"),h=Math.random()+"",u=new Uw;this._showOrMove(s,function(){var i=a(s.get("formatterParams")||{});this._showTooltipContent(s,l,i,h,t.offsetX,t.offsetY,t.position,e,u)}),i({type:"showTip",from:this.uid})},ad.prototype._showTooltipContent=function(t,e,i,n,o,r,a,s,l){var h,u,c,p,d;this._ticket="",t.get("showContent")&&t.get("show")&&(h=this._tooltipContent,u=t.get("formatter"),a=a||t.get("position"),e=e,c=this._getNearestPoint([o,r],i,t.get("trigger"),t.get("borderColor")).color,u&&(e=b(u)?(p=t.ecModel.get("useUTC"),e=u,ha(e=(d=x(i)?i[0]:i)&&d.axisType&&0<=d.axisType.indexOf("time")?Hr(d.axisValue,e,p):e,i,!0)):w(u)?(d=If(function(e,n){e===this._ticket&&(h.setContent(n,l,t,c,a),this._updatePosition(t,a,o,r,h,i,s))},this),this._ticket=n,u(i,n,d)):u),h.setContent(e,l,t,c,a),h.show(t,c),this._updatePosition(t,a,o,r,h,i,s))},ad.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}},ad.prototype._updatePosition=function(t,e,i,n,o,r,a){var s,l=this._api.getWidth(),h=this._api.getHeight(),u=(e=e||t.get("position"),o.getSize()),c=t.get("align"),p=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();a&&d.applyTransform(a.transform),x(e=w(e)?e([i,n],r,o.el,d,{viewSize:[l,h],contentSize:u.slice()}):e)?(i=wi(e[0],l),n=wi(e[1],h)):C(e)?((r=e).width=u[0],r.height=u[1],i=(r=fa(r,{width:l,height:h})).x,n=r.y,p=c=null):(i=(s=b(e)&&a?function(t,e,i,n){var o=i[0],r=i[1],a=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,h=e.width,u=e.height;switch(t){case"inside":s=e.x+h/2-o/2,l=e.y+u/2-r/2;break;case"top":s=e.x+h/2-o/2,l=e.y-r-a;break;case"bottom":s=e.x+h/2-o/2,l=e.y+u+a;break;case"left":s=e.x-o-a,l=e.y+u/2-r/2;break;case"right":s=e.x+h+a,l=e.y+u/2-r/2}return[s,l]}(e,d,u,t.get("borderWidth")):function(t,e,i,n,o,r,a){var i=i.getSize(),s=i[0],i=i[1];return null!=r&&(n<t+s+r+2?t-=s+r:t+=r),null!=a&&(o<e+i+a?e-=i+a:e+=a),[t,e]}(i,n,o,l,h,c?null:20,p?null:20))[0],n=s[1]),c&&(i-=hd(c)?u[0]/2:"right"===c?u[0]:0),p&&(n-=hd(p)?u[1]/2:"bottom"===p?u[1]:0),Zp(t)&&(r=i,a=n,e=l,d=h,c=(c=o).getSize(),p=c[0],c=c[1],r=Math.min(r+p,e)-p,a=Math.min(a+c,d)-c,r=Math.max(r,0),a=Math.max(a,0),i=(s=[r,a])[0],n=s[1]),o.moveTo(i,n)},ad.prototype._updateContentNotChangedOnAxis=function(t,e){var i=this._lastDataByCoordSys,n=this._cbParamsList,o=!!i&&i.length===t.length;return o&&f(i,function(i,r){var i=i.dataByAxis||[],a=(t[r]||{}).dataByAxis||[];(o=o&&i.length===a.length)&&f(i,function(t,i){var i=a[i]||{},r=t.seriesDataIndices||[],s=i.seriesDataIndices||[];(o=o&&t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===s.length)&&f(r,function(t,e){e=s[e],o=o&&t.seriesIndex===e.seriesIndex&&t.dataIndex===e.dataIndex}),n&&f(t.seriesDataIndices,function(t){var t=t.seriesIndex,i=e[t],t=n[t];i&&t&&t.data!==i.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!o},ad.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},ad.prototype.dispose=function(t,e){!af.node&&e.getDom()&&(pl(this,"_updatePosition"),this._tooltipContent.dispose(),zp("itemTooltip",e))},ad.type="tooltip",ad);xu(function(t){xu(jp),t.registerComponentModel(DM),t.registerComponentView(FM),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},q),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},q)}),xu(rc);var VM={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},YM=(ud.prototype.evaluate=function(t){var e=typeof t;return b(e)?this._condVal.test(t):!!T(e)&&this._condVal.test(t+"")},ud);cd.prototype.evaluate=function(){return this.value};var HM=cd;pd.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0};var WM=pd;dd.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1};var XM=dd;fd.prototype.evaluate=function(){return!this.child.evaluate()};var UM=fd;gd.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 GM=gd;_d.prototype.evaluate=function(){return this._cond.evaluate()};var jM=_d,qM={type:"echarts:filter",transform:function(t){for(var e,i,n=t.upstream,o=(t=t.config,i={valueGetterAttrMap:W({dimension:!0}),prepareGetValue:function(t){var e=t.dimension,t=(j(t,"dimension")||Ni(""),n.getDimensionInfo(e));return t||Ni(""),{dimIdx:t.index}},getValue:function(t){return n.retrieveValueFromItem(e,t.dimIdx)}},new jM(t,i)),r=[],a=0,s=n.count();a<s;a++)e=n.getRawDataItem(a),o.evaluate()&&r.push(e);return{data:r}}},ZM={type:"echarts:sort",transform:function(t){for(var e=t.upstream,t=t.config,t=zi(t),i=(t.length||Ni(""),[]),t=(f(t,function(t){var n=t.dimension,o=t.order,r=t.parser,t=t.incomparable,n=(null==n&&Ni(""),"asc"!==o&&"desc"!==o&&Ni(""),t&&"min"!==t&&"max"!==t&&Ni(""),"asc"!==o&&"desc"!==o&&Ni(""),e.getDimensionInfo(n)),a=(n||Ni(""),r?ys(r):null);r&&!a&&Ni(""),i.push({dimIdx:n.index,parser:a,comparator:new Pw(o,t)})}),e.sourceFormat),n=(t!==zx&&t!==Fx&&Ni(""),[]),o=0,r=e.count();o<r;o++)n.push(e.getRawDataItem(o));return n.sort(function(t,n){for(var o=0;o<i.length;o++){var r=i[o],a=e.retrieveValueFromItem(t,r.dimIdx),s=e.retrieveValueFromItem(n,r.dimIdx),r=(r.parser&&(a=r.parser(a),s=r.parser(s)),r.comparator.evaluate(a,s));if(0!==r)return r}return 0}),{data:n}}};xu(function(t){t.registerTransform(qM),t.registerTransform(ZM)});var KM,QM=Math.sin,$M=Math.cos,JM=Math.PI,tI=2*Math.PI,eI=180/JM,iI=(xd.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},xd.prototype.moveTo=function(t,e){this._add("M",t,e)},xd.prototype.lineTo=function(t,e){this._add("L",t,e)},xd.prototype.bezierCurveTo=function(t,e,i,n,o,r){this._add("C",t,e,i,n,o,r)},xd.prototype.quadraticCurveTo=function(t,e,i,n){this._add("Q",t,e,i,n)},xd.prototype.arc=function(t,e,i,n,o,r){this.ellipse(t,e,i,i,0,n,o,r)},xd.prototype.ellipse=function(t,e,i,n,o,r,a,s){var l,h=a-r,s=!s,u=Math.abs(h),c=fe(u-tI)||(s?tI<=h:tI<=-h),p=!1,p=!!c||!fe(u)&&JM<=(0<h?h%tI:h%tI+tI)==!!s,u=t+i*$M(r),h=e+n*QM(r),o=(this._start&&this._add("M",u,h),Math.round(o*eI));c?(c=1/this._p,this._add("A",i,n,o,1,+s,t+i*$M(r+(l=(s?1:-1)*(tI-c))),e+n*QM(r+l)),.01<c&&this._add("A",i,n,o,0,+s,u,h)):(r=t+i*$M(a),l=e+n*QM(a),this._add("A",i,n,o,+p,+s,r,l))},xd.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")},xd.prototype.closePath=function(){0<this._d.length&&this._add("Z")},xd.prototype._add=function(t,e,i,n,o,r,a,s,l){for(var h=[],u=this._p,c=1;c<arguments.length;c++){var p=arguments[c];if(isNaN(p))return void(this._invalid=!0);h.push(Math.round(p*u)/u)}this._d.push(t+h.join(" ")),this._start="Z"===t},xd.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},xd.prototype.getStr=function(){return this._str},xd),nI="none",oI=Math.round,rI=["lineCap","miterLimit","lineJoin"],aI=g(rI,function(t){return"stroke-"+t.toLowerCase()}),sI="http://www.w3.org/2000/svg",lI="http://www.w3.org/1999/xlink",hI="http://www.w3.org/2000/xmlns/",uI="http://www.w3.org/XML/1998/namespace",cI={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},pI="transform-origin",dI={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"},fI=Math.round,gI={circle:[(KM=g(["cx","cy","r"],function(t){return"string"==typeof t?[t,t]:t}),function(t,e,i){for(var n=0;n<KM.length;n++){var o=KM[n],r=t[o[0]];null!=r&&(e[o[1]]=fI(r*i)/i)}})],polyline:[Rd,Nd],polygon:[Rd,Nd]},yI=58,mI=120,vI=Sd("",""),_I=0;ef.prototype.getType=function(){return this.type},ef.prototype.getViewportRoot=function(){return this._viewport},ef.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},ef.prototype.getSvgDom=function(){return this._svgDom},ef.prototype.refresh=function(){var t,e,i,n,o;this.root&&((t=this.renderToVNode({willUpdate:!0})).attrs.style="position:absolute;left:0;top:0;user-select:none",qd(e=this._oldVNode,i=t)?tf(e,i):(o=Wd(n=e.elm),Zd(i),null!==o&&(Vd(o,i.elm,Xd(n)),Qd(o,[e],0,0))),this._oldVNode=t)},ef.prototype.renderOneToVNode=function(t){return zd(t,Cd(this._id))},ef.prototype.renderToVNode=function(t){t=t||{};var e,i,n,o,r,a=this.storage.getDisplayList(!0),s=this._backgroundColor,l=this._width,h=this._height,u=Cd(this._id),c=(u.animation=t.animation,u.willUpdate=t.willUpdate,u.compress=t.compress,[]),p=(s&&"none"!==s?(p=(s=de(s)).color,s=s.opacity,this._bgVNode=Sd("rect","bg",{width:l,height:h,x:"0",y:"0",id:"0",fill:p,"fill-opacity":s}),c.push(this._bgVNode)):this._bgVNode=null,t.compress?null:this._mainVNode=Sd("g","main",{},[])),s=(this._paintList(a,u,p?p.children:c),p&&c.push(p),g(v(u.defs),function(t){return u.defs[t]}));return s.length&&c.push(Sd("defs","defs",{},s)),t.animation&&(e=u.cssNodes,i=u.cssAnims,n=(a=(a={newline:!0})||{}).newline?"\n":"",o=" {"+n,r=n+"}",a=g(v(e),function(t){return t+o+g(v(e[t]),function(i){return i+":"+e[t][i]+";"}).join(n)+r}).join(n),p=g(v(i),function(t){return"@keyframes "+t+o+g(v(i[t]),function(e){return e+o+g(v(i[t][e]),function(n){var o=i[t][e][n];return n+":"+(o="d"===n?'path("'+o+'")':o)+";"}).join(n)+r}).join(n)+r}).join(n),s=a||p?["<![CDATA[",a,p,"]]>"].join(n):"")&&(a=Sd("style","stl",{},[],s),c.push(a)),Md(l,h,c,t.useViewBox)},ef.prototype.renderToString=function(t){return Td(this.renderToVNode({animation:E((t=t||{}).cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:E(t.useViewBox,!0)}),{newline:!0})},ef.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e,i=this._bgVNode;i&&i.elm&&(e=(t=de(t)).color,t=t.opacity,i.elm.setAttribute("fill",e),t<1)&&i.elm.setAttribute("fill-opacity",t)},ef.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},ef.prototype._paintList=function(t,e,i){for(var n,o,r,a,s,l,h,u=t.length,c=[],p=0,d=0,f=0;f<u;f++){var g=t[f];if(!g.invisible){for(var y=g.__clipPaths,m=y&&y.length||0,v=T&&T.length||0,_=void 0,_=Math.max(m-1,v-1);0<=_&&(!y||!T||y[_]!==T[_]);_--);for(var x=v-1;_<x;x--)n=c[--p-1];for(var w=_+1;w<m;w++){var b={},S=(o=y[w],r=b,h=S=l=s=void 0,l=(a=e).clipPathCache,S=a.defs,(h=l[o.id])||(s={id:h=a.zrId+"-c"+a.clipPathIdx++},S[l[o.id]=h]=Sd("clipPath",h,s,[Bd(o,a)])),r["clip-path"]=xe(h),Sd("g","clip-g-"+d++,b,[]));(n?n.children:i).push(S),n=c[p++]=S}var T=y,v=zd(g,e);v&&(n?n.children:i).push(v)}}},ef.prototype.resize=function(t,e){var i=this._opts,n=this.root,o=this._viewport;null!=t&&(i.width=t),null!=e&&(i.height=e),n&&o&&(o.style.display="none",t=Rl(n,0,i),e=Rl(n,1,i),o.style.display=""),(this._width!==t||this._height!==e)&&(this._width=t,this._height=e,o&&((n=o.style).width=t+"px",n.height=e+"px"),i=this._svgDom)&&(i.setAttribute("width",t),i.setAttribute("height",e))},ef.prototype.getWidth=function(){return this._width},ef.prototype.getHeight=function(){return this._height},ef.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},ef.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},ef.prototype.toDataURL=function(t){var e=encodeURIComponent(this.renderToString()),i="data:image/svg+xml;";return t?(e=Mg(e))&&i+"base64,"+e:i+"charset=UTF-8,"+e},_i("svg",ef),e.Axis=Q_,e.ChartView=$w,e.ComponentModel=Dx,e.ComponentView=Zw,e.List=US,e.Model=J_,e.PRIORITY=wb,e.SeriesModel=qw,e.color=Sg,e.connect=function(t){var e;return x(t)&&(e=t,t=null,f(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+TS++,f(e,function(e){e.group=t})),bS[t]=!0,t},e.dataTool={},e.dependencies={zrender:"5.3.0"},e.disConnect=lh,e.disconnect=xb,e.dispose=function(t){b(t)?t=wS[t]:t instanceof pS||(t=hh(t)),t instanceof pS&&!t.isDisposed()&&t.dispose()},e.env=af,e.extendChartView=function(t){return t=$w.extend(t),$w.registerClass(t),t},e.extendComponentModel=function(t){return t=Dx.extend(t),Dx.registerClass(t),t},e.extendComponentView=function(t){return t=Zw.extend(t),Zw.registerClass(t),t},e.extendSeriesModel=function(t){return t=qw.extend(t),qw.registerClass(t),t},e.format=Z_,e.getCoordinateSystemDimensions=function(t){if(t=iw.get(t))return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},e.getInstanceByDom=hh,e.getInstanceById=function(t){return wS[t]},e.getMap=function(t){var e=zb.getMap;return e&&e(t)},e.graphic=px,e.helper=bb,e.init=function(t,e,i){var n=!(i&&i.ssr);if(n){var o=hh(t);if(o)return o}return(o=new pS(t,e,i)).id="ec_"+SS++,wS[o.id]=o,n&&Ji(t,CS,o.id),sS(o),Bb.trigger("afterinit",o),o},e.innerDrawElementOnCanvas=ql,e.matrix=Ug,e.number=zy,e.parseGeoJSON=Du,e.parseGeoJson=Du,e.registerAction=yh,e.registerCoordinateSystem=mh,e.registerLayout=vh,e.registerLoading=wh,e.registerLocale=Fr,e.registerMap=bh,e.registerPostInit=dh,e.registerPostUpdate=fh,e.registerPreprocessor=ch,e.registerProcessor=ph,e.registerTheme=uh,e.registerTransform=Sh,e.registerUpdateLifecycle=gh,e.registerVisual=_h,e.setCanvasCreator=function(t){n({createCanvas:t})},e.setPlatformAPI=n,e.throttle=ul,e.time=N_,e.use=xu,e.util=G_,e.vector=Ef,e.version="5.3.0",e.zrUtil=Pf,e.zrender=My})}).call(e,i(249).Buffer)},2020:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"chart",staticClass:"chart"})},o=[];n._withStripped=!0},2021:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"chartContainer"},[i("div",{staticClass:"dataDisplay"},[i("div",{staticClass:"selectAge"},[i("div",{staticClass:"leftSelectAge"},[i("span",{staticClass:"agetext"},[t._v("至")]),t._v(" "),i("div",{class:["selectInputAge","agetext",{isCps:t.isCps}],on:{click:t.showAgePicker}},[i("div",{staticClass:"selectedAgeText"},[t._v("\n "+t._s(t.xAxisData[t.selectIndex])+t._s(t.unit)+"\n ")]),t._v(" "),i("i",{staticClass:"dropDown"})]),t._v(" "),i("span",{staticClass:"agetext"},[t._v("可获得")])]),t._v(" "),i("div",{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(t.pureDataSource[t.selectIndex][n])+"\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.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]))]),t._v(t._s(e.tipsText[1])+"\n ")]):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.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.pureDataSource[t.selectIndex][n])+"\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]))]),t._v(t._s(e.tipsText[1])+"\n ")]):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()],1)},o=[];n._withStripped=!0},2022:function(t,e,i){"use strict";function n(t){s||i(2023)}var o=i(1488),r=i(2024),a=i(2),s=!1,l=n,h=Object(a.a)(o.a,r.a,r.b,!1,l,"data-v-4eebaa8b",null);h.options.__file="src\\components\\GoldFinanceChart\\src\\components\\costTable.vue",e.a=h.exports},2023:function(t,e){},2024:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"layer-finance",on:{touchmove:t.preventMove}},[i("div",{staticClass:"layer-finance-mask",on:{click:function(e){return e.stopPropagation(),t.cancel(e)}}}),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(e)}}}),t._v(" "),i("p",{staticClass:"main-title"},[t._v("\n 保单利益演示表\n ")]),t._v(" "),i("p",{staticClass:"cost-title"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),i("p",{staticClass:"cost-table-head"},[t._v("\n 基于用户所选信息的保单利益演示如下:\n ")]),t._v(" "),t.tables.cols&&t.tables.rows&&t.tables.rows.length?[i("div",[i("div",{staticClass:"table-tr thead"},[t._l(t.tables.cols,function(e,n){return[t.showCol(n)?i("span",{key:"head-"+n,staticClass:"table-item",style:t.styleOption},[t._v("\n "+t._s(e)+"\n ")]):t._e()]})],2),t._v(" "),i("div",{staticClass:"cost-scroll"},[i("table",{staticClass:"table-body"},[t.tables.rows&&t.tables.rows.length?i("tbody",t._l(t.tables.rows,function(e,n){return i("tr",{key:"tr-"+n,staticClass:"table-tr "},[t._l(e,function(e,o){return[t.showCol(o)?i("td",{key:"td-"+n+"-"+o,staticClass:"table-item"},[t._v("\n "+t._s(Math.round(100*e)/100)+"\n ")]):t._e()]})],2)}),0):t._e()])])])]:[i("div",{staticClass:"no-data"},[t._v("\n 暂时无法展示\n ")])]],2)])},o=[];n._withStripped=!0},2025:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=this,i=e.$createElement,n=e._self._c||i;return e.isShowChart?n("div",[n("benefit",{attrs:{renderData:e.renderData,theme:e.realTheme,isCps:e.isCps,unit:e.unit,note:e.note,selectIndex:e.selectIndex},on:{"update:selectIndex":function(t){e.selectIndex=t},"update:select-index":function(t){e.selectIndex=t},showCostTable:e.showCostTable,showAgePicker:e.showAgePicker}}),e._v(" "),n("gold-cost-table",{attrs:{visible:e.costTableVisible,tables:e.tables,theme:e.realTheme},on:{cancelCost:function(t){e.costTableVisible=!1}}}),e._v(" "),n("gold-picker",{ref:"goldPicker",attrs:{data:[this.agePickerData],selectedIndex:[e.selectIndex],confirmColor:e.realTheme.color},on:{select:function(e,i){t.setSelectIndex(i[0])}}})],1):e._e()},o=[];n._withStripped=!0},21:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},22:function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},23:function(t,e,i){var n=i(29);t.exports=function(t){return Object(n(t))}},24:function(t,e){e.f={}.propertyIsEnumerable},249:function(t,e,i){"use strict";(function(t){function n(){return r.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t,e){if(n()<e)throw new RangeError("Invalid typed array length");return r.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=r.prototype):(null===t&&(t=new r(e)),t.length=e),t}function r(t,e,i){if(!(r.TYPED_ARRAY_SUPPORT||this instanceof r))return new r(t,e,i);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return a(this,t,e,i)}function a(t,e,i,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?p(t,e,i,n):"string"==typeof e?u(t,e,i):d(t,e)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function l(t,e,i,n){return s(e),e<=0?o(t,e):void 0!==i?"string"==typeof n?o(t,e).fill(i,n):o(t,e).fill(i):o(t,e)}function h(t,e){if(s(e),t=o(t,e<0?0:0|f(e)),!r.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function u(t,e,i){if("string"==typeof i&&""!==i||(i="utf8"),!r.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var n=0|y(e,i);t=o(t,n);var a=t.write(e,i);return a!==n&&(t=t.slice(0,a)),t}function c(t,e){var i=e.length<0?0:0|f(e.length);t=o(t,i);for(var n=0;n<i;n+=1)t[n]=255&e[n];return t}function p(t,e,i,n){if(e.byteLength,i<0||e.byteLength<i)throw new RangeError("'offset' is out of bounds");if(e.byteLength<i+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===i&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,i):new Uint8Array(e,i,n),r.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=r.prototype):t=c(t,e),t}function d(t,e){if(r.isBuffer(e)){var i=0|f(e.length);return t=o(t,i),0===t.length?t:(e.copy(t,0,0,i),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||Z(e.length)?o(t,0):c(t,e);if("Buffer"===e.type&&$(e.data))return c(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function f(t){if(t>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function g(t){return+t!=t&&(t=0),r.alloc(+t)}function y(t,e){if(r.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return X(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return j(t).length;default:if(n)return X(t).length;e=(""+e).toLowerCase(),n=!0}}function m(t,e,i){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if(i>>>=0,e>>>=0,i<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,i);case"utf8":case"utf-8":return k(this,e,i);case"ascii":return D(this,e,i);case"latin1":case"binary":return P(this,e,i);case"base64":return I(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function v(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function _(t,e,i,n,o){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=o?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(o)return-1;i=t.length-1}else if(i<0){if(!o)return-1;i=0}if("string"==typeof e&&(e=r.from(e,n)),r.isBuffer(e))return 0===e.length?-1:x(t,e,i,n,o);if("number"==typeof e)return e&=255,r.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):x(t,[e],i,n,o);throw new TypeError("val must be string, number or Buffer")}function x(t,e,i,n,o){function r(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,i/=2}var h;if(o){var u=-1;for(h=i;h<s;h++)if(r(t,h)===r(e,-1===u?0:h-u)){if(-1===u&&(u=h),h-u+1===l)return u*a}else-1!==u&&(h-=h-u),u=-1}else for(i+l>s&&(i=s-l),h=i;h>=0;h--){for(var c=!0,p=0;p<l;p++)if(r(t,h+p)!==r(e,p)){c=!1;break}if(c)return h}return-1}function w(t,e,i,n){i=Number(i)||0;var o=t.length-i;n?(n=Number(n))>o&&(n=o):n=o;var r=e.length;if(r%2!=0)throw new TypeError("Invalid hex string");n>r/2&&(n=r/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[i+a]=s}return a}function b(t,e,i,n){return q(X(e,t.length-i),t,i,n)}function S(t,e,i,n){return q(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=[],o=e;o<i;){var r=t[o],a=null,s=r>239?4:r>223?3:r>191?2:1;if(o+s<=i){var l,h,u,c;switch(s){case 1:r<128&&(a=r);break;case 2:l=t[o+1],128==(192&l)&&(c=(31&r)<<6|63&l)>127&&(a=c);break;case 3:l=t[o+1],h=t[o+2],128==(192&l)&&128==(192&h)&&(c=(15&r)<<12|(63&l)<<6|63&h)>2047&&(c<55296||c>57343)&&(a=c);break;case 4:l=t[o+1],h=t[o+2],u=t[o+3],128==(192&l)&&128==(192&h)&&128==(192&u)&&(c=(15&r)<<18|(63&l)<<12|(63&h)<<6|63&u)>65535&&c<1114112&&(a=c)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),o+=s}return A(n)}function A(t){var e=t.length;if(e<=J)return String.fromCharCode.apply(String,t);for(var i="",n=0;n<e;)i+=String.fromCharCode.apply(String,t.slice(n,n+=J));return i}function D(t,e,i){var n="";i=Math.min(t.length,i);for(var o=e;o<i;++o)n+=String.fromCharCode(127&t[o]);return n}function P(t,e,i){var n="";i=Math.min(t.length,i);for(var o=e;o<i;++o)n+=String.fromCharCode(t[o]);return n}function O(t,e,i){var n=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>n)&&(i=n);for(var o="",r=e;r<i;++r)o+=W(t[r]);return o}function L(t,e,i){for(var n=t.slice(e,i),o="",r=0;r<n.length;r+=2)o+=String.fromCharCode(n[r]+256*n[r+1]);return o}function E(t,e,i){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>i)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,i,n,o,a){if(!r.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<a)throw new RangeError('"value" argument is out of bounds');if(i+n>t.length)throw new RangeError("Index out of range")}function N(t,e,i,n){e<0&&(e=65535+e+1);for(var o=0,r=Math.min(t.length-i,2);o<r;++o)t[i+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function B(t,e,i,n){e<0&&(e=4294967295+e+1);for(var o=0,r=Math.min(t.length-i,4);o<r;++o)t[i+o]=e>>>8*(n?o:3-o)&255}function z(t,e,i,n,o,r){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function F(t,e,i,n,o){return o||z(t,e,i,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(t,e,i,n,23,4),i+4}function V(t,e,i,n,o){return o||z(t,e,i,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(t,e,i,n,52,8),i+8}function Y(t){if(t=H(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function H(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function W(t){return t<16?"0"+t.toString(16):t.toString(16)}function X(t,e){e=e||1/0;for(var i,n=t.length,o=null,r=[],a=0;a<n;++a){if((i=t.charCodeAt(a))>55295&&i<57344){if(!o){if(i>56319){(e-=3)>-1&&r.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&r.push(239,191,189);continue}o=i;continue}if(i<56320){(e-=3)>-1&&r.push(239,191,189),o=i;continue}i=65536+(o-55296<<10|i-56320)}else o&&(e-=3)>-1&&r.push(239,191,189);if(o=null,i<128){if((e-=1)<0)break;r.push(i)}else if(i<2048){if((e-=2)<0)break;r.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;r.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;r.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return r}function 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,o,r=[],a=0;a<t.length&&!((e-=2)<0);++a)i=t.charCodeAt(a),n=i>>8,o=i%256,r.push(o),r.push(n);return r}function j(t){return K.toByteArray(Y(t))}function q(t,e,i,n){for(var o=0;o<n&&!(o+i>=e.length||o>=t.length);++o)e[o+i]=t[o];return o}function Z(t){return t!==t}var K=i(250),Q=i(251),$=i(252);e.Buffer=r,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,r.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=n(),r.poolSize=8192,r._augment=function(t){return t.__proto__=r.prototype,t},r.from=function(t,e,i){return a(null,t,e,i)},r.TYPED_ARRAY_SUPPORT&&(r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0})),r.alloc=function(t,e,i){return l(null,t,e,i)},r.allocUnsafe=function(t){return h(null,t)},r.allocUnsafeSlow=function(t){return h(null,t)},r.isBuffer=function(t){return!(null==t||!t._isBuffer)},r.compare=function(t,e){if(!r.isBuffer(t)||!r.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,n=e.length,o=0,a=Math.min(i,n);o<a;++o)if(t[o]!==e[o]){i=t[o],n=e[o];break}return i<n?-1:n<i?1:0},r.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},r.concat=function(t,e){if(!$(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return r.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var n=r.allocUnsafe(e),o=0;for(i=0;i<t.length;++i){var a=t[i];if(!r.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},r.byteLength=y,r.prototype._isBuffer=!0,r.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)v(this,e,e+1);return this},r.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},r.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},r.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?k(this,0,t):m.apply(this,arguments)},r.prototype.equals=function(t){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===r.compare(this,t)},r.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),"<Buffer "+t+">"},r.prototype.compare=function(t,e,i,n,o){if(!r.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||i>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=i)return 0;if(n>=o)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var a=o-n,s=i-e,l=Math.min(a,s),h=this.slice(n,o),u=t.slice(e,i),c=0;c<l;++c)if(h[c]!==u[c]){a=h[c],s=u[c];break}return a<s?-1:s<a?1:0},r.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},r.prototype.indexOf=function(t,e,i){return _(this,t,e,i,!0)},r.prototype.lastIndexOf=function(t,e,i){return _(this,t,e,i,!1)},r.prototype.write=function(t,e,i,n){if(void 0===e)n="utf8",i=this.length,e=0;else if(void 0===i&&"string"==typeof e)n=e,i=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(i)?(i|=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var o=this.length-e;if((void 0===i||i>o)&&(i=o),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var r=!1;;)switch(n){case"hex":return w(this,t,e,i);case"utf8":case"utf-8":return b(this,t,e,i);case"ascii":return S(this,t,e,i);case"latin1":case"binary":return T(this,t,e,i);case"base64":return C(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,e,i);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),r=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;r.prototype.slice=function(t,e){var i=this.length;t=~~t,e=void 0===e?i:~~e,t<0?(t+=i)<0&&(t=0):t>i&&(t=i),e<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t);var n;if(r.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=r.prototype;else{var o=e-t;n=new r(o,void 0);for(var a=0;a<o;++a)n[a]=this[a+t]}return n},r.prototype.readUIntLE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=this[t],o=1,r=0;++r<e&&(o*=256);)n+=this[t+r]*o;return n},r.prototype.readUIntBE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},r.prototype.readUInt8=function(t,e){return e||E(t,1,this.length),this[t]},r.prototype.readUInt16LE=function(t,e){return e||E(t,2,this.length),this[t]|this[t+1]<<8},r.prototype.readUInt16BE=function(t,e){return e||E(t,2,this.length),this[t]<<8|this[t+1]},r.prototype.readUInt32LE=function(t,e){return e||E(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},r.prototype.readUInt32BE=function(t,e){return e||E(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},r.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=this[t],o=1,r=0;++r<e&&(o*=256);)n+=this[t+r]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n},r.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||E(t,e,this.length);for(var n=e,o=1,r=this[t+--n];n>0&&(o*=256);)r+=this[t+--n]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*e)),r},r.prototype.readInt8=function(t,e){return e||E(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},r.prototype.readInt16LE=function(t,e){e||E(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},r.prototype.readInt16BE=function(t,e){e||E(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},r.prototype.readInt32LE=function(t,e){return e||E(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},r.prototype.readInt32BE=function(t,e){return e||E(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},r.prototype.readFloatLE=function(t,e){return e||E(t,4,this.length),Q.read(this,t,!0,23,4)},r.prototype.readFloatBE=function(t,e){return e||E(t,4,this.length),Q.read(this,t,!1,23,4)},r.prototype.readDoubleLE=function(t,e){return e||E(t,8,this.length),Q.read(this,t,!0,52,8)},r.prototype.readDoubleBE=function(t,e){return e||E(t,8,this.length),Q.read(this,t,!1,52,8)},r.prototype.writeUIntLE=function(t,e,i,n){if(t=+t,e|=0,i|=0,!n){R(this,t,e,i,Math.pow(2,8*i)-1,0)}var o=1,r=0;for(this[e]=255&t;++r<i&&(o*=256);)this[e+r]=t/o&255;return e+i},r.prototype.writeUIntBE=function(t,e,i,n){if(t=+t,e|=0,i|=0,!n){R(this,t,e,i,Math.pow(2,8*i)-1,0)}var o=i-1,r=1;for(this[e+o]=255&t;--o>=0&&(r*=256);)this[e+o]=t/r&255;return e+i},r.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,1,255,0),r.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},r.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},r.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},r.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):B(this,t,e,!0),e+4},r.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},r.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*i-1);R(this,t,e,i,o-1,-o)}var r=0,a=1,s=0;for(this[e]=255&t;++r<i&&(a*=256);)t<0&&0===s&&0!==this[e+r-1]&&(s=1),this[e+r]=(t/a>>0)-s&255;return e+i},r.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*i-1);R(this,t,e,i,o-1,-o)}var r=i-1,a=1,s=0;for(this[e+r]=255&t;--r>=0&&(a*=256);)t<0&&0===s&&0!==this[e+r+1]&&(s=1),this[e+r]=(t/a>>0)-s&255;return e+i},r.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,1,127,-128),r.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},r.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},r.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},r.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,2147483647,-2147483648),r.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):B(this,t,e,!0),e+4},r.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),r.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},r.prototype.writeFloatLE=function(t,e,i){return F(this,t,e,!0,i)},r.prototype.writeFloatBE=function(t,e,i){return F(this,t,e,!1,i)},r.prototype.writeDoubleLE=function(t,e,i){return V(this,t,e,!0,i)},r.prototype.writeDoubleBE=function(t,e,i){return V(this,t,e,!1,i)},r.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-i&&(n=t.length-e+i);var o,a=n-i;if(this===t&&i<e&&e<n)for(o=a-1;o>=0;--o)t[o+e]=this[o+i];else if(a<1e3||!r.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)t[o+e]=this[o+i];else Uint8Array.prototype.set.call(t,this.subarray(i,i+a),e);return a},r.prototype.fill=function(t,e,i,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,i=this.length):"string"==typeof i&&(n=i,i=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!r.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<i;++a)this[a]=t;else{var s=r.isBuffer(t)?t:X(new r(t,n).toString()),l=s.length;for(a=0;a<i-e;++a)this[a+e]=s[a%l]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,i(112))},25:function(t,e,i){"use strict";var n={model:{prop:"visible",event:"toggle"},props:{visible:{type:Boolean,default:!1}},data:function(){return{isVisible:!1}},watch:{isVisible:function(t){this.$emit("toggle",t)}},mounted:function(){var t=this;this.$watch("visible",function(e,i){e?t.show():i&&t.hide()},{immediate:!0})},methods:{show:function(){return this.isVisible=!0,this},hide:function(){return this.isVisible=!1,this}}};e.a=n},250:function(t,e,i){"use strict";function n(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function o(t){var e=n(t),i=e[0],o=e[1];return 3*(i+o)/4-o}function r(t,e,i){return 3*(e+i)/4-i}function a(t){var e,i,o=n(t),a=o[0],s=o[1],l=new p(r(t,a,s)),h=0,u=s>0?a-4:a;for(i=0;i<u;i+=4)e=c[t.charCodeAt(i)]<<18|c[t.charCodeAt(i+1)]<<12|c[t.charCodeAt(i+2)]<<6|c[t.charCodeAt(i+3)],l[h++]=e>>16&255,l[h++]=e>>8&255,l[h++]=255&e;return 2===s&&(e=c[t.charCodeAt(i)]<<2|c[t.charCodeAt(i+1)]>>4,l[h++]=255&e),1===s&&(e=c[t.charCodeAt(i)]<<10|c[t.charCodeAt(i+1)]<<4|c[t.charCodeAt(i+2)]>>2,l[h++]=e>>8&255,l[h++]=255&e),l}function s(t){return u[t>>18&63]+u[t>>12&63]+u[t>>6&63]+u[63&t]}function l(t,e,i){for(var n,o=[],r=e;r<i;r+=3)n=(t[r]<<16&16711680)+(t[r+1]<<8&65280)+(255&t[r+2]),o.push(s(n));return o.join("")}function h(t){for(var e,i=t.length,n=i%3,o=[],r=0,a=i-n;r<a;r+=16383)o.push(l(t,r,r+16383>a?a:r+16383));return 1===n?(e=t[i-1],o.push(u[e>>2]+u[e<<4&63]+"==")):2===n&&(e=(t[i-2]<<8)+t[i-1],o.push(u[e>>10]+u[e>>4&63]+u[e<<2&63]+"=")),o.join("")}e.byteLength=o,e.toByteArray=a,e.fromByteArray=h;for(var u=[],c=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,g=d.length;f<g;++f)u[f]=d[f],c[d.charCodeAt(f)]=f;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},251:function(t,e){e.read=function(t,e,i,n,o){var r,a,s=8*o-n-1,l=(1<<s)-1,h=l>>1,u=-7,c=i?o-1:0,p=i?-1:1,d=t[e+c];for(c+=p,r=d&(1<<-u)-1,d>>=-u,u+=s;u>0;r=256*r+t[e+c],c+=p,u-=8);for(a=r&(1<<-u)-1,r>>=-u,u+=n;u>0;a=256*a+t[e+c],c+=p,u-=8);if(0===r)r=1-h;else{if(r===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),r-=h}return(d?-1:1)*a*Math.pow(2,r-n)},e.write=function(t,e,i,n,o,r){var a,s,l,h=8*r-o-1,u=(1<<h)-1,c=u>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:r-1,f=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+c>=1?p/l:p*Math.pow(2,1-c),e*l>=2&&(a++,l/=2),a+c>=u?(s=0,a=u):a+c>=1?(s=(e*l-1)*Math.pow(2,o),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,o),a=0));o>=8;t[i+d]=255&s,d+=f,s/=256,o-=8);for(a=a<<o|s,h+=o;h>0;t[i+d]=255&a,d+=f,a/=256,h-=8);t[i+d-f]|=128*g}},252:function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},26:function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},27:function(t,e,i){var n=i(8).f,o=i(6),r=i(3)("toStringTag");t.exports=function(t,e,i){t&&!o(t=i?t:t.prototype,r)&&n(t,r,{configurable:!0,value:e})}},28:function(t,e,i){t.exports={default:i(79),__esModule:!0}},29:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},3:function(t,e,i){var n=i(32)("wks"),o=i(22),r=i(1).Symbol,a="function"==typeof r;(t.exports=function(t){return n[t]||(n[t]=a&&r[t]||(a?r:o)("Symbol."+t))}).store=n},30:function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},31:function(t,e,i){var n=i(32)("keys"),o=i(22);t.exports=function(t){return n[t]||(n[t]=o(t))}},32:function(t,e,i){var n=i(0),o=i(1),r=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:i(16)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},33:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},34:function(t,e,i){var n=i(10);t.exports=function(t,e){if(!n(t))return t;var i,o;if(e&&"function"==typeof(i=t.toString)&&!n(o=i.call(t)))return o;if("function"==typeof(i=t.valueOf)&&!n(o=i.call(t)))return o;if(!e&&"function"==typeof(i=t.toString)&&!n(o=i.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},35:function(t,e){e.f=Object.getOwnPropertySymbols},36:function(t,e,i){e.f=i(3)},37:function(t,e,i){var n=i(1),o=i(0),r=i(16),a=i(36),s=i(8).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=r?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},38:function(t,e,i){var n=i(39);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}}},39:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},4:function(t,e,i){"use strict";function n(t,e){if(t.findIndex)return t.findIndex(e);var i=-1;return t.some(function(t,n,o){var r=e.call(this,t,n,o);if(r)return i=n,r}),i}function o(t){return t?JSON.parse(F()(t)):t}function r(t,e){for(var i in e)t[i]&&"object"===B()(t[i])?r(t[i],e[i]):t[i]=e[i]}function a(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function s(t){return"[object String]"===Object.prototype.toString.call(t)}function l(t){return"[object Number]"===Object.prototype.toString.call(t)}function h(t){return"[object Object]"===Object.prototype.toString.call(t)}function u(t){return"[object Boolean]"===Object.prototype.toString.call(t)}function c(t){return null===t}function p(t){return void 0!==t&&null!==t}function d(t){return void 0===t}function f(t){return"[object Error]"===Object.prototype.toString.call(t)}function g(t){return"function"==typeof t}function y(t,e,i){function n(e){var i=y,n=m;return y=m=void 0,b=e,_=t.apply(n,i)}function o(t,e){return M?(window.cancelAnimationFrame(x),window.requestAnimationFrame(t)):setTimeout(t,e)}function r(t){if(M)return window.cancelAnimationFrame(t);clearTimeout(t)}function a(t){return b=t,x=o(u,e),S?n(t):_}function s(t){var i=t-w,n=t-b,o=e-i;return T?Math.min(o,v-n):o}function l(t){var i=t-w,n=t-b;return void 0===w||i>=e||i<0||T&&n>=v}function u(){var t=Date.now();if(l(t))return c(t);x=o(u,s(t))}function c(t){return x=void 0,C&&y?n(t):(y=m=void 0,_)}function p(){void 0!==x&&r(x),b=0,y=w=m=x=void 0}function d(){return void 0===x?_:c(Date.now())}function f(){return void 0!==x}function g(){for(var t=Date.now(),i=l(t),r=arguments.length,s=Array(r),h=0;h<r;h++)s[h]=arguments[h];if(y=s,m=this,w=t,i){if(void 0===x)return a(w);if(T)return x=o(u,e),n(w)}return void 0===x&&(x=o(u,e)),_}var y=void 0,m=void 0,v=void 0,_=void 0,x=void 0,w=void 0,b=0,S=!1,T=!1,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 m(t,e,i){var n=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return h(i)&&(n="leading"in i?!!i.leading:n,o="trailing"in i?!!i.trailing:o),y(t,e,{leading:n,trailing:o,maxWait:e})}function v(t){return!!/^1\d{10}$/.test(t)}function _(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 x(t){return t.replace(/\s/g,"").replace(/(.{4})(?=.)/g,"$1 ")}function w(t){if(void 0!==t||null!==t)return/^\d+(\.\d+)?$/.test(t+"")?t+"px":t}function b(t){if(!t)return"";var e=t.length;return 2===e?t.split("").join("&emsp;&emsp;"):3===e?t.split("").join("&ensp;"):t}function S(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 T(t,e){var i=/^#([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})$/i.exec(t),n=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t),o=null;return i?o={r:parseInt(i[1]+i[1],16),g:parseInt(i[2]+i[2],16),b:parseInt(i[3]+i[3],16)}:n&&(o={r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}),o?void 0!==e?"rgba("+o.r+", "+o.g+", "+o.b+", "+e+")":"rgb("+o.r+", "+o.g+", "+o.b+")":""}function C(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefhijklmnopqrstuvwxyz",i=e.length,n="";t=t||32;for(var o=0;o<t;o++)n+=e.charAt(Math.floor(Math.random()*i));return n}function M(t,e){var i=e||location.href,n=new RegExp("(\\?|&)"+t+"=([^&#$\\s]+)"),o=i.match(n);return o&&o[2]}function I(t){var e=window.getComputedStyle(t),i="none"===e.display,n=null===t.offsetParent&&"fixed"!==e.position;return i||n}function k(t,e,i){return Math.min(Math.max(t,e),i)}function A(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 D(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 P(t){return t?f(t)?t.message:s(t)?t:t.errmsg||"请求失败,请稍后重试":"请求失败,请稍后重试"}function O(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[],i=new RegExp("https?://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]"),n=0;n<t.length;n++){var o=t[n];if(!i.test(o))return;e.push(o.split("?")[0])}return e}function L(t){var e=JSON.parse(F()(t)),i=e.attrModules,n=void 0===i?{}:i,o=e.plan,r=n.applicant,s=n.insureds,l=n.hcpics,h=n.hctext,u=n.makeup,c=n.apphctext,p=n.apphcpics,d={},f=function(t){var e=null,i=null,n=null,o=null,r={},s={},l={};for(var h in t){var u=t[h].defaultValue,c=t[h].required,p=t[h].display;if(a(u)){var d=O(u);d&&(u=d)}1!==Number(c)&&1!==Number(p)||("idType"===h||"id"===h||"idValidType"===h||"idValidEndTime"===h||"idValidStartTime"===h?(e=e||{},e[h]=u):"socialInsAddr"===h||"socialInsDetail"===h||"socialInsPost"===h||"socialInsTel"===h?(i=i||{},i[h]=u):"residentAddr"===h||"residentDetail"===h||"residentPost"===h||"residentTel"===h?(n=n||{},n[h]=u):"officeAddr"===h||"officeDetail"===h||"officePost"===h||"officeTel"===h?(o=o||{},o[h]=u):"companyIdType"===h||"companyId"===h?(s=s||{},s[h]=u):"detail"===h?(l=l||{},l[h]=u):r[h]=u)}return e&&(r.certificate=e),i&&(r.socialIns=i),n&&(r.resident=n),o&&(r.office=o),s&&(r.companyCertificate=s),l&&(r.companyAddress=l),r};if(n.plan&&(o=f(n.plan)),r&&(d.applicant={},r&&(d.applicant=f(r))),s||o){d.insureds=[];for(var g=s||[""],y=0;y<g.length;y++){var m=g[y],v=null,_={};m&&(v=f(m)),v&&(_.insured=v),o&&(_.plan=o),d.insureds.push(_)}}if(h&&(d.hctext=f(h)),c&&(d.apphctext=f(c)),l&&(d.hcpics=f(l)),p&&(d.apphcpics=f(p)),u){d.makeup={};for(var x=u||[""],w=0;w<x.length;w++){var b=x[w],S=null;b&&(S=f(b)),S&&(d.makeup=R()(d.makeup,S))}}return d}i.d(e,"F",function(){return et}),i.d(e,"v",function(){return it}),e.d=n,e.c=o,e.b=r,e.o=a,e.z=s,e.x=l,e.y=h,e.p=u,e.w=c,e.q=p,e.A=d,e.r=f,e.s=g,e.a=y,e.E=m,e.u=v,e.g=_,e.e=x,e.f=w,e.h=b,e.B=S,e.n=T,e.C=C,e.l=M,e.t=I,e.D=k,e.k=A,e.m=D,e.j=P,e.i=L;var E=i(28),R=i.n(E),N=i(75),B=i.n(N),z=i(57),F=i.n(z),V="undefined"!=typeof window,Y=V&&window.navigator.userAgent.toLowerCase(),H=Y&&/msie|trident/.test(Y),W=Y&&Y.indexOf("msie 9.0")>0,X=Y&&Y.indexOf("edge/")>0,U=Y&&Y.indexOf("android")>0,G=Y&&/iphone|ipad|ipod|ios/.test(Y),j=Y&&/chrome\/\d+/.test(Y)&&!X,q=Y&&/MicroMessenger/i.test(Y),Z=Y&&/wxwork/i.test(Y),K=Y&&/mucxiaoyusan/i.test(Y),Q=Y&&/muckacabao/i.test(Y),$=Y&&/mucyanxuan/i.test(Y),J=K||Q,tt=Y&&/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test(Y),et={isIE:H,isMobile:tt,isIE9:W,isEdge:X,isAndroid:U,isIOS:G,isChrome:j,isWx:q,isWxWork:Z,isApp:J,isXysApp:K,isKcbApp:Q,isYxApp:$},it=/MucWebAutoTester/.test(window.navigator.userAgent)},40:function(t,e,i){var n=i(10),o=i(1).document,r=n(o)&&n(o.createElement);t.exports=function(t){return r?o.createElement(t):{}}},44:function(t,e,i){"use strict";var n=i(16),o=i(13),r=i(49),a=i(7),s=i(18),l=i(67),h=i(27),u=i(71),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||r(C,_,v[_]);else o(o.P+o.F*(p||T),e,v);return v}},46:function(t,e,i){var n=i(9),o=i(68),r=i(33),a=i(31)("IE_PROTO"),s=function(){},l=function(){var t,e=i(40)("iframe"),n=r.length;for(e.style.display="none",i(60).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;n--;)delete l.prototype[r[n]];return l()};t.exports=Object.create||function(t,e){var i;return null!==t?(s.prototype=n(t),i=new s,s.prototype=null,i[a]=t):i=l(),void 0===e?i:o(i,e)}},47:function(t,e,i){var n=i(26);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},48:function(t,e,i){t.exports=!i(5)&&!i(12)(function(){return 7!=Object.defineProperty(i(40)("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),o=i(11),r=i(69)(!1),a=i(31)("IE_PROTO");t.exports=function(t,e){var i,s=o(t),l=0,h=[];for(i in s)i!=a&&n(s,i)&&h.push(i);for(;e.length>l;)n(s,i=e[l++])&&(~r(h,i)||h.push(i));return h}},51:function(t,e,i){var n=i(50),o=i(33).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},515: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||"确定"}}}},52:function(t,e,i){"use strict";var n=i(66)(!0);i(44)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=n(e,i),this._i+=t.length,{value:t,done:!1})})},53:function(t,e,i){var n=i(11),o=i(51).f,r={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==r.call(t)?s(t):o(n(t))}},533: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])}}}},54:function(t,e,i){i(72);for(var n=i(1),o=i(7),r=i(18),a=i(3)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var h=s[l],u=n[h],c=u&&u.prototype;c&&!c[a]&&o(c,a,h),r[h]=r.Array}},55:function(t,e,i){"use strict";var n=i(1),o=i(6),r=i(5),a=i(13),s=i(49),l=i(74).KEY,h=i(12),u=i(32),c=i(27),p=i(22),d=i(3),f=i(36),g=i(37),y=i(82),m=i(77),v=i(9),_=i(10),x=i(23),w=i(11),b=i(34),S=i(21),T=i(46),C=i(53),M=i(83),I=i(35),k=i(8),A=i(14),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=r&&h(function(){return 7!=T(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,i){var n=D(H,e);n&&delete H[e],P(t,e,i),n&&t!==H&&P(H,e,n)}:P,j=function(t){var e=V[t]=T(L.prototype);return e._k=t,e},q=W&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},Z=function(t,e,i){return t===H&&Z(Y,e,i),v(t),e=b(e,!0),v(i),o(V,e)?(i.enumerable?(o(t,N)&&t[N][e]&&(t[N][e]=!1),i=T(i,{enumerable:S(0,!1)})):(o(t,N)||P(t,N,S(1,{})),t[N][e]=!0),G(t,e,i)):P(t,e,i)},K=function(t,e){v(t);for(var i,n=y(e=w(e)),o=0,r=n.length;r>o;)Z(t,i=n[o++],e[i]);return t},Q=function(t,e){return void 0===e?T(t):K(T(t),e)},$=function(t){var e=z.call(this,t=b(t,!0));return!(this===H&&o(V,t)&&!o(Y,t))&&(!(e||!o(this,t)||!o(V,t)||o(this,N)&&this[N][t])||e)},J=function(t,e){if(t=w(t),e=b(e,!0),t!==H||!o(V,e)||o(Y,e)){var i=D(t,e);return!i||!o(V,e)||o(t,N)&&t[N][e]||(i.enumerable=!0),i}},tt=function(t){for(var e,i=O(w(t)),n=[],r=0;i.length>r;)o(V,e=i[r++])||e==N||e==l||n.push(e);return n},et=function(t){for(var e,i=t===H,n=O(i?Y:w(t)),r=[],a=0;n.length>a;)!o(V,e=n[a++])||i&&!o(H,e)||r.push(V[e]);return r};W||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(i){this===H&&e.call(Y,i),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),G(this,t,S(1,i))};return r&&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(24).f=$,I.f=et,r&&!i(16)&&s(H,"propertyIsEnumerable",$,!0),f.f=function(t){return j(d(t))}),a(a.G+a.W+a.F*!W,{Symbol:L});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;it.length>nt;)d(it[nt++]);for(var ot=A(d.store),rt=0;ot.length>rt;)g(ot[rt++]);a(a.S+a.F*!W,"Symbol",{for:function(t){return o(F,t+="")?F[t]:F[t]=L(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){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],o=1;arguments.length>o;)n.push(arguments[o++]);if(i=e=n[1],(_(e)||void 0!==t)&&!q(t))return m(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!q(e))return e}),n[1]=e,R.apply(E,n)}}),L.prototype[B]||i(7)(L.prototype,B,L.prototype.valueOf),c(L,"Symbol"),c(Math,"Math",!0),c(n.JSON,"JSON",!0)},56:function(t,e,i){var n=i(13),o=i(0),r=i(12);t.exports=function(t,e){var i=(o.Object||{})[t]||Object[t],a={};a[t]=e(i),n(n.S+n.F*r(function(){i(1)}),"Object",a)}},57:function(t,e,i){t.exports={default:i(78),__esModule:!0}},58:function(t,e,i){var n=i(30),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},582:function(t,e,i){"use strict";var n=i(114),o=i(104),r=i(65),a=i(111),s=i(533),l=i(515),h=i(25),u=i(146);e.a={name:"ActPicker",mixins:[r.a,h.a,s.a,l.a,a.a],props:{pending:{type:Boolean,default:!1}},data:function(){return{finalData:this.data.slice()}},created:function(){this._values=[],this._indexes=this.selectedIndex},methods:{confirm:function(){if(this._canConfirm()){this.hide();var t=!1,e=[],i=this.finalData.length,n=this._values.length;n!==i&&(t=!0,n>i&&(this._values.length=this._indexes.length=i));for(var o=0;o<i;o++){var r=this._getSelectIndex(this.wheels[o]);this._indexes[o]=r;var a=null,s="";this.finalData[o].length&&(a=this.finalData[o][r][this.valueKey],s=this.finalData[o][r][this.textKey]),this._values[o]!==a&&(t=!0),this._values[o]=a,e[o]=s}this.$emit("select",this._values,this._indexes,e),t&&this.$emit("value-change",this._values,this._indexes,e)}},maskClick:function(){this.maskClosable&&this.cancel()},cancel:function(){this.hide(),this.$emit("cancel")},show:function(){var t=this;if(!this.isVisible)if(this.isVisible=!0,!this.wheels||this.dirty)this.$nextTick(function(){t.wheels=t.wheels||[];for(var e=t.$refs.wheelWrapper,i=0;i<t.finalData.length;i++)t._createWheel(e,i).enable(),t.wheels[i].wheelTo(t._indexes[i]);t.dirty&&t._destroyExtraWheels(),t.dirty=!1});else for(var e=0;e<this.finalData.length;e++)this.wheels[e].enable(),this.wheels[e].wheelTo(this._indexes[e])},hide:function(){if(this.isVisible){this.isVisible=!1;for(var t=0;t<this.finalData.length;t++)this.wheels[t].disable()}},setData:function(t,e){var i=this;this._indexes=e?[].concat(e):[],this.finalData=t.slice(),this.isVisible?this.$nextTick(function(){var t=i.$refs.wheelWrapper;i.finalData.forEach(function(e,n){i._createWheel(t,n),i.wheels[n].wheelTo(i._indexes[n])}),i._destroyExtraWheels()}):this.dirty=!0},refill:function(t){var e=this,i=[];return t.length?(t.forEach(function(t,n){i[n]=e.refillColumn(n,t)}),i):i},refillColumn:function(t,e){var i=this,n=this.$refs.wheelWrapper,o=n.children[t].querySelector(".act-picker-wheel-scroll"),r=!!this.wheels&&this.wheels[t],a=0;if(o&&r){var s=this.finalData[t];this.$set(this.finalData,t,e);var l=r.getSelectedIndex();if(s.length)for(var h=s[l][this.valueKey],u=0;u<e.length;u++)if(e[u][this.valueKey]===h){a=u;break}this._indexes[t]=a,this.$nextTick(function(){r=i._createWheel(n,t),r.wheelTo(a)})}return a},scrollTo:function(t,e){var i=this.wheels[t];this._indexes[t]=e,i.wheelTo(e)},refresh:function(){var t=this;this.$nextTick(function(){t.wheels.forEach(function(t){t.refresh()})})},_createWheel:function(t,e){var i=this;if(this.wheels[e])this.wheels[e].refresh();else{var o=this.wheels[e]=new n.default(t.children[e],{wheel:{selectedIndex:this._indexes[e]||0,wheelWrapperClass:"act-picker-wheel-scroll",wheelItemClass:"act-picker-wheel-item"},swipeTime:this.swipeTime,observeDOM:!1,useTransition:u.a});o.on("scrollEnd",function(){i.$emit("change",e,i._getSelectIndex(o))})}return this.wheels[e]},_destroyExtraWheels:function(){var t=this.finalData.length;if(this.wheels.length>t){this.wheels.splice(t).forEach(function(t){t.destroy()})}},_canConfirm:function(){return!this.pending&&this.wheels.every(function(t){return!t.isInTransition})},_getFlexOrder:function(t){return t[0]?t[0][this.orderKey]:0},_getSelectIndex:function(t){var e=t.y;return u.a?t.getSelectedIndex():e>t.minScrollY?0:e<t.maxScrollY?t.items.length-1:Math.round(Math.abs(e/t.itemHeight))}},beforeDestroy:function(){this.wheels&&this.wheels.forEach(function(t){t.destroy()}),this.wheels=null},components:{ActPopup:o.a}}},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(1).document;t.exports=n&&n.documentElement},61:function(t,e){},62:function(t,e,i){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var o=i(76),r=i.n(o),a=i(92),s=i.n(a),l=i(28),h=i.n(l),u=i(95),c=i.n(u),p=c.a,d=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,g=function(){try{if(!h.a)return!1;var t=new String("abc");if(t[5]="de","5"===s()(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;if("0123456789"!==s()(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===r()(h()({},n)).join("")}catch(t){return!1}}()?h.a:function(t,e){for(var i,o,r=n(t),a=1;a<arguments.length;a++){i=Object(arguments[a]);for(var s in i)d.call(i,s)&&(r[s]=i[s]);if(p){o=p(i);for(var l=0;l<o.length;l++)f.call(i,o[l])&&(r[o[l]]=i[o[l]])}}return r};e.a=g},64:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},65:function(t,e,i){"use strict";e.a={props:{zIndex:{type:Number,default:100},maskClosable:{type:Boolean,default:!1}}}},66:function(t,e,i){var n=i(30),o=i(29);t.exports=function(t){return function(e,i){var r,a,s=String(o(e)),l=n(i),h=s.length;return l<0||l>=h?t?"":void 0:(r=s.charCodeAt(l),r<55296||r>56319||l+1===h||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):r:t?s.slice(l,l+2):a-56320+(r-55296<<10)+65536)}}},67:function(t,e,i){"use strict";var n=i(46),o=i(21),r=i(27),a={};i(7)(a,i(3)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=n(a,{next:o(1,i)}),r(t,e+" Iterator")}},68:function(t,e,i){var n=i(8),o=i(9),r=i(14);t.exports=i(5)?Object.defineProperties:function(t,e){o(t);for(var i,a=r(e),s=a.length,l=0;s>l;)n.f(t,i=a[l++],e[i]);return t}},69:function(t,e,i){var n=i(11),o=i(58),r=i(70);t.exports=function(t){return function(e,i,a){var s,l=n(e),h=o(l.length),u=r(a,h);if(t&&i!=i){for(;h>u;)if((s=l[u++])!=s)return!0}else for(;h>u;u++)if((t||u in l)&&l[u]===i)return t||u||0;return!t&&-1}}},7:function(t,e,i){var n=i(8),o=i(21);t.exports=i(5)?function(t,e,i){return n.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},70:function(t,e,i){var n=i(30),o=Math.max,r=Math.min;t.exports=function(t,e){return t=n(t),t<0?o(t+e,0):r(t,e)}},71:function(t,e,i){var n=i(6),o=i(23),r=i(31)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,r)?t[r]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},72:function(t,e,i){"use strict";var n=i(73),o=i(64),r=i(18),a=i(11);t.exports=i(44)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,i):"values"==e?o(0,t[i]):o(0,[i,t[i]])},"values"),r.Arguments=r.Array,n("keys"),n("values"),n("entries")},73:function(t,e){t.exports=function(){}},74:function(t,e,i){var n=i(22)("meta"),o=i(10),r=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(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!r(t,n)){if(!l(t))return"F";if(!e)return"E";u(t)}return t[n].i},p=function(t,e){if(!r(t,n)){if(!l(t))return!0;if(!e)return!1;u(t)}return t[n].w},d=function(t){return h&&f.NEED&&l(t)&&!r(t,n)&&u(t),t},f=t.exports={KEY:n,NEED:!1,fastKey:c,getWeak:p,onFreeze:d}},75:function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=i(84),r=n(o),a=i(86),s=n(a),l="function"==typeof s.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===l(r.default)?function(t){return void 0===t?"undefined":l(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":l(t)}},76:function(t,e,i){t.exports={default:i(90),__esModule:!0}},77:function(t,e,i){var n=i(26);t.exports=Array.isArray||function(t){return"Array"==n(t)}},78:function(t,e,i){var n=i(0),o=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},79:function(t,e,i){i(80),t.exports=i(0).Object.assign},8:function(t,e,i){var n=i(9),o=i(48),r=i(34),a=Object.defineProperty;e.f=i(5)?Object.defineProperty:function(t,e,i){if(n(t),e=r(e,!0),n(i),o)try{return a(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},80:function(t,e,i){var n=i(13);n(n.S+n.F,"Object",{assign:i(81)})},81:function(t,e,i){"use strict";var n=i(5),o=i(14),r=i(35),a=i(24),s=i(23),l=i(47),h=Object.assign;t.exports=!h||i(12)(function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach(function(t){e[t]=t}),7!=h({},t)[i]||Object.keys(h({},e)).join("")!=n})?function(t,e){for(var i=s(t),h=arguments.length,u=1,c=r.f,p=a.f;h>u;)for(var d,f=l(arguments[u++]),g=c?o(f).concat(c(f)):o(f),y=g.length,m=0;y>m;)d=g[m++],n&&!p.call(f,d)||(i[d]=f[d]);return i}:h},82:function(t,e,i){var n=i(14),o=i(35),r=i(24);t.exports=function(t){var e=n(t),i=o.f;if(i)for(var a,s=i(t),l=r.f,h=0;s.length>h;)l.call(t,a=s[h++])&&e.push(a);return e}},83:function(t,e,i){var n=i(24),o=i(21),r=i(11),a=i(34),s=i(6),l=i(48),h=Object.getOwnPropertyDescriptor;e.f=i(5)?h:function(t,e){if(t=r(t),e=a(e,!0),l)try{return h(t,e)}catch(t){}if(s(t,e))return o(!n.f.call(t,e),t[e])}},84:function(t,e,i){t.exports={default:i(85),__esModule:!0}},85:function(t,e,i){i(52),i(54),t.exports=i(36).f("iterator")},86:function(t,e,i){t.exports={default:i(87),__esModule:!0}},87:function(t,e,i){i(55),i(61),i(88),i(89),t.exports=i(0).Symbol},88:function(t,e,i){i(37)("asyncIterator")},89:function(t,e,i){i(37)("observable")},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){i(91),t.exports=i(0).Object.keys},91:function(t,e,i){var n=i(23),o=i(14);i(56)("keys",function(){return function(t){return o(n(t))}})},92:function(t,e,i){t.exports={default:i(93),__esModule:!0}},93:function(t,e,i){i(94);var n=i(0).Object;t.exports=function(t){return n.getOwnPropertyNames(t)}},94:function(t,e,i){i(56)("getOwnPropertyNames",function(){return i(53).f})},942:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(15),o=i(943);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createPicker=Object(n.a)(o.a,t)},e.default=o.a},943:function(t,e,i){"use strict";function n(t){s||i(944)}var o=i(582),r=i(945),a=i(2),s=!1,l=n,h=Object(a.a)(o.a,r.a,r.b,!1,l,"data-v-65cf9f1c",null);h.options.__file="src\\components\\Picker\\src\\index.vue",e.a=h.exports},944:function(t,e){},945:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("transition",{attrs:{name:"act-picker-fade"}},[i("act-popup",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],attrs:{type:"picker",mask:!0,center:!1,topBorderRadius:!0,zIndex:t.zIndex},on:{touchmove:function(t){t.preventDefault()},"mask-click":t.maskClick}},[i("transition",{attrs:{name:"act-picker-move"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-picker-panel",on:{click:function(t){t.stopPropagation()}}},[i("div",{staticClass:"act-picker-choose"},[i("span",{staticClass:"act-picker-cancel",style:{color:t.cancelColor},on:{click:t.cancel}},[t._v(t._s(t._cancelTxt))]),t._v(" "),i("span",{staticClass:"act-picker-confirm",style:{color:t.confirmColor},on:{click:t.confirm}},[t._v(t._s(t._confirmTxt))]),t._v(" "),i("div",{staticClass:"act-picker-title-group"},[i("h1",{staticClass:"act-picker-title",domProps:{innerHTML:t._s(t.title)}}),t._v(" "),t.subtitle?i("h2",{staticClass:"act-picker-subtitle",domProps:{innerHTML:t._s(t.subtitle)}}):t._e()])]),t._v(" "),i("div",{staticClass:"act-picker-content"},[i("i",{staticClass:"border-bottom-1px"}),t._v(" "),i("i",{staticClass:"border-top-1px"}),t._v(" "),i("div",{ref:"wheelWrapper",staticClass:"act-picker-wheel-wrapper"},t._l(t.finalData,function(e,n){return i("div",{key:n,style:{order:t._getFlexOrder(e)}},[i("ul",{staticClass:"act-picker-wheel-scroll"},t._l(e,function(e,n){return i("li",{key:n,staticClass:"act-picker-wheel-item",domProps:{innerHTML:t._s(e[t.textKey])}})}),0)])}),0)]),t._v(" "),i("div",{staticClass:"act-picker-footer"})])])],1)],1)},o=[];n._withStripped=!0},95:function(t,e,i){t.exports={default:i(96),__esModule:!0}},96:function(t,e,i){i(55),t.exports=i(0).Object.getOwnPropertySymbols},97:function(t,e,i){"use strict";function n(t){var e={},i={},n={};for(var l in t)if(t.hasOwnProperty(l))if(-1!==s.indexOf(l))e[l]=t[l];else if(a.test(l)){var h=a.exec(l)[1];h=Object(r.a)(h),n[h]=t[l]}else i[l]=t[l];return e.on=Object(o.a)(n,e.on),e.props=Object(o.a)(i,e.props),e}e.a=n;var o=i(62),r=i(98),a=new RegExp(/^on(.+)/),s=["class","style","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","key","ref","refInFor"]},98:function(t,e,i){"use strict";function n(t,e){var i=l(t,e);return i.charAt(0).toLowerCase()+i.slice(1)}e.a=n;var o=i(28),r=i.n(o),a=i(4),s=function(t){for(var e=!1,i=!1,n=!1,o=0;o<t.length;o++){var r=t[o];e&&/[a-zA-Z]/.test(r)&&r.toUpperCase()===r?(t=t.slice(0,o)+"-"+t.slice(o),e=!1,n=i,i=!0,o++):i&&n&&/[a-zA-Z]/.test(r)&&r.toLowerCase()===r?(t=t.slice(0,o-1)+"-"+t.slice(o-1),n=i,i=!1,e=!0):(e=r.toLowerCase()===r&&r.toUpperCase()!==r,n=i,i=r.toUpperCase()===r&&r.toLowerCase()!==r)}return t},l=function(t,e){if("string"!=typeof t&&!Object(a.o)(t))throw new TypeError("Expected the input to be `string | string[]`");e=r()({pascalCase:!1},e);return t=Array.isArray(t)?t.map(function(t){return t.trim()}).filter(function(t){return t.length}).join("-"):t.trim(),0===t.length?"":1===t.length?e.pascalCase?t.toUpperCase():t.toLowerCase():(t!==t.toLowerCase()&&(t=s(t)),t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(t,e){return e.toUpperCase()}).replace(/\d+(\w|$)/g,function(t){return t.toUpperCase()}),function(t){return e.pascalCase?t.charAt(0).toUpperCase()+t.slice(1):t}(t))}},99:function(t,e,i){"use strict";function n(t,e,i,n){var r=void 0,a=void 0,s=new t({render:function(t){var i=a&&a(t);return i&&!Object(o.o)(i)&&(i=[i]),t(e,r,i||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return s.updateRenderData=function(t,e){r=t,a=e},s.updateRenderData(i,n),s.$mount(),s.init(),s.$children[0]}e.a=n;var o=i(4)}})});