12345678910111213141516171819 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5f29ed8e"],{"1fb5":function(t,e,n){"use strict";e.byteLength=function(t){t=u(t);var e=t[0];t=t[1];return 3*(e+t)/4-t},e.toByteArray=function(t){var e,n,i=u(t),a=i[0],s=(i=i[1],new r(function(t,e){return 3*(t+e)/4-e}(a,i))),l=0,c=0<i?a-4:a;for(n=0;n<c;n+=4)e=o[t.charCodeAt(n)]<<18|o[t.charCodeAt(n+1)]<<12|o[t.charCodeAt(n+2)]<<6|o[t.charCodeAt(n+3)],s[l++]=e>>16&255,s[l++]=e>>8&255,s[l++]=255&e;return 2===i&&(e=o[t.charCodeAt(n)]<<2|o[t.charCodeAt(n+1)]>>4,s[l++]=255&e),1===i&&(e=o[t.charCodeAt(n)]<<10|o[t.charCodeAt(n+1)]<<4|o[t.charCodeAt(n+2)]>>2,s[l++]=e>>8&255,s[l++]=255&e),s},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,r=[],a=16383,s=0,l=n-o;s<l;s+=a)r.push(function(t,e,n){for(var o,r=[],a=e;a<n;a+=3)o=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),r.push(function(t){return i[t>>18&63]+i[t>>12&63]+i[t>>6&63]+i[63&t]}(o));return r.join("")}(t,s,l<s+a?l:s+a));return 1==o?(e=t[n-1],r.push(i[e>>2]+i[e<<4&63]+"==")):2==o&&(e=(t[n-2]<<8)+t[n-1],r.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"=")),r.join("")};for(var i=[],o=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)i[s]=a[s],o[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(0<e%4)throw new Error("Invalid string. Length must be a multiple of 4");return t=t.indexOf("="),e=(t=-1===t?e:t)===e?0:4-t%4,[t,e]}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},"22d1":function(t,e,n){"use strict";var i,o,r,a,s,l,u=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},c=new function(){this.browser=new u,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?(c.wxa=!0,c.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?c.worker=!0:"undefined"==typeof navigator?(c.node=!0,c.svgSupported=!0):(l=navigator.userAgent,o=(i=c).browser,r=l.match(/Firefox\/([\d.]+)/),a=l.match(/MSIE\s([\d.]+)/)||l.match(/Trident\/.+?rv:(([\d.]+))/),s=l.match(/Edge?\/([\d.]+)/),l=/micromessenger/i.test(l),r&&(o.firefox=!0,o.version=r[1]),a&&(o.ie=!0,o.version=a[1]),s&&(o.edge=!0,o.version=s[1],o.newEdge=18<+s[1].split(".")[0]),l&&(o.weChat=!0),i.svgSupported="undefined"!=typeof SVGRect,i.touchEventsSupported="ontouchstart"in window&&!o.ie&&!o.edge,i.pointerEventsSupported="onpointerdown"in window&&(o.edge||o.ie&&11<=+o.version),i.domSupported="undefined"!=typeof document,r=document.documentElement.style,i.transform3dSupported=(o.ie&&"transition"in r||o.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in r)&&!("OTransition"in r),i.transformSupported=i.transform3dSupported||o.ie&&9<=+o.version),e.a=c},"2de2":function(t,e,n){"use strict";n.d(e,"d",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return r})),n.d(e,"e",(function(){return a})),n.d(e,"a",(function(){return s}));var i="/duoduo-service/setup-service/",o="/duoduo-service/object-service/",r="/duoduo-service/duoduoenv-service/",a="/duoduo-service/",s="/duoduo-service/custom-service/"},"313e":function(t,e,n){"use strict";n.d(e,"b",(function(){return wm})),n.d(e,"a",(function(){return o}));var i={},o=(n.r(i),n.d(i,"updateProps",(function(){return cs})),n.d(i,"initProps",(function(){return hs})),n.d(i,"removeElement",(function(){return ds})),n.d(i,"removeElementWithFadeOut",(function(){return gs})),n.d(i,"isElementRemoved",(function(){return ps})),n.d(i,"extendShape",(function(){return pf})),n.d(i,"extendPath",(function(){return ff})),n.d(i,"registerShape",(function(){return gf})),n.d(i,"getShapeClass",(function(){return yf})),n.d(i,"makePath",(function(){return mf})),n.d(i,"makeImage",(function(){return vf})),n.d(i,"mergePath",(function(){return _f})),n.d(i,"resizePath",(function(){return bf})),n.d(i,"subPixelOptimizeLine",(function(){return wf})),n.d(i,"subPixelOptimizeRect",(function(){return Sf})),n.d(i,"subPixelOptimize",(function(){return Mf})),n.d(i,"getTransform",(function(){return If})),n.d(i,"applyTransform",(function(){return Of})),n.d(i,"transformDirection",(function(){return Tf})),n.d(i,"groupTransition",(function(){return Af})),n.d(i,"clipPointsByRect",(function(){return kf})),n.d(i,"clipRectByRect",(function(){return Df})),n.d(i,"createIcon",(function(){return Lf})),n.d(i,"linePolygonIntersect",(function(){return Pf})),n.d(i,"lineLineIntersect",(function(){return jf})),n.d(i,"setTooltipConfig",(function(){return Rf})),n.d(i,"traverseElements",(function(){return Ef})),n.d(i,"Group",(function(){return Gn})),n.d(i,"Image",(function(){return Ar})),n.d(i,"Text",(function(){return ia})),n.d(i,"Circle",(function(){return Xp})),n.d(i,"Ellipse",(function(){return Kp})),n.d(i,"Sector",(function(){return fd})),n.d(i,"Ring",(function(){return md})),n.d(i,"Polygon",(function(){return Sd})),n.d(i,"Polyline",(function(){return Td})),n.d(i,"Rect",(function(){return Br})),n.d(i,"Line",(function(){return Dd})),n.d(i,"BezierCurve",(function(){return zd})),n.d(i,"Arc",(function(){return Hd})),n.d(i,"IncrementalDisplayable",(function(){return lf})),n.d(i,"CompoundPath",(function(){return Wd})),n.d(i,"LinearGradient",(function(){return qd})),n.d(i,"RadialGradient",(function(){return Qd})),n.d(i,"BoundingRect",(function(){return xn})),n.d(i,"OrientedBoundingRect",(function(){return rf})),n.d(i,"Point",(function(){return un})),n.d(i,"Path",(function(){return br})),{}),r=(n.r(o),n.d(o,"extendShape",(function(){return pf})),n.d(o,"extendPath",(function(){return ff})),n.d(o,"makePath",(function(){return mf})),n.d(o,"makeImage",(function(){return vf})),n.d(o,"mergePath",(function(){return _f})),n.d(o,"resizePath",(function(){return bf})),n.d(o,"createIcon",(function(){return Lf})),n.d(o,"updateProps",(function(){return cs})),n.d(o,"initProps",(function(){return hs})),n.d(o,"getTransform",(function(){return If})),n.d(o,"clipPointsByRect",(function(){return kf})),n.d(o,"clipRectByRect",(function(){return Df})),n.d(o,"registerShape",(function(){return gf})),n.d(o,"getShapeClass",(function(){return yf})),n.d(o,"Group",(function(){return Gn})),n.d(o,"Image",(function(){return Ar})),n.d(o,"Text",(function(){return ia})),n.d(o,"Circle",(function(){return Xp})),n.d(o,"Ellipse",(function(){return Kp})),n.d(o,"Sector",(function(){return fd})),n.d(o,"Ring",(function(){return md})),n.d(o,"Polygon",(function(){return Sd})),n.d(o,"Polyline",(function(){return Td})),n.d(o,"Rect",(function(){return Br})),n.d(o,"Line",(function(){return Dd})),n.d(o,"BezierCurve",(function(){return zd})),n.d(o,"Arc",(function(){return Hd})),n.d(o,"IncrementalDisplayable",(function(){return lf})),n.d(o,"CompoundPath",(function(){return Wd})),n.d(o,"LinearGradient",(function(){return qd})),n.d(o,"RadialGradient",(function(){return Qd})),n.d(o,"BoundingRect",(function(){return xn})),function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)});function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create,Object.create;var s=n("22d1"),l=n("6d8b"),u=function(t,e){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function h(t,e){return[t=null==t?0:t,e=null==e?0:e]}function p(t,e){return t[0]=e[0],t[1]=e[1],t}function d(t){return[t[0],t[1]]}function f(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function g(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function y(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function m(t){return Math.sqrt(v(t))}function v(t){return t[0]*t[0]+t[1]*t[1]}function x(t,e,n){t[0]=e[0]*n,t[1]=e[1]*n}function _(t,e){var n=m(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function b(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}Object.create,Object.create;var w=b,S=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function M(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function I(t,e,n){var i=e[0];e=e[1];return t[0]=n[0]*i+n[2]*e+n[4],t[1]=n[1]*i+n[3]*e+n[5],t}function O(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function T(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var C=function(t,e){this.target=t,this.topTarget=e&&e.topTarget};function A(t){(this.handler=t).on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}A.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 C(e,t),"dragstart",t.event))},A.prototype._drag=function(t){var e,n,i,o,r=this._draggingTarget;r&&(e=t.offsetX,n=t.offsetY,i=e-this._x,o=n-this._y,this._x=e,this._y=n,r.drift(i,o,t),this.handler.dispatchToElement(new C(r,t),"drag",t.event),i=this.handler.findHover(e,n,r).target,o=this._dropTarget,r!==(this._dropTarget=i)&&(o&&i!==o&&this.handler.dispatchToElement(new C(o,t),"dragleave",t.event),i&&i!==o&&this.handler.dispatchToElement(new C(i,t),"dragenter",t.event)))},A.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new C(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new C(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null};var k=A;function D(t){t&&(this._$eventProcessor=t)}D.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;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===n)return this;return r={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},e=o[t].length-1,i=o[t][e],i&&i.callAtLast?o[t].splice(e,0,r):o[t].push(r),this},D.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},D.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],o=0,r=n[t].length;o<r;o++)n[t][o].h!==e&&i.push(n[t][o]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},D.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var r=e.length,a=i.length,s=0;s<a;s++){var l=i[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)}}return o&&o.afterTrigger&&o.afterTrigger(t),this},D.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var r=e.length,a=e[r-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!o||!o.filter||null==u.query||o.filter(t,u.query))switch(r){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,r-1))}}return o&&o.afterTrigger&&o.afterTrigger(t),this};var L=D,P=Math.log(2);function j(t,e,n,i,o,r){var a,s=i+"-"+o,l=t.length;if(r.hasOwnProperty(s))return r[s];if(1===e)return a=Math.round(Math.log((1<<l)-1&~o)/P),t[n][a];for(var u=i|1<<n,c=n+1;i&1<<c;)c++;for(var h=0,p=0,d=0;p<l;p++){var f=1<<p;f&o||(h+=(d%2?-1:1)*t[n][p]*j(t,e-1,c,u,o|f,r),d++)}return r[s]=h}function R(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},o=j(n,8,0,0,0,i);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)*j(n,7,0===a?1:0,1<<a,1<<s,i)/o*e[a];return function(t,e,n){var i=e*r[6]+n*r[7]+1;t[0]=(e*r[0]+n*r[1]+r[2])/i,t[1]=(e*r[3]+n*r[4]+r[5])/i}}}var N="___zrEVENTSAVED",E=[];function z(t,e,n,i,o){if(e.getBoundingClientRect&&s.a.domSupported&&!B(e)){var r=e[N]||(e[N]={});e=function(t,e,n){for(var i=n?"invTrans":"trans",o=e[i],r=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,p=c.left;c=c.top;a.push(p,c),l=l&&r&&p===r[h]&&c===r[1+h],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&o?o:(e.srcCoords=a,e[i]=n?R(s,a):R(a,s))}(function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],o=["top","bottom"],r=0;r<4;r++){var a=document.createElement("div"),s=a.style,l=r%2,u=(r>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",o[u]+":0",i[1-l]+":auto",o[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,r),r,o);if(e)return e(t,n,i),!0}return!1}function B(t){return"CANVAS"===t.nodeName.toUpperCase()}var V=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,F=[],H=s.a.browser.firefox&&+s.a.browser.version.split(".")[0]<39;function G(t,e,n,i){return n=n||{},i?W(t,e,n):H&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):W(t,e,n),n}function W(t,e,n){if(s.a.domSupported&&t.getBoundingClientRect){var i,o=e.clientX;e=e.clientY;if(B(t))return i=t.getBoundingClientRect(),n.zrX=o-i.left,void(n.zrY=e-i.top);if(z(F,t,o,e))return n.zrX=F[0],void(n.zrY=F[1])}n.zrX=n.zrY=0}function Y(t){return t||window.event}function U(t,e,n){if(null!=(e=Y(e)).zrX)return e;var i=e.type;i&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&G(t,i,e,n):(G(t,e,e,n),i=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX;t=t.deltaY;return null!=n&&null!=t?3*(0!==t?Math.abs(t):Math.abs(n))*(0<t||!(t<0)&&0<n?-1:1):e}(e),e.zrDelta=i?i/120:-(e.detail||0)/3),t=e.button;return null==e.which&&void 0!==t&&V.test(e.type)&&(e.which=1&t?1:2&t?3:4&t?2:0),e}function X(t,e,n,i){t.addEventListener(e,n,i)}var Z=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function q(t){return 2===t.which||3===t.which}Q.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},Q.prototype.clear=function(){return this._track.length=0,this},Q.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var o={points:[],touches:[],target:e,event:t},r=0,a=i.length;r<a;r++){var s=i[r],l=G(n,s,{});o.points.push([l.zrX,l.zrY]),o.touches.push(s)}this._track.push(o)}},Q.prototype._recognize=function(t){for(var e in J)if(J.hasOwnProperty(e)&&(e=J[e](this._track,t),e))return e};var K=Q;function Q(){this._track=[]}function $(t){var e=t[1][0]-t[0][0];t=t[1][1]-t[0][1];return Math.sqrt(e*e+t*t)}var J={pinch:function(t,e){var n,i=t.length;if(i)return n=(t[i-1]||{}).points,i=(t[i-2]||{}).points||n,i&&1<i.length&&n&&1<n.length?(i=$(n)/$(i),isFinite(i)||(i=1),e.pinchScale=i,i=[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2],e.pinchX=i[0],e.pinchY=i[1],{type:"pinch",target:t[0].target,event:e}):void 0}};function tt(){Z(this.event)}c(it,et=L),it.prototype.dispose=function(){},it.prototype.setCursor=function(){};var et,nt=it;function it(){var t=null!==et&&et.apply(this,arguments)||this;return t.handler=null,t}var ot,rt=function(t,e){this.x=t,this.y=e},at=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],st=(c(lt,ot=L),lt.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(l.k(at,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},lt.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=ut(this,e,n),o=this._hovered,r=o.target;r&&!r.__zr&&(r=(o=this.findHover(o.x,o.y)).target),i=this._hovered=i?new rt(e,n):this.findHover(e,n),e=i.target,n=this.proxy;n.setCursor&&n.setCursor(e?e.cursor:"default"),r&&e!==r&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(i,"mousemove",t),e&&e!==r&&this.dispatchToElement(i,"mouseover",t)},lt.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})},lt.prototype.resize=function(){this._hovered=new rt(0,0)},lt.prototype.dispatch=function(t,e){t=this[t],t&&t.call(this,e)},lt.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},lt.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},lt.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var o="on"+e,r={type:e,event:n,target:(t=t).target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:tt};i&&(i[o]&&(r.cancelBubble=!!i[o].call(i,r)),i.trigger(e,r),i=i.__hostTarget||i.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)})))}},lt.prototype.findHover=function(t,e,n){for(var i=this.storage.getDisplayList(),o=new rt(t,e),r=i.length-1;0<=r;r--){var a=void 0;if(i[r]!==n&&!i[r].ignore&&(a=function(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,o=void 0,r=!1;i;){if(!(r=!!i.ignoreClip||r)){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(o=!0)}a=i.__hostTarget,i=a||i.parent}return!o||"silent"}return!1}(i[r],t,e))&&(o.topTarget||(o.topTarget=i[r]),"silent"!==a)){o.target=i[r];break}}return o},lt.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new K);var n=this._gestureMgr,i=("start"===e&&n.clear(),n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom));"end"===e&&n.clear(),i&&(e=i.type,t.gestureEvent=e,(n=new rt).target=i.target,this.dispatchToElement(n,e,i.event))},lt);function lt(t,e,n,i){var o=ot.call(this)||this;return o._hovered=new rt(0,0),o.storage=t,o.painter=e,o.painterRoot=i,n=n||new nt,o.proxy=null,o.setHandlerProxy(n),o._draggingMgr=new k(o),o}function ut(t,e,n){return t=t.painter,e<0||e>t.getWidth()||n<0||n>t.getHeight()}l.k(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){st.prototype[t]=function(e){var n,i,o=e.zrX,r=e.zrY,a=ut(this,o,r);if("mouseup"===t&&a||(i=(n=this.findHover(o,r)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||4<w(this._downPoint,[e.zrX,e.zrY]))return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var ct=st,ht=32,pt=7;function dt(t,e,n,i){var o=e+1;if(o===n)return 1;if(i(t[o++],t[e])<0){for(;o<n&&i(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<n&&0<=i(t[o],t[o-1]);)o++;return o-e}function ft(t,e,n,i,o){for(i===e&&i++;i<n;i++){for(var r,a=t[i],s=e,l=i;s<l;)o(a,t[r=s+l>>>1])<0?l=r:s=1+r;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;0<u;)t[s+u]=t[s+u-1],u--}t[s]=a}}function gt(t,e,n,i,o,r){var a=0,s=0,l=1;if(0<r(t,e[n+o])){for(s=i-o;l<s&&0<r(t,e[n+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[n+o-l])<=0;)(l=1+((a=l)<<1))<=0&&(l=s);i=a,a=o-(l=s<l?s:l),l=o-i}for(a++;a<l;){var u=a+(l-a>>>1);0<r(t,e[n+u])?a=u+1:l=u}return l}function yt(t,e,n,i,o,r){var a=0,s=0,l=1;if(r(t,e[n+o])<0){for(s=o+1;l<s&&r(t,e[n+o-l])<0;)(l=1+((a=l)<<1))<=0&&(l=s);var u=a;a=o-(l=s<l?s:l),l=o-u}else{for(s=i-o;l<s&&0<=r(t,e[n+o+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=o,l+=o}for(a++;a<l;){var c=a+(l-a>>>1);r(t,e[n+c])<0?l=c:a=c+1}return l}function mt(t,e){var n,i,o=pt,r=0,a=(t.length,[]);function s(s){var l=n[s],u=i[s],c=n[s+1],h=i[s+1];i[s]=u+h,s===r-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),r--,s=yt(t[c],t,l,u,0,e);if(l+=s,0!=(u-=s)&&0!==(h=gt(t[l+u-1],t,c,h,h-1,e)))if(u<=h){var p=l,d=u,f=(s=c,h),g=0;for(g=0;g<d;g++)a[g]=t[p+g];var y=0,m=s,v=p;if(t[v++]=t[m++],0==--f)for(g=0;g<d;g++)t[v+g]=a[y+g];else if(1===d){for(g=0;g<f;g++)t[v+g]=t[m+g];t[v+f]=a[y]}else{for(var x,_,b,w=o;;){_=x=0,b=!1;do{if(e(t[m],a[y])<0){if(t[v++]=t[m++],_++,(x=0)==--f){b=!0;break}}else if(t[v++]=a[y++],x++,_=0,1==--d){b=!0;break}}while((x|_)<w);if(b)break;do{if(0!==(x=yt(t[m],a,y,d,0,e))){for(g=0;g<x;g++)t[v+g]=a[y+g];if(v+=x,y+=x,(d-=x)<=1){b=!0;break}}if(t[v++]=t[m++],0==--f){b=!0;break}if(0!==(_=gt(a[y],t,m,f,0,e))){for(g=0;g<_;g++)t[v+g]=t[m+g];if(v+=_,m+=_,0===(f-=_)){b=!0;break}}if(t[v++]=a[y++],1==--d){b=!0;break}}while(w--,pt<=x||pt<=_);if(b)break;w<0&&(w=0),w+=2}if((o=w)<1&&(o=1),1===d){for(g=0;g<f;g++)t[v+g]=t[m+g];t[v+f]=a[y]}else{if(0===d)throw new Error;for(g=0;g<d;g++)t[v+g]=a[y+g]}}}else{var S=l,M=u,I=c,O=h,T=0;for(T=0;T<O;T++)a[T]=t[I+T];var C=S+M-1,A=O-1,k=I+O-1,D=0,L=0;if(t[k--]=t[C--],0==--M)for(D=k-(O-1),T=0;T<O;T++)t[D+T]=a[T];else if(1===O){for(L=1+(k-=M),D=1+(C-=M),T=M-1;0<=T;T--)t[L+T]=t[D+T];t[k]=a[A]}else{for(var P=o;;){var j=0,R=0,N=!1;do{if(e(a[A],t[C])<0){if(t[k--]=t[C--],j++,(R=0)==--M){N=!0;break}}else if(t[k--]=a[A--],R++,j=0,1==--O){N=!0;break}}while((j|R)<P);if(N)break;do{if(0!==(j=M-yt(a[A],t,S,M,M-1,e))){for(M-=j,L=1+(k-=j),D=1+(C-=j),T=j-1;0<=T;T--)t[L+T]=t[D+T];if(0===M){N=!0;break}}if(t[k--]=a[A--],1==--O){N=!0;break}if(0!==(R=O-gt(t[C],a,0,O,O-1,e))){for(O-=R,L=1+(k-=R),D=1+(A-=R),T=0;T<R;T++)t[L+T]=a[D+T];if(O<=1){N=!0;break}}if(t[k--]=t[C--],0==--M){N=!0;break}}while(P--,pt<=j||pt<=R);if(N)break;P<0&&(P=0),P+=2}if((o=P)<1&&(o=1),1===O){for(L=1+(k-=M),D=1+(C-=M),T=M-1;0<=T;T--)t[L+T]=t[D+T];t[k]=a[A]}else{if(0===O)throw new Error;for(D=k-(O-1),T=0;T<O;T++)t[D+T]=a[T]}}}}return n=[],i=[],{mergeRuns:function(){for(;1<r;){var t=r-2;if(1<=t&&i[t-1]<=i[t]+i[t+1]||2<=t&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;s(t)}},forceMergeRuns:function(){for(;1<r;){var t=r-2;0<t&&i[t-1]<i[t+1]&&t--,s(t)}},pushRun:function(t,e){n[r]=t,i[r]=e,r+=1}}}function vt(t,e,n,i){var o=(i=i||t.length)-(n=n||0);if(!(o<2)){var r=0;if(o<ht)ft(t,n,i,n+(r=dt(t,n,i,e)),e);else{var a,s=mt(t,e),l=function(t){for(var e=0;ht<=t;)e|=1&t,t>>=1;return t+e}(o);do{}while((r=dt(t,n,i,e))<l&&(ft(t,n,n+(a=l<(a=o)?l:o),n+r,e),r=a),s.pushRun(n,r),s.mergeRuns(),n+=r,0!==(o-=r));s.forceMergeRuns()}}}var xt=1,_t=4;function bt(){}function wt(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function St(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=wt}St.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},St.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},St.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,o=e.length;i<o;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,vt(n,wt)},St.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];for(var o=i,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|=xt),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else i=t,e&&e.length?i.__clipPaths=e:i.__clipPaths&&0<i.__clipPaths.length&&(i.__clipPaths=[]),isNaN(i.z)&&(bt(),i.z=0),isNaN(i.z2)&&(bt(),i.z2=0),isNaN(i.zlevel)&&(bt(),i.zlevel=0),this._displayList[this._displayListLen++]=i;i=t.getDecalElement&&t.getDecalElement(),i&&this._updateAndAddDisplayable(i,e,n),i=t.getTextGuideLine(),i&&this._updateAndAddDisplayable(i,e,n),i=t.getTextContent(),i&&this._updateAndAddDisplayable(i,e,n)}},St.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},St.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=l.r(this._roots,t);0<=i&&this._roots.splice(i,1)}},St.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},St.prototype.getRoots=function(){return this._roots},St.prototype.dispose=function(){this._displayList=null,this._roots=null};var Mt=St,It=s.a.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},Ot={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((1+e)*t-e)*.5:.5*((t-=2)*t*((1+e)*t+e)+2)},bounceIn:function(t){return 1-Ot.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*Ot.bounceIn(2*t):.5*Ot.bounceOut(2*t-1)+.5}},Tt=Ot,Ct=Math.pow,At=Math.sqrt,kt=1e-8,Dt=1e-4,Lt=At(3),Pt=1/3,jt=h(),Rt=h(),Nt=h();function Et(t){return-kt<t&&t<kt}function zt(t){return kt<t||t<-kt}function Bt(t,e,n,i,o){var r=1-o;return r*r*(r*t+3*o*e)+o*o*(o*i+3*r*n)}function Vt(t,e,n,i,o){var r=1-o;return 3*(((e-t)*r+2*(n-e)*o)*r+(i-n)*o*o)}function Ft(t,e,n,i,o,r){i=i+3*(e-n)-t,n=3*(n-2*e+t),e=3*(e-t),t-=o,o=n*n-3*i*e;var a,s,l=n*e-9*i*t,u=(t=e*e-3*n*t,0);return Et(o)&&Et(l)?Et(n)?r[0]=0:0<=(a=-e/n)&&a<=1&&(r[u++]=a):Et(e=l*l-4*o*t)?(s=-(t=l/o)/2,0<=(a=-n/i+t)&&a<=1&&(r[u++]=a),0<=s&&s<=1&&(r[u++]=s)):0<e?(e=o*n+1.5*i*(-l-(t=At(e))),0<=(a=(-n-((t=(t=o*n+1.5*i*(-l+t))<0?-Ct(-t,Pt):Ct(t,Pt))+(e=e<0?-Ct(-e,Pt):Ct(e,Pt))))/(3*i))&&a<=1&&(r[u++]=a)):(t=(2*o*n-3*i*l)/(2*At(o*o*o)),e=Math.acos(t)/3,a=(-n-2*(l=At(o))*(t=Math.cos(e)))/(3*i),s=(-n+l*(t+Lt*Math.sin(e)))/(3*i),o=(-n+l*(t-Lt*Math.sin(e)))/(3*i),0<=a&&a<=1&&(r[u++]=a),0<=s&&s<=1&&(r[u++]=s),0<=o&&o<=1&&(r[u++]=o)),u}function Ht(t,e,n,i,o){var r,a=6*n-12*e+6*t;i=9*e+3*i-3*t-9*n,n=3*e-3*t,e=0;return Et(i)?zt(a)&&0<=(r=-n/a)&&r<=1&&(o[e++]=r):Et(t=a*a-4*i*n)?o[0]=-a/(2*i):0<t&&(t=(-a-(n=At(t)))/(2*i),0<=(r=(-a+n)/(2*i))&&r<=1&&(o[e++]=r),0<=t&&t<=1&&(o[e++]=t)),e}function Gt(t,e,n,i,o,r){var a=(e-t)*o+t,s=(e=(n-e)*o+e,n=(i-n)*o+n,(e-a)*o+a);e=(n-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]=n,r[7]=i}function Wt(t,e,n,i,o,r,a,s,l,u,c){var h,p,d,f,g=.005,y=1/0;jt[0]=l,jt[1]=u;for(var m=0;m<1;m+=.05)Rt[0]=Bt(t,n,o,a,m),Rt[1]=Bt(e,i,r,s,m),(d=S(jt,Rt))<y&&(h=m,y=d);y=1/0;for(var v=0;v<32&&!(g<Dt);v++)p=h+g,Rt[0]=Bt(t,n,o,a,f=h-g),Rt[1]=Bt(e,i,r,s,f),d=S(Rt,jt),0<=f&&d<y?(h=f,y=d):(Nt[0]=Bt(t,n,o,a,p),Nt[1]=Bt(e,i,r,s,p),f=S(Nt,jt),p<=1&&f<y?(h=p,y=f):g*=.5);return c&&(c[0]=Bt(t,n,o,a,h),c[1]=Bt(e,i,r,s,h)),At(y)}function Yt(t,e,n,i){var o=1-i;return o*(o*t+2*i*e)+i*i*n}function Ut(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function Xt(t,e,n){return n=t+n-2*e,0==n?.5:(t-e)/n}function Zt(t,e,n,i,o){var r=(e-t)*i+t;e=(n-e)*i+e,i=(e-r)*i+r;o[0]=t,o[1]=r,o[2]=i,o[3]=i,o[4]=e,o[5]=n}function qt(t,e,n,i,o,r,a,s,l){var u,c=.005,h=1/0;jt[0]=a,jt[1]=s;for(var p=0;p<1;p+=.05)Rt[0]=Yt(t,n,o,p),Rt[1]=Yt(e,i,r,p),(y=S(jt,Rt))<h&&(u=p,h=y);h=1/0;for(var d=0;d<32&&!(c<Dt);d++){var f=u-c,g=u+c,y=(Rt[0]=Yt(t,n,o,f),Rt[1]=Yt(e,i,r,f),S(Rt,jt));0<=f&&y<h?(u=f,h=y):(Nt[0]=Yt(t,n,o,g),Nt[1]=Yt(e,i,r,g),f=S(Nt,jt),g<=1&&f<h?(u=g,h=f):c*=.5)}return l&&(l[0]=Yt(t,n,o,u),l[1]=Yt(e,i,r,u)),At(h)}var Kt=/cubic-bezier\(([0-9,\.e ]+)\)/;function Qt(t){if(t=t&&Kt.exec(t),t){t=t[1].split(",");var e,n=+Object(l.T)(t[0]),i=+Object(l.T)(t[1]),o=+Object(l.T)(t[2]),r=+Object(l.T)(t[3]);if(!isNaN(n+i+o+r))return e=[],function(t){return t<=0?0:1<=t?1:Ft(0,n,o,1,t,e)&&Bt(0,i,r,1,e[0])}}}function $t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||l.L,this.ondestroy=t.ondestroy||l.L,this.onrestart=t.onrestart||l.L,t.easing&&this.setEasing(t.easing)}$t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,o=i/n,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-i%n,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},$t.prototype.pause=function(){this._paused=!0},$t.prototype.resume=function(){this._paused=!1},$t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(l.w)(t)?t:Tt[t]||Qt(t)};var Jt=$t,te=n("41ef"),ee=n("7a29"),ne=Array.prototype.slice;function ie(t,e,n){return(e-t)*n+t}function oe(t,e,n,i){for(var o=e.length,r=0;r<o;r++)t[r]=ie(e[r],n[r],i);return t}function re(t,e,n,i){for(var o=e.length,r=0;r<o;r++)t[r]=e[r]+n[r]*i;return t}function ae(t,e,n,i){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]+n[a][s]*i}return t}function se(t){if(Object(l.u)(t)){var e=t.length;if(Object(l.u)(t[0])){for(var n=[],i=0;i<e;i++)n.push(ne.call(t[i]));return n}return ne.call(t)}return t}function le(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function ue(t){return 4===t||5===t}function ce(t){return 1===t||2===t}var he=[0,0,0,0],pe=(de.prototype.isFinished=function(){return this._finished},de.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},de.prototype.needsAnimate=function(){return 1<=this.keyframes.length},de.prototype.getAdditiveTrack=function(){return this._additiveTrack},de.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i,o=this.keyframes,r=o.length,a=!1,s=6,u=e,c=(Object(l.u)(e)?(i=e,(1==(s=i=Object(l.u)(i&&i[0])?2:1)&&!Object(l.z)(e[0])||2==i&&!Object(l.z)(e[0][0]))&&(a=!0)):Object(l.z)(e)&&!Object(l.l)(e)?s=0:Object(l.C)(e)?isNaN(+e)?(i=te.g(e))&&(u=i,s=3):s=0:Object(l.x)(e)&&((c=Object(l.m)({},u)).colorStops=Object(l.H)(e.colorStops,(function(t){return{offset:t.offset,color:te.g(t.color)}})),Object(ee.m)(e)?s=4:Object(ee.o)(e)&&(s=5),u=c),0===r?this.valType=s:s===this.valType&&6!==s||(a=!0),this.discrete=this.discrete||a,{time:t,value:u,rawValue:e,percent:0});return n&&(c.easing=n,c.easingFunc=Object(l.w)(n)?n:Tt[n]||Qt(n)),o.push(c),c},de.prototype.prepare=function(t,e){for(var n=this.keyframes,i=(this._needsSort&&n.sort((function(t,e){return t.time-e.time})),this.valType),o=n.length,r=n[o-1],a=this.discrete,s=ce(i),l=ue(i),u=0;u<o;u++){var c=n[u],h=c.value,p=r.value;if(c.percent=c.time/t,!a)if(s&&u!==o-1){_=x=v=m=c=y=g=f=d=c=void 0;var d=p,f=i,g=c=h,y=d;if(g.push&&y.push){c=g.length;var m=y.length;if(c!==m)if(m<c)g.length=m;else for(var v=c;v<m;v++)g.push(1===f?y[v]:ne.call(y[v]));var x=g[0]&&g[0].length;for(v=0;v<g.length;v++)if(1===f)isNaN(g[v])&&(g[v]=y[v]);else for(var _=0;_<x;_++)isNaN(g[v][_])&&(g[v][_]=y[v][_])}}else if(l){I=M=c=S=w=b=c=d=void 0;d=h.colorStops,c=p.colorStops;for(var b=d.length,w=c.length,S=w<b?c:d,M=(c=Math.min(b,w),S[c-1]||{color:[0,0,0,0],offset:0}),I=c;I<Math.max(b,w);I++)S.push({offset:M.offset,color:M.color.slice()})}}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;var O=n[0].value;for(u=0;u<o;u++)0===i?n[u].additiveValue=n[u].value-O:3===i?n[u].additiveValue=re([],n[u].value,O,-1):ce(i)&&(n[u].additiveValue=(1===i?re:ae)([],n[u].value,O,-1))}},de.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,o,r,a=null!=this._additiveTrack,s=a?"additiveValue":"value",u=this.valType,c=this.keyframes,h=c.length,p=this.propName,d=3===u,f=this._lastFr,g=Math.min;if(1===h)n=i=c[0];else{if(e<0)y=0;else if(e<this._lastFrP){for(var y=g(f+1,h-1);0<=y&&!(c[y].percent<=e);y--);y=g(y,h-2)}else{for(y=f;y<h&&!(c[y].percent>e);y++);y=g(y-1,h-2)}i=c[y+1],n=c[y]}n&&i&&(this._lastFr=y,this._lastFrP=e,f=i.percent-n.percent,o=0==f?1:g((e-n.percent)/f,1),i.easingFunc&&(o=i.easingFunc(o)),g=a?this._additiveValue:d?he:t[p],!ce(u)&&!d||g||(g=this._additiveValue=[]),this.discrete?t[p]=(o<1?n:i).rawValue:ce(u)?(1===u?oe:function(t,e,n,i){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]=ie(e[a][s],n[a][s],i)}})(g,n[s],i[s],o):ue(u)?(f=n[s],r=i[s],t[p]={type:(u=4===u)?"linear":"radial",x:ie(f.x,r.x,o),y:ie(f.y,r.y,o),colorStops:Object(l.H)(f.colorStops,(function(t,e){return e=r.colorStops[e],{offset:ie(t.offset,e.offset,o),color:le(oe([],t.color,e.color,o))}})),global:r.global},u?(t[p].x2=ie(f.x2,r.x2,o),t[p].y2=ie(f.y2,r.y2,o)):t[p].r=ie(f.r,r.r,o)):d?(oe(g,n[s],i[s],o),a||(t[p]=le(g))):(u=ie(n[s],i[s],o),a?this._additiveValue=u:t[p]=u),a&&this._addToTarget(t))}},de.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(te.g(t[n],he),re(he,he,i,1),t[n]=le(he)):1===e?re(t[n],t[n],i,1):2===e&&ae(t[n],t[n],i,1)},de);function de(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}function fe(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,(this._loop=e)&&i?Object(l.G)("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}fe.prototype.getMaxTime=function(){return this._maxTime},fe.prototype.getDelay=function(){return this._delay},fe.prototype.getLoop=function(){return this._loop},fe.prototype.getTarget=function(){return this._target},fe.prototype.changeTarget=function(t){this._target=t},fe.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Object(l.F)(e),n)},fe.prototype.whenWithKeys=function(t,e,n,i){for(var o=this._tracks,r=0;r<n.length;r++){var a=n[r];if(!(l=o[a])){var s,l=o[a]=new pe(a),u=void 0,c=this._getAdditiveTrack(a);if(c?(u=(s=(s=c.keyframes)[s.length-1])&&s.value,3===c.valType&&u&&(u=le(u))):u=this._target[a],null==u)continue;0<t&&l.addKeyframe(0,se(u),i),this._trackKeys.push(a)}l.addKeyframe(t,se(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},fe.prototype.pause=function(){this._clip.pause(),this._paused=!0},fe.prototype.resume=function(){this._clip.resume(),this._paused=!1},fe.prototype.isPaused=function(){return!!this._paused},fe.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},fe.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},fe.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},fe.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},fe.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var o=n[i].getTrack(t);o&&(e=o)}return e},fe.prototype.start=function(t){if(!(0<this._started)){this._started=1;for(var e,n=this,i=[],o=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var a=this._trackKeys[r],s=this._tracks[a],l=(a=this._getAdditiveTrack(a),s.keyframes),u=l.length;s.prepare(o,a),s.needsAnimate()&&(!this._allowDiscrete&&s.discrete?((a=l[u-1])&&(n._target[s.propName]=a.rawValue),s.setFinished()):i.push(s))}return i.length||this._force?(e=new Jt({life:o,loop:this._loop,delay:this._delay||0,onframe:function(t){n._started=2;var e=n._additiveAnimators;if(e){for(var o=!1,r=0;r<e.length;r++)if(e[r]._clip){o=!0;break}o||(n._additiveAnimators=null)}for(r=0;r<i.length;r++)i[r].step(n._target,t);var a=n._onframeCbs;if(a)for(r=0;r<a.length;r++)a[r](n._target,t)},ondestroy:function(){n._doneCallback()}}),this._clip=e,this.animation&&this.animation.addClip(e),t&&e.setEasing(t)):this._doneCallback(),this}},fe.prototype.stop=function(t){var e;this._clip&&(e=this._clip,t&&e.onframe(1),this._abortedCallback())},fe.prototype.delay=function(t){return this._delay=t,this},fe.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},fe.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},fe.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},fe.prototype.getClip=function(){return this._clip},fe.prototype.getTrack=function(t){return this._tracks[t]},fe.prototype.getTracks=function(){var t=this;return Object(l.H)(this._trackKeys,(function(e){return t._tracks[e]}))},fe.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,o=0;o<t.length;o++){var r=n[t[o]];r&&!r.isFinished()&&(e?r.step(this._target,1):1===this._started&&r.step(this._target,0),r.setFinished())}var a=!0;for(o=0;o<i.length;o++)if(!n[i[o]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},fe.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var o=e[i],r=this._tracks[o];r&&!r.isFinished()&&(r=(r=r.keyframes)[n?0:r.length-1])&&(t[o]=se(r.rawValue))}}},fe.prototype.__changeFinalValue=function(t,e){e=e||Object(l.F)(t);for(var n=0;n<e.length;n++){var i,o=e[n],r=this._tracks[o];r&&1<(i=r.keyframes).length&&(i=i.pop(),r.addKeyframe(i.time,t[o]),r.prepare(this._maxTime,r.getAdditiveTrack()))}};var ge,ye=fe;function me(){return(new Date).getTime()}function ve(t){var e=ge.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}c(ve,ge=L),ve.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},ve.prototype.addAnimator=function(t){t.animation=this,t=t.getClip(),t&&this.addClip(t)},ve.prototype.removeClip=function(t){var e,n;t.animation&&(e=t.prev,n=t.next,e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null)},ve.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},ve.prototype.update=function(t){for(var e=me()-this._pausedTime,n=e-this._time,i=this._head;i;){var o=i.next;i=(i.step(e,n)&&(i.ondestroy(),this.removeClip(i)),o)}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},ve.prototype._startLoop=function(){var t=this;this._running=!0,It((function e(){t._running&&(It(e),t._paused||t.update())}))},ve.prototype.start=function(){this._running||(this._time=me(),this._pausedTime=0,this._startLoop())},ve.prototype.stop=function(){this._running=!1},ve.prototype.pause=function(){this._paused||(this._pauseStart=me(),this._paused=!0)},ve.prototype.resume=function(){this._paused&&(this._pausedTime+=me()-this._pauseStart,this._paused=!1)},ve.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},ve.prototype.isFinished=function(){return null==this._head},ve.prototype.animate=function(t,e){return e=e||{},this.start(),t=new ye(t,e.loop),this.addAnimator(t),t};var xe,_e=ve,be=s.a.domSupported,we=(xe={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:l.H(e,(function(t){var e=t.replace("mouse","pointer");return xe.hasOwnProperty(e)?e:t}))}),Se=["mousemove","mouseup"],Me=["pointermove","pointerup"],Ie=!1;function Oe(t){return t=t.pointerType,"pen"===t||"touch"===t}function Te(t){t&&(t.zrByTouch=!0)}function Ce(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var Ae=function(t,e){this.stopPropagation=l.L,this.stopImmediatePropagation=l.L,this.preventDefault=l.L,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},ke={mousedown:function(t){t=U(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=U(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=U(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Ce(this,(t=U(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Ie=!0,t=U(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Ie||(t=U(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Te(t=U(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),ke.mousemove.call(this,t),ke.mousedown.call(this,t)},touchmove:function(t){Te(t=U(this.dom,t)),this.handler.processGesture(t,"change"),ke.mousemove.call(this,t)},touchend:function(t){Te(t=U(this.dom,t)),this.handler.processGesture(t,"end"),ke.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&ke.click.call(this,t)},pointerdown:function(t){ke.mousedown.call(this,t)},pointermove:function(t){Oe(t)||ke.mousemove.call(this,t)},pointerup:function(t){ke.mouseup.call(this,t)},pointerout:function(t){Oe(t)||ke.mouseout.call(this,t)}},De=(l.k(["click","dblclick","contextmenu"],(function(t){ke[t]=function(e){e=U(this.dom,e),this.trigger(t,e)}})),{pointermove:function(t){Oe(t)||De.mousemove.call(this,t)},pointerup:function(t){De.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))}});function Le(t,e){var n=e.domHandlers;s.a.pointerEventsSupported?l.k(we.pointer,(function(i){je(e,i,(function(e){n[i].call(t,e)}))})):(s.a.touchEventsSupported&&l.k(we.touch,(function(i){je(e,i,(function(o){var r;n[i].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)}))})),l.k(we.mouse,(function(i){je(e,i,(function(o){o=Y(o),e.touching||n[i].call(t,o)}))})))}function Pe(t,e){function n(n){je(e,n,(function(i){var o;i=Y(i),Ce(t,i.target)||(o=i,i=U(t.dom,new Ae(t,o),!0),e.domHandlers[n].call(t,i))}),{capture:!0})}s.a.pointerEventsSupported?l.k(Me,n):s.a.touchEventsSupported||l.k(Se,n)}function je(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,X(t.domTarget,e,n,i)}function Re(t){var e,n,i,o,r,a=t.mounted;for(e in a)a.hasOwnProperty(e)&&(n=t.domTarget,o=a[i=e],r=t.listenerOpts[e],n.removeEventListener(i,o,r));t.mounted={}}var Ne,Ee=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e};function ze(t,e){var n=Ne.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=e,n._localHandlerScope=new Ee(t,ke),be&&(n._globalHandlerScope=new Ee(document,De)),Le(n,n._localHandlerScope),n}c(ze,Ne=L),ze.prototype.dispose=function(){Re(this._localHandlerScope),be&&Re(this._globalHandlerScope)},ze.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},ze.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,be&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?Pe(this,e):Re(e))};var Be=ze,Ve=(e=1,e=s.a.hasGlobalWindow?Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1):e),Fe="#333",He="#ccc";function Ge(){return[1,0,0,1,0,0]}function We(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Ye(t,e){t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5]}function Ue(t,e,n){var i=e[0]*n[0]+e[2]*n[1],o=e[1]*n[0]+e[3]*n[1],r=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4];n=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=o,t[2]=r,t[3]=a,t[4]=s,t[5]=n,t}function Xe(t,e,n){t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1]}function Ze(t,e,n){var i=e[0],o=e[2],r=e[4],a=e[1],s=e[3],l=(e=e[5],Math.sin(n));n=Math.cos(n);t[0]=i*n+a*l,t[1]=-i*l+a*n,t[2]=o*n+s*l,t[3]=-o*l+n*s,t[4]=n*r+l*e,t[5]=n*e-l*r}function qe(t,e,n){var i=n[0];n=n[1];t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n}function Ke(t,e){var n=e[0],i=e[2],o=e[4],r=e[1],a=e[3],s=(e=e[5],n*a-r*i);return s?(t[0]=a*(s=1/s),t[1]=-r*s,t[2]=-i*s,t[3]=n*s,t[4]=(i*e-a*o)*s,t[5]=(r*o-n*e)*s,t):null}var Qe=We;function $e(t){return 5e-5<t||t<-5e-5}var Je=[],tn=[],en=Ge(),nn=Math.abs;function on(){}on.prototype.getLocalTransform=function(t){return on.getLocalTransform(this,t)},on.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},on.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},on.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},on.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},on.prototype.needLocalTransform=function(){return $e(this.rotation)||$e(this.x)||$e(this.y)||$e(this.scaleX-1)||$e(this.scaleY-1)||$e(this.skewX)||$e(this.skewY)},on.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||Ge(),e?this.getLocalTransform(n):Qe(n),t&&(e?Ue(n,t,n):Ye(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&Qe(n)},on.prototype._resolveGlobalScaleRatio=function(t){var e,n,i=this.globalScaleRatio;null!=i&&1!==i&&(this.getGlobalScale(Je),n=((Je[1]-(n=Je[1]<0?-1:1))*i+n)/Je[1]||0,t[0]*=i=((Je[0]-(e=Je[0]<0?-1:1))*i+e)/Je[0]||0,t[1]*=i,t[2]*=n,t[3]*=n),this.invTransform=this.invTransform||Ge(),Ke(this.invTransform,t)},on.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},on.prototype.setLocalTransform=function(t){var e,n,i,o;t&&(o=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],e=Math.atan2(t[1],t[0]),n=Math.PI/2+e-Math.atan2(t[3],t[2]),i=Math.sqrt(i)*Math.cos(n),o=Math.sqrt(o),this.skewX=n,this.skewY=0,this.rotation=-e,this.x=+t[4],this.y=+t[5],this.scaleX=o,this.scaleY=i,this.originX=0,this.originY=0)},on.prototype.decomposeTransform=function(){var t,e,n;this.transform&&(e=this.parent,t=this.transform,e&&e.transform&&(Ue(tn,e.invTransform,t),t=tn),e=this.originX,n=this.originY,(e||n)&&(en[4]=e,en[5]=n,Ue(tn,t,en),tn[4]-=e,tn[5]-=n,t=tn),this.setLocalTransform(t))},on.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},on.prototype.transformCoordToLocal=function(t,e){return t=[t,e],e=this.invTransform,e&&I(t,t,e),t},on.prototype.transformCoordToGlobal=function(t,e){return t=[t,e],e=this.transform,e&&I(t,t,e),t},on.prototype.getLineScale=function(){var t=this.transform;return t&&1e-10<nn(t[0]-1)&&1e-10<nn(t[3]-1)?Math.sqrt(nn(t[0]*t[3]-t[2]*t[1])):1},on.prototype.copyTransform=function(t){an(this,t)},on.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,o=t.scaleX,r=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0;t=t.skewY?Math.tan(-t.skewY):0;return n||i||a||s?(e[4]=-(a=n+a)*o-h*(s=i+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]=h*r,l&&Ze(e,e,l),e[4]+=n+u,e[5]+=i+c,e},on.initDefaultProps=((e=on.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0));var rn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function an(t,e){for(var n=0;n<rn.length;n++){var i=rn[n];t[i]=e[i]}}var sn=on;function ln(t,e){this.x=t||0,this.y=e||0}ln.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},ln.prototype.clone=function(){return new ln(this.x,this.y)},ln.prototype.set=function(t,e){return this.x=t,this.y=e,this},ln.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},ln.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},ln.prototype.scale=function(t){this.x*=t,this.y*=t},ln.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},ln.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},ln.prototype.dot=function(t){return this.x*t.x+this.y*t.y},ln.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},ln.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},ln.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},ln.prototype.distance=function(t){var e=this.x-t.x;t=this.y-t.y;return Math.sqrt(e*e+t*t)},ln.prototype.distanceSquare=function(t){var e=this.x-t.x;t=this.y-t.y;return e*e+t*t},ln.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},ln.prototype.transform=function(t){var e,n;if(t)return e=this.x,n=this.y,this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this},ln.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},ln.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},ln.set=function(t,e,n){t.x=e,t.y=n},ln.copy=function(t,e){t.x=e.x,t.y=e.y},ln.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},ln.lenSquare=function(t){return t.x*t.x+t.y*t.y},ln.dot=function(t,e){return t.x*e.x+t.y*e.y},ln.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},ln.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},ln.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},ln.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},ln.lerp=function(t,e,n,i){var o=1-i;t.x=o*e.x+i*n.x,t.y=o*e.y+i*n.y};var un=ln,cn=Math.min,hn=Math.max,pn=new un,dn=new un,fn=new un,gn=new un,yn=new un,mn=new un;function vn(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}vn.prototype.union=function(t){var e=cn(t.x,this.x),n=cn(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=hn(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=hn(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},vn.prototype.applyTransform=function(t){vn.applyTransform(this,this,t)},vn.prototype.calculateTransform=function(t){var e=t.width/this.width,n=t.height/this.height,i=Ge();return Xe(i,i,[-this.x,-this.y]),qe(i,i,[e,n]),Xe(i,i,[t.x,t.y]),i},vn.prototype.intersect=function(t,e){if(!t)return!1;t instanceof vn||(t=vn.create(t));var n,i,o,r,a,s,l,u,c=this.x,h=this.x+this.width,p=this.y,d=this.y+this.height,f=t.x,g=t.x+t.width,y=t.y,m=(t=t.y+t.height,!(h<f||g<c||d<y||t<p));return e&&(n=1/0,i=0,o=Math.abs(h-f),r=Math.abs(g-c),a=Math.abs(d-y),s=Math.abs(t-p),l=Math.min(o,r),u=Math.min(a,s),h<f||g<c?i<l&&(i=l,o<r?un.set(mn,-o,0):un.set(mn,r,0)):l<n&&(n=l,o<r?un.set(yn,o,0):un.set(yn,-r,0)),d<y||t<p?i<u&&(i=u,a<s?un.set(mn,0,-a):un.set(mn,0,s)):l<n&&(n=l,a<s?un.set(yn,0,a):un.set(yn,0,-s))),e&&un.copy(e,m?yn:mn),m},vn.prototype.contain=function(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},vn.prototype.clone=function(){return new vn(this.x,this.y,this.width,this.height)},vn.prototype.copy=function(t){vn.copy(this,t)},vn.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},vn.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},vn.prototype.isZero=function(){return 0===this.width||0===this.height},vn.create=function(t){return new vn(t.x,t.y,t.width,t.height)},vn.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},vn.applyTransform=function(t,e,n){if(n){var i,o;if(n[1]<1e-5&&-1e-5<n[1]&&n[2]<1e-5&&-1e-5<n[2])return i=n[0],o=n[3],r=n[4],a=n[5],t.x=e.x*i+r,t.y=e.y*o+a,t.width=e.width*i,t.height=e.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height));pn.x=fn.x=e.x,pn.y=gn.y=e.y,dn.x=gn.x=e.x+e.width,dn.y=fn.y=e.y+e.height,pn.transform(n),gn.transform(n),dn.transform(n),fn.transform(n),t.x=cn(pn.x,dn.x,fn.x,gn.x),t.y=cn(pn.y,dn.y,fn.y,gn.y);var r=hn(pn.x,dn.x,fn.x,gn.x),a=hn(pn.y,dn.y,fn.y,gn.y);t.width=r-t.x,t.height=a-t.y}else t!==e&&vn.copy(t,e)};var xn=vn,_n=n("d51b"),bn=n("726e"),wn={};function Sn(t,e){e=e||bn.a;var n=wn[e],i=(n=n||(wn[e]=new _n.a(500))).get(t);return null==i&&(i=bn.d.measureText(t,e).width,n.put(t,i)),i}function Mn(t,e,n,i){return t=Sn(t,e),e=Cn(e),n=On(0,t,n),i=Tn(0,e,i),new xn(n,i,t,e)}function In(t,e,n,i){var o=((t||"")+"").split("\n");if(1===o.length)return Mn(o[0],e,n,i);for(var r=new xn(0,0,0,0),a=0;a<o.length;a++){var s=Mn(o[a],e,n,i);0===a?r.copy(s):r.union(s)}return r}function On(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Tn(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function Cn(t){return Sn("国",t)}function An(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function kn(t,e,n){var i=e.position||"inside",o=null!=e.distance?e.distance:5,r=n.height,a=n.width,s=r/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=An(i[0],n.width),u+=An(i[1],n.height),h=c=null;else switch(i){case"left":l-=o,u+=s,c="right",h="middle";break;case"right":l+=o+a,u+=s,h="middle";break;case"top":l+=a/2,u-=o,c="center",h="bottom";break;case"bottom":l+=a/2,u+=r+o,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=o,u+=s,h="middle";break;case"insideRight":l+=a-o,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=o,c="center";break;case"insideBottom":l+=a/2,u+=r-o,c="center",h="bottom";break;case"insideTopLeft":l+=o,u+=o;break;case"insideTopRight":l+=a-o,u+=o,c="right";break;case"insideBottomLeft":l+=o,u+=r-o,h="bottom";break;case"insideBottomRight":l+=a-o,u+=r-o,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var Dn="__zr_normal__",Ln=rn.concat(["ignore"]),Pn=Object(l.N)(rn,(function(t,e){return t[e]=!0,t}),{ignore:!1}),jn={},Rn=new xn(0,0,0,0);Nn.prototype._init=function(t){this.attr(t)},Nn.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;(i=i||(this.transform=[1,0,0,1,0,0]))[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},Nn.prototype.beforeUpdate=function(){},Nn.prototype.afterUpdate=function(){},Nn.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},Nn.prototype.updateInnerText=function(t){var e,n,i,o,r,a,s,l,u,c,h=this._textContent;!h||h.ignore&&!t||(this.textConfig||(this.textConfig={}),l=(t=this.textConfig).local,i=n=void 0,o=!1,(e=h.innerTransformable).parent=l?this:null,c=!1,e.copyTransform(h),null!=t.position&&(u=Rn,t.layoutRect?u.copy(t.layoutRect):u.copy(this.getBoundingRect()),l||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(jn,t,u):kn(jn,t,u),e.x=jn.x,e.y=jn.y,n=jn.align,i=jn.verticalAlign,(r=t.origin)&&null!=t.rotation&&(s=a=void 0,s="center"===r?(a=.5*u.width,.5*u.height):(a=An(r[0],u.width),An(r[1],u.height)),c=!0,e.originX=-e.x+a+(l?0:u.x),e.originY=-e.y+s+(l?0:u.y))),null!=t.rotation&&(e.rotation=t.rotation),(r=t.offset)&&(e.x+=r[0],e.y+=r[1],c||(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={}),c=u=l=void 0,a&&this.canBeInsideText()?(l=t.insideFill,u=t.insideStroke,null!=l&&"auto"!==l||(l=this.getInsideTextFill()),null!=u&&"auto"!==u||(u=this.getInsideTextStroke(l),c=!0)):(l=t.outsideFill,u=t.outsideStroke,null!=l&&"auto"!==l||(l=this.getOutsideFill()),null!=u&&"auto"!==u||(u=this.getOutsideStroke(l),c=!0)),(l=l||"#000")===s.fill&&u===s.stroke&&c===s.autoStroke&&n===s.align&&i===s.verticalAlign||(o=!0,s.fill=l,s.stroke=u,s.autoStroke=c,s.align=n,s.verticalAlign=i,h.setDefaultTextStyle(s)),h.__dirty|=xt,o&&h.dirtyStyle(!0))},Nn.prototype.canBeInsideText=function(){return!0},Nn.prototype.getInsideTextFill=function(){return"#fff"},Nn.prototype.getInsideTextStroke=function(t){return"#000"},Nn.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?He:Fe},Nn.prototype.getOutsideStroke=function(t){for(var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&Object(te.g)(e),i=(n=n||[255,255,255,1])[3],o=this.__zr.isDarkMode(),r=0;r<3;r++)n[r]=n[r]*i+(o?0:255)*(1-i);return n[3]=1,Object(te.h)(n,"rgba")},Nn.prototype.traverse=function(t,e){},Nn.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||{},Object(l.m)(this.extra,e)):this[t]=e},Nn.prototype.hide=function(){this.ignore=!0,this.markRedraw()},Nn.prototype.show=function(){this.ignore=!1,this.markRedraw()},Nn.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(Object(l.A)(t)){e=t;for(var n=Object(l.F)(e),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,t[o])}}return this.markRedraw(),this},Nn.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],o=i.__fromStateTransition;i.getLoop()||o&&o!==Dn||(o=(o=i.targetName)?e[o]:e,i.saveTo(o))}},Nn.prototype._innerSaveToNormal=function(t){var e=(e=this._normalState)||(this._normalState={});t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Ln)},Nn.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var o=n[i];null==t[o]||o in e||(e[o]=this[o])}},Nn.prototype.hasState=function(){return 0<this.currentStates.length},Nn.prototype.getState=function(t){return this.states[t]},Nn.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},Nn.prototype.clearStates=function(t){this.useState(Dn,!1,t)},Nn.prototype.useState=function(t,e,n,i){var o=t===Dn,r=this.hasState();if(r||!o){r=this.currentStates;var a,s=this.stateTransition;if(!(0<=Object(l.r)(r,t))||!e&&1!==r.length){if((a=(a=this.stateProxy&&!o?this.stateProxy(t):a)||this.states&&this.states[t])||o)return o||this.saveCurrentToNormalState(a),(r=!!(a&&a.hoverLayer||i))&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,a,this._normalState,e,!n&&!this.__inHover&&s&&0<s.duration,s),i=this._textContent,s=this._textGuide,i&&i.useState(t,e,n,r),s&&s.useState(t,e,n,r),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!r&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~xt),a;Object(l.G)("State "+t+" not exists.")}}},Nn.prototype.useStates=function(t,e,n){if(t.length){var i=[],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],u=void 0;(u=(u=this.stateProxy?this.stateProxy(l,t):u)||this.states[l])&&i.push(u)}var c=i[r-1],h=(c=!!(c&&c.hoverLayer||n),n=(c&&this._toggleHoverLayerFlag(!0),this._mergeStates(i)),this.stateTransition);n=(this.saveCurrentToNormalState(n),this._applyStateObj(t.join(","),n,this._normalState,!1,!e&&!this.__inHover&&h&&0<h.duration,h),this._textContent),h=this._textGuide;n&&n.useStates(t,e,c),h&&h.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~xt)}}else this.clearStates()},Nn.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},Nn.prototype.removeState=function(t){var e;t=Object(l.r)(this.currentStates,t);0<=t&&((e=this.currentStates.slice()).splice(t,1),this.useStates(e))},Nn.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),o=(t=Object(l.r)(i,t),0<=Object(l.r)(i,e));0<=t?o?i.splice(t,1):i[t]=e:n&&!o&&i.push(e),this.useStates(i)},Nn.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},Nn.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var o=t[i];Object(l.m)(n,o),o.textConfig&&(e=e||{},Object(l.m)(e,o.textConfig))}return e&&(n.textConfig=e),n},Nn.prototype._applyStateObj=function(t,e,n,i,o,r){for(var a=!(e&&i),s=(e&&e.textConfig?(this.textConfig=Object(l.m)({},(i?this:n).textConfig),Object(l.m)(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig),{}),u=!1,c=0;c<Ln.length;c++){var h=Ln[c],p=o&&Pn[h];e&&null!=e[h]?p?(u=!0,s[h]=e[h]):this[h]=e[h]:a&&null!=n[h]&&(p?(u=!0,s[h]=n[h]):this[h]=n[h])}if(!o)for(c=0;c<this.animators.length;c++){var d=this.animators[c],f=d.targetName;d.getLoop()||d.__changeFinalValue(f?(e||n)[f]:e||n)}u&&this._transitionState(t,s,r)},Nn.prototype._attachComponent=function(t){var e;t.__zr&&!t.__hostTarget||t!==this&&((e=this.__zr)&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this)},Nn.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},Nn.prototype.getClipPath=function(){return this._clipPath},Nn.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},Nn.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},Nn.prototype.getTextContent=function(){return this._textContent},Nn.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new sn,this._attachComponent(t),this._textContent=t,this.markRedraw())},Nn.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Object(l.m)(this.textConfig,t),this.markRedraw()},Nn.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},Nn.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},Nn.prototype.getTextGuideLine=function(){return this._textGuide},Nn.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},Nn.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},Nn.prototype.markRedraw=function(){this.__dirty|=xt;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},Nn.prototype.dirty=function(){this.markRedraw()},Nn.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},Nn.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},Nn.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},Nn.prototype.animate=function(t,e,n){var i=t?this[t]:this;i=new ye(i,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},Nn.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during((function(){i.updateDuringAnimation(e)})).done((function(){var e=i.animators,n=Object(l.r)(e,t);0<=n&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},Nn.prototype.updateDuringAnimation=function(t){this.markRedraw()},Nn.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,o=[],r=0;r<i;r++){var a=n[r];t&&t!==a.scope?o.push(a):a.stop(e)}return this.animators=o,this},Nn.prototype.animateTo=function(t,e,n){En(this,t,e,n)},Nn.prototype.animateFrom=function(t,e,n){En(this,t,e,n,!0)},Nn.prototype._transitionState=function(t,e,n,i){for(var o=En(this,e,n,i),r=0;r<o.length;r++)o[r].__fromStateTransition=t},Nn.prototype.getBoundingRect=function(){return null},Nn.prototype.getPaintRect=function(){return null},Nn.initDefaultProps=function(){var t=Nn.prototype;function e(e,n,i,o){function r(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[o]},set:function(e){t[o]=e}})}Object.defineProperty(t,e,{get:function(){var t;return this[n]||(t=this[n]=[],r(this,t)),this[n]},set:function(t){this[i]=t[0],this[o]=t[1],this[n]=t,r(this,t)}})}t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=xt,Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),e=Nn;function Nn(t){this.id=Object(l.p)(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}function En(t,e,n,i,o){function r(){c=!0,--u<=0&&(c?h&&h():p&&p())}function a(){--u<=0&&(c?h&&h():p&&p())}var s=[],u=(function t(e,n,i,o,r,a,s,u){for(var c=Object(l.F)(o),h=r.duration,p=r.delay,d=r.additive,f=r.setToFinal,g=!Object(l.A)(a),y=e.animators,m=[],v=0;v<c.length;v++){var x=c[v],_=o[x];null!=_&&null!=i[x]&&(g||a[x])?!Object(l.A)(_)||Object(l.u)(_)||Object(l.x)(_)?m.push(x):n?u||(i[x]=_,e.updateDuringAnimation(n)):t(e,x,i[x],_,r,a&&a[x],s,u):u||(i[x]=_,e.updateDuringAnimation(n),m.push(x))}var b=m.length;if(!d&&b)for(var w,S=0;S<y.length;S++)(M=y[S]).targetName!==n||M.stopTracks(m)&&(w=Object(l.r)(y,M),y.splice(w,1));if(r.force||(m=Object(l.n)(m,(function(t){return!Vn(o[t],i[t])})),b=m.length),0<b||r.force&&!s.length){var M,I=void 0,O=void 0,T=void 0;if(u)for(O={},f&&(I={}),S=0;S<b;S++)x=m[S],O[x]=i[x],f?I[x]=o[x]:i[x]=o[x];else if(f)for(T={},S=0;S<b;S++)x=m[S],T[x]=se(i[x]),Bn(i,o,x);(M=new ye(i,!1,!1,d?Object(l.n)(y,(function(t){return t.targetName===n})):null)).targetName=n,r.scope&&(M.scope=r.scope),f&&I&&M.whenWithKeys(0,I,m),T&&M.whenWithKeys(0,T,m),M.whenWithKeys(null==h?500:h,u?O:o,m).delay(p||0),e.addAnimator(M,n),s.push(M)}}(t,"",t,e,n=n||{},i,s,o),s.length),c=!1,h=n.done,p=n.aborted;u||h&&h(),0<s.length&&n.during&&s[0].during((function(t,e){n.during(e)}));for(var d=0;d<s.length;d++){var f=s[d];f.done(r),f.aborted(a),n.force&&f.duration(n.duration),f.start(n.easing)}return s}function zn(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function Bn(t,e,n){if(Object(l.u)(e[n]))if(Object(l.u)(t[n])||(t[n]=[]),Object(l.E)(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),zn(t[n],e[n],i))}else{var o=e[n],r=t[n],a=o.length;if(i=o,Object(l.u)(i[0]))for(var s=o[0].length,u=0;u<a;u++)r[u]?zn(r[u],o[u],s):r[u]=Array.prototype.slice.call(o[u]);else zn(r,o,a);r.length=o.length}else t[n]=e[n]}function Vn(t,e){return t===e||Object(l.u)(t)&&Object(l.u)(e)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(t,e)}Object(l.K)(e,L),Object(l.K)(e,sn);var Fn;n=e,c(Hn,Fn=n),Hn.prototype.childrenRef=function(){return this._children},Hn.prototype.children=function(){return this._children.slice()},Hn.prototype.childAt=function(t){return this._children[t]},Hn.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},Hn.prototype.childCount=function(){return this._children.length},Hn.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},Hn.prototype.addBefore=function(t,e){var n;return t&&t!==this&&t.parent!==this&&e&&e.parent===this&&0<=(e=(n=this._children).indexOf(e))&&(n.splice(e,0,t),this._doAdd(t)),this},Hn.prototype.replace=function(t,e){return t=l.r(this._children,t),0<=t&&this.replaceAt(e,t),this},Hn.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];return t&&t!==this&&t.parent!==this&&t!==i&&(n[e]=t,i.parent=null,(n=this.__zr)&&i.removeSelfFromZr(n),this._doAdd(t)),this},Hn.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()},Hn.prototype.remove=function(t){var e=this.__zr,n=this._children,i=l.r(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},Hn.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},Hn.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];t.call(e,o,i)}return this},Hn.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=t.call(e,i);i.isGroup&&!o&&i.traverse(t,e)}return this},Hn.prototype.addSelfToZr=function(t){Fn.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].addSelfToZr(t)},Hn.prototype.removeSelfFromZr=function(t){Fn.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].removeSelfFromZr(t)},Hn.prototype.getBoundingRect=function(t){for(var e=new xn(0,0,0,0),n=t||this._children,i=[],o=null,r=0;r<n.length;r++){var a,s=n[r];s.ignore||s.invisible||(a=s.getBoundingRect(),(s=s.getLocalTransform(i))?(xn.applyTransform(e,a,s),(o=o||e.clone()).union(e)):(o=o||a.clone()).union(a))}return o||e},e=Hn;function Hn(t){var e=Fn.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}e.prototype.type="group";var Gn=e,Wn={},Yn={};
- /*!
- * ZRender, a high performance 2d drawing library.
- *
- * Copyright (c) 2013, Baidu Inc.
- * All rights reserved.
- *
- * LICENSE
- * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
- */Xn.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},Xn.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},Xn.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},Xn.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return Object(te.d)(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,o=0;o<i;o++)n+=Object(te.d)(e[o].color,1);return(n/=i)<.4}return!1}(t)},Xn.prototype.getBackgroundColor=function(){return this._backgroundColor},Xn.prototype.setDarkMode=function(t){this._darkMode=t},Xn.prototype.isDarkMode=function(){return this._darkMode},Xn.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},Xn.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},Xn.prototype.flush=function(){this._flush(!1)},Xn.prototype._flush=function(t){var e,n=me();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),t=me();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:t-n})):0<this._sleepAfterStill&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},Xn.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},Xn.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},Xn.prototype.refreshHover=function(){this._needsRefreshHover=!0},Xn.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},Xn.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},Xn.prototype.clearAnimation=function(){this.animation.clear()},Xn.prototype.getWidth=function(){return this.painter.getWidth()},Xn.prototype.getHeight=function(){return this.painter.getHeight()},Xn.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},Xn.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},Xn.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},Xn.prototype.off=function(t,e){this.handler.off(t,e)},Xn.prototype.trigger=function(t,e){this.handler.trigger(t,e)},Xn.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Gn&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},Xn.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 Yn[t]};var Un=Xn;function Xn(t,e,n){var i=this,o=(this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t,new Mt),r=n.renderer||"canvas";Wn[r]||(r=l.F(Wn)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect,r=new Wn[r](e,o,n,t),e=n.ssr||r.ssrOnly,this.storage=o,this.painter=r,t=s.a.node||s.a.worker||e?null:new Be(r.getViewportRoot(),r.root);this.handler=new ct(o,r,t,r.root),this.animation=new _e({stage:{update:e?null:function(){return i._flush(!0)}}}),e||this.animation.start()}function Zn(t,e){return t=new Un(l.p(),t,e),Yn[t.id]=t}var qn=20;function Kn(t,e,n,i){var o=e[0],r=(e=e[1],n[0]),a=(n=n[1],e-o),s=n-r;if(0==a)return 0==s?r:(r+n)/2;if(i)if(0<a){if(t<=o)return r;if(e<=t)return n}else{if(o<=t)return r;if(t<=e)return n}else{if(t===o)return r;if(t===e)return n}return(t-o)/a*s+r}function Qn(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 l.C(t)?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function $n(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),qn),t=(+t).toFixed(e),n?t:+t}function Jn(t){return t.sort((function(t,e){return t-e})),t}function ti(t){if(t=+t,isNaN(t))return 0;if(1e-14<t)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return i=(i=t).toString().toLowerCase(),o=i.indexOf("e"),r=0<o?+i.slice(o+1):0,o=0<o?o:i.length,i=i.indexOf("."),o=i<0?0:o-1-i,Math.max(0,o-r);var i,o,r}function ei(t,e){var n=Math.log,i=Math.LN10;t=Math.floor(n(t[1]-t[0])/i),n=Math.round(n(Math.abs(e[1]-e[0]))/i),e=Math.min(Math.max(-t+n,0),20);return isFinite(e)?e:20}var ni=9007199254740991;function ii(t){var e=2*Math.PI;return(t%e+e)%e}function oi(t){return-1e-4<t&&t<1e-4}var ri=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function ai(t){return t instanceof Date?t:l.C(t)?(e=ri.exec(t))?e[8]?(n=+e[4]||0,"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))):new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0):new Date(NaN):null==t?new Date(NaN):new Date(Math.round(t));var e,n}function si(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return 10<=t/Math.pow(10,e)&&e++,e}function li(t,e){var n=si(t),i=Math.pow(10,n),o=t/i;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*i,-20<=n?+t.toFixed(n<0?-n:0):t}function ui(t,e){e=(t.length-1)*e+1;var n=Math.floor(e),i=+t[n-1];e-=n;return e?i+e*(t[n]-i):i}function ci(t){t.sort((function(t,e){return function t(e,n,i){return e.interval[i]<n.interval[i]||e.interval[i]===n.interval[i]&&(e.close[i]-n.close[i]==(i?-1:1)||!i&&t(e,n,1))}(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i<t.length;){for(var o=t[i].interval,r=t[i].close,a=0;a<2;a++)o[a]<=e&&(o[a]=e,r[a]=a?1:1-n),e=o[a],n=r[a];o[0]===o[1]&&r[0]*r[1]!=1?t.splice(i,1):i++}}function hi(t){var e=parseFloat(t);return e==t&&(0!==e||!l.C(t)||t.indexOf("x")<=0)?e:NaN}function pi(t){return!isNaN(hi(t))}function di(){return Math.round(9*Math.random())}function fi(t,e){return null==t?e:null==e?t:t*e/function t(e,n){return 0===n?e:t(n,e%n)}(t,e)}function gi(t,e,n){return(e-t)*n+t}var yi="series\0",mi="\0_ec_\0";function vi(t){return t instanceof Array?t:null==t?[]:[t]}function xi(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,o=n.length;i<o;i++){var r=n[i];!t.emphasis[e].hasOwnProperty(r)&&t[e].hasOwnProperty(r)&&(t.emphasis[e][r]=t[e][r])}}}var _i=["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"];function bi(t){return!Object(l.A)(t)||Object(l.t)(t)||t instanceof Date?t:t.value}function wi(t,e,n){var i,o,r,a,s,u,c,h,p,d,f="normalMerge"===n,g="replaceMerge"===n,y="replaceAll"===n,m=(t=t||[],e=(e||[]).slice(),Object(l.f)());Object(l.k)(e,(function(t,n){Object(l.A)(t)||(e[n]=null)})),n=function(t,e,n){var i=[];if("replaceAll"===n)return i;for(var o=0;o<t.length;o++){var r=t[o];r&&null!=r.id&&e.set(r.id,o),i.push({existing:"replaceMerge"===n||Ti(r)?null:r,newOption:null,keyInfo:null,brandNew:null})}return i}(t,m,n);return(f||g)&&(i=n,o=t,r=m,a=e,Object(l.k)(a,(function(t,e){var n,s,u;t&&null!=t.id&&(n=Mi(t.id),null!=(s=r.get(n))&&(u=i[s],Object(l.b)(!u.newOption,'Duplicated option on id "'+n+'".'),u.newOption=t,u.existing=o[s],a[e]=null))}))),f&&(s=n,u=e,Object(l.k)(u,(function(t,e){if(t&&null!=t.name)for(var n=0;n<s.length;n++){var i=s[n].existing;if(!s[n].newOption&&i&&(null==i.id||null==t.id)&&!Ti(t)&&!Ti(i)&&Si("name",i,t))return s[n].newOption=t,void(u[e]=null)}}))),f||g?(h=n,t=e,p=g,Object(l.k)(t,(function(t){if(t){for(var e,n=0;(e=h[n])&&(e.newOption||Ti(e.existing)||e.existing&&null!=t.id&&!Si("id",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=p):h.push({newOption:t,brandNew:p,existing:null,keyInfo:null}),n++}}))):y&&(c=n,m=e,Object(l.k)(m,(function(t){c.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})}))),f=n,d=Object(l.f)(),Object(l.k)(f,(function(t){var e=t.existing;e&&d.set(e.id,t)})),Object(l.k)(f,(function(t){var e=t.newOption;Object(l.b)(!e||null==e.id||!d.get(e.id)||d.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&d.set(e.id,t),t.keyInfo||(t.keyInfo={})})),Object(l.k)(f,(function(t,e){var n=t.existing,i=t.newOption,o=t.keyInfo;if(Object(l.A)(i)){if(o.name=null!=i.name?Mi(i.name):n?n.name:yi+e,n)o.id=Mi(n.id);else if(null!=i.id)o.id=Mi(i.id);else for(var r=0;o.id="\0"+o.name+"\0"+r++,d.get(o.id););d.set(o.id,t)}})),n}function Si(t,e,n){return e=Ii(e[t],null),n=Ii(n[t],null),null!=e&&null!=n&&e===n}function Mi(t){return Ii(t,"")}function Ii(t,e){return null==t?e:Object(l.C)(t)?t:Object(l.z)(t)||Object(l.D)(t)?t+"":e}function Oi(t){return t=t.name,!(!t||!t.indexOf(yi))}function Ti(t){return t&&null!=t.id&&0===Mi(t.id).indexOf(mi)}function Ci(t,e,n){Object(l.k)(t,(function(t){var i,o,r=t.newOption;Object(l.A)(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=(i=e,r=r,t=t.existing,o=n,r.type||(t?t.subType:o.determineSubType(i,r))))}))}function Ai(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Object(l.t)(e.dataIndex)?Object(l.H)(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?Object(l.t)(e.name)?Object(l.H)(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function ki(){var t="__ec_inner_"+Di++;return function(e){return e[t]||(e[t]={})}}var Di=di();function Li(t,e,n){e=Pi(e,n);var i=e.mainTypeSpecified,o=e.queryOptionMap,r=e.others,a=n?n.defaultMainType:null;return!i&&a&&o.set(a,{}),o.each((function(e,i){e=Ni(t,i,e,{useDefault:a===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone}),r[i+"Models"]=e.models,r[i+"Model"]=e.models[0]})),r}function Pi(t,e){var n=Object(l.C)(t)?((n={})[t+"Index"]=0,n):t,i=Object(l.f)(),o={},r=!1;return Object(l.k)(n,(function(t,n){var a;"dataIndex"===n||"dataIndexInside"===n?o[n]=t:(a=(n=n.match(/^(\w+)(Index|Id|Name)$/)||[])[1],n=(n[2]||"").toLowerCase(),!a||!n||e&&e.includeMainTypes&&Object(l.r)(e.includeMainTypes,a)<0||(r=r||!!a,(i.get(a)||i.set(a,{}))[n]=t))})),{mainTypeSpecified:r,queryOptionMap:i,others:o}}var ji={useDefault:!0,enableAll:!1,enableNone:!1},Ri={useDefault:!1,enableAll:!0,enableNone:!0};function Ni(t,e,n,i){i=i||ji;var o=n.index,r=n.id,a=(n=n.name,{models:null,specified:null!=o||null!=r||null!=n});return a.specified?"none"===o||!1===o?(Object(l.b)(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),a.models=[]):("all"===o&&(Object(l.b)(i.enableAll,'`"all"` is not a valid value on index option.'),o=r=n=null),a.models=t.queryComponents({mainType:e,index:o,id:r,name:n})):(o=void 0,a.models=i.useDefault&&(o=t.getComponent(e))?[o]:[]),a}function Ei(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function zi(t,e){var n=Object(l.f)(),i=[];return Object(l.k)(t,(function(t){var o=e(t);(n.get(o)||(i.push(o),n.set(o,[]))).push(t)})),{keys:i,buckets:n}}function Bi(t,e,n,i,o){var r=null==e||"auto"===e;if(null==i)return i;if(Object(l.z)(i))return $n(d=gi(n||0,i,o),r?Math.max(ti(n||0),ti(i)):e);if(Object(l.C)(i))return o<1?n:i;for(var a=[],s=n,u=i,c=Math.max(s?s.length:0,u.length),h=0;h<c;++h){var p,d,f=t.getDimensionInfo(h);f&&"ordinal"===f.type?a[h]=(o<1&&s?s:u)[h]:(d=gi(f=s&&s[h]?s[h]:0,p=u[h],o),a[h]=$n(d,r?Math.max(ti(f),ti(p)):e))}return a}var Vi=".",Fi="___EC__COMPONENT__CONTAINER___",Hi="___EC__EXTENDED_CLASS___";function Gi(t){var e={main:"",sub:""};return t&&(t=t.split(Vi),e.main=t[0]||"",e.sub=t[1]||""),e}function Wi(t){(t.$constructor=t).extend=function(t){var e,n,i,o=this;function r(){return n.apply(this,arguments)||this}return i=o,l.w(i)&&/^class\s/.test(Function.prototype.toString.call(i))?(a(r,n=o),e=r):l.s(e=function(){(t.$constructor||o).apply(this,arguments)},this),l.m(e.prototype,t),e[Hi]=!0,e.extend=this.extend,e.superCall=Ui,e.superApply=Xi,e.superClass=o,e}}function Yi(t,e){t.extend=e.extend}function Ui(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function Xi(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Zi(t){var e={};t.registerClass=function(t){var n,i=t.type||t.prototype.type;return i&&(n=i,l.b(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),(n=Gi(t.prototype.type=i)).sub?n.sub!==Fi&&((function(t){var n=e[t.main];return n&&n[Fi]||(n=e[t.main]={___EC__COMPONENT__CONTAINER___:!0}),n}(n))[n.sub]=t):e[n.main]=t),t},t.getClass=function(t,n,i){var o=e[t];if(o&&o[Fi]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return o},t.getClassesByMainType=function(t){t=Gi(t);var n=[];t=e[t.main];return t&&t[Fi]?l.k(t,(function(t,e){e!==Fi&&n.push(t)})):n.push(t),n},t.hasClass=function(t){return t=Gi(t),!!e[t.main]},t.getAllClassMainTypes=function(){var t=[];return l.k(e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){return t=Gi(t),t=e[t.main],t&&t[Fi]}}function qi(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,o){for(var r={},a=0;a<t.length;a++){var s=t[a][1];i&&0<=l.r(i,s)||o&&l.r(o,s)<0||null!=(s=n.getShallow(s,e))&&(r[t[a][0]]=s)}return r}}e=Math.round(10*Math.random());var Ki=qi([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Qi=($i.prototype.getAreaStyle=function(t,e){return Ki(this,t,e)},$i);function $i(){}var Ji=new _n.a(50);function to(t,e,n,i,o){if(t){if("string"!=typeof t)return t;if(e&&e.__zrImageSrc===t||!n)return e;var r=Ji.get(t);n={hostEl:n,cb:i,cbPayload:o};return r?no(e=r.image)||r.pending.push(n):((i=bn.d.loadImage(t,eo,eo)).__zrImageSrc=t,Ji.put(t,i.__cachedImgObj={image:i,pending:[n]})),e}return e}function eo(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function no(t){return t&&t.width&&t.height}var io=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function oo(t,e,n,i){i=i||{};for(var o=Object(l.m)({},i),r=(o.font=e,n=Object(l.P)(n,"..."),o.maxIterations=Object(l.P)(i.maxIterations,2),o.minChar=Object(l.P)(i.minChar,0)),a=(o.cnCharWidth=Sn("国",e),o.ascCharWidth=Sn("a",e)),s=(o.placeholder=Object(l.P)(i.placeholder,""),t=Math.max(0,t-1)),u=0;u<r&&a<=s;u++)s-=a;return i=Sn(n,e),s<i&&(n="",i=0),s=t-i,o.ellipsis=n,o.ellipsisWidth=i,o.contentWidth=s,o.containerWidth=t,o}function ro(t,e){var n=e.containerWidth,i=e.font,o=e.contentWidth;if(!n)return"";if((s=Sn(t,i))<=n)return t;for(var r=0;;r++){if(s<=o||r>=e.maxIterations){t+=e.ellipsis;break}var a=0===r?function(t,e,n,i){for(var o=0,r=0,a=t.length;r<a&&o<e;r++){var s=t.charCodeAt(r);o+=0<=s&&s<=127?n:i}return r}(t,o,e.ascCharWidth,e.cnCharWidth):0<s?Math.floor(t.length*o/s):0,s=Sn(t=t.substr(0,a),i)}return""===t?e.placeholder:t}var ao=function(){},so=function(t){this.tokens=[],t&&(this.tokens=t)},lo=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function uo(t,e){var n=new lo;if(null!=t&&(t+=""),!t)return n;for(var i,o=e.width,r=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==o?null:{width:o,accumWidth:0,breakAll:"breakAll"===a},u=io.lastIndex=0;null!=(i=io.exec(t));){var c=i.index;u<c&&co(n,t.substring(u,c),e,s),co(n,i[2],e,s,i[1]),u=io.lastIndex}u<t.length&&co(n,t.substring(u,t.length),e,s);var h,p=[],d=0,f=0,g=e.padding,y="truncate"===a,m="truncate"===e.lineOverflow;function v(t,e,n){t.width=e,t.lineHeight=n,d+=n,f=Math.max(f,e)}t:for(var x=0;x<n.lines.length;x++){for(var _=n.lines[x],b=0,w=0,S=0;S<_.tokens.length;S++){var M=(D=_.tokens[S]).styleName&&e.rich[D.styleName]||{},I=D.textPadding=M.padding,O=I?I[1]+I[3]:0,T=D.font=M.font||e.font,C=(D.contentHeight=Cn(T),Object(l.P)(M.height,D.contentHeight));if(D.innerHeight=C,I&&(C+=I[0]+I[2]),D.height=C,D.lineHeight=Object(l.Q)(M.lineHeight,e.lineHeight,C),D.align=M&&M.align||e.align,D.verticalAlign=M&&M.verticalAlign||"middle",m&&null!=r&&d+D.lineHeight>r){0<S?(_.tokens=_.tokens.slice(0,S),v(_,w,b),n.lines=n.lines.slice(0,x+1)):n.lines=n.lines.slice(0,x);break t}I=M.width;var A,k=null==I||"auto"===I;"string"==typeof I&&"%"===I.charAt(I.length-1)?(D.percentWidth=I,p.push(D),D.contentWidth=Sn(D.text,T)):(k&&(I=(I=M.backgroundColor)&&I.image)&&(A=void 0,no(I="string"==typeof(h=I)?(A=Ji.get(h))&&A.image:h)&&(D.width=Math.max(D.width,I.width*C/I.height))),null!=(A=y&&null!=o?o-w:null)&&A<D.width?!k||A<O?(D.text="",D.width=D.contentWidth=0):(D.text=function(t,e,n,i,o){if(!e)return"";var r=(t+"").split("\n");o=oo(e,n,i,o);for(var a=0,s=r.length;a<s;a++)r[a]=ro(r[a],o);return r.join("\n")}(D.text,A-O,T,e.ellipsis,{minChar:e.truncateMinChar}),D.width=D.contentWidth=Sn(D.text,T)):D.contentWidth=Sn(D.text,T)),D.width+=O,w+=D.width,M&&(b=Math.max(b,D.lineHeight))}v(_,w,b)}for(n.outerWidth=n.width=Object(l.P)(o,f),n.outerHeight=n.height=Object(l.P)(r,d),n.contentHeight=d,n.contentWidth=f,g&&(n.outerWidth+=g[1]+g[3],n.outerHeight+=g[0]+g[2]),x=0;x<p.length;x++){var D,L=(D=p[x]).percentWidth;D.width=parseInt(L,10)/100*n.width}return n}function co(t,e,n,i,o){var r,a,s=""===e,l=o&&n.rich[o]||{},u=t.lines,c=l.font||n.font,h=!1;i?(n=(t=l.padding)?t[1]+t[3]:0,null!=l.width&&"auto"!==l.width?(t=An(l.width,i.width)+n,0<u.length&&t+i.accumWidth>i.width&&(r=e.split("\n"),h=!0),i.accumWidth=t):(t=po(e,c,i.width,i.breakAll,i.accumWidth),i.accumWidth=t.accumWidth+n,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 ao;y.styleName=o,y.text=g,y.isLineHolder=!g&&!s,"number"==typeof l.width?y.width=l.width:y.width=a?a[p]:Sn(g,c),p||h?u.push(new so([y])):1===(f=(d=(u[u.length-1]||(u[0]=new so)).tokens).length)&&d[0].isLineHolder?d[0]=y:!g&&f&&!s||d.push(y)}}var ho=Object(l.N)(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function po(t,e,n,i,o){for(var r,a=[],s=[],l="",u="",c=0,h=0,p=0;p<t.length;p++){var d,f,g=t.charAt(p);"\n"===g?(u&&(l+=u,h+=c),a.push(l),s.push(h),u=l="",h=c=0):(d=Sn(g,e),f=!i&&(f=void 0,!(!(33<=(f=(f=r=g).charCodeAt(0))&&f<=383)||ho[r])),(a.length?n<h+d:n<o+h+d)?h?(l||u)&&(h=f?(l||(l=u,u="",h=c=0),a.push(l),s.push(h-c),u+=g,l="",c+=d):(u&&(l+=u,u="",c=0),a.push(l),s.push(h),l=g,d)):f?(a.push(u),s.push(c),u=g,c=d):(a.push(g),s.push(d)):(h+=d,f?(u+=g,c+=d):(u&&(l+=u,u="",c=0),l+=g)))}return a.length||l||(l=t,u="",c=0),u&&(l+=u),l&&(a.push(l),s.push(h)),1===a.length&&(h+=o),{accumWidth:h,lines:a,linesWidths:s}}var fo,go="__zr_style_"+Math.round(10*Math.random()),yo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},mo={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},vo=(yo[go]=!0,["z","z2","invisible"]),xo=["invisible"];c(_o,fo=n),_o.prototype._init=function(t){for(var e=Object(l.F)(t),n=0;n<e.length;n++){var i=e[n];"style"===i?this.useStyle(t[i]):fo.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},_o.prototype.beforeBrush=function(){},_o.prototype.afterBrush=function(){},_o.prototype.innerBeforeBrush=function(){},_o.prototype.innerAfterBrush=function(){},_o.prototype.shouldBePainted=function(t,e,n,i){var o=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){return bo.copy(t.getBoundingRect()),t.transform&&bo.applyTransform(t.transform),wo.width=e,wo.height=n,!bo.intersect(wo)}(this,t,e)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths)for(var r=0;r<this.__clipPaths.length;++r)if(this.__clipPaths[r].isZeroArea())return!1;if(i&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},_o.prototype.contain=function(t,e){return this.rectContain(t,e)},_o.prototype.traverse=function(t,e){t.call(e,this)},_o.prototype.rectContain=function(t,e){return t=this.transformCoordToLocal(t,e),this.getBoundingRect().contain(t[0],t[1])},_o.prototype.getPaintRect=function(){var t,e,n,i,o,r=this._paintRect;return this._paintRect&&!this.__dirty||(o=this.transform,t=this.getBoundingRect(),e=(i=this.style).shadowBlur||0,n=i.shadowOffsetX||0,i=i.shadowOffsetY||0,r=this._paintRect||(this._paintRect=new xn(0,0,0,0)),o?xn.applyTransform(r,t,o):r.copy(t),(e||n||i)&&(r.width+=2*e+Math.abs(n),r.height+=2*e+Math.abs(i),r.x=Math.min(r.x,r.x+n-e),r.y=Math.min(r.y,r.y+i-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},_o.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new xn(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},_o.prototype.getPrevPaintRect=function(){return this._prevPaintRect},_o.prototype.animateStyle=function(t){return this.animate("style",t)},_o.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},_o.prototype.attrKV=function(t,e){"style"!==t?fo.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},_o.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:Object(l.m)(this.style,t),this.dirtyStyle(),this},_o.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},_o.prototype.dirty=function(){this.dirtyStyle()},_o.prototype.styleChanged=function(){return!!(2&this.__dirty)},_o.prototype.styleUpdated=function(){this.__dirty&=-3},_o.prototype.createStyle=function(t){return Object(l.g)(yo,t)},_o.prototype.useStyle=function(t){t[go]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},_o.prototype.isStyleObject=function(t){return t[go]},_o.prototype._innerSaveToNormal=function(t){fo.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,vo)},_o.prototype._applyStateObj=function(t,e,n,i,o,r){fo.prototype._applyStateObj.call(this,t,e,n,i,o,r);var a,s=!(e&&i);if(e&&e.style?o?i?a=e.style:(a=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(a,e.style)):(a=this._mergeStyle(this.createStyle(),(i?this:n).style),this._mergeStyle(a,e.style)):s&&(a=n.style),a)if(o){var u=this.style;if(this.style=this.createStyle(s?{}:u),s)for(var c=Object(l.F)(u),h=0;h<c.length;h++)(d=c[h])in a&&(a[d]=a[d],this.style[d]=u[d]);var p=Object(l.F)(a);for(h=0;h<p.length;h++){var d=p[h];this.style[d]=this.style[d]}this._transitionState(t,{style:a},r,this.getAnimationStyleProps())}else this.useStyle(a);var f=this.__inHover?xo:vo;for(h=0;h<f.length;h++)d=f[h],e&&null!=e[d]?this[d]=e[d]:s&&null!=n[d]&&(this[d]=n[d])},_o.prototype._mergeStates=function(t){for(var e,n=fo.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.style&&this._mergeStyle(e=e||{},o.style)}return e&&(n.style=e),n},_o.prototype._mergeStyle=function(t,e){return Object(l.m)(t,e),t},_o.prototype.getAnimationStyleProps=function(){return mo},_o.initDefaultProps=((n=_o.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=2|xt)),n=_o;function _o(t){return fo.call(this,t)||this}var bo=new xn(0,0,0,0),wo=new xn(0,0,0,0),So=n,Mo=Math.min,Io=Math.max,Oo=Math.sin,To=Math.cos,Co=2*Math.PI,Ao=h(),ko=h(),Do=h();function Lo(t,e,n){if(0!==t.length){for(var i=t[0],o=i[0],r=i[0],a=i[1],s=i[1],l=1;l<t.length;l++)i=t[l],o=Mo(o,i[0]),r=Io(r,i[0]),a=Mo(a,i[1]),s=Io(s,i[1]);e[0]=o,e[1]=a,n[0]=r,n[1]=s}}function Po(t,e,n,i,o,r){o[0]=Mo(t,n),o[1]=Mo(e,i),r[0]=Io(t,n),r[1]=Io(e,i)}var jo=[],Ro=[],No={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Eo=[],zo=[],Bo=[],Vo=[],Fo=[],Ho=[],Go=Math.min,Wo=Math.max,Yo=Math.cos,Uo=Math.sin,Xo=Math.abs,Zo=Math.PI,qo=2*Zo,Ko="undefined"!=typeof Float32Array,Qo=[];function $o(t){return Math.round(t/Zo*1e8)/1e8%2*Zo}function Jo(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=[])}Jo.prototype.increaseVersion=function(){this._version++},Jo.prototype.getVersion=function(){return this._version},Jo.prototype.setScale=function(t,e,n){0<(n=n||0)&&(this._ux=Xo(n/Ve/t)||0,this._uy=Xo(n/Ve/e)||0)},Jo.prototype.setDPR=function(t){this.dpr=t},Jo.prototype.setContext=function(t){this._ctx=t},Jo.prototype.getContext=function(){return this._ctx},Jo.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},Jo.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},Jo.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(No.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},Jo.prototype.lineTo=function(t,e){var n=Xo(t-this._xi),i=Xo(e-this._yi),o=n>this._ux||i>this._uy;return this.addData(No.L,t,e),this._ctx&&o&&this._ctx.lineTo(t,e),o?(this._xi=t,this._yi=e,this._pendingPtDist=0):(o=n*n+i*i)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o),this},Jo.prototype.bezierCurveTo=function(t,e,n,i,o,r){return this._drawPendingPt(),this.addData(No.C,t,e,n,i,o,r),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,o,r),this._xi=o,this._yi=r,this},Jo.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(No.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},Jo.prototype.arc=function(t,e,n,i,o,r){this._drawPendingPt(),Qo[0]=i,Qo[1]=o,s=r,(l=$o((a=Qo)[0]))<0&&(l+=qo),c=l-a[0],u=a[1],u+=c,!s&&qo<=u-l?u=l+qo:s&&qo<=l-u?u=l-qo:!s&&u<l?u=l+(qo-$o(l-u)):s&&l<u&&(u=l-(qo-$o(u-l))),a[0]=l,a[1]=u,i=Qo[0];var a,s,l,u,c=(o=Qo[1])-i;return this.addData(No.A,t,e,n,n,i,c,0,r?0:1),this._ctx&&this._ctx.arc(t,e,n,i,o,r),this._xi=Yo(o)*n+t,this._yi=Uo(o)*n+e,this},Jo.prototype.arcTo=function(t,e,n,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,o),this},Jo.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(No.R,t,e,n,i),this},Jo.prototype.closePath=function(){this._drawPendingPt(),this.addData(No.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},Jo.prototype.fill=function(t){t&&t.fill(),this.toStatic()},Jo.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},Jo.prototype.len=function(){return this._len},Jo.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Ko||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},Jo.prototype.appendPath=function(t){for(var e=(t=t instanceof Array?t:[t]).length,n=0,i=this._len,o=0;o<e;o++)n+=t[o].len();for(Ko&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n)),o=0;o<e;o++)for(var r=t[o].data,a=0;a<r.length;a++)this.data[i++]=r[a];this._len=i},Jo.prototype.addData=function(t,e,n,i,o,r,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},Jo.prototype._drawPendingPt=function(){0<this._pendingPtDist&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},Jo.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}},Jo.prototype.toStatic=function(){var t;this._saveData&&(this._drawPendingPt(),(t=this.data)instanceof Array&&(t.length=this._len,Ko&&11<this._len&&(this.data=new Float32Array(t))))},Jo.prototype.getBoundingRect=function(){Bo[0]=Bo[1]=Fo[0]=Fo[1]=Number.MAX_VALUE,Vo[0]=Vo[1]=Ho[0]=Ho[1]=-Number.MAX_VALUE;for(var t,e,n,i=this.data,o=0,r=0,a=0,s=0,l=0;l<this._len;){var u=i[l++],c=1===l;switch(c&&(a=o=i[l],s=r=i[l+1]),u){case No.M:o=a=i[l++],r=s=i[l++],Fo[0]=a,Fo[1]=s,Ho[0]=a,Ho[1]=s;break;case No.L:Po(o,r,i[l],i[l+1],Fo,Ho),o=i[l++],r=i[l++];break;case No.C:C=I=M=S=w=b=_=x=v=m=y=g=f=d=p=h=void 0;var h=o,p=r,d=i[l++],f=i[l++],g=i[l++],y=i[l++],m=i[l],v=i[l+1],x=Fo,_=Ho,b=Ht,w=Bt,S=b(h,d,g,m,jo);x[0]=1/0,x[1]=1/0,_[0]=-1/0,_[1]=-1/0;for(var M=0;M<S;M++){var I=w(h,d,g,m,jo[M]);x[0]=Mo(I,x[0]),_[0]=Io(I,_[0])}for(S=b(p,f,y,v,Ro),M=0;M<S;M++){var C=w(p,f,y,v,Ro[M]);x[1]=Mo(C,x[1]),_[1]=Io(C,_[1])}x[0]=Mo(h,x[0]),_[0]=Io(h,_[0]),x[0]=Mo(m,x[0]),_[0]=Io(m,_[0]),x[1]=Mo(p,x[1]),_[1]=Io(p,_[1]),x[1]=Mo(v,x[1]),_[1]=Io(v,_[1]),o=i[l++],r=i[l++];break;case No.Q:b=o,t=r,j=i[l++],k=i[l++],P=i[l],e=i[l+1],L=Fo,R=Ho,n=D=n=A=void 0,A=Yt,n=Io(Mo((D=Xt)(b,j,P),1),0),D=Io(Mo(D(t,k,e),1),0),j=A(b,j,P,n),n=A(t,k,e,D),L[0]=Mo(b,P,j),L[1]=Mo(t,e,n),R[0]=Io(b,P,j),R[1]=Io(t,e,n),o=i[l++],r=i[l++];break;case No.A:var A=i[l++],k=i[l++],D=i[l++],L=i[l++],P=i[l++],j=i[l++]+P,R=(l+=1,!i[l++]);c&&(a=Yo(P)*D+A,s=Uo(P)*L+k),function(t,e,n,i,o,r,a,s,l){var u=O,c=T,h=Math.abs(o-r);if(h%Co<1e-4&&1e-4<h)return s[0]=t-n,s[1]=e-i,l[0]=t+n,l[1]=e+i;Ao[0]=To(o)*n+t,Ao[1]=Oo(o)*i+e,ko[0]=To(r)*n+t,ko[1]=Oo(r)*i+e,u(s,Ao,ko),c(l,Ao,ko),(o%=Co)<0&&(o+=Co),(r%=Co)<0&&(r+=Co),r<o&&!a?r+=Co:o<r&&a&&(o+=Co),a&&(h=r,r=o,o=h);for(var p=0;p<r;p+=Math.PI/2)o<p&&(Do[0]=To(p)*n+t,Do[1]=Oo(p)*i+e,u(s,Do,s),c(l,Do,l))}(A,k,D,L,P,j,R,Fo,Ho),o=Yo(j)*D+A,r=Uo(j)*L+k;break;case No.R:Po(a=o=i[l++],s=r=i[l++],a+i[l++],s+i[l++],Fo,Ho);break;case No.Z:o=a,r=s}O(Bo,Bo,Fo),T(Vo,Vo,Ho)}return 0===l&&(Bo[0]=Bo[1]=Vo[0]=Vo[1]=0),new xn(Bo[0],Bo[1],Vo[0]-Bo[0],Vo[1]-Bo[1])},Jo.prototype._calculateLength=function(){for(var t=this.data,e=this._len,n=this._ux,i=this._uy,o=0,r=0,a=0,s=0,l=(this._pathSegLen||(this._pathSegLen=[]),this._pathSegLen),u=0,c=0,h=0;h<e;){var p=t[h++],d=1===h,f=(d&&(a=o=t[h],s=r=t[h+1]),-1);switch(p){case No.M:o=a=t[h++],r=s=t[h++];break;case No.L:var g=t[h++],y=(x=t[h++])-r;(Xo(T=g-o)>n||Xo(y)>i||h===e-1)&&(f=Math.sqrt(T*T+y*y),o=g,r=x);break;case No.C:var m=t[h++],v=t[h++],x=(g=t[h++],t[h++]),_=t[h++],b=t[h++];f=function(t,e,n,i,o,r,a,s,l){for(var u=t,c=e,h=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=Bt(t,n,o,a,f),y=(f=Bt(e,i,r,s,f),g-u),m=f-c;h+=Math.sqrt(y*y+m*m),u=g,c=f}return h}(o,r,m,v,g,x,_,b,10),o=_,r=b;break;case No.Q:f=function(t,e,n,i,o,r,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var p=h*c,d=Yt(t,n,o,p),f=(p=Yt(e,i,r,p),d-s),g=p-l;u+=Math.sqrt(f*f+g*g),s=d,l=p}return u}(o,r,m=t[h++],v=t[h++],g=t[h++],x=t[h++],10),o=g,r=x;break;case No.A:_=t[h++],b=t[h++];var w=t[h++],S=t[h++],M=t[h++],I=t[h++],O=I+M;h+=1,t[h++],d&&(a=Yo(M)*w+_,s=Uo(M)*S+b),f=Wo(w,S)*Go(qo,Math.abs(I)),o=Yo(O)*w+_,r=Uo(O)*S+b;break;case No.R:a=o=t[h++],s=r=t[h++],f=2*t[h++]+2*t[h++];break;case No.Z:var T=a-o;y=s-r;f=Math.sqrt(T*T+y*y),o=a,r=s}0<=f&&(u+=l[c++]=f)}return this._pathLen=u},Jo.prototype.rebuildPath=function(t,e){var n,i,o,r,a,s,l,u,c=this.data,h=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 x=c[v++],_=1===v;switch(_&&(n=o=c[v],i=r=c[v+1]),x!==No.L&&0<m&&(t.lineTo(l,u),m=0),x){case No.M:n=o=c[v++],i=r=c[v++],t.moveTo(o,r);break;case No.L:var b=c[v++],w=c[v++],S=Xo(b-o),M=Xo(w-r);if(h<S||p<M){if(f){if(s<g+(H=a[y++])){var I=(s-g)/H;t.lineTo(o*(1-I)+b*I,r*(1-I)+w*I);break t}g+=H}t.lineTo(b,w),o=b,r=w,m=0}else S=S*S+M*M,m<S&&(l=b,u=w,m=S);break;case No.C:var O=c[v++],T=c[v++],C=c[v++],A=c[v++];M=c[v++],S=c[v++];if(f){if(s<g+(H=a[y++])){Gt(o,O,C,M,I=(s-g)/H,Eo),Gt(r,T,A,S,I,zo),t.bezierCurveTo(Eo[1],zo[1],Eo[2],zo[2],Eo[3],zo[3]);break t}g+=H}t.bezierCurveTo(O,T,C,A,M,S),o=M,r=S;break;case No.Q:if(O=c[v++],T=c[v++],C=c[v++],A=c[v++],f){if(s<g+(H=a[y++])){Zt(o,O,C,I=(s-g)/H,Eo),Zt(r,T,A,I,zo),t.quadraticCurveTo(Eo[1],zo[1],Eo[2],zo[2]);break t}g+=H}t.quadraticCurveTo(O,T,C,A),o=C,r=A;break;case No.A:var k=c[v++],D=c[v++],L=c[v++],P=c[v++],j=c[v++],R=c[v++],N=c[v++],E=!c[v++],z=P<L?L:P,B=.001<Xo(L-P),V=j+R,F=!1;if(f&&(s<g+(H=a[y++])&&(V=j+R*(s-g)/H,F=!0),g+=H),B&&t.ellipse?t.ellipse(k,D,L,P,N,j,V,E):t.arc(k,D,z,j,V,E),F)break t;_&&(n=Yo(j)*L+k,i=Uo(j)*P+D),o=Yo(V)*L+k,r=Uo(V)*P+D;break;case No.R:n=o=c[v],i=r=c[v+1],b=c[v++],w=c[v++];var H;R=c[v++],B=c[v++];if(f){if(s<g+(H=a[y++])){N=s-g,t.moveTo(b,w),t.lineTo(b+Go(N,R),w),0<(N-=R)&&t.lineTo(b+R,w+Go(N,B)),0<(N-=B)&&t.lineTo(b+Wo(R-N,0),w+B),0<(N-=R)&&t.lineTo(b,w+Wo(B-N,0));break t}g+=H}t.rect(b,w,R,B);break;case No.Z:if(f){if(s<g+(H=a[y++])){I=(s-g)/H,t.lineTo(o*(1-I)+n*I,r*(1-I)+i*I);break t}g+=H}t.closePath(),o=n,r=i}}},Jo.prototype.clone=function(){var t=new Jo,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},Jo.CMD=No,Jo.initDefaultProps=((n=Jo.prototype)._saveData=!0,n._ux=0,n._uy=0,n._pendingPtDist=0,void(n._version=0));var tr=Jo;function er(t,e,n,i,o,r,a){if(0!==o){var s=0;if(!(e+o<a&&i+o<a||a<e-o&&a<i-o||t+o<r&&n+o<r||r<t-o&&r<n-o))return t===n?Math.abs(r-t)<=o/2:(r=(s=(e-i)/(t-n))*r-a+(t*i-n*e)/(t-n),r*r/(s*s+1)<=o/2*o/2)}}function nr(t,e,n,i,o,r,a,s,l){if(0!==a)return e+a<l&&i+a<l&&r+a<l||l<e-a&&l<i-a&&l<r-a||t+a<s&&n+a<s&&o+a<s||s<t-a&&s<n-a&&s<o-a?void 0:qt(t,e,n,i,o,r,s,l,null)<=a/2}var ir=2*Math.PI;function or(t){return(t%=ir)<0&&(t+=ir),t}var rr=2*Math.PI;function ar(t,e,n,i,o,r){if(e<r&&i<r||r<e&&r<i)return 0;if(i===e)return 0;r=(r-e)/(i-e);var a=i<e?1:-1;1!=r&&0!=r||(a=i<e?.5:-.5),i=r*(n-t)+t;return i===o?1/0:o<i?a:0}var sr=tr.CMD,lr=2*Math.PI,ur=1e-4,cr=[-1,-1,-1],hr=[-1,-1];function pr(t,e,n,i,o,r,a,s,l,u){if(e<u&&i<u&&r<u&&s<u||u<e&&u<i&&u<r&&u<s)return 0;var c=Ft(e,i,r,s,u,cr);if(0===c)return 0;for(var h,p=0,d=-1,f=void 0,g=void 0,y=0;y<c;y++){var m=cr[y],v=0===m||1===m?.5:1;Bt(t,n,o,a,m)<l||(d<0&&(d=Ht(e,i,r,s,hr),hr[1]<hr[0]&&1<d&&(h=void 0,h=hr[0],hr[0]=hr[1],hr[1]=h),f=Bt(e,i,r,s,hr[0]),1<d&&(g=Bt(e,i,r,s,hr[1]))),2===d?m<hr[0]?p+=f<e?v:-v:m<hr[1]?p+=g<f?v:-v:p+=s<g?v:-v:m<hr[0]?p+=f<e?v:-v:p+=s<f?v:-v)}return p}function dr(t,e,n,i,o,r,a,s){if(e<s&&i<s&&r<s||s<e&&s<i&&s<r)return 0;h=cr,c=(l=e)-2*(u=i)+(c=r),u=2*(u-l),l-=s=s,s=0,Et(c)?zt(u)&&0<=(p=-l/u)&&p<=1&&(h[s++]=p):Et(l=u*u-4*c*l)?0<=(p=-u/(2*c))&&p<=1&&(h[s++]=p):0<l&&(d=(-u-(l=At(l)))/(2*c),0<=(p=(-u+l)/(2*c))&&p<=1&&(h[s++]=p),0<=d&&d<=1&&(h[s++]=d));var l,u,c,h,p,d,f=s;if(0===f)return 0;var g=Xt(e,i,r);if(0<=g&&g<=1){for(var y=0,m=Yt(e,i,r,g),v=0;v<f;v++){var x=0===cr[v]||1===cr[v]?.5:1;Yt(t,n,o,cr[v])<a||(cr[v]<g?y+=m<e?x:-x:y+=r<m?x:-x)}return y}return x=0===cr[0]||1===cr[0]?.5:1,Yt(t,n,o,cr[0])<a?0:r<e?x:-x}function fr(t,e,n,i,o){for(var r,a=t.data,s=t.len(),l=0,u=0,c=0,h=0,p=0,d=0;d<s;){var f=a[d++],g=1===d;switch(f===sr.M&&1<d&&(n||(l+=ar(u,c,h,p,i,o))),g&&(h=u=a[d],p=c=a[d+1]),f){case sr.M:u=h=a[d++],c=p=a[d++];break;case sr.L:if(n){if(er(u,c,a[d],a[d+1],e,i,o))return!0}else l+=ar(u,c,a[d],a[d+1],i,o)||0;u=a[d++],c=a[d++];break;case sr.C:if(n){if(function(t,e,n,i,o,r,a,s,l,u,c){if(0!==l)return e+l<c&&i+l<c&&r+l<c&&s+l<c||c<e-l&&c<i-l&&c<r-l&&c<s-l||t+l<u&&n+l<u&&o+l<u&&a+l<u||u<t-l&&u<n-l&&u<o-l&&u<a-l?void 0:Wt(t,e,n,i,o,r,a,s,u,c,null)<=l/2}(u,c,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,i,o))return!0}else l+=pr(u,c,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,o)||0;u=a[d++],c=a[d++];break;case sr.Q:if(n){if(nr(u,c,a[d++],a[d++],a[d],a[d+1],e,i,o))return!0}else l+=dr(u,c,a[d++],a[d++],a[d],a[d+1],i,o)||0;u=a[d++],c=a[d++];break;case sr.A:var y=a[d++],m=a[d++],v=a[d++],x=a[d++],_=a[d++],b=a[d++],w=(d+=1,!!(1-a[d++])),S=Math.cos(_)*v+y,M=Math.sin(_)*x+m,I=(g?(h=S,p=M):l+=ar(u,c,S,M,i,o),(i-y)*x/v+y);if(n){if(function(t,e,n,i,o,r,a,s,l){if(0!==a&&(s-=t,l-=e,t=Math.sqrt(s*s+l*l),!(n<t-a||t+a<n)))return Math.abs(i-o)%rr<1e-4?1:((o=r?(e=i,i=or(o),or(e)):(i=or(i),or(o)))<i&&(o+=rr),t=Math.atan2(l,s),t<0&&(t+=rr),i<=t&&t<=o||i<=t+rr&&t+rr<=o)}(y,m,x,_,_+b,w,e,I,o))return!0}else l+=function(t,e,n,i,o,r,a,s){if(n<(s-=e)||s<-n)return 0;e=Math.sqrt(n*n-s*s);if(cr[0]=-e,cr[1]=e,(n=Math.abs(i-o))<1e-4)return 0;if(lr-1e-4<=n)return o=lr,c=r?1:-1,a>=cr[i=0]+t&&a<=cr[1]+t?c:0;o<i&&(e=i,i=o,o=e),i<0&&(i+=lr,o+=lr);for(var l=0,u=0;u<2;u++){var c,h=cr[u];a<h+t&&(c=r?1:-1,(i<=(h=(h=Math.atan2(s,h))<0?lr+h:h)&&h<=o||i<=h+lr&&h+lr<=o)&&(l+=c=h>Math.PI/2&&h<1.5*Math.PI?-c:c))}return l}(y,m,x,_,_+b,w,I,o);u=Math.cos(_+b)*v+y,c=Math.sin(_+b)*x+m;break;case sr.R:if(h=u=a[d++],p=c=a[d++],S=h+a[d++],M=p+a[d++],n){if(er(h,p,S,p,e,i,o)||er(S,p,S,M,e,i,o)||er(S,M,h,M,e,i,o)||er(h,M,h,p,e,i,o))return!0}else l=(l+=ar(S,p,S,M,i,o))+ar(h,M,h,p,i,o);break;case sr.Z:if(n){if(er(u,c,h,p,e,i,o))return!0}else l+=ar(u,c,h,p,i,o);u=h,c=p}}return n||(t=c,r=p,Math.abs(t-r)<ur)||(l+=ar(u,c,h,p,i,o)||0),0!==l}var gr,yr=Object(l.i)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},yo),mr={style:Object(l.i)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},mo.style)},vr=rn.concat(["invisible","culling","z","z2","zlevel","parent"]);function xr(t){return gr.call(this,t)||this}c(xr,gr=So),xr.prototype.update=function(){var t=this,e=(gr.prototype.update.call(this),this.style);if(e.decal){var n,i=this._decalEl=this._decalEl||new xr,o=(i.buildPath===xr.prototype.buildPath&&(i.buildPath=function(e){t.buildPath(e,t.shape)}),i.silent=!0,i.style);for(n in e)o[n]!==e[n]&&(o[n]=e[n]);o.fill=e.fill?e.decal:null,o.decal=null,o.shadowColor=null,e.strokeFirst&&(o.stroke=null);for(var r=0;r<vr.length;++r)i[vr[r]]=this[vr[r]];i.__dirty|=xt}else this._decalEl&&(this._decalEl=null)},xr.prototype.getDecalElement=function(){return this._decalEl},xr.prototype._init=function(t){var e=Object(l.F)(t),n=(this.shape=this.getDefaultShape(),this.getDefaultStyle());n&&this.useStyle(n);for(var i=0;i<e.length;i++){var o=e[i],r=t[o];"style"===o?this.style?Object(l.m)(this.style,r):this.useStyle(r):"shape"===o?Object(l.m)(this.shape,r):gr.prototype.attrKV.call(this,o,r)}this.style||this.useStyle({})},xr.prototype.getDefaultStyle=function(){return null},xr.prototype.getDefaultShape=function(){return{}},xr.prototype.canBeInsideText=function(){return this.hasFill()},xr.prototype.getInsideTextFill=function(){var t,e=this.style.fill;if("none"!==e){if(Object(l.C)(e))return.5<(t=Object(te.d)(e,0))?Fe:.2<t?"#eee":He;if(e)return He}return Fe},xr.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(l.C)(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==Object(te.d)(t,0)<.4)return e}},xr.prototype.buildPath=function(t,e,n){},xr.prototype.pathUpdated=function(){this.__dirty&=~_t},xr.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},xr.prototype.createPathProxy=function(){this.path=new tr(!1)},xr.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))},xr.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},xr.prototype.getBoundingRect=function(){var t,e,n=this._rect,i=this.style,o=!n;return o&&(t=!1,this.path||(t=!0,this.createPathProxy()),e=this.path,(t||this.__dirty&_t)&&(e.beginPath(),this.buildPath(e,this.shape,!1),this.pathUpdated()),n=e.getBoundingRect()),this._rect=n,this.hasStroke()&&this.path&&0<this.path.len()?(t=this._rectStroke||(this._rectStroke=n.clone()),(this.__dirty||o)&&(t.copy(n),e=i.strokeNoScale?this.getLineScale():1,o=i.lineWidth,this.hasFill()||(i=this.strokeContainThreshold,o=Math.max(o,null==i?4:i)),1e-10<e&&(t.width+=o/e,t.height+=o/e,t.x-=o/e/2,t.y-=o/e/2)),t):n},xr.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),o=this.style;if(t=n[0],e=n[1],i.contain(t,e)){if(n=this.path,this.hasStroke()&&(i=o.lineWidth,o=o.strokeNoScale?this.getLineScale():1,1e-10<o&&(this.hasFill()||(i=Math.max(i,this.strokeContainThreshold)),fr(n,i/o,!0,t,e))))return!0;if(this.hasFill())return fr(n,0,!1,t,e)}return!1},xr.prototype.dirtyShape=function(){this.__dirty|=_t,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},xr.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},xr.prototype.animateShape=function(t){return this.animate("shape",t)},xr.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},xr.prototype.attrKV=function(t,e){"shape"===t?this.setShape(e):gr.prototype.attrKV.call(this,t,e)},xr.prototype.setShape=function(t,e){var n=(n=this.shape)||(this.shape={});return"string"==typeof t?n[t]=e:Object(l.m)(n,t),this.dirtyShape(),this},xr.prototype.shapeChanged=function(){return!!(this.__dirty&_t)},xr.prototype.createStyle=function(t){return Object(l.g)(yr,t)},xr.prototype._innerSaveToNormal=function(t){gr.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.shape&&!e.shape&&(e.shape=Object(l.m)({},this.shape))},xr.prototype._applyStateObj=function(t,e,n,i,o,r){gr.prototype._applyStateObj.call(this,t,e,n,i,o,r);var a,s=!(e&&i);if(e&&e.shape?o?i?a=e.shape:(a=Object(l.m)({},n.shape),Object(l.m)(a,e.shape)):(a=Object(l.m)({},(i?this:n).shape),Object(l.m)(a,e.shape)):s&&(a=n.shape),a)if(o){this.shape=Object(l.m)({},this.shape);for(var u={},c=Object(l.F)(a),h=0;h<c.length;h++){var p=c[h];"object"==typeof a[p]?this.shape[p]=a[p]:u[p]=a[p]}this._transitionState(t,{shape:u},r)}else this.shape=a,this.dirtyShape()},xr.prototype._mergeStates=function(t){for(var e,n=gr.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.shape&&this._mergeStyle(e=e||{},o.shape)}return e&&(n.shape=e),n},xr.prototype.getAnimationStyleProps=function(){return mr},xr.prototype.isZeroArea=function(){return!1},xr.extend=function(t){c(o,e=xr),o.prototype.getDefaultStyle=function(){return Object(l.d)(t.style)},o.prototype.getDefaultShape=function(){return Object(l.d)(t.shape)};var e,n,i=o;function o(n){var i=e.call(this,n)||this;return t.init&&t.init.call(i,n),i}for(n in t)"function"==typeof t[n]&&(i.prototype[n]=t[n]);return i},xr.initDefaultProps=((n=xr.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=2|xt|_t));var _r,br=xr,wr=Object(l.i)({strokeFirst:!0,font:bn.a,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},yr);c(Sr,_r=So),Sr.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth},Sr.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Sr.prototype.createStyle=function(t){return Object(l.g)(wr,t)},Sr.prototype.setBoundingRect=function(t){this._rect=t},Sr.prototype.getBoundingRect=function(){var t,e=this.style;return this._rect||(null!=(t=e.text)?t+="":t="",(t=In(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},Sr.initDefaultProps=void(Sr.prototype.dirtyRectTolerance=10),n=Sr;function Sr(){return null!==_r&&_r.apply(this,arguments)||this}n.prototype.type="tspan";var Mr=n,Ir=Object(l.i)({x:0,y:0},yo),Or={style:Object(l.i)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},mo.style)};c(Cr,Tr=So),Cr.prototype.createStyle=function(t){return Object(l.g)(Ir,t)},Cr.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;if(n=(n=e.image)&&"string"!=typeof n&&n.width&&n.height?e.image:this.__image,!n)return 0;var i="width"===t?"height":"width";e=e[i];return null==e?n[t]:n[t]/n[i]*e},Cr.prototype.getWidth=function(){return this._getSize("width")},Cr.prototype.getHeight=function(){return this._getSize("height")},Cr.prototype.getAnimationStyleProps=function(){return Or},Cr.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new xn(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect};var Tr;n=Cr;function Cr(){return null!==Tr&&Tr.apply(this,arguments)||this}n.prototype.type="image";var Ar=n,kr=Math.round;function Dr(t,e,n){var i,o,r;if(e)return i=e.x1,o=e.x2,r=e.y1,e=e.y2,t.x1=i,t.x2=o,t.y1=r,t.y2=e,n=n&&n.lineWidth,n&&(kr(2*i)===kr(2*o)&&(t.x1=t.x2=Pr(i,n,!0)),kr(2*r)===kr(2*e)&&(t.y1=t.y2=Pr(r,n,!0))),t}function Lr(t,e,n){var i,o,r;if(e)return i=e.x,o=e.y,r=e.width,e=e.height,t.x=i,t.y=o,t.width=r,t.height=e,n=n&&n.lineWidth,n&&(t.x=Pr(i,n,!0),t.y=Pr(o,n,!0),t.width=Math.max(Pr(i+r,n,!1)-t.x,0===r?0:1),t.height=Math.max(Pr(o+e,n,!1)-t.y,0===e?0:1)),t}function Pr(t,e,n){return e?(t=kr(2*t),(t+kr(e))%2==0?t/2:(t+(n?1:-1))/2):t}var jr,Rr=function(){this.x=0,this.y=0,this.width=0,this.height=0},Nr={};c(Er,jr=br),Er.prototype.getDefaultShape=function(){return new Rr},Er.prototype.buildPath=function(t,e){var n,i,o,r,a,s,l,u,c,h,p,d,f,g;this.subPixelOptimize?(n=(a=Lr(Nr,e,this.style)).x,i=a.y,o=a.width,r=a.height,a.r=e.r,e=a):(n=e.x,i=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=u=c=e:e instanceof Array?1===e.length?s=l=u=c=e[0]:2===e.length?(s=u=e[0],l=c=e[1]):3===e.length?(s=e[0],l=c=e[1],u=e[2]):(s=e[0],l=e[1],u=e[2],c=e[3]):s=l=u=c=0,f<s+l&&(s*=f/(h=s+l),l*=f/h),f<u+c&&(u*=f/(h=u+c),c*=f/h),g<l+u&&(l*=g/(h=l+u),u*=g/h),g<s+c&&(s*=g/(h=s+c),c*=g/h),a.moveTo(p+s,d),a.lineTo(p+f-l,d),0!==l&&a.arc(p+f-l,d+l,l,-Math.PI/2,0),a.lineTo(p+f,d+g-u),0!==u&&a.arc(p+f-u,d+g-u,u,0,Math.PI/2),a.lineTo(p+c,d+g),0!==c&&a.arc(p+c,d+g-c,c,Math.PI/2,Math.PI),a.lineTo(p,d+s),0!==s&&a.arc(p+s,d+s,s,Math.PI,1.5*Math.PI)):t.rect(n,i,o,r)},Er.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},n=Er;function Er(t){return jr.call(this,t)||this}n.prototype.type="rect";var zr,Br=n,Vr={fill:"#000"},Fr={style:Object(l.i)({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},mo.style)},Hr=(c(Gr,zr=So),Gr.prototype.childrenRef=function(){return this._children},Gr.prototype.update=function(){zr.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}},Gr.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):zr.prototype.updateTransform.call(this)},Gr.prototype.getLocalTransform=function(t){var e=this.innerTransformable;return e?e.getLocalTransform(t):zr.prototype.getLocalTransform.call(this,t)},Gr.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),zr.prototype.getComputedTransform.call(this)},Gr.prototype._updateSubTexts=function(){var t;this._childCursor=0,Kr(t=this.style),Object(l.k)(t.rich,Kr),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},Gr.prototype.addSelfToZr=function(t){zr.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=t},Gr.prototype.removeSelfFromZr=function(t){zr.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=null},Gr.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new xn(0,0,0,0),e=this._children,n=[],i=null,o=0;o<e.length;o++){var r=e[o],a=r.getBoundingRect();r=r.getLocalTransform(n);r?(t.copy(a),t.applyTransform(r),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},Gr.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Vr},Gr.prototype.setTextContent=function(t){},Gr.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return Object(l.m)(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},Gr.prototype._mergeRich=function(t,e){for(var n=Object(l.F)(e),i=0;i<n.length;i++){var o=n[i];t[o]=t[o]||{},Object(l.m)(t[o],e[o])}},Gr.prototype.getAnimationStyleProps=function(){return Fr},Gr.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},Gr.prototype._updatePlainTexts=function(){for(var t,e=this.style,n=e.font||bn.a,i=e.padding,o=function(t,e){null!=t&&(t+="");var n,i=e.overflow,o=e.padding,r=e.font,a="truncate"===i,s=Cn(r),u=Object(l.P)(e.lineHeight,s),c=!!e.backgroundColor,h="truncate"===e.lineOverflow,p=e.width,d=(i=(n=null==p||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?po(t,e.font,p,"breakAll"===i,0).lines:[]).length*u,Object(l.P)(e.height,i));if(d<i&&h&&(h=Math.floor(d/u),n=n.slice(0,h)),t&&a&&null!=p)for(var f=oo(p,r,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;g<n.length;g++)n[g]=ro(n[g],f);h=d;var y=0;for(g=0;g<n.length;g++)y=Math.max(Sn(n[g],r),y);return null==p&&(p=y),t=y,o&&(h+=o[0]+o[2],t+=o[1]+o[3],p+=o[1]+o[3]),{lines:n,height:d,outerWidth:t=c?p:t,outerHeight:h,lineHeight:u,calculatedLineHeight:s,contentWidth:y,contentHeight:i,width:p}}(ta(e),e),r=ea(e),a=!!e.backgroundColor,s=o.outerHeight,u=o.outerWidth,c=o.contentWidth,h=o.lines,p=o.lineHeight,d=this._defaultStyle,f=e.x||0,g=e.y||0,y=e.align||d.align||"left",m=e.verticalAlign||d.verticalAlign||"top",v=f,x=Tn(g,o.contentHeight,m),_=((r||i)&&(t=On(f,u,y),g=Tn(g,s,m),r&&this._renderBackground(e,e,t,g,u,s)),x+=p/2,i&&(v=Jr(f,y,i),"top"===m?x+=i[0]:"bottom"===m&&(x-=i[2])),0),b=(r=!1,$r("fill"in e?e.fill:(r=!0,d.fill))),w=(Qr("stroke"in e?e.stroke:a||d.autoStroke&&!r?null:(_=2,d.stroke))),S=0<e.textShadowBlur,M=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),I=o.calculatedLineHeight,O=0;O<h.length;O++){var T=this._getOrCreateChild(Mr),C=T.createStyle();T.useStyle(C),C.text=h[O],C.x=v,C.y=x,y&&(C.textAlign=y),C.textBaseline="middle",C.opacity=e.opacity,C.strokeFirst=!0,S&&(C.shadowBlur=e.textShadowBlur||0,C.shadowColor=e.textShadowColor||"transparent",C.shadowOffsetX=e.textShadowOffsetX||0,C.shadowOffsetY=e.textShadowOffsetY||0),C.stroke=w,C.fill=b,w&&(C.lineWidth=e.lineWidth||_,C.lineDash=e.lineDash,C.lineDashOffset=e.lineDashOffset||0),C.font=n,Zr(C,e),x+=p,M&&T.setBoundingRect(new xn(On(C.x,e.width,C.textAlign),Tn(C.y,I,C.textBaseline),c,I))}},Gr.prototype._updateRichTexts=function(){for(var t=this.style,e=uo(ta(t),t),n=e.width,i=e.outerWidth,o=e.outerHeight,r=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,u=t.align||l.align,c=(l=t.verticalAlign||l.verticalAlign,a=On(a,i,u),u=Tn(s,o,l),a),h=u,p=(r&&(c+=r[3],h+=r[0]),c+n),d=(ea(t)&&this._renderBackground(t,t,a,u,i,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,x=g.width,_=0,b=c,w=p,S=m-1,M=void 0;_<m&&(!(M=y[_]).align||"left"===M.align);)this._placeToken(M,t,v,h,b,"left",d),x-=M.width,b+=M.width,_++;for(;0<=S&&"right"===(M=y[S]).align;)this._placeToken(M,t,v,h,w,"right",d),x-=M.width,w-=M.width,S--;for(b+=(n-(b-c)-(p-w)-x)/2;_<=S;)M=y[_],this._placeToken(M,t,v,h,b+M.width/2,"center",d),b+=M.width,_++;h+=v}},Gr.prototype._placeToken=function(t,e,n,i,o,r,a){var s=e.rich[t.styleName]||{},u=(s.text=t.text,t.verticalAlign),c=i+n/2;"top"===u?c=i+t.height/2:"bottom"===u&&(c=i+n-t.height/2),!t.isLineHolder&&ea(s)&&this._renderBackground(s,e,"right"===r?o-t.width:"center"===r?o-t.width/2:o,c-t.height/2,t.width,t.height);u=!!s.backgroundColor,i=t.textPadding,i&&(o=Jr(o,r,i),c-=t.height/2-i[0]-t.innerHeight/2),n=this._getOrCreateChild(Mr),i=n.createStyle();var h=(n.useStyle(i),this._defaultStyle),p=!1,d=0,f=$r("fill"in s?s.fill:"fill"in e?e.fill:(p=!0,h.fill));u=Qr("stroke"in s?s.stroke:"stroke"in e?e.stroke:u||a||h.autoStroke&&!p?null:(d=2,h.stroke)),a=0<s.textShadowBlur||0<e.textShadowBlur,i.text=t.text,i.x=o,i.y=c,a&&(i.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,i.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",i.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,i.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),i.textAlign=r,i.textBaseline="middle",i.font=t.font||bn.a,i.opacity=Object(l.Q)(s.opacity,e.opacity,1),Zr(i,s),u&&(i.lineWidth=Object(l.Q)(s.lineWidth,e.lineWidth,d),i.lineDash=Object(l.P)(s.lineDash,e.lineDash),i.lineDashOffset=e.lineDashOffset||0,i.stroke=u),f&&(i.fill=f),p=t.contentWidth,h=t.contentHeight;n.setBoundingRect(new xn(On(i.x,p,i.textAlign),Tn(i.y,h,i.textBaseline),p,h))},Gr.prototype._renderBackground=function(t,e,n,i,o,r){var a,s,u,c,h=t.backgroundColor,p=t.borderWidth,d=t.borderColor,f=h&&h.image,g=h&&!f,y=t.borderRadius,m=this;(g||t.lineHeight||p&&d)&&((a=this._getOrCreateChild(Br)).useStyle(a.createStyle()),a.style.fill=null,(u=a.shape).x=n,u.y=i,u.width=o,u.height=r,u.r=y,a.dirtyShape()),g?((c=a.style).fill=h||null,c.fillOpacity=Object(l.P)(t.fillOpacity,1)):f&&((s=this._getOrCreateChild(Ar)).onload=function(){m.dirtyStyle()},(u=s.style).image=h.image,u.x=n,u.y=i,u.width=o,u.height=r),p&&d&&((c=a.style).lineWidth=p,c.stroke=d,c.strokeOpacity=Object(l.P)(t.strokeOpacity,1),c.lineDash=t.borderDash,c.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(c.strokeFirst=!0,c.lineWidth*=2)),y=(a||s).style;y.shadowBlur=t.shadowBlur||0,y.shadowColor=t.shadowColor||"transparent",y.shadowOffsetX=t.shadowOffsetX||0,y.shadowOffsetY=t.shadowOffsetY||0,y.opacity=Object(l.Q)(t.opacity,e.opacity,1)},Gr.makeFont=function(t){var e="";return(e=qr(t)?[t.fontStyle,t.fontWeight,Xr(t.fontSize),t.fontFamily||"sans-serif"].join(" "):e)&&Object(l.T)(e)||t.textFont||t.font},Gr);function Gr(t){var e=zr.call(this)||this;return e.type="text",e._children=[],e._defaultStyle=Vr,e.attr(t),e}var Wr={left:!0,right:1,center:1},Yr={top:1,bottom:1,middle:1},Ur=["fontStyle","fontWeight","fontSize","fontFamily"];function Xr(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?bn.c+"px":t+"px":t}function Zr(t,e){for(var n=0;n<Ur.length;n++){var i=Ur[n],o=e[i];null!=o&&(t[i]=o)}}function qr(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function Kr(t){var e;t&&(t.font=Hr.makeFont(t),e=t.align,t.align=null==(e="middle"===e?"center":e)||Wr[e]?e:"left",e=t.verticalAlign,t.verticalAlign=null==(e="center"===e?"middle":e)||Yr[e]?e:"top",t.padding&&(t.padding=Object(l.M)(t.padding)))}function Qr(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function $r(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Jr(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function ta(t){return t=t.text,null!=t&&(t+=""),t}function ea(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function na(t,e,n,i){var o;i&&((o=oa(i)).dataIndex=n,o.dataType=e,o.seriesIndex=t,"group"===i.type&&i.traverse((function(i){i=oa(i),i.seriesIndex=t,i.dataIndex=n,i.dataType=e})))}var ia=Hr,oa=ki(),ra=1,aa={},sa=ki(),la=ki(),ua=0,ca=1,ha=2,pa=["emphasis","blur","select"],da=["normal","emphasis","blur","select"],fa=10,ga=9,ya="highlight",ma="downplay",va="select",xa="unselect",_a="toggleSelect";function ba(t){return null!=t&&"none"!==t}var wa=new _n.a(100);function Sa(t){var e;return Object(l.C)(t)?((e=wa.get(t))||(e=te.c(t,-.1),wa.put(t,e)),e):Object(l.x)(t)?((e=Object(l.m)({},t)).colorStops=Object(l.H)(t.colorStops,(function(t){return{offset:t.offset,color:te.c(t.color,-.1)}})),e):t}function Ma(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Ia(t){Ma(t,"emphasis",ha)}function Oa(t){t.hoverState===ha&&Ma(t,"normal",ua)}function Ta(t){Ma(t,"blur",ca)}function Ca(t){t.hoverState===ca&&Ma(t,"normal",ua)}function Aa(t){t.selected=!0}function ka(t){t.selected=!1}function Da(t,e,n){e(t,n)}function La(t,e,n){Da(t,e,n),t.isGroup&&t.traverse((function(t){Da(t,e,n)}))}function Pa(t,e){switch(e){case"emphasis":t.hoverState=ha;break;case"normal":t.hoverState=ua;break;case"blur":t.hoverState=ca;break;case"select":t.selected=!0}}function ja(t,e,n){var i=0<=Object(l.r)(t.currentStates,e),o=t.style.opacity;t=i?null:function(t,e,n,i){for(var o=t.style,r={},a=0;a<e.length;a++){var s=e[a],l=o[s];r[s]=null==l?i&&i[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(r,e)}return r}(t,["opacity"],e,{opacity:1}),e=(n=n||{}).style||{};return null==e.opacity&&(n=Object(l.m)({},n),e=Object(l.m)({opacity:i?o:.1*t.opacity},e),n.style=e),n}function Ra(t,e){var n,i,o,r,a,s=this.states[t];if(this.style){if("emphasis"===t)return n=this,i=s,e=(e=e)&&0<=Object(l.r)(e,"select"),a=!1,n instanceof br&&(o=sa(n),r=e&&o.selectFill||o.normalFill,e=e&&o.selectStroke||o.normalStroke,(ba(r)||ba(e))&&("inherit"===(o=(i=i||{}).style||{}).fill?(a=!0,i=Object(l.m)({},i),(o=Object(l.m)({},o)).fill=r):!ba(o.fill)&&ba(r)?(a=!0,i=Object(l.m)({},i),(o=Object(l.m)({},o)).fill=Sa(r)):!ba(o.stroke)&&ba(e)&&(a||(i=Object(l.m)({},i),o=Object(l.m)({},o)),o.stroke=Sa(e)),i.style=o)),i&&null==i.z2&&(a||(i=Object(l.m)({},i)),r=n.z2EmphasisLift,i.z2=n.z2+(null!=r?r:fa)),i;if("blur"===t)return ja(this,t,s);if("select"===t)return e=this,(o=s)&&null==o.z2&&(o=Object(l.m)({},o),a=e.z2SelectLift,o.z2=e.z2+(null!=a?a:ga)),o}return s}function Na(t){t.stateProxy=Ra;var e=t.getTextContent();t=t.getTextGuideLine();e&&(e.stateProxy=Ra),t&&(t.stateProxy=Ra)}function Ea(t,e){Ya(t,e)||t.__highByOuter||La(t,Ia)}function za(t,e){Ya(t,e)||t.__highByOuter||La(t,Oa)}function Ba(t,e){t.__highByOuter|=1<<(e||0),La(t,Ia)}function Va(t,e){(t.__highByOuter&=~(1<<(e||0)))||La(t,Oa)}function Fa(t){La(t,Ta)}function Ha(t){La(t,Ca)}function Ga(t){La(t,Aa)}function Wa(t){La(t,ka)}function Ya(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Ua(t){t.getModel().eachComponent((function(e,n){var i=la(n);i.isBlured&&("series"===e?t.getViewOfSeriesModel(n):t.getViewOfComponentModel(n)).group.traverse((function(t){Ca(t)})),i.isBlured=!1}))}function Xa(t,e,n,i){var o,r,a,s=i.getModel();function u(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&Ha(i)}}n=n||"coordinateSystem",null!=t&&e&&"none"!==e&&(o=s.getSeriesByIndex(t),(r=o.coordinateSystem)&&r.master&&(r=r.master),a=[],s.eachSeries((function(t){var s=o===t,c=t.coordinateSystem;c=(c=c&&c.master?c.master:c)&&r?c===r:s;if(!("series"===n&&!s||"coordinateSystem"===n&&!c||"series"===e&&s)){if(i.getViewOfSeriesModel(t).group.traverse((function(t){Ta(t)})),Object(l.u)(e))u(t.getData(),e);else if(Object(l.A)(e))for(var h=Object(l.F)(e),p=0;p<h.length;p++)u(t.getData(h[p]),e[h[p]]);a.push(t),la(t).isBlured=!0}})),s.eachComponent((function(t,e){"series"!==t&&(t=i.getViewOfComponentModel(e))&&t.blurSeries&&t.blurSeries(a,s)})))}function Za(t,e,n){null!=t&&null!=e&&(t=n.getModel().getComponent(t,e))&&(la(t).isBlured=!0,(e=n.getViewOfComponentModel(t))&&e.focusBlurEnabled&&e.group.traverse((function(t){Ta(t)})))}function qa(t,e,n,i){var o={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return o;if(t=i.getModel().getComponent(t,e),!t)return o;if(e=i.getViewOfComponentModel(t),!e||!e.findHighDownDispatchers)return o;for(var r,a=e.findHighDownDispatchers(n),s=0;s<a.length;s++)if("self"===oa(a[s]).focus){r=!0;break}return{focusSelf:r,dispatchers:a}}function Ka(t){var e=t.getAllData();Object(l.k)(e,(function(e){var n=e.data,i=e.type;n.eachItemGraphicEl((function(e,n){(t.isSelected(n,i)?Ga:Wa)(e)}))}))}function Qa(t,e,n){is(t,!0),La(t,Na),Ja(t,e,n)}function $a(t,e,n,i){i?is(t,!1):Qa(t,e,n)}function Ja(t,e,n){t=oa(t),null!=e?(t.focus=e,t.blurScope=n):t.focus&&(t.focus=null)}var ts=["emphasis","blur","select"],es={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ns(t,e,n,i){n=n||"itemStyle";for(var o=0;o<ts.length;o++){var r=ts[o],a=e.getModel([r,n]);t.ensureState(r).style=i?i(a):a[es[n]]()}}function is(t,e){e=!1===e;var n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),e&&!n.__highDownDispatcher||(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function os(t){return!(!t||!t.__highDownDispatcher)}function rs(t){return t=t.type,t===va||t===xa||t===_a}function as(t){return t=t.type,t===ya||t===ma}var ss=ki();function ls(t,e,n,i,o){var r;e&&e.ecModel&&(r=(r=e.ecModel.getUpdatePayload())&&r.animation);var a,s,u;t="update"===t;return e&&e.isAnimationEnabled()?(u=s=a=void 0,u=i?(a=Object(l.P)(i.duration,200),s=Object(l.P)(i.easing,"cubicOut"),0):(a=e.getShallow(t?"animationDurationUpdate":"animationDuration"),s=e.getShallow(t?"animationEasingUpdate":"animationEasing"),e.getShallow(t?"animationDelayUpdate":"animationDelay")),r&&(null!=r.duration&&(a=r.duration),null!=r.easing&&(s=r.easing),null!=r.delay&&(u=r.delay)),Object(l.w)(u)&&(u=u(n,o)),{duration:(a=Object(l.w)(a)?a(n):a)||0,delay:u,easing:s}):null}function us(t,e,n,i,o,r,a){var s=!1,u=(Object(l.w)(o)?(a=r,r=o,o=null):Object(l.A)(o)&&(r=o.cb,a=o.during,s=o.isFrom,c=o.removeOpt,o=o.dataIndex),"leave"===t),c=(u||e.stopAnimation("leave"),ls(t,i,o,u?c||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,o):null));c&&0<c.duration?(i={duration:c.duration,delay:c.delay||0,easing:c.easing,done:r,force:!!r||!!a,setToFinal:!u,scope:t,during:a},s?e.animateFrom(n,i):e.animateTo(n,i)):(e.stopAnimation(),s||e.attr(n),a&&a(1),r&&r())}function cs(t,e,n,i,o,r){us("update",t,e,n,i,o,r)}function hs(t,e,n,i,o,r){us("enter",t,e,n,i,o,r)}function ps(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 ds(t,e,n,i,o,r){ps(t)||us("leave",t,e,n,i,o,r)}function fs(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),ds(t,{style:{opacity:0}},e,n,i)}function gs(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||fs(t,e,n,i)})):fs(t,e,n,i)}function ys(t){ss(t).oldStyle=t.style}var ms={};function vs(t,e){for(var n=0;n<pa.length;n++){var i=pa[n],o=e[i];i=t.ensureState(i);i.style=i.style||{},i.style.text=o}var r=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(r,!0)}function xs(t,e,n){for(var i,o=t.labelFetcher,r=t.labelDataIndex,a=t.labelDimIndex,s=e.normal,u={normal:i=null==(i=o?o.getFormattedLabel(r,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null):i)?Object(l.w)(t.defaultText)?t.defaultText(r,t,n):t.defaultText:i},c=0;c<pa.length;c++){var h=pa[c],p=e[h];u[h]=Object(l.P)(o?o.getFormattedLabel(r,h,null,a,p&&p.get("formatter")):null,i)}return u}function _s(t,e,n,i){n=n||ms;for(var o=t instanceof ia,r=!1,a=0;a<da.length;a++)if((d=e[da[a]])&&d.getShallow("show")){r=!0;break}var s=o?t:t.getTextContent();if(r){o||(s||(s=new ia,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var u=xs(n,e),c=e.normal,h=!!c.getShallow("show"),p=ws(c,i&&i.normal,n,!1,!o);for(p.text=u.normal,o||t.setTextConfig(Ss(c,n,!1)),a=0;a<pa.length;a++){var d,f,g,y=pa[a];(d=e[y])&&(f=s.ensureState(y),(g=!!Object(l.P)(d.getShallow("show"),h))!=h&&(f.ignore=!g),f.style=ws(d,i&&i[y],n,!0,!o),f.style.text=u[y],o||(t.ensureState(y).textConfig=Ss(d,n,!0)))}s.silent=!!c.getShallow("silent"),null!=s.style.x&&(p.x=s.style.x),null!=s.style.y&&(p.y=s.style.y),s.ignore=!h,s.useStyle(p),s.dirty(),n.enableTextSetter&&(As(s).setLabelText=function(t){t=xs(n,e,t),vs(s,t)})}else s&&(s.ignore=!0);t.dirty()}function bs(t,e){for(var n={normal:t.getModel(e=e||"label")},i=0;i<pa.length;i++){var o=pa[i];n[o]=t.getModel([o,e])}return n}function ws(t,e,n,i,o){var r,a={},s=a,u=t,c=n,h=i,p=o;c=c||ms;t=u.ecModel;var d,f=t&&t.option.textStyle,g=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||ms).rich;if(n){e=e||{};for(var i=Object(l.F)(n),o=0;o<i.length;o++){var r=i[o];e[r]=1}}t=t.parentModel}return e}(u);if(g)for(var y in d={},g)g.hasOwnProperty(y)&&(r=u.getModel(["rich",y]),Ts(d[y]={},r,f,c,h,p,!1,!0));return d&&(s.rich=d),(t=u.get("overflow"))&&(s.overflow=t),null!=(t=u.get("minMargin"))&&(s.margin=t),Ts(s,u,f,c,h,p,!0,!1),e&&Object(l.m)(a,e),a}function Ss(t,e,n){e=e||{};var i={},o=t.getShallow("rotate"),r=Object(l.P)(t.getShallow("distance"),n?null:5),a=t.getShallow("offset");n=t.getShallow("position")||(n?null:"inside");return null!=(n="outside"===n?e.defaultOutsidePosition||"top":n)&&(i.position=n),null!=a&&(i.offset=a),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=r&&(i.distance=r),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",i}var Ms=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Is=["align","lineHeight","width","height","tag","verticalAlign"],Os=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Ts(t,e,n,i,o,r,a,s){n=!o&&n||ms;var u=i&&i.inheritColor,c=e.getShallow("color"),h=e.getShallow("textBorderColor"),p=Object(l.P)(e.getShallow("opacity"),n.opacity);"inherit"!==c&&"auto"!==c||(c=u||null),"inherit"!==h&&"auto"!==h||(h=u||null),r||(c=c||n.color,h=h||n.textBorderColor),null!=c&&(t.fill=c),null!=h&&(t.stroke=h),c=Object(l.P)(e.getShallow("textBorderWidth"),n.textBorderWidth),null!=c&&(t.lineWidth=c),h=Object(l.P)(e.getShallow("textBorderType"),n.textBorderType),null!=h&&(t.lineDash=h),c=Object(l.P)(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=c&&(t.lineDashOffset=c),null!=(p=o||null!=p||s?p:i&&i.defaultOpacity)&&(t.opacity=p),o||r||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var d=0;d<Ms.length;d++){var f=Ms[d];null!=(g=Object(l.P)(e.getShallow(f),n[f]))&&(t[f]=g)}for(d=0;d<Is.length;d++)f=Is[d],null!=(g=e.getShallow(f))&&(t[f]=g);if(null!=t.verticalAlign||null!=(h=e.getShallow("baseline"))&&(t.verticalAlign=h),!a||!i.disableBox){for(d=0;d<Os.length;d++){var g;f=Os[d];null!=(g=e.getShallow(f))&&(t[f]=g)}c=e.getShallow("borderType"),null!=c&&(t.borderDash=c),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!u||(t.backgroundColor=u),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!u||(t.borderColor=u)}}function Cs(t,e){return e=e&&e.getModel("textStyle"),Object(l.T)([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 As=ki();function ks(t,e,n,i){t&&((t=As(t)).prevValue=t.value,t.value=n,n=e.normal,t.valueAnimation=n.get("valueAnimation"),t.valueAnimation&&(t.precision=n.get("precision"),t.defaultInterpolatedText=i,t.statesModels=e))}function Ds(t,e,n,i,o){var r,a,s,u=As(t);u.valueAnimation&&u.prevValue!==u.value&&(r=u.defaultInterpolatedText,a=Object(l.P)(u.interpolatedValue,u.prevValue),s=u.value,t.percent=0,(null==u.prevValue?hs:cs)(t,{percent:1},i,e,null,(function(i){var l=Bi(n,u.precision,a,s,i);u.interpolatedValue=1===i?null:l,i=xs({labelDataIndex:e,labelFetcher:o,defaultText:r?r(l):l+""},u.statesModels,l);vs(t,i)})))}var Ls=["textStyle","color"],Ps=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],js=new ia;function Rs(){}Rs.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Ls):null)},Rs.prototype.getFont=function(){return Cs({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},Rs.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Ps.length;n++)e[Ps[n]]=this.getShallow(Ps[n]);return js.useStyle(e),js.update(),js.getBoundingRect()};n=Rs;var Ns=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Es=qi(Ns),zs=(Bs.prototype.getLineStyle=function(t){return Es(this,t)},Bs);function Bs(){}var Vs=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Fs=qi(Vs),Hs=(Gs.prototype.getItemStyle=function(t,e){return Fs(this,t,e)},Gs);function Gs(){}Us.prototype.init=function(t,e,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o]},Us.prototype.mergeOption=function(t,e){Object(l.I)(this.option,t,!0)},Us.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},Us.prototype.getShallow=function(t,e){var n=this.option;n=null==n?n:n[t];return null!=n||e||(e=this.parentModel)&&(n=e.getShallow(t)),n},Us.prototype.getModel=function(t,e){var n=null!=t;t=n?this.parsePath(t):null;return new Us(n?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},Us.prototype.isEmpty=function(){return null==this.option},Us.prototype.restoreData=function(){},Us.prototype.clone=function(){return new this.constructor(Object(l.d)(this.option))},Us.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},Us.prototype.resolveParentPath=function(t){return t},Us.prototype.isAnimationEnabled=function(){if(!s.a.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},Us.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);return null==n&&e?e._doGet(this.resolveParentPath(t),e.parentModel):n};var Ws,Ys=Us;function Us(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}Wi(Ys),cl=Ys,Ws=["__\0is_clz",e++].join("_"),cl.prototype[Ws]=!0,cl.isInstance=function(t){return!(!t||!t[Ws])},Object(l.K)(Ys,zs),Object(l.K)(Ys,Hs),Object(l.K)(Ys,Qi),Object(l.K)(Ys,n);var Xs=Ys,Zs=Math.round(10*Math.random());function qs(t){return[t||"",Zs++].join("_")}function Ks(t,e){return l.I(l.I({},t,!0),e,!0)}var Qs="ZH",$s="EN",Js=$s,tl={},el={},nl=s.a.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(Qs)?Qs:Js;function il(t,e){t=t.toUpperCase(),el[t]=new Xs(e),tl[t]=e}function ol(t){return el[t]}il($s,{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:". "}}}}),il(Qs,{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 rl=1e3,al=60*rl,sl=60*al,ll=24*sl,ul=(e=365*ll,{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}"}),cl="{yyyy}-{MM}-{dd}",hl={year:"{yyyy}",month:"{yyyy}-{MM}",day:cl,hour:cl+" "+ul.hour,minute:cl+" "+ul.minute,second:cl+" "+ul.second,millisecond:ul.none},pl=["year","month","day","hour","minute","second","millisecond"],dl=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function fl(t,e){return"0000".substr(0,e-(t+="").length)+t}function gl(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 yl(t,e,n,i){t=ai(t);var o=t[xl(n)](),r=t[_l(n)]()+1,a=Math.floor((r-1)/4)+1,s=t[bl(n)](),l=t["get"+(n?"UTC":"")+"Day"](),u=t[wl(n)](),c=(u-1)%12+1,h=t[Sl(n)](),p=t[Ml(n)](),d=(t=t[Il(n)](),n=(i instanceof Xs?i:ol(i||nl)||el[Js]).getModel("time"),i=n.get("month"),n.get("monthAbbr")),f=n.get("dayOfWeek");n=n.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,a+"").replace(/{MMMM}/g,i[r-1]).replace(/{MMM}/g,d[r-1]).replace(/{MM}/g,fl(r,2)).replace(/{M}/g,r+"").replace(/{dd}/g,fl(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,f[l]).replace(/{ee}/g,n[l]).replace(/{e}/g,l+"").replace(/{HH}/g,fl(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,fl(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,fl(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,fl(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,fl(t,3)).replace(/{S}/g,t+"")}function ml(t,e){t=ai(t);var n=t[_l(e)]()+1,i=t[bl(e)](),o=t[wl(e)](),r=t[Sl(e)](),a=t[Ml(e)]();t=0===t[Il(e)](),e=t&&0===a,a=e&&0===r,r=a&&0===o,o=r&&1===i;return o&&1===n?"year":o?"month":r?"day":a?"hour":e?"minute":t?"second":"millisecond"}function vl(t,e,n){var i=l.z(t)?ai(t):t;switch(e=e||ml(t,n)){case"year":return i[xl(n)]();case"half-year":return 6<=i[_l(n)]()?1:0;case"quarter":return Math.floor((i[_l(n)]()+1)/4);case"month":return i[_l(n)]();case"day":return i[bl(n)]();case"half-day":return i[wl(n)]()/24;case"hour":return i[wl(n)]();case"minute":return i[Sl(n)]();case"second":return i[Ml(n)]();case"millisecond":return i[Il(n)]()}}function xl(t){return t?"getUTCFullYear":"getFullYear"}function _l(t){return t?"getUTCMonth":"getMonth"}function bl(t){return t?"getUTCDate":"getDate"}function wl(t){return t?"getUTCHours":"getHours"}function Sl(t){return t?"getUTCMinutes":"getMinutes"}function Ml(t){return t?"getUTCSeconds":"getSeconds"}function Il(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Ol(t){return t?"setUTCMonth":"setMonth"}function Tl(t){return t?"setUTCDate":"setDate"}function Cl(t){return t?"setUTCHours":"setHours"}function Al(t){return t?"setUTCMinutes":"setMinutes"}function kl(t){return t?"setUTCSeconds":"setSeconds"}function Dl(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Ll(t){return pi(t)?(t=(t+"").split("."),t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<t.length?"."+t[1]:"")):l.C(t)?t:"-"}function Pl(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t?t.charAt(0).toUpperCase()+t.slice(1):t}var jl=l.M,Rl=/([&<>"'])/g,Nl={"&":"&","<":"<",">":">",'"':""","'":"'"};function El(t){return null==t?"":(t+"").replace(Rl,(function(t,e){return Nl[e]}))}function zl(t,e,n){function i(t){return t&&l.T(t)?t:"-"}function o(t){return null!=t&&!isNaN(t)&&isFinite(t)}var r="time"===e,a=t instanceof Date;if(r||a){if(r=r?ai(t):t,!isNaN(+r))return yl(r,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",n);if(a)return"-"}return"ordinal"===e?l.D(t)?i(t):l.z(t)&&o(t)?t+"":"-":(r=hi(t),o(r)?Ll(r):l.D(t)?i(t):"boolean"==typeof t?t+"":"-")}function Bl(t,e){return"{"+t+(null==e?"":e)+"}"}var Vl=["a","b","c","d","e","f","g"];function Fl(t,e,n){var i=(e=l.t(e)?e:[e]).length;if(!i)return"";for(var o=e[0].$vars||[],r=0;r<o.length;r++){var a=Vl[r];t=t.replace(Bl(a),Bl(a,0))}for(var s=0;s<i;s++)for(var u=0;u<o.length;u++){var c=e[s][o[u]];t=t.replace(Bl(Vl[u],s),n?El(c):c)}return t}function Hl(t,e){return e=e||"transparent",l.C(t)?t:l.A(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Gl(t,e){var n;"_blank"===e||"blank"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}var Wl=l.k,Yl=["left","right","top","bottom","width","height"],Ul=[["width","left","right"],["height","top","bottom"]];function Xl(t,e,n,i,o){var r=0,a=0,s=(null==i&&(i=1/0),null==o&&(o=1/0),0);e.eachChild((function(l,u){var c,h,p,d=l.getBoundingRect();u=e.childAt(u+1),u=u&&u.getBoundingRect();s="horizontal"===t?(h=d.width+(u?-u.x+d.x:0),i<(c=r+h)||l.newline?(r=0,c=h,a+=s+n,d.height):Math.max(s,d.height)):(h=d.height+(u?-u.y+d.y:0),o<(p=a+h)||l.newline?(r+=s+n,a=0,p=h,d.width):Math.max(s,d.width)),l.newline||(l.x=r,l.y=a,l.markRedraw(),"horizontal"===t?r=c+n:a=p+n)}))}var Zl=Xl;function ql(t,e,n){n=jl(n||0);var i=e.width,o=e.height,r=Qn(t.left,i),a=Qn(t.top,o),s=(e=Qn(t.right,i),Qn(t.bottom,o)),l=Qn(t.width,i),u=Qn(t.height,o),c=n[2]+n[0],h=n[1]+n[3],p=t.aspect;switch(isNaN(l)&&(l=i-e-h-r),isNaN(u)&&(u=o-s-c-a),null!=p&&(isNaN(l)&&isNaN(u)&&(i/o<p?l=.8*i:u=.8*o),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(r)&&(r=i-e-l-h),isNaN(a)&&(a=o-s-u-c),t.left||t.right){case"center":r=i/2-l/2-n[3];break;case"right":r=i-l-h}switch(t.top||t.bottom){case"middle":case"center":a=o/2-u/2-n[0];break;case"bottom":a=o-u-c}return r=r||0,a=a||0,isNaN(l)&&(l=i-h-r-(e||0)),isNaN(u)&&(u=o-c-a-(s||0)),p=new xn(r+n[3],a+n[0],l,u),p.margin=n,p}function Kl(t,e,n,i,o,r){var a,s=!o||!o.hv||o.hv[0],u=!o||!o.hv||o.hv[1];o=o&&o.boundingMode||"all";if((r=r||t).x=t.x,r.y=t.y,!s&&!u)return!1;"raw"===o?a="group"===t.type?new xn(0,0,+e.width||0,+e.height||0):t.getBoundingRect():(a=t.getBoundingRect(),t.needLocalTransform()&&(c=t.getLocalTransform(),(a=a.clone()).applyTransform(c)));var c=ql(l.i({width:a.width,height:a.height},e),n,i);e=s?c.x-a.x:0,n=u?c.y-a.y:0;return"raw"===o?(r.x=e,r.y=n):(r.x+=e,r.y+=n),r===t&&t.markRedraw(),!0}function Ql(t){return t=t.layoutMode||t.constructor.layoutMode,l.A(t)?t:t?{type:t}:null}function $l(t,e,n){var i=n&&n.ignoreSize,o=(n=(l.t(i)||(i=[i,i]),r(Ul[0],0)),r(Ul[1],1));function r(n,o){var r={},l=0,u={},c=0;if(Wl(n,(function(e){u[e]=t[e]})),Wl(n,(function(t){a(e,t)&&(r[t]=u[t]=e[t]),s(r,t)&&l++,s(u,t)&&c++})),i[o])return s(e,n[1])?u[n[2]]=null:s(e,n[2])&&(u[n[1]]=null),u;if(2!==c&&l){if(2<=l)return r;for(var h=0;h<n.length;h++){var p=n[h];if(!a(r,p)&&a(t,p)){r[p]=t[p];break}}return r}return u}function a(t,e){return t.hasOwnProperty(e)}function s(t,e){return null!=t[e]&&"auto"!==t[e]}function u(t,e,n){Wl(t,(function(t){e[t]=n[t]}))}u(Ul[0],t,n),u(Ul[1],t,o)}function Jl(t){return tu({},t)}function tu(t,e){return e&&t&&Wl(Yl,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}l.h(Xl,"vertical"),l.h(Xl,"horizontal");var eu,nu,iu,ou,ru=ki(),au=(a(su,eu=Xs),su.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},su.prototype.mergeDefaultAndTheme=function(t,e){var n=Ql(this),i=n?Jl(t):{};e=e.getTheme();l.I(t,e.get(this.mainType)),l.I(t,this.getDefaultOption()),n&&$l(t,i,n)},su.prototype.mergeOption=function(t,e){l.I(this.option,t,!0);var n=Ql(this);n&&$l(this.option,t,n)},su.prototype.optionUpdated=function(t,e){},su.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[Hi])return t.defaultOption;var e=ru(this);if(!e.defaultOption){for(var n=[],i=t;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var r={},a=n.length-1;0<=a;a--)r=l.I(r,n[a],!0);e.defaultOption=r}return e.defaultOption},su.prototype.getReferringComponents=function(t,e){var n=t+"Id";return Ni(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(n,!0)},e)},su.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")}},su.prototype.getZLevelKey=function(){return""},su.prototype.setZLevel=function(t){this.option.zlevel=t},su.protoInitialize=((zs=su.prototype).type="component",zs.id="",zs.name="",zs.mainType="",zs.subType="",void(zs.componentIndex=0)),su);function su(t,e,n){return t=eu.call(this,t,e,n)||this,t.uid=qs("ec_cpt_model"),t}function lu(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}Yi(au,Xs),Zi(au),iu={},(nu=au).registerSubTypeDefaulter=function(t,e){t=Gi(t),iu[t.main]=e},nu.determineSubType=function(t,e){var n,i=e.type;return i||(n=Gi(t).main,nu.hasSubTypes(t)&&iu[n]&&(i=iu[n](e))),i},ou=function(t){var e=[];return l.k(au.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=l.H(e,(function(t){return Gi(t).main})),"dataset"!==t&&l.r(e,"dataset")<=0&&e.unshift("dataset"),e},au.topologicalTravel=function(t,e,n,i){if(t.length){o=e,r={},a=[],l.k(o,(function(t){var e,n,i=lu(r,t),s=i.originalDeps=ou(t);e=o,n=[],l.k(s,(function(t){0<=l.r(e,t)&&n.push(t)})),s=n;i.entryCount=s.length,0===i.entryCount&&a.push(t),l.k(s,(function(e){l.r(i.predecessor,e)<0&&i.predecessor.push(e);var n=lu(r,e);l.r(n.successor,e)<0&&n.successor.push(t)}))}));e={graph:r,noEntryList:a};var o,r,a,s=e.graph,u=e.noEntryList,c={};for(l.k(t,(function(t){c[t]=!0}));u.length;){var h=u.pop(),p=s[h],d=!!c[h];d&&(n.call(i,h,p.originalDeps.slice()),delete c[h]),l.k(p.successor,d?g:f)}l.k(c,(function(){throw new Error("")}))}function f(t){s[t].entryCount--,0===s[t].entryCount&&u.push(t)}function g(t){c[t]=!0,f(t)}};var uu=au,cu=(Hs="",Qi=("undefined"!=typeof navigator&&(Hs=navigator.platform||""),"rgba(0, 0, 0, 0.2)"),{darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Qi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Qi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Qi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Qi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Qi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Qi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Hs.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}),hu=Object(l.f)(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),pu="original",du="arrayRows",fu="objectRows",gu="keyedColumns",yu="typedArray",mu="unknown",vu="column",xu="row",_u={Must:1,Might:2,Not:3},bu=ki();function wu(t,e,n){var i={},o=Mu(e);if(!o||!t)return i;var r,a,s=[],u=[],c=(e=e.ecModel,e=bu(e).datasetMap,o=o.uid+"_"+n.seriesLayoutBy,t=t.slice(),Object(l.k)(t,(function(e,n){e=Object(l.A)(e)?e:t[n]={name:e},"ordinal"===e.type&&null==r&&(r=n,a=p(e)),i[e.name]=[]})),e.get(o)||e.set(o,{categoryWayDim:a,valueWayDim:0}));function h(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function p(t){return t=t.dimsDef,t?t.length:1}return Object(l.k)(t,(function(t,e){var n,o=t.name;t=p(t);null==r?(n=c.valueWayDim,h(i[o],n,t),h(u,n,t),c.valueWayDim+=t):r===e?(h(i[o],0,t),h(s,0,t)):(n=c.categoryWayDim,h(i[o],n,t),h(u,n,t),c.categoryWayDim+=t)})),s.length&&(i.itemName=s),u.length&&(i.seriesName=u),i}function Su(t,e,n){var i={};if(!Mu(t))return i;var o,r=e.sourceFormat,a=e.dimensionsDefine;r!==fu&&r!==gu||Object(l.k)(a,(function(t,e){"name"===(Object(l.A)(t)?t.name:t)&&(o=e)})),t=function(){for(var t={},i={},s=[],l=0,u=Math.min(5,n);l<u;l++){var c=Ou(e.data,r,e.seriesLayoutBy,a,e.startIndex,l),h=(s.push(c),c===_u.Not);if(h&&null==t.v&&l!==o&&(t.v=l),null!=t.n&&t.n!==t.v&&(h||s[t.n]!==_u.Not)||(t.n=l),p(t)&&s[t.n]!==_u.Not)return t;h||(c===_u.Might&&null==i.v&&l!==o&&(i.v=l),null!=i.n&&i.n!==i.v||(i.n=l))}function p(t){return null!=t.v&&null!=t.n}return p(t)?t:p(i)?i:null}();return t&&(i.value=[t.v],t=null!=o?o:t.n,i.itemName=[t],i.seriesName=[t]),i}function Mu(t){if(!t.get("data",!0))return Ni(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},ji).models[0]}function Iu(t,e){return Ou(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Ou(t,e,n,i,o,r){var a,s,u;if(Object(l.E)(t))return _u.Not;if(i&&(i=i[r],Object(l.A)(i)?(s=i.name,u=i.type):Object(l.C)(i)&&(s=i)),null!=u)return"ordinal"===u?_u.Must:_u.Not;if(e===du){var c=t;if(n===xu){for(var h=c[r],p=0;p<(h||[]).length&&p<5;p++)if(null!=(a=v(h[o+p])))return a}else for(p=0;p<c.length&&p<5;p++){var d=c[o+p];if(d&&null!=(a=v(d[r])))return a}}else if(e===fu){var f=t;if(!s)return _u.Not;for(p=0;p<f.length&&p<5;p++)if((y=f[p])&&null!=(a=v(y[s])))return a}else if(e===gu){if(!s)return _u.Not;if(!(h=t[s])||Object(l.E)(h))return _u.Not;for(p=0;p<h.length&&p<5;p++)if(null!=(a=v(h[p])))return a}else if(e===pu){var g=t;for(p=0;p<g.length&&p<5;p++){var y,m=bi(y=g[p]);if(!Object(l.t)(m))return _u.Not;if(null!=(a=v(m[r])))return a}}function v(t){var e=Object(l.C)(t);return null!=t&&isFinite(t)&&""!==t?e?_u.Might:_u.Not:e&&"-"!==t?_u.Must:void 0}return _u.Not}var Tu,Cu,Au,ku=Object(l.f)(),Du=ki(),Lu=ki(),Pu=(ju.prototype.getColorFromPalette=function(t,e,n){var i=vi(this.get("color",!0)),o=this.get("colorLayer",!0);return Nu(this,Du,i,o,t,e,n)},ju.prototype.clearColorPalette=function(){var t,e;(e=Du)(t=this).paletteIdx=0,e(t).paletteNameMap={}},ju);function ju(){}function Ru(t,e,n,i){var o=vi(t.get(["aria","decal","decals"]));return Nu(t,Lu,o,null,e,n,i)}function Nu(t,e,n,i,o,r,a){return e=e(r=r||t),t=e.paletteIdx||0,r=e.paletteNameMap=e.paletteNameMap||{},r.hasOwnProperty(o)?r[o]:(i=(null!=a&&i?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(i,a):n)||n,i&&i.length?(a=i[t],o&&(r[o]=a),e.paletteIdx=(t+1)%i.length,a):void 0)}function Eu(t){throw new Error(t)}var zu="\0_ec_inner";a(Vu,Bu=Xs),Vu.prototype.init=function(t,e,n,i,o,r){i=i||{},this.option=null,this._theme=new Xs(i),this._locale=new Xs(o),this._optionManager=r},Vu.prototype.setOption=function(t,e,n){e=Gu(e),this._optionManager.setOption(t,n,e),this._resetOption(null,e)},Vu.prototype.resetOption=function(t,e){return this._resetOption(t,Gu(e))},Vu.prototype._resetOption=function(t,e){var n,i=!1,o=this._optionManager;return t&&"recreate"!==t||(n=o.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(n,e)):Au(this,n),i=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(n=o.getTimelineOption(this))&&(i=!0,this._mergeOption(n,e)),t&&"recreate"!==t&&"media"!==t||(n=o.getMediaOption(this)).length&&Object(l.k)(n,(function(t){i=!0,this._mergeOption(t,e)}),this),i},Vu.prototype.mergeOption=function(t){this._mergeOption(t,null)},Vu.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,o=this._componentsCount,r=[],a=Object(l.f)(),s=e&&e.replaceMergeMainTypeMap;bu(this).datasetMap=Object(l.f)(),Object(l.k)(t,(function(t,e){null!=t&&(uu.hasClass(e)?e&&(r.push(e),a.set(e,!0)):n[e]=null==n[e]?Object(l.d)(t):Object(l.I)(n[e],t,!0))})),s&&s.each((function(t,e){uu.hasClass(e)&&!a.get(e)&&(r.push(e),a.set(e,!0))})),uu.topologicalTravel(r,uu.getAllClassMainTypes(),(function(e){var r,a=function(t,e,n){return(e=ku.get(e))&&(e=e(t))?n.concat(e):n}(this,e,vi(t[e])),u=i.get(e),c=u?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",h=(u=wi(u,a,c),Ci(u,e,uu),n[e]=null,i.set(e,null),o.set(e,0),[]),p=[],d=0;Object(l.k)(u,(function(t,n){var i=t.existing,o=t.newOption;if(o){var a=uu.getClass(e,t.keyInfo.subType,!("series"===e));if(!a)return;if("tooltip"===e){if(r)return;r=!0}i&&i.constructor===a?(i.name=t.keyInfo.name,i.mergeOption(o,this),i.optionUpdated(o,!1)):(i=new a(o,this,this,a=Object(l.m)({componentIndex:n},t.keyInfo)),Object(l.m)(i,a),t.brandNew&&(i.__requireNewView=!0),i.init(o,this,this),i.optionUpdated(null,!0))}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(h.push(i.option),p.push(i),d++):(h.push(void 0),p.push(void 0))}),this),n[e]=h,i.set(e,p),o.set(e,d),"series"===e&&Tu(this)}),this),this._seriesIndices||Tu(this)},Vu.prototype.getOption=function(){var t=Object(l.d)(this.option);return Object(l.k)(t,(function(e,n){if(uu.hasClass(n)){for(var i=vi(e),o=i.length,r=!1,a=o-1;0<=a;a--)i[a]&&!Ti(i[a])?r=!0:(i[a]=null,r||o--);i.length=o,t[n]=i}})),delete t[zu],t},Vu.prototype.getTheme=function(){return this._theme},Vu.prototype.getLocaleModel=function(){return this._locale},Vu.prototype.setUpdatePayload=function(t){this._payload=t},Vu.prototype.getUpdatePayload=function(){return this._payload},Vu.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){if(t=n[e||0],t)return t;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},Vu.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,o=t.id,r=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=i?(n=[],Object(l.k)(vi(i),(function(t){a[t]&&n.push(a[t])}))):n=null!=o?Fu("id",o,a):null!=r?Fu("name",r,a):Object(l.n)(a,(function(t){return!!t})),Hu(n,t)):[]},Vu.prototype.findComponents=function(t){var e,n=t.query,i=t.mainType,o=(o=i+"Index",r=i+"Id",e=i+"Name",!(n=n)||null==n[o]&&null==n[r]&&null==n[e]?null:{mainType:i,index:n[o],id:n[r],name:n[e]}),r=o?this.queryComponents(o):Object(l.n)(this._componentsMap.get(i),(function(t){return!!t}));return n=Hu(r,t),t.filter?Object(l.n)(n,t.filter):n},Vu.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(Object(l.w)(t)){var o=e,r=t;i.each((function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&r.call(o,e,i,i.componentIndex)}}))}else for(var a=Object(l.C)(t)?i.get(t):Object(l.A)(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var u=a[s];u&&e.call(n,u,u.componentIndex)}},Vu.prototype.getSeriesByName=function(t){var e=Ii(t,null);return Object(l.n)(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},Vu.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},Vu.prototype.getSeriesByType=function(t){return Object(l.n)(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},Vu.prototype.getSeries=function(){return Object(l.n)(this._componentsMap.get("series"),(function(t){return!!t}))},Vu.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},Vu.prototype.eachSeries=function(t,e){Cu(this),Object(l.k)(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)}),this)},Vu.prototype.eachRawSeries=function(t,e){Object(l.k)(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},Vu.prototype.eachSeriesByType=function(t,e,n){Cu(this),Object(l.k)(this._seriesIndices,(function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&e.call(n,o,i)}),this)},Vu.prototype.eachRawSeriesByType=function(t,e,n){return Object(l.k)(this.getSeriesByType(t),e,n)},Vu.prototype.isSeriesFiltered=function(t){return Cu(this),null==this._seriesIndicesMap.get(t.componentIndex)},Vu.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},Vu.prototype.filterSeries=function(t,e){Cu(this);var n=[];Object(l.k)(this._seriesIndices,(function(i){var o=this._componentsMap.get("series")[i];t.call(e,o,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=Object(l.f)(n)},Vu.prototype.restoreData=function(t){Tu(this);var e=this._componentsMap,n=[];e.each((function(t,e){uu.hasClass(e)&&n.push(e)})),uu.topologicalTravel(n,uu.getAllClassMainTypes(),(function(n){Object(l.k)(e.get(n),(function(e){!e||"series"===n&&function(t,e){var n,i;if(e)return n=e.seriesIndex,i=e.seriesId,e=e.seriesName,null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=e&&t.name!==e}(e,t)||e.restoreData()}))}))},Vu.internalField=(Tu=function(t){var e=t._seriesIndices=[];Object(l.k)(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=Object(l.f)(e)},Cu=function(t){},void(Au=function(t,e){t.option={},t.option[zu]=1,t._componentsMap=Object(l.f)({series:[]}),t._componentsCount=Object(l.f)();var n,i,o=e.aria;Object(l.A)(o)&&null==o.enabled&&(o.enabled=!0),n=e,o=t._theme.option,i=n.color&&!n.colorLayer,Object(l.k)(o,(function(t,e){"colorLayer"===e&&i||uu.hasClass(e)||("object"==typeof t?n[e]=n[e]?Object(l.I)(n[e],t,!1):Object(l.d)(t):null==n[e]&&(n[e]=t))})),Object(l.I)(e,cu,!1),t._mergeOption(e,null)}));var Bu;n=Vu;function Vu(){return null!==Bu&&Bu.apply(this,arguments)||this}function Fu(t,e,n){var i,o;return Object(l.t)(e)?(i=Object(l.f)(),Object(l.k)(e,(function(t){null!=t&&null!=Ii(t,null)&&i.set(t,!0)})),Object(l.n)(n,(function(e){return e&&i.get(e[t])}))):(o=Ii(e,null),Object(l.n)(n,(function(e){return e&&null!=o&&e[t]===o})))}function Hu(t,e){return e.hasOwnProperty("subType")?Object(l.n)(t,(function(t){return t&&t.subType===e.subType})):t}function Gu(t){var e=Object(l.f)();return t&&Object(l.k)(vi(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}function Wu(t){l.k(Uu,(function(e){this[e]=l.c(t[e],t)}),this)}Object(l.K)(n,Pu);var Yu=n,Uu=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Xu={};function Zu(){this._coordinateSystems=[]}Zu.prototype.create=function(t,e){var n=[];l.k(Xu,(function(i,o){i=i.create(t,e),n=n.concat(i||[])})),this._coordinateSystems=n},Zu.prototype.update=function(t,e){l.k(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},Zu.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},Zu.register=function(t,e){Xu[t]=e},Zu.get=function(t){return Xu[t]};var qu=Zu,Ku=/^(min|max)?(.+)$/;function Qu(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}Qu.prototype.setOption=function(t,e,n){t&&(Object(l.k)(vi(t.series),(function(t){t&&t.data&&Object(l.E)(t.data)&&Object(l.R)(t.data)})),Object(l.k)(vi(t.dataset),(function(t){t&&t.source&&Object(l.E)(t.source)&&Object(l.R)(t.source)}))),t=Object(l.d)(t);var i=this._optionBackup;t=function(t,e,n){var i,o,r=[],a=t.baseOption,s=t.timeline,u=t.options,c=t.media,h=!!t.media,p=!!(u||s||a&&a.timeline);function d(t){Object(l.k)(e,(function(e){e(t,n)}))}return a?(o=a).timeline||(o.timeline=s):((p||h)&&(t.options=t.media=null),o=t),h&&Object(l.t)(c)&&Object(l.k)(c,(function(t){t&&t.option&&(t.query?r.push(t):i=i||t)})),d(o),Object(l.k)(u,d),Object(l.k)(r,(function(t){return d(t.option)})),{baseOption:o,timelineOptions:u||[],mediaDefault:i,mediaList:r}}(t,e,!i);this._newBaseOption=t.baseOption,i?(t.timelineOptions.length&&(i.timelineOptions=t.timelineOptions),t.mediaList.length&&(i.mediaList=t.mediaList),t.mediaDefault&&(i.mediaDefault=t.mediaDefault)):this._optionBackup=t},Qu.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Object(l.d)(t?e.baseOption:this._newBaseOption)},Qu.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;return n.length&&(t=t.getComponent("timeline"))?Object(l.d)(n[t.getCurrentIndex()]):e},Qu.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,o=this._mediaDefault,r=[],a=[];if(!i.length&&!o)return a;for(var s,u,c=0,h=i.length;c<h;c++)!function(t,e,n){var i={width:e,height:n,aspectratio:e/n},o=!0;return Object(l.k)(t,(function(t,e){var n;e=e.match(Ku);e&&e[1]&&e[2]&&(n=e[1],e=e[2].toLowerCase(),e=i[e],t=t,("min"===(n=n)?t<=e:"max"===n?e<=t:e===t)||(o=!1))})),o}(i[c].query,e,n)||r.push(c);return(r=!r.length&&o?[-1]:r).length&&(s=r,u=this._currentMediaIndices,s.join(",")!==u.join(","))&&(a=Object(l.H)(r,(function(t){return Object(l.d)((-1===t?o:i[t]).option)}))),this._currentMediaIndices=r,a};var $u=Qu,Ju=l.k,tc=l.A,ec=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function nc(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=ec.length;n<i;n++){var o=ec[n],r=e.normal,a=e.emphasis;r&&r[o]&&(t[o]=t[o]||{},t[o].normal?l.I(t[o].normal,r[o]):t[o].normal=r[o],r[o]=null),a&&a[o]&&(t[o]=t[o]||{},t[o].emphasis?l.I(t[o].emphasis,a[o]):t[o].emphasis=a[o],a[o]=null)}}function ic(t,e,n){var i,o;t&&t[e]&&(t[e].normal||t[e].emphasis)&&(i=t[e].normal,o=t[e].emphasis,i&&(n?(t[e].normal=t[e].emphasis=null,l.i(t[e],i)):t[e]=i),o&&(t.emphasis=t.emphasis||{},(t.emphasis[e]=o).focus&&(t.emphasis.focus=o.focus),o.blurScope&&(t.emphasis.blurScope=o.blurScope)))}function oc(t){ic(t,"itemStyle"),ic(t,"lineStyle"),ic(t,"areaStyle"),ic(t,"label"),ic(t,"labelLine"),ic(t,"upperLabel"),ic(t,"edgeLabel")}function rc(t,e){var n=tc(t)&&t[e],i=tc(n)&&n.textStyle;if(i)for(var o=0,r=_i.length;o<r;o++){var a=_i[o];i.hasOwnProperty(a)&&(n[a]=i[a])}}function ac(t){t&&(oc(t),rc(t,"label"),t.emphasis&&rc(t.emphasis,"label"))}function sc(t){return l.t(t)?t:t?[t]:[]}function lc(t){return(l.t(t)?t[0]:t)||{}}function uc(t,e){Ju(sc(t.series),(function(t){if(tc(t)&&tc(t)){nc(t),oc(t),rc(t,"label"),rc(t,"upperLabel"),rc(t,"edgeLabel"),t.emphasis&&(rc(t.emphasis,"label"),rc(t.emphasis,"upperLabel"),rc(t.emphasis,"edgeLabel"));var e=t.markPoint,n=(e&&(nc(e),ac(e)),t.markLine),i=(n&&(nc(n),ac(n)),t.markArea),o=(i&&ac(i),t.data);if("graph"===t.type){o=o||t.nodes;var r=t.links||t.edges;if(r&&!l.E(r))for(var a=0;a<r.length;a++)ac(r[a]);l.k(t.categories,(function(t){oc(t)}))}if(o&&!l.E(o))for(a=0;a<o.length;a++)ac(o[a]);if((e=t.markPoint)&&e.data){var s=e.data;for(a=0;a<s.length;a++)ac(s[a])}if((n=t.markLine)&&n.data){var u=n.data;for(a=0;a<u.length;a++)l.t(u[a])?(ac(u[a][0]),ac(u[a][1])):ac(u[a])}"gauge"===t.type?(rc(t,"axisLabel"),rc(t,"title"),rc(t,"detail")):"treemap"===t.type?(ic(t.breadcrumb,"itemStyle"),l.k(t.levels,(function(t){oc(t)}))):"tree"===t.type&&oc(t.leaves)}}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ju(n,(function(e){Ju(sc(t[e]),(function(t){t&&(rc(t,"axisLabel"),rc(t.axisPointer,"label"))}))})),Ju(sc(t.parallel),(function(t){t=t&&t.parallelAxisDefault,rc(t,"axisLabel"),rc(t&&t.axisPointer,"label")})),Ju(sc(t.calendar),(function(t){ic(t,"itemStyle"),rc(t,"dayLabel"),rc(t,"monthLabel"),rc(t,"yearLabel")})),Ju(sc(t.radar),(function(t){rc(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)})),Ju(sc(t.geo),(function(t){tc(t)&&(ac(t),Ju(sc(t.regions),(function(t){ac(t)})))})),Ju(sc(t.timeline),(function(t){ac(t),ic(t,"label"),ic(t,"itemStyle"),ic(t,"controlStyle",!0),t=t.data,l.t(t)&&l.k(t,(function(t){l.A(t)&&(ic(t,"label"),ic(t,"itemStyle"))}))})),Ju(sc(t.toolbox),(function(t){ic(t,"iconStyle"),Ju(t.feature,(function(t){ic(t,"iconStyle")}))})),rc(lc(t.axisPointer),"label"),rc(lc(t.tooltip).axisPointer,"label")}function cc(t){t&&Object(l.k)(hc,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var hc=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],pc=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],dc=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function fc(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<dc.length;n++){var i=dc[n][1],o=dc[n][0];null!=e[i]&&(e[o]=e[i])}}function gc(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function yc(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function mc(t,e){uc(t,e),t.series=vi(t.series),Object(l.k)(t.series,(function(t){if(Object(l.A)(t)){var e,n=t.type;if("line"===n)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===n||"gauge"===n){if(null!=t.clockWise&&(t.clockwise=t.clockWise),gc(t.label),(e=t.data)&&!Object(l.E)(e))for(var i=0;i<e.length;i++)gc(e[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===n){var o=function(t,e){for(var n=e.split(","),i=t,o=0;o<n.length&&null!=(i=i&&i[n[o]]);o++);return i}(t,"pointer.color");if(null!=o){for(var r,a=t,s="itemStyle.color",u=void 0,c=s.split(","),h=a,p=0;p<c.length-1;p++)null==h[r=c[p]]&&(h[r]={}),h=h[r];!u&&null!=h[c[p]]||(h[c[p]]=o)}}else if("bar"===n){if(fc(t),fc(t.backgroundStyle),fc(t.emphasis),(e=t.data)&&!Object(l.E)(e))for(i=0;i<e.length;i++)"object"==typeof e[i]&&(fc(e[i]),fc(e[i]&&e[i].emphasis))}else"sunburst"===n?((s=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),yc(t),function t(e,n){if(e)for(var i=0;i<e.length;i++)n(e[i]),e[i]&&t(e[i].children,n)}(t.data,yc)):"graph"===n||"sankey"===n?(a=t)&&null!=a.focusNodeAdjacency&&(a.emphasis=a.emphasis||{},null==a.emphasis.focus&&(a.emphasis.focus="adjacency")):"map"===n&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&Object(l.i)(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),cc(t)}})),t.dataRange&&(t.visualMap=t.dataRange),Object(l.k)(pc,(function(e){e=t[e],e&&(Object(l.t)(e)||(e=[e]),Object(l.k)(e,(function(t){cc(t)})))}))}function vc(t){Object(l.k)(t,(function(e,n){var i=[],o=[NaN,NaN],r=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex;a.modify(r,(function(r,l,u){var c,h,p=a.get(e.stackedDimension,u);if(isNaN(p))return o;s?h=a.getRawIndex(u):c=a.get(e.stackedByDimension,u);for(var d,f,g,y=NaN,m=n-1;0<=m;m--){var v=t[m];if(0<=(h=s?h:v.data.rawIndexOf(v.stackedByDimension,c))&&(v=v.data.getByRawIndex(v.stackResultDimension,h),0<=p&&0<v||p<=0&&v<0)){d=p,f=v,g=void 0,g=Math.max(ti(d),ti(f)),d+=f,p=qn<g?d:$n(d,g),y=v;break}}return i[0]=p,i[1]=y,i}))}))}var xc,_c,bc=function(t){this.data=t.data||(t.sourceFormat===gu?{}:[]),this.sourceFormat=t.sourceFormat||mu,this.seriesLayoutBy=t.seriesLayoutBy||vu,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&Iu(this,n)===_u.Must&&(i.type="ordinal")}};function wc(t){return t instanceof bc}function Sc(t,e,n){n=n||Ic(t);var i=e.seriesLayoutBy,o=function(t,e,n,i,o){var r,a,s;return t?(e===du?(s=t,"auto"===i||null==i?Tc((function(t){null!=t&&"-"!==t&&(Object(l.C)(t)?null==a&&(a=1):a=0)}),n,s,10):a=Object(l.z)(i)?i:i?1:0,o||1!==a||(o=[],Tc((function(t,e){o[e]=null!=t?t+"":""}),n,s,1/0)),r=o?o.length:n===xu?s.length:s[0]?s[0].length:null):e===fu?o=o||function(t){for(var e,n,i=0;i<t.length&&!(e=t[i++]););if(e)return n=[],Object(l.k)(e,(function(t,e){n.push(e)})),n}(t):e===gu?o||(o=[],Object(l.k)(t,(function(t,e){o.push(e)}))):e===pu&&(i=bi(t[0]),r=Object(l.t)(i)&&i.length||1),{startIndex:a,dimensionsDefine:Oc(o),dimensionsDetectedCount:r}):{dimensionsDefine:Oc(o),startIndex:a,dimensionsDetectedCount:r}}(t,n,i,e.sourceHeader,e.dimensions);return new bc({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:Object(l.d)(e)})}function Mc(t){return new bc({data:t,sourceFormat:Object(l.E)(t)?yu:pu})}function Ic(t){var e=mu;if(Object(l.E)(t))e=yu;else if(Object(l.t)(t)){0===t.length&&(e=du);for(var n=0,i=t.length;n<i;n++){var o=t[n];if(null!=o){if(Object(l.t)(o)){e=du;break}if(Object(l.A)(o)){e=fu;break}}}}else if(Object(l.A)(t))for(var r in t)if(Object(l.q)(t,r)&&Object(l.u)(t[r])){e=gu;break}return e}function Oc(t){var e;if(t)return e=Object(l.f)(),Object(l.H)(t,(function(t,n){if(t={name:(t=Object(l.A)(t)?t:{name:t}).name,displayName:t.displayName,type:t.type},null==t.name)return t;t.name+="",null==t.displayName&&(t.displayName=t.name);var i=e.get(t.name);return i?t.name+="-"+i.count++:e.set(t.name,{count:1}),t}))}function Tc(t,e,n,i){if(e===xu)for(var o=0;o<n.length&&o<i;o++)t(n[o]?n[o][0]:null,o);else{var r=n[0]||[];for(o=0;o<r.length&&o<i;o++)t(r[o],o)}}function Cc(t){return t=t.sourceFormat,t===fu||t===gu}Pc.prototype.getSource=function(){return this._source},Pc.prototype.count=function(){return 0},Pc.prototype.getItem=function(t,e){},Pc.prototype.appendData=function(t){},Pc.prototype.clean=function(){},Pc.protoInitialize=((Ys=Pc.prototype).pure=!1,void(Ys.persistent=!0)),Pc.internalField=(_c=function(t,e,n){var i=n.sourceFormat,o=n.seriesLayoutBy,r=n.startIndex,a=(n=n.dimensionsDefine,xc[Wc(i,o)]);Object(l.m)(t,a),i===yu?(t.getItem=Ac,t.count=Dc,t.fillStorage=kc):(a=Ec(i,o),t.getItem=Object(l.c)(a,null,e,r,n),a=Vc(i,o),t.count=Object(l.c)(a,null,e,r,n))},Ac=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,o=i*t,r=0;r<i;r++)e[r]=n[o+r];return e},kc=function(t,e,n,i){for(var o=this._data,r=this._dimSize,a=0;a<r;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],p=0;p<c;p++){var d=o[p*r+a];(h[t+p]=d)<l&&(l=d),u<d&&(u=d)}s[0]=l,s[1]=u}},Dc=function(){return this._data?this._data.length/this._dimSize:0},(Ys={})[du+"_"+vu]={pure:!0,appendData:jc},Ys[du+"_"+xu]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},Ys[fu]={pure:!0,appendData:jc},Ys[gu]={pure:!0,appendData:function(t){var e=this._data;Object(l.k)(t,(function(t,n){for(var i=e[n]||(e[n]=[]),o=0;o<(t||[]).length;o++)i.push(t[o])}))}},Ys[pu]={appendData:jc},Ys[yu]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},void(xc=Ys));var Ac,kc,Dc,Lc=Pc;function Pc(t,e){t=wc(t)?t:Mc(t);var n=(this._source=t,this._data=t.data);t.sourceFormat===yu&&(this._offset=0,this._dimSize=e,this._data=n),_c(this,n,t)}function jc(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function Rc(t,e,n,i){return t[i]}(cl={})[du+"_"+vu]=function(t,e,n,i){return t[i+e]},cl[du+"_"+xu]=function(t,e,n,i,o){i+=e;for(var r=o||[],a=t,s=0;s<a.length;s++){var l=a[s];r[s]=l?l[i]:null}return r},cl[fu]=Rc,cl[gu]=function(t,e,n,i,o){for(var r=o||[],a=0;a<n.length;a++){var s=t[n[a].name];r[a]=s?s[i]:null}return r},cl[pu]=Rc;var Nc=cl;function Ec(t,e){return Nc[Wc(t,e)]}function zc(t,e,n){return t.length}(zs={})[du+"_"+vu]=function(t,e,n){return Math.max(0,t.length-e)},zs[du+"_"+xu]=function(t,e,n){return t=t[0],t?Math.max(0,t.length-e):0},zs[fu]=zc,zs[gu]=function(t,e,n){return t=t[n[0].name],t?t.length:0},zs[pu]=zc;var Bc=zs;function Vc(t,e){return Bc[Wc(t,e)]}function Fc(t,e,n){return t[e]}(Qi={})[du]=Fc,Qi[fu]=function(t,e,n){return t[n]},Qi[gu]=Fc,Qi[pu]=function(t,e,n){return t=bi(t),t instanceof Array?t[e]:t},Qi[yu]=Fc;var Hc=Qi;function Gc(t){return Hc[t]}function Wc(t,e){return t===du?t+"_"+e:t}function Yc(t,e,n){if(t){var i,o;e=t.getRawDataItem(e);if(null!=e)return i=(o=t.getStore()).getSource().sourceFormat,null!=n?(t=t.getDimensionIndex(n),n=o.getDimensionProperty(t),Gc(i)(e,t,n)):(o=e,i===pu?bi(e):o)}}var Uc=/\{@(.+?)\}/g;Xc.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),o=n.getRawIndex(t),r=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=(t=s&&s[n.getItemVisual(t,"drawType")||"fill"],s=s&&s.stroke,this.mainType),u="series"===l;n=n.userOutput&&n.userOutput.get();return{componentType:l,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:u?this.subType:null,seriesIndex:this.seriesIndex,seriesId:u?this.id:null,seriesName:u?this.name:null,name:r,dataIndex:o,data:a,dataType:e,value:i,color:t,borderColor:s,dimensionNames:n?n.fullDimensions:null,encode:n?n.encode:null,$vars:["seriesName","name","value"]}},Xc.prototype.getFormattedLabel=function(t,e,n,i,o,r){e=e||"normal";var a=this.getData(n);n=this.getDataParams(t,n);return r&&(n.value=r.interpolatedValue),null!=i&&l.t(n.value)&&(n.value=n.value[i]),o=o||a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]),l.w(o)?(n.status=e,n.dimensionIndex=i,o(n)):l.C(o)?Fl(o,n).replace(Uc,(function(e,n){var i=n.length;"["===n.charAt(0)&&"]"===n.charAt(i-1)&&(n=+n.slice(1,i-1)),i=Yc(a,t,n);return r&&l.t(r.interpolatedValue)&&0<=(n=a.getDimensionIndex(n))&&(i=r.interpolatedValue[n]),null!=i?i+"":""})):void 0},Xc.prototype.getRawValue=function(t,e){return Yc(this.getData(e),t)},Xc.prototype.formatTooltip=function(t,e,n){},Hs=Xc;function Xc(){}function Zc(t){var e,n;return l.A(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function qc(t){return new Kc(t)}Qc.prototype.perform=function(t){var e,n,i=this._upstream,o=t&&t.skip,r=(this._dirty&&i&&((r=this.context).data=r.outputData=i.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(e=this._plan(this.context)),c(this._modBy)),a=this._modDataCount||0,s=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return 1<=t?t:1}if(r===s&&a===u||(e="reset"),!this._dirty&&"reset"!==e||(this._dirty=!1,n=this._doReset(o)),this._modBy=s,this._modDataCount=u,r=t&&t.step,this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(null!=r?this._dueIndex+r:1/0,this._dueEnd);if(!o&&(n||h<p)){var d=this._progress;if(Object(l.t)(d))for(var f=0;f<d.length;f++)this._doProgress(d[f],h,p,s,u);else this._doProgress(d,h,p,s,u)}this._dueIndex=p,a=null!=this._settedOutputEnd?this._settedOutputEnd:p,this._outputDueEnd=a}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},Qc.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},Qc.prototype._doProgress=function(t,e,n,i,o){oh.reset(e,n,i,o),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:oh.next},this.context)},Qc.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),Object(l.t)(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var e,n;t=this._downstream;return t&&t.dirty(),n},Qc.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},Qc.prototype.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},Qc.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},Qc.prototype.getUpstream=function(){return this._upstream},Qc.prototype.getDownstream=function(){return this._downstream},Qc.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var Kc=Qc;function Qc(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}var $c,Jc,th,eh,nh,ih,oh=ih={reset:function(t,e,n,i){Jc=t,$c=e,th=n,eh=i,nh=Math.ceil(eh/th),ih.next=1<th&&0<eh?ah:rh}};function rh(){return Jc<$c?Jc++:null}function ah(){var t=Jc%nh*th+Math.ceil(Jc/nh);t=$c<=Jc?null:t<eh?t:Jc;return Jc++,t}function sh(t,e){return e=e&&e.type,"ordinal"===e?t:null==(t="time"!==e||Object(l.z)(t)||null==t||"-"===t?t:+ai(t))||""===t?NaN:+t}var lh=Object(l.f)({number:function(t){return parseFloat(t)},time:function(t){return+ai(t)},trim:function(t){return Object(l.C)(t)?Object(l.T)(t):t}});function uh(t){return lh.get(t)}var ch={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}},hh=(ph.prototype.evaluate=function(t){return Object(l.z)(t)?this._opFn(t,this._rvalFloat):this._opFn(hi(t),this._rvalFloat)},ph);function ph(t,e){Object(l.z)(e)||Eu(""),this._opFn=ch[t],this._rvalFloat=hi(e)}fh.prototype.evaluate=function(t,e){var n=Object(l.z)(t)?t:hi(t),i=Object(l.z)(e)?e:hi(e),o=isNaN(n),r=isNaN(i);return o&&(n=this._incomparable),r&&(i=this._incomparable),o&&r&&(o=Object(l.C)(t),r=Object(l.C)(e),o&&(n=r?t:0),r&&(i=o?e:0)),n<i?this._resultLT:i<n?-this._resultLT:0};var dh=fh;function fh(t,e){t="desc"===t,this._resultLT=t?1:-1,this._incomparable="min"===(e=null==e?t?"min":"max":e)?-1/0:1/0}yh.prototype.evaluate=function(t){var e,n=t===this._rval;return n||(e=typeof t)===this._rvalTypeof||"number"!=e&&"number"!==this._rvalTypeof||(n=hi(t)===this._rvalFloat),this._isEQ?n:!n};var gh=yh;function yh(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=hi(e)}vh.prototype.getRawData=function(){throw new Error("not supported")},vh.prototype.getRawDataItem=function(t){throw new Error("not supported")},vh.prototype.cloneRawData=function(){},vh.prototype.getDimensionInfo=function(t){},vh.prototype.cloneAllDimensionInfo=function(){},vh.prototype.count=function(){},vh.prototype.retrieveValue=function(t,e){},vh.prototype.retrieveValueFromItem=function(t,e){},vh.prototype.convertValue=sh;var mh=vh;function vh(){}function xh(t){return Ih(t.sourceFormat)||Eu(""),t.data}function _h(t){var e=t.sourceFormat,n=t.data;if(Ih(e)||Eu(""),e===du){for(var i=[],o=0,r=n.length;o<r;o++)i.push(n[o].slice());return i}if(e===fu){for(i=[],o=0,r=n.length;o<r;o++)i.push(Object(l.m)({},n[o]));return i}}function bh(t,e,n){if(null!=n)return Object(l.z)(n)||!isNaN(n)&&!Object(l.q)(e,n)?t[n]:Object(l.q)(e,n)?e[n]:void 0}function wh(t){return Object(l.d)(t)}var Sh=Object(l.f)();function Mh(t,e){var n=vi(t);t=n.length;t||Eu("");for(var i=0,o=t;i<o;i++)e=function(t,e){e.length||Eu(""),Object(l.A)(t)||Eu("");var n=t.type,i=Sh.get(n);return i||Eu(""),n=Object(l.H)(e,(function(t){var e=t,n=(t=i,new mh),o=e.data,r=n.sourceFormat=e.sourceFormat,a=e.startIndex,s=(e.seriesLayoutBy!==vu&&Eu(""),[]),u={};if(p=e.dimensionsDefine)Object(l.k)(p,(function(t,e){var n=t.name;e={index:e,name:n,displayName:t.displayName};s.push(e),null!=n&&(Object(l.q)(u,n)&&Eu(""),u[n]=e)}));else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var h=Ec(r,vu),p=(t.__isBuiltIn&&(n.getRawDataItem=function(t){return h(o,a,s,t)},n.getRawData=Object(l.c)(xh,null,e)),n.cloneRawData=Object(l.c)(_h,null,e),Vc(r,vu)),d=(n.count=Object(l.c)(p,null,o,a,s),Gc(r)),f=(n.retrieveValue=function(t,e){return t=h(o,a,s,t),f(t,e)},n.retrieveValueFromItem=function(t,e){var n;if(null!=t)return n=s[e],n?d(t,e,n.name):void 0});return n.getDimensionInfo=Object(l.c)(bh,null,s,u),n.cloneAllDimensionInfo=Object(l.c)(wh,null,s),n})),n=vi(i.transform({upstream:n[0],upstreamList:n,config:Object(l.d)(t.config)})),Object(l.H)(n,(function(t,n){Object(l.A)(t)||Eu(""),t.data||Eu(""),Ih(Ic(t.data))||Eu("");var i=e[0];n=i&&0===n&&!t.dimensions?((n=i.startIndex)&&(t.data=i.data.slice(0,n).concat(t.data)),{seriesLayoutBy:vu,sourceHeader:n,dimensions:i.metaRawOption.dimensions}):{seriesLayoutBy:vu,sourceHeader:0,dimensions:t.dimensions};return Sc(t.data,n,null)}))}(n[i],e),i!==o-1&&(e.length=Math.max(e.length,1));return e}function Ih(t){return t===du||t===fu}n="undefined";var Oh,Th=typeof Uint32Array==n?Array:Uint32Array,Ch=typeof Uint16Array==n?Array:Uint16Array,Ah=typeof Int32Array==n?Array:Int32Array,kh=(Ys=typeof Float64Array==n?Array:Float64Array,{float:Ys,int:Ah,ordinal:Array,number:Array,time:Ys});function Dh(t){return 65535<t?Th:Ch}function Lh(){return[1/0,-1/0]}function Ph(t,e,n,i,o){if(n=kh[n||"float"],o){var r=t[e],a=r&&r.length;if(a!==i){for(var s=new n(i),l=0;l<a;l++)s[l]=r[l];t[e]=s}}else t[e]=new n(i)}function jh(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Object(l.f)()}function Rh(t,e,n,i){return sh(t[i],this._dimensions[i])}jh.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),o=this.defaultDimValueGetter=Oh[i.sourceFormat];this._dimValueGetter=n||o,this._rawExtent=[],Cc(i),this._dimensions=Object(l.H)(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},jh.prototype.getProvider=function(){return this._provider},jh.prototype.getSource=function(){return this._provider.getSource()},jh.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,o=n.get(t);if(null!=o){if(i[o].type===e)return o}else o=i.length;return i[o]={type:e},n.set(t,o),this._chunks[o]=new kh[e||"float"](this._rawCount),this._rawExtent[o]=Lh(),o},jh.prototype.collectOrdinalMeta=function(t,e){for(var n=this._chunks[t],i=this._dimensions[t],o=this._rawExtent,r=i.ordinalOffset||0,a=n.length,s=(0===r&&(o[t]=Lh()),o[t]),l=r;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1])}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},jh.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},jh.prototype.getDimensionProperty=function(t){return t=this._dimensions[t],t&&t.property},jh.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t),t=e.count();return e.persistent||(t+=n),n<t&&this._initDataFromProvider(n,t,!0),[n,t]},jh.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,o=i.length,r=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<o;l++)Ph(n,l,(d=i[l]).type,s,!0);for(var u=[],c=a;c<s;c++)for(var h=c-a,p=0;p<o;p++){var d=i[p],f=Oh.arrayRows.call(this,t[h]||u,d.property,h,p),g=(n[p][c]=f,r[p]);f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},jh.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,o=this._chunks,r=this._dimensions,a=r.length,s=this._rawExtent,u=Object(l.H)(r,(function(t){return t.property})),c=0;c<a;c++){var h=r[c];s[c]||(s[c]=Lh()),Ph(o,c,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,o,s);else for(var p=[],d=t;d<e;d++){p=i.getItem(d,p);for(var f=0;f<a;f++){var g=o[f],y=this._dimValueGetter(p,u[f],d,f);g=(g[d]=y,s[f]);y<g[0]&&(g[0]=y),y>g[1]&&(g[1]=y)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},jh.prototype.count=function(){return this._count},jh.prototype.get=function(t,e){return 0<=e&&e<this._count?(t=this._chunks[t],t?t[this.getRawIndex(e)]:NaN):NaN},jh.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var o=0;o<this._dimensions.length;o++)i.push(o)}else i=t;o=0;for(var r=i.length;o<r;o++)n.push(this.get(i[o],e));return n},jh.prototype.getByRawIndex=function(t,e){return 0<=e&&e<this._rawCount?(t=this._chunks[t],t?t[e]:NaN):NaN},jh.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,i=this.count();n<i;n++){var o=this.get(t,n);isNaN(o)||(e+=o)}return e},jh.prototype.getMedian=function(t){var e=[],n=(t=(this.each([t],(function(t){isNaN(t)||e.push(t)})),e.sort((function(t,e){return t-e}))),this.count());return 0===n?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},jh.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,o=this._count-1;i<=o;){var r=(i+o)/2|0;if(e[r]<t)i=1+r;else{if(!(e[r]>t))return r;o=r-1}}return-1},jh.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],o=[];if(!i)return o;null==n&&(n=1/0);for(var r=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var c=e-i[this.getRawIndex(l)],h=Math.abs(c);h<=n&&((h<r||h===r&&0<=c&&a<0)&&(r=h,a=c,s=0),c===a&&(o[s++]=l))}return o.length=s,o},jh.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array)for(var i=new e(n),o=0;o<n;o++)i[o]=t[o];else i=new e(t.buffer,0,n)}else for(i=new(e=Dh(this._rawCount))(this.count()),o=0;o<i.length;o++)i[o]=o;return i},jh.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),o=new(Dh(n._rawCount))(i),r=[],a=t.length,s=0,l=t[0],u=n._chunks,c=0;c<i;c++){var h=void 0,p=n.getRawIndex(c);if(0===a)h=e(c);else if(1===a)h=e(u[l][p],c);else{for(var d=0;d<a;d++)r[d]=u[t[d]][p];r[d]=c,h=e.apply(null,r)}h&&(o[s++]=p)}return s<i&&(n._indices=o),n._count=s,n._extent=[],n._updateGetRawIdx(),n},jh.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=Object(l.F)(t),o=i.length;if(!o)return this;var r=e.count(),a=new(Dh(e._rawCount))(r),s=0,u=i[0],c=t[u][0],h=t[u][1],p=e._chunks;u=!1;if(!e._indices){var d=0;if(1===o){for(var f=p[i[0]],g=0;g<n;g++)(c<=(x=f[g])&&x<=h||isNaN(x))&&(a[s++]=d),d++;u=!0}else if(2===o){f=p[i[0]];var y=p[i[1]],m=t[i[1]][0],v=t[i[1]][1];for(g=0;g<n;g++){var x=f[g],_=y[g];(c<=x&&x<=h||isNaN(x))&&(m<=_&&_<=v||isNaN(_))&&(a[s++]=d),d++}u=!0}}if(!u)if(1===o)for(g=0;g<r;g++){var b=e.getRawIndex(g);(c<=(x=p[i[0]][b])&&x<=h||isNaN(x))&&(a[s++]=b)}else for(g=0;g<r;g++){for(var w=!0,S=(b=e.getRawIndex(g),0);S<o;S++){var M=i[S];((x=p[M][b])<t[M][0]||x>t[M][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return s<r&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},jh.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},jh.prototype.modify=function(t,e){this._updateDims(this,t,e)},jh.prototype._updateDims=function(t,e,n){for(var i=t._chunks,o=[],r=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=Lh();for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),p=0;p<r;p++)s[p]=i[e[p]][h];s[r]=c;var d=n&&n.apply(null,s);if(null!=d)for("object"!=typeof d&&(o[0]=d,d=o),u=0;u<d.length;u++){var f=e[u],g=d[u],y=l[f];f=i[f];f&&(f[h]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}},jh.prototype.lttbDownSample=function(t,e){var n,i=this.clone([t],!0),o=i._chunks[t],r=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),u=new(Dh(this._rawCount))(Math.ceil(r/s)+2);u[a++]=l;for(var c=1;c<r-1;c+=s){for(var h=Math.min(c+s,r-1),p=Math.min(c+2*s,r),d=(p+h)/2,f=0,g=h;g<p;g++){var y=o[w=this.getRawIndex(g)];isNaN(y)||(f+=y)}f/=p-h;h=c;var m=Math.min(c+s,r),v=c-1,x=o[l],_=-1,b=h;for(g=h;g<m;g++){var w;y=o[w=this.getRawIndex(g)];isNaN(y)||_<(n=Math.abs((v-d)*(y-x)-(v-g)*(f-x)))&&(_=n,b=w)}l=u[a++]=b}return u[a++]=this.getRawIndex(r-1),i._count=a,i._indices=u,i.getRawIndex=this._getRawIdx,i},jh.prototype.downSample=function(t,e,n,i){for(var o=this.clone([t],!0),r=o._chunks,a=[],s=Math.floor(1/e),l=r[t],u=this.count(),c=o._rawExtent[t]=Lh(),h=new(Dh(this._rawCount))(Math.ceil(u/s)),p=0,d=0;d<u;d+=s){u-d<s&&(a.length=s=u-d);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var y=n(a),m=this.getRawIndex(Math.min(d+i(a,y)||0,u-1));(l[m]=y)<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),h[p++]=m}return o._count=p,o._indices=h,o._updateGetRawIdx(),o},jh.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,o=0,r=this.count();o<r;o++){var a=this.getRawIndex(o);switch(n){case 0:e(o);break;case 1:e(i[t[0]][a],o);break;case 2:e(i[t[0]][a],i[t[1]][a],o);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=o,e.apply(null,l)}}},jh.prototype.getDataExtent=function(t){var e=this._chunks[t],n=Lh();if(!e)return n;var i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(o=this._extent[t])return o.slice();for(var o,r=(o=n)[0],a=o[1],s=0;s<i;s++){var l=e[this.getRawIndex(s)];l<r&&(r=l),a<l&&(a=l)}return this._extent[t]=[r,a]},jh.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,o=0;o<i.length;o++)n.push(i[o][e]);return n},jh.prototype.clone=function(t,e){var n,i,o=new jh,r=this._chunks,a=t&&Object(l.N)(t,(function(t,e){return t[e]=!0,t}),{});if(a)for(var s=0;s<r.length;s++)o._chunks[s]=a[s]?(n=r[s],i=void 0,(i=n.constructor)===Array?n.slice():new i(n)):r[s];else o._chunks=r;return this._copyCommonProps(o),e||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},jh.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Object(l.d)(this._extent),t._rawExtent=Object(l.d)(this._rawExtent)},jh.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array)for(var n=this._indices.length,i=(e=new t(n),0);i<n;i++)e[i]=this._indices[i];else e=new t(this._indices);return e}return null},jh.prototype._getRawIdxIdentity=function(t){return t},jh.prototype._getRawIdx=function(t){return t<this._count&&0<=t?this._indices[t]:-1},jh.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},jh.internalField=void(Oh={arrayRows:Rh,objectRows:function(t,e,n,i){return sh(t[e],this._dimensions[i])},keyedColumns:Rh,original:function(t,e,n,i){return t=t&&(null==t.value?t:t.value),sh(t instanceof Array?t[i]:t,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}});var Nh=jh,Eh=(zh.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},zh.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,9e10<this._versionSignBase&&(this._versionSignBase=0)},zh.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},zh.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},zh.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n,i,o,r,a,s=this._sourceHost,u=this._getUpstreamSourceManagers(),c=!!u.length;Vh(s)?(i=s,o=t=r=void 0,e=c?((e=u[0]).prepareSource(),r=(o=e.getSource()).data,t=o.sourceFormat,[e._getVersionSign()]):(r=i.get("data",!0),t=Object(l.E)(r)?yu:pu,[]),i=this._getSourceMetaRawOption()||{},o=o&&o.metaRawOption||{},a=Object(l.P)(i.seriesLayoutBy,o.seriesLayoutBy)||null,n=Object(l.P)(i.sourceHeader,o.sourceHeader),i=Object(l.P)(i.dimensions,o.dimensions),o=a!==o.seriesLayoutBy||!!n!=!!o.sourceHeader||i?[Sc(r,{seriesLayoutBy:a,sourceHeader:n,dimensions:i},t)]:[]):(r=s,e=c?(o=(a=this._applyTransform(u)).sourceList,a.upstreamSignList):(o=[Sc(r.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(o,e)},zh.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),o=n.get("fromTransformResult",!0),r=(null!=o&&1!==t.length&&Fh(""),[]),a=[];return Object(l.k)(t,(function(t){t.prepareSource();var e=t.getSource(o||0);null==o||e||Fh(""),r.push(e),a.push(t._getVersionSign())})),i?e=Mh(i,r,n.componentIndex):null!=o&&(e=[(t=r[0],new bc({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Object(l.d)(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount}))]),{sourceList:e,upstreamSignList:a}},zh.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},zh.prototype.getSource=function(t){var e=this._sourceList[t=t||0];return e||(e=this._getUpstreamSourceManagers())[0]&&e[0].getSource(t)},zh.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},zh.prototype._innerGetDataStore=function(t,e,n){var i,o=this._storeList,r=o[0];o=(r=r||(o[0]={}))[n];return o||(i=this._getUpstreamSourceManagers()[0],Vh(this._sourceHost)&&i?o=i._innerGetDataStore(t,e,n):(o=new Nh).initData(new Lc(e,t.length),t),r[n]=o),o},zh.prototype._getUpstreamSourceManagers=function(){var t,e=this._sourceHost;return Vh(e)?(t=Mu(e))?[t.getSourceManager()]:[]:Object(l.H)((t=e).get("transform",!0)||t.get("fromTransformResult",!0)?Ni(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},ji).models:[],(function(t){return t.getSourceManager()}))},zh.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;return Vh(i)?(t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=(i=i).get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},zh);function zh(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}function Bh(t){t.option.transform&&Object(l.R)(t.option.transform)}function Vh(t){return"series"===t.mainType}function Fh(t){throw new Error(t)}var Hh="line-height:1";function Gh(t,e){var n=t.color||"#6e7079",i=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:"+El(i+"")+"px;color:"+El(n)+";font-weight:"+El(o+""),valueStyle:"font-size:"+El(a+"")+"px;color:"+El(r)+";font-weight:"+El(t+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:o},valueStyle:{fontSize:a,fill:r,fontWeight:t}}}var Wh=[0,10,20,30],Yh=["","\n","\n\n","\n\n\n"];function Uh(t,e){return e.type=t,e}function Xh(t){return"section"===t.type}function Zh(t){return Xh(t)?qh:Kh}function qh(t,e,n,i){var o,r=e.noHeader,a=(u=function t(e){var n,i,o;return Xh(e)?(n=0,i=e.blocks.length,o=1<i||0<i&&!e.noHeader,Object(l.k)(e.blocks,(function(e){var i=t(e);n<=i&&(n=i+ +(o&&(!i||Xh(e)&&!e.noHeader)))})),n):0}(e),{html:Wh[u],richText:Yh[u]}),s=[],u=e.blocks||[],c=(Object(l.b)(!u||Object(l.t)(u)),u=u||[],t.orderMode),h=(e.sortBlocks&&c&&(u=u.slice(),h={valueAsc:"asc",valueDesc:"desc"},Object(l.q)(h,c)?(o=new dh(h[c],null),u.sort((function(t,e){return o.evaluate(t.sortParam,e.sortParam)}))):"seriesDesc"===c&&u.reverse()),Object(l.k)(u,(function(n,o){var r=e.valueFormatter;r=Zh(n)(r?Object(l.m)(Object(l.m)({},t),{valueFormatter:r}):t,n,0<o?a.html:0,i);null!=r&&s.push(r)})),"richText"===t.renderMode?s.join(a.richText):$h(s.join(""),r?n:a.html));return r?h:(c=zl(e.header,"ordinal",t.useUTC),u=Gh(i,t.renderMode).nameStyle,"richText"===t.renderMode?Jh(t,c,u)+a.richText+h:$h('<div style="'+u+";"+Hh+';">'+El(c)+"</div>"+h,n))}function Kh(t,e,n,i){var o,r,a,s,u=t.renderMode,c=e.noName,h=e.noValue,p=!e.markerType,d=e.name,f=t.useUTC,g=e.valueFormatter||t.valueFormatter||function(t){return t=Object(l.t)(t)?t:[t],Object(l.H)(t,(function(t,e){return zl(t,Object(l.t)(r)?r[e]:r,f)}))};if(!c||!h)return o=p?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",u),d=c?"":zl(d,"ordinal",f),r=e.valueType,g=h?[]:g(e.value),e=!p||!c,a=!p&&c,i=Gh(i,u),s=i.nameStyle,i=i.valueStyle,"richText"===u?(p?"":o)+(c?"":Jh(t,d,s))+(h?"":function(t,e,n,i,o){return o=[o],i=i?10:20,n&&o.push({padding:[0,0,0,i],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(l.t)(e)?e.join(" "):e,o)}(t,g,e,a,i)):$h((p?"":o)+(c?"":'<span style="'+s+";"+(p?"":"margin-left:2px")+'">'+El(d)+"</span>")+(h?"":function(t,e,n,i){return n=n?"10px":"20px",e=e?"float:right;margin-left:"+n:"",t=Object(l.t)(t)?t:[t],'<span style="'+e+";"+i+'">'+Object(l.H)(t,El).join(" ")+"</span>"}(g,e,a,i)),n)}function Qh(t,e,n,i,o,r){if(t)return Zh(t)({useUTC:o,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,r)}function $h(t,e){return'<div style="margin: '+e+"px 0 0;"+Hh+';">'+t+'<div style="clear:both"></div></div>'}function Jh(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function tp(t,e){return Hl(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function ep(t,e){return t=t.get("padding"),null!=t?t:"richText"===e?[8,10]:10}ip.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},ip.prototype.makeTooltipMarker=function(t,e,n){var i,o="richText"===n?this._generateStyleName():null,r=(e={color:e,type:t,renderMode:n,markerId:o},t=(e=l.C(e)?{color:e,extraCssText:r}:e||{}).color,n=e.type,r=e.extraCssText,i=e.renderMode||"html",t?"html"===i?"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:'+El(t)+";"+(r||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+El(t)+";"+(r||"")+'"></span>':{renderMode:i,content:"{"+(e.markerId||"markerX")+"|} ",style:"subItem"===n?{width:4,height:4,borderRadius:2,backgroundColor:t}:{width:10,height:10,borderRadius:5,backgroundColor:t}}:"");return Object(l.C)(r)?r:(this.richTextStyles[o]=r.style,r.content)},ip.prototype.wrapRichTextStyle=function(t,e){var n={};Object(l.t)(e)?Object(l.k)(e,(function(t){return Object(l.m)(n,t)})):Object(l.m)(n,e),e=this._generateStyleName();return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"};var np=ip;function ip(){this.richTextStyles={},this._nextStyleNameId=di()}function op(t){var e,n,i,o,r,a,s,u,c,h,p,d=t.series,f=t.dataIndex,g=(t=t.multipleSeries,d.getData()),y=g.mapDimensionsAll("defaultedTooltip"),m=y.length,v=d.getRawValue(f),x=Object(l.t)(v),_=tp(d,f);function b(t,e){e=s.getDimensionInfo(e),e&&!1!==e.otherDims.tooltip&&(u?p.push(Uh("nameValue",{markerType:"subItem",markerColor:a,name:e.displayName,value:t,valueType:e.type})):(c.push(t),h.push(e.type)))}return 1<m||x&&!m?(i=v,o=f,r=y,a=_,s=d.getData(),u=Object(l.N)(i,(function(t,e,n){return n=s.getDimensionInfo(n),t||n&&!1!==n.tooltip&&null!=n.displayName}),!1),c=[],h=[],p=[],r.length?Object(l.k)(r,(function(t){b(Yc(s,o,t),t)})):Object(l.k)(i,b),i=(r={inlineValues:c,inlineValueTypes:h,blocks:p}).inlineValueTypes,e=r.blocks,n=(r=r.inlineValues)[0]):m?(m=g.getDimensionInfo(y[0]),n=r=Yc(g,f,y[0]),i=m.type):n=r=x?v[0]:v,y=Oi(d),m=y&&d.name||"",x=g.getName(f),v=t?m:x,Uh("section",{header:m,noHeader:t||!y,sortParam:n,blocks:[Uh("nameValue",{markerType:"item",markerColor:_,name:v,noName:!Object(l.T)(v),value:r,valueType:i})].concat(e||[])})}var rp=ki();function ap(t,e){return t.getName(e)||t.getId(e)}var sp,lp="__universalTransitionEnabled";a(up,sp=uu),up.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=qc({count:hp,reset:pp}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(rp(this).sourceManager=new Eh(this)).prepareSource(),t=this.getInitialData(t,n),fp(t,this),this.dataTask.context.data=t,rp(this).dataBeforeProcessed=t,cp(this),this._initSelectedMapFromData(t)},up.prototype.mergeDefaultAndTheme=function(t,e){var n=Ql(this),i=n?Jl(t):{},o=this.subType;uu.hasClass(o),l.I(t,e.getTheme().get(this.subType)),l.I(t,this.getDefaultOption()),xi(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&$l(t,i,n)},up.prototype.mergeOption=function(t,e){t=l.I(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Ql(this);n&&$l(this.option,t,n),n=rp(this).sourceManager,n.dirty(),n.prepareSource(),n=this.getInitialData(t,e);fp(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,rp(this).dataBeforeProcessed=n,cp(this),this._initSelectedMapFromData(n)},up.prototype.fillDataTextStyle=function(t){if(t&&!l.E(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&xi(t[n],"label",e)},up.prototype.getInitialData=function(t,e){},up.prototype.appendData=function(t){this.getRawData().appendData(t.data)},up.prototype.getData=function(t){var e=yp(this);return e?(e=e.context.data,null==t?e:e.getLinkedData(t)):rp(this).data},up.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},up.prototype.setData=function(t){var e,n=yp(this);n&&((e=n.context).outputData=t,n!==this.dataTask&&(e.data=t)),rp(this).data=t},up.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return l.f(t)},up.prototype.getSourceManager=function(){return rp(this).sourceManager},up.prototype.getSource=function(){return this.getSourceManager().getSource()},up.prototype.getRawData=function(){return rp(this).dataBeforeProcessed},up.prototype.getColorBy=function(){return this.get("colorBy")||"series"},up.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},up.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},up.prototype.formatTooltip=function(t,e,n){return op({series:this,dataIndex:t,multipleSeries:e})},up.prototype.isAnimationEnabled=function(){var t=this.ecModel;return!!(!s.a.node||t&&t.ssr)&&(t=this.getShallow("animation"),!!(t=!(t&&this.getData().count()>this.getShallow("animationThreshold"))&&t))},up.prototype.restoreData=function(){this.dataTask.dirty()},up.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return Pu.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},up.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},up.prototype.getProgressive=function(){return this.get("progressive")},up.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},up.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},up.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var r=0;r<t.length;r++){var a=ap(o,t[r]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},up.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},up.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=l.F(t),n=[],i=0;i<e.length;i++){var o=t[e[i]];0<=o&&n.push(o)}return n},up.prototype.isSelected=function(t,e){var n=this.option.selectedMap;return!!n&&(e=this.getData(e),("all"===n||n[ap(e,t)])&&!e.getItemModel(t).get(["select","disabled"]))},up.prototype.isUniversalTransitionEnabled=function(){if(this[lp])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},up.prototype._innerSelect=function(t,e){var n=this.option,i=n.selectedMode,o=e.length;if(i&&o)if("series"===i)n.selectedMap="all";else if("multiple"===i){l.A(n.selectedMap)||(n.selectedMap={});for(var r=n.selectedMap,a=0;a<o;a++){var s,u=e[a];r[s=ap(t,u)]=!0,this._selectedDataIndicesMap[s]=t.getRawIndex(u)}}else"single"!==i&&!0!==i||(s=ap(t,i=e[o-1]),n.selectedMap=((n={})[s]=!0,n),this._selectedDataIndicesMap=((n={})[s]=t.getRawIndex(i),n))},up.prototype._initSelectedMapFromData=function(t){var e;this.option.selectedMap||(e=[],t.hasItemOption&&t.each((function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)})),0<e.length&&this._innerSelect(t,e))},up.registerClass=function(t){return uu.registerClass(t)},up.protoInitialize=((cl=up.prototype).type="series.__base__",cl.seriesIndex=0,cl.ignoreStyleOnData=!1,cl.hasSymbolVisual=!1,cl.defaultSymbol="circle",cl.visualStyleAccessPath="itemStyle",void(cl.visualDrawType="fill")),zs=up;function up(){var t=null!==sp&&sp.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function cp(t){var e,n,i=t.name;Oi(t)||(t.name=(t=(e=(t=t).getRawData()).mapDimensionsAll("seriesName"),n=[],l.k(t,(function(t){t=e.getDimensionInfo(t),t.displayName&&n.push(t.displayName)})),n.join(" ")||i))}function hp(t){return t.model.getRawData().count()}function pp(t){return t=t.model,t.setData(t.getRawData().cloneShallow()),dp}function dp(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function fp(t,e){l.k(l.e(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,l.h(gp,e))}))}function gp(t,e){return t=yp(t),t&&t.setOutputEnd((e||this).count()),e}function yp(t){var e,n=(t.ecModel||{}).scheduler;n=n&&n.getPipeline(t.uid);if(n)return(n=n.currentTask)&&(e=n.agentStubMap)?e.get(t.uid):n}l.K(zs,Hs),l.K(zs,Pu),Yi(zs,uu);var mp=zs;vp.prototype.init=function(t,e){},vp.prototype.render=function(t,e,n,i){},vp.prototype.dispose=function(t,e){},vp.prototype.updateView=function(t,e,n,i){},vp.prototype.updateLayout=function(t,e,n,i){},vp.prototype.updateVisual=function(t,e,n,i){},vp.prototype.blurSeries=function(t,e){},vp.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},Qi=vp;function vp(){this.group=new Gn,this.uid=qs("viewComponent")}Wi(Qi),Zi(Qi);var xp=Qi;function _p(){var t=ki();return function(e){var n=t(e),i=(e=e.pipelineContext,!!n.large),o=!!n.progressiveRender,r=n.large=!(!e||!e.large);n=n.progressiveRender=!(!e||!e.progressiveRender);return!(i==r&&o==n)&&"reset"}}var bp=tr.CMD,wp=[[],[],[]],Sp=Math.sqrt,Mp=Math.atan2;function Ip(t,e){if(e){for(var n,i,o,r,a=t.data,s=t.len(),l=bp.M,u=bp.C,c=bp.L,h=bp.R,p=bp.A,d=bp.Q,f=0,g=0;f<s;){switch(n=a[f++],g=f,i=0,n){case l:case c:i=1;break;case u:i=3;break;case d:i=2;break;case p:var y=e[4],m=e[5],v=Sp(e[0]*e[0]+e[1]*e[1]),x=Sp(e[2]*e[2]+e[3]*e[3]),_=Mp(-e[1]/x,e[0]/v);a[f]*=v,a[f++]+=y,a[f]*=x,a[f++]+=m,a[f++]*=v,a[f++]*=x,a[f++]+=_,a[f++]+=_,g=f+=2;break;case h:r[0]=a[f++],r[1]=a[f++],I(r,r,e),a[g++]=r[0],a[g++]=r[1],r[0]+=a[f++],r[1]+=a[f++],I(r,r,e),a[g++]=r[0],a[g++]=r[1]}for(o=0;o<i;o++){var b=wp[o];b[0]=a[f++],b[1]=a[f++],I(b,b,e),a[g++]=b[0],a[g++]=b[1]}}t.increaseVersion()}}var Op=Math.sqrt,Tp=Math.sin,Cp=Math.cos,Ap=Math.PI;function kp(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Dp(t,e){return(t[0]*e[0]+t[1]*e[1])/(kp(t)*kp(e))}function Lp(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Dp(t,e))}function Pp(t,e,n,i,o,r,a,s,l,u,c){l*=Ap/180;var h=Cp(l)*(t-n)/2+Tp(l)*(e-i)/2,p=-1*Tp(l)*(t-n)/2+Cp(l)*(e-i)/2,d=h*h/(a*a)+p*p/(s*s);1<d&&(a*=Op(d),s*=Op(d)),d=(o===r?-1:1)*Op((a*a*(s*s)-a*a*(p*p)-s*s*(h*h))/(a*a*(p*p)+s*s*(h*h)))||0,o=d*a*p/s,d=d*-s*h/a,t=(t+n)/2+Cp(l)*o-Tp(l)*d,n=(e+i)/2+Tp(l)*o+Cp(l)*d,e=Lp([1,0],[(h-o)/a,(p-d)/s]),i=[(h-o)/a,(p-d)/s],h=[(-1*h-o)/a,(-1*p-d)/s],o=Lp(i,h);Dp(i,h)<=-1&&(o=Ap),(o=1<=Dp(i,h)?0:o)<0&&(p=Math.round(o/Ap*1e6)/1e6,o=2*Ap+p%2*Ap),c.addData(u,t,n,a,s,e,o,l,r)}var jp=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Rp=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;c(zp,Np=br),zp.prototype.applyTransform=function(t){};var Np,Ep=zp;function zp(){return null!==Np&&Np.apply(this,arguments)||this}function Bp(t){return null!=t.setData}function Vp(t,e){var n=function(t){var e=new tr;if(!t)return e;var n,i=0,o=0,r=i,a=o,s=tr.CMD,l=t.match(jp);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),p=void 0,d=c.match(Rp)||[],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,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=i,I=o,O=void 0,T=void 0;switch(h){case"l":i+=d[y++],o+=d[y++],p=s.L,e.addData(p,i,o);break;case"L":i=d[y++],o=d[y++],p=s.L,e.addData(p,i,o);break;case"m":i+=d[y++],o+=d[y++],p=s.M,e.addData(p,i,o),r=i,a=o,h="l";break;case"M":i=d[y++],o=d[y++],p=s.M,e.addData(p,i,o),r=i,a=o,h="L";break;case"h":i+=d[y++],p=s.L,e.addData(p,i,o);break;case"H":i=d[y++],p=s.L,e.addData(p,i,o);break;case"v":o+=d[y++],p=s.L,e.addData(p,i,o);break;case"V":o=d[y++],p=s.L,e.addData(p,i,o);break;case"C":p=s.C,e.addData(p,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),i=d[y-2],o=d[y-1];break;case"c":p=s.C,e.addData(p,d[y++]+i,d[y++]+o,d[y++]+i,d[y++]+o,d[y++]+i,d[y++]+o),i+=d[y-2],o+=d[y-1];break;case"S":m=i,v=o,O=e.len(),T=e.data,n===s.C&&(m+=i-T[O-4],v+=o-T[O-3]),p=s.C,M=d[y++],I=d[y++],i=d[y++],o=d[y++],e.addData(p,m,v,M,I,i,o);break;case"s":m=i,v=o,O=e.len(),T=e.data,n===s.C&&(m+=i-T[O-4],v+=o-T[O-3]),p=s.C,M=i+d[y++],I=o+d[y++],i+=d[y++],o+=d[y++],e.addData(p,m,v,M,I,i,o);break;case"Q":M=d[y++],I=d[y++],i=d[y++],o=d[y++],p=s.Q,e.addData(p,M,I,i,o);break;case"q":M=d[y++]+i,I=d[y++]+o,i+=d[y++],o+=d[y++],p=s.Q,e.addData(p,M,I,i,o);break;case"T":m=i,v=o,O=e.len(),T=e.data,n===s.Q&&(m+=i-T[O-4],v+=o-T[O-3]),i=d[y++],o=d[y++],p=s.Q,e.addData(p,m,v,i,o);break;case"t":m=i,v=o,O=e.len(),T=e.data,n===s.Q&&(m+=i-T[O-4],v+=o-T[O-3]),i+=d[y++],o+=d[y++],p=s.Q,e.addData(p,m,v,i,o);break;case"A":x=d[y++],_=d[y++],b=d[y++],w=d[y++],S=d[y++],Pp(M=i,I=o,i=d[y++],o=d[y++],w,S,x,_,b,p=s.A,e);break;case"a":x=d[y++],_=d[y++],b=d[y++],w=d[y++],S=d[y++],Pp(M=i,I=o,i+=d[y++],o+=d[y++],w,S,x,_,b,p=s.A,e)}}"z"!==h&&"Z"!==h||(p=s.Z,e.addData(p),i=r,o=a),n=p}return e.toStatic(),e}(t);t=Object(l.m)({},e);return t.buildPath=function(t){var e;Bp(t)?(t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)):n.rebuildPath(e=t,1)},t.applyTransform=function(t){Ip(n,t),this.dirtyShape()},t}function Fp(t,e){return new Ep(Vp(t,e))}function Hp(t,e){e=e||{};var n=new br;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?Ip(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}var Gp,Wp=function(){this.cx=0,this.cy=0,this.r=0};c(Yp,Gp=br),Yp.prototype.getDefaultShape=function(){return new Wp},Yp.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},n=Yp;function Yp(t){return Gp.call(this,t)||this}n.prototype.type="circle";var Up,Xp=n,Zp=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0};c(qp,Up=br),qp.prototype.getDefaultShape=function(){return new Zp},qp.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=e.rx,r=(e=e.ry,.5522848*o),a=.5522848*e;t.moveTo(n-o,i),t.bezierCurveTo(n-o,i-a,n-r,i-e,n,i-e),t.bezierCurveTo(n+r,i-e,n+o,i-a,n+o,i),t.bezierCurveTo(n+o,i+a,n+r,i+e,n,i+e),t.bezierCurveTo(n-r,i+e,n-o,i+a,n-o,i),t.closePath()},Ys=qp;function qp(t){return Up.call(this,t)||this}Ys.prototype.type="ellipse";var Kp=Ys,Qp=Math.PI,$p=2*Qp,Jp=Math.sin,td=Math.cos,ed=Math.acos,nd=Math.atan2,id=Math.abs,od=Math.sqrt,rd=Math.max,ad=Math.min,sd=1e-4;function ld(t,e,n,i,o,r,a){var s=t-n,l=e-i,u=(a=(a?r:-r)/od(s*s+l*l),l=a*l,a=-a*s,s=t+l,t=e+a,e=n+l,n=i+a,i=(s+e)/2,(t+n)/2),c=e-s,h=n-t,p=c*c+h*h,d=(r=o-r,s=s*n-e*t,n=(h<0?-1:1)*od(rd(0,r*r*p-s*s)),e=(s*h-c*n)/p,t=(-s*c-h*n)/p,(s*h+c*n)/p);s=(-s*c+h*n)/p,c=e-i,h=t-u,n=d-i,p=s-u;return n*n+p*p<c*c+h*h&&(e=d,t=s),{cx:e,cy:t,x0:-l,y0:-a,x1:e*(o/r-1),y1:t*(o/r-1)}}function ud(t,e){var n,i,o,r,a,s,u,c,h,p,d,f,g,y,m,v,x,_,b,w,S,M,I,O,T,C,A,k,D,L,P=rd(e.r,0),j=rd(e.r0||0,0),R=0<P;(R||0<j)&&(R||(P=j,j=0),P<j&&(R=P,P=j,j=R),R=e.startAngle,n=e.endAngle,isNaN(R)||isNaN(n)||(i=e.cx,o=e.cy,r=!!e.clockwise,v=id(n-R),sd<(a=$p<v&&v%$p)&&(v=a),sd<P?$p-sd<v?(t.moveTo(i+P*td(R),o+P*Jp(R)),t.arc(i,o,P,R,n,!r),sd<j&&(t.moveTo(i+j*td(n),o+j*Jp(n)),t.arc(i,o,j,n,R,r))):(M=S=w=b=_=x=p=h=C=T=O=I=c=u=s=a=void 0,d=P*td(R),f=P*Jp(R),g=j*td(n),y=j*Jp(n),(m=sd<v)&&((e=e.cornerRadius)&&(a=(e=function(t){if(Object(l.t)(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],u=e[2],c=e[3]),e=id(P-j)/2,I=ad(e,u),O=ad(e,c),T=ad(e,a),C=ad(e,s),x=h=rd(I,O),_=p=rd(T,C),(sd<h||sd<p)&&(b=P*td(n),w=P*Jp(n),S=j*td(R),M=j*Jp(R),v<Qp&&(e=function(t,e,n,i,o,r,a,s){var l=(s-=r)*(n-=t)-(a-=o)*(i-=e);if(!(l*l<sd))return[t+(l=(a*(e-r)-s*(t-o))/l)*n,e+l*i]}(d,f,S,M,b,w,g,y))&&(I=d-e[0],O=f-e[1],T=b-e[0],C=w-e[1],v=1/Jp(ed((I*T+O*C)/(od(I*I+O*O)*od(T*T+C*C)))/2),I=od(e[0]*e[0]+e[1]*e[1]),x=ad(h,(P-I)/(1+v)),_=ad(p,(j-I)/(v-1))))),m?sd<x?(A=ad(u,x),k=ad(c,x),D=ld(S,M,d,f,P,A,r),L=ld(b,w,g,y,P,k,r),t.moveTo(i+D.cx+D.x0,o+D.cy+D.y0),x<h&&A===k?t.arc(i+D.cx,o+D.cy,x,nd(D.y0,D.x0),nd(L.y0,L.x0),!r):(0<A&&t.arc(i+D.cx,o+D.cy,A,nd(D.y0,D.x0),nd(D.y1,D.x1),!r),t.arc(i,o,P,nd(D.cy+D.y1,D.cx+D.x1),nd(L.cy+L.y1,L.cx+L.x1),!r),0<k&&t.arc(i+L.cx,o+L.cy,k,nd(L.y1,L.x1),nd(L.y0,L.x0),!r))):(t.moveTo(i+d,o+f),t.arc(i,o,P,R,n,!r)):t.moveTo(i+d,o+f),sd<j&&m?sd<_?(A=ad(a,_),D=ld(g,y,b,w,j,-(k=ad(s,_)),r),L=ld(d,f,S,M,j,-A,r),t.lineTo(i+D.cx+D.x0,o+D.cy+D.y0),_<p&&A===k?t.arc(i+D.cx,o+D.cy,_,nd(D.y0,D.x0),nd(L.y0,L.x0),!r):(0<k&&t.arc(i+D.cx,o+D.cy,k,nd(D.y0,D.x0),nd(D.y1,D.x1),!r),t.arc(i,o,j,nd(D.cy+D.y1,D.cx+D.x1),nd(L.cy+L.y1,L.cx+L.x1),r),0<A&&t.arc(i+L.cx,o+L.cy,A,nd(L.y1,L.x1),nd(L.y0,L.x0),!r))):(t.lineTo(i+g,o+y),t.arc(i,o,j,n,R,r)):t.lineTo(i+g,o+y)):t.moveTo(i,o),t.closePath()))}var cd,hd=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};c(pd,cd=br),pd.prototype.getDefaultShape=function(){return new hd},pd.prototype.buildPath=function(t,e){ud(t,e)},pd.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},cl=pd;function pd(t){return cd.call(this,t)||this}cl.prototype.type="sector";var dd,fd=cl,gd=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0};c(yd,dd=br),yd.prototype.getDefaultShape=function(){return new gd},yd.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,o,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,o,!0)},zs=yd;function yd(t){return dd.call(this,t)||this}zs.prototype.type="ring";var md=zs;function vd(t,e,n){var i=e.smooth,o=e.points;if(o&&2<=o.length){if(i)for(var r=function(t,e,n,i){var o,r,a=[],s=[],l=[],u=[];if(i){for(var c=[1/0,1/0],h=[-1/0,-1/0],p=0,g=t.length;p<g;p++)O(c,c,t[p]),T(h,h,t[p]);O(c,c,i[0]),T(h,h,i[1])}for(p=0,g=t.length;p<g;p++){var m=t[p];if(n)o=t[p?p-1:g-1],r=t[(p+1)%g];else{if(0===p||p===g-1){a.push(d(t[p]));continue}o=t[p-1],r=t[p+1]}y(s,r,o),x(s,s,e);var v=b(m,o),_=b(m,r),w=v+_;w=(0!==w&&(v/=w,_/=w),x(l,s,-v),x(u,s,_),f([],m,l)),v=f([],m,u);i&&(T(w,w,c),O(w,w,h),T(v,v,c),O(v,v,h)),a.push(w),a.push(v)}return n&&a.push(a.shift()),a}(o,i,n,e.smoothConstraint),a=(t.moveTo(o[0][0],o[0][1]),o.length),s=0;s<(n?a:a-1);s++){var l=r[2*s],u=r[2*s+1],c=o[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}else{t.moveTo(o[0][0],o[0][1]);s=1;for(var h=o.length;s<h;s++)t.lineTo(o[s][0],o[s][1])}n&&t.closePath()}}var xd,_d=function(){this.points=null,this.smooth=0,this.smoothConstraint=null};c(bd,xd=br),bd.prototype.getDefaultShape=function(){return new _d},bd.prototype.buildPath=function(t,e){vd(t,e,!0)},Qi=bd;function bd(t){return xd.call(this,t)||this}Qi.prototype.type="polygon";var wd,Sd=Qi,Md=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null};c(Id,wd=br),Id.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Id.prototype.getDefaultShape=function(){return new Md},Id.prototype.buildPath=function(t,e){vd(t,e,!1)},n=Id;function Id(t){return wd.call(this,t)||this}n.prototype.type="polyline";var Od,Td=n,Cd={},Ad=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};c(kd,Od=br),kd.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},kd.prototype.getDefaultShape=function(){return new Ad},kd.prototype.buildPath=function(t,e){r=this.subPixelOptimize?(n=(r=Dr(Cd,e,this.style)).x1,i=r.y1,o=r.x2,r.y2):(n=e.x1,i=e.y1,o=e.x2,e.y2);var n,i,o,r;e=e.percent;0!==e&&(t.moveTo(n,i),e<1&&(o=n*(1-e)+o*e,r=i*(1-e)+r*e),t.lineTo(o,r))},kd.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},Ys=kd;function kd(t){return Od.call(this,t)||this}Ys.prototype.type="line";var Dd=Ys,Ld=[],Pd=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function jd(t,e,n){var i=t.cpx2,o=t.cpy2;return null!=i||null!=o?[(n?Vt:Bt)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?Vt:Bt)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?Ut:Yt)(t.x1,t.cpx1,t.x2,e),(n?Ut:Yt)(t.y1,t.cpy1,t.y2,e)]}c(Nd,Rd=br),Nd.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Nd.prototype.getDefaultShape=function(){return new Pd},Nd.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,o=e.x2,r=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2;e=e.percent;0!==e&&(t.moveTo(n,i),null==l||null==u?(e<1&&(Zt(n,a,o,e,Ld),a=Ld[1],o=Ld[2],Zt(i,s,r,e,Ld),s=Ld[1],r=Ld[2]),t.quadraticCurveTo(a,s,o,r)):(e<1&&(Gt(n,a,l,o,e,Ld),a=Ld[1],l=Ld[2],o=Ld[3],Gt(i,s,u,r,e,Ld),s=Ld[1],u=Ld[2],r=Ld[3]),t.bezierCurveTo(a,s,l,u,o,r)))},Nd.prototype.pointAt=function(t){return jd(this.shape,t,!1)},Nd.prototype.tangentAt=function(t){return t=jd(this.shape,t,!0),_(t,t)};var Rd;cl=Nd;function Nd(t){return Rd.call(this,t)||this}cl.prototype.type="bezier-curve";var Ed,zd=cl,Bd=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0};c(Vd,Ed=br),Vd.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Vd.prototype.getDefaultShape=function(){return new Bd},Vd.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=Math.max(e.r,0),r=e.startAngle,a=e.endAngle,s=(e=e.clockwise,Math.cos(r)),l=Math.sin(r);t.moveTo(s*o+n,l*o+i),t.arc(n,i,o,r,a,!e)},zs=Vd;function Vd(t){return Ed.call(this,t)||this}zs.prototype.type="arc";var Fd,Hd=zs;function Gd(){var t=null!==Fd&&Fd.apply(this,arguments)||this;return t.type="compound",t}c(Gd,Fd=br),Gd.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},Gd.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},Gd.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},Gd.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},Gd.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),br.prototype.getBoundingRect.call(this)};var Wd=Gd;function Yd(t){this.colorStops=t||[]}Yd.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})};var Ud;Qi=Yd;function Xd(t,e,n,i,o,r){return o=Ud.call(this,o)||this,o.x=null==t?0:t,o.y=null==e?0:e,o.x2=null==n?1:n,o.y2=null==i?0:i,o.type="linear",o.global=r||!1,o}c(Xd,Ud=Qi);var Zd,qd=Xd;function Kd(t,e,n,i,o){return i=Zd.call(this,i)||this,i.x=null==t?.5:t,i.y=null==e?.5:e,i.r=null==n?.5:n,i.type="radial",i.global=o||!1,i}c(Kd,Zd=Qi);var Qd=Kd,$d=[0,0],Jd=[0,0],tf=new un,ef=new un;function nf(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new un;for(n=0;n<2;n++)this._axes[n]=new un;t&&this.fromBoundingRect(t,e)}nf.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,o=t.x,r=t.y,a=o+t.width;t=r+t.height;if(n[0].set(o,r),n[1].set(a,r),n[2].set(a,t),n[3].set(o,t),e)for(var s=0;s<4;s++)n[s].transform(e);for(un.sub(i[0],n[1],n[0]),un.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize(),s=0;s<2;s++)this._origin[s]=i[s].dot(n[0])},nf.prototype.intersect=function(t,e){var n=!0,i=!e;return tf.set(1/0,1/0),ef.set(0,0),!this._intersectCheckOneSide(this,t,tf,ef,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,tf,ef,i,-1)&&(n=!1,i)||i||un.copy(e,n?tf:ef),n},nf.prototype._intersectCheckOneSide=function(t,e,n,i,o,r){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,$d),this._getProjMinMaxOnAxis(s,e._corners,Jd),$d[1]<Jd[0]||Jd[1]<$d[0]){if(a=!1,o)return a;var u=Math.abs(Jd[0]-$d[1]),c=Math.abs($d[0]-Jd[1]);Math.min(u,c)>i.len()&&(u<c?un.scale(i,l,-u*r):un.scale(i,l,c*r))}else n&&(u=Math.abs(Jd[0]-$d[1]),c=Math.abs($d[0]-Jd[1]),Math.min(u,c)<n.len()&&(u<c?un.scale(n,l,u*r):un.scale(n,l,-c*r)))}return a},nf.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],o=this._origin,r=e[0].dot(i)+o[t],a=r,s=r,l=1;l<e.length;l++){var u=e[l].dot(i)+o[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s};var of,rf=nf,af=[];function sf(){var t=null!==of&&of.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}c(sf,of=So),sf.prototype.traverse=function(t,e){t.call(e,this)},sf.prototype.useStyle=function(){this.style={}},sf.prototype.getCursor=function(){return this._cursor},sf.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},sf.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},sf.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},sf.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},sf.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},sf.prototype.getDisplayables=function(){return this._displayables},sf.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},sf.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])},sf.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;var e;for(t=0;t<this._temporaryDisplayables.length;t++)(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null},sf.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new xn(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(af)),t.union(i)}this._rect=t}return this._rect},sf.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(t,e))return!0;return!1};var lf=sf,uf=Math.max,cf=Math.min,hf={};function pf(t){return br.extend(t)}var df=function(t,e){var n,i=Vp(t,e);function o(t){return t=n.call(this,t)||this,t.applyTransform=i.applyTransform,t.buildPath=i.buildPath,t}return c(o,n=Ep),o};function ff(t,e){return df(t,e)}function gf(t,e){hf[t]=e}function yf(t){if(hf.hasOwnProperty(t))return hf[t]}function mf(t,e,n,i){return t=Fp(t,e),n&&("center"===i&&(n=xf(n,t.getBoundingRect())),bf(t,n)),t}function vf(t,e,n){var i=new Ar({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){"center"===n&&(t={width:t.width,height:t.height},i.setStyle(xf(e,t)))}});return i}function xf(t,e){e=e.width/e.height;var n=t.height*e;e=n<=t.width?t.height:(n=t.width)/e;return{x:t.x+t.width/2-n/2,y:t.y+t.height/2-e/2,width:n,height:e}}var _f=function(t,e){for(var n=[],i=t.length,o=0;o<i;o++){var r=t[o];n.push(r.getUpdatedPathProxy(!0))}return(e=new br(e)).createPathProxy(),e.buildPath=function(t){var e;Bp(t)&&(t.appendPath(n),(e=t.getContext())&&t.rebuildPath(e,1))},e};function bf(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}function wf(t){return Dr(t.shape,t.shape,t.style),t}function Sf(t){return Lr(t.shape,t.shape,t.style),t}var Mf=Pr;function If(t,e){for(var n=We([]);t&&t!==e;)Ue(n,t.getLocalTransform(),n),t=t.parent;return n}function Of(t,e,n){return e&&!Object(l.u)(e)&&(e=sn.getLocalTransform(e)),I([],t,e=n?Ke([],e):e)}function Tf(t,e,n){var i=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]);i=Of(["left"===t?-i:"right"===t?i:0,"top"===t?-o:"bottom"===t?o:0],e,n);return Math.abs(i[0])>Math.abs(i[1])?0<i[0]?"right":"left":0<i[1]?"bottom":"top"}function Cf(t){return!t.isGroup}function Af(t,e,n){var i,o;function r(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=Object(l.m)({},t.shape)),e}t&&e&&(o={},t.traverse((function(t){Cf(t)&&t.anid&&(o[t.anid]=t)})),i=o,e.traverse((function(t){var e,o;Cf(t)&&t.anid&&(e=i[t.anid])&&(o=r(t),t.attr(r(e)),cs(t,o,n,oa(t).dataIndex))})))}function kf(t,e){return Object(l.H)(t,(function(t){var n=t[0];n=uf(n,e.x),n=cf(n,e.x+e.width),t=t[1],t=uf(t,e.y);return[n,cf(t,e.y+e.height)]}))}function Df(t,e){var n=uf(t.x,e.x),i=cf(t.x+t.width,e.x+e.width),o=uf(t.y,e.y);t=cf(t.y+t.height,e.y+e.height);if(n<=i&&o<=t)return{x:n,y:o,width:i-n,height:t-o}}function Lf(t,e,n){e=Object(l.m)({rectHover:!0},e);var i=e.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),Object(l.i)(i,n),new Ar(e)):mf(t.replace("path://",""),e,n,"center")}function Pf(t,e,n,i,o){for(var r=0,a=o[o.length-1];r<o.length;r++){var s=o[r];if(jf(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function jf(t,e,n,i,o,r,a,s){n-=t,i-=e,a-=o,s-=r;var l=a*i-n*s;if((u=l)<=1e-6&&-1e-6<=u)return!1;var u=t-o;t=e-r,o=(u*i-n*t)/l;return!(o<0||1<o)&&(e=(u*s-a*t)/l,!(e<0||1<e))}function Rf(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,o=(e=Object(l.C)(e)?{formatter:e}:e,n.mainType),r=(n=n.componentIndex,{componentType:o,name:i,$vars:["name"]}),a=(r[o+"Index"]=n,t.formatterParamsExtra);a&&Object(l.k)(Object(l.F)(a),(function(t){Object(l.q)(r,t)||(r[t]=a[t],r.$vars.push(t))})),t=oa(t.el);t.componentMainType=o,t.componentIndex=n,t.tooltipConfig={name:i,option:Object(l.i)({content:i,formatterParams:r},e)}}function Nf(t,e){var n;(n=t.isGroup?e(t):n)||t.traverse(e)}function Ef(t,e){if(t)if(Object(l.t)(t))for(var n=0;n<t.length;n++)Nf(t[n],e);else Nf(t,e)}gf("circle",Xp),gf("ellipse",Kp),gf("sector",fd),gf("ring",md),gf("polygon",Sd),gf("polyline",Td),gf("rect",Br),gf("line",Dd),gf("bezierCurve",zd),gf("arc",Hd);var zf=ki(),Bf=_p();Vf.prototype.init=function(t,e){},Vf.prototype.render=function(t,e,n,i){},Vf.prototype.highlight=function(t,e,n,i){t=t.getData(i&&i.dataType),t&&Hf(t,i,"emphasis")},Vf.prototype.downplay=function(t,e,n,i){t=t.getData(i&&i.dataType),t&&Hf(t,i,"normal")},Vf.prototype.remove=function(t,e){this.group.removeAll()},Vf.prototype.dispose=function(t,e){},Vf.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},Vf.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},Vf.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},Vf.prototype.eachRendered=function(t){Ef(this.group,t)},Vf.markUpdateMethod=function(t,e){zf(t).updateMethod=e},Vf.protoInitialize=void(Vf.prototype.type="chart"),n=Vf;function Vf(){this.group=new Gn,this.uid=qs("viewChart"),this.renderTask=qc({plan:Gf,reset:Wf}),this.renderTask.context={view:this}}function Ff(t,e,n){t&&os(t)&&("emphasis"===e?Ba:Va)(t,n)}function Hf(t,e,n){var i,o=Ai(t,e),r=e&&null!=e.highlightKey?(e=e.highlightKey,i=null==(i=aa[e])&&ra<=32?aa[e]=ra++:i):null;null!=o?Object(l.k)(vi(o),(function(e){Ff(t.getItemGraphicEl(e),n,r)})):t.eachItemGraphicEl((function(t){Ff(t,n,r)}))}function Gf(t){return Bf(t.model)}function Wf(t){var e=t.model,n=t.ecModel,i=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,a=(t=t.view,o&&zf(o).updateMethod);r=r?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==r&&t[r](e,n,i,o),Yf[r]}Wi(n),Zi(n);var Yf={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)}}},Uf=n,Xf="\0__throttleOriginMethod",Zf="\0__throttleRate",qf="\0__throttleType";function Kf(t,e,n){var i,o,r,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(r,a||[])}function p(){for(var t=[],p=0;p<arguments.length;p++)t[p]=arguments[p];i=(new Date).getTime(),r=this,a=t;var d=s||e,f=s||n;s=null,o=i-(f?l:u)-d,clearTimeout(c),f?c=setTimeout(h,d):0<=o?h():c=setTimeout(h,-o),l=i}return e=e||0,p.clear=function(){c&&(clearTimeout(c),c=null)},p.debounceNextCall=function(t){s=t},p}function Qf(t,e,n,i){var o=t[e];if(o){var r=o[Xf]||o,a=o[qf];if(o[Zf]!==n||a!==i){if(null==n||!i)return t[e]=r;(o=t[e]=Kf(r,n,"debounce"===i))[Xf]=r,o[qf]=i,o[Zf]=n}return o}}function $f(t,e){var n=t[e];n&&n[Xf]&&(n.clear&&n.clear(),t[e]=n[Xf])}var Jf=ki(),tg={itemStyle:qi(Vs,!0),lineStyle:qi(Ns,!0)},eg={lineStyle:"stroke",itemStyle:"fill"};function ng(t,e){return t=t.visualStyleMapper||tg[e],t||tg.itemStyle}function ig(t,e){return t=t.visualDrawType||eg[e],t||"fill"}Ys={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",o=t.getModel(i),r=ng(t,i)(o),a=(o=o.getShallow("decal"),o&&(n.setVisual("decal",o),o.dirty=!0),ig(t,i)),s=(o=r[a],Object(l.w)(o)?o:null);i="auto"===r.fill||"auto"===r.stroke;if(r[a]&&!s&&!i||(o=t.getColorFromPalette(t.name,null,e.getSeriesCount()),r[a]||(r[a]=o,n.setVisual("colorFromPalette",!0)),r.fill="auto"===r.fill||Object(l.w)(r.fill)?o:r.fill,r.stroke="auto"===r.stroke||Object(l.w)(r.stroke)?o:r.stroke),n.setVisual("style",r),n.setVisual("drawType",a),!e.isSeriesFiltered(t)&&s)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),o=Object(l.m)({},r);o[a]=s(i),e.setItemVisual(n,"style",o)}}}};var og=new Xs,rg=(cl={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n,i,o;if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t))return e=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=ng(t,n),o=e.getVisual("drawType"),{dataEach:e.hasItemOption?function(t,e){var r,a=t.getRawDataItem(e);a&&a[n]&&(og.option=a[n],a=i(og),r=t.ensureUniqueItemVisual(e,"style"),Object(l.m)(r,a),og.option.decal&&(t.setItemVisual(e,"decal",og.option.decal),og.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1))}:null}}},zs={performRawSeries:!0,overallReset:function(t){var e=Object(l.f)();t.eachSeries((function(t){var n,i=t.getColorBy();t.isColorBySeries()||(i=t.type+"-"+i,(n=e.get(i))||e.set(i,n={}),Jf(t).scope=n)})),t.eachSeries((function(e){var n,i,o,r,a,s;e.isColorBySeries()||t.isSeriesFiltered(e)||(n=e.getRawData(),i={},o=e.getData(),r=Jf(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=ig(e,a),o.each((function(t){var e=o.getRawIndex(t);i[e]=t})),n.each((function(t){var a,l=i[t];o.getItemVisual(l,"colorFromPalette")&&(l=o.ensureUniqueItemVisual(l,"style"),t=n.getName(t)||t+"",a=n.count(),l[s]=e.getColorFromPalette(t,r,a))})))}))}},Math.PI);function ag(t,e,n,i){this._stageTaskMap=Object(l.f)(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function sg(t){t.overallReset(t.ecModel,t.api,t.payload)}function lg(t){return t.overallProgress&&ug}function ug(){this.agent.dirty(),this.getDownstream().dirty()}function cg(){this.agent&&this.agent.dirty()}function hg(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function pg(t){return t.useClearVisual&&t.data.clearAllVisual(),t=t.resetDefines=vi(t.reset(t.model,t.ecModel,t.api,t.payload)),1<t.length?Object(l.H)(t,(function(t,e){return fg(e)})):dg}ag.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){t=t.overallTask,t&&t.dirty()}))},ag.prototype.getPerformArgs=function(t,e){var n,i;if(t.__pipeline)return n=this._pipelineMap.get(t.__pipeline.id),i=n.context,e=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,t=i&&i.modDataCount,{step:e,modBy:null!=t?Math.ceil(t/e):null,modDataCount:t}},ag.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},ag.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),o=(e=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,t.get("large")&&i>=t.get("largeThreshold"));i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:i,large:o}},ag.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(l.f)();t.eachSeries((function(t){var i=t.getProgressive(),o=t.uid;n.set(o,{id:o,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},ag.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(l.k)(this._allHandlers,(function(i){var o=t.get(i.uid)||t.set(i.uid,{});Object(l.b)(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,o,e,n),i.overallReset&&this._createOverallStageTask(i,o,e,n)}),this)},ag.prototype.prepareView=function(t,e,n,i){var o=t.renderTask,r=o.context;r.model=e,r.ecModel=n,r.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},ag.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},ag.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},ag.prototype._performStageTasks=function(t,e,n,i){i=i||{};var o=!1,r=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(l.k)(t,(function(t,s){var l,u,c,h,p;i.visualType&&i.visualType!==t.visualType||(l=(u=r._stageTaskMap.get(t.uid)).seriesTaskMap,(u=u.overallTask)?((h=u.agentStubMap).each((function(t){a(i,t)&&(t.dirty(),c=!0)})),c&&u.dirty(),r.updatePayload(u,n),p=r.getPerformArgs(u,i.block),h.each((function(t){t.perform(p)})),u.perform(p)&&(o=!0)):l&&l.each((function(s,l){a(i,s)&&s.dirty();var u=r.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),r.updatePayload(s,n),s.perform(u)&&(o=!0)})))})),this.unfinished=o||this.unfinished},ag.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},ag.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())}))},ag.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},ag.prototype._createSeriesStageTask=function(t,e,n,i){var o=this,r=e.seriesTaskMap,a=e.seriesTaskMap=Object(l.f)(),s=(e=t.seriesType,t.getTargetSeries);function u(e){var s=e.uid;s=a.set(s,r&&r.get(s)||qc({plan:hg,reset:pg,count:gg}));s.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,s)}t.createOnAllSeries?n.eachRawSeries(u):e?n.eachRawSeriesByType(e,u):s&&s(n,i).each(u)},ag.prototype._createOverallStageTask=function(t,e,n,i){var o=this,r=e.overallTask=e.overallTask||qc({reset:sg}),a=(r.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o},r.agentStubMap),s=r.agentStubMap=Object(l.f)(),u=(e=t.seriesType,t.getTargetSeries),c=!0,h=!1;function p(t){var e=t.uid;e=s.set(e,a&&a.get(e)||(h=!0,qc({reset:lg,onDirty:cg})));e.context={model:t,overallProgress:c},e.agent=r,e.__block=c,o._pipe(t,e)}Object(l.b)(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,p):u?u(n,i).each(p):(c=!1,Object(l.k)(n.getSeries(),p)),h&&r.dirty()},ag.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},ag.wrapStageHandler=function(t,e){return(t=Object(l.w)(t)?{overallReset:t,seriesType:function(t){yg=null;try{t(mg,vg)}catch(t){}return yg}(t)}:t).uid=qs("stageHandler"),e&&(t.visualType=e),t},Qi=ag;var dg=fg(0);function fg(t){return function(e,n){var i=n.data,o=n.resetDefines[t];if(o&&o.dataEach)for(var r=e.start;r<e.end;r++)o.dataEach(i,r);else o&&o.progress&&o.progress(e,i)}}function gg(t){return t.data.count()}var yg,mg={},vg={};function xg(t,e){for(var n in e.prototype)t[n]=l.L}function _g(){return{axisLine:{lineStyle:{color:wg}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}}xg(mg,Yu),xg(vg,Wu),mg.eachSeriesByType=mg.eachRawSeriesByType=function(t){yg=t},mg.eachComponent=function(t){"series"===t.mainType&&t.subType&&(yg=t.subType)};var bg=Qi,wg=(n=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Vs={color:n,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],n]},"#B9B8CE"),Sg=(Ns="#100C2A",Qi=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],n={darkMode:!0,color:Qi,backgroundColor:Ns,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:wg}},textStyle:{color:wg},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:wg}},dataZoom:{borderColor:"#71708A",textStyle:{color:wg},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:wg}},timeline:{lineStyle:{color:wg},label:{color:wg},controlStyle:{color:wg,borderColor:wg}},calendar:{itemStyle:{color:Ns},dayLabel:{color:wg},monthLabel:{color:wg},yearLabel:{color:wg}},timeAxis:_g(),logAxis:_g(),valueAxis:_g(),categoryAxis:_g(),line:{symbol:"circle"},graph:{color:Qi},gauge:{title:{color:wg},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:wg},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}},Ns=(n.categoryAxis.splitLine.show=!1,n),Mg.prototype.normalizeQuery=function(t){var e,n,i,o={},r={},a={};return l.C(t)?(e=Gi(t),o.mainType=e.main||null,o.subType=e.sub||null):(n=["Index","Name","Id"],i={name:1,dataIndex:1,dataType:1},l.k(t,(function(t,e){for(var s=!1,l=0;l<n.length;l++){var u=n[l],c=e.lastIndexOf(u);0<c&&c===e.length-u.length&&"data"!==(c=e.slice(0,c))&&(o.mainType=c,o[u.toLowerCase()]=t,s=!0)}i.hasOwnProperty(e)&&(r[e]=t,s=!0),s||(a[e]=t)}))),{cptQuery:o,dataQuery:r,otherQuery:a}},Mg.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,o=n.packedEvent,r=n.model;n=n.view;if(!r||!n)return!0;var a=e.cptQuery,s=e.dataQuery;return l(a,r,"mainType")&&l(a,r,"subType")&&l(a,r,"index","componentIndex")&&l(a,r,"name")&&l(a,r,"id")&&l(s,o,"name")&&l(s,o,"dataIndex")&&l(s,o,"dataType")&&(!n.filterForExposedEvent||n.filterForExposedEvent(t,e.otherQuery,i,o));function l(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},Mg.prototype.afterTrigger=function(){this.eventInfo=null},Mg);function Mg(){}var Ig=["symbol","symbolSize","symbolRotate","symbolOffset"],Og=Ig.concat(["symbolKeepAspect"]);Qi={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i,o={},r={},a=!1,s=0;s<Ig.length;s++){var u=Ig[s],c=t.get(u);Object(l.w)(c)?(a=!0,r[u]=c):o[u]=c}if(o.symbol=o.symbol||t.defaultSymbol,n.setVisual(Object(l.m)({legendIcon:t.legendIcon||o.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},o)),!e.isSeriesFiltered(t))return i=Object(l.F)(r),{dataEach:a?function(e,n){for(var o=t.getRawValue(n),a=t.getDataParams(n),s=0;s<i.length;s++){var l=i[s];e.setItemVisual(n,l,r[l](o,a))}}:null}}}},n={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),i=0;i<Og.length;i++){var o=Og[i],r=n.getShallow(o,!0);null!=r&&t.setItemVisual(e,o,r)}}:null}}};function Tg(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function Cg(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function Ag(t,e,n,i){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i)}}function kg(t,e){Object(l.k)([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(n){e(n[0],(function(e,i,o){var r;e=Object(l.m)({},e),o.dispatchAction(Object(l.m)(e,{type:n[1],seriesIndex:(o=e,r=[],i.eachComponent({mainType:"series",subType:t,query:o},(function(t){r.push(t.seriesIndex)})),r)}))}))}))}function Dg(t,e,n,i,o){var r=t+e;n.isSilent(r)||i.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e,i,a=t.seriesIndex,s=t.option.selectedMap,u=o.selected,c=0;c<u.length;c++)u[c].seriesIndex===a&&(i=Ai(e=t.getData(),o.fromActionPayload),n.trigger(r,{type:r,seriesId:t.id,name:Object(l.t)(i)?e.getName(i[0]):e.getName(i),selected:Object(l.C)(s)?s:Object(l.m)({},s)}))}))}function Lg(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var Pg=Math.round(9*Math.random()),jg="function"==typeof Object.defineProperty;function Rg(){this._id="__ec_inner_"+Pg++}Rg.prototype.get=function(t){return this._guard(t)[this._id]},Rg.prototype.set=function(t,e){return t=this._guard(t),jg?Object.defineProperty(t,this._id,{value:e,enumerable:!1,configurable:!0}):t[this._id]=e,this},Rg.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},Rg.prototype.has=function(t){return!!this._guard(t)[this._id]},Rg.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t};var Ng=Rg,Eg=br.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=e.width/2;e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+o,i+e),t.lineTo(n-o,i+e),t.closePath()}}),zg=br.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=e.width/2;e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+o,i),t.lineTo(n,i+e),t.lineTo(n-o,i),t.closePath()}}),Bg=br.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,o=e.width/5*3,r=(e=Math.max(o,e.height),o=o/2,o*o/(e-o)),a=(e=i-e+o+r,Math.asin(r/o)),s=Math.cos(a)*o,l=Math.sin(a),u=Math.cos(a),c=.6*o,h=.7*o;t.moveTo(n-s,e+r),t.arc(n,e,o,Math.PI-a,2*Math.PI+a),t.bezierCurveTo(n+s-l*c,e+r+u*c,n,i-h,n,i),t.bezierCurveTo(n,i-h,n-s+l*c,e+r+u*c,n-s,e+r),t.closePath()}}),Vg=br.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,o=e.x;e=e.y,i=i/3*2;t.moveTo(o,e),t.lineTo(o+i,e+n),t.lineTo(o,e+n/4*3),t.lineTo(o-i,e+n),t.lineTo(o,e),t.closePath()}}),Fg=(zg={line:Dd,rect:Br,roundRect:Br,square:Br,circle:Xp,diamond:zg,pin:Bg,arrow:Vg,triangle:Eg},{line:function(t,e,n,i,o){o.x1=t,o.y1=e+i/2,o.x2=t+n,o.y2=e+i/2},rect:function(t,e,n,i,o){o.x=t,o.y=e,o.width=n,o.height=i},roundRect:function(t,e,n,i,o){o.x=t,o.y=e,o.width=n,o.height=i,o.r=Math.min(n,i)/4},square:function(t,e,n,i,o){n=Math.min(n,i),o.x=t,o.y=e,o.width=n,o.height=n},circle:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.r=Math.min(n,i)/2},diamond:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.width=n,o.height=i},pin:function(t,e,n,i,o){o.x=t+n/2,o.y=e+i/2,o.width=n,o.height=i},arrow:function(t,e,n,i,o){o.x=t+n/2,o.y=e+i/2,o.width=n,o.height=i},triangle:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.width=n,o.height=i}}),Hg={},Gg=(Object(l.k)(zg,(function(t,e){Hg[e]=new t})),br.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){t=kn(t,e,n);var i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(t.y=n.y+.4*n.height),t},buildPath:function(t,e,n){var i,o=e.symbolType;"none"!==o&&(i=(i=Hg[o])||Hg[o="rect"],Fg[o](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n))}}));function Wg(t,e){var n;"image"!==this.type&&(n=this.style,this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw())}function Yg(t,e,n,i,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://")?vf(t.slice(8),new xn(e,n,i,o),a?"center":"cover"):0===t.indexOf("path://")?mf(t.slice(7),{},new xn(e,n,i,o),a?"center":"cover"):new Gg({shape:{symbolType:t,x:e,y:n,width:i,height:o}})).__isEmptyBrush=s,a.setColor=Wg,r&&a.setColor(r),a}function Ug(t){return[(t=Object(l.t)(t)?t:[+t,+t])[0]||0,t[1]||0]}function Xg(t,e){if(null!=t)return[Qn((t=Object(l.t)(t)?t:[t,t])[0],e[0])||0,Qn(Object(l.P)(t[1],t[0]),e[1])||0]}function Zg(t,e,n){for(var i,o,r,a,s,l,u,c,h,p="radial"===e.type?(i=t,o=e,a=(r=n).width,s=r.height,l=Math.min(a,s),u=null==o.x?.5:o.x,c=null==o.y?.5:o.y,h=null==o.r?.5:o.r,o.global||(u=u*a+r.x,c=c*s+r.y,h*=l),i.createRadialGradient(u,c,0,u,c,h)):(o=t,a=n,r=null==(s=e).x?0:s.x,l=null==s.x2?1:s.x2,i=null==s.y?0:s.y,u=null==s.y2?0:s.y2,s.global||(r=r*a.width+a.x,l=l*a.width+a.x,i=i*a.height+a.y,u=u*a.height+a.y),r=isNaN(r)?0:r,l=isNaN(l)?1:l,i=isNaN(i)?0:i,u=isNaN(u)?0:u,o.createLinearGradient(r,i,l,u)),d=e.colorStops,f=0;f<d.length;f++)p.addColorStop(d[f].offset,d[f].color);return p}function qg(t){return parseInt(t,10)}function Kg(t,e,n){var i=["width","height"][e],o=["clientWidth","clientHeight"][e],r=["paddingLeft","paddingTop"][e];e=["paddingRight","paddingBottom"][e];return null!=n[i]&&"auto"!==n[i]?parseFloat(n[i]):(n=document.defaultView.getComputedStyle(t),(t[o]||qg(n[i])||qg(t.style[i]))-(qg(n[r])||0)-(qg(n[e])||0)|0)}function Qg(t){var e,n=t.style,i=n.lineDash&&0<n.lineWidth&&(o=n.lineDash,i=n.lineWidth,o&&"solid"!==o&&0<i?"dashed"===o?[4*i,2*i]:"dotted"===o?[i]:Object(l.z)(o)?[o]:Object(l.t)(o)?o:null:null),o=n.lineDashOffset;return i&&(e=n.strokeNoScale&&t.getLineScale?t.getLineScale():1)&&1!==e&&(i=Object(l.H)(i,(function(t){return t/e})),o/=e),[i,o]}var $g=new tr(!0);function Jg(t){var e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))}function ty(t){return"string"==typeof t&&"none"!==t}function ey(t){return t=t.fill,null!=t&&"none"!==t}function ny(t,e){var n;null!=e.fillOpacity&&1!==e.fillOpacity?(n=t.globalAlpha,t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n):t.fill()}function iy(t,e){var n;null!=e.strokeOpacity&&1!==e.strokeOpacity?(n=t.globalAlpha,t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n):t.stroke()}function oy(t,e,n){n=to(e.image,e.__image,n);if(no(n))return t=t.createPattern(n,e.repeat||"repeat"),"function"==typeof DOMMatrix&&t&&t.setTransform&&((n=new DOMMatrix).translateSelf(e.x||0,e.y||0),n.rotateSelf(0,0,(e.rotation||0)*l.a),n.scaleSelf(e.scaleX||1,e.scaleY||1),t.setTransform(n)),t}var ry=["shadowBlur","shadowOffsetX","shadowOffsetY"],ay=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function sy(t,e,n,i,o){var r,a=!1;if(!i&&e===(n=n||{}))return!1;!i&&e.opacity===n.opacity||(fy(t,o),a=!0,r=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(r)?yo.opacity:r),!i&&e.blend===n.blend||(a||(fy(t,o),a=!0),t.globalCompositeOperation=e.blend||yo.blend);for(var s=0;s<ry.length;s++){var l=ry[s];!i&&e[l]===n[l]||(a||(fy(t,o),a=!0),t[l]=t.dpr*(e[l]||0))}return!i&&e.shadowColor===n.shadowColor||(a||(fy(t,o),a=!0),t.shadowColor=e.shadowColor||yo.shadowColor),a}function ly(t,e,n,i,o){var r=gy(e,o.inHover),a=i?null:n&&gy(n,o.inHover)||{};if(r!==a){var s=sy(t,r,a,i,o);!i&&r.fill===a.fill||(s||(fy(t,o),s=!0),ty(r.fill)&&(t.fillStyle=r.fill)),!i&&r.stroke===a.stroke||(s||(fy(t,o),s=!0),ty(r.stroke)&&(t.strokeStyle=r.stroke)),!i&&r.opacity===a.opacity||(s||(fy(t,o),s=!0),t.globalAlpha=null==r.opacity?1:r.opacity),e.hasStroke()&&(n=r.lineWidth/(r.strokeNoScale&&e.getLineScale?e.getLineScale():1),t.lineWidth!==n&&(s||(fy(t,o),s=!0),t.lineWidth=n));for(var l=0;l<ay.length;l++){var u=ay[l],c=u[0];!i&&r[c]===a[c]||(s||(fy(t,o),s=!0),t[c]=r[c]||u[1])}}}function uy(t,e){e=e.transform;var n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)}var cy=1,hy=2,py=3,dy=4;function fy(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function gy(t,e){return e&&t.__hoverStyle||t.style}function yy(t,e){my(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function my(t,e,n,i){var o=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~xt,void(e.__isRendered=!1);var r=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(!a||function(t,e){if(t!==e&&(t||e)){if(!t||!e||t.length!==e.length)return 1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return 1}}(r,a)){if(a&&a.length&&(fy(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),r&&r.length){fy(t,n),t.save();for(var u=r,c=t,h=(a=n,!1),p=0;p<u.length;p++){var d=u[p];h=h||d.isZeroArea();uy(c,d),c.beginPath(),d.buildPath(c,d.shape),c.clip()}a.allClipped=h,s=!0}n.prevElClipPaths=r}if(n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();a=n.prevEl;var f,g,y,m,v,x,_,b,w,S,M,I,O,T,C,A,k,D,L,P,j,R,N,E=(a||(l=s=!0),e instanceof br&&e.autoBatch&&(r=e.style,E=ey(r),f=Jg(r),!(r.lineDash||!(+E^+f)||E&&"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)?(fy(t,n),uy(t,e)):E||fy(t,n),gy(e,n.inHover));if(e instanceof br)n.lastDrawType!==cy&&(l=!0,n.lastDrawType=cy),ly(t,e,a,l,n),E&&(n.batchFill||n.batchStroke)||t.beginPath(),o=t,r=e,H=E,C=Jg(m=s),A=ey(m),k=m.strokePercent,D=k<1,L=!r.path,r.silent&&!D||!L||r.createPathProxy(),P=r.path||$g,j=r.__dirty,H||(v=m.fill,N=m.stroke,x=A&&!!v.colorStops,_=C&&!!N.colorStops,b=A&&!!v.image,w=C&&!!N.image,R=O=I=M=S=void 0,(x||_)&&(R=r.getBoundingRect()),x&&(S=j?Zg(o,v,R):r.__canvasFillGradient,r.__canvasFillGradient=S),_&&(M=j?Zg(o,N,R):r.__canvasStrokeGradient,r.__canvasStrokeGradient=M),b&&(I=j||!r.__canvasFillPattern?oy(o,v,r):r.__canvasFillPattern,r.__canvasFillPattern=I),w&&(O=j||!r.__canvasStrokePattern?oy(o,N,r):r.__canvasStrokePattern,r.__canvasStrokePattern=I),x?o.fillStyle=S:b&&(I?o.fillStyle=I:A=!1),_?o.strokeStyle=M:w&&(O?o.strokeStyle=O:C=!1)),R=r.getGlobalScale(),P.setScale(R[0],R[1],r.segmentIgnoreThreshold),o.setLineDash&&m.lineDash&&(T=(v=Qg(r))[0],F=v[1]),N=!0,(L||j&_t)&&(P.setDPR(o.dpr),D?P.setContext(null):(P.setContext(o),N=!1),P.reset(),r.buildPath(P,r.shape,H),P.toStatic(),r.pathUpdated()),N&&P.rebuildPath(o,D?k:1),T&&(o.setLineDash(T),o.lineDashOffset=F),H||(m.strokeFirst?(C&&iy(o,m),A&&ny(o,m)):(A&&ny(o,m),C&&iy(o,m))),T&&o.setLineDash([]),E&&(n.batchFill=s.fill||"",n.batchStroke=s.stroke||"");else if(e instanceof Mr)n.lastDrawType!==py&&(l=!0,n.lastDrawType=py),ly(t,e,a,l,n),x=t,S=e,null!=(I=(b=s).text)&&(I+=""),I&&(x.font=b.font||bn.a,x.textAlign=b.textAlign,x.textBaseline=b.textBaseline,M=_=void 0,x.setLineDash&&b.lineDash&&(_=(S=Qg(S))[0],M=S[1]),_&&(x.setLineDash(_),x.lineDashOffset=M),b.strokeFirst?(Jg(b)&&x.strokeText(I,b.x,b.y),ey(b)&&x.fillText(I,b.x,b.y)):(ey(b)&&x.fillText(I,b.x,b.y),Jg(b)&&x.strokeText(I,b.x,b.y)),_&&x.setLineDash([]));else if(e instanceof Ar)n.lastDrawType!==hy&&(l=!0,n.lastDrawType=hy),w=a,O=l,sy(t,gy(e,(R=n).inHover),w&&gy(w,R.inHover),O,R),v=t,L=s,(r=(j=e).__image=to(L.image,j.__image,j,j.onload))&&no(r)&&(N=L.x||0,P=L.y||0,D=j.getWidth(),j=j.getHeight(),k=r.width/r.height,null==D&&null!=j?D=j*k:null==j&&null!=D?j=D/k:null==D&&null==j&&(D=r.width,j=r.height),L.sWidth&&L.sHeight?(g=L.sx||0,y=L.sy||0,v.drawImage(r,g,y,L.sWidth,L.sHeight,N,P,D,j)):L.sx&&L.sy?(g=L.sx,y=L.sy,v.drawImage(r,g,y,D-g,j-y,N,P,D,j)):v.drawImage(r,N,P,D,j));else if(e.getTemporalDisplayables){n.lastDrawType!==dy&&(l=!0,n.lastDrawType=dy);var z,B,V=t,F=e,H=n,G=F.getDisplayables(),W=F.getTemporalDisplayables(),Y=(V.save(),{prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:H.viewWidth,viewHeight:H.viewHeight,inHover:H.inHover});for(z=F.getCursor(),B=G.length;z<B;z++)(U=G[z]).beforeBrush&&U.beforeBrush(),U.innerBeforeBrush(),my(V,U,Y,z===B-1),U.innerAfterBrush(),U.afterBrush&&U.afterBrush(),Y.prevEl=U;for(var U,X=0,Z=W.length;X<Z;X++)(U=W[X]).beforeBrush&&U.beforeBrush(),U.innerBeforeBrush(),my(V,U,Y,X===Z-1),U.innerAfterBrush(),U.afterBrush&&U.afterBrush(),Y.prevEl=U;F.clearTemporalDisplayables(),F.notClear=!0,V.restore()}E&&i&&fy(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(n.prevEl=e).__dirty=0,e.__isRendered=!0}}var vy=new Ng,xy=new _n.a(100),_y=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function by(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),o="svg"===i.painter.type;t.dirty&&vy.delete(t),e=vy.get(t);if(e)return e;for(var r,a=Object(l.i)(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}),s=(e=("none"===a.backgroundColor&&(a.backgroundColor=null),{repeat:"repeat"}),e),u=[n],c=!0,h=0;h<_y.length;++h){var p=a[_y[h]];if(null!=p&&!Object(l.t)(p)&&!Object(l.C)(p)&&!Object(l.z)(p)&&"boolean"!=typeof p){c=!1;break}u.push(p)}c&&(r=u.join(",")+(o?"-svg":""),(x=xy.get(r))&&(o?s.svgElement=x:s.image=x));var d,f=function t(e){if(!e||0===e.length)return[[0,0]];if(Object(l.z)(e))return[[r=Math.ceil(e),r]];for(var n=!0,i=0;i<e.length;++i)if(!Object(l.z)(e[i])){n=!1;break}if(n)return t([e]);var o=[];for(i=0;i<e.length;++i){var r;Object(l.z)(e[i])?(r=Math.ceil(e[i]),o.push([r,r])):(r=Object(l.H)(e[i],(function(t){return Math.ceil(t)}))).length%2==1?o.push(r.concat(r)):o.push(r)}return o}(a.dashArrayX),g=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(Object(l.z)(t))return[e=Math.ceil(t),e];var e=Object(l.H)(t,(function(t){return Math.ceil(t)}));return t.length%2?e.concat(e):e}(a.dashArrayY),y=function t(e){if(!e||0===e.length)return[["rect"]];if(Object(l.C)(e))return[[e]];for(var n=!0,i=0;i<e.length;++i)if(!Object(l.C)(e[i])){n=!1;break}if(n)return t([e]);var o=[];for(i=0;i<e.length;++i)Object(l.C)(e[i])?o.push([e[i]]):o.push(e[i]);return o}(a.symbol),m=function(t){return Object(l.H)(t,wy)}(f),v=wy(g),x=!o&&bn.d.createCanvas(),_=o&&{tag:"g",attrs:{},key:"dcl",children:[]},b=function(){for(var t=1,e=0,n=m.length;e<n;++e)t=fi(t,m[e]);var i=1;for(e=0,n=y.length;e<n;++e)i=fi(i,y[e].length);t*=i;var o=v*m.length*y.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(o,a.maxTileHeight))}}();x&&(x.width=b.width*n,x.height=b.height*n,d=x.getContext("2d")),d&&(d.clearRect(0,0,x.width,x.height),a.backgroundColor&&(d.fillStyle=a.backgroundColor,d.fillRect(0,0,x.width,x.height)));for(var w=0,S=0;S<g.length;++S)w+=g[S];if(!(w<=0))for(var M=-v,I=0,O=0,T=0;M<b.height;){if(I%2==0){for(var C=O/2%y.length,A=0,k=0,D=0;A<2*b.width;){var L,P,j,R,N,E=0;for(S=0;S<f[T].length;++S)E+=f[T][S];if(E<=0)break;k%2==0&&(P=.5*(1-a.symbolSize),L=A+f[T][k]*P,P=M+g[I]*P,j=f[T][k]*a.symbolSize,R=g[I]*a.symbolSize,N=D/2%y[C].length,function(t,e,r,s,l){var u=o?1:n;l=Yg(l,t*u,e*u,r*u,s*u,a.color,a.symbolKeepAspect);o?(t=i.painter.renderOneToVNode(l))&&_.children.push(t):yy(d,l)}(L,P,j,R,y[C][N])),A+=f[T][k],++D,++k===f[T].length&&(k=0)}++T===f.length&&(T=0)}M+=g[I],++O,++I===g.length&&(I=0)}return c&&xy.put(r,x||_),s.image=x,s.svgElement=_,s.svgWidth=b.width,s.svgHeight=b.height,e.rotation=a.rotation,e.scaleX=e.scaleY=o?1:1/n,vy.set(t,e),t.dirty=!1,e}function wy(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var Sy=new L,My={},Iy="undefined"!=typeof window,Oy=(Bg={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}},"__flagInMainProcess"),Ty="__pendingUpdate",Cy="__needsUpdateStatus",Ay=/^[a-zA-Z0-9_]+$/,ky="__connectUpdateStatus";function Dy(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return Py(this,t,e);cm(this.id)}}function Ly(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Py(this,t,e)}}function Py(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),L.prototype[e].apply(t,n)}a(Ny,jy=L);var jy,Ry=Ny;function Ny(){return null!==jy&&jy.apply(this,arguments)||this}Vg=Ry.prototype;var Ey,zy,By,Vy,Fy,Hy,Gy,Wy,Yy,Uy,Xy,Zy,qy,Ky,Qy,$y,Jy,tm,em,nm=(Vg.on=Ly("on"),Vg.off=Ly("off"),a(im,em=L),im.prototype._onframe=function(){if(!this._disposed){tm(this);var t=this._scheduler;if(this[Ty]){var e=this[Ty].silent;this[Oy]=!0;try{Ey(this),Vy.update.call(this,null,this[Ty].updateParams)}catch(t){throw this[Oy]=!1,this[Ty]=null,t}this._zr.flush(),this[Oy]=!1,this[Ty]=null,Wy.call(this,e),Yy.call(this,e)}else if(t.unfinished){var n=1,i=this._model,o=this._api;t.unfinished=!1;do{var r=+new Date}while(t.performSeriesTasks(i),t.performDataProcessorTasks(i),Hy(this,i),t.performVisualTasks(i),Ky(this,this._model,o,"remain",{}),0<(n-=+new Date-r)&&t.unfinished);t.unfinished||this._zr.flush()}}},im.prototype.getDom=function(){return this._dom},im.prototype.getId=function(){return this.id},im.prototype.getZr=function(){return this._zr},im.prototype.isSSR=function(){return this._ssr},im.prototype.setOption=function(t,e,n){if(!this[Oy])if(this._disposed)cm(this.id);else{Object(l.A)(e)&&(n=e.lazyUpdate,i=e.silent,o=e.replaceMerge,r=e.transition,e=e.notMerge),this[Oy]=!0,this._model&&!e||(e=new $u(this._api),a=this._theme,(s=this._model=new Yu).scheduler=this._scheduler,s.ssr=this._ssr,s.init(null,null,null,a,this._locale,e)),this._model.setOption(t,{replaceMerge:o},fm);var i,o,r,a,s={seriesTransition:r,optionChanged:!0};if(n)this[Ty]={silent:i,updateParams:s},this[Oy]=!1,this.getZr().wakeUp();else{try{Ey(this),Vy.update.call(this,null,s)}catch(t){throw this[Ty]=null,this[Oy]=!1,t}this._ssr||this._zr.flush(),this[Ty]=null,this[Oy]=!1,Wy.call(this,i),Yy.call(this,i)}}},im.prototype.setTheme=function(){},im.prototype.getModel=function(){return this._model},im.prototype.getOption=function(){return this._model&&this._model.getOption()},im.prototype.getWidth=function(){return this._zr.getWidth()},im.prototype.getHeight=function(){return this._zr.getHeight()},im.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Iy&&window.devicePixelRatio||1},im.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},im.prototype.renderToCanvas=function(t){return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},im.prototype.renderToSVGString=function(t){return this._zr.painter.renderToString({useViewBox:(t=t||{}).useViewBox})},im.prototype.getSvgDataURL=function(){var t,e;if(s.a.svgSupported)return t=this._zr,e=t.storage.getDisplayList(),Object(l.k)(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()},im.prototype.getDataURL=function(t){var e,n,i,o;if(!this._disposed)return o=(t=t||{}).excludeComponents,e=this._model,n=[],i=this,Object(l.k)(o,(function(t){e.eachComponent({mainType:t},(function(t){t=i._componentsMap[t.__viewId],t.group.ignore||(n.push(t),t.group.ignore=!0)}))})),o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png")),Object(l.k)(n,(function(t){t.group.ignore=!1})),o;cm(this.id)},im.prototype.getConnectedDataURL=function(t){var e,n,i,o,r,a,s,u,c,h,p,d,f,g,y;if(!this._disposed)return e="svg"===t.type,n=this.group,i=Math.min,o=Math.max,xm[n]?(a=r=1/0,u=s=-1/0,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio(),Object(l.k)(vm,(function(h,p){var d;h.group===n&&(d=e?h.getZr().painter.getSvgDom().innerHTML:h.renderToCanvas(Object(l.d)(t)),h=h.getDom().getBoundingClientRect(),r=i(h.left,r),a=i(h.top,a),s=o(h.right,s),u=o(h.bottom,u),c.push({dom:d,left:h.left,top:h.top}))})),p=(s*=h)-(r*=h),d=(u*=h)-(a*=h),f=bn.d.createCanvas(),(g=Zn(f,{renderer:e?"svg":"canvas"})).resize({width:p,height:d}),e?(y="",Object(l.k)(c,(function(t){var e=t.left-r,n=t.top-a;y+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()):(t.connectedBackgroundColor&&g.add(new Br({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),Object(l.k)(c,(function(t){t=new Ar({style:{x:t.left*h-r,y:t.top*h-a,image:t.dom}}),g.add(t)})),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png")))):this.getDataURL(t);cm(this.id)},im.prototype.convertToPixel=function(t,e){return Fy(this,"convertToPixel",t,e)},im.prototype.convertFromPixel=function(t,e){return Fy(this,"convertFromPixel",t,e)},im.prototype.containPixel=function(t,e){var n;if(!this._disposed)return t=Li(this._model,t),Object(l.k)(t,(function(t,i){0<=i.indexOf("Models")&&Object(l.k)(t,(function(t){var o=t.coordinateSystem;o&&o.containPoint?n=n||!!o.containPoint(e):"seriesModels"===i&&(o=this._chartsMap[t.__viewId])&&o.containPoint&&(n=n||o.containPoint(e,t))}),this)}),this),!!n;cm(this.id)},im.prototype.getVisual=function(t,e){t=Li(this._model,t,{defaultMainType:"series"});var n=t.seriesModel.getData();t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;return null!=t?Tg(n,t,e):Cg(n,e)},im.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},im.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},im.prototype._initEvents=function(){var t,e,n,i=this;Object(l.k)(um,(function(t){function e(e){var n,o,r,a=i.getModel(),s=e.target;"globalout"===t?n={}:s&&Lg(s,(function(t){var e;t=oa(t);return t&&null!=t.dataIndex?(e=t.dataModel||a.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType)||{},1):t.eventData&&(n=Object(l.m)({},t.eventData),1)}),!0),n&&(o=n.componentType,r=n.componentIndex,"markLine"!==o&&"markPoint"!==o&&"markArea"!==o||(o="series",r=n.seriesIndex),r=(o=o&&null!=r&&a.getComponent(o,r))&&i["series"===o.mainType?"_chartsMap":"_componentsMap"][o.__viewId],n.event=e,n.type=t,i._$eventProcessor.eventInfo={targetEl:s,packedEvent:n,model:o,view:r},i.trigger(t,n))}e.zrEventfulCallAtLast=!0,i._zr.on(t,e,i)})),Object(l.k)(pm,(function(t,e){i._messageCenter.on(e,(function(t){this.trigger(e,t)}),i)})),Object(l.k)(["selectchanged"],(function(t){i._messageCenter.on(t,(function(e){this.trigger(t,e)}),i)})),t=this._messageCenter,n=(e=this)._api,t.on("selectchanged",(function(t){var i=n.getModel();t.isFromClick?(Dg("map","selectchanged",e,i,t),Dg("pie","selectchanged",e,i,t)):"select"===t.fromAction?(Dg("map","selected",e,i,t),Dg("pie","selected",e,i,t)):"unselect"===t.fromAction&&(Dg("map","unselected",e,i,t),Dg("pie","unselected",e,i,t))}))},im.prototype.isDisposed=function(){return this._disposed},im.prototype.clear=function(){this._disposed?cm(this.id):this.setOption({series:[]},!0)},im.prototype.dispose=function(){var t,e,n;this._disposed?cm(this.id):(this._disposed=!0,this.getDom()&&Ei(this.getDom(),bm,""),e=(t=this)._api,n=t._model,Object(l.k)(t._componentsViews,(function(t){t.dispose(n,e)})),Object(l.k)(t._chartsViews,(function(t){t.dispose(n,e)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete vm[t.id])},im.prototype.resize=function(t){if(!this[Oy])if(this._disposed)cm(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){e=e.resetOption("media");var n=t&&t.silent;this[Ty]&&(null==n&&(n=this[Ty].silent),e=!0,this[Ty]=null),this[Oy]=!0;try{e&&Ey(this),Vy.update.call(this,{type:"resize",animation:Object(l.m)({duration:0},t&&t.animation)})}catch(t){throw this[Oy]=!1,t}this[Oy]=!1,Wy.call(this,n),Yy.call(this,n)}}},im.prototype.showLoading=function(t,e){this._disposed?cm(this.id):(Object(l.A)(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),mm[t]&&(t=mm[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},im.prototype.hideLoading=function(){this._disposed?cm(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},im.prototype.makeActionFromEvent=function(t){var e=Object(l.m)({},t);return e.type=pm[t.type],e},im.prototype.dispatchAction=function(t,e){var n;this._disposed?cm(this.id):(Object(l.A)(e)||(e={silent:!!e}),hm[t.type]&&this._model&&(this[Oy]?this._pendingActions.push(t):(n=e.silent,Gy.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&s.a.browser.weChat&&this._throttledZrFlush(),Wy.call(this,n),Yy.call(this,n))))},im.prototype.updateLabelLayout=function(){Sy.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},im.prototype.appendData=function(t){var e;this._disposed?cm(this.id):(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},im.internalField=(Ey=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),zy(t,!0),zy(t,!1),e.plan()},zy=function(t,e){for(var n=t._model,i=t._scheduler,o=e?t._componentsViews:t._chartsViews,r=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<o.length;l++)o[l].__alive=!1;function u(t){var l,u=t.__requireNewView,c=(t.__requireNewView=!1,"_ec_"+t.id+"_"+t.type);u=!u&&r[c];u||(l=Gi(t.type),(u=new(e?xp.getClass(l.main,l.sub):Uf.getClass(l.sub))).init(n,s),r[c]=u,o.push(u),a.add(u.group)),t.__viewId=u.__id=c,u.__alive=!0,u.__model=t,u.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},e||i.prepareView(u,t,n,s)}for(e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u),l=0;l<o.length;){var c=o[l];c.__alive?l++:(e||c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),o.splice(l,1),r[c.__id]===c&&delete r[c.__id],c.__id=c.group.__ecComponentInfo=null)}},By=function(t,e,n,i,o){var r,a,s=t._model;function u(i){i&&i.__alive&&i[e]&&i[e](i.__model,s,t._api,n)}s.setUpdatePayload(n),i?((r={})[i+"Id"]=n[i+"Id"],r[i+"Index"]=n[i+"Index"],r[i+"Name"]=n[i+"Name"],r={mainType:i,query:r},o&&(r.subType=o),null!=(o=n.excludeSeriesId)&&(a=Object(l.f)(),Object(l.k)(vi(o),(function(t){t=Ii(t,null),null!=t&&a.set(t,!0)}))),s&&s.eachComponent(r,(function(e){var i,o,r=a&&null!==a.get(e.id);if(!r)if(as(n))if(e instanceof mp){if(n.type===ya&&!n.notBlur&&!e.get(["emphasis","disabled"])){r=e;var s=n,u=t._api,c=r.seriesIndex,h=r.getData(s.dataType);if(h){s=Ai(h,s),s=(Object(l.t)(s)?s[0]:s)||0;var p=h.getItemGraphicEl(s);if(!p)for(var d=h.count(),f=0;!p&&f<d;)p=h.getItemGraphicEl(f++);p?Xa(c,(s=oa(p)).focus,s.blurScope,u):(s=r.get(["emphasis","focus"]),r=r.get(["emphasis","blurScope"]),null!=s&&Xa(c,s,r,u))}}}else c=qa(e.mainType,e.componentIndex,n.name,t._api),s=c.focusSelf,r=c.dispatchers,n.type===ya&&s&&!n.notBlur&&Za(e.mainType,e.componentIndex,t._api),r&&Object(l.k)(r,(function(t){(n.type===ya?Ba:Va)(t)}));else rs(n)&&e instanceof mp&&(u=e,r=n,t._api,rs(r)&&(i=r.dataType,o=Ai(u.getData(i),r),Object(l.t)(o)||(o=[o]),u[r.type===_a?"toggleSelect":r.type===va?"select":"unselect"](o,i)),Ka(e),Jy(t))}),t),s&&s.eachComponent(r,(function(e){a&&null!==a.get(e.id)||u(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])}),t)):Object(l.k)([].concat(t._componentsViews).concat(t._chartsViews),u)},Vy={prepareAndUpdate:function(t){Ey(this),Vy.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(t,e){var n=this._model,i=this._api,o=this._zr,r=this._coordSysMgr,a=this._scheduler;n&&(n.setUpdatePayload(t),a.restoreData(n,t),a.performSeriesTasks(n),r.create(n,i),a.performDataProcessorTasks(n,t),Hy(this,n),r.update(n,i),om(n),a.performVisualTasks(n,t),Zy(this,n,i,t,e),r=n.get("backgroundColor")||"transparent",a=n.get("darkMode"),o.setBackgroundColor(r),null!=a&&"auto"!==a&&o.setDarkMode(a),Sy.trigger("afterupdate",n,i))},updateTransform:function(t){var e,n,i=this,o=this._model,r=this._api;o&&(o.setUpdatePayload(t),e=[],o.eachComponent((function(n,a){"series"!==n&&(n=i.getViewOfComponentModel(a))&&n.__alive&&(!n.updateTransform||(a=n.updateTransform(a,o,r,t))&&a.update)&&e.push(n)})),n=Object(l.f)(),o.eachSeries((function(e){var a=i._chartsMap[e.__viewId];(!a.updateTransform||(a=a.updateTransform(e,o,r,t))&&a.update)&&n.set(e.uid,1)})),om(o),this._scheduler.performVisualTasks(o,t,{setDirty:!0,dirtyMap:n}),Ky(this,o,r,t,{},n),Sy.trigger("afterupdate",o,r))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),Uf.markUpdateMethod(t,"updateView"),om(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),Zy(this,e,this._api,t,{}),Sy.trigger("afterupdate",e,this._api))},updateVisual:function(t){var e=this,n=this._model;n&&(n.setUpdatePayload(t),n.eachSeries((function(t){t.getData().clearAllVisual()})),Uf.markUpdateMethod(t,"updateVisual"),om(n),this._scheduler.performVisualTasks(n,t,{visualType:"visual",setDirty:!0}),n.eachComponent((function(i,o){"series"!==i&&(i=e.getViewOfComponentModel(o))&&i.__alive&&i.updateVisual(o,n,e._api,t)})),n.eachSeries((function(i){e._chartsMap[i.__viewId].updateVisual(i,n,e._api,t)})),Sy.trigger("afterupdate",n,this._api))},updateLayout:function(t){Vy.update.call(this,t)}},Fy=function(t,e,n,i){if(t._disposed)cm(t.id);else for(var o=t._model,r=t._coordSysMgr.getCoordinateSystems(),a=Li(o,n),s=0;s<r.length;s++){var l=r[s];if(l[e]&&null!=(l=l[e](o,a,i)))return l}},Hy=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries((function(t){i.updateStreamModes(t,n[t.__viewId])}))},Gy=function(t,e){var n,i,o=this,r=this.getModel(),a=t.type,s=t.escapeConnect,u=hm[a],c=u.actionInfo,h=(c.update||"update").split(":"),p=h.pop(),d=null!=h[0]&&Gi(h[0]),f=(h=(this[Oy]=!0,[t]),!1),g=(t.batch&&(f=!0,h=Object(l.H)(t.batch,(function(e){return(e=Object(l.i)(Object(l.m)({},e),t)).batch=null,e}))),[]),y=rs(t),m=as(t);if(m&&Ua(this._api),Object(l.k)(h,(function(e){var i,r;(n=(n=u.action(e,o._model,o._api))||Object(l.m)({},e)).type=c.event||n.type,g.push(n),m?(i=(r=Pi(t)).queryOptionMap,r=r.mainTypeSpecified?i.keys()[0]:"series",By(o,p,e,r),Jy(o)):y?(By(o,p,e,"series"),Jy(o)):d&&By(o,p,e,d.main,d.sub)})),"none"!==p&&!m&&!y&&!d)try{this[Ty]?(Ey(this),Vy.update.call(this,t),this[Ty]=null):Vy[p].call(this,t)}catch(e){throw this[Oy]=!1,e}n=f?{type:c.event||a,escapeConnect:s,batch:g}:g[0],this[Oy]=!1,e||((h=this._messageCenter).trigger(n.type,n),y&&(f={type:"selectchanged",escapeConnect:s,selected:(i=[],r.eachSeries((function(t){var e=t.getAllData();Object(l.k)(e,(function(e){e.data;e=e.type;var n=t.getSelectedDataIndices();0<n.length&&(n={dataIndex:n,seriesIndex:t.seriesIndex},null!=e&&(n.dataType=e),i.push(n))}))})),i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t},h.trigger(f.type,f)))},Wy=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Gy.call(this,n,t)}},Yy=function(t){t||this.trigger("updated")},Uy=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[Ty]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},Xy=function(t,e){t.on("mouseover",(function(t){var n,i,o,r,a=Lg(t.target,os);a&&(a=a,n=t,t=e._api,i=oa(a),o=(r=qa(i.componentMainType,i.componentIndex,i.componentHighDownName,t)).dispatchers,r=r.focusSelf,o?(r&&Za(i.componentMainType,i.componentIndex,t),Object(l.k)(o,(function(t){return Ea(t,n)}))):(Xa(i.seriesIndex,i.focus,i.blurScope,t),"self"===i.focus&&Za(i.componentMainType,i.componentIndex,t),Ea(a,n)),Jy(e))})).on("mouseout",(function(t){var n,i,o=Lg(t.target,os);o&&(o=o,n=t,Ua(t=e._api),(i=qa((i=oa(o)).componentMainType,i.componentIndex,i.componentHighDownName,t).dispatchers)?Object(l.k)(i,(function(t){return za(t,n)})):za(o,n),Jy(e))})).on("click",(function(t){var n;t=Lg(t.target,(function(t){return null!=oa(t).dataIndex}),!0);t&&(n=t.selected?"unselect":"select",t=oa(t),e._api.dispatchAction({type:n,dataType:t.dataType,dataIndexInside:t.dataIndex,seriesIndex:t.seriesIndex,isFromClick:!0}))}))},Zy=function(t,e,n,i,o){var r,a,s,u,c,h,p;c=[],p=!(h=[]),(r=e).eachComponent((function(t,e){var n=e.get("zlevel")||0,i=e.get("z")||0,o=e.getZLevelKey();p=p||!!o,("series"===t?h:c).push({zlevel:n,z:i,idx:e.componentIndex,type:t,key:o})})),p&&(vt(a=c.concat(h),(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Object(l.k)(a,(function(t){var e=r.getComponent(t.type,t.idx),n=t.zlevel;t=t.key;null!=s&&(n=Math.max(s,n)),t?(n===s&&t!==u&&n++,u=t):u&&(n===s&&n++,u=""),s=n,e.setZLevel(n)}))),qy(t,e,n,i,o),Object(l.k)(t._chartsViews,(function(t){t.__alive=!1})),Ky(t,e,n,i,o),Object(l.k)(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))},qy=function(t,e,n,i,o,r){Object(l.k)(r||t._componentsViews,(function(t){var o=t.__model;sm(0,t),t.render(o,e,n,i),am(o,t),lm(o,t)}))},Ky=function(t,e,n,i,o,r){var a,u,c,h,p=t._scheduler,d=(o=Object(l.m)(o||{},{updatedSeries:e.getSeries()}),Sy.trigger("series:beforeupdate",e,n,o),!1);e.eachSeries((function(e){var n,o=t._chartsMap[e.__viewId],a=(o.__alive=!0,o.renderTask);p.updatePayload(a,i),sm(0,o),r&&r.get(e.uid)&&a.dirty(),a.perform(p.getPerformArgs(a))&&(d=!0),o.group.silent=!!e.get("silent"),a=o,n=e.get("blendMode")||null,a.eachRendered((function(t){t.isGroup||(t.style.blend=n)})),Ka(e)})),p.unfinished=d||p.unfinished,Sy.trigger("series:layoutlabels",e,n,o),Sy.trigger("series:transition",e,n,o),e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];am(e,n),lm(e,n)})),u=e,c=(a=t)._zr.storage,h=0,c.traverse((function(t){t.isGroup||h++})),h>u.get("hoverLayerThreshold")&&!s.a.node&&!s.a.worker&&u.eachSeries((function(t){t.preventUsingHoverLayer||(t=a._chartsMap[t.__viewId]).__alive&&t.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))})),Sy.trigger("series:afterupdate",e,n,o)},Jy=function(t){t[Cy]=!0,t.getZr().wakeUp()},tm=function(t){t[Cy]&&(t.getZr().storage.traverse((function(t){ps(t)||rm(t)})),t[Cy]=!1)},Qy=function(t){return a(e,n=Wu),e.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},e.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},e.prototype.enterEmphasis=function(e,n){Ba(e,n),Jy(t)},e.prototype.leaveEmphasis=function(e,n){Va(e,n),Jy(t)},e.prototype.enterBlur=function(e){Fa(e),Jy(t)},e.prototype.leaveBlur=function(e){Ha(e),Jy(t)},e.prototype.enterSelect=function(e){Ga(e),Jy(t)},e.prototype.leaveSelect=function(e){Wa(e),Jy(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);function e(){return null!==n&&n.apply(this,arguments)||this}var n},void($y=function(t){function e(t,e){for(var n=0;n<t.length;n++)t[n][ky]=e}Object(l.k)(pm,(function(n,i){t._messageCenter.on(i,(function(n){var i,o;!xm[t.group]||0===t[ky]||n&&n.escapeConnect||(i=t.makeActionFromEvent(n),o=[],Object(l.k)(vm,(function(e){e!==t&&e.group===t.group&&o.push(e)})),e(o,0),Object(l.k)(o,(function(t){1!==t[ky]&&t.dispatchAction(i)})),e(o,2))}))}))})),im);function im(t,e,n){var i=em.call(this,new Sg)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},Object(l.C)(e)&&(e=ym[e]),i._dom=t,t=i._zr=Zn(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:null!=n.useDirtyRect&&n.useDirtyRect}),i._ssr=n.ssr,i._throttledZrFlush=Kf(Object(l.c)(t.flush,t),17),(e=Object(l.d)(e))&&mc(e,!0),i._theme=e,i._locale=(e=n.locale||nl,Object(l.C)(e)?(n=tl[e.toUpperCase()]||{},e===Qs||e===$s?Object(l.d)(n):Object(l.I)(Object(l.d)(n),Object(l.d)(tl[Js]),!1)):Object(l.I)(Object(l.d)(e),Object(l.d)(tl[Js]),!1)),i._coordSysMgr=new qu,n=i._api=Qy(i);function o(t,e){return t.__prio-e.__prio}return vt(gm,o),vt(dm,o),i._scheduler=new bg(i,n,dm,gm),i._messageCenter=new Ry,i._initEvents(),i.resize=Object(l.c)(i.resize,i),t.animation.on("frame",i._onframe,i),Uy(t,i),Xy(t,i),Object(l.R)(i),i}function om(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function rm(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var o=n[i];"emphasis"!==o&&"blur"!==o&&"select"!==o&&e.push(o)}t.selected&&t.states.select&&e.push("select"),t.hoverState===ha&&t.states.emphasis?e.push("emphasis"):t.hoverState===ca&&t.states.blur&&e.push("blur"),t.useStates(e)}function am(t,e){var n,i;t.preventAutoZ||(n=t.get("z")||0,i=t.get("zlevel")||0,e.eachRendered((function(t){return function t(e,n,i,o){var r=e.getTextContent(),a=e.getTextGuideLine(),s=e.isGroup;if(s)for(var l=e.childrenRef(),u=0;u<l.length;u++)o=Math.max(t(l[u],n,i,o),o);else e.z=n,e.zlevel=i,o=Math.max(e.z2,o);return r&&(r.z=n,r.zlevel=i,isFinite(o)&&(r.z2=o+2)),a&&(s=e.textGuideLineConfig,a.z=n,a.zlevel=i,isFinite(o)&&(a.z2=o+(s&&s.showAbove?1:-1))),o}(t,n,i,-1/0),!0})))}function sm(t,e){e.eachRendered((function(t){var e,n;ps(t)||(e=t.getTextContent(),n=t.getTextGuideLine(),t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null))}))}function lm(t,e){var n=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),o=(t=n.get("duration"),0<t?{duration:t,delay:n.get("delay"),easing:n.get("easing")}:null);e.eachRendered((function(t){var e,n,r;t.states&&t.states.emphasis&&(ps(t)||(t instanceof br&&((r=sa(n=t)).normalFill=n.style.fill,r.normalStroke=n.style.stroke,n=n.states.select||{},r.selectFill=n.style&&n.style.fill||null,r.selectStroke=n.style&&n.style.stroke||null),t.__dirty&&(r=t.prevStates)&&t.useStates(r),i&&(t.stateTransition=o,n=t.getTextContent(),e=t.getTextGuideLine(),n&&(n.stateTransition=o),e&&(e.stateTransition=o)),t.__dirty&&rm(t)))}))}Eg=nm.prototype;var um=(Eg.on=Dy("on"),Eg.off=Dy("off"),Eg.one=function(t,e,n){var i=this;this.on.call(this,t,(function n(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];e&&e.apply&&e.apply(this,o),i.off(t,n)}),n)},["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"]);function cm(){}var hm={},pm={},dm=[],fm=[],gm=[],ym={},mm={},vm={},xm={},_m=+new Date,bm=(new Date,"_echarts_instance_");function wm(t,e,n){var i=!(n&&n.ssr);if(i){var o=Sm(t);if(o)return o}return o=new nm(t,e,n),o.id="ec_"+_m++,vm[o.id]=o,i&&Ei(t,bm,o.id),$y(o),Sy.trigger("afterinit",o),o}function Sm(t){return vm[(e=bm,(t=t).getAttribute?t.getAttribute(e):t[e])];var e}function Mm(t,e){ym[t]=e}function Im(t){Object(l.r)(fm,t)<0&&fm.push(t)}function Om(t,e){Dm(dm,t,e,2e3)}function Tm(t,e){Sy.on(t,e)}function Cm(t,e,n){Object(l.w)(e)&&(n=e,e="");var i=Object(l.A)(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,pm[e]||(Object(l.b)(Ay.test(i)&&Ay.test(e)),hm[i]||(hm[i]={action:n,actionInfo:t}),pm[e]=i)}function Am(t,e){Dm(gm,t,e,3e3,"visual")}var km=[];function Dm(t,e,n,i,o){(Object(l.w)(e)||Object(l.A)(e))&&(n=e,e=i),0<=Object(l.r)(km,n)||(km.push(n),(i=bg.wrapStageHandler(n,o)).__prio=e,i.__raw=n,t.push(i))}function Lm(t,e){mm[t]=e}function Pm(t){var e=(t=Object(l.d)(t)).type,n=(e||Eu(""),e.split(":")),i=(2!==n.length&&Eu(""),!1);"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,Sh.set(e,t)}Am(2e3,Ys),Am(4500,cl),Am(4500,zs),Am(2e3,Qi),Am(4500,n),Am(7e3,(function(t,e){t.eachRawSeries((function(n){var i;t.isSeriesFiltered(n)||((i=n.getData()).hasItemVisual()&&i.each((function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=by(n,e))})),(n=i.getVisual("decal"))&&(i.getVisual("style").decal=by(n,e)))}))})),Im(mc),Om(900,(function(t){var e=Object(l.f)();t.eachSeries((function(t){var n,i=t.get("stack");i&&(i=e.get(i)||e.set(i,[]),(t={stackResultDimension:(n=t.getData()).getCalculationInfo("stackResultDimension"),stackedOverDimension:n.getCalculationInfo("stackedOverDimension"),stackedDimension:n.getCalculationInfo("stackedDimension"),stackedByDimension:n.getCalculationInfo("stackedByDimension"),isStackedByIndex:n.getCalculationInfo("isStackedByIndex"),data:n,seriesModel:t}).stackedDimension&&(t.isStackedByIndex||t.stackedByDimension)&&(i.length&&n.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(t)))})),e.each(vc)})),Lm("default",(function(t,e){e=e||{},l.i(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n,i=new Gn,o=new Br({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),r=(i.add(o),new ia({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 Br({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return i.add(a),e.showSpinner&&((n=new Hd({shape:{startAngle:-rg/2,endAngle:-rg/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*rg/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*rg/2}).delay(300).start("circularInOut"),i.add(n)),i.resize=function(){var i=r.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(i=(t.getWidth()-2*s-(e.showSpinner&&i?10:0)-i)/2-(e.showSpinner&&i?0:5+i/2)+(e.showSpinner?0:i/2)+(i?0:s),t.getHeight()/2);e.showSpinner&&n.setShape({cx:i,cy:l}),a.setShape({x:i-s,y:l-s,width:2*s,height:2*s}),o.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},i.resize(),i})),Cm({type:ya,event:ya,update:ya},l.L),Cm({type:ma,event:ma,update:ma},l.L),Cm({type:va,event:va,update:va},l.L),Cm({type:xa,event:xa,update:xa},l.L),Cm({type:_a,event:_a,update:_a},l.L),Mm("light",Vs),Mm("dark",Ns);var jm=[],Rm={registerPreprocessor:Im,registerProcessor:Om,registerPostInit:function(t){Tm("afterinit",t)},registerPostUpdate:function(t){Tm("afterupdate",t)},registerUpdateLifecycle:Tm,registerAction:Cm,registerCoordinateSystem:function(t,e){qu.register(t,e)},registerLayout:function(t,e){Dm(gm,t,e,1e3,"layout")},registerVisual:Am,registerTransform:Pm,registerLoading:Lm,registerMap:function(t,e,n){var i=My.registerMap;i&&i(t,e,n)},registerImpl:function(t,e){My[t]=e},PRIORITY:Bg,ComponentModel:uu,ComponentView:xp,SeriesModel:mp,ChartView:Uf,registerComponentModel:function(t){uu.registerClass(t)},registerComponentView:function(t){xp.registerClass(t)},registerSeriesModel:function(t){mp.registerClass(t)},registerChartView:function(t){Uf.registerClass(t)},registerSubTypeDefaulter:function(t,e){uu.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Wn[t]=e}};function Nm(t){Object(l.t)(t)?Object(l.k)(t,(function(t){Nm(t)})):0<=Object(l.r)(jm,t)||(jm.push(t),(t=Object(l.w)(t)?{install:t}:t).install(Rm))}var Em=2*Math.PI,zm=tr.CMD,Bm=["top","right","bottom","left"];function Vm(t,e,n,i,o,r,a,s){var l=o-t,u=r-e,c=(n=n-t,i=i-e,Math.sqrt(n*n+i*i));l=(l*(n/=c)+u*(i/=c))/c,s&&(l=Math.min(Math.max(l,0),1)),u=a[0]=t+(l*=c)*n,s=a[1]=e+l*i;return Math.sqrt((u-o)*(u-o)+(s-r)*(s-r))}function Fm(t,e,n,i,o,r,a){return n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),n=t+n,i=e+i,t=a[0]=Math.min(Math.max(o,t),n),n=a[1]=Math.min(Math.max(r,e),i),Math.sqrt((t-o)*(t-o)+(n-r)*(n-r))}var Hm=[];function Gm(t,e,n){for(var i,o,r,a,s,l,u,c,h,p=0,d=0,f=0,g=0,y=1/0,m=e.data,v=t.x,x=t.y,_=0;_<m.length;){var b=m[_++],w=(1===_&&(f=p=m[_],g=d=m[_+1]),y);switch(b){case zm.M:p=f=m[_++],d=g=m[_++];break;case zm.L:w=Vm(p,d,m[_],m[_+1],v,x,Hm,!0),p=m[_++],d=m[_++];break;case zm.C:w=Wt(p,d,m[_++],m[_++],m[_++],m[_++],m[_],m[_+1],v,x,Hm),p=m[_++],d=m[_++];break;case zm.Q:w=qt(p,d,m[_++],m[_++],m[_],m[_+1],v,x,Hm),p=m[_++],d=m[_++];break;case zm.A:var S=m[_++],M=m[_++],I=m[_++],O=m[_++],T=m[_++],C=m[_++],A=(_+=1,!!(1-m[_++])),k=Math.cos(T)*I+S,D=Math.sin(T)*O+M;_<=1&&(f=k,g=D),D=(k=T)+C,A=A,a=(v-S)*(r=O)/I+S,s=x,l=Hm,h=c=u=void 0,a-=i=S,s-=o=M,u=Math.sqrt(a*a+s*s),c=(a/=u)*r+i,h=(s/=u)*r+o,w=Math.abs(k-D)%Em<1e-4?(l[0]=c,l[1]=h,u-r):((D=A?(A=k,k=or(D),or(A)):(k=or(k),or(D)))<k&&(D+=Em),(A=Math.atan2(s,a))<0&&(A+=Em),k<=A&&A<=D||k<=A+Em&&A+Em<=D?(l[0]=c,l[1]=h,u-r):(A=r*Math.cos(k)+i,c=r*Math.sin(k)+o,h=r*Math.cos(D)+i,u=r*Math.sin(D)+o,(k=(A-a)*(A-a)+(c-s)*(c-s))<(i=(h-a)*(h-a)+(u-s)*(u-s))?(l[0]=A,l[1]=c,Math.sqrt(k)):(l[0]=h,l[1]=u,Math.sqrt(i)))),p=Math.cos(T+C)*I+S,d=Math.sin(T+C)*O+M;break;case zm.R:w=Fm(f=p=m[_++],g=d=m[_++],m[_++],m[_++],v,x,Hm);break;case zm.Z:w=Vm(p,d,f,g,v,x,Hm,!0),p=f,d=g}w<y&&(y=w,n.set(Hm[0],Hm[1]))}return y}var Wm=new un,Ym=new un,Um=new un,Xm=new un,Zm=new un;function qm(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var o=t.textGuideLineConfig||{},r=[[0,0],[0,0],[0,0]],a=o.candidates||Bm,s=i.getBoundingRect().clone(),l=(s.applyTransform(i.getComputedTransform()),1/0),u=o.anchor,c=t.getComputedTransform(),h=c&&Ke([],c),p=e.get("length2")||0;u&&Um.copy(u);for(var d,f=0;f<a.length;f++){var g=a[f],y=(w=b=_=x=v=m=y=void 0,g),m=0,v=s,x=Wm,_=Xm,b=v.width,w=v.height;switch(y){case"top":x.set(v.x+b/2,v.y-m),_.set(0,-1);break;case"bottom":x.set(v.x+b/2,v.y+w+m),_.set(0,1);break;case"left":x.set(v.x-m,v.y+w/2),_.set(-1,0);break;case"right":x.set(v.x+b+m,v.y+w/2),_.set(1,0)}un.scaleAndAdd(Ym,Wm,Xm,p),Ym.transform(h),g=t.getBoundingRect(),g=u?u.distance(Ym):t instanceof br?Gm(Ym,t.path,Um):(y=Um,d=Fm((d=g).x,g.y,g.width,g.height,Ym.x,Ym.y,Hm),y.set(Hm[0],Hm[1]),d),g<l&&(l=g,Ym.transform(c),Um.transform(c),Um.toArray(r[0]),Ym.toArray(r[1]),Wm.toArray(r[2]))}$m(r,e.get("minTurnAngle")),n.setShape({points:r})}}}var Km=[],Qm=new un;function $m(t,e){var n,i;e<=180&&0<e&&(e=e/180*Math.PI,Wm.fromArray(t[0]),Ym.fromArray(t[1]),Um.fromArray(t[2]),un.sub(Xm,Wm,Ym),un.sub(Zm,Um,Ym),i=Xm.len(),n=Zm.len(),i<.001||n<.001||(Xm.scale(1/i),Zm.scale(1/n),i=Xm.dot(Zm),Math.cos(e)<i&&(n=Vm(Ym.x,Ym.y,Um.x,Um.y,Wm.x,Wm.y,Km,!1),Qm.fromArray(Km),Qm.scaleAndAdd(Zm,n/Math.tan(Math.PI-e)),i=Um.x!==Ym.x?(Qm.x-Ym.x)/(Um.x-Ym.x):(Qm.y-Ym.y)/(Um.y-Ym.y),isNaN(i)||(i<0?un.copy(Qm,Ym):1<i&&un.copy(Qm,Um),Qm.toArray(t[1])))))}function Jm(t,e,n,i){var o="normal"===n;n=o?t:t.ensureState(n),n.ignore=e,e=i.get("smooth"),e&&!0===e&&(e=.3),n.shape=n.shape||{},0<e&&(n.shape.smooth=e),e=i.getModel("lineStyle").getLineStyle();o?t.useStyle(e):n.style=e}function tv(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),0<n&&3<=i.length){e=w(i[0],i[1]);var o=w(i[1],i[2]);if(!e||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);n=Math.min(e,o)*n,e=M([],i[1],i[0],n/e),n=M([],i[1],i[2],n/o),o=M([],e,n,.5),t.bezierCurveTo(e[0],e[1],e[0],e[1],o[0],o[1]),t.bezierCurveTo(n[0],n[1],n[0],n[1],i[2][0],i[2][1])}else for(var r=1;r<i.length;r++)t.lineTo(i[r][0],i[r][1])}function ev(t,e,n){var i=t.getTextGuideLine(),o=t.getTextContent();if(o){for(var r=e.normal,a=r.get("show"),s=o.ignore,u=0;u<da.length;u++){var c,h=da[u],p=e[h],d="normal"===h;p&&(c=p.get("show"),(d?s:Object(l.P)(o.states[h]&&o.states[h].ignore,s))||!Object(l.P)(c,a)?(c=d?i:i&&i.states.normal)&&(c.ignore=!0):(i||(i=new Td,t.setTextGuideLine(i),d||!s&&a||Jm(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),Jm(i,!1,h,p)))}i&&(Object(l.i)(i.style,n),i.style.fill=null,n=r.get("showAbove"),(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=n||!1,i.buildPath=tv)}else i&&t.removeTextGuideLine()}function nv(t,e){for(var n={normal:t.getModel(e=e||"labelLine")},i=0;i<pa.length;i++){var o=pa[i];n[o]=t.getModel([o,e])}return n}function iv(t){for(var e=[],n=0;n<t.length;n++){var i,o,r,a,s,l,u=t[n];u.defaultAttr.ignore||(o=(i=u.label).getComputedTransform(),r=i.getBoundingRect(),a=!o||o[1]<1e-5&&o[2]<1e-5,l=i.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 rf(r,o):null,e.push({label:i,labelLine:u.labelLine,rect:s,localRect:r,obb:l,priority:u.priority,defaultAttr:u.defaultAttr,layoutOption:u.computedLayoutOption,axisAligned:a,transform:o}))}return e}function ov(t,e,n,i,o,r){var a=t.length;if(!(a<2)){t.sort((function(t,n){return t.rect[e]-n.rect[e]}));for(var s=0,l=!1,u=[],c=0,h=0;h<a;h++){var p,d=t[h],f=d.rect;d=((p=f[e]-s)<0&&(f[e]-=p,d.label[e]-=p,l=!0),Math.max(-p,0));u.push(d),c+=d,s=f[e]+f[n]}0<c&&r&&b(-c/a,0,a);var g,y,m=t[0],v=t[a-1];return x(),g<0&&w(-g,.8),y<0&&w(y,.8),x(),_(g,y,1),_(y,g,-1),x(),g<0&&S(-g),y<0&&S(y),l}function x(){g=m.rect[e]-i,y=o-v.rect[e]-v.rect[n]}function _(t,e,n){t<0&&(0<(e=Math.min(e,-t))?(b(e*n,0,a),(e+=t)<0&&w(-e*n,1)):w(-t*n,1))}function b(n,i,o){0!==n&&(l=!0);for(var r=i;r<o;r++){var a=t[r];a.rect[e]+=n,a.label[e]+=n}}function w(i,o){for(var r=[],s=0,l=1;l<a;l++){var u=t[l-1].rect;u=Math.max(t[l].rect[e]-u[e]-u[n],0);r.push(u),s+=u}if(s){var c=Math.min(Math.abs(i)/s,o);if(0<i)for(l=0;l<a-1;l++)b(r[l]*c,0,l+1);else for(l=a-1;0<l;l--)b(-r[l-1]*c,l,a)}}function S(t){for(var e=t<0?-1:1,n=(t=Math.abs(t),Math.ceil(t/(a-1))),i=0;i<a-1;i++)if(0<e?b(n,0,i+1):b(-n,a-i-1,a),(t-=n)<=0)return}}function rv(t,e,n,i){return ov(t,"y","height",e,n,i)}function av(t){var e=[],n=(t.sort((function(t,e){return e.priority-t.priority})),new xn(0,0,0,0));function i(t){var e;t.ignore||null==(e=t.ensureState("emphasis")).ignore&&(e.ignore=!1),t.ignore=!0}for(var o=0;o<t.length;o++){for(var r=t[o],a=r.axisAligned,s=r.localRect,l=r.transform,u=r.label,c=r.labelLine,h=(n.copy(r.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05,r.obb),p=!1,d=0;d<e.length;d++){var f=e[d];if(n.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new rf(f.localRect,f.transform)),(h=h||new rf(s,l)).intersect(f.obb)){p=!0;break}}}p?(i(u),c&&i(c)):(u.attr("ignore",r.defaultAttr.ignore),c&&c.attr("ignore",r.defaultAttr.labelGuideIgnore),e.push(r))}}function sv(t,e){var n=t.label;e=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:function(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}(e&&e.shape.points)}}var lv=["align","verticalAlign","width","height","fontSize"],uv=new sn,cv=ki(),hv=ki();function pv(t,e,n){for(var i=0;i<n.length;i++){var o=n[i];null!=e[o]&&(t[o]=e[o])}}var dv=["x","y","rotation"];function fv(){this._labelList=[],this._chartViewList=[]}fv.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},fv.prototype._addLabel=function(t,e,n,i,o){var r,a=i.style,s=i.__hostTarget.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain(),c=(l=(xn.applyTransform(u,u,l),l?uv.setLocalTransform(l):(uv.x=uv.y=uv.rotation=uv.originX=uv.originY=0,uv.scaleX=uv.scaleY=1),i.__hostTarget),l&&(r=l.getBoundingRect().plain(),c=l.getComputedTransform(),xn.applyTransform(r,r,c)),r&&l.getTextGuideLine());this._labelList.push({label:i,labelLine:c,seriesModel:n,dataIndex:t,dataType:e,layoutOption:o,computedLayoutOption:null,rect:u,hostRect:r,priority:r?r.width*r.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:c&&c.ignore,x:uv.x,y:uv.y,scaleX:uv.scaleX,scaleY:uv.scaleY,rotation:uv.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},fv.prototype.addLabelsOfSeries=function(t){var e=this,n=(this._chartViewList.push(t),t.__model),i=n.get("labelLayout");(Object(l.w)(i)||Object(l.F)(i).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var o=t.getTextContent();t=oa(t);o&&!o.disableLabelLayout&&e._addLabel(t.dataIndex,t.dataType,n,o,i)}))},fv.prototype.updateLayoutConfig=function(t){for(var e=t.getWidth(),n=t.getHeight(),i=0;i<this._labelList.length;i++){var o=this._labelList[i],r=o.label,a=r.__hostTarget,s=o.defaultAttr,u=void 0,c=(u=Object(l.w)(o.layoutOption)?o.layoutOption(sv(o,a)):o.layoutOption,o.computedLayoutOption=u=u||{},Math.PI/180),h=(a&&a.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:s.attachedPos,rotation:null!=u.rotate?u.rotate*c:s.attachedRot,offset:[u.dx||0,u.dy||0]}),!1);null!=u.x?(r.x=Qn(u.x,e),r.setStyle("x",0),h=!0):(r.x=s.x,r.setStyle("x",s.style.x)),null!=u.y?(r.y=Qn(u.y,n),r.setStyle("y",0),h=!0):(r.y=s.y,r.setStyle("y",s.style.y)),!u.labelLinePoints||(p=a.getTextGuideLine())&&(p.setShape({points:u.labelLinePoints}),h=!1),cv(r).needsUpdateLabelLine=h,r.rotation=null!=u.rotate?u.rotate*c:s.rotation,r.scaleX=s.scaleX,r.scaleY=s.scaleY;for(var p,d=0;d<lv.length;d++){var f=lv[d];r.setStyle(f,(null!=u[f]?u:s.style)[f])}u.draggable?(r.draggable=!0,r.cursor="move",a&&(p=o.seriesModel,null!=o.dataIndex&&(p=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex)),r.on("drag",function(t,e){return function(){qm(t,e)}}(a,p.getModel("labelLine"))))):(r.off("drag"),r.cursor=s.cursor)}},fv.prototype.layout=function(t){var e,n=t.getWidth(),i=(t=t.getHeight(),iv(this._labelList)),o=Object(l.n)(i,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),r=Object(l.n)(i,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));ov(o,"x","width",0,n,e),rv(r,0,t),av(Object(l.n)(i,(function(t){return t.layoutOption.hideOverlap})))},fv.prototype.processLabelsOverall=function(){var t=this;Object(l.k)(this._chartViewList,(function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,o=n.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var r=!i,a=e.getTextContent();(r=!r&&a?cv(a).needsUpdateLabelLine:r)&&t._updateLabelLine(e,n),o&&t._animateLabels(e,n)}))}))},fv.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=oa(t),o=i.dataIndex;n&&null!=o&&(e=(n=e.getData(i.dataType)).getItemModel(o),i={},o=n.getItemVisual(o,"style"),n=n.getVisual("drawType"),i.stroke=o[n],o=e.getModel("labelLine"),ev(t,nv(e),i),qm(t,o))},fv.prototype._animateLabels=function(t,e){var n,i,o,r,a,s=t.getTextContent(),u=t.getTextGuideLine();!s||!t.forceLabelAnimation&&(s.ignore||s.invisible||t.disableLabelAnimation||ps(t))||(r=(o=cv(s)).oldLayout,n=(i=oa(t)).dataIndex,a={x:s.x,y:s.y,rotation:s.rotation},i=e.getData(i.dataType),r?(s.attr(r),(t=t.prevStates)&&(0<=Object(l.r)(t,"select")&&s.attr(o.oldLayoutSelect),0<=Object(l.r)(t,"emphasis")&&s.attr(o.oldLayoutEmphasis)),cs(s,a,e,n)):(s.attr(a),As(s).valueAnimation||(t=Object(l.P)(s.style.opacity,1),s.style.opacity=0,hs(s,{style:{opacity:t}},e,n))),o.oldLayout=a,s.states.select&&(pv(t=o.oldLayoutSelect={},a,dv),pv(t,s.states.select,dv)),s.states.emphasis&&(pv(t=o.oldLayoutEmphasis={},a,dv),pv(t,s.states.emphasis,dv)),Ds(s,n,i,e,e)),!u||u.ignore||u.invisible||(r=(o=hv(u)).oldLayout,a={points:u.shape.points},r?(u.attr({shape:r}),cs(u,{shape:a},e)):(u.setShape(a),u.style.strokePercent=0,hs(u,{style:{strokePercent:1}},e)),o.oldLayout=a)};var gv,yv=fv,mv=ki();function vv(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){(mv(e).labelManager||(mv(e).labelManager=new yv)).clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var i=mv(e).labelManager;n.updatedSeries.forEach((function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()}))}function xv(t,e,n){var i=bn.d.createCanvas(),o=e.getWidth(),r=(e=e.getHeight(),i.style);return r&&(r.position="absolute",r.left="0",r.top="0",r.width=o+"px",r.height=e+"px",i.setAttribute("data-zr-dom-id",t)),i.width=o*n,i.height=e*n,i}function _v(t,e,n){var i,o=gv.call(this)||this;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,n=n||Ve,"string"==typeof t?i=xv(t,e,n):l.A(t)&&(t=(i=t).id),o.id=t,t=(o.dom=i).style;return t&&(l.j(i),i.onselectstart=function(){return!1},t.padding="0",t.margin="0",t.borderWidth="0"),o.painter=e,o.dpr=n,o}Nm(vv),c(_v,gv=L),_v.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},_v.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},_v.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},_v.prototype.setUnpainted=function(){this.__firstTimePaint=!0},_v.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=xv("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},_v.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],r=this.maxRepaintRectCount,a=!1,s=new xn(0,0,0,0);function l(t){if(t.isFinite()&&!t.isZero())if(0===o.length)(e=new xn(0,0,0,0)).copy(t),o.push(e);else{for(var e,n=!1,i=1/0,l=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var h=new xn(0,0,0,0);h.copy(c),h.union(t),o[u]=h,n=!0;break}a&&(s.copy(t),s.union(c),h=t.width*t.height,c=c.width*c.height,(c=s.width*s.height-h-c)<i&&(i=c,l=u))}a&&(o[l].union(t),n=!0),n||((e=new xn(0,0,0,0)).copy(t),o.push(e)),a=a||o.length>=r}}for(var u,c=this.__startIndex;c<this.__endIndex;++c)(h=t[c])&&(d=h.shouldBePainted(n,i,!0,!0),(p=h.__isRendered&&(h.__dirty&xt||!d)?h.getPrevPaintRect():null)&&l(p),(u=d&&(h.__dirty&xt||!h.__isRendered)?h.getPaintRect():null)&&l(u));for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h,p,d=(h=e[c]).shouldBePainted(n,i,!0,!0);!h||d&&h.__zr||!h.__isRendered||(p=h.getPrevPaintRect())&&l(p)}do{var f=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(f=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(f);return this._paintRects=o},_v.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},_v.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,o=i.style,r=this.domBack;o&&(o.width=t+"px",o.height=e+"px"),i.width=t*n,i.height=e*n,r&&(r.width=t*n,r.height=e*n,1!==n&&this.ctxBack.scale(n,n))},_v.prototype.clear=function(t,e,n){var i=this.dom,o=this.ctx,r=i.width,a=i.height,s=(e=e||this.clearColor,this.motionBlur&&!t),u=this.lastFrameAlpha,c=this.dpr,h=this,p=(s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,r/c,a/c)),this.domBack);function d(t,n,i,r){var a;o.clearRect(t,n,i,r),e&&"transparent"!==e&&(a=void 0,l.x(e)?(a=e.__canvasGradient||Zg(o,e,{x:0,y:0,width:i,height:r}),e.__canvasGradient=a):l.y(e)&&(a=oy(o,e,{dirty:function(){h.setUnpainted(),h.__painter.refresh()}})),o.save(),o.fillStyle=a||e,o.fillRect(t,n,i,r),o.restore()),s&&(o.save(),o.globalAlpha=u,o.drawImage(p,t,n,i,r),o.restore())}!n||s?d(0,0,r,a):n.length&&l.k(n,(function(t){d(t.x*c,t.y*c,t.width*c,t.height*c)}))};var bv=_v,wv=314159;function Sv(t,e,n,i){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=n=l.m({},n||{}),this.dpr=n.devicePixelRatio||Ve,this._singleCanvas=o,(this.root=t).style&&(l.j(t),t.innerHTML=""),this.storage=e;e=this._zlevelList;var r,a,s=(this._prevDisplayList=[],this._layers);o?(r=(o=t).width,a=o.height,null!=n.width&&(r=n.width),null!=n.height&&(a=n.height),this.dpr=n.devicePixelRatio||1,o.width=r*this.dpr,o.height=a*this.dpr,this._width=r,this._height=a,(r=new bv(o,this,this.dpr)).__builtin__=!0,r.initContext(),(s[wv]=r).zlevel=wv,e.push(wv),this._domRoot=t):(this._width=Kg(t,0,n),this._height=Kg(t,1,n),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))}Sv.prototype.getType=function(){return"canvas"},Sv.prototype.isSingleCanvas=function(){return this._singleCanvas},Sv.prototype.getViewportRoot=function(){return this._domRoot},Sv.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},Sv.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var o=0;o<i.length;o++){var r,a=i[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},Sv.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},Sv.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,o={inHover:!0,viewWidth:this._width,viewHeight:this._height},r=0;r<e;r++){var a=t[r];a.__inHover&&(n=n||(this._hoverlayer=this.getLayer(1e5)),i||(i=n.ctx).save(),my(i,a,o,r===e-1))}i&&i.restore()}},Sv.prototype.getHoverLayer=function(){return this.getLayer(1e5)},Sv.prototype.paintOne=function(t,e){yy(t,e)},Sv.prototype._paintList=function(t,e,n,i){var o,r,a;this._redrawId===i&&(n=n||!1,this._updateLayerStatus(t),o=(r=this._doPaintList(t,e,n)).finished,r=r.needsRefreshHover,this._needsManuallyCompositing&&this._compositeManually(),r&&this._paintHoverList(t),o?this.eachLayer((function(t){t.afterBrush&&t.afterBrush()})):(a=this,It((function(){a._paintList(t,e,n,i)}))))},Sv.prototype._compositeManually=function(){var t=this.getLayer(wv).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)}))},Sv.prototype._doPaintList=function(t,e,n){for(var i=this,o=[],r=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var u=this._zlevelList[a];u=this._layers[u];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&o.push(u)}for(var c=!0,h=!1,p=function(a){function s(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(u=y;u<p.__endIndex;u++){var o=t[u];if(o.__inHover&&(h=!0),i._doPaintEl(o,p,r,e,n,u===p.__endIndex-1),m&&15<Date.now()-v)break}n.prevElClipPaths&&f.restore()}var l,u,p=o[a],f=p.ctx,g=r&&p.createRepaintRects(t,e,d._width,d._height),y=n?p.__startIndex:p.__drawIndex,m=!n&&p.incremental&&Date.now,v=m&&Date.now();a=p.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(p.__startIndex!==p.__endIndex&&(y!==p.__startIndex||(l=t[y]).incremental&&l.notClear&&!n)||p.clear(!1,a,g),-1===y&&(y=p.__startIndex),g)if(0===g.length)u=p.__endIndex;else for(var x=d.dpr,_=0;_<g.length;++_){var b=g[_];f.save(),f.beginPath(),f.rect(b.x*x,b.y*x,b.width*x,b.height*x),f.clip(),s(b),f.restore()}else f.save(),s(),f.restore();p.__drawIndex=u,p.__drawIndex<p.__endIndex&&(c=!1)},d=this,f=0;f<o.length;f++)p(f);return s.a.wxa&&l.k(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:c,needsRefreshHover:h}},Sv.prototype._doPaintEl=function(t,e,n,i,o,r){e=e.ctx,n?(n=t.getPaintRect(),(!i||n&&n.intersect(i))&&(my(e,t,o,r),t.setPrevPaintRect(n))):my(e,t,o,r)},Sv.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=wv);var n=this._layers[t];return n||((n=new bv("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?l.I(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&l.I(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},Sv.prototype.insertLayer=function(t,e){var n,i=this._layers,o=this._zlevelList,r=o.length,a=this._domRoot,s=null,l=-1;if(!i[t]&&(n=e)&&(n.__builtin__||"function"==typeof n.resize&&"function"==typeof n.refresh)){if(0<r&&t>o[0]){for(l=0;l<r-1&&!(o[l]<t&&o[l+1]>t);l++);s=i[o[l]]}o.splice(l+1,0,t),(i[t]=e).virtual||(s?(n=s.dom).nextSibling?a.insertBefore(e.dom,n.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.__painter=this}},Sv.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i];t.call(e,this._layers[o],o)}},Sv.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i],r=this._layers[o];r.__builtin__&&t.call(e,r,o)}},Sv.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i],r=this._layers[o];r.__builtin__||t.call(e,r,o)}},Sv.prototype.getLayers=function(){return this._layers},Sv.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 n=1;n<t.length;n++)if((s=t[n]).zlevel!==t[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}for(var i,o=null,r=0,a=0;a<t.length;a++){var s,u=(s=t[a]).zlevel,c=void 0;i!==u&&(i=u,r=0),s.incremental?((c=this.getLayer(u+.001,this._needsManuallyCompositing)).incremental=!0,r=1):c=this.getLayer(u+(0<r?.01:0),this._needsManuallyCompositing),c.__builtin__||l.G("ZLevel "+u+" has been used by unkown layer "+c.id),c!==o&&(c.__used=!0,c.__startIndex!==a&&(c.__dirty=!0),c.__startIndex=a,c.incremental?c.__drawIndex=-1:c.__drawIndex=a,e(a),o=c),s.__dirty&xt&&!s.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=a))}e(a),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)}))},Sv.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},Sv.prototype._clearLayer=function(t){t.clear()},Sv.prototype.setBackgroundColor=function(t){this._backgroundColor=t,l.k(this._layers,(function(t){t.setUnpainted()}))},Sv.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?l.I(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];o!==t&&o!==t+.01||(o=this._layers[o],l.I(o,n[t],!0))}}},Sv.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(l.r(n,t),1))},Sv.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot,i=(n.style.display="none",this._opts),o=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=Kg(o,0,i),e=Kg(o,1,i),n.style.display="",this._width!==t||e!==this._height){for(var r in n.style.width=t+"px",n.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(wv).resize(t,e)}return this},Sv.prototype.clearLayer=function(t){t=this._layers[t],t&&t.clear()},Sv.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},Sv.prototype.getRenderedCanvas=function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[wv].dom;var e=new bv("image",this,(t=t||{}).pixelRatio||this.dpr),n=(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),e.ctx);if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,o=e.dom.height;this.eachLayer((function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,o):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.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 u=a[s];my(n,u,r,s===l-1)}return e.dom},Sv.prototype.getWidth=function(){return this._width},Sv.prototype.getHeight=function(){return this._height};var Mv=Sv,Iv=Math.sin,Ov=Math.cos,Tv=Math.PI,Cv=2*Math.PI,Av=180/Tv;function kv(){}kv.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},kv.prototype.moveTo=function(t,e){this._add("M",t,e)},kv.prototype.lineTo=function(t,e){this._add("L",t,e)},kv.prototype.bezierCurveTo=function(t,e,n,i,o,r){this._add("C",t,e,n,i,o,r)},kv.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},kv.prototype.arc=function(t,e,n,i,o,r){this.ellipse(t,e,n,n,0,i,o,r)},kv.prototype.ellipse=function(t,e,n,i,o,r,a,s){var l,u=a-r,c=(s=!s,Math.abs(u)),h=Object(ee.j)(c-Cv)||(s?Cv<=u:Cv<=-u),p=(u=0<u?u%Cv:u%Cv+Cv,!1);p=!!h||!Object(ee.j)(c)&&Tv<=u==!!s,c=t+n*Ov(r),u=e+i*Iv(r),this._start&&this._add("M",c,u),o=Math.round(o*Av);h?(h=1/this._p,this._add("A",n,i,o,1,+s,t+n*Ov(r+(l=(s?1:-1)*(Cv-h))),e+i*Iv(r+l)),.01<h&&this._add("A",n,i,o,0,+s,c,u)):(r=t+n*Ov(a),l=e+i*Iv(a),this._add("A",n,i,o,+p,+s,r,l))},kv.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},kv.prototype.closePath=function(){0<this._d.length&&this._add("Z")},kv.prototype._add=function(t,e,n,i,o,r,a,s,l){for(var u=[],c=this._p,h=1;h<arguments.length;h++){var p=arguments[h];if(isNaN(p))return void(this._invalid=!0);u.push(Math.round(p*c)/c)}this._d.push(t+u.join(" ")),this._start="Z"===t},kv.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},kv.prototype.getStr=function(){return this._str};var Dv=kv,Lv="none",Pv=Math.round,jv=["lineCap","miterLimit","lineJoin"],Rv=Object(l.H)(jv,(function(t){return"stroke-"+t.toLowerCase()}));function Nv(t,e,n,i){var o=null==e.opacity?1:e.opacity;if(n instanceof Ar)t("opacity",o);else if(null!=(r=(r=e).fill)&&r!==Lv?(t("fill",(r=Object(ee.p)(e.fill)).color),r=null!=e.fillOpacity?e.fillOpacity*r.opacity*o:r.opacity*o,(i||r<1)&&t("fill-opacity",r)):t("fill",Lv),null!=(r=(r=e).stroke)&&r!==Lv){var r=Object(ee.p)(e.stroke),a=(t("stroke",r.color),e.strokeNoScale?n.getLineScale():1);a=a?(e.lineWidth||0)/a:0,r=null!=e.strokeOpacity?e.strokeOpacity*r.opacity*o:r.opacity*o,o=e.strokeFirst;!i&&1==a||t("stroke-width",a),(i||o)&&t("paint-order",o?"stroke":"fill"),(i||r<1)&&t("stroke-opacity",r),e.lineDash?(o=(a=Qg(n))[0],r=a[1],o&&(r=Pv(r||0),t("stroke-dasharray",o.join(",")),(r||i)&&t("stroke-dashoffset",r))):i&&t("stroke-dasharray",Lv);for(var s=0;s<jv.length;s++){var l=jv[s];!i&&e[l]===yr[l]||(l=e[l]||yr[l])&&t(Rv[s],l)}}else i&&t("stroke",Lv)}var Ev="http://www.w3.org/2000/svg",zv="http://www.w3.org/1999/xlink",Bv="http://www.w3.org/2000/xmlns/",Vv="http://www.w3.org/XML/1998/namespace";function Fv(t){return document.createElementNS(Ev,t)}function Hv(t,e,n,i,o){return{tag:t,attrs:n||{},children:i,text:o,key:e}}function Gv(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var i=e.children,o=e.tag;return function(t,e){var n=[];if(e)for(var i in e){var o=e[i];!1!==o&&(!0!==o&&null!=o&&(i+='="'+o+'"'),n.push(i))}return"<"+t+" "+n.join(" ")+">"}(o,e.attrs)+(e.text||"")+(i?n+Object(l.H)(i,t).join(n)+n:"")+"</"+o+">"}(t)}function Wv(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Yv(t,e,n,i){return Hv("svg","root",{width:t,height:e,xmlns:Ev,"xmlns:xlink":zv,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var Uv={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"},Xv="transform-origin",Zv={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function qv(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function Kv(t){return Object(l.C)(t)?Uv[t]?"cubic-bezier("+Uv[t]+")":Qt(t)?t:"":""}function Qv(t,e,n,i){var o=t.animators,r=o.length,a=[];if(t instanceof Wd){if(u=function(t,e,n){t=t.shape.paths;var i,o,r={};if(Object(l.k)(t,(function(t){var e=Wv(n.zrId),a=(t=(e.animation=!0,Qv(t,{},e,!0),e.cssAnims),e.cssNodes),s=(e=Object(l.F)(t),e.length);if(s){var u,c,h=t[o=e[s-1]];for(u in h){var p=h[u];r[u]=r[u]||{d:""},r[u].d+=p.d||""}for(c in a){var d=a[c].animation;0<=d.indexOf(o)&&(i=d)}}})),i)return e.d=!1,t=qv(r,n),i.replace(o,t)}(t,e,n))a.push(u);else if(!r)return}else if(!r)return;for(var s,u,c,h={},p=0;p<r;p++){var d=o[p],f=[d.getMaxTime()/1e3+"s"],g=Kv(d.getClip().easing),y=d.getDelay();g=(g?f.push(g):f.push("linear"),y&&f.push(y/1e3+"s"),d.getLoop()&&f.push("infinite"),f.join(" "));h[g]=h[g]||[g,[]],h[g][1].push(d)}function m(o){var r=o[1],a=r.length,s={},u={},c={},h="animation-timing-function";function p(t,e,n){for(var i=t.getTracks(),o=t.getMaxTime(),r=0;r<i.length;r++){var a=i[r];if(a.needsAnimate()){var s=a.keyframes,u=a.propName;if(u=n?n(u):u)for(var c=0;c<s.length;c++){var p=s[c],d=Math.round(p.time/o*100)+"%",f=Kv(p.easing),g=p.rawValue;(Object(l.C)(g)||Object(l.z)(g))&&(e[d]=e[d]||{},e[d][u]=p.rawValue,f&&(e[d][h]=f))}}}}for(var d,f,g=0;g<a;g++)(C=(T=r[g]).targetName)?"shape"===C&&p(T,u):i||p(T,s);for(O in s){var y={},m=(an(y,t),Object(l.m)(y,s[O]),Object(ee.g)(y)),v=s[O][h];c[O]=m?{transform:m}:{},m=c[O],d=void 0,d=(y=y).originX,y=y.originY,(d||y)&&(m[Xv]=d+"px "+y+"px"),v&&(c[O][h]=v)}var x,_,b,w=!0;for(O in u){c[O]=c[O]||{};var S=!f,M=(v=u[O][h],(f=S?new tr:f).len()),I=(f.reset(),c[O].d=(x=t,_=u[O],b=f,I=void 0,I=Object(l.m)({},x.shape),Object(l.m)(I,_),x.buildPath(b,I),(_=new Dv).reset(Object(ee.f)(x)),b.rebuildPath(_,1),_.generateStr(),_.getStr()),f.len());if(!S&&M!==I){w=!1;break}v&&(c[O][h]=v)}if(!w)for(var O in c)delete c[O].d;if(!i){var T,C;for(g=0;g<a;g++)"style"===(C=(T=r[g]).targetName)&&p(T,c,(function(t){return Zv[t]}))}var A,k=Object(l.F)(c),D=!0;for(g=1;g<k.length;g++){var L=k[g-1],P=k[g];if(c[L][Xv]!==c[P][Xv]){D=!1;break}A=c[L][Xv]}if(D&&A){for(var O in c)c[O][Xv]&&delete c[O][Xv];e[Xv]=A}if(Object(l.n)(k,(function(t){return 0<Object(l.F)(c[t]).length})).length)return qv(c,n)+" "+o[0]+" both"}for(s in h)(u=m(h[s]))&&a.push(u);a.length&&(c=n.zrId+"-cls-"+n.cssClassIdx++,n.cssNodes["."+c]={animation:a.join(",")},e.class=c)}var $v=Math.round;function Jv(t){return t&&Object(l.C)(t.src)}function tx(t){return t&&Object(l.w)(t.toDataURL)}function ex(t,e,n,i){Nv((function(o,r){var a,s,u,c,h,p,d,f="fill"===o||"stroke"===o;if(f&&Object(ee.k)(r)){var g,y=t,m=o,v=i,x={gradientUnits:(T=(T=e)[m]).global?"userSpaceOnUse":"objectBoundingBox"};if(Object(ee.m)(T))g="linearGradient",x.x1=T.x,x.y1=T.y,x.x2=T.x2,x.y2=T.y2;else{if(!Object(ee.o)(T))return;g="radialGradient",x.cx=Object(l.P)(T.x,.5),x.cy=Object(l.P)(T.y,.5),x.r=Object(l.P)(T.r,.5)}for(var _=T.colorStops,b=[],w=0,S=_.length;w<S;++w){var M=100*Object(ee.q)(_[w].offset)+"%",I=_[w].color,O=(I=Object(ee.p)(I),I.color);I=I.opacity,M={offset:M};M["stop-color"]=O,I<1&&(M["stop-opacity"]=I),b.push(Hv("stop",w+"",M))}var T=Gv(Hv(g,"",x,b)),C=v.gradientCache,A=C[T];A||(A=v.zrId+"-g"+v.gradientIdx++,C[T]=A,x.id=A,v.defs[A]=Hv(g,A,x,b)),y[m]=Object(ee.d)(A)}else f&&Object(ee.n)(r)?(C=t,T=o,v=i,x=(g=n).style[T],y={patternUnits:"userSpaceOnUse"},Object(ee.l)(x)?(u=x.imageWidth,c=x.imageHeight,h=void 0,d=x.image,Object(l.C)(d)?h=d:Jv(d)?h=d.src:tx(d)&&(h=d.toDataURL()),"undefined"==typeof Image?(d="Image width/height must been given explictly in svg-ssr renderer.",Object(l.b)(u,d),Object(l.b)(c,d)):null!=u&&null!=c||(p=function(t,e){var n,i;t&&(n=t.elm,i=t.attrs.width=u||e.width,t=t.attrs.height=c||e.height,n&&(n.setAttribute("width",i),n.setAttribute("height",t)))},(d=to(h,null,g,(function(t){p(s,t),p(a,t)})))&&d.width&&d.height&&(u=u||d.width,c=c||d.height)),a=Hv("image","img",{href:h,width:u,height:c}),y.width=u,y.height=c):x.svgElement&&(a=x.svgElement,y.width=x.svgWidth,y.height=x.svgHeight),a&&(y.patternTransform=Object(ee.g)(x),s=Hv("pattern","",y,[a]),g=Gv(s),d=v.patternCache,(h=d[g])||(h=v.zrId+"-p"+v.patternIdx++,d[g]=h,y.id=h,s=v.defs[h]=Hv("pattern",h,y,[a])),C[T]=Object(ee.d)(h))):t[o]=r}),e,n,!1);var o=t,r=i,a=(h=n).style;if(Object(ee.i)(a)){var s=Object(ee.h)(h),u=r.shadowCache,c=u[s];if(!c){var h=h.getGlobalScale(),p=h[0];h=h[1];if(!p||!h)return;var d=a.shadowOffsetX||0,f=a.shadowOffsetY||0,g=a.shadowBlur,y=(a=Object(ee.p)(a.shadowColor),a.opacity);a=a.color,g=g/2/p+" "+g/2/h;c=r.zrId+"-s"+r.shadowIdx++,r.defs[c]=Hv("filter",c,{id:c,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Hv("feDropShadow","",{dx:d/p,dy:f/h,stdDeviation:g,"flood-color":a,"flood-opacity":y})]),u[s]=c}o.filter=Object(ee.d)(c)}}function nx(t){return Object(ee.j)(t[0]-1)&&Object(ee.j)(t[1])&&Object(ee.j)(t[2])&&Object(ee.j)(t[3]-1)}function ix(t,e,n){var i;!e||(i=e,Object(ee.j)(i[4])&&Object(ee.j)(i[5])&&nx(e))||(i=n?10:1e4,t.transform=nx(e)?"translate("+$v(e[4]*i)/i+" "+$v(e[5]*i)/i+")":Object(ee.e)(e))}function ox(t,e,n){for(var i=t.points,o=[],r=0;r<i.length;r++)o.push($v(i[r][0]*n)/n),o.push($v(i[r][1]*n)/n);e.points=o.join(" ")}function rx(t){return!t.smooth}var ax,sx={circle:[(zg=["cx","cy","r"],ax=Object(l.H)(zg,(function(t){return"string"==typeof t?[t,t]:t})),function(t,e,n){for(var i=0;i<ax.length;i++){var o=ax[i],r=t[o[0]];null!=r&&(e[o[1]]=$v(r*n)/n)}})],polyline:[ox,rx],polygon:[ox,rx]};function lx(t,e){var n,i,o,r=t.style,a=t.shape,s=sx[t.type],l={},u=e.animation,c="path",h=t.style.strokePercent,p=e.compress&&Object(ee.f)(t)||4;return!s||e.willUpdate||s[1]&&!s[1](a)||u&&function(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return 1}(t)||h<1?(t.path||t.createPathProxy(),u=t.path,t.shapeChanged()&&(u.beginPath(),t.buildPath(u,t.shape),t.pathUpdated()),n=u.getVersion(),o=(i=t).__svgPathBuilder,i.__svgPathVersion===n&&o&&h===i.__svgPathStrokePercent||((o=o||(i.__svgPathBuilder=new Dv)).reset(p),u.rebuildPath(o,h),o.generateStr(),i.__svgPathVersion=n,i.__svgPathStrokePercent=h),l.d=o.getStr()):(c=t.type,u=Math.pow(10,p),s[0](a,l,u)),ix(l,t.transform),ex(l,r,t,e),e.animation&&Qv(t,l,e),Hv(c,t.id+"",l)}function ux(t,e){if(t instanceof br)return lx(t,e);if(t instanceof Ar){var n=t,i=e,o=n.style,r=o.image;if(r&&!Object(l.C)(r)&&(Jv(r)?r=r.src:tx(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),ix(r,n.transform),ex(r,o,n,i),i.animation&&Qv(n,r,i),Hv("image",n.id+"",r)}else if(t instanceof Mr){var a=t,s=e;o=a.style,i=o.text;if(null!=i&&(i+=""),i&&!isNaN(o.x)&&!isNaN(o.y)){if(n=o.font||bn.a,r=o.x||0,t=Object(ee.b)(o.y||0,Cn(n),o.textBaseline),e={"dominant-baseline":"central","text-anchor":ee.a[o.textAlign]||o.textAlign},qr(o)){var u="",c=o.fontStyle,h=Xr(o.fontSize);if(!parseFloat(h))return;var p=o.fontFamily||bn.b,d=o.fontWeight;u+="font-size:"+h+";font-family:"+p+";",c&&"normal"!==c&&(u+="font-style:"+c+";"),d&&"normal"!==d&&(u+="font-weight:"+d+";"),e.style=u}else e.style="font: "+n;return i.match(/\s/)&&(e["xml:space"]="preserve"),r&&(e.x=r),t&&(e.y=t),ix(e,a.transform),ex(e,o,a,s),s.animation&&Qv(a,e,s),Hv("text",a.id+"",e,void 0,i)}}}function cx(t){return document.createTextNode(t)}function hx(t,e,n){t.insertBefore(e,n)}function px(t,e){t.removeChild(e)}function dx(t,e){t.appendChild(e)}function fx(t){return t.parentNode}function gx(t){return t.nextSibling}function yx(t,e){t.textContent=e}var mx=58,vx=120,xx=Hv("","");function _x(t){return void 0===t}function bx(t){return void 0!==t}function wx(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function Sx(t){var e,n=t.children,i=t.tag;if(bx(i)){var o=t.elm=Fv(i);if(Ox(xx,t),Object(l.t)(n))for(e=0;e<n.length;++e){var r=n[e];null!=r&&dx(o,Sx(r))}else bx(t.text)&&!Object(l.A)(t.text)&&dx(o,cx(t.text))}else t.elm=cx(t.text);return t.elm}function Mx(t,e,n,i,o){for(;i<=o;++i){var r=n[i];null!=r&&hx(t,Sx(r),e)}}function Ix(t,e,n,i){for(;n<=i;++n){var o=e[n];null!=o&&(bx(o.tag)?px(fx(o.elm),o.elm):px(t,o.elm))}}function Ox(t,e){var n,i=e.elm,o=t&&t.attrs||{},r=e.attrs||{};if(o!==r){for(n in r){var a=r[n];o[n]!==a&&(!0===a?i.setAttribute(n,""):!1===a?i.removeAttribute(n):n.charCodeAt(0)!==vx?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS(Bv,n,a):n.charCodeAt(3)===mx?i.setAttributeNS(Vv,n,a):n.charCodeAt(5)===mx?i.setAttributeNS(zv,n,a):i.setAttribute(n,a))}for(n in o)n in r||i.removeAttribute(n)}}function Tx(t,e,n){for(var i,o,r,a=0,s=0,l=e.length-1,u=e[0],c=e[l],h=n.length-1,p=n[0],d=n[h];a<=l&&s<=h;)null==u?u=e[++a]:null==c?c=e[--l]:null==p?p=n[++s]:null==d?d=n[--h]:wx(u,p)?(Cx(u,p),u=e[++a],p=n[++s]):wx(c,d)?(Cx(c,d),c=e[--l],d=n[--h]):wx(u,d)?(Cx(u,d),hx(t,u.elm,gx(c.elm)),u=e[++a],d=n[--h]):(wx(c,p)?(Cx(c,p),hx(t,c.elm,u.elm),c=e[--l]):(_x(i)&&(i=function(t,e,n){for(var i={},o=e;o<=n;++o){var r=t[o].key;void 0!==r&&(i[r]=o)}return i}(e,a,l)),_x(o=i[p.key])||(r=e[o]).tag!==p.tag?hx(t,Sx(p),u.elm):(Cx(r,p),e[o]=void 0,hx(t,r.elm,u.elm))),p=n[++s]);(a<=l||s<=h)&&(l<a?Mx(t,null==n[h+1]?null:n[h+1].elm,n,s,h):Ix(t,e,a,l))}function Cx(t,e){var n=e.elm=t.elm,i=t.children,o=e.children;t!==e&&(Ox(t,e),_x(e.text)?bx(i)&&bx(o)?i!==o&&Tx(n,i,o):bx(o)?(bx(t.text)&&yx(n,""),Mx(n,null,o,0,o.length-1)):bx(i)?Ix(n,i,0,i.length-1):bx(t.text)&&yx(n,""):t.text!==e.text&&(bx(i)&&Ix(n,i,0,i.length-1),yx(n,e.text)))}var Ax=0;function kx(t,e,n){var i;this.type="svg",this.refreshHover=Dx(),this.configLayer=Dx(),this.storage=e,this._opts=n=Object(l.m)({},n),this.root=t,this._id="zr"+Ax++,this._oldVNode=Yv(n.width,n.height),t&&!n.ssr&&((e=this._viewport=document.createElement("div")).style.cssText="position:relative;overflow:hidden",i=this._svgDom=this._oldVNode.elm=Fv("svg"),Ox(null,this._oldVNode),e.appendChild(i),t.appendChild(e)),this.resize(n.width,n.height)}function Dx(){return function(){}}kx.prototype.getType=function(){return this.type},kx.prototype.getViewportRoot=function(){return this._viewport},kx.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},kx.prototype.getSvgDom=function(){return this._svgDom},kx.prototype.refresh=function(){var t,e,n,i,o;this.root&&((t=this.renderToVNode({willUpdate:!0})).attrs.style="position:absolute;left:0;top:0;user-select:none",wx(e=this._oldVNode,n=t)?Cx(e,n):(o=fx(i=e.elm),Sx(n),null!==o&&(hx(o,n.elm,gx(i)),Ix(o,[e],0,0))),this._oldVNode=t)},kx.prototype.renderOneToVNode=function(t){return ux(t,Wv(this._id))},kx.prototype.renderToVNode=function(t){t=t||{};var e,n,i,o,r,a=this.storage.getDisplayList(!0),s=this._backgroundColor,u=this._width,c=this._height,h=Wv(this._id),p=(h.animation=t.animation,h.willUpdate=t.willUpdate,h.compress=t.compress,[]),d=(s&&"none"!==s?(d=(s=Object(ee.p)(s)).color,s=s.opacity,this._bgVNode=Hv("rect","bg",{width:u,height:c,x:"0",y:"0",id:"0",fill:d,"fill-opacity":s}),p.push(this._bgVNode)):this._bgVNode=null,t.compress?null:this._mainVNode=Hv("g","main",{},[]));this._paintList(a,h,d?d.children:p),d&&p.push(d),s=Object(l.H)(Object(l.F)(h.defs),(function(t){return h.defs[t]}));return s.length&&p.push(Hv("defs","defs",{},s)),t.animation&&(e=h.cssNodes,n=h.cssAnims,i=(a=(a={newline:!0})||{}).newline?"\n":"",o=" {"+i,r=i+"}",a=Object(l.H)(Object(l.F)(e),(function(t){return t+o+Object(l.H)(Object(l.F)(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(i)+r})).join(i),d=Object(l.H)(Object(l.F)(n),(function(t){return"@keyframes "+t+o+Object(l.H)(Object(l.F)(n[t]),(function(e){return e+o+Object(l.H)(Object(l.F)(n[t][e]),(function(i){var o=n[t][e][i];return i+":"+(o="d"===i?'path("'+o+'")':o)+";"})).join(i)+r})).join(i)+r})).join(i),(s=a||d?["<![CDATA[",a,d,"]]>"].join(i):"")&&(a=Hv("style","stl",{},[],s),p.push(a))),Yv(u,c,p,t.useViewBox)},kx.prototype.renderToString=function(t){return t=t||{},Gv(this.renderToVNode({animation:Object(l.P)(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Object(l.P)(t.useViewBox,!0)}),{newline:!0})},kx.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e,n=this._bgVNode;n&&n.elm&&(e=(t=Object(ee.p)(t)).color,t=t.opacity,n.elm.setAttribute("fill",e),t<1&&n.elm.setAttribute("fill-opacity",t))},kx.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},kx.prototype._paintList=function(t,e,n){for(var i,o,r,a,s,l,u,c=t.length,h=[],p=0,d=0,f=0;f<c;f++){var g=t[f];if(!g.invisible){var y=g.__clipPaths,m=y&&y.length||0,v=M&&M.length||0,x=void 0;for(x=Math.max(m-1,v-1);0<=x&&(!y||!M||y[x]!==M[x]);x--);for(var _=v-1;x<_;_--)i=h[--p-1];for(var b=x+1;b<m;b++){var w={},S=(o=y[b],r=w,u=S=l=s=void 0,l=(a=e).clipPathCache,S=a.defs,(u=l[o.id])||(s={id:u=a.zrId+"-c"+a.clipPathIdx++},S[l[o.id]=u]=Hv("clipPath",u,s,[lx(o,a)])),r["clip-path"]=Object(ee.d)(u),Hv("g","clip-g-"+d++,w,[]));(i?i.children:n).push(S),i=h[p++]=S}var M=y;v=ux(g,e);v&&(i?i.children:n).push(v)}}},kx.prototype.resize=function(t,e){var n=this._opts,i=this.root,o=this._viewport;null!=t&&(n.width=t),null!=e&&(n.height=e),i&&o&&(o.style.display="none",t=Kg(i,0,n),e=Kg(i,1,n),o.style.display=""),this._width===t&&this._height===e||(this._width=t,this._height=e,o&&((i=o.style).width=t+"px",i.height=e+"px"),(n=this._svgDom)&&(n.setAttribute("width",t),n.setAttribute("height",e)))},kx.prototype.getWidth=function(){return this._width},kx.prototype.getHeight=function(){return this._height},kx.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},kx.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},kx.prototype.toDataURL=function(t){var e=encodeURIComponent(this.renderToString()),n="data:image/svg+xml;";return t?(e=Object(ee.c)(e))&&n+"base64,"+e:n+"charset=UTF-8,"+e};var Lx=kx;function Px(t){return null==t?0:t.length||1}function jx(t){return t}function Rx(t,e,n,i,o,r){this._old=t,this._new=e,this._oldKeyGetter=n||jx,this._newKeyGetter=i||jx,this.context=o,this._diffModeMultiple="multiple"===r}Rx.prototype.add=function(t){return this._add=t,this},Rx.prototype.update=function(t){return this._update=t,this},Rx.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},Rx.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},Rx.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},Rx.prototype.remove=function(t){return this._remove=t,this},Rx.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},Rx.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var r=0;r<t.length;r++){var a,s=i[r],l=n[s],u=Px(l);1<u?(a=l.shift(),1===l.length&&(n[s]=l[0]),this._update&&this._update(a,r)):1===u?(n[s]=null,this._update&&this._update(l,r)):this._remove&&this._remove(r)}this._performRestAdd(o,n)},Rx.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},o=[],r=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(e,i,r,"_newKeyGetter");for(var a=0;a<o.length;a++){var s=o[a],l=n[s],u=i[s],c=Px(l),h=Px(u);if(1<c&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&1<h)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),i[s]=null;else if(1<c&&1<h)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(1<c)for(var p=0;p<c;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(r,i)},Rx.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],o=e[i],r=Px(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[i]=null}},Rx.prototype._initIndexMap=function(t,e,n,i){for(var o=this._diffModeMultiple,r=0;r<t.length;r++){var a,s,l="_ec_"+this[i](t[r],r);o||(n[r]=l),e&&(0===(s=Px(a=e[l]))?(e[l]=r,o&&n.push(l)):1===s?e[l]=[a,r]:a.push(r))}};var Nx=Rx,Ex=(zx.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},zx.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},zx);function zx(t,e){this._encode=t,this._schema=e}function Bx(t,e){var n={},i=n.encode={},o=Object(l.f)(),r=[],a=[],s={},u=(Object(l.k)(t.dimensions,(function(e){var n,l,u=t.getDimensionInfo(e),c=u.coordDim;c&&(n=u.coordDimIndex,Vx(i,c)[n]=e,u.isExtraCoord||(o.set(c,1),"ordinal"!==(l=u.type)&&"time"!==l&&(r[0]=e),Vx(s,c)[n]=t.getDimensionIndex(u.name)),u.defaultTooltip&&a.push(e)),hu.each((function(t,e){var n=Vx(i,e);e=u.otherDims[e];null!=e&&!1!==e&&(n[e]=u.name)}))})),[]),c={},h=(o.each((function(t,e){var n=i[e];c[e]=n[0],u=u.concat(n)})),n.dataDimsOnCoord=u,n.dataDimIndicesOnCoord=Object(l.H)(u,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=c,i.label);h&&h.length&&(r=h.slice()),h=i.tooltip;return h&&h.length?a=h.slice():a.length||(a=r.slice()),i.defaultedLabel=r,i.defaultedTooltip=a,n.userOutput=new Ex(s,e),n}function Vx(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Fx(t){return"category"===t?"ordinal":"time"===t?"time":"float"}var Hx=function(t){this.otherDims={},null!=t&&l.m(this,t)},Gx=ki(),Wx={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Yx=(Ux.prototype.isDimensionOmitted=function(){return this._dimOmitted},Ux.prototype._updateDimOmitted=function(t){(this._dimOmitted=t)&&!this._dimNameMap&&(this._dimNameMap=qx(this.source))},Ux.prototype.getSourceDimensionIndex=function(t){return Object(l.P)(this._dimNameMap.get(t),-1)},Ux.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},Ux.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Cc(this.source),n=!(30<t),i="",o=[],r=0,a=0;r<t;r++){var s,l=void 0,u=void 0,c=void 0,h=this.dimensions[a];h&&h.storeDimIndex===r?(l=e?h.name:null,u=h.type,c=h.ordinalMeta,a++):(s=this.getSourceDimension(r))&&(l=e?s.name:null,u=s.type),o.push({property:l,type:u,ordinalMeta:c}),!e||null==l||h&&h.isCalculationCoord||(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i=i+"$"+(Wx[u]||"f"),c&&(i+=c.uid),i+="$"}var p=this.source;return{dimensions:o,hash:[p.seriesLayoutBy,p.startIndex,i].join("$$")}},Ux.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,o=this.dimensions[n];o&&o.storeDimIndex===e?(o.isCalculationCoord||(i=o.name),n++):(o=this.getSourceDimension(e))&&(i=o.name),t.push(i)}return t},Ux.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},Ux);function Ux(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}function Xx(t){return t instanceof Yx}function Zx(t){for(var e=Object(l.f)(),n=0;n<(t||[]).length;n++){var i=t[n];i=Object(l.A)(i)?i.name:i;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function qx(t){var e=Gx(t);return e.dimNameMap||(e.dimNameMap=Zx(t.dimensionsDefine))}var Kx,Qx,$x,Jx,t_,e_,n_,i_=l.A,o_=l.H,r_="undefined"==typeof Int32Array?Array:Int32Array,a_=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],s_=["_approximateExtent"];function l_(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"];for(var n,i,o=!(this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"]),r=(Xx(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(o=!0,n=t),n=n||["x","y"],{}),a=[],s={},u=!1,c={},h=0;h<n.length;h++){var p=n[h],d=(p=l.C(p)?new Hx({name:p}):p instanceof Hx?p:new Hx(p),p.name),f=(p.type=p.type||"float",p.coordDim||(p.coordDim=d,p.coordDimIndex=0),p.otherDims=p.otherDims||{});a.push(d),r[d]=p,null!=c[d]&&(u=!0),p.createInvertedIndices&&(s[d]=[]),0===f.itemName&&(this._nameDimIdx=h),0===f.itemId&&(this._idDimIdx=h),o&&(p.storeDimIndex=h)}this.dimensions=a,this._dimInfos=r,this._initGetDimensionInfo(u),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted&&(i=this._dimIdxToName=l.f(),l.k(a,(function(t){i.set(r[t].storeDimIndex,t)})))}l_.prototype.getDimension=function(t){if(null==this._recognizeDimIndex(t))return t;if(t=t,!this._dimOmitted)return this.dimensions[t];var e=this._dimIdxToName.get(t);return null!=e?e:(e=this._schema.getSourceDimension(t),e?e.name:void 0)},l_.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);return null!=e?e:null==t?-1:(e=this._getDimInfo(t),e?e.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1)},l_.prototype._recognizeDimIndex=function(t){if(l.z(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},l_.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},l_.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},l_.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]}},l_.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},l_.prototype.mapDimension=function(t,e){var n=this._dimSummary;return null==e?n.encodeFirstDimNotExtra[t]:(n=n.encode[t],n?n[e]:null)},l_.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},l_.prototype.getStore=function(){return this._store},l_.prototype.initData=function(t,e,n){var i,o,r=this;(i=t instanceof Nh?t:i)||(o=this.dimensions,t=wc(t)||l.u(t)?new Lc(t,o.length):t,i=new Nh,o=o_(o,(function(t){return{type:r._dimInfos[t].type,property:t}})),i.initData(t,o,n)),this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=Bx(this,this._schema),this.userOutput=this._dimSummary.userOutput},l_.prototype.appendData=function(t){t=this._store.appendData(t),this._doInit(t[0],t[1])},l_.prototype.appendValues=function(t,e){t=this._store.appendValues(t,e.length);var n=t.start,i=t.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var r=n;r<i;r++)this._nameList[r]=e[r-n],o&&n_(this,r)},l_.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},l_.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==yu&&!t.fillStorage},l_.prototype._doInit=function(t,e){if(!(e<=t)){var n=this._store.getProvider(),i=(this._updateOrdinalMeta(),this._nameList),o=this._idList;if(n.getSource().sourceFormat===pu&&!n.pure)for(var r=[],a=t;a<e;a++){var s,u=n.getItem(a,r);this.hasItemOption||(s=u,!Object(l.A)(s)||s instanceof Array)||(this.hasItemOption=!0),u&&(s=u.name,null==i[a]&&null!=s&&(i[a]=Ii(s,null)),u=u.id,null==o[a]&&null!=u&&(o[a]=Ii(u,null)))}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)n_(this,a);Kx(this)}},l_.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},l_.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},l_.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},l_.prototype.setCalculationInfo=function(t,e){i_(t)?l.m(this._calculationInfo,t):this._calculationInfo[t]=e},l_.prototype.getName=function(t){t=this.getRawIndex(t);var e=this._nameList[t];return null==(e=null==e&&null!=this._nameDimIdx?$x(this,this._nameDimIdx,t):e)?"":e},l_.prototype._getCategory=function(t,e){return e=this._store.get(t,e),t=this._store.getOrdinalMeta(t),t?t.categories[e]:e},l_.prototype.getId=function(t){return Qx(this,this.getRawIndex(t))},l_.prototype.count=function(){return this._store.count()},l_.prototype.get=function(t,e){var n=this._store;t=this._dimInfos[t];if(t)return n.get(t.storeDimIndex,e)},l_.prototype.getByRawIndex=function(t,e){var n=this._store;t=this._dimInfos[t];if(t)return n.getByRawIndex(t.storeDimIndex,e)},l_.prototype.getIndices=function(){return this._store.getIndices()},l_.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},l_.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},l_.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},l_.prototype.getValues=function(t,e){var n=this,i=this._store;return l.t(t)?i.getValues(o_(t,(function(t){return n._getStoreDimIndex(t)})),e):i.getValues(t)},l_.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},l_.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},l_.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},l_.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},l_.prototype.rawIndexOf=function(t,e){return t=(t&&this._invertedIndicesMap[t])[e],null==t||isNaN(t)?-1:t},l_.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},l_.prototype.each=function(t,e,n){l.w(t)&&(n=e,e=t,t=[]),n=n||this,t=o_(Jx(t),this._getStoreDimIndex,this),this._store.each(t,n?l.c(e,n):e)},l_.prototype.filterSelf=function(t,e,n){return l.w(t)&&(n=e,e=t,t=[]),n=n||this,t=o_(Jx(t),this._getStoreDimIndex,this),this._store=this._store.filter(t,n?l.c(e,n):e),this},l_.prototype.selectRange=function(t){var e=this,n={},i=l.F(t),o=[];return l.k(i,(function(i){var r=e._getStoreDimIndex(i);n[r]=t[i],o.push(r)})),this._store=this._store.selectRange(n),this},l_.prototype.mapArray=function(t,e,n){l.w(t)&&(n=e,e=t,t=[]);var i=[];return this.each(t,(function(){i.push(e&&e.apply(this,arguments))}),n=n||this),i},l_.prototype.map=function(t,e,n,i){return n=n||i||this,i=o_(Jx(t),this._getStoreDimIndex,this),t=e_(this),t._store=this._store.map(i,n?l.c(e,n):e),t},l_.prototype.modify=function(t,e,n,i){n=n||i||this,i=o_(Jx(t),this._getStoreDimIndex,this),this._store.modify(i,n?l.c(e,n):e)},l_.prototype.downSample=function(t,e,n,i){var o=e_(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),o},l_.prototype.lttbDownSample=function(t,e){var n=e_(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},l_.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},l_.prototype.getItemModel=function(t){var e=this.hostModel;t=this.getRawDataItem(t);return new Xs(t,e,e&&e.ecModel)},l_.prototype.diff=function(t){var e=this;return new Nx(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return Qx(t,e)}),(function(t){return Qx(e,t)}))},l_.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},l_.prototype.setVisual=function(t,e){this._visual=this._visual||{},i_(t)?l.m(this._visual,t):this._visual[t]=e},l_.prototype.getItemVisual=function(t,e){return t=this._itemVisuals[t],t=t&&t[e],null==t?this.getVisual(e):t},l_.prototype.hasItemVisual=function(){return 0<this._itemVisuals.length},l_.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];n=(i=i||(n[t]={}))[e];return null==n&&(n=this.getVisual(e),l.t(n)?n=n.slice():i_(n)&&(n=l.m({},n)),i[e]=n),n},l_.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,i_(e)?l.m(i,e):i[e]=n},l_.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},l_.prototype.setLayout=function(t,e){i_(t)?l.m(this._layout,t):this._layout[t]=e},l_.prototype.getLayout=function(t){return this._layout[t]},l_.prototype.getItemLayout=function(t){return this._itemLayouts[t]},l_.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?l.m(this._itemLayouts[t]||{},e):e},l_.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},l_.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;na(n,this.dataType,t,e),this._graphicEls[t]=e},l_.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},l_.prototype.eachItemGraphicEl=function(t,e){l.k(this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},l_.prototype.cloneShallow=function(t){return t=t||new l_(this._schema||o_(this.dimensions,this._getDimInfo,this),this.hostModel),t_(t,this),t._store=this._store,t},l_.prototype.wrapMethod=function(t,e){var n=this[t];l.w(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(l.S(arguments)))})},l_.internalField=(Kx=function(t){var e=t._invertedIndicesMap;l.k(e,(function(n,i){var o=t._dimInfos[i],r=o.ordinalMeta,a=t._store;if(r){n=e[i]=new r_(r.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(o.storeDimIndex,s)]=s}}))},$x=function(t,e,n){return Ii(t._getCategory(e,n),null)},Qx=function(t,e){var n=t._idList[e];return null==(n=null==n&&null!=t._idDimIdx?$x(t,t._idDimIdx,e):n)?"e\0\0"+e:n},Jx=function(t){return l.t(t)?t:null!=t?[t]:[]},e_=function(t){var e=new l_(t._schema||o_(t.dimensions,t._getDimInfo,t),t.hostModel);return t_(e,t),e},t_=function(t,e){l.k(a_.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,l.k(s_,(function(n){t[n]=l.d(e[n])})),t._calculationInfo=l.m({},e._calculationInfo)},void(n_=function(t,e){var n=t._nameList,i=t._idList,o=t._nameDimIdx,r=t._idDimIdx,a=n[e],s=i[e];null==a&&null!=o&&(n[e]=a=$x(t,o,e)),null==s&&null!=r&&(i[e]=s=$x(t,r,e)),null==s&&null!=a&&(s=a,1<(o=(n=t._nameRepeatCount)[a]=(n[a]||0)+1)&&(s+="__ec__"+o),i[e]=s)}));var u_=l_;function c_(t,e){wc(t)||(t=Mc(t));for(var n,i,o=(e=e||{}).coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],a=Object(l.f)(),s=[],u=(c=t,n=o,d=e.dimensionsCount,i=Math.max(c.dimensionsDetectedCount||1,n.length,r.length,d||0),Object(l.k)(n,(function(t){Object(l.A)(t)&&(t=t.dimsDef)&&(i=Math.max(i,t.length))})),i),c=e.canOmitUnusedDimensions&&30<u,h=r===t.dimensionsDefine,p=h?qx(t):Zx(r),d=e.encodeDefine,f=(!d&&e.encodeDefaulter&&(d=e.encodeDefaulter(t,u)),Object(l.f)(d)),g=new Ah(u),y=0;y<g.length;y++)g[y]=-1;function m(t){var e,n,i,o=g[t];return o<0?(e=r[t],e=Object(l.A)(e)?e:{name:e},n=new Hx,null!=(i=e.name)&&null!=p.get(i)&&(n.name=n.displayName=i),null!=e.type&&(n.type=e.type),null!=e.displayName&&(n.displayName=e.displayName),i=s.length,g[t]=i,n.storeDimIndex=t,s.push(n),n):s[o]}if(!c)for(y=0;y<u;y++)m(y);f.each((function(t,e){var n;t=vi(t).slice();1===t.length&&!Object(l.C)(t[0])&&t[0]<0?f.set(e,!1):(n=f.set(e,[]),Object(l.k)(t,(function(t,i){t=Object(l.C)(t)?p.get(t):t,null!=t&&t<u&&x(m(n[i]=t),e,i)})))}));var v=0;function x(t,e,n){null!=hu.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,a.set(e,!0))}Object(l.k)(o,(function(t){Object(l.C)(t)?(o=t,i={}):(o=(i=t).name,t=i.ordinalMeta,i.ordinalMeta=null,(i=Object(l.m)({},i)).ordinalMeta=t,e=i.dimsDef,n=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null);var e,n,i,o,r=f.get(o);if(!1!==r){if(!(r=vi(r)).length)for(var a=0;a<(e&&e.length||1);a++){for(;v<u&&null!=m(v).coordDim;)v++;v<u&&r.push(v++)}Object(l.k)(r,(function(t,r){t=m(t),h&&null!=i.type&&(t.type=i.type),x(Object(l.i)(t,i),o,r),null==t.name&&e&&(r=e[r],Object(l.A)(r)||(r={name:r}),t.name=t.displayName=r.name,t.defaultTooltip=r.defaultTooltip),n&&Object(l.i)(t.otherDims,n)}))}}));var _=e.generateCoord,b=null!=(w=e.generateCoordCount),w=_?w||1:0,S=_||"value";function M(t){null==t.name&&(t.name=t.coordDim)}if(c)Object(l.k)(s,(function(t){M(t)})),s.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var I=0;I<u;I++){var O=m(I);null==O.coordDim&&(O.coordDim=function(t,e,n){var i=e.data;if(n||i.hasOwnProperty(t)){for(var o=0;i.hasOwnProperty(t+o);)o++;t+=o}return e.set(t,!0),t}(S,a,b),O.coordDimIndex=0,(!_||w<=0)&&(O.isExtraCoord=!0),w--),M(O),null!=O.type||Iu(t,I)!==_u.Must&&(!O.isExtraCoord||null==O.otherDims.itemName&&null==O.otherDims.seriesName)||(O.type="ordinal")}for(var T=s,C=Object(l.f)(),A=0;A<T.length;A++){var k=T[A],D=k.name,L=C.get(D)||0;0<L&&(k.name=D+(L-1)),L++,C.set(D,L)}return new Yx({source:t,dimensions:s,fullDimensionCount:u,dimensionOmitted:c})}var h_=function(t){this.coordSysDims=[],this.axisMap=Object(l.f)(),this.categoryAxisMap=Object(l.f)(),this.coordSysName=t},p_={cartesian2d:function(t,e,n,i){var o=t.getReferringComponents("xAxis",ji).models[0];t=t.getReferringComponents("yAxis",ji).models[0];e.coordSysDims=["x","y"],n.set("x",o),n.set("y",t),d_(o)&&(i.set("x",o),e.firstCategoryDimIndex=0),d_(t)&&(i.set("y",t),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){t=t.getReferringComponents("singleAxis",ji).models[0],e.coordSysDims=["single"],n.set("single",t),d_(t)&&(i.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){t=t.getReferringComponents("polar",ji).models[0];var o=t.findAxisModel("radiusAxis");t=t.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",t),d_(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),d_(t)&&(i.set("angle",t),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var o=t.ecModel,r=(t=o.getComponent("parallel",t.get("parallelIndex")),e.coordSysDims=t.dimensions.slice());Object(l.k)(t.parallelAxisIndex,(function(t,a){t=o.getComponent("parallelAxis",t);var s=r[a];n.set(s,t),d_(t)&&(i.set(s,t),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=a))}))}};function d_(t){return"category"===t.get("type")}function f_(t,e,n){var i,o,r,a,s,u,c,h,p,d=(n=n||{}).byIndex,f=n.stackedCoordDimension,g=(Xx(e.schema)?(o=e.schema,i=o.dimensions,r=e.store):i=e,!(!t||!t.get("stack")));return Object(l.k)(i,(function(t,e){Object(l.C)(t)&&(i[e]=t={name:t}),g&&!t.isExtraCoord&&(d||a||!t.ordinalMeta||(a=t),s||"ordinal"===t.type||"time"===t.type||f&&f!==t.coordDim||(s=t))})),!s||d||a||(d=!0),s&&(u="__\0ecstackresult_"+t.id,c="__\0ecstackedover_"+t.id,a&&(a.createInvertedIndices=!0),h=s.coordDim,n=s.type,p=0,Object(l.k)(i,(function(t){t.coordDim===h&&p++})),e={name:u,coordDim:h,coordDimIndex:p,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},t={name:c,coordDim:c,coordDimIndex:p+1,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1},o?(r&&(e.storeDimIndex=r.ensureCalculationDimension(c,n),t.storeDimIndex=r.ensureCalculationDimension(u,n)),o.appendCalculationDimension(e),o.appendCalculationDimension(t)):(i.push(e),i.push(t))),{stackedDimension:s&&s.name,stackedByDimension:a&&a.name,isStackedByIndex:d,stackedOverDimension:c,stackResultDimension:u}}function g_(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function y_(t,e){return g_(t,e)?t.getCalculationInfo("stackResultDimension"):e}var m_,v_=function(t,e,n){n=n||{};var i,o,r,a,s,u,c=e.getSourceManager(),h=!1,p=(t=(t?(h=!0,i=Mc(t)):h=(i=c.getSource()).sourceFormat===pu,function(t){var e=t.get("coordinateSystem"),n=new h_(e);if(e=p_[e])return e(t,n,n.axisMap,n.categoryAxisMap),n}(e)),o=t,p=(p=e).get("coordinateSystem"),p=qu.get(p),d=(d=o&&o.coordSysDims?l.H(o.coordSysDims,(function(t){var e={name:t};t=o.axisMap.get(t);return t&&(t=t.get("type"),e.type=Fx(t)),e})):d)||p&&(p.getDimensionsInfo?p.getDimensionsInfo():p.dimensions.slice())||["x","y"]),d=n.useEncodeDefaulter,f=(d=l.w(d)?d:d?l.h(wu,p,e):null,p=c_(i,{coordDimensions:p,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:d,canOmitUnusedDimensions:!h}),d=p.dimensions,r=n.createInvertedIndices,(a=t)&&l.k(d,(function(t,e){var n=t.coordDim;n=a.categoryAxisMap.get(n);n&&(null==s&&(s=e),t.ordinalMeta=n.getOrdinalMeta(),r&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(u=!0)})),u||null==s||(d[s].otherDims.itemName=0),s);n=h?null:c.getSharedDataStore(p),t=f_(e,{schema:p,store:n}),(d=new u_(p,e)).setCalculationInfo(t),c=null!=f&&function(t){if(t.sourceFormat===pu)return t=function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]),!l.t(bi(t))}(i)?function(t,e,n,i){return i===f?n:this.defaultDimValueGetter(t,e,n,i)}:null;return d.hasItemOption=!1,d.initData(h?i:n,null,c),d};function x_(){var t=null!==m_&&m_.apply(this,arguments)||this;return t.type=x_.type,t.hasSymbolVisual=!0,t}a(x_,m_=mp),x_.prototype.getInitialData=function(t){return v_(null,this,{useEncodeDefaulter:!0})},x_.prototype.getLegendIcon=function(t){var e=new Gn,n=Yg("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1),i=(n=(e.add(n),n.setStyle(t.lineStyle),this.getData().getVisual("symbol")),this.getData().getVisual("symbolRotate")),o=(n="none"===n?"circle":n,.8*t.itemHeight);o=Yg(n,(t.itemWidth-o)/2,(t.itemHeight-o)/2,o,o,t.itemStyle.fill),e.add(o),o.setStyle(t.itemStyle),i="inherit"===t.iconRotate?i:t.iconRotate||0;return o.rotation=i*Math.PI/180,o.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<n.indexOf("empty")&&(o.style.stroke=o.style.fill,o.style.fill="#fff",o.style.lineWidth=2),e},x_.type="series.line",x_.dependencies=["grid","polar"],x_.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 __,b_=x_;function w_(t,e){var n,i=t.mapDimensionsAll("defaultedLabel"),o=i.length;if(1===o)return null!=(n=Yc(t,e,i[0]))?n+"":null;if(o){for(var r=[],a=0;a<i.length;a++)r.push(Yc(t,e,i[a]));return r.join(" ")}}function S_(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!Object(l.t)(e))return e+"";for(var i=[],o=0;o<n.length;o++){var r=t.getDimensionIndex(n[o]);0<=r&&i.push(e[r])}return i.join(" ")}function M_(t,e,n,i){var o=__.call(this)||this;return o.updateData(t,e,n,i),o}function I_(t,e){this.parent.drift(t,e)}a(M_,__=Gn),M_.prototype._createSymbol=function(t,e,n,i,o){this.removeAll(),o=Yg(t,-1,-1,2,2,null,o),o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=I_,this._symbolType=t,this.add(o)},M_.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},M_.prototype.getSymbolType=function(){return this._symbolType},M_.prototype.getSymbolPath=function(){return this.childAt(0)},M_.prototype.highlight=function(){Ba(this.childAt(0))},M_.prototype.downplay=function(){Va(this.childAt(0))},M_.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},M_.prototype.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},M_.prototype.updateData=function(t,e,n,i){this.silent=!1;var o,r,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,u=M_.getSymbolSize(t,e),c=s!==this._symbolType,h=i&&i.disableAnimation;c?(o=t.getItemVisual(e,"symbolKeepAspect"),this._createSymbol(s,t,e,u,o)):((r=this.childAt(0)).silent=!1,a={scaleX:u[0]/2,scaleY:u[1]/2},h?r.attr(a):cs(r,a,l,e),ys(r)),this._updateCommon(t,e,u,n,i),c&&(r=this.childAt(0),h||(a={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:r.style.opacity}},r.scaleX=r.scaleY=0,r.style.opacity=0,hs(r,a,l,e))),h&&this.childAt(0).stopAnimation("leave"),this._seriesModel=l},M_.prototype._updateCommon=function(t,e,n,i,o){var r,a,s,u,c,h,p,d,f=this.childAt(0),g=t.hostModel,y=(i&&(r=i.emphasisItemStyle,s=i.blurItemStyle,a=i.selectItemStyle,u=i.focus,c=i.blurScope,p=i.labelStatesModels,d=i.hoverScale,m=i.cursorStyle,h=i.emphasisDisabled),i&&!t.hasItemOption||(r=(y=(i=i&&i.itemModel?i.itemModel:t.getItemModel(e)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),a=i.getModel(["select","itemStyle"]).getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),u=y.get("focus"),c=y.get("blurScope"),h=y.get("disabled"),p=bs(i),d=y.getShallow("scale"),m=i.getShallow("cursor")),t.getItemVisual(e,"symbolRotate")),m=(i=(f.attr("rotation",(y||0)*Math.PI/180||0),Xg(t.getItemVisual(e,"symbolOffset"),n)),y=(i&&(f.x=i[0],f.y=i[1]),m&&f.attr("cursor",m),t.getItemVisual(e,"style")),i=y.fill,f instanceof Ar?(m=f.style,f.useStyle(Object(l.m)({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},y))):(f.__isEmptyBrush?f.useStyle(Object(l.m)({},y)):f.useStyle(y),f.style.decal=null,f.setColor(i,o&&o.symbolInnerColor),f.style.strokeNoScale=!0),t.getItemVisual(e,"liftZ")),v=this._z2,x=(null!=m?null==v&&(this._z2=f.z2,f.z2+=m):null!=v&&(f.z2=v,this._z2=null),o&&o.useNameLabel);_s(f,p,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return x?t.getName(e):w_(t,e)},inheritColor:i,defaultOpacity:y.opacity}),this._sizeX=n[0]/2,this._sizeY=n[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),$a(this,u,c,h)},M_.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},M_.prototype.fadeOut=function(t,e){var n=this.childAt(0),i=this._seriesModel,o=oa(this).dataIndex,r=e&&e.animation;this.silent=n.silent=!0,e&&e.fadeLabel?(e=n.getTextContent())&&ds(e,{style:{opacity:0}},i,{dataIndex:o,removeOpt:r,cb:function(){n.removeTextContent()}}):n.removeTextContent(),ds(n,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:t,removeOpt:r})},M_.getSymbolSize=function(t,e){return Ug(t.getItemVisual(e,"symbolSize"))};var O_=M_;function T_(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&(!i.isIgnore||!i.isIgnore(n))&&(!i.clipShape||i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function C_(t){return(t=null==t||Object(l.A)(t)?t:{isIgnore:t})||{}}function A_(t){t=t.hostModel;var 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:bs(t),cursorStyle:t.get("cursor")}}function k_(t){this.group=new Gn,this._SymbolCtor=t||O_}k_.prototype.updateData=function(t,e){this._progressiveEls=null,e=C_(e);var n=this.group,i=t.hostModel,o=this._data,r=this._SymbolCtor,a=e.disableAnimation,s=A_(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};o||n.removeAll(),t.diff(o).add((function(i){var o,a=u(i);T_(t,a,i,e)&&((o=new r(t,i,s,l)).setPosition(a),t.setItemGraphicEl(i,o),n.add(o))})).update((function(c,h){h=o.getItemGraphicEl(h);var p,d,f=u(c);T_(t,f,c,e)?(p=t.getItemVisual(c,"symbol")||"circle",d=h&&h.getSymbolType&&h.getSymbolType(),!h||d&&d!==p?(n.remove(h),(h=new r(t,c,s,l)).setPosition(f)):(h.updateData(t,c,s,l),d={x:f[0],y:f[1]},a?h.attr(d):cs(h,d,i)),n.add(h),t.setItemGraphicEl(c,h)):n.remove(h)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}))})).execute(),this._getSymbolPoint=u,this._data=t},k_.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){n=t._getSymbolPoint(n),e.setPosition(n),e.markRedraw()}))},k_.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=A_(t),this._data=null,this.group.removeAll()},k_.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=C_(n);for(var o=t.start;o<t.end;o++){var r,a=e.getItemLayout(o);T_(e,a,o,n)&&((r=new this._SymbolCtor(e,o,this._seriesScope)).traverse(i),r.setPosition(a),this.group.add(r),e.setItemGraphicEl(o,r),this._progressiveEls.push(r))}},k_.prototype.eachRendered=function(t){Ef(this._progressiveEls||this.group,t)},k_.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}))})):e.removeAll()};var D_=k_;function L_(t,e,n){var i=t.getBaseAxis(),o=t.getOtherAxis(i),r=(n=function(t,e){var n=0;t=t.scale.getExtent();return"start"===e?n=t[0]:"end"===e?n=t[1]:0<t[0]?n=t[0]:t[1]<0&&(n=t[1]),n}(o,n),i=i.dim,o=o.dim,e.mapDimension(o)),a=e.mapDimension(i),s="x"===o||"radius"===o?1:0,u=(t=Object(l.H)(t.dimensions,(function(t){return e.mapDimension(t)})),!1),c=e.getCalculationInfo("stackResultDimension");return g_(e,t[0])&&(u=!0,t[0]=c),g_(e,t[1])&&(u=!0,t[1]=c),{dataDimsForPoint:t,valueStart:n,valueAxisDim:o,baseAxisDim:i,stacked:!!u,valueDim:r,baseDim:a,baseDataOffset:s,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function P_(t,e,n,i){var o=NaN,r=(t.stacked&&(o=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(o)&&(o=t.valueStart),t.baseDataOffset),a=[];return a[r]=n.get(t.baseDim,i),a[1-r]=o,e.dataToPoint(a)}var j_="undefined"!=typeof Float32Array,R_=j_?Float32Array:Array;function N_(t){return Object(l.t)(t)?j_?new Float32Array(t):t:new R_(t)}var E_=Math.min,z_=Math.max;function B_(t,e){return isNaN(t)||isNaN(e)}function V_(t,e,n,i,o,r,a,s,l){for(var u,c,h,p,d=n,f=0;f<i;f++){var g=e[2*d],y=e[2*d+1];if(o<=d||d<0)break;if(B_(g,y)){if(l){d+=r;continue}break}if(d===n)t[0<r?"moveTo":"lineTo"](g,y),h=g,p=y;else{var m=g-u,v=y-c;if(m*m+v*v<.5){d+=r;continue}if(0<a){for(var x=d+r,_=e[2*x],b=e[2*x+1];_===g&&b===y&&f<i;)f++,d+=r,_=e[2*(x+=r)],b=e[2*x+1],g=e[2*d],y=e[2*d+1];var w=f+1;if(l)for(;B_(_,b)&&w<i;)w++,_=e[2*(x+=r)],b=e[2*x+1];m=0,v=0;var S,M,I,O,T,C,A,k,D,L=void 0,P=void 0;i<=w||B_(_,b)?(A=g,k=y):(m=_-u,v=b-c,S=g-u,M=_-g,I=y-c,O=b-y,C=T=void 0,P="x"===s?(A=g-(D=0<m?1:-1)*(T=Math.abs(S))*a,k=y,L=g+D*(C=Math.abs(M))*a,y):"y"===s?(k=y-(D=0<v?1:-1)*(T=Math.abs(I))*a,L=A=g,y+D*(C=Math.abs(O))*a):(T=Math.sqrt(S*S+I*I),A=g-m*a*(1-(S=(C=Math.sqrt(M*M+O*O))/(C+T))),k=y-v*a*(1-S),P=y+v*a*S,L=E_(L=g+m*a*S,z_(_,g)),P=E_(P,z_(b,y)),L=z_(L,E_(_,g)),k=y-(v=(P=z_(P,E_(b,y)))-y)*T/C,A=E_(A=g-(m=L-g)*T/C,z_(u,g)),k=E_(k,z_(c,y)),L=g+(m=g-(A=z_(A,E_(u,g))))*C/T,y+(v=y-(k=z_(k,E_(c,y))))*C/T)),t.bezierCurveTo(h,p,A,k,g,y),h=L,p=P}else t.lineTo(g,y)}u=g,c=y,d+=r}return f}var F_,H_=function(){this.smooth=0,this.smoothConstraint=!0},G_=(a(W_,F_=br),W_.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},W_.prototype.getDefaultShape=function(){return new H_},W_.prototype.buildPath=function(t,e){var n=e.points,i=0,o=n.length/2;if(e.connectNulls){for(;0<o&&B_(n[2*o-2],n[2*o-1]);o--);for(;i<o&&B_(n[2*i],n[2*i+1]);i++);}for(;i<o;)i+=V_(t,n,i,o,o,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},W_.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,o=this.path.data,r=tr.CMD,a="x"===e,s=[],l=0;l<o.length;){var u=void 0,c=void 0;switch(o[l++]){case r.M:n=o[l++],i=o[l++];break;case r.L:var h;u=o[l++],c=o[l++];if((h=a?(t-n)/(u-n):(t-i)/(c-i))<=1&&0<=h)return v=a?(c-i)*h+i:(u-n)*h+n,a?[t,v]:[v,t];n=u,i=c;break;case r.C:u=o[l++],c=o[l++];var p=o[l++],d=o[l++],f=o[l++],g=o[l++],y=a?Ft(n,u,p,f,t,s):Ft(i,c,d,g,t,s);if(0<y)for(var m=0;m<y;m++){var v,x=s[m];if(x<=1&&0<=x)return v=a?Bt(i,c,d,g,x):Bt(n,u,p,f,x),a?[t,v]:[v,t]}n=f,i=g}}},W_);function W_(t){return t=F_.call(this,t)||this,t.type="ec-polyline",t}a(X_,Y_=H_);var Y_,U_=X_;function X_(){return null!==Y_&&Y_.apply(this,arguments)||this}a(Q_,Z_=br),Q_.prototype.getDefaultShape=function(){return new U_},Q_.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,o=0,r=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;0<r&&B_(n[2*r-2],n[2*r-1]);r--);for(;o<r&&B_(n[2*o],n[2*o+1]);o++);}for(;o<r;){var s=V_(t,n,o,r,r,1,e.smooth,a,e.connectNulls);V_(t,i,o+s-1,s,r,-1,e.stackedOnSmooth,a,e.connectNulls),o+=s+1,t.closePath()}};var Z_,q_,K_=Q_;function Q_(t){return t=Z_.call(this,t)||this,t.type="ec-polygon",t}function $_(t,e,n,i,o){var r=t.getArea(),a=r.x,s=r.y,u=r.width,c=(r=r.height,n.get(["lineStyle","width"])||2),h=(a-=c/2,s-=c/2,u+=c,r+=c,a=Math.floor(a),u=Math.round(u),new Br({shape:{x:a,y:s,width:u,height:r}}));return e&&(e=(c=t.getBaseAxis()).isHorizontal(),t=c.inverse,e?(t&&(h.shape.x+=u),h.shape.width=0):(t||(h.shape.y+=r),h.shape.height=0),c=Object(l.w)(o)?function(t){o(t,h)}:null,hs(h,{shape:{width:u,height:r,x:a,y:s}},n,null,i,c)),h}function J_(t,e,n){var i=t.getArea(),o=$n(i.r0,1),r=$n(i.r,1),a=new fd({shape:{cx:$n(t.cx,1),cy:$n(t.cy,1),r0:o,r:r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=o,hs(a,{shape:{endAngle:i.endAngle,r:r}},n)),a}function tb(t,e,n,i,o){return t?"polar"===t.type?J_(t,e,n):"cartesian2d"===t.type?$_(t,e,n,i,o):null:null}function eb(t,e){return t.type===e}function nb(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return 1}}function ib(t){for(var e=1/0,n=1/0,i=-1/0,o=-1/0,r=0;r<t.length;){var a=t[r++],s=t[r++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),o=Math.max(s,o))}return[[e,n],[i,o]]}function ob(t,e){t=ib(t);var n=t[0],i=(t=t[1],e=ib(e),e[0]);e=e[1];return Math.max(Math.abs(n[0]-i[0]),Math.abs(n[1]-i[1]),Math.abs(t[0]-e[0]),Math.abs(t[1]-e[1]))}function rb(t){return l.z(t)?t:t?.5:0}function ab(t,e,n){e=e.getBaseAxis();for(var i="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]),n){case"end":a[i]=l[i],a[1-i]=s[1-i],o.push(a[0],a[1]);break;case"middle":var u=(s[i]+l[i])/2,c=[];a[i]=c[i]=u,a[1-i]=s[1-i],c[1-i]=l[1-i],o.push(a[0],a[1]),o.push(c[0],c[1]);break;default:a[i]=s[i],a[1-i]=l[1-i],o.push(a[0],a[1])}return o.push(t[r++],t[r++]),o}function sb(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var o,r=i.length-1;0<=r;r--){var a,s=t.getDimensionInfo(i[r].dimension);if("x"===(a=s&&s.coordDim)||"y"===a){o=i[r];break}}if(o){var u=e.getAxis(a),c=(e=l.H(o.stops,(function(t){return{coord:u.toGlobalCoord(u.dataToCoord(t.value)),color:t.color}})),e.length),h=o.outerColors.slice(),p=(n=(c&&e[0].coord>e[c-1].coord&&(e.reverse(),h.reverse()),function(t,e){var n,i,o=[],r=t.length;function a(t,e,n){var i=t.coord;i=(n-i)/(e.coord-i);return{coord:n,color:Object(te.b)(i,[t.color,e.color])}}for(var s=0;s<r;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(e<u){i?o.push(a(i,l,e)):n&&o.push(a(n,l,0),a(n,l,e));break}n&&(o.push(a(n,l,0)),n=null),o.push(l),i=l}}return o}(e,"x"===a?n.getWidth():n.getHeight())),n.length);if(!p&&c)return e[0].coord<0?h[1]||e[c-1].color:h[0]||e[0].color;var d=n[0].coord-10,f=(c=n[p-1].coord+10,c-d);return f<.001?"transparent":(l.k(n,(function(t){t.offset=(t.coord-d)/f})),n.push({offset:p?n[p-1].offset:.5,color:h[1]||"transparent"}),n.unshift({offset:p?n[0].offset:.5,color:h[0]||"transparent"}),e=new qd(0,0,0,0,n,!0),e[a]=d,e[a+"2"]=c,e)}}}function lb(t,e,n){t=t.get("showAllSymbol");var i="auto"===t;if(!t||i){var o,r,a=n.getAxesByScale("ordinal")[0];if(a&&(!i||!function(t,e){for(var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count(),o=(isNaN(i)&&(i=0),e.count()),r=Math.max(1,Math.round(o/5)),a=0;a<o;a+=r)if(1.5*O_.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return;return 1}(a,e)))return o=e.mapDimension(a.dim),r={},l.k(a.getViewLabels(),(function(t){t=a.scale.getRawOrdinalNumber(t.tickValue),r[t]=1})),function(t){return!r.hasOwnProperty(e.get(o,t))}}}function ub(t){for(var e,n,i=t.length/2;0<i&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}function cb(t,e){return[t[2*e],t[2*e+1]]}function hb(t){if(t.get(["endLabel","show"]))return 1;for(var e=0;e<pa.length;e++)if(t.get([pa[e],"endLabel","show"]))return 1}function pb(t,e,n,i){var o,r,a,s,l,u,c,h,p;return eb(e,"cartesian2d")?(o=i.getModel("endLabel"),r=o.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=hb(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,r,o,e)}:null,u=e.getBaseAxis().isHorizontal(),c=$_(e,n,i,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l),i.get("clip",!0)||(h=c.shape,p=Math.max(h.width,h.height),u?(h.y-=p,h.height+=2*p):(h.x-=p,h.width+=2*p)),l&&l(1,c),c):J_(e,n,i)}function db(){return null!==q_&&q_.apply(this,arguments)||this}a(db,q_=Uf),db.prototype.init=function(){var t=new Gn,e=new D_;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},db.prototype.render=function(t,e,n){function i(t){o._changePolyState(t)}var o=this,r=t.coordinateSystem,a=this.group,s=t.getData(),u=t.getModel("lineStyle"),c=t.getModel("areaStyle"),h=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"),x=!c.isEmpty(),_=c.get("origin"),b=L_(r,s,_),w=(b=x&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),o=N_(2*i),r=0;r<i;r++){var a=P_(n,t,e,r);o[2*r]=a[0],o[2*r+1]=a[1]}return o}(r,s,b),t.get("showSymbol")),S=w&&!p&&lb(t,s,r),M=this._data,I=(M&&M.eachItemGraphicEl((function(t,e){t.__temp&&(a.remove(t),M.setItemGraphicEl(e,null))})),w||f.remove(),a.add(m),!p&&t.get("step")),O=(r&&r.getArea&&t.get("clip",!0)&&(null!=(T=r.getArea()).width?(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2):T.r0&&(T.r0-=.5,T.r+=.5)),this._clipShapeForSymbol=T,sb(s,r,n)||s.getVisual("style")[s.getVisual("drawType")]),T=(d=(g&&d.type===r.type&&I===this._step?(x&&!y?y=this._newPolygon(h,b):y&&!x&&(m.remove(y),y=this._polygon=null),p||this._initOrUpdateEndLabel(t,r,Hl(O)),(d=m.getClipPath())?hs(d,{shape:pb(this,r,!1,t).shape},t):m.setClipPath(pb(this,r,!0,t)),w&&f.updateData(s,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(t){return[h[2*t],h[2*t+1]]}}),nb(this._stackedOnPoints,b)&&nb(this._points,h)||(v?this._doUpdateAnimation(s,b,r,n,I,_):(I&&(h=ab(h,r,I),b=b&&ab(b,r,I)),g.setShape({points:h}),y&&y.setShape({points:h,stackedOnPoints:b})))):(w&&f.updateData(s,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(t){return[h[2*t],h[2*t+1]]}}),v&&this._initSymbolLabelAnimation(s,r,T),I&&(h=ab(h,r,I),b=b&&ab(b,r,I)),g=this._newPolyline(h),x&&(y=this._newPolygon(h,b)),p||this._initOrUpdateEndLabel(t,r,Hl(O)),m.setClipPath(pb(this,r,!0,t))),t.getModel("emphasis")),n=d.get("focus"),w=d.get("blurScope"),f=d.get("disabled"),S=(g.useStyle(l.i(u.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"})),ns(g,t,"lineStyle"),0<g.style.lineWidth&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(g.getState("emphasis").style.lineWidth=+g.style.lineWidth+1),oa(g).seriesIndex=t.seriesIndex,$a(g,n,w,f),rb(t.get("smooth"))),v=t.get("smoothMonotone"),t.get("connectNulls"));g.setShape({smooth:S,smoothMonotone:v,connectNulls:T}),y&&(x=s.getCalculationInfo("stackedOnSeries"),p=0,y.useStyle(l.i(c.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),x&&(p=rb(x.get("smooth"))),y.setShape({smooth:S,stackedOnSmooth:p,smoothMonotone:v,connectNulls:T}),ns(y,t,"areaStyle"),oa(y).seriesIndex=t.seriesIndex,$a(y,n,w,f)),s.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=i)})),this._polyline.onHoverStateChange=i,this._data=s,this._coordSys=r,this._stackedOnPoints=b,this._points=h,this._step=I,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,g),y&&this.packEventData(t,y))},db.prototype.packEventData=function(t,e){oa(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},db.prototype.highlight=function(t,e,n,i){var o=t.getData(),r=Ai(o,i);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,u=t.get("zlevel"),c=t.get("z");s=((l=new O_(o,r)).x=s,l.y=a,l.setZ(u,c),l.getSymbolPath().getTextContent());s&&(s.zlevel=u,s.z=c,s.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(r,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else Uf.prototype.highlight.call(this,t,e,n,i)},db.prototype.downplay=function(t,e,n,i){var o,r=t.getData(),a=Ai(r,i);this._changePolyState("normal"),null!=a&&0<=a?(o=r.getItemGraphicEl(a))&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay()):Uf.prototype.downplay.call(this,t,e,n,i)},db.prototype._changePolyState=function(t){var e=this._polygon;Pa(this._polyline,t),e&&Pa(e,t)},db.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new G_({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e},db.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new K_({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n},db.prototype._initSymbolLabelAnimation=function(t,e,n){var i,o,r=e.getBaseAxis(),a=r.inverse,s=(r=("cartesian2d"===e.type?(i=r.isHorizontal(),o=!1):"polar"===e.type&&(i="angle"===r.dim,o=!0),t.hostModel),r.get("animationDuration")),u=(l.w(s)&&(s=s(null)),r.get("animationDelay")||0),c=l.w(u)?u(null):u;t.eachItemGraphicEl((function(t,r){var h,p,d,f,g,y=t;y&&(f=[t.x,t.y],g=p=h=void 0,n&&(g=o?(d=n,f=e.pointToCoord(f),i?(h=d.startAngle,p=d.endAngle,-f[1]/180*Math.PI):(h=d.r0,p=d.r,f[0])):i?(h=n.x,p=n.x+n.width,t.x):(h=n.y+n.height,p=n.y,t.y)),d=p===h?0:(g-h)/(p-h),a&&(d=1-d),f=l.w(u)?u(r):s*d+c,g=(t=y.getSymbolPath()).getTextContent(),y.attr({scaleX:0,scaleY:0}),y.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:f}),g&&g.animateFrom({style:{opacity:0}},{duration:300,delay:f}),t.disableLabelAnimation=!0)}))},db.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(hb(t)){var o=t.getData(),r=this._polyline,a=o.getLayout("points");if(!a)return r.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s=(s||((s=this._endLabel=new ia({z2:200})).ignoreClip=!0,r.setTextContent(this._endLabel),r.disableLabelAnimation=!0),ub(a));0<=s&&(_s(r,bs(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:s,defaultText:function(t,e,n){return null!=n?S_(o,n):w_(o,t)},enableTextSetter:!0},(a=i,t=(n=(n=e).getBaseAxis()).isHorizontal(),n=n.inverse,s=t?n?"right":"left":"center",t=t?"middle":n?"top":"bottom",{normal:{align:a.get("align")||s,verticalAlign:a.get("verticalAlign")||t}})),r.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},db.prototype._endLabelOnDuring=function(t,e,n,i,o,r,a){var s,l,u,c,h,p,d,f,g,y,m=this._endLabel,v=this._polyline;m&&(t<1&&null==i.originalX&&(i.originalX=m.x,i.originalY=m.y),s=n.getLayout("points"),g=(l=n.hostModel).get("connectNulls"),u=r.get("precision"),r=r.get("distance")||0,h=(a=a.getBaseAxis()).isHorizontal(),a=a.inverse,e=e.shape,c=(h?r:0)*(a?-1:1),r=(h?0:-r)*(a?-1:1),d=void 0,1<=(f=(p=(h=function(t,e,n){for(var i,o,r=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<r;u++)if(o=t[2*u+a],!isNaN(o)&&!isNaN(t[2*u+1-a]))if(0===u)i=o;else{if(i<=e&&e<=o||e<=i&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}(s,a=a?h?e.x:e.y+e.height:h?e.x+e.width:e.y,e=h?"x":"y")).range)[1]-p[0])?(1<f&&!g?(y=cb(s,p[0]),m.attr({x:y[0]+c,y:y[1]+r}),o&&(d=l.getRawValue(p[0]))):((y=v.getPointOn(a,e))&&m.attr({x:y[0]+c,y:y[1]+r}),f=l.getRawValue(p[0]),g=l.getRawValue(p[1]),o&&(d=Bi(n,u,f,g,h.t))),i.lastFrameIndex=p[0]):(y=cb(s,v=1===t||0<i.lastFrameIndex?p[0]:0),o&&(d=l.getRawValue(v)),m.attr({x:y[0]+c,y:y[1]+r})),o&&As(m).setLabelText(d))},db.prototype._doUpdateAnimation=function(t,e,n,i,o,r){var a=this._polyline,s=this._polygon,l=t.hostModel,u=(e=function(t,e,n,i,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=[],u=[],c=[],h=[],p=[],d=[],f=[],g=L_(o,e,r),y=t.getLayout("points")||[],m=e.getLayout("points")||[],v=0;v<s.length;v++){var x=s[v],_=!0,b=void 0;switch(x.cmd){case"=":var w=2*x.idx,S=(b=2*x.idx1,y[w]),M=y[1+w],I=m[b],O=m[b+1];(isNaN(S)||isNaN(M))&&(S=I,M=O),l.push(S,M),u.push(I,O),c.push(n[w],n[1+w]),h.push(i[b],i[b+1]),f.push(e.getRawIndex(x.idx1));break;case"+":S=x.idx,M=g.dataDimsForPoint,I=o.dataToPoint([e.get(M[0],S),e.get(M[1],S)]),b=2*S,l.push(I[0],I[1]),u.push(m[b],m[b+1]),O=P_(g,o,e,S),c.push(O[0],O[1]),h.push(i[b],i[b+1]),f.push(e.getRawIndex(S));break;case"-":_=!1}_&&(p.push(x),d.push(d.length))}d.sort((function(t,e){return f[t]-f[e]}));var T=N_(r=l.length),C=N_(r),A=N_(r),k=N_(r),D=[];for(v=0;v<d.length;v++){var L=d[v],P=2*v,j=2*L;T[P]=l[j],T[1+P]=l[1+j],C[P]=u[j],C[1+P]=u[1+j],A[P]=c[j],A[1+P]=c[1+j],k[P]=h[j],k[1+P]=h[1+j],D[v]=p[L]}return{current:T,next:C,stackedOnCurrent:A,stackedOnNext:k,status:D}}(this._data,t,this._stackedOnPoints,e,this._coordSys,this._valueOrigin),e.current),c=e.stackedOnCurrent,h=e.next,p=e.stackedOnNext;if(o&&(u=ab(e.current,n,o),c=ab(e.stackedOnCurrent,n,o),h=ab(e.next,n,o),p=ab(e.stackedOnNext,n,o)),3e3<ob(u,h)||s&&3e3<ob(c,p))return a.stopAnimation(),a.setShape({points:h}),void(s&&(s.stopAnimation(),s.setShape({points:h,stackedOnPoints:p})));a.shape.__points=e.current,a.shape.points=u;n={shape:{points:h}};for(var d,f=(e.current!==u&&(n.shape.__points=e.next),a.stopAnimation(),cs(a,n,l),s&&(s.setShape({points:u,stackedOnPoints:c}),s.stopAnimation(),cs(s,{shape:{stackedOnPoints:p}},l),a.shape.points!==s.shape.points&&(s.shape.points=a.shape.points)),[]),g=e.status,y=0;y<g.length;y++)"="===g[y].cmd&&(d=t.getItemGraphicEl(g[y].idx1))&&f.push({el:d,ptIdx:y});a.animators&&a.animators.length&&a.animators[0].during((function(){s&&s.dirtyShape();for(var t=a.shape.__points,e=0;e<f.length;e++){var n=f[e].el,i=2*f[e].ptIdx;n.x=t[i],n.y=t[1+i],n.markRedraw()}}))},db.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},db.type="line";var fb=db;function gb(t,e){return{seriesType:t,plan:_p(),reset:function(t){var n,i,o,r,a,s=t.getData(),u=t.coordinateSystem,c=(t=t.pipelineContext,e||t.large);if(u)return t=Object(l.H)(u.dimensions,(function(t){return s.mapDimension(t)})).slice(0,2),n=t.length,i=s.getCalculationInfo("stackResultDimension"),g_(s,t[0])&&(t[0]=i),g_(s,t[1])&&(t[1]=i),o=s.getStore(),r=s.getDimensionIndex(t[0]),a=s.getDimensionIndex(t[1]),n&&{progress:function(t,e){for(var i=t.end-t.start,s=c&&N_(i*n),l=[],h=[],p=t.start,d=0;p<t.end;p++){var f,g=void 0;g=1===n?(f=o.get(r,p),u.dataToPoint(f,null,h)):(l[0]=o.get(r,p),l[1]=o.get(a,p),u.dataToPoint(l,null,h)),c?(s[d++]=g[0],s[d++]=g[1]):e.setItemLayout(p,g.slice())}c&&e.setLayout("points",s)}}}}}var yb={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},mb=function(t){return Math.round(t.length/2)};function vb(t){return{seriesType:t,reset:function(t,e,n){var i,o=t.getData(),r=t.get("sampling"),a=t.coordinateSystem,s=o.count();10<s&&"cartesian2d"===a.type&&r&&(i=a.getBaseAxis(),a=a.getOtherAxis(i),i=i.getExtent(),n=n.getDevicePixelRatio(),i=Math.abs(i[1]-i[0])*(n||1),1<(n=Math.round(s/i))&&("lttb"===r&&t.setData(o.lttbDownSample(o.mapDimension(a.dim),1/n)),s=void 0,Object(l.C)(r)?s=yb[r]:Object(l.w)(r)&&(s=r),s&&t.setData(o.downSample(o.mapDimension(a.dim),1/n,s,mb))))}}}var xb="__ec_stack_";function _b(t){return t.get("stack")||xb+t.seriesIndex}function bb(t){return t.dim+t.index}function wb(t,e){var n=[];return e.eachSeriesByType(t,(function(t){Tb(t)&&n.push(t)})),n}function Sb(t){var e=function(t){var e,n={},i=(Object(l.k)(t,(function(t){var e=t.coordinateSystem.getBaseAxis();if("time"===e.type||"value"===e.type){t=t.getData();for(var i=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);n[i]?n[i].push(l):n[i]=[l]}}})),{});for(e in n)if(n.hasOwnProperty(e)){var o=n[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))}i[e]=r}}return i}(t),n=[];return Object(l.k)(t,(function(t){var i,o=t.coordinateSystem.getBaseAxis(),r=o.getExtent(),a=(i="category"===o.type?o.getBandWidth():"value"===o.type||"time"===o.type?(i=o.dim+"_"+o.index,i=e[i],a=Math.abs(r[1]-r[0]),s=o.scale.getExtent(),s=Math.abs(s[1]-s[0]),i?a/s*i:a):(s=t.getData(),Math.abs(r[1]-r[0])/s.count()),Qn(t.get("barWidth"),i)),s=(r=Qn(t.get("barMaxWidth"),i),Qn(t.get("barMinWidth")||(Cb(t)?.5:1),i)),l=t.get("barGap"),u=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:a,barMaxWidth:r,barMinWidth:s,barGap:l,barCategoryGap:u,axisKey:bb(o),stackId:_b(t)})})),Mb(n)}function Mb(t){var e={},n=(Object(l.k)(t,(function(t,n){var i=t.axisKey,o=t.bandWidth,r=(o=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o.stacks),a=(i=(e[i]=o,t.stackId),r[i]||o.autoWidthCount++,r[i]=r[i]||{width:0,maxWidth:0},t.barWidth);a&&!r[i].width&&(r[i].width=a,a=Math.min(o.remainedWidth,a),o.remainedWidth-=a),a=t.barMaxWidth,a&&(r[i].maxWidth=a),a=t.barMinWidth,a&&(r[i].minWidth=a),r=t.barGap,null!=r&&(o.gap=r),i=t.barCategoryGap;null!=i&&(o.categoryGap=i)})),{});return Object(l.k)(e,(function(t,e){n[e]={};var i,o=t.stacks,r=t.bandWidth,a=t.categoryGap,s=(null==a&&(s=Object(l.F)(o).length,a=Math.max(35-4*s,15)+"%"),Qn(a,r)),u=Qn(t.gap,1),c=t.remainedWidth,h=t.autoWidthCount,p=(c-s)/(h+(h-1)*u),d=(p=Math.max(p,0),Object(l.k)(o,(function(t){var e,n=t.maxWidth,i=t.minWidth;t.width?(e=t.width,n&&(e=Math.min(e,n)),i&&(e=Math.max(e,i)),t.width=e,c-=e+u*e,h--):(e=p,n&&n<e&&(e=Math.min(n,c)),(e=i&&e<i?i:e)!==p&&(t.width=e,c-=e+u*e,h--))})),p=(c-s)/(h+(h-1)*u),p=Math.max(p,0),0),f=(Object(l.k)(o,(function(t,e){t.width||(t.width=p),d+=(i=t).width*(1+u)})),i&&(d-=i.width*u),-d/2);Object(l.k)(o,(function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:f,width:t.width},f+=t.width*(1+u)}))})),n}function Ib(t,e){t=wb(t,e);var n=Sb(t);Object(l.k)(t,(function(t){var e=t.getData(),i=t.coordinateSystem.getBaseAxis(),o=(t=_b(t),i=n[bb(i)][t],t=i.offset,i.width);e.setLayout({bandWidth:i.bandWidth,offset:t,size:o})}))}function Ob(t){return{seriesType:t,plan:_p(),reset:function(t){var e,n,i,o,r,a,s,l,u,c,h,p,d,f,g,y;if(Tb(t))return e=t.getData(),n=t.coordinateSystem,s=n.getBaseAxis(),i=n.getOtherAxis(s),o=e.getDimensionIndex(e.mapDimension(i.dim)),r=e.getDimensionIndex(e.mapDimension(s.dim)),a=t.get("showBackground",!0),s=e.mapDimension(i.dim),l=e.getCalculationInfo("stackResultDimension"),u=g_(e,s)&&!!e.getCalculationInfo("stackedOnSeries"),c=i.isHorizontal(),h=i.toGlobalCoord(i.dataToCoord("log"===i.type?1:0)),p=Cb(t),d=t.get("barMinHeight")||0,f=l&&e.getDimensionIndex(l),g=e.getLayout("size"),y=e.getLayout("offset"),{progress:function(t,e){for(var i,s=t.count,l=p&&N_(3*s),m=p&&a&&N_(3*s),v=p&&N_(s),x=n.master.getRect(),_=c?x.width:x.height,b=e.getStore(),w=0;null!=(i=t.next());){var S,M=b.get(u?f:o,i),I=b.get(r,i),O=h,T=void 0,C=void(u&&(T=+M-b.get(o,i))),A=void 0,k=void 0,D=void 0;c?(S=n.dataToPoint([M,I]),C=O=u?n.dataToPoint([T,I])[0]:O,A=S[1]+y,k=S[0]-O,D=g,Math.abs(k)<d&&(k=(k<0?-1:1)*d)):(S=n.dataToPoint([I,M]),u&&(O=n.dataToPoint([I,T])[1]),C=S[0]+y,A=O,k=g,D=S[1]-O,Math.abs(D)<d&&(D=(D<=0?-1:1)*d)),p?(l[w]=C,l[w+1]=A,l[w+2]=c?k:D,m&&(m[w]=c?x.x:C,m[w+1]=c?A:x.y,m[w+2]=_),v[i]=i):e.setItemLayout(i,{x:C,y:A,width:k,height:D}),w+=3}p&&e.setLayout({largePoints:l,largeDataIndices:v,largeBackgroundPoints:m,valueAxisHorizontal:c})}}}}}function Tb(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function Cb(t){return t.pipelineContext&&t.pipelineContext.large}a(kb,Ab=mp),kb.prototype.getInitialData=function(t,e){return v_(null,this,{useEncodeDefaulter:!0})},kb.prototype.getMarkerPosition=function(t){var e,n,i=this.coordinateSystem;return i&&i.clampData?(t=i.dataToPoint(i.clampData(t)),e=(n=this.getData()).getLayout("offset"),n=n.getLayout("size"),t[i.getBaseAxis().isHorizontal()?0:1]+=e+n/2,t):[NaN,NaN]},kb.type="series.__base_bar__",kb.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"};var Ab;Ng=kb;function kb(){var t=null!==Ab&&Ab.apply(this,arguments)||this;return t.type=kb.type,t}mp.registerClass(Ng);var Db;Vg=Ng;function Lb(){var t=null!==Db&&Db.apply(this,arguments)||this;return t.type=Lb.type,t}a(Lb,Db=Vg),Lb.prototype.getInitialData=function(){return v_(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},Lb.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},Lb.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return t<e?e:t},Lb.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},Lb.type="series.bar",Lb.dependencies=["grid","polar"],Lb.defaultOption=Ks(Vg.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1});var Pb,jb=Lb,Rb=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0};function Nb(t){return t=Pb.call(this,t)||this,t.type="sausage",t}a(Nb,Pb=br),Nb.prototype.getDefaultShape=function(){return new Rb},Nb.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=Math.max(e.r0||0,0),r=Math.max(e.r,0),a=.5*(r-o),s=o+a,l=e.startAngle,u=e.endAngle,c=(e=e.clockwise,2*Math.PI),h=e?u-l<c:l-u<c,p=(c=(h||(l=u-(e?c:-c)),Math.cos(l)),Math.sin(l)),d=Math.cos(u),f=Math.sin(u);h?(t.moveTo(c*o+n,p*o+i),t.arc(c*s+n,p*s+i,a,-Math.PI+l,l,!e)):t.moveTo(c*r+n,p*r+i),t.arc(n,i,r,l,u,!e),t.arc(d*s+n,f*s+i,a,u-2*Math.PI,u-Math.PI,!e),0!==o&&t.arc(n,i,o,u,l,e)};var Eb=Nb;function zb(t,e,n){return e*Math.sin(t)*(n?-1:1)}function Bb(t,e,n){return e*Math.cos(t)*(n?1:-1)}var Vb=Math.max,Fb=Math.min;a(Gb,Hb=Uf),Gb.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var o=t.get("coordinateSystem");"cartesian2d"!==o&&"polar"!==o||(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},Gb.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},Gb.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},Gb.prototype.eachRendered=function(t){Ef(this._progressiveEls||this.group,t)},Gb.prototype._updateDrawMode=function(t){t=t.pipelineContext.large,null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},Gb.prototype._renderNormal=function(t,e,n,i){var o,r,a,s=this.group,l=t.getData(),u=this._data,c=t.coordinateSystem,h=c.getBaseAxis(),p=("cartesian2d"===c.type?o=h.isHorizontal():"polar"===c.type&&(o="angle"===h.dim),t.isAnimationEnabled()?t:null),d=function(t,e){t=t.get("realtimeSort",!0);var n=e.getBaseAxis();if(t&&"category"===n.type&&"cartesian2d"===e.type)return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}(t,c),f=(d&&this._enableRealtimeSort(d,l,n),t.get("clip",!0)||d),g=(n=l,a=(r=c).getArea&&r.getArea(),!eb(r,"cartesian2d")||"category"===(r=r.getBaseAxis()).type&&r.onBand||(n=n.getLayout("bandWidth"),r.isHorizontal()?(a.x-=n,a.width+=2*n):(a.y-=n,a.height+=2*n)),a),y=(s.removeClipPath(),t.get("roundCap",!0)),m=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),x=v.get("borderRadius")||0,_=[],b=this._backgroundEls,w=i&&i.isInitSort,S=i&&"changeAxisOrder"===i.type;function M(t){var e=Qb[c.type](l,t),n=(n=o,new("polar"===c.type?fd:Br)({shape:aw(n,e,c),silent:!0,z2:0}));return n.useStyle(v.getItemStyle()),"cartesian2d"===c.type&&n.setShape("r",x),_[t]=n}l.diff(u).add((function(e){var n,i,r=l.getItemModel(e),a=Qb[c.type](l,e,r);m&&M(e),l.hasValue(e)&&Kb[c.type](a)&&(n=!1,f&&(n=Wb[c.type](g,a)),i=Yb[c.type](t,l,e,a,o,p,h.model,!1,y),d&&(i.forceLabelAnimation=!0),Jb(i,l,e,r,a,t,o,"polar"===c.type),w?i.attr({shape:a}):d?Ub(d,p,i,a,e,o,!1,!1):hs(i,{shape:a},t,e),l.setItemGraphicEl(e,i),s.add(i),i.ignore=n)})).update((function(e,n){var i,r=l.getItemModel(e),a=Qb[c.type](l,e,r),I=(m&&(I=void 0,0===b.length?I=M(n):((I=b[n]).useStyle(v.getItemStyle()),"cartesian2d"===c.type&&I.setShape("r",x),_[e]=I),i=Qb[c.type](l,e),cs(I,{shape:aw(o,i,c)},p,e)),u.getItemGraphicEl(n));l.hasValue(e)&&Kb[c.type](a)?(i=!1,f&&(i=Wb[c.type](g,a))&&s.remove(I),I?ys(I):I=Yb[c.type](t,l,e,a,o,p,h.model,!!I,y),d&&(I.forceLabelAnimation=!0),S?(n=I.getTextContent())&&null!=(n=As(n)).prevValue&&(n.prevValue=n.value):Jb(I,l,e,r,a,t,o,"polar"===c.type),w?I.attr({shape:a}):d?Ub(d,p,I,a,e,o,!0,S):cs(I,{shape:a},t,e,null),l.setItemGraphicEl(e,I),I.ignore=i,s.add(I)):s.remove(I)})).remove((function(e){var n=u.getItemGraphicEl(e);n&&gs(n,t,e)})).execute();var I=this._backgroundGroup||(this._backgroundGroup=new Gn);I.removeAll();for(var O=0;O<_.length;++O)I.add(_[O]);s.add(I),this._backgroundEls=_,this._data=l},Gb.prototype._renderLarge=function(t,e,n){this._clear(),ow(t,this.group),this._updateLargeClip(t)},Gb.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),ow(e,this.group,this._progressiveEls,!0)},Gb.prototype._updateLargeClip=function(t){t=t.get("clip",!0)&&tb(t.coordinateSystem,!1,t);var e=this.group;t?e.setClipPath(t):e.removeClipPath()},Gb.prototype._enableRealtimeSort=function(t,e,n){var i,o,r=this;e.count()&&(i=t.baseAxis,this._isFirstFrame?(this._dispatchInitSort(e,t,n),this._isFirstFrame=!1):(o=function(t){return t=e.getItemGraphicEl(t),t=t&&t.shape,t&&Math.abs(i.isHorizontal()?t.height:t.width)||0},this._onRendered=function(){r._updateSortWithinSameData(e,o,i,n)},n.getZr().on("rendered",this._onRendered)))},Gb.prototype._dataSort=function(t,e,n){var i=[];return t.each(t.mapDimension(e.dim),(function(t,e){var o=null==(o=n(e))?NaN:o;i.push({dataIndex:e,mappedValue:o,ordinalNumber:t})})),i.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:Object(l.H)(i,(function(t){return t.ordinalNumber}))}},Gb.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,o=t.mapDimension(n.dim),r=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(o,i.getRawOrdinalNumber(a));l=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(r<l)return!0;r=l}return!1},Gb.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=(e=n.getExtent(),Math.max(0,e[0])),o=Math.min(e[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(t.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},Gb.prototype._updateSortWithinSameData=function(t,e,n,i){this._isOrderChangedWithinSameData(t,e,n)&&(t=this._dataSort(t,n,e),this._isOrderDifferentInView(t,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:t})))},Gb.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,o=this._dataSort(t,i,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},Gb.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},Gb.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},Gb.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},Gb.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){gs(e,t,oa(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},Gb.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},Gb.type="bar";var Hb;Eg=Gb;function Gb(){var t=Hb.call(this)||this;return t.type=Gb.type,t._isFirstFrame=!0,t}var Wb={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1,o=(n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),t.x+t.width),r=t.y+t.height,a=Vb(e.x,t.x),s=Fb(e.x+e.width,o),l=(t=Vb(e.y,t.y),Fb(e.y+e.height,r)),u=s<a,c=l<t;return e.x=u&&o<a?s:a,e.y=c&&r<t?l:t,e.width=u?0:s-a,e.height=c?0:l-t,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),u||c},polar:function(t,e){var n,i=e.r0<=e.r?1:-1,o=(i<0&&(n=e.r,e.r=e.r0,e.r0=n),Fb(e.r,t.r));t=Vb(e.r0,t.r0),o=(e.r=o)-(e.r0=t)<0;return i<0&&(n=e.r,e.r=e.r0,e.r0=n),o}},Yb={cartesian2d:function(t,e,n,i,o,r,a,s,u){return i=new Br({shape:Object(l.m)({},i),z2:1}),i.__dataIndex=n,i.name="item",r&&(i.shape[o?"height":"width"]=0),i},polar:function(t,e,n,i,o,r,a,s,l){l=!o&&l?Eb:fd;var u,c,h=new l({shape:i,z2:1}),p=(h.name="item",$b(o));return h.calculateTextPosition=(u=p,c=({isRoundCap:l===Eb}||{}).isRoundCap,function(t,e,n){var i=e.position;if(!i||i instanceof Array)return kn(t,e,n);i=u(i);var o=null!=e.distance?e.distance:5,r=this.shape,a=r.cx,s=r.cy,l=r.r,h=r.r0,p=(l+h)/2,d=r.startAngle,f=r.endAngle,g=(d+f)/2,y=c?Math.abs(l-h)/2:0,m=Math.cos,v=Math.sin,x=a+l*m(d),_=s+l*v(d),b="left",w="top";switch(i){case"startArc":x=a+(h-o)*m(g),_=s+(h-o)*v(g),b="center",w="top";break;case"insideStartArc":x=a+(h+o)*m(g),_=s+(h+o)*v(g),b="center",w="bottom";break;case"startAngle":x=a+p*m(d)+zb(d,o+y,!1),_=s+p*v(d)+Bb(d,o+y,!1),b="right",w="middle";break;case"insideStartAngle":x=a+p*m(d)+zb(d,y-o,!1),_=s+p*v(d)+Bb(d,y-o,!1),b="left",w="middle";break;case"middle":x=a+p*m(g),_=s+p*v(g),b="center",w="middle";break;case"endArc":x=a+(l+o)*m(g),_=s+(l+o)*v(g),b="center",w="bottom";break;case"insideEndArc":x=a+(l-o)*m(g),_=s+(l-o)*v(g),b="center",w="top";break;case"endAngle":x=a+p*m(f)+zb(f,o+y,!0),_=s+p*v(f)+Bb(f,o+y,!0),b="left",w="middle";break;case"insideEndAngle":x=a+p*m(f)+zb(f,y-o,!0),_=s+p*v(f)+Bb(f,y-o,!0),b="right",w="middle";break;default:return kn(t,e,n)}return(t=t||{}).x=x,t.y=_,t.align=b,t.verticalAlign=w,t}),r&&(p={},h.shape[l=o?"r":"endAngle"]=o?0:i.startAngle,p[l]=i[l],(s?cs:hs)(h,{shape:p},r)),h}};function Ub(t,e,n,i,o,r,a,s){var l;r=r?(l={x:i.x,width:i.width},{y:i.y,height:i.height}):(l={y:i.y,height:i.height},{x:i.x,width:i.width});s||(a?cs:hs)(n,{shape:r},e,o,null),(a?cs:hs)(n,{shape:l},e?t.baseAxis.model:null,o)}function Xb(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return 1}var Zb=["x","y","width","height"],qb=["cx","cy","r","startAngle","endAngle"],Kb={cartesian2d:function(t){return!Xb(t,Zb)},polar:function(t){return!Xb(t,qb)}},Qb={cartesian2d:function(t,e,n){t=t.getItemLayout(e),e=n?function(t,e){var n=t.get(["itemStyle","borderColor"]);return n&&"none"!==n?(n=t.get(["itemStyle","borderWidth"])||0,t=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),e=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height),Math.min(n,t,e)):0}(n,t):0,n=0<t.width?1:-1;var i=0<t.height?1:-1;return{x:t.x+n*e/2,y:t.y+i*e/2,width:t.width-n*e,height:t.height-i*e}},polar:function(t,e,n){return t=t.getItemLayout(e),{cx:t.cx,cy:t.cy,r0:t.r0,r:t.r,startAngle:t.startAngle,endAngle:t.endAngle,clockwise:t.clockwise}}};function $b(t){return e=t?"Arc":"Angle",function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}};var e}function Jb(t,e,n,i,o,r,a,s){var u=e.getItemVisual(n,"style"),c=(s||t.setShape("r",i.get(["itemStyle","borderRadius"])||0),t.useStyle(u),i.getShallow("cursor")),h=(c=(c&&t.attr("cursor",c),s?a?o.r>=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":a?0<=o.height?"bottom":"top":0<=o.width?"right":"left"),bs(i));_s(t,h,{labelFetcher:r,labelDataIndex:n,defaultText:w_(r.getData(),n),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:c}),u=t.getTextContent(),s&&u&&(s=i.get(["label","position"]),t.textConfig.inside="middle"===s||null,function(t,e,n,i){if(Object(l.z)(i))t.setTextConfig({rotation:i});else if(Object(l.t)(e))t.setTextConfig({rotation:0});else{i=t.shape;var o,r=i.clockwise?i.startAngle:i.endAngle,a=i.clockwise?i.endAngle:i.startAngle,s=(r+a)/2;i=n(e);switch(i){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":o=s;break;case"startAngle":case"insideStartAngle":o=r;break;case"endAngle":case"insideEndAngle":o=a;break;default:return t.setTextConfig({rotation:0})}n=1.5*Math.PI-o,"middle"===i&&n>Math.PI/2&&n<1.5*Math.PI&&(n-=Math.PI),t.setTextConfig({rotation:n})}}(t,"outside"===s?c:s,$b(a),i.get(["label","rotate"]))),ks(u,h,r.getRawValue(n),(function(t){return S_(e,t)})),c=i.getModel(["emphasis"]);$a(t,c.get("focus"),c.get("blurScope"),c.get("disabled")),ns(t,i),null!=(s=o).startAngle&&null!=s.endAngle&&s.startAngle===s.endAngle&&(t.style.fill="none",t.style.stroke="none",Object(l.k)(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var tw,ew=function(){},nw=(a(iw,tw=br),iw.prototype.getDefaultShape=function(){return new ew},iw.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,o=1-this.baseDimIdx,r=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[o]=n[l+2],r[i]=n[l+i],r[o]=n[l+o],t.rect(r[0],r[1],a[0],a[1])},iw);function iw(t){return t=tw.call(this,t)||this,t.type="largeBar",t}function ow(t,e,n,i){var o=t.getData(),r=o.getLayout("valueAxisHorizontal")?1:0,a=o.getLayout("largeDataIndices"),s=o.getLayout("size"),l=t.getModel("backgroundStyle"),u=o.getLayout("largeBackgroundPoints");u&&((u=new nw({shape:{points:u},incremental:!!i,silent:!0,z2:0})).baseDimIdx=r,u.largeDataIndices=a,u.barWidth=s,u.useStyle(l.getItemStyle()),e.add(u),n&&n.push(u)),l=new nw({shape:{points:o.getLayout("largePoints")},incremental:!!i,z2:1});l.baseDimIdx=r,l.largeDataIndices=a,l.barWidth=s,e.add(l),l.useStyle(o.getVisual("style")),oa(l).seriesIndex=t.seriesIndex,t.get("silent")||(l.on("mousedown",rw),l.on("mousemove",rw)),n&&n.push(l)}var rw=Kf((function(t){t=function(t,e,n){for(var i=t.baseDimIdx,o=1-i,r=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=r.length/3;c<h;c++){var p=3*c;if(l[i]=u,l[o]=r[2+p],s[i]=r[p+i],s[o]=r[p+o],l[o]<0&&(s[o]+=l[o],l[o]=-l[o]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}(this,t.offsetX,t.offsetY),oa(this).dataIndex=0<=t?t:null}),30,!1);function aw(t,e,n){var i,o;return eb(n,"cartesian2d")?(i=e,o=n.getArea(),{x:(t?i:o).x,y:(t?o:i).y,width:(t?i:o).width,height:(t?o:i).height}):{cx:(o=n.getArea()).cx,cy:o.cy,r0:(t?o:e).r0,r:(t?o:e).r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}}var sw=Eg,lw=2*Math.PI,uw=Math.PI/180;function cw(t,e){return ql(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function hw(t,e){var n=cw(t,e),i=t.get("center"),o=(t=t.get("radius"),l.t(t)||(t=[0,t]),l.t(i)||(i=[i,i]),Qn(n.width,e.getWidth())),r=(e=Qn(n.height,e.getHeight()),Math.min(o,e));return{cx:Qn(i[0],o)+n.x,cy:Qn(i[1],e)+n.y,r0:Qn(t[0],r/2),r:Qn(t[1],r/2)}}function pw(t,e,n){e.eachSeriesByType(t,(function(t){var e,i=t.getData(),o=i.mapDimension("value"),r=cw(t,n),a=hw(t,n),s=a.cx,l=a.cy,u=a.r,c=a.r0,h=-t.get("startAngle")*uw,p=t.get("minAngle")*uw,d=0,f=(i.each(o,(function(t){isNaN(t)||d++})),i.getSum(o)),g=Math.PI/(f||d)*2,y=t.get("clockwise"),m=t.get("roseType"),v=t.get("stillShowZeroSum"),x=i.getDataExtent(o),_=(x[0]=0,lw),b=0,w=h,S=y?1:-1;i.setLayout({viewRect:r,r:u}),i.each(o,(function(t,e){var n,o;isNaN(t)?i.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:s,cy:l,r0:c,r:m?NaN:u}):((n="area"!==m?0===f&&v?g:t*g:lw/d)<p?_-=n=p:b+=t,o=w+S*n,i.setItemLayout(e,{angle:n,startAngle:w,endAngle:o,clockwise:y,cx:s,cy:l,r0:c,r:m?Kn(t,x,[c,u]):u}),w=o)})),_<lw&&d&&(_<=.001?(e=lw/d,i.each(o,(function(t,n){isNaN(t)||((t=i.getItemLayout(n)).angle=e,t.startAngle=h+S*n*e,t.endAngle=h+S*(n+1)*e)}))):(g=_/b,w=h,i.each(o,(function(t,e){isNaN(t)||(t=(e=i.getItemLayout(e)).angle===p?p:t*g,e.startAngle=w,e.endAngle=w+S*t,w+=S*t)}))))}))}function dw(t){return{seriesType:t,reset:function(t,e){var n,i=e.findComponents({mainType:"legend"});i&&i.length&&(n=t.getData()).filterSelf((function(t){for(var e=n.getName(t),o=0;o<i.length;o++)if(!i[o].isSelected(e))return!1;return!0}))}}}var fw=Math.PI/180;function gw(t,e,n,i,o,r,a,s,l,u){if(!(t.length<2)){for(var c,h=t.length,p=0;p<h;p++)"outer"===t[p].position&&"labelLine"===t[p].labelAlignTo&&(c=t[p].label.x-u,t[p].linePoints[1][0]+=c,t[p].label.x=u);if(rv(t,l,l+a)){for(var d,f,g,y,m,v=t,x={list:[],maxY:0},_={list:[],maxY:0},b=0;b<v.length;b++)"none"===v[b].labelAlignTo&&(f=(d=v[b]).label.y>n?_:x,(g=Math.abs(d.label.y-n))>=f.maxY&&(m=d.label.x-e-d.len2*o,y=i+d.len,m=Math.abs(m)<y?Math.sqrt(g*g/(1-m*m/y/y)):y,f.rB=m,f.maxY=g),f.list.push(d));w(x),w(_)}}function w(t){for(var r=t.rB,a=r*r,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),c=i+l.len;c=c*c,u=Math.sqrt((1-Math.abs(u*u/a))*c),c=e+(u+l.len2)*o,u=c-l.label.x;yw(l,l.targetTextWidth-u*o,!0),l.label.x=c}}}function yw(t,e,n){var i,o,r,a,s,l,u;void 0===n&&(n=!1),null==t.labelStyleWidth&&(s=(i=t.label).style,o=t.rect,l=s.backgroundColor,u=(u=s.padding)?u[1]+u[3]:0,s=s.overflow,(e<(r=o.width+(l?0:u))||n)&&(a=o.height,s&&s.match("break")?(i.setStyle("backgroundColor",null),i.setStyle("width",e-u),s=i.getBoundingRect(),i.setStyle("width",Math.ceil(s.width)),i.setStyle("backgroundColor",l)):(s=e-u,l=e<r||n&&!(s>t.unconstrainedWidth)?s:null,i.setStyle("width",l)),u=i.getBoundingRect(),o.width=u.width,e=(i.style.margin||0)+2.1,o.height=u.height+e,o.y-=(o.height-a)/2))}function mw(t){return"center"===t.position}function vw(t){var e,n,i=t.getData(),o=[],r=!1,a=(t.get("minShowLabelAngle")||0)*fw,s=i.getLayout("viewRect"),u=i.getLayout("r"),c=s.width,h=s.x,p=s.y;s=s.height;function d(t){t.ignore=!0}if(i.each((function(t){var s,p,f,g,y,m,v,x,_,b,w=i.getItemGraphicEl(t),S=w.shape,M=w.getTextContent(),I=w.getTextGuideLine(),O=(t=i.getItemModel(t),t.getModel("label")),T=O.get("position")||t.get(["emphasis","label","position"]),C=O.get("distanceToLabelLine"),A=O.get("alignTo"),k=Qn(O.get("edgeDistance"),c),D=O.get("bleedMargin"),L=(t=t.getModel("labelLine"),Qn(t.get("length"),c)),P=Qn(t.get("length2"),c);if(Math.abs(S.endAngle-S.startAngle)<a)return Object(l.k)(M.states,d),void(M.ignore=!0);!function(t){if(!t.ignore)return 1;for(var e in t.states)if(!1===t.states[e].ignore)return 1}(M)||(b=(S.startAngle+S.endAngle)/2,s=Math.cos(b),p=Math.sin(b),e=S.cx,n=S.cy,f="inside"===T||"inner"===T,v="center"===T?(g=S.cx,y=S.cy,"center"):(g=(v=(f?(S.r+S.r0)/2*s:S.r*s)+e)+3*s,y=(x=(f?(S.r+S.r0)/2*p:S.r*p)+n)+3*p,f||(m=v+s*(L+u-S.r),S=x+p*(L+u-S.r),_=m+(s<0?-1:1)*P,g="edge"===A?s<0?h+k:h+c-k:_+(s<0?-C:C),m=[[v,x],[m,y=S],[_,S]]),f?"center":"edge"===A?0<s?"right":"left":0<s?"left":"right"),x=Math.PI,_=0,S=O.get("rotate"),Object(l.z)(S)?_=S*(x/180):"center"===T?_=0:"radial"===S||!0===S?_=s<0?-b+x:-b:"tangential"===S&&"outside"!==T&&"outer"!==T&&((O=Math.atan2(s,p))<0&&(O=2*x+O),_=(O=0<p?x+O:O)-x),r=!!_,M.x=g,M.y=y,M.rotation=_,M.setStyle({verticalAlign:"middle"}),f?(M.setStyle({align:v}),(b=M.states.select)&&(b.x+=M.x,b.y+=M.y)):((S=M.getBoundingRect().clone()).applyTransform(M.getComputedTransform()),O=(M.style.margin||0)+2.1,S.y-=O/2,S.height+=O,o.push({label:M,labelLine:I,position:T,len:L,len2:P,minTurnAngle:t.get("minTurnAngle"),maxSurfaceAngle:t.get("maxSurfaceAngle"),surfaceNormal:new un(s,p),linePoints:m,textAlign:v,labelDistance:C,labelAlignTo:A,edgeDistance:k,bleedMargin:D,rect:S,unconstrainedWidth:S.width,labelStyleWidth:M.style.width})),w.setTextConfig({inside:f}))})),!r&&t.get("avoidLabelOverlap")){for(var f=o,g=e,y=(t=n,u),m=c,v=h,x=[],_=[],b=Number.MAX_VALUE,w=-Number.MAX_VALUE,S=0;S<f.length;S++){var M=f[S].label;mw(f[S])||(M.x<g?(b=Math.min(b,M.x),x.push(f[S])):(w=Math.max(w,M.x),_.push(f[S])))}var I;for(S=0;S<f.length;S++)!mw(O=f[S])&&O.linePoints&&null==O.labelStyleWidth&&(M=O.label,T=O.linePoints,I=void 0,I="edge"===O.labelAlignTo?M.x<g?T[2][0]-O.labelDistance-v-O.edgeDistance:v+m-O.edgeDistance-T[2][0]-O.labelDistance:"labelLine"===O.labelAlignTo?M.x<g?b-v-O.bleedMargin:v+m-w-O.bleedMargin:M.x<g?M.x-v-O.bleedMargin:v+m-M.x-O.bleedMargin,O.targetTextWidth=I,yw(O,I));gw(_,g,t,y,1,0,s,0,p,w),gw(x,g,t,y,-1,0,s,0,p,b);var O,T,C,A,k;for(S=0;S<f.length;S++)!mw(O=f[S])&&O.linePoints&&(M=O.label,T=O.linePoints,C="edge"===O.labelAlignTo,A=(A=M.style.padding)?A[1]+A[3]:0,A=M.style.backgroundColor?0:A,A=O.rect.width+A,k=T[1][0]-T[2][0],C?M.x<g?T[2][0]=v+O.edgeDistance+A+O.labelDistance:T[2][0]=v+m-O.edgeDistance-A-O.labelDistance:(M.x<g?T[2][0]=M.x+O.labelDistance:T[2][0]=M.x-O.labelDistance,T[1][0]=T[2][0]+k),T[1][1]=T[2][1]=M.y)}for(var D=0;D<o.length;D++){var L,P=o[D],j=P.label,R=P.labelLine,N=isNaN(j.x)||isNaN(j.y);j&&(j.setStyle({align:P.textAlign}),N&&(Object(l.k)(j.states,d),j.ignore=!0),(L=j.states.select)&&(L.x+=j.x,L.y+=j.y)),R&&(L=P.linePoints,N||!L?(Object(l.k)(R.states,d),R.ignore=!0):($m(L,P.minTurnAngle),function(t,e,n){if(n<=180&&0<n){n=n/180*Math.PI,Wm.fromArray(t[0]),Ym.fromArray(t[1]),Um.fromArray(t[2]),un.sub(Xm,Ym,Wm),un.sub(Zm,Um,Ym);var i=Xm.len(),o=Zm.len();if(!(i<.001||o<.001)&&(Xm.scale(1/i),Zm.scale(1/o),Xm.dot(e)<Math.cos(n))){if(i=Vm(Ym.x,Ym.y,Um.x,Um.y,Wm.x,Wm.y,Km,!1),Qm.fromArray(Km),o=Math.PI/2,e=o+Math.acos(Zm.dot(e))-n,o<=e)un.copy(Qm,Um);else{if(Qm.scaleAndAdd(Zm,i/Math.tan(Math.PI/2-e)),n=Um.x!==Ym.x?(Qm.x-Ym.x)/(Um.x-Ym.x):(Qm.y-Ym.y)/(Um.y-Ym.y),isNaN(n))return;n<0?un.copy(Qm,Ym):1<n&&un.copy(Qm,Um)}Qm.toArray(t[1])}}}(L,P.surfaceNormal,P.maxSurfaceAngle),R.setShape({points:L}),j.__hostTarget.textGuideLineConfig={anchor:new un(L[0][0],L[0][1])}))}}function xw(t,e,n){if(t=t.get("borderRadius"),null==t)return n?{cornerRadius:0}:null;Object(l.t)(t)||(t=[t,t,t,t]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Object(l.H)(t,(function(t){return An(t,i)}))}}a(Sw,_w=fd),Sw.prototype.updateData=function(t,e,n,i){var o=this,r=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),u=t.getItemLayout(e),c=Object(l.m)(xw(a.getModel("itemStyle"),u,!0),u);isNaN(c.startAngle)?o.setShape(c):(i?(o.setShape(c),i=r.getShallow("animationType"),r.ecModel.ssr?(hs(o,{scaleX:0,scaleY:0},r,{dataIndex:e,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):"scale"===i?(o.shape.r=u.r0,hs(o,{shape:{r:u.r}},r,e)):null!=n?(o.setShape({startAngle:n,endAngle:n}),hs(o,{shape:{startAngle:u.startAngle,endAngle:u.endAngle}},r,e)):(o.shape.endAngle=u.startAngle,cs(o,{shape:{endAngle:u.endAngle}},r,e))):(ys(o),cs(o,{shape:c},r,e)),o.useStyle(t.getItemVisual(e,"style")),ns(o,a),i=(u.startAngle+u.endAngle)/2,n=r.get("selectedOffset"),c=Math.cos(i)*n,i=Math.sin(i)*n,(n=a.getShallow("cursor"))&&o.attr("cursor",n),this._updateLabel(r,t,e),o.ensureState("emphasis").shape=Object(l.m)({r:u.r+(s.get("scale")&&s.get("scaleSize")||0)},xw(s.getModel("itemStyle"),u)),Object(l.m)(o.ensureState("select"),{x:c,y:i,shape:xw(a.getModel(["select","itemStyle"]),u)}),Object(l.m)(o.ensureState("blur"),{shape:xw(a.getModel(["blur","itemStyle"]),u)}),n=o.getTextGuideLine(),r=o.getTextContent(),n&&Object(l.m)(n.ensureState("select"),{x:c,y:i}),Object(l.m)(r.ensureState("select"),{x:c,y:i}),$a(this,s.get("focus"),s.get("blurScope"),s.get("disabled")))},Sw.prototype._updateLabel=function(t,e,n){var i=e.getItemModel(n),o=i.getModel("labelLine"),r=e.getItemVisual(n,"style"),a=r&&r.fill;r=r&&r.opacity,_s(this,bs(i),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:a,defaultOpacity:r,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)}),e=this.getTextContent(),this.setTextConfig({position:null,rotation:null}),e.attr({z2:10}),n=t.get(["label","position"]);"outside"!==n&&"outer"!==n?this.removeTextGuideLine():(this.getTextGuideLine()||(e=new Td,this.setTextGuideLine(e)),ev(this,nv(i),{stroke:a,opacity:Object(l.Q)(o.get(["lineStyle","opacity"]),r,1)}))};var _w,bw,ww=Sw;function Sw(t,e,n){var i=_w.call(this)||this,o=(i.z2=2,new ia);return i.setTextContent(o),i.updateData(t,e,n,!0),i}function Mw(){var t=null!==bw&&bw.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}a(Mw,bw=Uf),Mw.prototype.init=function(){var t=new Gn;this._sectorGroup=t},Mw.prototype.render=function(t,e,n,i){var o,r=t.getData(),a=this._data,s=this.group;if(!a&&0<r.count()){for(var l=r.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<r.count();++u)l=r.getItemLayout(u);l&&(o=l.startAngle)}this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===r.count()&&t.get("showEmptyCircle")&&((n=new fd({shape:hw(t,n)})).useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=n,s.add(n)),r.diff(a).add((function(t){var e=new ww(r,t,o);r.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){e=a.getItemGraphicEl(e),e.updateData(r,t,o),e.off("click"),s.add(e),r.setItemGraphicEl(t,e)})).remove((function(e){gs(a.getItemGraphicEl(e),t,e)})).execute(),vw(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=r)},Mw.prototype.dispose=function(){},Mw.prototype.containPoint=function(t,e){var n;e=e.getData().getItemLayout(0);if(e)return n=t[0]-e.cx,t=t[1]-e.cy,(n=Math.sqrt(n*n+t*t))<=e.r&&n>=e.r0},Mw.type="pie";var Iw=Mw;function Ow(t,e,n){e=Object(l.t)(e)?{coordDimensions:e}:Object(l.m)({encodeDefine:t.getEncode()},e);var i=t.getSource();e=c_(i,e).dimensions,e=new u_(e,t);return e.initData(i,n),e}function Tw(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}Tw.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},Tw.prototype.containName=function(t){return 0<=this._getRawData().indexOfName(t)},Tw.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},Tw.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)};var Cw,Aw=Tw;function kw(){return null!==Cw&&Cw.apply(this,arguments)||this}a(kw,Cw=mp),kw.prototype.init=function(t){Cw.prototype.init.apply(this,arguments),this.legendVisualProvider=new Aw(l.c(this.getData,this),l.c(this.getRawData,this)),this._defaultLabelLine(t)},kw.prototype.mergeOption=function(){Cw.prototype.mergeOption.apply(this,arguments)},kw.prototype.getInitialData=function(){return Ow(this,{coordDimensions:["value"],encodeDefaulter:l.h(Su,this)})},kw.prototype.getDataParams=function(t){var e=this.getData(),n=Cw.prototype.getDataParams.call(this,t),i=[];return e.each(e.mapDimension("value"),(function(t){i.push(t)})),n.percent=function(t,e,n){if(!t[e])return 0;var i=l.N(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===i)return 0;for(var o=Math.pow(10,n),r=(n=l.H(t,(function(t){return(isNaN(t)?0:t)/i*o*100})),100*o),a=l.H(n,(function(t){return Math.floor(t)})),s=l.N(a,(function(t,e){return t+e}),0),u=l.H(n,(function(t,e){return t-a[e]}));s<r;){for(var c=Number.NEGATIVE_INFINITY,h=null,p=0,d=u.length;p<d;++p)u[p]>c&&(c=u[p],h=p);++a[h],u[h]=0,++s}return a[e]/o}(i,t,e.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},kw.prototype._defaultLabelLine=function(t){xi(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},kw.type="series.pie",kw.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"};var Dw,Lw=kw;function Pw(){var t=null!==Dw&&Dw.apply(this,arguments)||this;return t.type=Pw.type,t.hasSymbolVisual=!0,t}a(Pw,Dw=mp),Pw.prototype.getInitialData=function(t,e){return v_(null,this,{useEncodeDefaulter:!0})},Pw.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},Pw.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},Pw.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},Pw.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},Pw.type="series.scatter",Pw.dependencies=["grid","polar","geo","singleAxis","calendar"],Pw.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}};var jw,Rw=Pw,Nw=function(){},Ew=(a(zw,jw=br),zw.prototype.getDefaultShape=function(){return new Nw},zw.prototype.reset=function(){this.notClear=!1,this._off=0},zw.prototype.buildPath=function(t,e){var n,i=e.points,o=e.size,r=this.symbolProxy,a=r.shape,s=(e=t.getContext?t.getContext():t,e&&o[0]<4),l=this.softClipShape;if(s)this._ctx=e;else{for(this._ctx=null,n=this._off;n<i.length;){var u=i[n++],c=i[n++];isNaN(u)||isNaN(c)||l&&!l.contain(u,c)||(a.x=u-o[0]/2,a.y=c-o[1]/2,a.width=o[0],a.height=o[1],r.buildPath(t,a,!0))}this.incremental&&(this._off=n,this.notClear=!0)}},zw.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,i=e.size,o=this._ctx,r=this.softClipShape;if(o){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||r&&!r.contain(a,s)||o.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1])}this.incremental&&(this._off=t,this.notClear=!0)}},zw.prototype.findDataIndex=function(t,e){for(var n=this.shape,i=n.points,o=(n=n.size,Math.max(n[0],4)),r=Math.max(n[1],4),a=i.length/2-1;0<=a;a--){var s=2*a,l=i[s]-o/2;s=i[1+s]-r/2;if(l<=t&&s<=e&&t<=l+o&&e<=s+r)return a}return-1},zw.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?0<=(this.hoverDataIdx=this.findDataIndex(t,e)):!(this.hoverDataIdx=-1)},zw.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=(e=e.size,e[0]),o=(e=e[1],1/0),r=1/0,a=-1/0,s=-1/0,l=0;l<n.length;){var u=n[l++],c=n[l++];o=Math.min(u,o),a=Math.max(u,a),r=Math.min(c,r),s=Math.max(c,s)}t=this._rect=new xn(o-i/2,r-e/2,a-o+i,s-r+e)}return t},zw);function zw(t){return t=jw.call(this,t)||this,t._off=0,t.hoverDataIdx=-1,t}function Bw(){this.group=new Gn}Bw.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},Bw.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild((function(t){var n,i;null!=t.startIndex&&(n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2,e=new Float32Array(e.buffer,i,n)),t.setShape("points",e),t.reset()}))},Bw.prototype.incrementalPrepareUpdate=function(t){this._clear()},Bw.prototype.incrementalUpdate=function(t,e,n){var i,o,r=this._newAdded[0],a=e.getLayout("points"),s=r&&r.shape.points;s&&s.length<2e4?(i=s.length,(o=new Float32Array(i+a.length)).set(s),o.set(a,i),r.endIndex=t.end,r.setShape({points:o})):(this._newAdded=[],(s=this._create()).startIndex=t.start,s.endIndex=t.end,s.incremental=!0,s.setShape({points:a}),this._setCommon(s,e,n))},Bw.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},Bw.prototype._create=function(){var t=new Ew({cursor:"default"});return this.group.add(t),this._newAdded.push(t),t},Bw.prototype._setCommon=function(t,e,n){var i=e.hostModel,o=(n=n||{},e.getVisual("symbolSize")),r=(o=(t.setShape("size",o instanceof Array?o:[o,o]),t.softClipShape=n.clipShape||null,t.symbolProxy=Yg(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor,t.shape.size[0]<4),n=(t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"])),e.getVisual("style")),o=n&&n.fill,o&&t.setColor(o),oa(t));r.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){r.dataIndex=null;var n=t.hoverDataIdx;0<=n&&(r.dataIndex=n+(t.startIndex||0))}))},Bw.prototype.remove=function(){this._clear()},Bw.prototype._clear=function(){this._newAdded=[],this.group.removeAll()};var Vw,Fw=Bw;function Hw(){var t=null!==Vw&&Vw.apply(this,arguments)||this;return t.type=Hw.type,t}a(Hw,Vw=Uf),Hw.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},Hw.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},Hw.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},Hw.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||1e4<i.count())return{update:!0};t=gb("").reset(t,e,n),t.progress&&t.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},Hw.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},Hw.prototype._getClipShape=function(t){var e=t.coordinateSystem;e=e&&e.getArea&&e.getArea();return t.get("clip",!0)?e:null},Hw.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw;e=e.pipelineContext.large;return n&&e===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=new(e?Fw:D_),this._isLargeDraw=e,this.group.removeAll()),this.group.add(n.group),n},Hw.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},Hw.prototype.dispose=function(){},Hw.type="scatter";var Gw,Ww=Hw;function Yw(){return null!==Gw&&Gw.apply(this,arguments)||this}a(Yw,Gw=uu),Yw.type="grid",Yw.dependencies=["xAxis","yAxis"],Yw.layoutMode="box",Yw.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 Uw=Yw,Xw=(Zw.prototype.getNeedCrossZero=function(){return!this.option.scale},Zw.prototype.getCoordSysModel=function(){},Zw);function Zw(){}a(Qw,qw=uu),Qw.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ji).models[0]},Qw.type="cartesian2dAxis";var qw,Kw=Qw;function Qw(){return null!==qw&&qw.apply(this,arguments)||this}l.K(Kw,Xw);Ys={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)"]}}},cl=l.I({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Ys),zs=l.I({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}}},Ys);var $w={category:cl,value:zs,time:l.I({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},zs),log:l.i({logBase:10},zs)},Jw=0;function tS(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Jw}function eS(t){return Object(l.A)(t)&&null!=t.value?t.value:t+""}tS.createByAxisModel=function(t){t=t.option;var e=t.data;e=e&&Object(l.H)(e,eS);return new tS({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},tS.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},tS.prototype.parseAndCollect=function(t){var e=this._needCollect;if(!Object(l.C)(t)&&!e)return t;if(e&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,n;var n,i=this._getOrCreateMap();return null==(n=i.get(t))&&(e?(n=this.categories.length,this.categories[n]=t,i.set(t,n)):n=NaN),n},tS.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(l.f)(this.categories))};var nS=tS,iS={value:1,category:1,time:1,log:1};function oS(t,e,n,i){Object(l.k)(iS,(function(o,r){var s,u=Object(l.I)(Object(l.I)({},$w[r],!0),i,!0);a(c,s=n),c.prototype.mergeDefaultAndTheme=function(t,e){var n=Ql(this),i=n?Jl(t):{};e=e.getTheme();Object(l.I)(t,e.get(r+"Axis")),Object(l.I)(t,this.getDefaultOption()),t.type=rS(t),n&&$l(t,i,n)},c.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=nS.createByAxisModel(this))},c.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},c.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},c.type=e+"Axis."+r,c.defaultOption=u,u=c;function c(){var t=null!==s&&s.apply(this,arguments)||this;return t.type=e+"Axis."+r,t}t.registerComponentModel(u)})),t.registerSubTypeDefaulter(e+"Axis",rS)}function rS(t){return t.type||(t.data?"category":"value")}function aS(t){this._setting=t||{},this._extent=[1/0,-1/0]}aS.prototype.getSetting=function(t){return this._setting[t]},aS.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},aS.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},aS.prototype.getExtent=function(){return this._extent.slice()},aS.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},aS.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},aS.prototype.isBlank=function(){return this._isBlank},aS.prototype.setBlank=function(t){this._isBlank=t},Qi=aS,Zi(Qi);var sS=Qi;function lS(t){return"interval"===t.type||"log"===t.type}function uS(t,e,n,i){var o={},r=t[1]-t[0];r=o.interval=li(r/e,!0),null!=n&&r<n&&(r=o.interval=n),null!=i&&i<r&&(r=o.interval=i),e=o.intervalPrecision=hS(r),n=o.niceTickExtent=[$n(Math.ceil(t[0]/r)*r,e),$n(Math.floor(t[1]/r)*r,e)];return i=n,r=t,isFinite(i[0])||(i[0]=r[0]),isFinite(i[1])||(i[1]=r[1]),pS(i,0,r),pS(i,1,r),i[0]>i[1]&&(i[0]=i[1]),o}function cS(t){var e=Math.pow(10,si(t));t/=e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,$n(t*e)}function hS(t){return ti(t)+2}function pS(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function dS(t,e){return t>=e[0]&&t<=e[1]}function fS(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function gS(t,e){return t*(e[1]-e[0])+e[0]}a(mS,yS=sS),mS.prototype.parse=function(t){return Object(l.C)(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},mS.prototype.contain=function(t){return dS(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},mS.prototype.normalize=function(t){return fS(t=this._getTickNumber(this.parse(t)),this._extent)},mS.prototype.scale=function(t){return t=Math.round(gS(t,this._extent)),this.getRawOrdinalNumber(t)},mS.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},mS.prototype.getMinorTicks=function(t){},mS.prototype.setSortInfo=function(t){if(null==t)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,r=this._ordinalMeta.categories.length,a=Math.min(r,e.length);o<a;++o){var s=e[o];i[n[o]=s]=o}for(var l=0;o<r;++o){for(;null!=i[l];)l++;n.push(l),i[l]=o}}},mS.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&0<=t&&t<e.length?e[t]:t},mS.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&0<=t&&t<e.length?e[t]:t},mS.prototype.getLabel=function(t){if(!this.isBlank())return t=this.getRawOrdinalNumber(t.value),null==(t=this._ordinalMeta.categories[t])?"":t+""},mS.prototype.count=function(){return this._extent[1]-this._extent[0]+1},mS.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},mS.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},mS.prototype.getOrdinalMeta=function(){return this._ordinalMeta},mS.prototype.calcNiceTicks=function(){},mS.prototype.calcNiceExtent=function(){},mS.type="ordinal";var yS;n=mS;function mS(t){t=yS.call(this,t)||this,t.type="ordinal";var e=(e=t.getSetting("ordinalMeta"))||new nS({});return Object(l.t)(e)&&(e=new nS({categories:Object(l.H)(e,(function(t){return Object(l.A)(t)?t.value:t}))})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}sS.registerClass(n);var vS,xS=n,_S=$n;a(bS,vS=sS),bS.prototype.parse=function(t){return t},bS.prototype.contain=function(t){return dS(t,this._extent)},bS.prototype.normalize=function(t){return fS(t,this._extent)},bS.prototype.scale=function(t){return gS(t,this._extent)},bS.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},bS.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])},bS.prototype.getInterval=function(){return this._interval},bS.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=hS(t)},bS.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,r=[];if(!e)return r;n[0]<i[0]&&(t?r.push({value:_S(i[0]-e,o)}):r.push({value:n[0]}));for(var a=i[0];a<=i[1]&&(r.push({value:a}),(a=_S(a+e,o))!==r[r.length-1].value);)if(1e4<r.length)return[];var s=r.length?r[r.length-1].value:i[1];return n[1]>s&&(t?r.push({value:_S(s+e,o)}):r.push({value:n[1]})),r},bS.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<e.length;o++){for(var r=e[o],a=e[o-1],s=0,l=[],u=(r.value-a.value)/t;s<t-1;){var c=_S(a.value+(s+1)*u);c>i[0]&&c<i[1]&&l.push(c),s++}n.push(l)}return n},bS.prototype.getLabel=function(t,e){return null==t?"":(e=e&&e.precision,null==e?e=ti(t.value)||0:"auto"===e&&(e=this._intervalPrecision),Ll(_S(t.value,e,!0)))},bS.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,o=i[1]-i[0];isFinite(o)&&(o<0&&i.reverse(),o=uS(i,t,e,n),this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent)},bS.prototype.calcNiceExtent=function(t){var e=this._extent,n=(e[0]===e[1]&&(0!==e[0]?(n=e[0],t.fixMax||(e[1]+=n/2),e[0]-=n/2):e[1]=1),e[1]-e[0]);isFinite(n)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval),n=this._interval;t.fixMin||(e[0]=_S(Math.floor(e[0]/n)*n)),t.fixMax||(e[1]=_S(Math.ceil(e[1]/n)*n))},bS.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},bS.type="interval",Vs=bS;function bS(){var t=null!==vS&&vS.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}sS.registerClass(Vs);var wS,SS=Vs;a(MS,wS=SS),MS.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return yl(t.value,hl[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(gl(this._minLevelUnit))]||hl.second,e,this.getSetting("locale"))},MS.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale"),r=null;if(l.C(n))r=n;else if(l.w(n))r=n(t.value,e,{level:t.level});else{var a=l.m({},ul);if(0<t.level)for(var s=0;s<pl.length;++s)a[pl[s]]="{primary|"+a[pl[s]]+"}";var u=n?!1===n.inherit?n:l.i(n,a):a,c=ml(t.value,i);if(u[c])r=u[c];else if(u.inherit){for(s=dl.indexOf(c)-1;0<=s;--s)if(u[c]){r=u[c];break}r=r||a.none}l.t(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 yl(new Date(t.value),r,i,o)},MS.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];return t?(n.push({value:e[0],level:0}),t=this.getSetting("useUTC"),t=function(t,e,n,i){var o=dl,r=0;function a(t,o,r){var a=[],s=!o.length;if(!function(t,e,n,i){function o(t){return vl(h,t,i)===vl(p,t,i)}function r(){return o("year")}function a(){return r()&&o("month")}function s(){return a()&&o("day")}function l(){return s()&&o("hour")}function u(){return l()&&o("minute")}function c(){return u()&&o("second")}var h=ai(e),p=ai(n);switch(t){case"year":return r();case"month":return a();case"day":return s();case"hour":return l();case"minute":return u();case"second":return c();case"millisecond":return c()&&o("millisecond")}}(gl(t),i[0],i[1],n)){s&&(o=[{value:function(t,e,n){var i=new Date(t);switch(gl(e)){case"year":case"month":i[Ol(n)](0);case"day":i[Tl(n)](1);case"hour":i[Cl(n)](0);case"minute":i[Al(n)](0);case"second":i[kl(n)](0),i[Dl(n)](0)}return i.getTime()}(new Date(i[0]),t,n)},{value:i[1]}]);for(var l,u,c=0;c<o.length-1;c++){var h=o[c].value,p=o[c+1].value;if(h!==p){var d=void 0,f=void 0,g=void 0;switch(t){case"year":d=Math.max(1,Math.round(e/ll/365)),f=xl(n),g=n?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":u=e,d=6<(u/=30*ll)?6:3<u?3:2<u?2:1,f=_l(n),g=Ol(n);break;case"week":case"half-week":case"day":u=e,d=16<(u/=ll)?16:7.5<u?7:3.5<u?4:1.5<u?2:1,f=bl(n),g=Tl(n);break;case"half-day":case"quarter-day":case"hour":l=e,d=12<(l/=sl)?12:6<l?6:3.5<l?4:2<l?2:1,f=wl(n),g=Cl(n);break;case"minute":d=OS(e,!0),f=Sl(n),g=Al(n);break;case"second":d=OS(e,!1),f=Ml(n),g=kl(n);break;case"millisecond":d=li(e,!0),f=Il(n),g=Dl(n)}M=S=w=b=_=x=v=m=y=void 0;for(var y=d,m=h,v=p,x=f,_=g,b=a,w=new Date(m),S=m,M=w[x]();S<v&&S<=i[1];)b.push({value:S}),w[_](M+=y),S=w.getTime();b.push({value:S,notAdd:!0}),"year"===t&&1<r.length&&0===c&&r.unshift({value:r[0].value-d})}}for(c=0;c<a.length;c++)r.push(a[c])}}for(var s=[],u=[],c=0,h=0,p=0;p<o.length&&r++<1e4;++p){var d=gl(o[p]);if(function(t){return t===gl(t)}(o[p])){a(o[p],s[s.length-1]||[],u);var f=o[p+1]?gl(o[p+1]):null;if(d!==f){if(u.length){h=c,u.sort((function(t,e){return t.value-e.value}));for(var g=[],y=0;y<u.length;++y){var m=u[y].value;0!==y&&u[y-1].value===m||(g.push(u[y]),m>=i[0]&&m<=i[1]&&c++)}if(d=(i[1]-i[0])/e,1.5*d<c&&d/1.5<h)break;if(s.push(g),d<c||t===o[p])break}u=[]}}}var v=Object(l.n)(Object(l.H)(s,(function(t){return Object(l.n)(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return 0<t.length})),x=[],_=v.length-1;for(p=0;p<v.length;++p)for(var b=v[p],w=0;w<b.length;++w)x.push({value:b[w].value,level:_-p});x.sort((function(t,e){return t.value-e.value}));var S=[];for(p=0;p<x.length;++p)0!==p&&x[p].value===x[p-1].value||S.push(x[p]);return S}(this._minLevelUnit,this._approxInterval,t,e),(n=n.concat(t)).push({value:e[1],level:0}),n):n},MS.prototype.calcNiceExtent=function(t){var e,n=this._extent;n[0]===n[1]&&(n[0]-=ll,n[1]+=ll),n[1]===-1/0&&n[0]===1/0&&(e=new Date,n[1]=+new Date(e.getFullYear(),e.getMonth(),e.getDate()),n[0]=n[1]-ll),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},MS.prototype.calcNiceTicks=function(t,e,n){var i=this._extent;i=i[1]-i[0],this._approxInterval=i/(t=t||10),null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n),i=IS.length,t=Math.min(function(t,e,n,i){for(;n<i;){var o=n+i>>>1;t[o][1]<e?n=1+o:i=o}return n}(IS,this._approxInterval,0,i),i-1);this._interval=IS[t][1],this._minLevelUnit=IS[Math.max(t-1,0)][0]},MS.prototype.parse=function(t){return Object(l.z)(t)?t:+ai(t)},MS.prototype.contain=function(t){return dS(this.parse(t),this._extent)},MS.prototype.normalize=function(t){return fS(this.parse(t),this._extent)},MS.prototype.scale=function(t){return gS(t,this._extent)},MS.type="time",Ns=MS;function MS(t){return t=wS.call(this,t)||this,t.type="time",t}var IS=[["second",rl],["minute",al],["hour",sl],["quarter-day",6*sl],["half-day",12*sl],["day",1.2*ll],["half-week",3.5*ll],["week",7*ll],["month",31*ll],["quarter",95*ll],["half-year",e/2],["year",e]];function OS(t,e){return 30<(t/=e?al:rl)?30:20<t?20:15<t?15:10<t?10:5<t?5:2<t?2:1}sS.registerClass(Ns);var TS,CS=Ns,AS=sS.prototype,kS=SS.prototype,DS=$n,LS=Math.floor,PS=Math.ceil,jS=Math.pow,RS=Math.log;a(NS,TS=sS),NS.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();e=kS.getTicks.call(this,t);return l.H(e,(function(t){t=t.value;var e=$n(jS(this.base,t));e=t===n[0]&&this._fixMin?ES(e,i[0]):e;return{value:e=t===n[1]&&this._fixMax?ES(e,i[1]):e}}),this)},NS.prototype.setExtent=function(t,e){var n=this.base;t=RS(t)/RS(n),e=RS(e)/RS(n),kS.setExtent.call(this,t,e)},NS.prototype.getExtent=function(){var t=this.base,e=AS.getExtent.call(this);return e[0]=jS(t,e[0]),e[1]=jS(t,e[1]),t=this._originalScale.getExtent(),this._fixMin&&(e[0]=ES(e[0],t[0])),this._fixMax&&(e[1]=ES(e[1],t[1])),e},NS.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=RS(t[0])/RS(e),t[1]=RS(t[1])/RS(e),AS.unionExtent.call(this,t)},NS.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},NS.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n==1/0||n<=0)){var i=Math.pow(10,si(n));for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&0<Math.abs(i);)i*=10;t=[$n(PS(e[0]/i)*i),$n(LS(e[1]/i)*i)],this._interval=i,this._niceExtent=t}},NS.prototype.calcNiceExtent=function(t){kS.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},NS.prototype.parse=function(t){return t},NS.prototype.contain=function(t){return dS(t=RS(t)/RS(this.base),this._extent)},NS.prototype.normalize=function(t){return fS(t=RS(t)/RS(this.base),this._extent)},NS.prototype.scale=function(t){return t=gS(t,this._extent),jS(this.base,t)},NS.type="log",Bg=NS;function NS(){var t=null!==TS&&TS.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new SS,t._interval=0,t}function ES(t,e){return DS(t,ti(e))}zg=Bg.prototype,zg.getMinorTicks=kS.getMinorTicks,zg.getLabel=kS.getLabel,sS.registerClass(Bg);var zS=Bg,BS=(VS.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===t.type,o=(this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero(),this._modelMinRaw=e.get("min",!0));Object(l.w)(o)?this._modelMinNum=WS(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=WS(t,o)),o=this._modelMaxRaw=e.get("max",!0);Object(l.w)(o)?this._modelMaxNum=WS(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=WS(t,o)),i?this._axisDataLen=e.getCategories().length:(n=e.get("boundaryGap"),"boolean"==typeof(t=Object(l.t)(n)?n:[n||0,n||0])[0]||"boolean"==typeof t[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[An(t[0],1),An(t[1],1)])},VS.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,r=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,u=null!=a,c=null!=s;null==a&&(a=t?i?0:NaN:e-o[0]*r),null==s&&(s=t?i?i-1:NaN:n+o[1]*r),null!=a&&isFinite(a)||(a=NaN),null!=s&&isFinite(s)||(s=NaN),e=Object(l.l)(a)||Object(l.l)(s)||t&&!i,this._needCrossZero&&(a=0<a&&0<s&&!u?0:a)<0&&s<0&&!c&&(s=0),n=this._determinedMin,o=this._determinedMax;return null!=n&&(a=n,u=!0),null!=o&&(s=o,c=!0),{min:a,max:s,minFixed:u,maxFixed:c,isBlank:e}},VS.prototype.modifyDataMinMax=function(t,e){this[HS[t]]=e},VS.prototype.setDeterminedMinMax=function(t,e){this[FS[t]]=e},VS.prototype.freeze=function(){this.frozen=!0},VS);function VS(t,e,n){this._prepareParams(t,e,n)}var FS={min:"_determinedMin",max:"_determinedMax"},HS={min:"_dataMin",max:"_dataMax"};function GS(t,e,n){var i=t.rawExtentInfo;return i||(i=new BS(t,e,n),t.rawExtentInfo=i)}function WS(t,e){return null==e?null:Object(l.l)(e)?NaN:t.parse(e)}function YS(t,e){var n,i=t.type,o=GS(t,e,t.getExtent()).calculate(),r=(t=(t.setBlank(o.isBlank),o.min),o.max),a=e.ecModel;return a&&"time"===i&&(i=wb("bar",a),n=!1,l.k(i,(function(t){n=n||t.getBaseAxis()===e.axis})),n&&(a=Sb(i),t=(i=function(t,e,n,i){var o=n.axis.getExtent();o=o[1]-o[0],i=function(t,e,n){if(t&&e)return null!=(t=t[bb(e)])&&null!=n?t[_b(n)]:t}(i,n.axis);if(void 0===i)return{min:t,max:e};var r=1/0,a=(l.k(i,(function(t){r=Math.min(t.offset,r)})),-1/0);l.k(i,(function(t){a=Math.max(t.offset+t.width,a)})),r=Math.abs(r),a=Math.abs(a),n=r+a,i=e-t,o=i/(1-(r+a)/o)-i;return{min:t-=r/n*o,max:e+=a/n*o}}(t,r,e,a)).min,r=i.max)),{extent:[t,r],fixMin:o.minFixed,fixMax:o.maxFixed}}function US(t,e){var n=YS(t,e),i=n.extent,o=e.get("splitNumber"),r=(t instanceof zS&&(t.base=e.get("logBase")),t.type),a=e.get("interval");r="interval"===r||"time"===r;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:r?e.get("minInterval"):null,maxInterval:r?e.get("maxInterval"):null}),null!=a&&t.setInterval&&t.setInterval(a)}function XS(t,e){if(e=e||t.get("type"))switch(e){case"category":return new xS({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new CS({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(sS.getClass(e)||SS)}}function ZS(t){var e,n,i,o=t.getLabelModel().get("formatter"),r="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(i=o,function(e,n){return t.scale.getFormattedLabel(e,n,i)}):l.C(o)?(n=o,function(e){return e=t.scale.getLabel(e),n.replace("{value}",null!=e?e:"")}):l.w(o)?(e=o,function(n,i){return null!=r&&(i=n.value-r),e(qS(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function qS(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function KS(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,o,r=n.getExtent(),a=n instanceof xS?n.count():(i=n.getTicks()).length,s=t.getLabelModel(),l=ZS(t),u=1;40<a&&(u=Math.ceil(a/40));for(var c,h,p,d=0;d<a;d+=u){var f=l(i?i[d]:{value:r[0]+d},d),g=(f=s.getTextRect(f),f=f,c=s.get("rotate")||0,h=p=g=h=void 0,c=c*Math.PI/180,h=f.width,g=f.height,p=h*Math.abs(Math.cos(c))+Math.abs(g*Math.sin(c)),h=h*Math.abs(Math.sin(c))+Math.abs(g*Math.cos(c)),new xn(f.x,f.y,p,h));o?o.union(g):o=g}return o}}function QS(t){return t=t.get("interval"),null==t?"auto":t}function $S(t){return"category"===t.type&&0===QS(t.getLabelModel())}function JS(t,e){var n={};return l.k(t.mapDimensionsAll(e),(function(e){n[y_(t,e)]=!0})),l.F(n)}function tM(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}tM.prototype.getAxis=function(t){return this._axes[t]},tM.prototype.getAxes=function(){return l.H(this._dimList,(function(t){return this._axes[t]}),this)},tM.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),l.n(this.getAxes(),(function(e){return e.scale.type===t}))},tM.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)};var eM,nM=["x","y"];function iM(t){return"interval"===t.type||"time"===t.type}function oM(){var t=null!==eM&&eM.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=nM,t}a(oM,eM=tM),oM.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,n,i,o=this.getAxis("x").scale,r=this.getAxis("y").scale;iM(o)&&iM(r)&&(o=o.getExtent(),r=r.getExtent(),i=this.dataToPoint([o[0],r[0]]),e=this.dataToPoint([o[1],r[1]]),t=o[1]-o[0],n=r[1]-r[0],t&&n&&(t=(e[0]-i[0])/t,e=(e[1]-i[1])/n,n=i[0]-o[0]*t,o=i[1]-r[0]*e,i=this._transform=[t,0,0,e,n,o],this._invTransform=Ke([],i)))},oM.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},oM.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},oM.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},oM.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=o&&isFinite(o))return I(n,t,this._transform);t=this.getAxis("x");var r=this.getAxis("y");return n[0]=t.toGlobalCoord(t.dataToCoord(i,e)),n[1]=r.toGlobalCoord(r.dataToCoord(o,e)),n},oM.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),r=i.getExtent();n=n.parse(t[0]),i=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(o[0],o[1]),n),Math.max(o[0],o[1])),e[1]=Math.min(Math.max(Math.min(r[0],r[1]),i),Math.max(r[0],r[1])),e},oM.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return I(n,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=o.coordToData(o.toLocalCoord(t[1]),e),n},oM.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},oM.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]);t=Math.max(t[0],t[1])-n,e=Math.max(e[0],e[1])-i;return new xn(n,i,t,e)};var rM=oM,aM=ki();function sM(t){return"category"===t.type?(o=(i=t).getLabelModel(),r=uM(i,o),!o.get("show")||i.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r):(o=(e=t).scale.getTicks(),n=ZS(e),{labels:l.H(o,(function(t,i){return{level:t.level,formattedLabel:n(t,i),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))});var e,n,i,o,r}function lM(t,e){var n,i,o,r,a,s;return"category"===t.type?(n=t,r=cM(n,"ticks"),a=QS(e),s=hM(r,a),s||(e.get("show")&&!n.scale.isBlank()||(i=[]),i=l.w(a)?fM(n,a,!0):"auto"===a?(s=uM(n,n.getLabelModel()),o=s.labelCategoryInterval,l.H(s.labels,(function(t){return t.tickValue}))):dM(n,o=a,!0),pM(r,a,{ticks:i,tickCategoryInterval:o}))):{ticks:l.H(t.scale.getTicks(),(function(t){return t.value}))}}function uM(t,e){var n,i=cM(t,"labels"),o=(e=QS(e),hM(i,e));return o||pM(i,e,{labels:l.w(e)?fM(t,e):dM(t,n="auto"===e?null!=(i=aM(o=t).autoInterval)?i:aM(o).autoInterval=o.calculateCategoryInterval():e),labelCategoryInterval:n})}function cM(t,e){return aM(t)[e]||(aM(t)[e]=[])}function hM(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function pM(t,e,n){return t.push({key:e,value:n}),n}function dM(t,e,n){for(var i=ZS(t),o=t.scale,r=o.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=(e=r[0],o.count()),c=(u=(0!==e&&1<l&&2<u/l&&(e=Math.round(Math.ceil(e/l)*l)),$S(t)),t=a.get("showMinLabel")||u,a=a.get("showMaxLabel")||u,t&&e!==r[0]&&h(r[0]),e);c<=r[1];c+=l)h(c);function h(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:o.getLabel(e),tickValue:t})}return a&&c-l!==r[1]&&h(r[1]),s}function fM(t,e,n){var i=t.scale,o=ZS(t),r=[];return l.k(i.getTicks(),(function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&r.push(n?s:{formattedLabel:o(t),rawLabel:a,tickValue:s})})),r}var gM=[0,1];function yM(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}function mM(t,e){e=(t[1]-t[0])/e/2,t[0]+=e,t[1]-=e}yM.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]);e=Math.max(e[0],e[1]);return n<=t&&t<=e},yM.prototype.containData=function(t){return this.scale.contain(t)},yM.prototype.getExtent=function(){return this._extent.slice()},yM.prototype.getPixelPrecision=function(t){return ei(t||this.scale.getExtent(),this._extent)},yM.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},yM.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&mM(n=n.slice(),i.count()),Kn(t,gM,n,e)},yM.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&mM(n=n.slice(),i.count()),i=Kn(t,n,gM,e);return this.scale.scale(i)},yM.prototype.pointToData=function(t,e){},yM.prototype.getTicksCoords=function(t){var e,n,i,o,r,a,s,u=(t=t||{}).tickModel||this.getTickModel(),c=lM(this,u).ticks;c=Object(l.H)(c,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),u=u.get("alignWithLabel");function h(t,e){return t=$n(t),e=$n(e),a?e<t:t<e}return e=this,n=c,u=u,t=t.clamp,s=n.length,e.onBand&&!u&&s&&(u=e.getExtent(),1===s?(n[0].coord=u[0],i=n[1]={coord:u[0]}):(r=n[s-1].tickValue-n[0].tickValue,o=(n[s-1].coord-n[0].coord)/r,Object(l.k)(n,(function(t){t.coord-=o/2})),e=1+(r=e.scale.getExtent())[1]-n[s-1].tickValue,i={coord:n[s-1].coord+o*e},n.push(i)),a=u[0]>u[1],h(n[0].coord,u[0])&&(t?n[0].coord=u[0]:n.shift()),t&&h(u[0],n[0].coord)&&n.unshift({coord:u[0]}),h(u[1],i.coord)&&(t?i.coord=u[1]:n.pop()),t&&h(i.coord,u[1])&&n.push({coord:u[1]})),c},yM.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");t=this.scale.getMinorTicks(t=0<t&&t<100?t:5);return Object(l.H)(t,(function(t){return Object(l.H)(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},yM.prototype.getViewLabels=function(){return sM(this).labels},yM.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},yM.prototype.getTickModel=function(){return this.model.getModel("axisTick")},yM.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent();e=e[1]-e[0]+(this.onBand?1:0),0===e&&(e=1),t=Math.abs(t[1]-t[0]);return Math.abs(t)/e},yM.prototype.calculateCategoryInterval=function(){o=(n=d=this).getLabelModel();var t={axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:o.get("rotate")||0,font:o.getFont()},e=ZS(d),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=(o=d.scale).getExtent(),o=o.count();if(i[1]-i[0]<1)return 0;for(var r=1,a=(40<o&&(r=Math.max(1,Math.floor(o/40))),i[0]),s=d.dataToCoord(a+1)-d.dataToCoord(a),l=Math.abs(s*Math.cos(n)),u=(s=Math.abs(s*Math.sin(n)),0),c=0;a<=i[1];a+=r){var h=1.3*(p=In(e({value:a}),t.font,"center","top")).width,p=1.3*p.height;u=Math.max(u,h,7),c=Math.max(c,p,7)}n=u/l,l=c/s,isNaN(n)&&(n=1/0),isNaN(l)&&(l=1/0),s=Math.max(0,Math.floor(Math.min(n,l))),n=aM(d.model),l=d.getExtent();var d=n.lastAutoInterval,f=n.lastTickCount;return null!=d&&null!=f&&Math.abs(d-s)<=1&&Math.abs(f-o)<=1&&s<d&&n.axisExtent0===l[0]&&n.axisExtent1===l[1]?s=d:(n.lastTickCount=o,n.lastAutoInterval=s,n.axisExtent0=l[0],n.axisExtent1=l[1]),s};var vM;Ng=yM;function xM(t,e,n,i,o){return t=vM.call(this,t,e,n)||this,t.index=0,t.type=i||"value",t.position=o||"bottom",t}a(xM,vM=Ng),xM.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},xM.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},xM.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},xM.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var _M=xM;function bM(t,e,n){n=n||{};t=t.coordinateSystem;var i=e.axis,o={},r=i.getAxesOnZeroOf()[0],a=i.position,s=r?"onZero":a,u=(i=i.dim,t=t.getRect(),t=[t.x,t.x+t.width,t.y,t.y+t.height],{left:0,right:1,top:0,bottom:1,onZero:2}),c=e.get("offset")||0,h=(c="x"===i?[t[2]-c,t[3]+c]:[t[0]-c,t[1]+c],r&&(h=r.toGlobalCoord(r.dataToCoord(0)),c[u.onZero]=Math.max(Math.min(h,c[1]),c[0])),o.position=["y"===i?c[u[s]]:t[0],"x"===i?c[u[s]]:t[3]],o.rotation=Math.PI/2*("x"===i?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],o.labelOffset=r?c[u[a]]-c[u.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),l.O(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection),e.get(["axisLabel","rotate"]));return o.labelRotate="top"===s?-h:h,o.z2=1,o}function wM(t){return"cartesian2d"===t.get("coordinateSystem")}function SM(t){var e={xAxisModel:null,yAxisModel:null};return l.k(e,(function(n,i){var o=i.replace(/Model$/,"");o=t.getReferringComponents(o,ji).models[0];e[i]=o})),e}var MM=Math.log;function IM(t,e,n){var i=SS.prototype,o=i.getTicks.call(n),r=i.getTicks.call(n,!0),a=o.length-1,s=(n=i.getInterval.call(n),e=YS(t,e),e.extent),l=e.fixMin,u=(e=e.fixMax,"log"===t.type&&(u=MM(t.base),s=[MM(s[0])/u,MM(s[1])/u]),t.setExtent(s[0],s[1]),t.calcNiceExtent({splitNumber:a,fixMin:l,fixMax:e}),i.getExtent.call(t)),c=(l&&(s[0]=u[0]),e&&(s[1]=u[1]),i.getInterval.call(t)),h=s[0],p=s[1];if(l&&e)c=(p-h)/a;else if(l)for(p=s[0]+c*a;p<s[1]&&isFinite(p)&&isFinite(s[1]);)c=cS(c),p=s[0]+c*a;else if(e)for(h=s[1]-c*a;h>s[0]&&isFinite(h)&&isFinite(s[0]);)c=cS(c),h=s[1]-c*a;else u=(c=a<t.getTicks().length-1?cS(c):c)*a,(h=$n((p=Math.ceil(s[1]/c)*c)-u))<0&&0<=s[0]?(h=0,p=$n(u)):0<p&&s[1]<=0&&(p=0,h=-$n(u));l=(o[0].value-r[0].value)/n,e=(o[a].value-r[a].value)/n,i.setExtent.call(t,h+c*l,p+c*e),i.setInterval.call(t,c),(l||e)&&i.setNiceExtent.call(t,h+c,p-c)}function OM(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=nM,this._initCartesian(t,e,n),this.model=t}function TM(t,e){return t.getCoordSysModel()===e}function CM(t,e,n,i){n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,r=t[e];t=n.model,e=t.get(["axisLine","onZero"]),n=t.get(["axisLine","onZeroAxisIndex"]);if(e){if(null!=n)AM(r[n])&&(o=r[n]);else for(var a in r)if(r.hasOwnProperty(a)&&AM(r[a])&&!i[s(r[a])]){o=r[a];break}o&&(i[s(o)]=!0)}function s(t){return t.dim+"_"+t.index}}function AM(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}OM.prototype.getRect=function(){return this._rect},OM.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=Object(l.F)(t),i=n.length;if(i){for(var o=[],r=i-1;0<=r;r--){var a=t[+n[r]],s=a.model,u=a.scale;lS(u)&&s.get("alignTicks")&&null==s.get("interval")?o.push(a):(US(u,s),lS(u)&&(e=a))}o.length&&(e||US((e=o.pop()).scale,e.model),Object(l.k)(o,(function(t){IM(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var o={};Object(l.k)(n.x,(function(t){CM(n,"y",t,o)})),Object(l.k)(n.y,(function(t){CM(n,"x",t,o)})),this.resize(this.model,e)},OM.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),o=(n=!n&&t.get("containLabel"),ql(i,{width:e.getWidth(),height:e.getHeight()})),r=(this._rect=o,this._axesList);function a(){Object(l.k)(r,(function(t){var e,n,i=t.isHorizontal(),r=i?[0,o.width]:[0,o.height],a=t.inverse?1:0;t.setExtent(r[a],r[1-a]),r=t,e=i?o.x:o.y,a=r.getExtent(),n=a[0]+a[1],r.toGlobalCoord="x"===r.dim?function(t){return t+e}:function(t){return n-t+e},r.toLocalCoord="x"===r.dim?function(t){return t-e}:function(t){return n-t+e}}))}a(),n&&(Object(l.k)(r,(function(t){var e,n,i;t.model.get(["axisLabel","inside"])||(e=KS(t))&&(n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]),o[n]-=e[n]+i,"top"===t.position?o.y+=e.height+i:"left"===t.position&&(o.x+=e.width+i))})),a()),Object(l.k)(this._coordsList,(function(t){t.calcAffineTransform()}))},OM.prototype.getAxis=function(t,e){if(t=this._axesMap[t],null!=t)return t[e||0]},OM.prototype.getAxes=function(){return this._axesList.slice()},OM.prototype.getCartesian=function(t,e){if(null!=t&&null!=e)return this._coordsMap["x"+t+"y"+e];Object(l.A)(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},OM.prototype.getCartesians=function(){return this._coordsList.slice()},OM.prototype.convertToPixel=function(t,e,n){return e=this._findConvertTarget(e),e.cartesian?e.cartesian.dataToPoint(n):e.axis?e.axis.toGlobalCoord(e.axis.dataToCoord(n)):null},OM.prototype.convertFromPixel=function(t,e,n){return e=this._findConvertTarget(e),e.cartesian?e.cartesian.pointToData(n):e.axis?e.axis.coordToData(e.axis.toLocalCoord(n)):null},OM.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,o=t.xAxisModel||i&&i.getReferringComponents("xAxis",ji).models[0],r=t.yAxisModel||i&&i.getReferringComponents("yAxis",ji).models[0],a=(t=t.gridModel,this._coordsList);return i?(e=i.coordinateSystem,Object(l.r)(a,e)<0&&(e=null)):o&&r?e=this.getCartesian(o.componentIndex,r.componentIndex):o?n=this.getAxis("x",o.componentIndex):r?n=this.getAxis("y",r.componentIndex):t&&t.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},OM.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},OM.prototype._initCartesian=function(t,e,n){var i=this,o=this,r={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function u(e){return function(n,i){var l,u;TM(n,t)&&(l=n.get("position"),"x"===e?"top"!==l&&"bottom"!==l&&(l=r.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=r.left?"right":"left"),r[l]=!0,u="category"===(l=new _M(e,XS(n),[0,0],n.get("type"),l)).type,l.onBand=u&&n.get("boundaryGap"),l.inverse=n.get("inverse"),(n.axis=l).model=n,l.grid=o,l.index=i,o._axesList.push(l),a[e][i]=l,s[e]++)}}this._axesMap=a,Object(l.k)(a.x,(function(e,n){Object(l.k)(a.y,(function(o,r){r="x"+n+"y"+r;var a=new rM(r);a.master=i,a.model=t,i._coordsMap[r]=a,i._coordsList.push(a),a.addAxis(e),a.addAxis(o)}))}))},OM.prototype._updateScale=function(t,e){function n(t,e){Object(l.k)(JS(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}Object(l.k)(this._axesList,(function(t){var e;t.scale.setExtent(1/0,-1/0),"category"===t.type&&(e=t.model.get("categorySortInfo"),t.scale.setSortInfo(e))})),t.eachSeries((function(t){var i,o;wM(t)&&(o=(i=SM(t)).xAxisModel,i=i.yAxisModel,TM(o,e)&&TM(i,e)&&(o=this.getCartesian(o.componentIndex,i.componentIndex),i=t.getData(),t=o.getAxis("x"),o=o.getAxis("y"),n(i,t),n(i,o)))}),this)},OM.prototype.getTooltipAxes=function(t){var e=[],n=[];return Object(l.k)(this.getCartesians(),(function(i){var o=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis();i=i.getOtherAxis(o);Object(l.r)(e,o)<0&&e.push(o),Object(l.r)(n,i)<0&&n.push(i)})),{baseAxes:e,otherAxes:n}},OM.create=function(t,e){var n=[];return t.eachComponent("grid",(function(i,o){var r=new OM(i,t,e);r.name="grid_"+o,r.resize(i,e,!0),i.coordinateSystem=r,n.push(r)})),t.eachSeries((function(t){var e,n,i;wM(t)&&(e=(n=SM(t)).xAxisModel,n=n.yAxisModel,i=e.getCoordSysModel().coordinateSystem,t.coordinateSystem=i.getCartesian(e.componentIndex,n.componentIndex))})),n},OM.dimensions=nM;var kM=OM,DM=Math.PI,LM=(PM.prototype.hasBuilder=function(t){return!!jM[t]},PM.prototype.add=function(t){jM[t](this.opt,this.axisModel,this.group,this._transformGroup)},PM.prototype.getGroup=function(){return this.group},PM.innerTextLayout=function(t,e,n){var i;e=ii(e-t),t=oi(e)?(i=0<n?"top":"bottom","center"):oi(e-DM)?(i=0<n?"bottom":"top","center"):(i="middle",0<e&&e<DM?0<n?"right":"left":0<n?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:i}},PM.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},PM.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},PM);function PM(t,e){this.group=new Gn,this.opt=e,this.axisModel=t,Object(l.i)(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}}),t=new Gn({x:e.position[0],y:e.position[1],rotation:e.rotation}),t.updateTransform(),this._transformGroup=t}var jM={axisLine:function(t,e,n,i){var o,r,a,s,u,c=e.get(["axisLine","show"]);(c="auto"===c&&t.handleAutoShown?t.handleAutoShown("axisLine"):c)&&(c=e.axis.getExtent(),i=i.transform,o=[c[0],0],c=[c[1],0],i&&(I(o,o,i),I(c,c,i)),r=Object(l.m)({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),(i=new Dd({subPixelOptimize:!0,shape:{x1:o[0],y1:o[1],x2:c[0],y2:c[1]},style:r,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})).anid="line",n.add(i),null!=(a=e.get(["axisLine","symbol"]))&&(i=e.get(["axisLine","symbolSize"]),Object(l.C)(a)&&(a=[a,a]),(Object(l.C)(i)||Object(l.z)(i))&&(i=[i,i]),e=Xg(e.get(["axisLine","symbolOffset"])||0,i),s=i[0],u=i[1],Object(l.k)([{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]-c[0])*(o[0]-c[0])+(o[1]-c[1])*(o[1]-c[1]))}],(function(e,i){var l;"none"!==a[i]&&null!=a[i]&&(i=Yg(a[i],-s/2,-u/2,s,u,r.stroke,!0),l=e.r+e.offset,i.attr({rotation:e.rotate,x:o[0]+l*Math.cos(t.rotation),y:o[1]-l*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i))}))))},axisTickLabel:function(t,e,n,i){var o,r,a,s,u,c=function(t,e,n,i){var o=n.axis,r=n.getModel("axisTick"),a=r.get("show");if("auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),a&&!o.scale.isBlank()){a=r.getModel("lineStyle"),i=i.tickDirection*r.get("length");for(var s=zM(o.getTicksCoords(),e.transform,i,Object(l.i)(a.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),u=0;u<s.length;u++)t.add(s[u]);return s}}(n,i,e,t),h=function(t,e,n,i){var o,r,a,s,u,c,h,p,d,f=n.axis;if(Object(l.O)(i.axisLabelShow,n.get(["axisLabel","show"]))&&!f.scale.isBlank())return o=n.getModel("axisLabel"),r=o.get("margin"),a=f.getViewLabels(),s=(Object(l.O)(i.labelRotate,o.get("rotate"))||0)*DM/180,u=LM.innerTextLayout(i.rotation,s,i.labelDirection),c=n.getCategories&&n.getCategories(!0),h=[],p=LM.isLabelSilent(n),d=n.get("triggerEvent"),Object(l.k)(a,(function(a,s){var g="ordinal"===f.scale.type?f.scale.getRawOrdinalNumber(a.tickValue):a.tickValue,y=a.formattedLabel,m=a.rawLabel,v=o,x=(c&&c[g]&&(x=c[g],Object(l.A)(x)&&x.textStyle&&(v=new Xs(x.textStyle,o,n.ecModel))),v.getTextColor()||n.get(["axisLine","lineStyle","color"])),_=f.dataToCoord(g);_=new ia({x:_,y:i.labelOffset+i.labelDirection*r,rotation:u.rotation,silent:p,z2:10+(a.level||0),style:ws(v,{text:y,align:v.getShallow("align",!0)||u.textAlign,verticalAlign:v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||u.textVerticalAlign,fill:Object(l.w)(x)?x("category"===f.type?m:"value"===f.type?g+"":g,s):x})});_.anid="label_"+g,d&&((a=LM.makeAxisEventDataBase(n)).targetType="axisLabel",a.value=m,oa(_).eventData=a),e.add(_),_.updateTransform(),h.push(_),t.add(_),_.decomposeTransform()})),h}(n,i,e,t),p=(r=h,c=c,$S((o=e).axis)||(f=o.get(["axisLabel","showMinLabel"]),o=o.get(["axisLabel","showMaxLabel"]),c=c||[],m=(r=r||[])[0],g=r[1],a=r[r.length-1],r=r[r.length-2],s=c[0],y=c[1],u=c[c.length-1],c=c[c.length-2],!1===f?(RM(m),RM(s)):NM(m,g)&&(f?(RM(g),RM(y)):(RM(m),RM(s))),!1===o?(RM(a),RM(u)):NM(r,a)&&(o?(RM(r),RM(c)):(RM(a),RM(u)))),n),d=i,f=e,g=t.tickDirection,y=f.axis,m=f.getModel("minorTick");if(m.get("show")&&!y.scale.isBlank()){var v=y.getMinorTicksCoords();if(v.length){y=m.getModel("lineStyle");for(var x=g*m.get("length"),_=Object(l.i)(y.getLineStyle(),Object(l.i)(f.getModel("axisTick").getLineStyle(),{stroke:f.get(["axisLine","lineStyle","color"])})),b=0;b<v.length;b++)for(var w=zM(v[b],d.transform,x,_,"minorticks_"+b),S=0;S<w.length;S++)p.add(w[S])}}e.get(["axisLabel","hideOverlap"])&&av(iv(Object(l.H)(h,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}}))))},axisName:function(t,e,n,i){var o,r,a,s,u,c,h,p,d=Object(l.O)(t.axisName,e.get("name"));d&&(p=e.get("nameLocation"),u=t.nameDirection,o=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,r=(h=e.axis.getExtent())[0]>h[1]?-1:1,r=["start"===p?h[0]-r*c:"end"===p?h[1]+r*c:(h[0]+h[1])/2,EM(p)?t.labelOffset+u*c:0],null!=(c=e.get("nameRotate"))&&(c=c*DM/180),EM(p)?a=LM.innerTextLayout(t.rotation,null!=c?c:t.rotation,u):(a=function(t,e,n,i){var o;n=ii(n-t),t=i[0]>i[1],i="start"===e&&!t||"start"!==e&&t;return e=oi(n-DM/2)?(o=i?"bottom":"top","center"):oi(n-1.5*DM)?(o=i?"top":"bottom","center"):(o="middle",n<1.5*DM&&DM/2<n?i?"left":"right":i?"right":"left"),{rotation:n,textAlign:e,textVerticalAlign:o}}(t.rotation,p,c||0,h),null!=(s=t.axisNameAvailableWidth)&&(s=Math.abs(s/Math.sin(a.rotation)),isFinite(s)||(s=null))),u=o.getFont(),c=(p=e.get("nameTruncate",!0)||{}).ellipsis,h=Object(l.O)(t.nameTruncateMaxWidth,p.maxWidth,s),Rf({el:t=new ia({x:r[0],y:r[1],rotation:a.rotation,silent:LM.isLabelSilent(e),style:ws(o,{text:d,font:u,overflow:"truncate",width:h,ellipsis:c,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:d}),t.__fullText=d,t.anid="name",e.get("triggerEvent")&&((p=LM.makeAxisEventDataBase(e)).targetType="axisName",p.name=d,oa(t).eventData=p),i.add(t),t.updateTransform(),n.add(t),t.decomposeTransform())}};function RM(t){t&&(t.ignore=!0)}function NM(t,e){var n,i=t&&t.getBoundingRect().clone(),o=e&&e.getBoundingRect().clone();if(i&&o)return n=We([]),Ze(n,n,-t.rotation),i.applyTransform(Ue([],n,t.getLocalTransform())),o.applyTransform(Ue([],n,e.getLocalTransform())),i.intersect(o)}function EM(t){return"middle"===t||"center"===t}function zM(t,e,n,i,o){for(var r=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;u=(a[0]=u,s[a[1]=0]=u,s[1]=n,e&&(I(a,a,e),I(s,s,e)),new Dd({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0}));u.anid=o+"_"+t[l].tickValue,r.push(u)}return r}var BM=LM;function VM(t,e){var n,i,o,r,a,s,u,c={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return n=c,e=e,o=(i=t).getComponent("tooltip"),r=i.getComponent("axisPointer"),a=r.get("link",!0)||[],s=[],Object(l.k)(e.getCoordinateSystems(),(function(t){var e,u,c,h,p;function d(o,c,h){var p,d=h.model.getModel("axisPointer",r),f=d.get("show");f&&("auto"!==f||o||GM(d))&&(null==c&&(c=d.get("triggerTooltip")),f=(d=o?function(t,e,n,i,o,r){var a=e.getModel("axisPointer"),s={};return Object(l.k)(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){s[t]=Object(l.d)(a.get(t))})),s.snap="category"!==t.type&&!!r,"cross"===a.get("type")&&(s.type="line"),e=s.label||(s.label={}),null==e.show&&(e.show=!1),"cross"===o&&(o=a.get(["label","show"]),e.show=null==o||o,r||(o=s.lineStyle=a.get("crossStyle"))&&Object(l.i)(e,o.textStyle)),t.model.getModel("axisPointer",new Xs(s,n,i))}(h,u,r,i,o,c):d).get("snap"),o=WM(h.model),p=c||f||"category"===h.type,c=n.axesInfo[o]={key:o,axis:h,coordSys:t,axisPointerModel:d,triggerTooltip:c,involveSeries:p,snap:f,useHandle:GM(d),seriesModels:[],linkGroup:null},e[o]=c,n.seriesInvolved=n.seriesInvolved||p,null!=(f=function(t,e){for(var n=e.model,i=e.dim,o=0;o<t.length;o++){var r=t[o]||{};if(FM(r[i+"AxisId"],n.id)||FM(r[i+"AxisIndex"],n.componentIndex)||FM(r[i+"AxisName"],n.name))return o}}(a,h))&&((d=s[f]||(s[f]={axesInfo:{}})).axesInfo[o]=c,d.mapper=a[f].mapper,c.linkGroup=d))}t.axisPointerEnabled&&(c=WM(t.model),e=n.coordSysAxesInfo[c]={},u=(n.coordSysMap[c]=t).model.getModel("tooltip",o),Object(l.k)(t.getAxes(),Object(l.h)(d,!1,null)),t.getTooltipAxes&&o&&u.get("show")&&(c="axis"===u.get("trigger"),h="cross"===u.get(["axisPointer","type"]),p=t.getTooltipAxes(u.get(["axisPointer","axis"])),(c||h)&&Object(l.k)(p.baseAxes,Object(l.h)(d,!h||"cross",c)),h&&Object(l.k)(p.otherAxes,Object(l.h)(d,"cross",!1))))})),c.seriesInvolved&&(u=c,t.eachSeries((function(t){var e=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);e&&"none"!==n&&!1!==n&&"item"!==n&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&Object(l.k)(u.coordSysAxesInfo[WM(e.model)],(function(n){var i=n.axis;e.getAxis(i.dim)===i&&(n.seriesModels.push(t),null==n.seriesDataCount&&(n.seriesDataCount=0),n.seriesDataCount+=t.getData().count())}))}))),c}function FM(t,e){return"all"===t||Object(l.t)(t)&&0<=Object(l.r)(t,e)||t===e}function HM(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[WM(t)]}function GM(t){return!!t.get(["handle","show"])}function WM(t){return t.type+"||"+t.id}var YM,UM={};function XM(){var t=null!==YM&&YM.apply(this,arguments)||this;return t.type=XM.type,t}a(XM,YM=xp),XM.prototype.render=function(t,e,n,i){var o,r,a,s,l,u;this.axisPointerClass&&(o=HM(o=t))&&(l=o.axisPointerModel,r=o.axis.scale,a=l.option,u=l.get("status"),null!=(s=l.get("value"))&&(s=r.parse(s)),l=GM(l),null==u&&(a.status=l?"show":"hide"),(u=r.getExtent().slice())[0]>u[1]&&u.reverse(),(s=null==s||s>u[1]?u[1]:s)<u[0]&&(s=u[0]),a.value=s,l&&(a.status=o.axis.scale.isBlank()?"hide":"show")),YM.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},XM.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},XM.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},XM.prototype.dispose=function(t,e){this._disposeAxisPointer(e),YM.prototype.dispose.apply(this,arguments)},XM.prototype._doUpdateAxisPointerClass=function(t,e,n){var i,o=XM.getAxisPointerClass(this.axisPointerClass);o&&((i=(i=HM(i=t))&&i.axisPointerModel)?(this._axisPointer||(this._axisPointer=new o)).render(t,i,e,n):this._disposeAxisPointer(e))},XM.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},XM.registerAxisPointerClass=function(t,e){UM[t]=e},XM.getAxisPointerClass=function(t){return t&&UM[t]},XM.type="axis";var ZM=XM,qM=ki();function KM(t,e,n,i){var o=n.axis;if(!o.scale.isBlank()){n=n.getModel("splitArea");var r=n.getModel("areaStyle"),a=r.get("color"),s=i.coordinateSystem.getRect(),u=o.getTicksCoords({tickModel:n,clamp:!0});if(u.length){var c=a.length,h=qM(t).splitAreaColors,p=l.f(),d=0;if(h)for(var f=0;f<u.length;f++){var g=h.get(u[f].tickValue);if(null!=g){d=(g+(c-1)*f)%c;break}}var y=o.toGlobalCoord(u[0].coord),m=r.getAreaStyle();for(a=l.t(a)?a:[a],f=1;f<u.length;f++){var v=o.toGlobalCoord(u[f].coord),x=void 0,_=void 0,b=void 0,w=void 0;y=o.isHorizontal()?(x=y,_=s.y,w=s.height,x+(b=v-x)):(x=s.x,_=y,b=s.width,_+(w=v-_)),v=u[f-1].tickValue;null!=v&&p.set(v,d),e.add(new Br({anid:null!=v?"area_"+v:null,shape:{x:x,y:_,width:b,height:w},style:l.i({fill:a[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%c}qM(t).splitAreaColors=p}}}function QM(t){qM(t).splitAreaColors=null}var $M,JM=["axisLine","axisTickLabel","axisName"],tI=["splitArea","splitLine","minorSplitLine"];a(eI,$M=ZM),eI.prototype.render=function(t,e,n,i){this.group.removeAll();var o,r,a=this._axisGroup;this._axisGroup=new Gn,this.group.add(this._axisGroup),t.get("show")&&(r=bM(o=t.getCoordSysModel(),t),r=new BM(t,l.m({handleAutoShown:function(e){for(var n=o.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(lS(n[i].getOtherAxis(t.axis).scale))return!0;return!1}},r)),l.k(JM,r.add,r),this._axisGroup.add(r.getGroup()),l.k(tI,(function(e){t.get([e,"show"])&&iI[e](this,this._axisGroup,t,o)}),this),i&&"changeAxisOrder"===i.type&&i.isInitSort||Af(a,this._axisGroup,t),$M.prototype.render.call(this,t,e,n,i))},eI.prototype.remove=function(){QM(this)},eI.type="cartesianAxis",Eg=eI;function eI(){var t=null!==$M&&$M.apply(this,arguments)||this;return t.type=eI.type,t.axisPointerClass="CartesianAxisPointer",t}var nI,iI={splitLine:function(t,e,n,i){var o=n.axis;if(!o.scale.isBlank()){n=n.getModel("splitLine");for(var r=n.getModel("lineStyle"),a=r.get("color"),s=(a=l.t(a)?a:[a],i.coordinateSystem.getRect()),u=o.isHorizontal(),c=0,h=o.getTicksCoords({tickModel:n}),p=[],d=[],f=r.getLineStyle(),g=0;g<h.length;g++){var y=o.toGlobalCoord(h[g].coord),m=(y=(u?(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),c++%a.length),h[g].tickValue);e.add(new Dd({anid:null!=m?"line_"+h[g].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:l.i({stroke:a[y]},f),silent:!0}))}}},minorSplitLine:function(t,e,n,i){var o=n.axis,r=(n=n.getModel("minorSplitLine").getModel("lineStyle"),i.coordinateSystem.getRect()),a=o.isHorizontal(),s=o.getMinorTicksCoords();if(s.length)for(var l=[],u=[],c=n.getLineStyle(),h=0;h<s.length;h++)for(var p=0;p<s[h].length;p++){var d=o.toGlobalCoord(s[h][p].coord);a?(l[0]=d,l[1]=r.y,u[0]=d,u[1]=r.y+r.height):(l[0]=r.x,l[1]=d,u[0]=r.x+r.width,u[1]=d),e.add(new Dd({anid:"minor_line_"+s[h][p].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:c,silent:!0}))}},splitArea:function(t,e,n,i){KM(t,e,n,i)}},oI=(a(rI,nI=Eg),rI.type="xAxis",rI);function rI(){var t=null!==nI&&nI.apply(this,arguments)||this;return t.type=rI.type,t}a(lI,aI=Eg),lI.type="yAxis";var aI,sI=lI;function lI(){var t=null!==aI&&aI.apply(this,arguments)||this;return t.type=oI.type,t}a(hI,uI=xp),hI.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new Br({shape:t.coordinateSystem.getRect(),style:Object(l.i)({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},hI.type="grid";var uI,cI=hI;function hI(){var t=null!==uI&&uI.apply(this,arguments)||this;return t.type="grid",t}var pI,dI={offset:0};function fI(t){t.registerComponentView(cI),t.registerComponentModel(Uw),t.registerCoordinateSystem("cartesian2d",kM),oS(t,"x",Kw,dI),oS(t,"y",Kw,dI),t.registerComponentView(oI),t.registerComponentView(sI),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function gI(t){t.eachSeriesByType("radar",(function(t){var e,n=t.getData(),i=[],o=t.coordinateSystem;o&&(e=o.getIndicatorAxes(),l.k(e,(function(t,r){n.each(n.mapDimension(e[r].dim),(function(t,e){i[e]=i[e]||[],t=o.dataToPoint(t,r),i[e][r]=yI(t)?t:mI(o)}))})),n.each((function(t){var e=l.o(i[t],yI)||mI(o);i[t].push(e.slice()),n.setItemLayout(t,i[t])})))}))}function yI(t){return!isNaN(t[0])&&!isNaN(t[1])}function mI(t){return[t.cx,t.cy]}function vI(t){var e,n=t.polar;n&&(l.t(n)||(n=[n]),e=[],l.k(n,(function(n,i){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),t.radar=t.radar||[],l.t(t.radar)||(t.radar=[t.radar]),t.radar.push(n)):e.push(n)})),t.polar=e),l.k(t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}function xI(){var t=null!==pI&&pI.apply(this,arguments)||this;return t.type=xI.type,t}a(xI,pI=Uf),xI.prototype.render=function(t,e,n){var o=t.coordinateSystem,r=this.group,a=t.getData(),s=this._data;function u(e,n,o,r,a,s){o.removeAll();for(var l=0;l<n.length-1;l++){var u=function(t,e){var n,i=t.getItemVisual(e,"symbol")||"circle";if("none"!==i)return n=Ug(t.getItemVisual(e,"symbolSize")),i=Yg(i,-1,-1,2,2),t=t.getItemVisual(e,"symbolRotate")||0,i.attr({style:{strokeNoScale:!0},z2:100,scaleX:n[0]/2,scaleY:n[1]/2,rotation:t*Math.PI/180||0}),i}(r,a);u&&(e[u.__dimIdx=l]?(u.setPosition(e[l]),i[s?"initProps":"updateProps"](u,{x:n[l][0],y:n[l][1]},t,a)):u.setPosition(n[l]),o.add(u))}}function c(t){return l.H(t,(function(t){return[o.cx,o.cy]}))}a.diff(s).add((function(e){var n,i,o,r,s=a.getItemLayout(e);s&&(n=new Sd,i=new Td,o={shape:{points:s}},n.shape.points=c(s),i.shape.points=c(s),hs(n,o,t,e),hs(i,o,t,e),o=new Gn,r=new Gn,o.add(i),o.add(n),o.add(r),u(i.shape.points,s,r,a,e,!0),a.setItemGraphicEl(e,o))})).update((function(e,n){n=s.getItemGraphicEl(n);var i=n.childAt(0),o=n.childAt(1),r=n.childAt(2),l={shape:{points:a.getItemLayout(e)}};l.shape.points&&(u(i.shape.points,l.shape.points,r,a,e,!1),ys(o),ys(i),cs(i,l,t),cs(o,l,t),a.setItemGraphicEl(e,n))})).remove((function(t){r.remove(s.getItemGraphicEl(t))})).execute(),a.eachItemGraphicEl((function(t,e){var n=a.getItemModel(e),i=t.childAt(0),o=t.childAt(1),s=t.childAt(2),u=a.getItemVisual(e,"style"),c=u.fill,h=(i=(r.add(t),i.useStyle(l.i(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),ns(i,n,"lineStyle"),ns(o,n,"areaStyle"),n.getModel("areaStyle")),i.isEmpty()&&i.parentModel.isEmpty()),p=(i=(o.ignore=h,l.k(["emphasis","select","blur"],(function(t){var e=n.getModel([t,"areaStyle"]);e=e.isEmpty()&&e.parentModel.isEmpty();o.ensureState(t).ignore=e&&h})),o.useStyle(l.i(i.getAreaStyle(),{fill:c,opacity:.7,decal:u.decal})),n.getModel("emphasis")),i.getModel("itemStyle").getItemStyle());s.eachChild((function(t){t instanceof Ar?(i=t.style,t.useStyle(l.m({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},u))):(t.useStyle(u),t.setColor(c),t.style.strokeNoScale=!0),t.ensureState("emphasis").style=l.d(p);var i=a.getStore().get(a.getDimensionIndex(t.__dimIdx),e);null!=i&&!isNaN(i)||(i=""),_s(t,bs(n),{labelFetcher:a.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:i,inheritColor:c,defaultOpacity:u.opacity})})),$a(t,i.get("focus"),i.get("blurScope"),i.get("disabled"))})),this._data=a},xI.prototype.remove=function(){this.group.removeAll(),this._data=null},xI.type="radar";var _I,bI=xI;function wI(){var t=null!==_I&&_I.apply(this,arguments)||this;return t.type=wI.type,t.hasSymbolVisual=!0,t}a(wI,_I=mp),wI.prototype.init=function(t){_I.prototype.init.apply(this,arguments),this.legendVisualProvider=new Aw(l.c(this.getData,this),l.c(this.getRawData,this))},wI.prototype.getInitialData=function(t,e){return Ow(this,{generateCoord:"indicator_",generateCoordCount:1/0})},wI.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.coordinateSystem.getIndicatorAxes(),r=this.getData().getName(t),a=(r=""===r?this.name:r,tp(this,t));return Uh("section",{header:r,sortBlocks:!0,blocks:l.H(o,(function(e){var n=i.get(i.mapDimension(e.dim),t);return Uh("nameValue",{markerType:"subItem",markerColor:a,name:e.name,value:n,sortParam:n})}))})},wI.prototype.getTooltipPosition=function(t){if(null!=t)for(var e,n=this.getData(),i=this.coordinateSystem,o=n.getValues(l.H(i.dimensions,(function(t){return n.mapDimension(t)})),t),r=0,a=o.length;r<a;r++)if(!isNaN(o[r]))return e=i.getIndicatorAxes(),i.coordToPoint(e[r].dataToCoord(o[r]),r)},wI.type="series.radar",wI.dependencies=["radar"],wI.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8};var SI,MI=wI;Ys=$w.value;function II(t,e){return l.i({show:e},t)}function OI(){var t=null!==SI&&SI.apply(this,arguments)||this;return t.type=OI.type,t}a(OI,SI=uu),OI.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),r=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),u=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),h=this.get("triggerEvent"),p=l.H(this.get("indicator")||[],(function(p){null!=p.max&&0<p.max&&!p.min?p.min=0:null!=p.min&&p.min<0&&!p.max&&(p.max=0);var d=a;null!=p.color&&(d=l.i({color:p.color},a)),p=l.I(l.d(p),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:o,axisLabel:r,name:p.text,showName:s,nameLocation:"end",nameGap:c,nameTextStyle:d,triggerEvent:h},!1),s||(p.name=""),l.C(u)?(d=p.name,p.name=u.replace("{value}",null!=d?d:"")):l.w(u)&&(p.name=u(p.name,p)),d=new Xs(p,null,this.ecModel);return l.K(d,Xw.prototype),d.mainType="radar",d.componentIndex=this.componentIndex,d}),this);this._indicatorModels=p},OI.prototype.getIndicatorModels=function(){return this._indicatorModels},OI.type="radar",OI.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:l.I({lineStyle:{color:"#bbb"}},Ys.axisLine),axisLabel:II(Ys.axisLabel,!1),axisTick:II(Ys.axisTick,!1),splitLine:II(Ys.splitLine,!0),splitArea:II(Ys.splitArea,!0),indicator:[]};var TI,CI=OI,AI=["axisLine","axisTickLabel","axisName"];function kI(){var t=null!==TI&&TI.apply(this,arguments)||this;return t.type=kI.type,t}a(kI,TI=xp),kI.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},kI.prototype._buildAxes=function(t){var e=t.coordinateSystem;t=e.getIndicatorAxes(),t=l.H(t,(function(t){var n=t.model.get("showName")?t.name:"";return new BM(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}));l.k(t,(function(t){l.k(AI,t.add,t),this.group.add(t.getGroup())}),this)},kI.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),o=t.getModel("splitLine"),r=(t=t.getModel("splitArea"),o.getModel("lineStyle")),a=t.getModel("areaStyle"),s=o.get("show"),u=t.get("show"),c=(o=r.get("color"),t=a.get("color"),l.t(o)?o:[o]),h=l.t(t)?t:[t],p=[],d=[];if("circle"===i)for(var f=n[0].getTicksCoords(),g=e.cx,y=e.cy,m=0;m<f.length;m++)s&&p[I(p,c,m)].push(new Xp({shape:{cx:g,cy:y,r:f[m].coord}})),u&&m<f.length-1&&d[I(d,h,m)].push(new md({shape:{cx:g,cy:y,r0:f[m].coord,r:f[m+1].coord}}));else{var v,x=l.H(n,(function(t,n){return t=t.getTicksCoords(),v=null==v?t.length-1:Math.min(t.length-1,v),l.H(t,(function(t){return e.coordToPoint(t.coord,n)}))})),_=[];for(m=0;m<=v;m++){for(var b=[],w=0;w<n.length;w++)b.push(x[w][m]);b[0]&&b.push(b[0].slice()),s&&p[I(p,c,m)].push(new Td({shape:{points:b}})),u&&_&&d[I(d,h,m-1)].push(new Sd({shape:{points:b.concat(_)}})),_=b.slice().reverse()}}var S=r.getLineStyle(),M=a.getAreaStyle();l.k(d,(function(t,e){this.group.add(_f(t,{style:l.i({stroke:"none",fill:h[e%h.length]},M),silent:!0}))}),this),l.k(p,(function(t,e){this.group.add(_f(t,{style:l.i({fill:"none",stroke:c[e%c.length]},S),silent:!0}))}),this)}function I(t,e,n){return n%=e.length,t[n]=t[n]||[],n}},kI.type="radar";var DI,LI=kI;function PI(t,e,n){return t=DI.call(this,t,e,n)||this,t.type="value",t.angle=0,t.name="",t}a(PI,DI=Ng);var jI=PI;function RI(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=Object(l.H)(t.getIndicatorModels(),(function(t,e){e="indicator_"+e;var n=new jI(e,new SS);return n.name=t.get("name"),(n.model=t).axis=n,this.dimensions.push(e),n}),this),this.resize(t,n)}RI.prototype.getIndicatorAxes=function(){return this._indicatorAxes},RI.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},RI.prototype.coordToPoint=function(t,e){return e=this._indicatorAxes[e].angle,[this.cx+t*Math.cos(e),this.cy-t*Math.sin(e)]},RI.prototype.pointToData=function(t){for(var e,n=t[0]-this.cx,i=(t=t[1]-this.cy,Math.sqrt(n*n+t*t)),o=(n/=i,t/=i,Math.atan2(-t,n)),r=1/0,a=-1,s=0;s<this._indicatorAxes.length;s++){var l=this._indicatorAxes[s],u=Math.abs(o-l.angle);u<r&&(e=l,a=s,r=u)}return[a,+(e&&e.coordToData(i))]},RI.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),o=(e=e.getHeight(),Math.min(i,e)/2);this.cx=Qn(n[0],i),this.cy=Qn(n[1],e),this.startAngle=t.get("startAngle")*Math.PI/180,i=t.get("radius");(Object(l.C)(i)||Object(l.z)(i))&&(i=[0,i]),this.r0=Qn(i[0],o),this.r=Qn(i[1],o),Object(l.k)(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r),e=this.startAngle+e*Math.PI*2/this._indicatorAxes.length,e=Math.atan2(Math.sin(e),Math.cos(e)),t.angle=e}),this)},RI.prototype.update=function(t,e){var n=this._indicatorAxes,i=this._model,o=(Object(l.k)(n,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,o){var r;"radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===i&&(r=e.getData(),Object(l.k)(n,(function(t){t.scale.unionExtentFromData(r,r.mapDimension(t.dim))})))}),this),i.get("splitNumber")),r=new SS;r.setExtent(0,o),r.setInterval(1),Object(l.k)(n,(function(t,e){IM(t.scale,t.model,r)}))},RI.prototype.convertToPixel=function(t,e,n){return null},RI.prototype.convertFromPixel=function(t,e,n){return null},RI.prototype.containPoint=function(t){return!1},RI.create=function(t,e){var n=[];return t.eachComponent("radar",(function(t){var i=new RI(t,0,e);n.push(i),t.coordinateSystem=i})),t.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("radarIndex")||0])})),n},RI.dimensions=[];var NI=RI;function EI(t){t.registerCoordinateSystem("radar",NI),t.registerComponentModel(CI),t.registerComponentView(LI),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each((function(t){e.setItemVisual(t,"legendIcon","roundRect")})),e.setVisual("legendIcon","roundRect")}})}var zI,BI="\0_ec_interaction_mutex";function VI(t,e){return FI(t)[e]}function FI(t){return t[BI]||(t[BI]={})}function HI(t){var e=zI.call(this)||this,n=(e._zr=t,Object(l.c)(e._mousedownHandler,e)),i=Object(l.c)(e._mousemoveHandler,e),o=Object(l.c)(e._mouseupHandler,e),r=Object(l.c)(e._mousewheelHandler,e),a=Object(l.c)(e._pinchHandler,e);return e.enable=function(e,s){this.disable(),this._opt=Object(l.i)(Object(l.d)(s)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),!0!==(e=null==e||e)&&"move"!==e&&"pan"!==e||(t.on("mousedown",n),t.on("mousemove",i),t.on("mouseup",o)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",r),t.on("pinch",a))},e.disable=function(){t.off("mousedown",n),t.off("mousemove",i),t.off("mouseup",o),t.off("mousewheel",r),t.off("pinch",a)},e}function GI(t,e,n,i,o){t.pointerChecker&&t.pointerChecker(i,o.originX,o.originY)&&(Z(i.event),WI(t,e,n,i,o))}function WI(t,e,n,i,o){o.isAvailableBehavior=Object(l.c)(YI,null,n,i),t.trigger(e,o)}function YI(t,e,n){return n=n[t],!t||n&&(!Object(l.C)(n)||e.event[n+"Key"])}Cm({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},l.L),a(HI,zI=L),HI.prototype.isDragging=function(){return this._dragging},HI.prototype.isPinching=function(){return this._pinching},HI.prototype.setPointerChecker=function(t){this.pointerChecker=t},HI.prototype.dispose=function(){this.disable()},HI.prototype._mousedownHandler=function(t){var e,n;q(t)||t.target&&t.target.draggable||(e=t.offsetX,n=t.offsetY,this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0))},HI.prototype._mousemoveHandler=function(t){var e,n,i,o,r,a;this._dragging&&YI("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!VI(this._zr,"globalPan")&&(e=t.offsetX,n=t.offsetY,r=e-(i=this._x),a=n-(o=this._y),this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&Z(t.event),WI(this,"pan","moveOnMouseMove",t,{dx:r,dy:a,oldX:i,oldY:o,newX:e,newY:n,isAvailableBehavior:null}))},HI.prototype._mouseupHandler=function(t){q(t)||(this._dragging=!1)},HI.prototype._mousewheelHandler=function(t){var e=YI("zoomOnMouseWheel",t,this._opt),n=YI("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),r=t.offsetX,a=t.offsetY;0!==i&&(e||n)&&(e&&(e=3<o?1.4:1<o?1.2:1.1,GI(this,"zoom","zoomOnMouseWheel",t,{scale:0<i?e:1/e,originX:r,originY:a,isAvailableBehavior:null})),n&&GI(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(0<i?1:-1)*(3<(o=Math.abs(i))?.4:1<o?.15:.05),originX:r,originY:a,isAvailableBehavior:null}))},HI.prototype._pinchHandler=function(t){VI(this._zr,"globalPan")||GI(this,"zoom",null,t,{scale:1<t.pinchScale?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})};var UI=HI;function XI(t,e,n){t=t.target,t.x+=e,t.y+=n,t.dirty()}function ZI(t,e,n,i){var o=t.target,r=t.zoomLimit,a=t.zoom=t.zoom||1;a*=e,r&&(e=r.min||0,r=r.max||1/0,a=Math.max(Math.min(r,a),e)),r=a/t.zoom;t.zoom=a,o.x-=(n-o.x)*(r-1),o.y-=(i-o.y)*(r-1),o.scaleX*=r,o.scaleY*=r,o.dirty()}var qI,KI={axisPointer:1,tooltip:1,brush:1};function QI(t,e,n){return e=e.getComponentByElement(t.topTarget),t=e&&e.coordinateSystem,e&&e!==n&&!KI.hasOwnProperty(e.mainType)&&t&&t.model!==n}function $I(t){var e=t=Object(l.C)(t)?(new DOMParser).parseFromString(t,"text/xml"):t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var JI={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},tO=Object(l.F)(JI),eO={"alignment-baseline":"textBaseline","stop-color":"stopColor"},nO=Object(l.F)(eO),iO=(oO.prototype.parse=function(t,e){e=e||{};t=$I(t);for(var n,i,o=(this._defsUsePending=[],new Gn),r=(this._root=o,[]),a=t.getAttribute("viewBox")||"",s=parseFloat(t.getAttribute("width")||e.width),l=parseFloat(t.getAttribute("height")||e.height),u=(isNaN(s)&&(s=null),isNaN(l)&&(l=null),cO(t,o,null,!0,!1),t.firstChild);u;)this._parseNode(u,o,r,null,!1,!1),u=u.nextSibling;for(var c=this._defs,h=this._defsUsePending,p=0;p<h.length;p++){var d=h[p];d[0].style[d[1]]=c[d[2]]}return this._defsUsePending=[],(n=a&&4<=(t=fO(a)).length?{x:parseFloat(t[0]||0),y:parseFloat(t[1]||0),width:parseFloat(t[2]),height:parseFloat(t[3])}:n)&&null!=s&&null!=l&&(i=xO(n,{x:0,y:0,width:s,height:l}),e.ignoreViewBox||(a=o,(o=new Gn).add(a),a.scaleX=a.scaleY=i.scale,a.x=i.x,a.y=i.y)),e.ignoreRootClip||null==s||null==l||o.setClipPath(new Br({shape:{x:0,y:0,width:s,height:l}})),{root:o,width:s,height:l,viewBoxRect:n,viewBoxTransform:i,named:r}},oO.prototype._parseNode=function(t,e,n,i,o,r){var a,s,u=t.nodeName.toLowerCase(),c=i;if("defs"===u&&(o=!0),"text"===u&&(r=!0),"defs"===u||"switch"===u?a=e:(o||(s=qI[u])&&Object(l.q)(qI,u)&&(a=s.call(this,t,e),(s=t.getAttribute("name"))?(n.push(s={name:s,namedFrom:null,svgNodeTagLower:u,el:a}),"g"===u&&(c=s)):i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:u,el:a}),e.add(a)),(s=rO[u])&&Object(l.q)(rO,u)&&(i=s.call(this,t),(e=t.getAttribute("id"))&&(this._defs[e]=i))),a&&a.isGroup)for(var h=t.firstChild;h;)1===h.nodeType?this._parseNode(h,a,n,c,o,r):3===h.nodeType&&r&&this._parseText(h,a),h=h.nextSibling},oO.prototype._parseText=function(t,e){var n=new Mr({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0}),i=(t=(lO(e,n),cO(t,n,this._defsUsePending,!1,!1),n),e),o=i.__selfStyle,r=(o=(o&&(o=o.textBaseline,(r=o)&&"auto"!==o&&"baseline"!==o?"before-edge"===o||"text-before-edge"===o?r="top":"after-edge"===o||"text-after-edge"===o?r="bottom":"central"!==o&&"mathematical"!==o||(r="middle"):r="alphabetic",t.style.textBaseline=r),(o=i.__inheritedStyle)&&(r=o.textAlign,(i=r)&&("middle"===r&&(i="center"),t.style.textAlign=i)),n.style),o.fontSize);r&&r<9&&(o.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9),t=(o.fontSize||o.fontFamily)&&[o.fontStyle,o.fontWeight,(o.fontSize||12)+"px",o.fontFamily||"sans-serif"].join(" "),o.font=t,i=n.getBoundingRect();return this._textX+=i.width,e.add(n),n},oO.internalField=void(qI={g:function(t,e){var n=new Gn;return lO(e,n),cO(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Br;return lO(e,n),cO(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new Xp;return lO(e,n),cO(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Dd;return lO(e,n),cO(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new Kp;return lO(e,n),cO(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=uO(i)),i=new Sd({shape:{points:n||[]},silent:!0});return lO(e,i),cO(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=uO(i)),i=new Td({shape:{points:n||[]},silent:!0});return lO(e,i),cO(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new Ar;return lO(e,n),cO(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",o=t.getAttribute("dx")||"0",r=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(o),this._textY=parseFloat(i)+parseFloat(r),n=new Gn;return lO(e,n),cO(t,n,this._defsUsePending,!1,!0),n},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y"),o=(n=(null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i)),t.getAttribute("dx")||"0"),i=t.getAttribute("dy")||"0",new Gn);return lO(e,o),cO(t,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(i),o},path:function(t,e){var n=Fp(t.getAttribute("d")||"");return lO(e,n),cO(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),oO);function oO(){this._defs={},this._root=null}var rO={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),o=parseInt(t.getAttribute("y2")||"0",10);e=new qd(e,n,i,o);return aO(t,e),sO(t,e),e},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10);e=new Qd(e,n,i);return aO(t,e),sO(t,e),e}};function aO(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function sO(t,e){for(var n,i,o=t.firstChild;o;)1===o.nodeType&&"stop"===o.nodeName.toLocaleLowerCase()&&(n=void 0,n=(i=o.getAttribute("offset"))&&0<i.indexOf("%")?parseInt(i,10)/100:i?parseFloat(i):0,vO(o,i={},i),i=i.stopColor||o.getAttribute("stop-color")||"#000000",e.colorStops.push({offset:n,color:i})),o=o.nextSibling}function lO(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Object(l.i)(e.__inheritedStyle,t.__inheritedStyle))}function uO(t){for(var e=fO(t),n=[],i=0;i<e.length;i+=2){var o=parseFloat(e[i]),r=parseFloat(e[i+1]);n.push([o,r])}return n}function cO(t,e,n,i,o){var r=e,a=r.__inheritedStyle=r.__inheritedStyle||{},s={};if(1===t.nodeType){var u=t;if(u=u.getAttribute("transform")){u=u.replace(/,/g," ");var c=[],h=null;u.replace(gO,(function(t,e,n){return c.push(e,n),""}));for(var p=c.length-1;0<p;p-=2){var d=c[p],f=c[p-1],g=fO(d);switch(h=h||Ge(),f){case"translate":Xe(h,h,[parseFloat(g[0]),parseFloat(g[1]||"0")]);break;case"scale":qe(h,h,[parseFloat(g[0]),parseFloat(g[1]||g[0])]);break;case"rotate":Ze(h,h,-parseFloat(g[0])*yO);break;case"skewX":var y=Math.tan(parseFloat(g[0])*yO);Ue(h,[1,0,y,1,0,0],h);break;case"skewY":y=Math.tan(parseFloat(g[0])*yO),Ue(h,[1,y,0,1,0,0],h);break;case"matrix":h[0]=parseFloat(g[0]),h[1]=parseFloat(g[1]),h[2]=parseFloat(g[2]),h[3]=parseFloat(g[3]),h[4]=parseFloat(g[4]),h[5]=parseFloat(g[5])}}e.setLocalTransform(h)}if(vO(t,a,s),!i){for(var m=t,v=a,x=s,_=0;_<tO.length;_++){var b=tO[_];null!=(w=m.getAttribute(b))&&(v[JI[b]]=w)}for(_=0;_<nO.length;_++){var w;b=nO[_];null!=(w=m.getAttribute(b))&&(x[eO[b]]=w)}}}r.style=r.style||{},null!=a.fill&&(r.style.fill=pO(r,"fill",a.fill,n)),null!=a.stroke&&(r.style.stroke=pO(r,"stroke",a.stroke,n)),Object(l.k)(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=a[t]&&(r.style[t]=parseFloat(a[t]))})),Object(l.k)(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=a[t]&&(r.style[t]=a[t])})),o&&(r.__selfStyle=s),a.lineDash&&(r.style.lineDash=Object(l.H)(fO(a.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(r.invisible=!0),"none"===a.display&&(r.ignore=!0)}var hO=/^url\(\s*#(.*?)\)/;function pO(t,e,n,i){var o=n&&n.match(hO);return o?(o=Object(l.T)(o[1]),void i.push([t,e,o])):"none"===n?null:n}var dO=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function fO(t){return t.match(dO)||[]}var gO=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,yO=Math.PI/180,mO=/([^\s:;]+)\s*:\s*([^:;]+)/g;function vO(t,e,n){var i,o=t.getAttribute("style");if(o)for(mO.lastIndex=0;null!=(i=mO.exec(o));){var r=i[1],a=Object(l.q)(JI,r)?JI[r]:null;a=(a&&(e[a]=i[2]),Object(l.q)(eO,r)?eO[r]:null);a&&(n[a]=i[2])}}function xO(t,e){var n=e.width/t.width,i=e.height/t.height;n=Math.min(n,i);return{scale:n,x:-(t.x+t.width/2)*n+(e.x+e.width/2),y:-(t.y+t.height/2)*n+(e.y+e.height/2)}}var _O=1e-8;function bO(t,e){return Math.abs(t-e)<_O}function wO(t,e,n){var i=0,o=t[0];if(!o)return!1;for(var r=1;r<t.length;r++){var a=t[r];i+=ar(o[0],o[1],a[0],a[1],e,n),o=a}var s=t[0];return bO(o[0],s[0])&&bO(o[1],s[1])||(i+=ar(o[0],o[1],s[0],s[1],e,n)),0!==i}var SO=[];function MO(t,e){for(var n=0;n<t.length;n++)I(t[n],t[n],e)}function IO(t,e,n,i){for(var o=0;o<t.length;o++){var r=t[o];(r=i?i.project(r):r)&&isFinite(r[0])&&isFinite(r[1])&&(O(e,e,r),T(n,n,r))}}function OO(t){this.name=t}OO.prototype.setCenter=function(t){this._center=t},OO.prototype.getCenter=function(){return this._center||(this._center=this.calcCenter())},cl=OO;var TO,CO=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},AO=function(t){this.type="linestring",this.points=t},kO=(a(DO,TO=cl),DO.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var o=e[i],r=o.exterior;r=r&&r.length;n<r&&(t=o,n=r)}if(t){for(var a=t.exterior,s=0,l=0,u=0,c=a.length,h=a[c-1][0],p=a[c-1][1],d=0;d<c;d++){var f=a[d][0],g=a[d][1],y=h*g-f*p;s+=y,l+=(h+f)*y,u+=(p+g)*y,h=f,p=g}return s?[l/s/3,u/s/3,s]:[a[0][0]||0,a[0][1]||0]}var m=this.getBoundingRect();return[m.x+m.width/2,m.y+m.height/2]},DO.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return Object(l.k)(o,(function(e){"polygon"===e.type?IO(e.exterior,n,i,t):Object(l.k)(e.points,(function(e){IO(e,n,i,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),e=new xn(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=e),e},DO.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,o=n.length;i<o;i++){var r=n[i];if("polygon"===r.type){var a=r.exterior,s=r.interiors;if(wO(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(wO(s[l],t[0],t[1]))continue t;return!0}}}return!1},DO.prototype.transformTo=function(t,e,n,i){for(var o=this.getBoundingRect(),r=o.width/o.height,a=(r=(n?i=i||n/r:n=r*i,new xn(t,e,n,i)),o.calculateTransform(r)),s=this.geometries,u=0;u<s.length;u++){var c=s[u];"polygon"===c.type?(MO(c.exterior,a),Object(l.k)(c.interiors,(function(t){MO(t,a)}))):Object(l.k)(c.points,(function(t){MO(t,a)}))}(o=this._rect).copy(r),this._center=[o.x+o.width/2,o.y+o.height/2]},DO.prototype.cloneShallow=function(t){return t=new DO(t=null==t?this.name:t,this.geometries,this._center),t._rect=this._rect,t.transformTo=null,t},DO);function DO(t,e,n){return t=TO.call(this,t)||this,t.type="geoJSON",t.geometries=e,t._center=n&&[n[0],n[1]],t}a(jO,LO=cl),jO.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=(e=[e.x+e.width/2,e.y+e.height/2],We(SO)),i=t;i&&!i.isGeoSVGGraphicRoot;)Ue(n,i.getLocalTransform(),n),i=i.parent;return Ke(n,n),I(e,e,n),e};var LO,PO=jO;function jO(t,e){return t=LO.call(this,t)||this,t.type="geoSVG",t._elOnlyForCalculate=e,t}var RO=Object(l.f)(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),NO=(EO.prototype.load=function(){var t,e,n,i;return this._firstGraphic||(e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone(),e=e.named,n=[],i=Object(l.f)(),Object(l.k)(e,(function(t){var e;null==t.namedFrom&&(e=new PO(t.name,t.el),n.push(e),i.set(t.name,e))})),t=(e={regions:n,regionsMap:i}).regionsMap,this._regions=e.regions,this._regionsMap=t),{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},EO.prototype._buildGraphic=function(t){var e,n,i,o;try{n=(e=t&&(i=t,o={ignoreViewBox:!0,ignoreRootClip:!0},(new iO).parse(i,o))||{}).root,Object(l.b)(null!=n)}catch(t){throw new Error("Invalid svg format\n"+t.message)}t=new Gn;var r,a,s,u,c=(t.add(n),t.isGeoSVGGraphicRoot=!0,e.width),h=e.height,p=e.viewBoxRect,d=this._boundingRect,f=(d||(u=s=a=r=void 0,null!=c?(r=0,s=c):p&&(r=p.x,s=p.width),null!=h?(a=0,u=h):p&&(a=p.y,u=p.height),null!=r&&null!=a||(c=n.getBoundingRect(),null==r&&(r=c.x,s=c.width),null==a&&(a=c.y,u=c.height)),d=this._boundingRect=new xn(r,a,s,u)),p&&(h=xO(p,d),n.scaleX=n.scaleY=h.scale,n.x=h.x,n.y=h.y),t.setClipPath(new Br({shape:d.plain()})),[]);return Object(l.k)(e.named,(function(t){null!=RO.get(t.svgNodeTagLower)&&(f.push(t),(t=t.el).silent=!1,t.isGroup&&t.traverse((function(t){t.silent=!1})))})),{root:t,boundingRect:d,named:f}},EO.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},EO.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},EO);function EO(t,e){this.type="geoSVG",this._usedGraphicMap=Object(l.f)(),this._freedGraphics=[],this._mapName=t,this._parsedXML=$I(e)}function zO(t,e,n){for(var i=0;i<t.length;i++)t[i]=BO(t[i],e[i],n)}function BO(t,e,n){for(var i=[],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);s+=o,l+=r,i.push([(o=s)/n,(r=l)/n])}return i}function VO(t,e){return t=function(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale,n=(null==e&&(e=1024),t.features);return l.k(n,(function(t){var n=t.geometry,i=n.encodeOffsets,o=n.coordinates;if(i)switch(n.type){case"LineString":n.coordinates=BO(o,i,e);break;case"Polygon":case"MultiLineString":zO(o,i,e);break;case"MultiPolygon":l.k(o,(function(t,n){return zO(t,i[n],e)}))}})),t.UTF8Encoding=!1,t}(t),l.H(l.n(t.features,(function(t){return t.geometry&&t.properties&&0<t.geometry.coordinates.length})),(function(t){var n=t.properties,i=t.geometry,o=[];switch(i.type){case"Polygon":var r=i.coordinates;o.push(new CO(r[0],r.slice(1)));break;case"MultiPolygon":l.k(i.coordinates,(function(t){t[0]&&o.push(new CO(t[0],t.slice(1)))}));break;case"LineString":o.push(new AO([i.coordinates]));break;case"MultiLineString":o.push(new AO(i.coordinates))}return t=new kO(n[e||"name"],o,n.cp),t.properties=n,t}))}for(var FO=[126,25],HO=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],GO=0;GO<HO.length;GO++)for(var WO=0;WO<HO[GO].length;WO++)HO[GO][WO][0]/=10.5,HO[GO][WO][1]/=-14,HO[GO][WO][0]+=FO[0],HO[GO][WO][1]+=FO[1];var YO={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]},UO=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];ZO.prototype.load=function(t,e){var n,i=this._parsedMap.get(e=e||"name"),o=(i||(n=this._parseToRegions(e),i=this._parsedMap.set(e,{regions:n,boundingRect:function(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();(e=e||i.clone()).union(i)}return e}(n)})),Object(l.f)()),r=[];return Object(l.k)(i.regions,(function(e){var n=e.name;t&&Object(l.q)(t,n)&&(e=e.cloneShallow(n=t[n])),r.push(e),o.set(n,e)})),{regions:r,boundingRect:i.boundingRect||new xn(0,0,0,0),regionsMap:o}},ZO.prototype._parseToRegions=function(t){var e,n=this._mapName,i=this._geoJSON;try{e=i?VO(i,t):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return function(t,e){if("china"===t){for(var n=0;n<e.length;n++)if("南海诸岛"===e[n].name)return;e.push(new kO("南海诸岛",l.H(HO,(function(t){return{type:"polygon",exterior:t}})),FO))}}(n,e),Object(l.k)(e,(function(t){var e,i,o=t.name,r=(r=t,"china"===(i=n)&&(i=YO[r.name])&&((e=r.getCenter())[0]+=i[0]/10.5,e[1]+=-i[1]/14,r.setCenter(e)),i=t,"china"===n&&"台湾"===i.name&&i.geometries.push({type:"polygon",exterior:UO[0]}),this._specialAreas&&this._specialAreas[o]);r&&t.transformTo(r.left,r.top,r.width,r.height)}),this),e},ZO.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}};var XO=ZO;function ZO(t,e,n){this.type="geoJSON",this._parsedMap=Object(l.f)(),this._mapName=t,this._specialAreas=n,this._geoJSON=(t=e,Object(l.C)(t)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t)}var qO=Object(l.f)(),KO={registerMap:function(t,e,n){var i;e=e.svg?new NO(t,e.svg):((i=e.geoJson||e.geoJSON)&&!e.features?n=e.specialAreas:i=e,new XO(t,i,n)),qO.set(t,e)},getGeoResource:function(t){return qO.get(t)},getMapForUser:function(t){return t=qO.get(t),t&&"geoJSON"===t.type&&t.getMapForUser()},load:function(t,e,n){if(t=qO.get(t),t)return t.load(e,n)}},QO=(zs=["rect","circle","line","ellipse","polygon","polyline","path"],l.f(zs)),$O=l.f(zs.concat(["g"])),JO=l.f(zs.concat(["g"])),tT=ki();function eT(t){var e=t.getItemStyle();t=t.get("areaColor");return null!=t&&(e.fill=t),e}function nT(t){t=t.style,t&&(t.stroke=t.stroke||t.fill,t.fill=null)}function iT(t){var e=new Gn;this.uid=qs("ec_map_draw"),this._controller=new UI(t.getZr()),this._controllerHost={target:e},(this.group=e).add(this._regionsGroup=new Gn),e.add(this._svgGroup=new Gn)}function oT(t,e,n,i){var o,r=i.getModel("itemStyle"),a=i.getModel(["emphasis","itemStyle"]),s=i.getModel(["blur","itemStyle"]),l=(i=i.getModel(["select","itemStyle"]),r=eT(r),a=eT(a),i=eT(i),s=eT(s),t.data);l&&(o=l.getItemVisual(n,"style"),l=l.getItemVisual(n,"decal"),t.isVisualEncodedByVisualMap&&o.fill&&(r.fill=o.fill),l&&(r.decal=by(l,t.api))),e.setStyle(r),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=a,e.ensureState("select").style=i,e.ensureState("blur").style=s,Na(e)}function rT(t,e,n,i,o,r,a){var s=t.data,l=(t=t.isGeo,s&&isNaN(s.get(s.mapDimension("value"),r))),u=s&&s.getItemLayout(r);t||l||u&&u.showLabel?(l=t?n:r,u=!s||0<=r?o:void 0,t=a?{normal:{align:"center",verticalAlign:"middle"}}:null,_s(e,bs(i),{labelFetcher:u,labelDataIndex:l,defaultText:n},t),(s=e.getTextContent())&&(tT(s).ignore=s.ignore,e.textConfig&&a&&(r=e.getBoundingRect().clone(),e.textConfig.layoutRect=r,e.textConfig.position=[(a[0]-r.x)/r.width*100+"%",(a[1]-r.y)/r.height*100+"%"])),e.disableLabelAnimation=!0):(e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null)}function aT(t,e,n,i,o,r){t.data?t.data.setItemGraphicEl(r,e):oa(e).eventData={componentType:"geo",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:n,region:i&&i.option||{}}}function sT(t,e,n,i,o){t.data||Rf({el:e,componentModel:o,itemName:n,itemTooltipOption:i.get("tooltip")})}function lT(t,e,n,i,o){e.highDownSilentOnTouch=!!o.get("selectedMode");i=i.getModel("emphasis");var r=i.get("focus");return $a(e,r,i.get("blurScope"),i.get("disabled")),t.isGeo&&(i=o,t=n,(o=oa(o=e)).componentMainType=i.mainType,o.componentIndex=i.componentIndex,o.componentHighDownName=t),r}function uT(t,e,n){var i,o=[];function r(){i=[]}function a(){i.length&&(o.push(i),i=[])}var s=e({polygonStart:r,polygonEnd:a,lineStart:r,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return n||s.polygonStart(),l.k(t,(function(t){s.lineStart();for(var e=0;e<t.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()})),n||s.polygonEnd(),o}iT.prototype.draw=function(t,e,n,i,o){var r="geo"===t.mainType,a=t.getData&&t.getData(),s=(r&&e.eachComponent({mainType:"series",subType:"map"},(function(e){a||e.getHostGeoModel()!==t||(a=e.getData())})),t.coordinateSystem),l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),h=c.raw;c=c.roam,!l.childAt(0)||o?(u.x=c.x,u.y=c.y,u.scaleX=c.scaleX,u.scaleY=c.scaleY,u.dirty()):cs(u,c,t),o=a&&a.getVisual("visualMeta")&&0<a.getVisual("visualMeta").length,u={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:o,isGeo:r,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(u):"geoSVG"===s.resourceType&&this._buildSVG(u),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},iT.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=l.f(),n=l.f(),i=this._regionsGroup,o=t.transformInfoRaw,r=t.mapOrGeoModel,a=t.data,s=t.geo.projection,u=s&&s.stream;function c(t,e){return(t=e?e(t):t)&&[t[0]*o.scaleX+o.x,t[1]*o.scaleY+o.y]}function h(t){return{shape:{points:function(t){for(var e=[],n=!u&&s&&s.project,i=0;i<t.length;++i){var o=c(t[i],n);o&&e.push(o)}return e}(t)}}}i.removeAll(),l.k(t.geo.regions,(function(o){var p=o.name,d=e.get(p),f=n.get(p)||{},g=f.dataIdx,y=f.regionModel,m=(d||(d=e.set(p,new Gn),i.add(d),g=a?a.indexOfName(p):null,y=t.isGeo?r.getRegionModel(p):a?a.getItemModel(g):null,n.set(p,{dataIdx:g,regionModel:y})),[]),v=[],x=(l.k(o.geometries,(function(t){var e;"polygon"===t.type?(e=[t.exterior].concat(t.interiors||[]),u&&(e=uT(e,u)),l.k(e,(function(t){m.push(new Sd(h(t)))}))):(e=t.points,u&&(e=uT(e,u,!0)),l.k(e,(function(t){v.push(new Td(h(t)))})))})),c(o.getCenter(),s&&s.project));function _(e,n){e.length&&(e=new Wd({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}}),d.add(e),oT(t,e,g,y),rT(t,e,p,y,r,g,x),n&&(nT(e),l.k(e.states,nT)))}_(m),_(v,!0)})),e.each((function(e,i){var o=n.get(i),a=o.dataIdx;o=o.regionModel;aT(t,e,i,o,r,a),sT(t,e,i,o,r),lT(t,e,i,o,r)}),this)},iT.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw,i=(this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e)),this._svgDispatcherMap=l.f()),o=!1;l.k(this._svgGraphicRecord.named,(function(e){var n=e.name,r=t.mapOrGeoModel,a=t.data,s=e.svgNodeTagLower,l=e.el,u=(a=a?a.indexOfName(n):null,r.getRegionModel(n));null!=QO.get(s)&&l instanceof So&&oT(t,l,a,u),l instanceof So&&(l.culling=!0),l.z2EmphasisLift=0,e.namedFrom||(null!=JO.get(s)&&rT(t,l,n,u,r,a,null),aT(t,l,n,u,r,a),sT(t,l,n,u,r),null!=$O.get(s)&&("self"===lT(t,l,n,u,r)&&(o=!0),(i.get(n)||i.set(n,[])).push(l)))}),this),this._enableBlurEntireSVG(o,t)},iT.prototype._enableBlurEntireSVG=function(t,e){var n;t&&e.isGeo&&(n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity,this._svgGraphicRecord.root.traverse((function(t){var e;t.isGroup||(Na(t),null==(e=t.ensureState("blur").style||{}).opacity&&null!=n&&(e.opacity=n),t.ensureState("emphasis"))})))},iT.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},iT.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];if(e=e.coordinateSystem,"geoJSON"===e.resourceType){var n=this._regionsGroupByName;if(n)return(n=n.get(t))?[n]:[]}else if("geoSVG"===e.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},iT.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},iT.prototype._useSVG=function(t){var e=KO.getGeoResource(t);e&&"geoSVG"===e.type&&(e=e.useGraphic(this.uid),this._svgGroup.add(e.root),this._svgGraphicRecord=e,this._svgMapName=t)},iT.prototype._freeSVG=function(){var t=this._svgMapName;null!=t&&((t=KO.getGeoResource(t))&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null)},iT.prototype._updateController=function(t,e,n){var i=t.coordinateSystem,o=this._controller,r=this._controllerHost,a=(r.zoomLimit=t.get("scaleLimit"),r.zoom=i.getZoom(),o.enable(t.get("roam")||!1),t.mainType);function s(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=t.id,e}o.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,XI(r,t.dx,t.dy),n.dispatchAction(l.m(s(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),o.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,ZI(r,t.scale,t.originX,t.originY),n.dispatchAction(l.m(s(),{zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this),o.setPointerChecker((function(e,o,r){return i.containPoint([o,r])&&!QI(e,n,t)}))},iT.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){t=t.getTextContent(),t&&(t.ignore=tT(t).ignore)}))},iT.prototype._updateMapSelectHandler=function(t,e,n,i){var o=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){o._mouseDownFlag=!0})),e.on("click",(function(t){o._mouseDownFlag&&(o._mouseDownFlag=!1)})))};var cT,hT=iT;function pT(){var t=null!==cT&&cT.apply(this,arguments)||this;return t.type=pT.type,t}a(pT,cT=Uf),pT.prototype.render=function(t,e,n,i){var o,r;i&&"mapToggleSelect"===i.type&&i.from===this.uid||((o=this.group).removeAll(),t.getHostGeoModel()||(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id?(r=this._mapDraw)&&o.add(r.group):t.needsDrawMap?(r=this._mapDraw||new hT(n),o.add(r.group),r.draw(t,e,n,this,i),this._mapDraw=r):(this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null),t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)))},pT.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},pT.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},pT.prototype._renderSymbols=function(t,e,n){var i=t.originalData,o=this.group;i.each(i.mapDimension("value"),(function(e,n){var r,a,s,l;isNaN(e)||(e=i.getItemLayout(n))&&e.point&&(l=e.point,e=e.offset,r=new Xp({style:{fill:t.getData().getVisual("style").fill},shape:{cx:l[0]+9*e,cy:l[1],r:3},silent:!0,z2:8+(e?0:fa+1)}),e||(l=t.mainSeries.getData(),e=i.getName(n),a=l.indexOfName(e),s=(n=i.getItemModel(n)).getModel("label"),l=l.getItemGraphicEl(a),_s(r,bs(n),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(a,n)}},defaultText:e}),r.disableLabelAnimation=!0,s.get("position")||r.setTextConfig({position:"bottom"}),l.onHoverStateChange=function(t){Pa(r,t)}),o.add(r))}))},pT.type="map";var dT,fT=pT;function gT(){var t=null!==dT&&dT.apply(this,arguments)||this;return t.type=gT.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(t){var e;if(null!=t)return t=this.getData().getName(t),(t=(e=this.coordinateSystem).getRegion(t))&&e.dataToPoint(t.getCenter())},t}a(gT,dT=mp),gT.prototype.getInitialData=function(t){for(var e=Ow(this,{coordDimensions:["value"],encodeDefaulter:l.h(Su,this)}),n=l.f(),i=[],o=0,r=e.count();o<r;o++){var a=e.getName(o);n.set(a,!0)}var s=KO.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return l.k(s.regions,(function(t){t=t.name,n.get(t)||i.push(t)})),e.appendValues([],i),e},gT.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},gT.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},gT.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},gT.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},gT.prototype.formatTooltip=function(t,e,n){for(var i=this.getData(),o=this.getRawValue(t),r=i.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(r),c=i.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return Uh("section",{header:s.join(", "),noHeader:!s.length,blocks:[Uh("nameValue",{name:r,value:o})]})},gT.prototype.setZoom=function(t){this.option.zoom=t},gT.prototype.setCenter=function(t){this.option.center=t},gT.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=Yg(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",-1<e.indexOf("empty")&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},gT.type="series.map",gT.dependencies=["geo"],gT.layoutMode="box",gT.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"};var yT=gT;function mT(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel();n=n?"o"+n.id:"i"+t.getMapType();(e[n]=e[n]||[]).push(t)})),l.k(e,(function(t,e){n=l.H(t,(function(t){return t.getData()})),i=t[0].get("mapValueCalculation"),o={},l.k(n,(function(t){t.each(t.mapDimension("value"),(function(e,n){n="ec-"+t.getName(n),o[n]=o[n]||[],isNaN(e)||o[n].push(e)}))}));for(var n,i,o,r=n[0].map(n[0].mapDimension("value"),(function(t,e){for(var r="ec-"+n[0].getName(e),a=0,s=1/0,l=-1/0,u=o[r].length,c=0;c<u;c++)s=Math.min(s,o[r][c]),l=Math.max(l,o[r][c]),a+=o[r][c];return e="min"===i?s:"max"===i?l:"average"===i?a/u:a,0===u?NaN:e})),a=0;a<t.length;a++)t[a].originalData=t[a].getData();for(a=0;a<t.length;a++)(t[a].seriesGroup=t)[a].needsDrawMap=0===a&&!t[a].getHostGeoModel(),t[a].setData(r.cloneShallow()),t[a].mainSeries=t[0]}))}function vT(t){var e={};t.eachSeriesByType("map",(function(n){var i,o,r=n.getMapType();n.getHostGeoModel()||e[r]||(i={},l.k(n.seriesGroup,(function(e){var n=e.coordinateSystem,o=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&o.each(o.mapDimension("value"),(function(t,e){var r=o.getName(e),a=n.getRegion(r);a&&!isNaN(t)&&(t=i[r]||0,a=n.dataToPoint(a.getCenter()),i[r]=t+1,o.setItemLayout(e,{point:a,offset:t}))}))})),(o=n.getData()).each((function(t){var e=o.getName(t),n=o.getItemLayout(t)||{};n.showLabel=!i[e],o.setItemLayout(t,n)})),e[r]=!0)}))}var xT,_T=I;function bT(t){var e=xT.call(this)||this;return e.type="view",e.dimensions=["x","y"],e._roamTransformable=new sn,e._rawTransformable=new sn,e.name=t,e}function wT(t){return t=t.seriesModel,t?t.coordinateSystem:null}a(bT,xT=sn),bT.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new xn(t,e,n,i),this._rect},bT.prototype.getBoundingRect=function(){return this._rect},bT.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new xn(t,e,n,i)},bT.prototype._transformTo=function(t,e,n,i){var o=this.getBoundingRect(),r=this._rawTransformable;r.transform=o.calculateTransform(new xn(t,e,n,i)),o=r.parent;r.parent=null,r.decomposeTransform(),r.parent=o,this._updateTransform()},bT.prototype.setCenter=function(t){t&&(this._center=t,this._updateCenterAndZoom())},bT.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},bT.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},bT.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},bT.prototype.getZoom=function(){return this._zoom||1},bT.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},bT.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=I([],i,t),n=I([],n,t);e.originX=i[0],e.originY=i[1],e.x=n[0]-i[0],e.y=n[1]-i[1],e.scaleX=e.scaleY=o,this._updateTransform()},bT.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;(e.parent=t).updateTransform(),e.updateTransform(),Ye(this.transform||(this.transform=[]),e.transform||Ge()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],Ke(this.invTransform,this.transform),this.decomposeTransform()},bT.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new sn;return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},bT.prototype.getViewRect=function(){return this._viewRect},bT.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},bT.prototype.dataToPoint=function(t,e,n){return e=e?this._rawTransform:this.transform,n=n||[],e?_T(n,t,e):p(n,t)},bT.prototype.pointToData=function(t){var e=this.invTransform;return e?_T([],t,e):[t[0],t[1]]},bT.prototype.convertToPixel=function(t,e,n){return e=wT(e),e===this?e.dataToPoint(n):null},bT.prototype.convertFromPixel=function(t,e,n){return e=wT(e),e===this?e.pointToData(n):null},bT.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},bT.dimensions=["x","y"];var ST,MT=bT,IT={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},OT=["lng","lat"];a(TT,ST=MT),TT.prototype._transformTo=function(t,e,n,i){var o=this.getBoundingRect(),r=this._invertLongitute,a=(o=o.clone(),r&&(o.y=-o.y-o.height),this._rawTransformable);a.transform=o.calculateTransform(new xn(t,e,n,i)),o=a.parent;a.parent=null,a.decomposeTransform(),a.parent=o,r&&(a.scaleY=-a.scaleY),this._updateTransform()},TT.prototype.getRegion=function(t){return this._regionsMap.get(t)},TT.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var i=e[n];if("geoJSON"===i.type&&i.contain(t))return e[n]}},TT.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},TT.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},TT.prototype.dataToPoint=function(t,e,n){var i;if(t=l.C(t)?this.getGeoCoord(t):t)return(t=(i=this.projection)?i.project(t):t)&&this.projectedToPoint(t)},TT.prototype.pointToData=function(t){var e=this.projection;return(t=e?e.unproject(t):t)&&this.pointToProjected(t)},TT.prototype.pointToProjected=function(t){return ST.prototype.pointToData.call(this,t)},TT.prototype.projectedToPoint=function(t,e,n){return ST.prototype.dataToPoint.call(this,t,e,n)},TT.prototype.convertToPixel=function(t,e,n){return e=CT(e),e===this?e.dataToPoint(n):null},TT.prototype.convertFromPixel=function(t,e,n){return e=CT(e),e===this?e.pointToData(n):null},Qi=TT;function TT(t,e,n){t=ST.call(this,t)||this;var i=(t.dimensions=OT,t.type="geo",t._nameCoordMap=l.f(),t.map=e,n.projection),o=KO.load(e,n.nameMap,n.nameProperty),r=(e=KO.getGeoResource(e),t.resourceType=e?e.type:null,t.regions=o.regions);e=IT[e.type];if(t._regionsMap=o.regionsMap,t.regions=o.regions,t.projection=i)for(var a=0;a<r.length;a++){var s,u=r[a].getBoundingRect(i);(s=s||u.clone()).union(u)}else s=o.boundingRect;return t.setBoundingRect(s.x,s.y,s.width,s.height),t.aspectScale=i?1:l.P(n.aspectScale,e.aspectScale),t._invertLongitute=!i&&e.invertLongitute,t}function CT(t){var e=t.geoModel;t=t.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",ji).models[0]||{}).coordinateSystem:null}l.K(Qi,MT);var AT=Qi;function kT(t,e){var n,i,o,r,a,s,l=t.get("boundingCoords"),u=(null!=l&&(i=l[0],o=l[1],isFinite(i[0])&&isFinite(i[1])&&isFinite(o[0])&&isFinite(o[1])&&((n=this.projection)&&(l=i[0],p=i[1],h=o[0],c=o[1],i=[1/0,1/0],o=[-1/0,-1/0],(u=function(t,e,r,a){for(var s=r-t,l=a-e,u=0;u<=100;u++){var c=u/100;c=n.project([t+s*c,e+l*c]);O(i,i,c),T(o,o,c)}})(l,p,h,p),u(h,p,h,c),u(h,c,l,c),u(l,c,h,p)),this.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[1]))),this.getBoundingRect()),c=(l=t.get("layoutCenter"),t.get("layoutSize")),h=e.getWidth(),p=e.getHeight();e=u.width/u.height*this.aspectScale,u=!1;l&&c&&(r=[Qn(l[0],h),Qn(l[1],p)],a=Qn(c,Math.min(h,p)),isNaN(r[0])||isNaN(r[1])||isNaN(a)||(u=!0)),u?(s={},1<e?(s.width=a,s.height=a/e):(s.height=a,s.width=a*e),s.y=r[1]-s.height/2,s.x=r[0]-s.width/2):((l=t.getBoxLayoutParams()).aspect=e,s=ql(l,{width:h,height:p})),this.setViewRect(s.x,s.y,s.width,s.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function DT(){this.dimensions=OT}DT.prototype.create=function(t,e){var n=[];function i(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,o){var r=t.get("map");o=new AT(r+o,r,l.m({nameMap:t.get("nameMap")},i(t)));o.zoomLimit=t.get("scaleLimit"),n.push(o),(t.coordinateSystem=o).model=t,o.resize=kT,o.resize(t,e)})),t.eachSeries((function(t){var e;"geo"===t.get("coordinateSystem")&&(e=t.get("geoIndex")||0,t.coordinateSystem=n[e])}));var o={};return t.eachSeriesByType("map",(function(t){var e;t.getHostGeoModel()||(e=t.getMapType(),o[e]=o[e]||[],o[e].push(t))})),l.k(o,(function(t,o){var r=l.H(t,(function(t){return t.get("nameMap")})),a=new AT(o,o,l.m({nameMap:l.J(r)},i(t[0])));a.zoomLimit=l.O.apply(null,l.H(t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=kT,a.resize(t[0],e),l.k(t,(function(t){var e;t.coordinateSystem=a,e=a,l.k(t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}))})),n},DT.prototype.getFilledRegions=function(t,e,n,i){for(var o=(t||[]).slice(),r=l.f(),a=0;a<o.length;a++)r.set(o[a].name,o[a]);return t=KO.load(e,n,i),l.k(t.regions,(function(t){t=t.name,r.get(t)||o.push({name:t})})),o};var LT,PT=new DT;function jT(){var t=null!==LT&<.apply(this,arguments)||this;return t.type=jT.type,t}a(jT,LT=uu),jT.prototype.init=function(t,e,n){var i=KO.getGeoResource(t.map);!i||"geoJSON"!==i.type||"color"in(i=t.itemStyle=t.itemStyle||{})||(i.color="#eee"),this.mergeDefaultAndTheme(t,n),xi(t,"label",["show"])},jT.prototype.optionUpdated=function(){var t=this,e=this.option,n=(e.regions=PT.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty),{});this._optionModelMap=l.N(e.regions||[],(function(e,i){var o=i.name;return o&&(e.set(o,new Xs(i,t,t.ecModel)),i.selected&&(n[o]=!0)),e}),l.f()),e.selectedMap||(e.selectedMap=n)},jT.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Xs(null,this,this.ecModel)},jT.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),i=(n="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),{name:t});return l.w(n)?(i.status=e,n(i)):l.C(n)?n.replace("{a}",null!=t?t:""):void 0},jT.prototype.setZoom=function(t){this.option.zoom=t},jT.prototype.setCenter=function(t){this.option.center=t},jT.prototype.select=function(t){var e=this.option,n=e.selectedMode;n&&("multiple"!==n&&(e.selectedMap=null),(e.selectedMap||(e.selectedMap={}))[t]=!0)},jT.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},jT.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},jT.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},jT.type="geo",jT.layoutMode="box",jT.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]};var RT,NT=jT;function ET(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function zT(t,e,n){var i,o=t.getZoom(),r=t.getCenter(),a=e.zoom;r=t.projectedToPoint?t.projectedToPoint(r):t.dataToPoint(r);return null!=e.dx&&null!=e.dy&&(r[0]-=e.dx,r[1]-=e.dy,t.setCenter(ET(t,r))),null!=a&&(n&&(i=n.min||0,n=n.max||1/0,a=Math.max(Math.min(o*a,n),i)/o),t.scaleX*=a,t.scaleY*=a,n=(e.originX-t.x)*(a-1),i=(e.originY-t.y)*(a-1),t.x-=n,t.y-=i,t.updateTransform(),t.setCenter(ET(t,r)),t.setZoom(a*o)),{center:t.getCenter(),zoom:t.getZoom()}}function BT(){var t=null!==RT&&RT.apply(this,arguments)||this;return t.type=BT.type,t.focusBlurEnabled=!0,t}a(BT,RT=xp),BT.prototype.init=function(t,e){this._api=e},BT.prototype.render=function(t,e,n,i){if(!(this._model=t).get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new hT(n));var o=this._mapDraw;o.draw(t,e,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,e,n)},BT.prototype._handleRegionClick=function(t){var e;Lg(t.target,(function(t){return null!=(e=oa(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},BT.prototype.updateSelectStatus=function(t,e,n){var i=this;this._mapDraw.group.traverse((function(t){var e=oa(t).eventData;if(e)return i._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0}))},BT.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},BT.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},BT.type="geo";var VT=BT;function FT(t,e,n){KO.registerMap(t,e,n)}function HT(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,(function(t,n){var i={},o=[];return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name);var r=n.coordinateSystem,a=(Object(l.k)(r.regions,(function(t){i[t.name]=n.isSelected(t.name)||!1})),[]);Object(l.k)(i,(function(t,e){i[e]&&a.push(e)})),o.push({geoIndex:n.componentIndex,name:a})})),{selected:i,allSelected:o,name:t.name}}))}t.registerCoordinateSystem("geo",PT),t.registerComponentModel(NT),t.registerComponentView(VT),t.registerImpl("registerMap",FT),t.registerImpl("getMap",(function(t){return KO.getMapForUser(t)})),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){var i,o=e.coordinateSystem;"geo"===o.type&&(i=zT(o,t,e.get("scaleLimit")),e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom),"series"===n&&Object(l.k)(e.seriesGroup,(function(t){t.setCenter(i.center),t.setZoom(i.zoom)})))}))}))}function GT(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,o=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){for(var r=t.children,a=r.length,s=0,l=0;0<=--a;){var u=r[a];u.hierNode.prelim+=s,u.hierNode.modifier+=s,l+=u.hierNode.change,s+=u.hierNode.shift+l}n=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2,o?(t.hierNode.prelim=o.hierNode.prelim+e(t,o),t.hierNode.modifier=t.hierNode.prelim-n):t.hierNode.prelim=n}else o&&(t.hierNode.prelim=o.hierNode.prelim+e(t,o));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var o=t,r=t,a=r.parentNode.children[0],s=e,l=o.hierNode.modifier,u=r.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;s=XT(s),r=ZT(r),s&&r;){o=XT(o),a=ZT(a),o.hierNode.ancestor=t;var p=s.hierNode.prelim+h-r.hierNode.prelim-u+i(s,r);0<p&&(function(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}(function(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}(s,t,n),t,p),u+=p,l+=p),h+=s.hierNode.modifier,u+=r.hierNode.modifier,l+=o.hierNode.modifier,c+=a.hierNode.modifier}s&&!XT(o)&&(o.hierNode.thread=s,o.hierNode.modifier+=h-l),r&&!ZT(a)&&(a.hierNode.thread=r,a.hierNode.modifier+=u-c,n=t)}return n}(t,o,t.parentNode.hierNode.defaultAncestor||i[0],e)}function WT(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function YT(t){return arguments.length?t:qT}function UT(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function XT(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function ZT(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function qT(t,e){return t.parentNode===e.parentNode?1:2}var KT,QT,$T=function(){this.parentPoint=[],this.childPoints=[]},JT=(a(tC,KT=br),tC.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},tC.prototype.getDefaultShape=function(){return new $T},tC.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,o=e.parentPoint,r=n[0],a=n[i-1];if(1===i)return t.moveTo(o[0],o[1]),void t.lineTo(r[0],r[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=(s=1-l,e=Qn(e.forkPosition,1),[]);u[l]=o[l],u[s]=o[s]+(a[s]-o[s])*e,t.moveTo(o[0],o[1]),t.lineTo(u[0],u[1]),t.moveTo(r[0],r[1]),u[l]=r[l],t.lineTo(u[0],u[1]),u[l]=a[l],t.lineTo(u[0],u[1]),t.lineTo(a[0],a[1]);for(var c=1;c<i-1;c++){var h=n[c];t.moveTo(h[0],h[1]),u[l]=h[l],t.lineTo(u[0],u[1])}},tC);function tC(t){return KT.call(this,t)||this}function eC(){var t=null!==QT&&QT.apply(this,arguments)||this;return t.type=eC.type,t._mainGroup=new Gn,t}function nC(t,e){return t=t.getItemLayout(e),t&&!isNaN(t.x)&&!isNaN(t.y)}function iC(t,e,n,i,o){var r=!n,a=t.tree.getNodeByDataIndex(e),s=a.getModel(),u=a.getVisual("style").fill,c=(u=!1===a.isExpand&&0!==a.children.length?u:"#fff",t.tree.root),h=a.parentNode!==c&&a.parentNode||a,p=t.getItemGraphicEl(h.dataIndex),d=(h=h.getLayout(),p=p?{x:p.__oldX,y:p.__oldY,rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:h,a.getLayout()),f=(r=(r?((n=new O_(t,e,null,{symbolInnerColor:u,useNameLabel:!0})).x=p.x,n.y=p.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=d.rawX,n.__radialRawY=d.rawY,i.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,cs(n,{x:d.x,y:d.y},o),n.getSymbolPath()),r=("radial"===o.get("layout")&&(e=(u=c.children[0]).getLayout(),f=u.children.length,m=y=void 0,d.x===e.x&&!0===a.isExpand?(g=(u.children[0].getLayout().x+u.children[f-1].getLayout().x)/2,u=(u.children[0].getLayout().y+u.children[f-1].getLayout().y)/2,(y=Math.atan2(u-e.y,g-e.x))<0&&(y=2*Math.PI+y),(m=g<e.x)&&(y-=Math.PI)):((y=Math.atan2(d.y-e.y,d.x-e.x))<0&&(y=2*Math.PI+y),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(m=d.x<e.x)&&(y-=Math.PI):(m=d.x>e.x)||(y-=Math.PI)),f=m?"left":"right",e=(g=(u=s.getModel("label")).get("rotate"))*(Math.PI/180),(m=r.getTextContent())&&(r.setTextConfig({position:u.get("position")||f,rotation:null==g?-y:e,origin:"center"}),m.setStyle("verticalAlign","middle"))),s.get(["emphasis","focus"])),u="ancestor"===r?a.getAncestorsIndices():"descendant"===r?a.getDescendantIndices():null,u&&(oa(n).focus=u),o),g=a,y=c,m=(e=n,p),v=(s=h,r=d,u=i,o=g.getModel(),c=f.get("edgeShape"),p=f.get("layout"),h=f.getOrient(),d=f.get(["lineStyle","curveness"]),i=f.get("edgeForkPosition"),o.getModel("lineStyle").getLineStyle()),x=e.__edge;if("curve"===c)g.parentNode&&g.parentNode!==y&&cs(x=x||(e.__edge=new zd({shape:sC(p,h,d,m,m)})),{shape:sC(p,h,d,s,r)},f);else if("polyline"===c&&"orthogonal"===p&&g!==y&&g.children&&0!==g.children.length&&!0===g.isExpand){for(var _=g.children,b=[],w=0;w<_.length;w++){var S=_[w].getLayout();b.push([S.x,S.y])}cs(x=x||(e.__edge=new JT({shape:{parentPoint:[r.x,r.y],childPoints:[[r.x,r.y]],orient:h,forkPosition:i}})),{shape:{parentPoint:[r.x,r.y],childPoints:b}},f)}x&&(x.useStyle(l.i({strokeNoScale:!0,fill:null},v)),ns(x,o,"lineStyle"),Na(x),u.add(x)),n.__edge&&(n.onHoverStateChange=function(e){var i;"blur"===e||(i=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex))&&i.hoverState===ca||Pa(n.__edge,e)})}function oC(t,e,n,i,o){var r,a,s=rC(e.tree.root,t),l=s.source;s=s.sourceLayout,t=e.getItemGraphicEl(t.dataIndex);t&&(e=e.getItemGraphicEl(l.dataIndex).__edge,r=t.__edge||(!1===l.isExpand||1===l.children.length?e:void 0),t=i.get("edgeShape"),l=i.get("layout"),e=i.get("orient"),a=i.get(["lineStyle","curveness"]),r&&("curve"===t?ds(r,{shape:sC(l,e,a,s,s),style:{opacity:0}},i,{cb:function(){n.remove(r)},removeOpt:o}):"polyline"===t&&"orthogonal"===i.get("layout")&&ds(r,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){n.remove(r)},removeOpt:o})))}function rC(t,e){for(var n,i=e.parentNode!==t&&e.parentNode||e;null==(n=i.getLayout());)i=i.parentNode!==t&&i.parentNode||i;return{source:i,sourceLayout:n}}function aC(t,e,n,i,o){var r=t.tree.getNodeByDataIndex(e),a=rC(t.tree.root,r).sourceLayout,s={duration:o.get("animationDurationUpdate"),easing:o.get("animationEasingUpdate")};ds(n,{x:a.x+1,y:a.y+1},o,{cb:function(){i.remove(n),t.setItemGraphicEl(e,null)},removeOpt:s}),n.fadeOut(null,{fadeLabel:!0,animation:s}),r.children.forEach((function(e){oC(e,t,i,o,s)})),oC(r,t,i,o,s)}function sC(t,e,n,i,o){var r,a,s,l,u,c,h,p,d,f,g;return"radial"===t?(u=i.rawX,c=i.rawY,h=o.rawX,p=o.rawY,t=UT(u,c),d=UT(u,c+(p-c)*n),f=UT(h,p+(c-p)*n),g=UT(h,p),{x1:t.x||0,y1:t.y||0,x2:g.x||0,y2:g.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:f.x||0,cpy2:f.y||0}):(u=i.x,c=i.y,h=o.x,p=o.y,"LR"!==e&&"RL"!==e||(r=u+(h-u)*n,a=c,s=h+(u-h)*n,l=p),"TB"!==e&&"BT"!==e||(r=u,a=c+(p-c)*n,s=h,l=p+(c-p)*n),{x1:u,y1:c,x2:h,y2:p,cpx1:r,cpy1:a,cpx2:s,cpy2:l})}a(eC,QT=Uf),eC.prototype.init=function(t,e){this._controller=new UI(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},eC.prototype.render=function(t,e,n){var i=t.getData(),o=t.layoutInfo,r=this._mainGroup,a=("radial"===t.get("layout")?(r.x=o.x+o.width/2,r.y=o.y+o.height/2):(r.x=o.x,r.y=o.y),this._updateViewCoordSys(t),this._updateController(t,e,n),this._data);i.diff(a).add((function(e){nC(i,e)&&iC(i,e,null,r,t)})).update((function(e,n){var o=a.getItemGraphicEl(n);nC(i,e)?iC(i,e,o,r,t):o&&aC(a,n,o,r,t)})).remove((function(e){var n=a.getItemGraphicEl(e);n&&aC(a,e,n,r,t)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&i.eachItemGraphicEl((function(e,i){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:i})}))})),this._data=i},eC.prototype._updateViewCoordSys=function(t){var e=t.getData(),n=[],i=(e.each((function(t){t=e.getItemLayout(t),!t||isNaN(t.x)||isNaN(t.y)||n.push([+t.x,+t.y])})),[]),o=[],r=(Lo(n,i,o),this._min),a=this._max;o[0]-i[0]==0&&(i[0]=r?r[0]:i[0]-1,o[0]=a?a[0]:o[0]+1),o[1]-i[1]==0&&(i[1]=r?r[1]:i[1]-1,o[1]=a?a[1]:o[1]+1),r=t.coordinateSystem=new MT;r.zoomLimit=t.get("scaleLimit"),r.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[1]),r.setCenter(t.get("center")),r.setZoom(t.get("zoom")),this.group.attr({x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY}),this._min=i,this._max=o},eC.prototype._updateController=function(t,e,n){var i=this,o=this._controller,r=this._controllerHost,a=this.group;o.setPointerChecker((function(e,i,o){var r=a.getBoundingRect();return r.applyTransform(a.transform),r.contain(i,o)&&!QI(e,n,t)})),o.enable(t.get("roam")),r.zoomLimit=t.get("scaleLimit"),r.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",(function(e){XI(r,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){ZI(r,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(t),n.updateLabelLayout()}))},eC.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},eC.prototype._getNodeGlobalScale=function(t){if(t=t.coordinateSystem,"view"!==t.type)return 1;var e=this._nodeScaleRatio,n=t.scaleX||1;return((t.getZoom()-1)*e+1)/n},eC.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},eC.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},eC.type="tree";var lC=eC,uC=ki();function cC(t,e){var n;return uC(n=this).mainData===n?gC((n=Object(l.m)({},uC(this).datas))[this.dataType]=e,n,t):yC(e,this.dataType,uC(this).mainData,t),e}function hC(t,e){return t.struct&&t.struct.update(),e}function pC(t,e){return Object(l.k)(uC(e).datas,(function(n,i){n!==e&&yC(n.cloneShallow(),i,e,t)})),e}function dC(t){var e=uC(this).mainData;return null==t||null==e?e:uC(e).datas[t]}function fC(){var t=uC(this).mainData;return null==t?[{data:t}]:Object(l.H)(Object(l.F)(uC(t).datas),(function(e){return{type:e,data:uC(t).datas[e]}}))}function gC(t,e,n){uC(t).datas={},Object(l.k)(e,(function(e,i){yC(e,i,t,n)}))}function yC(t,e,n,i){uC(n).datas[e]=t,uC(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=dC,t.getLinkedDataAll=fC}var mC=function(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,gC(e,n,t),Object(l.k)(n,(function(n){Object(l.k)(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,Object(l.h)(cC,t))}))})),e.wrapMethod("cloneShallow",Object(l.h)(pC,t)),Object(l.k)(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,Object(l.h)(hC,t))})),Object(l.b)(n[e.dataType]===e)},vC=(xC.prototype.isRemoved=function(){return this.dataIndex<0},xC.prototype.eachNode=function(t,e,n){l.w(t)&&(n=e,e=t,t=null);var i,o=(t=l.C(t=t||{})?{order:t}:t).order||"preorder",r=this[t.attr||"children"];"preorder"===o&&(i=e.call(n,this));for(var a=0;!i&&a<r.length;a++)r[a].eachNode(t,e,n);"postorder"===o&&e.call(n,this)},xC.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},xC.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var o=n[e].getNodeById(t);if(o)return o}},xC.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var o=n[e].contains(t);if(o)return o}},xC.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},xC.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},xC.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},xC.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},xC.prototype.setLayout=function(t,e){0<=this.dataIndex&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},xC.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},xC.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},xC.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},xC.prototype.setVisual=function(t,e){0<=this.dataIndex&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},xC.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},xC.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},xC.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},xC.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},xC.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},xC.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},xC);function xC(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}function _C(t){this.type="tree",this._nodes=[],this.hostModel=t}function bC(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}_C.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},_C.prototype.getNodeByDataIndex=function(t){return t=this.data.getRawIndex(t),this._nodes[t]},_C.prototype.getNodeById=function(t){return this.root.getNodeById(t)},_C.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},_C.prototype.clearLayouts=function(){this.data.clearItemLayouts()},_C.createTree=function(t,e,n){var i=new _C(e),o=[],r=1;return function t(e,n){var a=e.value;r=Math.max(r,l.t(a)?a.length:1),o.push(e);var s=new vC(Ii(e.name,""),i);n?bC(s,n):i.root=s,i._nodes.push(s);var u=e.children;if(u)for(var c=0;c<u.length;c++)t(u[c],s)}(t),i.root.updateDepthAndHeight(0),t=c_(o,{coordDimensions:["value"],dimensionsCount:r}).dimensions,t=new u_(t,e),t.initData(o),n&&n(t),mC({mainData:t,struct:i,structAttr:"tree"}),i.update(),i};var wC,SC=_C;function MC(t,e,n){if(t&&0<=l.r(e,t.type))return e=n.getData().tree.root,n=t.targetNode,(n=l.C(n)?e.getNodeById(n):n)&&e.contains(n)?{node:n}:(t=t.targetNodeId,null!=t&&(n=e.getNodeById(t))?{node:n}:void 0)}function IC(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function OC(t,e){return t=IC(t),0<=l.r(t,e)}function TC(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}function CC(){var t=null!==wC&&wC.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}a(CC,wC=mp),CC.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new Xs(n,this,this.ecModel),o=SC.createTree(e,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){return e=o.getNodeByDataIndex(e),e&&e.children.length&&e.isExpand||(t.parentModel=i),t}))})),r=0;o.eachNode("preorder",(function(t){t.depth>r&&(r=t.depth)}));var a=t.expandAndCollapse&&0<=t.initialTreeDepth?t.initialTreeDepth:r;return o.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a})),o.data},CC.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},CC.prototype.setZoom=function(t){this.option.zoom=t},CC.prototype.setCenter=function(t){this.option.center=t},CC.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,o=i.root.children[0],r=i.getNodeByDataIndex(t),a=(i=r.getValue(),r.name);r&&r!==o;)a=r.parentNode.name+"."+a,r=r.parentNode;return Uh("nameValue",{name:a,value:i,noValue:isNaN(i)||null==i})},CC.prototype.getDataParams=function(t){var e=wC.prototype.getDataParams.apply(this,arguments);t=this.getData().tree.getNodeByDataIndex(t);return e.treeAncestors=TC(t,this),e},CC.type="series.tree",CC.layoutMode="box",CC.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500};var AC=CC;function kC(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var o=n.children;if(o.length)for(var r=o.length-1;0<=r;r--)i.push(o[r])}}function DC(t,e){t.eachSeriesByType("tree",(function(t){var n=function(t,e){return ql(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,n=e),i=(t.layoutInfo=n,t.get("layout")),o=0,r=0,a=null;a="radial"===i?(o=2*Math.PI,r=Math.min(n.height,n.width)/2,YT((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(o=n.width,r=n.height,YT());var s,l,u,c,h,p,d,f,g,y=(n=t.getData().tree.root).children[0];if(y){var m=n;m.hierNode={defaultAncestor:null,ancestor:m,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var v,x,_=[m];v=_.pop();)if(x=v.children,v.isExpand&&x.length)for(var b=x.length-1;0<=b;b--){var w=x[b];w.hierNode={defaultAncestor:null,ancestor:w,prelim:0,modifier:0,change:0,shift:0,i:b,thread:null},_.push(w)}for(var S,M=GT,I=a,O=[y],T=[];S=O.pop();)if(T.push(S),S.isExpand){var C=S.children;if(C.length)for(var A=0;A<C.length;A++)O.push(C[A])}for(;S=T.pop();)M(S,I);n.hierNode.modifier=-y.hierNode.prelim,kC(y,WT),kC(u=l=s=y,(function(t){var e=t.getLayout().x;e<s.getLayout().x&&(s=t),e>l.getLayout().x&&(l=t),t.depth>u.depth&&(u=t)})),n=s===l?1:a(s,l)/2,c=n-s.getLayout().x,f=d=p=h=0,"radial"===i?(h=o/(l.getLayout().x+n+c),p=r/(u.depth-1||1),kC(y,(function(t){d=(t.getLayout().x+c)*h,f=(t.depth-1)*p;var e=UT(d,f);t.setLayout({x:e.x,y:e.y,rawX:d,rawY:f},!0)}))):"RL"===(g=t.getOrient())||"LR"===g?(p=r/(l.getLayout().x+n+c),h=o/(u.depth-1||1),kC(y,(function(t){f=(t.getLayout().x+c)*p,d="LR"===g?(t.depth-1)*h:o-(t.depth-1)*h,t.setLayout({x:d,y:f},!0)}))):"TB"!==g&&"BT"!==g||(h=o/(l.getLayout().x+n+c),p=r/(u.depth-1||1),kC(y,(function(t){d=(t.getLayout().x+c)*h,f="TB"===g?(t.depth-1)*p:r-(t.depth-1)*p,t.setLayout({x:d,y:f},!0)})))}}))}function LC(t){t.eachSeriesByType("tree",(function(t){var e=t.getData();e.tree.eachNode((function(t){var n=t.getModel().getModel("itemStyle").getItemStyle();t=e.ensureUniqueItemVisual(t.dataIndex,"style");Object(l.m)(t,n)}))}))}var PC,jC=["treemapZoomToNode","treemapRender","treemapMove"];function RC(t){for(var e=0;e<jC.length;e++)t.registerAction({type:jC[e],update:"updateView"},l.L);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"treemap",query:t},(function(e,n){var i,o=MC(t,["treemapZoomToNode","treemapRootToNode"],e);o&&((i=e.getViewRoot())&&(t.direction=OC(i,o.node)?"rollUp":"drillDown"),e.resetViewRoot(o.node))}))}))}function NC(t){var e=t.getData().tree,n={};e.eachNode((function(e){for(var i=e;i&&1<i.depth;)i=i.parentNode;var o=Ru(t.ecModel,i.name||i.dataIndex+"",n);e.setVisual("decal",o)}))}function EC(){var t=null!==PC&&PC.apply(this,arguments)||this;return t.type=EC.type,t.preventUsingHoverLayer=!0,t}a(EC,PC=mp),EC.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data},i=(function t(e){var n=0;l.k(e.children,(function(e){t(e),e=e.value,l.t(e)&&(e=e[0]),n+=e}));var i=e.value;l.t(i)&&(i=i[0]),null!=i&&!isNaN(i)||(i=n),i<0&&(i=0),l.t(e.value)?e.value[0]=i:e.value=i}(n),t.levels||[]),o=this.designatedVisualItemStyle={},r=new Xs({itemStyle:o},this,e),a=(i=t.levels=function(t,e){var n,i,o,r=vi(e.get("color"));e=vi(e.get(["aria","decal","decals"]));if(r)return t=t||[],l.k(t,(function(t){t=new Xs(t);var e=t.get("color"),o=t.get("decal");(t.get(["itemStyle","color"])||e&&"none"!==e)&&(n=!0),(t.get(["itemStyle","decal"])||o&&"none"!==o)&&(i=!0)})),o=t[0]||(t[0]={}),n||(o.color=r.slice()),!i&&e&&(o.decal=e.slice()),t}(i,e),l.H(i||[],(function(t){return new Xs(t,r,e)}),this)),s=SC.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){return e=s.getNodeByDataIndex(e),e=e?a[e.depth]:null,t.parentModel=e||r,t}))}));return s.data},EC.prototype.optionUpdated=function(){this.resetViewRoot()},EC.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.getRawValue(t);return Uh("nameValue",{name:i.getName(t),value:o})},EC.prototype.getDataParams=function(t){var e=PC.prototype.getDataParams.apply(this,arguments);t=this.getData().tree.getNodeByDataIndex(t);return e.treeAncestors=TC(t,this),e.treePathInfo=e.treeAncestors,e},EC.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},l.m(this.layoutInfo,t)},EC.prototype.mapIdToIndex=function(t){var e=this._idIndexMap,n=(e||(e=this._idIndexMap=l.f(),this._idIndexMapCount=0),e.get(t));return null==n&&e.set(t,n=this._idIndexMapCount++),n},EC.prototype.getViewRoot=function(){return this._viewRoot},EC.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},EC.prototype.enableAriaDecal=function(){NC(this)},EC.type="series.treemap",EC.layoutMode="box",EC.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]};var zC=EC;function BC(t){this.group=new Gn,t.add(this.group)}BC.prototype.render=function(t,e,n,i){var o,r,a=t.getModel("breadcrumb"),s=this.group;s.removeAll(),a.get("show")&&n&&(r=(o=a.getModel("itemStyle")).getModel("textStyle"),e={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]},this._prepare(n,e,r),this._renderContent(t,e,o,r,i),Kl(s,e.pos,e.box))},BC.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var o=Ii(i.getModel().get("name"),""),r=n.getTextRect(o);r=Math.max(r.width+16,e.emptyItemWidth);e.totalWidth+=r+8,e.renderList.push({node:i,text:o,width:r})}},BC.prototype._renderContent=function(t,e,n,i,o){for(var r,a,s,u,c,h,p,d,f,g,y,m,v,x=0,_=e.emptyItemWidth,b=t.get(["breadcrumb","height"]),w=(r=e.pos,a=e.box,u=a.width,a=a.height,c=Qn(r.left,u),h=Qn(r.top,a),p=Qn(r.right,u),d=Qn(r.bottom,a),(isNaN(c)||isNaN(parseFloat(r.left)))&&(c=0),(isNaN(p)||isNaN(parseFloat(r.right)))&&(p=u),(isNaN(h)||isNaN(parseFloat(r.top)))&&(h=0),(isNaN(d)||isNaN(parseFloat(r.bottom)))&&(d=a),s=jl(s||0),{width:Math.max(p-c-s[1]-s[3],0),height:Math.max(d-h-s[0]-s[2],0)}),S=e.totalWidth,M=e.renderList,I=M.length-1;0<=I;I--){var O=M[I],T=O.node,C=O.width,A=(O=O.text,w.width<S&&(S-=C-_,C=_,O=null),new Sd({shape:{points:(f=x,g=0,A=C,y=b,m=I===M.length-1,v=void 0,v=[[m?f:f-5,g],[f+A,g],[f+A,g+y],[m?f:f-5,g+y]],0===I||v.splice(2,0,[f+A+5,g+y/2]),m||v.push([f,g+y/2]),v)},style:Object(l.i)(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new ia({style:{text:O,fill:i.getTextColor(),font:i.getFont()}}),textConfig:{position:"inside"},z2:1e4*fa,onclick:Object(l.h)(o,T)}));A.disableLabelAnimation=!0,this.group.add(A),m=t,f=T,oa(A).eventData={componentType:"series",componentSubType:"treemap",componentIndex:m.componentIndex,seriesIndex:m.seriesIndex,seriesName:m.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:f&&f.dataIndex,name:f&&f.name},treePathInfo:f&&TC(f,m)},x+=C+8}},BC.prototype.remove=function(){this.group.removeAll()};var VC=BC,FC=(HC.prototype.add=function(t,e,n,i,o){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:o}),!0)},HC.prototype.finished=function(t){return this._finishedCallback=t,this},HC.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,o=this._storage.length;i<o;i++){var r=this._storage[i];r.el.animateTo(r.target,{duration:r.duration,delay:r.delay,easing:r.easing,setToFinal:!0,done:n,aborted:n})}return this},HC);function HC(){this._storage=[],this._elExistsMap={}}var GC,WC=Gn,YC=Br,UC="label",XC="upperLabel",ZC=10*fa,qC=2*fa,KC=3*fa,QC=qi([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),$C=function(t){return t=QC(t),t.stroke=t.fill=t.lineWidth=null,t},JC=ki();function tA(){var t=null!==GC&&GC.apply(this,arguments)||this;return t.type=tA.type,t._state="ready",t._storage=eA(),t}function eA(){return{nodeGroup:[],background:[],content:[]}}a(tA,GC=Uf),tA.prototype.render=function(t,e,n,i){var o,r,a,s,u=e.findComponents({mainType:"series",subType:"treemap",query:i});Object(l.r)(u,t)<0||(this.seriesModel=t,this.api=n,this.ecModel=e,u=MC(i,["treemapZoomToNode","treemapRootToNode"],t),e=i&&i.type,a=t.layoutInfo,o=!this._oldTree,r=this._storage,r="treemapRootToNode"===e&&u&&r?{rootNodeGroup:r.nodeGroup[u.node.getRawIndex()],direction:i.direction}:null,i=this._giveContainerGroup(a),a=t.get("animation"),s=this._doRender(i,t,r),!a||o||e&&"treemapZoomToNode"!==e&&"treemapRootToNode"!==e?s.renderFinally():this._doAnimation(i,s,t,r),this._resetController(n),this._renderBreadcrumb(t,n,u))},tA.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new WC,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},tA.prototype._doRender=function(t,e,n){var i=e.getData().tree,o=this._oldTree,r=eA(),a=eA(),s=this._storage,u=[];function c(t,i,o,c){var h=e,p=a,d=s,f=n,g=r,y=u,m=t;t=i,i=o,o=c;if(m){var v=m.getLayout(),x=(c=h.getData(),m.getModel());if(c.setItemGraphicEl(m.dataIndex,null),v&&v.isInView){var _=v.width,b=v.height,w=v.borderWidth,S=v.invisible,M=m.getRawIndex(),I=t&&t.getRawIndex(),O=(t=m.viewChildren,v.upperHeight),T=(t=t&&t.length,x.getModel("itemStyle")),C=x.getModel(["emphasis","itemStyle"]),A=x.getModel(["blur","itemStyle"]),k=x.getModel(["select","itemStyle"]),D=T.get("borderRadius")||0,L=B("nodeGroup",WC);if(L){if(i.add(L),L.x=v.x||0,L.y=v.y||0,L.markRedraw(),JC(L).nodeWidth=_,JC(L).nodeHeight=b,v.isAboveViewRoot)return L;i=B("background",YC,o,qC);var P=(i&&function(t,e,n){var i,o,r,a,s,l=oa(e);l.dataIndex=m.dataIndex,l.seriesIndex=h.seriesIndex,e.setShape({x:0,y:0,width:_,height:b,r:D}),S?N(e):(e.invisible=!1,l=m.getVisual("style"),i=l.stroke,(o=$C(T)).fill=i,(r=QC(C)).fill=C.get("borderColor"),(a=QC(A)).fill=A.get("borderColor"),(s=QC(k)).fill=k.get("borderColor"),n?(n=_-2*w,E(e,i,l.opacity,{x:w,y:0,width:n,height:O})):e.removeTextContent(),e.setStyle(o),e.ensureState("emphasis").style=r,e.ensureState("blur").style=a,e.ensureState("select").style=s,Na(e)),t.add(e)}(L,i,t&&v.upperLabelHeight),x.getModel("emphasis")),j=P.get("focus"),R=P.get("blurScope");P=P.get("disabled"),j="ancestor"===j?m.getAncestorsIndices():"descendant"===j?m.getDescendantIndices():j;return t?(os(L)&&is(L,!1),i&&(is(i,!P),c.setItemGraphicEl(m.dataIndex,i),Ja(i,j,R))):((t=B("content",YC,o,KC))&&function(t,e){var n,i,o,r,a=oa(e),s=(a=(a.dataIndex=m.dataIndex,a.seriesIndex=h.seriesIndex,Math.max(_-2*w,0)),Math.max(b-2*w,0));e.culling=!0,e.setShape({x:w,y:w,width:a,height:s,r:D}),S?N(e):(e.invisible=!1,a=m.getVisual("style"),s=a.fill,n=$C(T),n.fill=s,n.decal=a.decal,i=QC(C),o=QC(A),r=QC(k),E(e,s,a.opacity,null),e.setStyle(n),e.ensureState("emphasis").style=i,e.ensureState("blur").style=o,e.ensureState("select").style=r,Na(e)),t.add(e)}(L,t),i.disableMorphing=!0,i&&os(i)&&is(i,!1),is(L,!P),c.setItemGraphicEl(m.dataIndex,L),Ja(L,j,R)),L}}}function N(t){t.invisible||y.push(t)}function E(t,e,n,i){var o,r,a=x.getModel(i?XC:UC),s=Ii(x.get("name"),null),u=(a=a.getShallow("show"),_s(t,bs(x,i?XC:UC),{defaultText:a?s:null,inheritColor:e,defaultOpacity:n,labelFetcher:h,labelDataIndex:m.dataIndex}),t.getTextContent());u&&(o=u.style,r=Object(l.M)(o.padding||0),i&&(t.setTextConfig({layoutRect:i}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var e=Math.max((i||t.shape).width-r[1]-r[3],0),n=Math.max((i||t.shape).height-r[0]-r[2],0);o.width===e&&o.height===n||u.setStyle({width:e,height:n})},o.truncateMinChar=2,o.lineOverflow="truncate",z(o,i,v),z((a=u.getState("emphasis"))?a.style:null,i,v))}function z(t,e,n){var i=t?t.text:null;!e&&n.isLeafRoot&&null!=i&&(e=h.get("drillDownIcon",!0),t.text=e?e+" "+i:i)}function B(t,e,n,i){var o,r,a=null!=I&&d[t][I],s=g[t];return a?(d[t][I]=null,o=a,r=(r=s)[M]={},o instanceof WC?(r.oldX=o.x,r.oldY=o.y):r.oldShape=Object(l.m)({},o.shape)):S||((a=new e)instanceof So&&(a.z2=n*ZC+i),r=a,o=(o=s)[M]={},e=m.parentNode,r=r instanceof Gn,!e||f&&"drillDown"!==f.direction||(i=n=0,e=g.background[e.getRawIndex()],!f&&e&&e.oldShape&&(n=e.oldShape.width,i=e.oldShape.height),r?(o.oldX=0,o.oldY=i):o.oldShape={x:n,y:i,width:0,height:0}),o.fadein=!r),p[t][M]=a}}!function t(e,n,i,o,r){function a(t){return t.getId()}function s(a,s){a=null!=a?e[a]:null,s=null!=s?n[s]:null;var l=c(a,s,i,r);l&&t(a&&a.viewChildren||[],s&&s.viewChildren||[],l,o,r+1)}o?(n=e,Object(l.k)(e,(function(t,e){t.isRemoved()||s(e,e)}))):new Nx(n,e,a,a).add(s).update(s).remove(Object(l.h)(s,null)).execute()}(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0),h=eA(),(t=s)&&Object(l.k)(t,(function(t,e){var n=h[e];Object(l.k)(t,(function(t){t&&(n.push(t),JC(t).willDelete=!0)}))}));var h,p=h;return this._oldTree=i,this._storage=a,{lastsForAnimation:r,willDeleteEls:p,renderFinally:function(){Object(l.k)(p,(function(t){Object(l.k)(t,(function(t){t.parent&&t.parent.remove(t)}))})),Object(l.k)(u,(function(t){t.invisible=!0,t.dirty()}))}}},tA.prototype._doAnimation=function(t,e,n,i){var o=n.get("animationDurationUpdate"),r=(n=n.get("animationEasing"),(Object(l.w)(o)?0:o)||0),a=(Object(l.w)(n)?null:n)||"cubicOut",s=new FC;Object(l.k)(e.willDeleteEls,(function(t,e){Object(l.k)(t,(function(t,n){var o,l,u;t.invisible||(o=t.parent,u=JC(o),(u=i&&"drillDown"===i.direction?o===i.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}}:(l=o=0,u.willDelete||(o=u.nodeWidth/2,l=u.nodeHeight/2),"nodeGroup"===e?{x:o,y:l,style:{opacity:0}}:{shape:{x:o,y:l,width:0,height:0},style:{opacity:0}}))&&s.add(t,u,r,0,a))}))})),Object(l.k)(this._storage,(function(t,n){Object(l.k)(t,(function(t,i){i=e.lastsForAnimation[n][i];var o={};i&&(t instanceof Gn?null!=i.oldX&&(o.x=t.x,o.y=t.y,t.x=i.oldX,t.y=i.oldY):(i.oldShape&&(o.shape=Object(l.m)({},t.shape),t.setShape(i.oldShape)),i.fadein?(t.setStyle("opacity",0),o.style={opacity:1}):1!==t.style.opacity&&(o.style={opacity:1})),s.add(t,o,r,0,a))}))}),this),this._state="animating",s.finished(Object(l.c)((function(){this._state="ready",e.renderFinally()}),this)).start()},tA.prototype._resetController=function(t){var e=this._controller,n=(e||((e=this._controller=new UI(t.getZr())).enable(this.seriesModel.get("roam")),e.on("pan",Object(l.c)(this._onPan,this)),e.on("zoom",Object(l.c)(this._onZoom,this))),new xn(0,0,t.getWidth(),t.getHeight()));e.setPointerChecker((function(t,e,i){return n.contain(e,i)}))},tA.prototype._clearController=function(){var t=this._controller;t&&t.dispose()},tA.prototype._onPan=function(t){var e;"animating"!==this._state&&(3<Math.abs(t.dx)||3<Math.abs(t.dy))&&(e=this.seriesModel.getData().tree.root)&&(e=e.getLayout())&&this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:e.x+t.dx,y:e.y+t.dy,width:e.width,height:e.height}})},tA.prototype._onZoom=function(t){var e,n,i,o=t.originX,r=t.originY;"animating"!==this._state&&(e=this.seriesModel.getData().tree.root)&&(e=e.getLayout())&&(e=new xn(e.x,e.y,e.width,e.height),Xe(i=Ge(),i,[-(o-=(n=this.seriesModel.layoutInfo).x),-(r-=n.y)]),qe(i,i,[t.scale,t.scale]),Xe(i,i,[o,r]),e.applyTransform(i),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:e.x,y:e.y,width:e.width,height:e.height}}))},tA.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){var n,i;"ready"===e._state&&(n=e.seriesModel.get("nodeClick",!0))&&(t=e.findTarget(t.offsetX,t.offsetY))&&((i=t.node).getLayout().isLeafRoot?e._rootToNode(t):"zoomToNode"===n?e._zoomToNode(t):"link"===n&&(n=(t=i.hostTree.data.getItemModel(i.dataIndex)).get("link",!0),i=t.get("target",!0)||"blank",n&&Gl(n,i)))}),this)},tA.prototype._renderBreadcrumb=function(t,e,n){var i=this;n=n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||{node:t.getData().tree.root},(this._breadcrumb||(this._breadcrumb=new VC(this.group))).render(t,e,n.node,(function(e){"animating"!==i._state&&(OC(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))}))},tA.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=eA(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},tA.prototype.dispose=function(){this._clearController()},tA.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},tA.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},tA.prototype.findTarget=function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(i){var o=this._storage.background[i.getRawIndex()];if(o){var r=o.transformCoordToLocal(t,e);o=o.shape;if(!(o.x<=r[0]&&r[0]<=o.x+o.width&&o.y<=r[1]&&r[1]<=o.y+o.height))return!1;n={node:i,offsetX:r[0],offsetY:r[1]}}}),this),n},tA.type="treemap";var nA=tA,iA=l.k,oA=l.A,rA=-1,aA=(sA.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},sA.prototype.getNormalizer=function(){return l.c(this._normalizeData,this)},sA.listVisualTypes=function(){return l.F(sA.visualHandlers)},sA.isValidType=function(t){return sA.visualHandlers.hasOwnProperty(t)},sA.eachVisual=function(t,e,n){l.A(t)?l.k(t,e,n):e.call(n,t)},sA.mapVisual=function(t,e,n){var i,o=l.t(t)?[]:l.A(t)?{}:(i=!0,null);return sA.eachVisual(t,(function(t,r){t=e.call(n,t,r),i?o=t:o[r]=t})),o},sA.retrieveVisuals=function(t){var e,n={};return t&&iA(sA.visualHandlers,(function(i,o){t.hasOwnProperty(o)&&(n[o]=t[o],e=!0)})),e?n:null},sA.prepareVisualTypes=function(t){if(l.t(t))t=t.slice();else{if(!oA(t))return[];var e=[];iA(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},sA.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},sA.findPieceIndex=function(t,e,n){for(var i,o=1/0,r=0,a=e.length;r<a;r++){var s=e[r].value;if(null!=s){if(s===t||l.C(s)&&s===t+"")return r;n&&h(s,r)}}for(r=0,a=e.length;r<a;r++){var u=e[r],c=u.interval;u=u.close;if(c){if(c[0]===-1/0){if(vA(u[1],t,c[1]))return r}else if(c[1]===1/0){if(vA(u[0],c[0],t))return r}else if(vA(u[0],c[0],t)&&vA(u[1],t,c[1]))return r;n&&h(c[0],r),n&&h(c[1],r)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function h(e,n){e=Math.abs(e-t),e<o&&(o=e,i=n)}},sA.visualHandlers={color:{applyVisual:hA("color"),getColorMapper:function(){var t=this.option;return l.c("category"===t.mappingMethod?function(t,e){return e||(t=this._normalizeData(t)),pA.call(this,t)}:function(e,n,i){var o=!!i;return n||(e=this._normalizeData(e)),i=te.a(e,t.parsedVisual,i),o?i:te.h(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return te.h(te.a(t,this.option.parsedVisual),"rgba")},category:pA,piecewise:function(t,e){return e=gA.call(this,e),null==e?te.h(te.a(t,this.option.parsedVisual),"rgba"):e},fixed:dA}},colorHue:uA((function(t,e){return te.f(t,e)})),colorSaturation:uA((function(t,e){return te.f(t,null,e)})),colorLightness:uA((function(t,e){return te.f(t,null,null,e)})),colorAlpha:uA((function(t,e){return te.e(t,e)})),decal:{applyVisual:hA("decal"),_normalizedToVisual:{linear:null,category:pA,piecewise:null,fixed:null}},opacity:{applyVisual:hA("opacity"),_normalizedToVisual:fA([0,1])},liftZ:{applyVisual:hA("liftZ"),_normalizedToVisual:{linear:dA,category:dA,piecewise:dA,fixed:dA}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:cA,category:pA,piecewise:function(t,e){return e=gA.call(this,e),null==e?cA.call(this,t):e},fixed:dA}},symbolSize:{applyVisual:hA("symbolSize"),_normalizedToVisual:fA([0,1])}},sA);function sA(t){var e,n=t.mappingMethod,i=t.type;t=this.option=l.d(t),this.type=i,this.mappingMethod=n,this._normalizeData=mA[n],i=sA.visualHandlers[i];if(this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[n],"piecewise"===n)lA(t),i=(e=t).pieceList,e.hasSpecialVisual=!1,l.k(i,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}));else if("category"===n)if(t.categories){i=t;var o,r=i.categories,a=i.categoryMap={},s=i.visual;iA(r,(function(t,e){a[t]=e})),l.t(s)||(o=[],l.A(s)?iA(s,(function(t,e){e=a[e],o[null!=e?e:rA]=t})):o[rA]=s,s=yA(i,o));for(var u=r.length-1;0<=u;u--)null==s[u]&&(delete a[r[u]],r.pop())}else lA(t,!0);else l.b("linear"!==n||t.dataExtent),lA(t)}function lA(t,e){var n=t.visual,i=[];l.A(n)?iA(n,(function(t){i.push(t)})):null!=n&&i.push(n),e||1!==i.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(i[1]=i[0]),yA(t,i)}function uA(t){return{applyVisual:function(e,n,i){e=this.mapValueToVisual(e),i("color",t(n("color"),e))},_normalizedToVisual:fA([0,1])}}function cA(t){var e=this.option.visual;return e[Math.round(Kn(t,[0,1],[0,e.length-1],!0))]||{}}function hA(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function pA(t){var e=this.option.visual;return e[this.option.loop&&t!==rA?t%e.length:t]}function dA(){return this.option.visual[0]}function fA(t){return{linear:function(e){return Kn(e,t,this.option.visual,!0)},category:pA,piecewise:function(e,n){return n=gA.call(this,n),null==n?Kn(e,t,this.option.visual,!0):n},fixed:dA}}function gA(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual&&(e=n[aA.findPieceIndex(t,n)],e&&e.visual))return e.visual[this.type]}function yA(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=l.H(e,(function(t){return te.g(t)}))),e}var mA={linear:function(t){return Kn(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList;t=aA.findPieceIndex(t,e,!0);if(null!=t)return Kn(t,[0,e.length-1],[0,1],!0)},category:function(t){return t=this.option.categories?this.option.categoryMap[t]:t,null==t?rA:t},fixed:l.L};function vA(t,e,n){return t?e<=n:e<n}var xA=aA,_A="itemStyle",bA=ki(),wA={seriesType:"treemap",reset:function(t){var e=t.getData().tree.root;e.isRemoved()||function t(e,n,i,o){var r=e.getModel(),a=e.getLayout(),s=e.hostTree.data;if(a&&!a.invisible&&a.isInView){var u=r.getModel(_A),c=SA(u,n,o);n=s.ensureUniqueItemVisual(e.dataIndex,"style"),s=u.get("borderColor");var h,p,d=u.get("borderColorSaturation");null!=d&&(h=MA(c),s=IA(d,h)),n.stroke=s,d=e.viewChildren,d&&d.length?(p=TA(0,r,a,0,c,d),Object(l.k)(d,(function(e,n){(e.depth>=i.length||e===i[e.depth])&&(n=AA(r,c,e,n,p,o),t(e,n,i,o))}))):(h=MA(c),n.fill=h)}}(e,{},t.getViewRoot().getAncestors(),t)}};function SA(t,e,n){var i=Object(l.m)({},e),o=n.designatedVisualItemStyle;return Object(l.k)(["color","colorAlpha","colorSaturation"],(function(n){o[n]=e[n];var r=t.get(n);(o[n]=null)!=r&&(i[n]=r)})),i}function MA(t){var e,n=OA(t,"color");if(n)return e=OA(t,"colorAlpha"),(t=OA(t,"colorSaturation"))&&(n=Object(te.f)(n,null,null,t)),e?Object(te.e)(n,e):n}function IA(t,e){return null!=e?Object(te.f)(e,null,null,t):null}function OA(t,e){if(t=t[e],null!=t&&"none"!==t)return t}function TA(t,e,n,i,o,r){if(r&&r.length){var a;r=CA(e,"color")||null!=o.color&&"none"!==o.color&&(CA(e,"colorAlpha")||CA(e,"colorSaturation"));if(r)return o=e.get("visualMin"),a=e.get("visualMax"),n=n.dataExtent.slice(),null!=o&&o<n[0]&&(n[0]=o),null!=a&&a>n[1]&&(n[1]=a),o=e.get("colorMappingBy"),"color"!==(a={type:r.name,dataExtent:n,visual:r.range}).type||"index"!==o&&"id"!==o?a.mappingMethod="linear":(a.mappingMethod="category",a.loop=!0),e=new xA(a),bA(e).drColorMappingBy=o,e}}function CA(t,e){return t=t.get(e),Object(l.t)(t)&&t.length?{name:e,range:t}:null}function AA(t,e,n,i,o,r){var a,s;e=Object(l.m)({},e);return o&&(i="index"===(s="color"===(a=o.type)&&bA(o).drColorMappingBy)?i:"id"===s?r.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension")),e[a]=o.mapValueToVisual(i)),e}var kA=Math.max,DA=Math.min,LA=l.O,PA=l.k,jA=["itemStyle","borderWidth"],RA=["itemStyle","gapWidth"],NA=["upperLabel","show"],EA=["upperLabel","height"],zA={seriesType:"treemap",reset:function(t,e,n,i){var o,r=n.getWidth(),a=n.getHeight(),s=t.option,u=(n=ql(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),s.size||[]),c=Qn(LA(n.width,u[0]),r),h=(u=Qn(LA(n.height,u[1]),a),i&&i.type),p=MC(i,["treemapZoomToNode","treemapRootToNode"],t),d=(i="treemapRender"===h||"treemapMove"===h?i.rootRect:null,t.getViewRoot()),f=IC(d);"treemapMove"!==h&&(h="treemapZoomToNode"===h?function(t,e,n,i,o){var r,a=(e||{}).node,s=[i,o];if(!a||a===n)return s;e=i*o;for(var l=e*t.option.zoomToNodeRatio;r=a.parentNode;){for(var u=0,c=r.children,h=0,p=c.length;h<p;h++)u+=c[h].getValue();var d=a.getValue();if(0===d)return s;l*=u/d;d=r.getModel();var f=d.get(jA);d=Math.max(f,HA(d));l+=4*f*f+(3*f+d)*Math.pow(l,.5),ni<l&&(l=ni),a=r}return l<e&&(l=e),n=Math.pow(l/e,.5),[i*n,o*n]}(t,p,d,c,u):i?[i.width,i.height]:[c,u],c=s.sort,u={squareRatio:s.squareRatio,sort:c=c&&"asc"!==c&&"desc"!==c?"desc":c,leafDepth:s.leafDepth},d.hostTree.clearLayouts(),o={x:0,y:0,width:h[0],height:h[1],area:h[0]*h[1]},d.setLayout(o),function t(e,n,i,o){var r;if(!e.isRemoved()){var a=e.getLayout();r=a.width,a=a.height;var s=e.getModel(),l=s.get(jA),u=s.get(RA)/2,c=HA(s),h=Math.max(l,c),p=l-u,d=h-u;e.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0),r=kA(r-2*p,0),a=kA(a-p-d,0),l=r*a;var f=BA(e,s,l,n,i,o);if(f.length){var g={x:p,y:d,width:r,height:a},y=DA(r,a),m=1/0,v=[];v.area=0;for(var x=0,_=f.length;x<_;){var b=f[x];b=(v.push(b),v.area+=b.getLayout().area,VA(v,y,n.squareRatio));m=b<=m?(x++,b):(v.area-=v.pop().getLayout().area,FA(v,y,g,u,!1),y=DA(g.width,g.height),1/(v.length=v.area=0))}for(v.length&&FA(v,y,g,u,!0),i||null!=(h=s.get("childrenVisibleMin"))&&l<h&&(i=!0),x=0,_=f.length;x<_;x++)t(f[x],n,i,o+1)}}}(d,u,!1,0),o=d.getLayout(),PA(f,(function(t,e){e=(f[e+1]||d).getValue(),t.setLayout(l.m({dataExtent:[e,e],borderWidth:0,upperHeight:0},o))}))),c=t.getData().tree.root;c.setLayout(function(t,e,n){if(e)return{x:e.x,y:e.y};if(e={x:0,y:0},!n)return e;n=n.node;var i=n.getLayout();if(!i)return e;for(var o=[i.width/2,i.height/2],r=n;r;){var a=r.getLayout();o[0]+=a.x,o[1]+=a.y,r=r.parentNode}return{x:t.width/2-o[0],y:t.height/2-o[1]}}(n,i,p),!0),t.setLayoutInfo(n),function t(e,n,i,o,r){var a=e.getLayout(),s=i[r],l=s&&s===e;if(!(s&&!l||r===i.length&&e!==o)){e.setLayout({isInView:!0,invisible:!l&&!n.intersect(a),isAboveViewRoot:l},!0);var u=new xn(n.x-a.x,n.y-a.y,n.width,n.height);PA(e.viewChildren||[],(function(e){t(e,u,i,o,r+1)}))}}(c,new xn(-n.x,-n.y,r,a),f,d,0)}};function BA(t,e,n,i,o,r){var a,s=t.children||[],u=i.sort;"asc"!==u&&"desc"!==u&&(u=null),i=null!=i.leafDepth&&i.leafDepth<=r;if(o&&!i)return t.viewChildren=[];s=l.n(s,(function(t){return!t.isRemoved()})),r=s,(a=u)&&r.sort((function(t,e){var n="asc"===a?t.getValue()-e.getValue():e.getValue()-t.getValue();return 0==n?"asc"===a?t.dataIndex-e.dataIndex:e.dataIndex-t.dataIndex:n}));var c=function(t,e,n){for(var i=0,o=0,r=e.length;o<r;o++)i+=e[o].getValue();var a,s=t.get("visualDimension");return e&&e.length?"value"===s&&n?(a=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],PA(e,(function(t){t=t.getValue(s),t<a[0]&&(a[0]=t),t>a[1]&&(a[1]=t)}))):a=[NaN,NaN],{sum:i,dataExtent:a}}(e,s,u);if(0===c.sum)return t.viewChildren=[];if(c.sum=function(t,e,n,i,o){if(!i)return n;for(var r=t.get("visibleMin"),a=o.length,s=a,l=a-1;0<=l;l--){var u=o["asc"===i?a-l-1:l].getValue();u/n*e<r&&(s=l,n-=u)}return"asc"===i?o.splice(0,a-s):o.splice(s,a-s),n}(e,n,c.sum,u,s),0===c.sum)return t.viewChildren=[];for(var h=0,p=s.length;h<p;h++){var d=s[h].getValue()/c.sum*n;s[h].setLayout({area:d})}return i&&(s.length&&t.setLayout({isLeafRoot:!0},!0),s.length=0),t.viewChildren=s,t.setLayout({dataExtent:c.dataExtent},!0),s}function VA(t,e,n){for(var i,o=0,r=1/0,a=0,s=t.length;a<s;a++)(i=t[a].getLayout().area)&&(i<r&&(r=i),o<i&&(o=i));var l=t.area*t.area;e=e*e*n;return l?kA(e*o/l,l/(e*r)):1/0}function FA(t,e,n,i,o){var r=e===n.width?0:1,a=1-r,s=["x","y"],l=["width","height"],u=n[s[r]],c=e?t.area/e:0;(o||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,p=t.length;h<p;h++){var d=t[h],f={},g=c?d.getLayout().area/c:0,y=f[l[a]]=kA(c-2*i,0),m=n[s[r]]+n[l[r]]-u;m=h===p-1||m<g?m:g,g=f[l[r]]=kA(m-2*i,0);f[s[a]]=n[s[a]]+DA(i,y/2),f[s[r]]=u+DA(i,g/2),u+=m,d.setLayout(f,!0)}n[s[a]]+=c,n[l[a]]-=c}function HA(t){return t.get(NA)?t.get(EA):0}function GA(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getGraph().data,o=n.mapArray(n.getName);i.filterSelf((function(t){var n=i.getItemModel(t).getShallow("category");if(null!=n){Object(l.z)(n)&&(n=o[n]);for(var r=0;r<e.length;r++)if(!e[r].isSelected(n))return!1}return!0}))}))}function WA(t){var e={};t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getData(),o={};n.each((function(i){for(var r=n.getName(i),a=(o["ec-"+r]=i,n.getItemModel(i)),s=a.getModel("itemStyle").getItemStyle(),l=(s.fill||(s.fill=t.getColorFromPalette(r,e)),n.setItemVisual(i,"style",s),["symbol","symbolSize","symbolKeepAspect"]),u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(i,l[u],c)}})),n.count()&&i.each((function(t){var e=i.getItemModel(t).getShallow("category");if(null!=e){Object(l.C)(e)&&(e=o["ec-"+e]);for(var r=n.getItemVisual(e,"style"),a=i.ensureUniqueItemVisual(t,"style"),s=(Object(l.m)(a,r),["symbol","symbolSize","symbolKeepAspect"]),u=0;u<s.length;u++)i.setItemVisual(t,s[u],n.getItemVisual(e,s[u]))}}))}))}function YA(t){return t instanceof Array?t:[t,t]}function UA(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),n=t.getEdgeData(),i=YA(t.get("edgeSymbol")),o=YA(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",o&&o[0]),n.setVisual("toSymbolSize",o&&o[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each((function(t){var i=n.getItemModel(t),o=e.getEdgeByIndex(t),r=YA(i.getShallow("symbol",!0)),a=YA(i.getShallow("symbolSize",!0)),s=(i=i.getModel("lineStyle").getLineStyle(),n.ensureUniqueItemVisual(t,"style"));switch(Object(l.m)(s,i),s.stroke){case"source":var u=o.node1.getVisual("style");s.stroke=u&&u.fill;break;case"target":u=o.node2.getVisual("style"),s.stroke=u&&u.fill}r[0]&&o.setVisual("fromSymbol",r[0]),r[1]&&o.setVisual("toSymbol",r[1]),a[0]&&o.setVisual("fromSymbolSize",a[0]),a[1]&&o.setVisual("toSymbolSize",a[1])}))}))}function XA(t,e){var n=$A(t),i=20,o=[];if(l.z(n))i=n;else if(l.t(n))return t.__curvenessList=n;for(var r=(i=i<e?e:i)%2?i+2:i+3,a=(o=[],0);a<r;a++)o.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=o}function ZA(t){return[(t=t.split(QA))[0],t[2],t[1]].join(QA)}function qA(t,e){return t=JA(t.node1,t.node2,e),e.__edgeMap[t]}function KA(t,e){return tk(JA(t.node1,t.node2,e),e)+tk(JA(t.node2,t.node1,e),e)}var QA="--\x3e",$A=function(t){return t.get("autoCurveness")||null},JA=function(t,e,n){return t=[t.id,t.dataIndex].join("."),e=[e.id,e.dataIndex].join("."),[n.uid,t,e].join(QA)},tk=function(t,e){return e=e.__edgeMap,e[t]?e[t].length:0};function ek(t,e,n,i){var o=$A(e),r=l.t(o);if(!o)return null;var a=qA(t,e);if(!a)return null;for(var s=-1,u=0;u<a.length;u++)if(a[u]===n){s=u;break}var c=KA(t,e),h=(t=(XA(e,c),t.lineStyle=t.lineStyle||{},JA(t.node1,t.node2,e)),e.__curvenessList);c=r||c%2?0:1;return a.isForward?h[c+s]:(t=ZA(t),e=h[s+(t=tk(t,e))+c],i?!r||o&&0===o[0]?(t+c)%2?e:-e:((t%2?0:1)+c)%2?e:-e:h[s+t+c])}function nk(t){var e=t.coordinateSystem;e&&"view"!==e.type||((e=t.getGraph()).eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),ik(e,t))}function ik(t,e){t.eachEdge((function(t,n){n=l.Q(t.getModel().get(["lineStyle","curveness"]),-ek(t,e,n,!0),0);var i=d(t.node1.getLayout()),o=d(t.node2.getLayout()),r=[i,o];+n&&r.push([(i[0]+o[0])/2-(i[1]-o[1])*n,(i[1]+o[1])/2-(o[0]-i[0])*n]),t.setLayout(r)}))}function ok(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var i=t.getData(),o=[];Object(l.k)(n.dimensions,(function(t){o=o.concat(i.mapDimensionsAll(t))}));for(var r=0;r<i.count();r++){for(var a=[],s=!1,u=0;u<o.length;u++){var c=i.get(o[u],r);isNaN(c)||(s=!0),a.push(c)}s?i.setItemLayout(r,n.dataToPoint(a)):i.setItemLayout(r,[NaN,NaN])}ik(i.graph,t)}else e&&"none"!==e||nk(t)}))}function rk(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;t=t.option.nodeScaleRatio;var n=e.scaleX;return((e.getZoom()-1)*t+1)/n}function ak(t){return t=t.getVisual("symbolSize"),+(t=t instanceof Array?(t[0]+t[1])/2:t)}var sk=Math.PI,lk=[];function uk(t,e){var n,i,o,r,a,s=t.coordinateSystem;s&&"view"!==s.type||(s=s.getBoundingRect(),i=(n=t.getData()).graph,o=s.width/2+s.x,r=s.height/2+s.y,s=Math.min(s.width,s.height)/2,a=n.count(),n.setLayout({cx:o,cy:r}),a&&(ck[e](t,i,n,s,o,r,a),i.eachEdge((function(e,n){n=l.Q(e.getModel().get(["lineStyle","curveness"]),ek(e,t,n),0);var i,a=d(e.node1.getLayout()),s=d(e.node2.getLayout()),u=(a[0]+s[0])/2,c=(a[1]+s[1])/2;+n&&(i=[o*(n*=3)+u*(1-n),r*n+c*(1-n)]),e.setLayout([a,s,i])}))))}var ck={value:function(t,e,n,i,o,r,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);e.eachNode((function(t){var e=t.getValue("value");e=u*(l?e:1)/2;s+=e,t.setLayout([i*Math.cos(s)+o,i*Math.sin(s)+r]),s+=e}))},symbolSize:function(t,e,n,i,o,r,a){var s=0,l=(lk.length=a,rk(t)),u=(e.eachNode((function(t){var e=ak(t);(e=isNaN(e)?2:e)<0&&(e=0),e*=l,e=Math.asin(e/2/i);isNaN(e)&&(e=sk/2),lk[t.dataIndex]=e,s+=2*e})),(2*sk-s)/a/2),c=0;e.eachNode((function(t){var e=u+lk[t.dataIndex];c+=e,t.setLayout([i*Math.cos(c)+o,i*Math.sin(c)+r]),c+=e}))}};function hk(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&uk(t,"symbolSize")}))}var pk=g;function dk(t,e,n){for(var i=t,o=e,r=(t=n.rect,t.width),a=t.height,s=[t.x+r/2,t.y+a/2],l=null==n.gravity?.1:n.gravity,u=0;u<i.length;u++){var c=i[u];c.p||(c.p=h(r*(Math.random()-.5)+s[0],a*(Math.random()-.5)+s[1])),c.pp=d(c.p),c.edges=null}var f,g,v=null==n.friction?.6:n.friction,x=v;return{warmUp:function(){x=.8*v},setFixed:function(t){i[t].fixed=!0},setUnfixed:function(t){i[t].fixed=!1},beforeStep:function(t){f=t},afterStep:function(t){g=t},step:function(t){f&&f(i,o);for(var e=[],n=i.length,r=0;r<o.length;r++){var a=o[r];a.ignoreForceLayout||(d=a.n1,y(e,(h=a.n2).p,d.p),b=m(e)-a.d,a=h.w/(d.w+h.w),isNaN(a)&&(a=0),_(e,e),d.fixed||pk(d.p,d.p,e,a*b*x),h.fixed||pk(h.p,h.p,e,-(1-a)*b*x))}for(r=0;r<n;r++)(S=i[r]).fixed||(y(e,s,S.p),pk(S.p,S.p,e,l*x));var u,c;for(r=0;r<n;r++)for(var h,d=i[r],v=r+1;v<n;v++){y(e,(h=i[v]).p,d.p),0===(b=m(e))&&(u=e,w=Math.random()-.5,c=Math.random()-.5,u[0]=w,u[1]=c,b=1);var b,w=(d.rep+h.rep)/b/b;d.fixed||pk(d.pp,d.pp,e,w),h.fixed||pk(h.pp,h.pp,e,-w)}var S,M=[];for(r=0;r<n;r++)(S=i[r]).fixed||(y(M,S.p,S.pp),pk(S.p,S.p,M,x),p(S.pp,S.p));var I=(x*=.992)<.01;g&&g(i,o,I),t&&t(I)}}}function fk(t){t.eachSeriesByType("graph",(function(t){var e,n,i,o,r,a,s,u,c,h,d,f,g=t.coordinateSystem;g&&"view"!==g.type||("force"===t.get("layout")?(e=t.preservedPoints||{},n=t.getGraph(),i=n.data,f=n.edgeData,h=(o=t.getModel("force")).get("initLayout"),t.preservedPoints?i.each((function(t){var n=i.getId(t);i.setItemLayout(t,e[n]||[NaN,NaN])})):h&&"none"!==h?"circular"===h&&uk(t,"value"):nk(t),r=i.getDataExtent("value"),a=f.getDataExtent("value"),h=o.get("repulsion"),d=o.get("edgeLength"),s=l.t(h)?h:[h,h],u=[(u=l.t(d)?d:[d,d])[1],u[0]],c=i.mapArray("value",(function(t,e){var n=i.getItemLayout(e);t=Kn(t,r,s);return{w:t=isNaN(t)?(s[0]+s[1])/2:t,rep:t,fixed:i.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),h=f.mapArray("value",(function(e,i){var o=n.getEdgeByIndex(i),r=(e=Kn(e,a,u),isNaN(e)&&(e=(u[0]+u[1])/2),o.getModel());i=l.Q(o.getModel().get(["lineStyle","curveness"]),-ek(o,t,i,!0),0);return{n1:c[o.node1.dataIndex],n2:c[o.node2.dataIndex],d:e,curveness:i,ignoreForceLayout:r.get("ignoreForceLayout")}})),d=g.getBoundingRect(),(f=dk(c,h,{rect:d,gravity:o.get("gravity"),friction:o.get("friction")})).beforeStep((function(t,e){for(var i=0,o=t.length;i<o;i++)t[i].fixed&&p(t[i].p,n.getNodeByIndex(i).getLayout())})),f.afterStep((function(t,o,r){for(var a=0,s=t.length;a<s;a++)t[a].fixed||n.getNodeByIndex(a).setLayout(t[a].p),e[i.getId(a)]=t[a].p;for(a=0,s=o.length;a<s;a++){var l=o[a],u=n.getEdgeByIndex(a),c=l.n1.p,h=l.n2.p,d=u.getLayout();(d=d?d.slice():[])[0]=d[0]||[],d[1]=d[1]||[],p(d[0],c),p(d[1],h),+l.curveness&&(d[2]=[(c[0]+h[0])/2-(c[1]-h[1])*l.curveness,(c[1]+h[1])/2-(h[0]-c[0])*l.curveness]),u.setLayout(d)}})),t.forceLayout=f,t.preservedPoints=e,f.step()):t.forceLayout=null)}))}function gk(t,e){var n=[];return t.eachSeriesByType("graph",(function(t){var i,o,r,a,s,u,c,h=t.get("coordinateSystem");h&&"view"!==h||(h=[],r=[],Lo((i=t.getData()).mapArray((function(t){return t=i.getItemModel(t),[+t.get("x"),+t.get("y")]})),h,r),r[0]-h[0]==0&&(r[0]+=1,--h[0]),r[1]-h[1]==0&&(r[1]+=1,--h[1]),o=(r[0]-h[0])/(r[1]-h[1]),s=t,u=e,c=o,s=ql(Object(l.m)(s.getBoxLayoutParams(),{aspect:c}),{width:u.getWidth(),height:u.getHeight()}),isNaN(o)&&(h=[s.x,s.y],r=[s.x+s.width,s.y+s.height]),c=r[0]-h[0],u=r[1]-h[1],o=s.width,r=s.height,(a=t.coordinateSystem=new MT).zoomLimit=t.get("scaleLimit"),a.setBoundingRect(h[0],h[1],c,u),a.setViewRect(s.x,s.y,o,r),a.setCenter(t.get("center")),a.setZoom(t.get("zoom")),n.push(a))})),n}var yk,mk,vk=Dd.prototype,xk=zd.prototype,_k=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function bk(){return null!==yk&&yk.apply(this,arguments)||this}function wk(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}function Sk(t){return t=mk.call(this,t)||this,t.type="ec-line",t}a(bk,yk=_k),a(Sk,mk=br),Sk.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Sk.prototype.getDefaultShape=function(){return new _k},Sk.prototype.buildPath=function(t,e){(wk(e)?vk:xk).buildPath.call(this,t,e)},Sk.prototype.pointAt=function(t){return(wk(this.shape)?vk:xk).pointAt.call(this,t)},Sk.prototype.tangentAt=function(t){var e=this.shape;e=wk(e)?[e.x2-e.x1,e.y2-e.y1]:xk.tangentAt.call(this,t);return _(e,e)};var Mk,Ik=Sk,Ok=["fromSymbol","toSymbol"];function Tk(t){return"_"+t+"Type"}function Ck(t,e,n){var i,o,r,a=e.getItemVisual(n,t);if(a&&"none"!==a)return o=e.getItemVisual(n,t+"Size"),i=e.getItemVisual(n,t+"Rotate"),r=e.getItemVisual(n,t+"Offset"),e=e.getItemVisual(n,t+"KeepAspect"),n=Ug(o),o=Xg(r||0,n),r=Yg(a,-n[0]/2+o[0],-n[1]/2+o[1],n[0],n[1],null,e),r.__specifiedRotation=null==i||isNaN(i)?void 0:+i*Math.PI/180||0,r.name=t,r}function Ak(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1,e=e[2],e?(t.cpx1=e[0],t.cpy1=e[1]):(t.cpx1=NaN,t.cpy1=NaN)}function kk(t,e,n){var i=Mk.call(this)||this;return i._createLine(t,e,n),i}a(kk,Mk=Gn),kk.prototype._createLine=function(t,e,n){var i,o=t.hostModel,r=t.getItemLayout(e);r=r,Ak((i=new Ik({name:"line",subPixelOptimize:!0})).shape,r),r=i;r.shape.percent=0,hs(r,{shape:{percent:1}},o,e),this.add(r),Object(l.k)(Ok,(function(n){var i=Ck(n,t,e);this.add(i),this[Tk(n)]=t.getItemVisual(e,n)}),this),this._updateCommonStl(t,e,n)},kk.prototype.updateData=function(t,e,n){var i=t.hostModel,o=this.childOfName("line"),r=t.getItemLayout(e),a={shape:{}};Ak(a.shape,r),cs(o,a,i,e),Object(l.k)(Ok,(function(n){var i=t.getItemVisual(e,n),o=Tk(n);this[o]!==i&&(this.remove(this.childOfName(n)),n=Ck(n,t,e),this.add(n)),this[o]=i}),this),this._updateCommonStl(t,e,n)},kk.prototype.getLinePath=function(){return this.childAt(0)},kk.prototype._updateCommonStl=function(t,e,n){var i=t.hostModel,o=this.childOfName("line"),r=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,u=n&&n.labelStatesModels,c=n&&n.emphasisDisabled,h=n&&n.focus,p=n&&n.blurScope,d=(n&&!t.hasItemOption||(r=(g=(n=t.getItemModel(e)).getModel("emphasis")).getModel("lineStyle").getLineStyle(),a=n.getModel(["blur","lineStyle"]).getLineStyle(),s=n.getModel(["select","lineStyle"]).getLineStyle(),c=g.get("disabled"),h=g.get("focus"),p=g.get("blurScope"),u=bs(n)),t.getItemVisual(e,"style")),f=d.stroke,g=(o.useStyle(d),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=r,o.ensureState("blur").style=a,o.ensureState("select").style=s,Object(l.k)(Ok,(function(t){var e=this.childOfName(t);if(e){e.setColor(f),e.style.opacity=d.opacity;for(var n=0;n<pa.length;n++){var i=pa[n],r=o.getState(i);r&&(r=r.style||{},i=(i=e.ensureState(i)).style||(i.style={}),null!=r.stroke&&(i[e.__isEmptyBrush?"stroke":"fill"]=r.stroke),null!=r.opacity&&(i.opacity=r.opacity))}e.markRedraw()}}),this),i.getRawValue(e));_s(this,u,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return i.getFormattedLabel(e,n,t.dataType)}},inheritColor:f||"#000",defaultOpacity:d.opacity,defaultText:(null==g?t.getName(e):isFinite(g)?$n(g):g)+""}),n=this.getTextContent();n&&(r=u.normal,n.__align=n.style.align,n.__verticalAlign=n.style.verticalAlign,n.__position=r.get("position")||"middle",a=r.get("distance"),Object(l.t)(a)||(a=[a,a]),n.__labelDistance=a),this.setTextConfig({position:null,local:!0,inside:!1}),$a(this,h,p,c)},kk.prototype.highlight=function(){Ba(this)},kk.prototype.downplay=function(){Va(this)},kk.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},kk.prototype.setLinePoints=function(t){var e=this.childOfName("line");Ak(e.shape,t),e.dirty()},kk.prototype.beforeUpdate=function(){var t=this.childOfName("fromSymbol"),e=this.childOfName("toSymbol"),n=this.getTextContent();if(t||e||n&&!n.ignore){for(var i=1,o=this.parent;o;)o.scaleX&&(i/=o.scaleX),o=o.parent;var r=this.childOfName("line");if(this.__dirty||r.__dirty){var a=r.shape.percent,s=r.pointAt(0),l=r.pointAt(a),u=y([],l,s);if(_(u,u),t&&(t.setPosition(s),x(t,0),t.scaleX=t.scaleY=i*a,t.markRedraw()),e&&(e.setPosition(l),x(e,1),e.scaleX=e.scaleY=i*a,e.markRedraw()),n&&!n.ignore){n.x=n.y=0;var c=void(n.originX=n.originY=0),h=void 0,p=(t=n.__labelDistance,t[0]*i),d=t[1]*i,f=(e=a/2,r.tangentAt(e)),g=(t=[f[1],-f[0]],r.pointAt(e)),m=(0<t[1]&&(t[0]=-t[0],t[1]=-t[1]),f[0]<0?-1:1),v=void("start"!==n.__position&&"end"!==n.__position&&(a=-Math.atan2(f[1],f[0]),l[0]<s[0]&&(a=Math.PI+a),n.rotation=a));switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":v=-d,h="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":v=d,h="top";break;default:v=0,h="middle"}switch(n.__position){case"end":n.x=u[0]*p+l[0],n.y=u[1]*d+l[1],c=.8<u[0]?"left":u[0]<-.8?"right":"center",h=.8<u[1]?"top":u[1]<-.8?"bottom":"middle";break;case"start":n.x=-u[0]*p+s[0],n.y=-u[1]*d+s[1],c=.8<u[0]?"right":u[0]<-.8?"left":"center",h=.8<u[1]?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=p*m+s[0],n.y=s[1]+v,c=f[0]<0?"right":"left",n.originX=-p*m,n.originY=-v;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=g[0],n.y=g[1]+v,c="center",n.originY=-v;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-p*m+l[0],n.y=l[1]+v,c=0<=f[0]?"right":"left",n.originX=p*m,n.originY=-v}n.scaleX=n.scaleY=i,n.setStyle({verticalAlign:n.__verticalAlign||h,align:n.__align||c})}}}function x(t,e){var n,i=t.__specifiedRotation;null==i?(n=r.tangentAt(e),t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(n[1],n[0]))):t.attr("rotation",i)}};var Dk=kk;function Lk(t){this.group=new Gn,this._LineCtor=t||Dk}function Pk(t){t=t.hostModel;var e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:bs(t)}}function jk(t){return isNaN(t[0])||isNaN(t[1])}function Rk(t){return t&&!jk(t[0])&&!jk(t[1])}Lk.prototype.updateData=function(t){var e=this,n=(this._progressiveEls=null,this.group),i=this._lineData,o=(this._lineData=t,i||n.removeAll(),Pk(t));t.diff(i).add((function(n){e._doAdd(t,n,o)})).update((function(n,r){e._doUpdate(i,t,r,n,o)})).remove((function(t){n.remove(i.getItemGraphicEl(t))})).execute()},Lk.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},Lk.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Pk(t),this._lineData=null,this.group.removeAll()},Lk.prototype.incrementalUpdate=function(t,e){function n(t){var e;t.isGroup||(e=t).animators&&0<e.animators.length||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i,o=t.start;o<t.end;o++)Rk(e.getItemLayout(o))&&((i=new this._LineCtor(e,o,this._seriesScope)).traverse(n),this.group.add(i),e.setItemGraphicEl(o,i),this._progressiveEls.push(i))},Lk.prototype.remove=function(){this.group.removeAll()},Lk.prototype.eachRendered=function(t){Ef(this._progressiveEls||this.group,t)},Lk.prototype._doAdd=function(t,e,n){Rk(t.getItemLayout(e))&&(n=new this._LineCtor(t,e,n),t.setItemGraphicEl(e,n),this.group.add(n))},Lk.prototype._doUpdate=function(t,e,n,i,o){t=t.getItemGraphicEl(n),Rk(e.getItemLayout(i))?(t?t.updateData(e,i,o):t=new this._LineCtor(e,i,o),e.setItemGraphicEl(i,t),this.group.add(t)):this.group.remove(t)};var Nk,Ek=Lk,zk=[],Bk=[],Vk=[],Fk=Yt,Hk=S,Gk=Math.abs;function Wk(t,e,n){for(var i,o=t[0],r=t[1],a=t[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1)zk[0]=Fk(o[0],r[0],a[0],c),zk[1]=Fk(o[1],r[1],a[1],c),(d=Gk(Hk(zk,e)-l))<s&&(s=d,i=c);for(var h=0;h<32;h++){var p=i+u,d=(Bk[0]=Fk(o[0],r[0],a[0],i),Bk[1]=Fk(o[1],r[1],a[1],i),Vk[0]=Fk(o[0],r[0],a[0],p),Vk[1]=Fk(o[1],r[1],a[1],p),Hk(Bk,e)-l);if(Gk(d)<.01)break;p=Hk(Vk,e)-l,u/=2,d<0?0<=p?i+=u:i-=u:0<=p?i-=u:i+=u}return i}function Yk(t,e){var n=[],i=Zt,o=[[],[],[]],r=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l,u,c=t.getLayout(),h=t.getVisual("fromSymbol"),f=t.getVisual("toSymbol"),m=(c.__original||(c.__original=[d(c[0]),d(c[1])],c[2]&&c.__original.push(d(c[2]))),c.__original);null!=c[2]?(p(o[0],m[0]),p(o[1],m[2]),p(o[2],m[1]),h&&"none"!==h&&(u=ak(t.node1),l=Wk(o,m[0],u*e),i(o[0][0],o[1][0],o[2][0],l,n),o[0][0]=n[3],o[1][0]=n[4],i(o[0][1],o[1][1],o[2][1],l,n),o[0][1]=n[3],o[1][1]=n[4]),f&&"none"!==f&&(u=ak(t.node2),l=Wk(o,m[1],u*e),i(o[0][0],o[1][0],o[2][0],l,n),o[1][0]=n[1],o[2][0]=n[2],i(o[0][1],o[1][1],o[2][1],l,n),o[1][1]=n[1],o[2][1]=n[2]),p(c[0],o[0]),p(c[1],o[2]),p(c[2],o[1])):(p(r[0],m[0]),p(r[1],m[1]),y(a,r[1],r[0]),_(a,a),h&&"none"!==h&&(u=ak(t.node1),g(r[0],r[0],a,u*e)),f&&"none"!==f&&(u=ak(t.node2),g(r[1],r[1],a,-u*e)),p(c[0],r[0]),p(c[1],r[1]))}))}function Uk(t){return"view"===t.type}function Xk(){var t=null!==Nk&&Nk.apply(this,arguments)||this;return t.type=Xk.type,t}a(Xk,Nk=Uf),Xk.prototype.init=function(t,e){var n=new D_,i=new Ek,o=this.group;this._controller=new UI(e.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},Xk.prototype.render=function(t,e,n){var i=this,o=t.coordinateSystem,r=(this._model=t,this._symbolDraw),a=this._lineDraw,s=this.group,u=(Uk(o)&&(o={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY},this._firstRender?s.attr(o):cs(s,o,t)),Yk(t.getGraph(),rk(t)),t.getData()),c=(s=(r.updateData(u),t.getEdgeData()),a.updateData(s),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout),t.forceLayout),h=t.get(["force","layoutAnimation"]),p=(c&&this._startForceLayoutIteration(c,h),u.graph.eachNode((function(t){var e,n=t.dataIndex,o=t.getGraphicEl(),r=t.getModel();o&&(o.off("drag").off("dragend"),(e=r.get("draggable"))&&o.on("drag",(function(){c&&(c.warmUp(),i._layouting||i._startForceLayoutIteration(c,h),c.setFixed(n),u.setItemLayout(n,[o.x,o.y]))})).on("dragend",(function(){c&&c.setUnfixed(n)})),o.setDraggable(e&&!!c),"adjacency"===r.get(["emphasis","focus"])&&(oa(o).focus=t.getAdjacentDataIndices()))})),u.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(oa(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})})),"circular"===t.get("layout")&&t.get(["circular","rotateLabel"])),d=u.getLayout("cx"),f=u.getLayout("cy");u.eachItemGraphicEl((function(t,e){var n,i=u.getItemModel(e).get(["label","rotate"])||0;t=t.getSymbolPath();p?(e=u.getItemLayout(e),(n=Math.atan2(e[1]-f,e[0]-d))<0&&(n=2*Math.PI+n),(e=e[0]<d)&&(n-=Math.PI),t.setTextConfig({rotation:-n,position:n=e?"left":"right",origin:"center"}),e=t.ensureState("emphasis"),l.m(e.textConfig||(e.textConfig={}),{position:n})):t.setTextConfig({rotation:i*=Math.PI/180})})),this._firstRender=!1},Xk.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},Xk.prototype._startForceLayoutIteration=function(t,e){var n=this;!function i(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())}))}()},Xk.prototype._updateController=function(t,e,n){var i=this,o=this._controller,r=this._controllerHost,a=this.group;o.setPointerChecker((function(e,i,o){var r=a.getBoundingRect();return r.applyTransform(a.transform),r.contain(i,o)&&!QI(e,n,t)})),Uk(t.coordinateSystem)?(o.enable(t.get("roam")),r.zoomLimit=t.get("scaleLimit"),r.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",(function(e){XI(r,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){ZI(r,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(),Yk(t.getGraph(),rk(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):o.disable()},Xk.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=rk(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},Xk.prototype.updateLayout=function(t){Yk(t.getGraph(),rk(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},Xk.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},Xk.type="graph";var Zk=Xk;function qk(t){return"_EC_"+t}function Kk(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}Kk.prototype.isDirected=function(){return this._directed},Kk.prototype.addNode=function(t,e){var n=this._nodesMap;if(!n[qk(t=null==t?""+e:""+t)])return e=new Qk(t,e),(e.hostGraph=this).nodes.push(e),n[qk(t)]=e},Kk.prototype.getNodeByIndex=function(t){return t=this.data.getRawIndex(t),this.nodes[t]},Kk.prototype.getNodeById=function(t){return this._nodesMap[qk(t)]},Kk.prototype.addEdge=function(t,e,n){var i=this._nodesMap,o=this._edgesMap;if(l.z(t)&&(t=this.nodes[t]),l.z(e)&&(e=this.nodes[e]),t instanceof Qk||(t=i[qk(t)]),e instanceof Qk||(e=i[qk(e)]),t&&e)return i=t.id+"-"+e.id,n=new Jk(t,e,n),(n.hostGraph=this)._directed&&(t.outEdges.push(n),e.inEdges.push(n)),t.edges.push(n),t!==e&&e.edges.push(n),this.edges.push(n),o[i]=n},Kk.prototype.getEdgeByIndex=function(t){return t=this.edgeData.getRawIndex(t),this.edges[t]},Kk.prototype.getEdge=function(t,e){t instanceof Qk&&(t=t.id),e instanceof Qk&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},Kk.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,o=0;o<i;o++)0<=n[o].dataIndex&&t.call(e,n[o],o)},Kk.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,o=0;o<i;o++)0<=n[o].dataIndex&&0<=n[o].node1.dataIndex&&0<=n[o].node2.dataIndex&&t.call(e,n[o],o)},Kk.prototype.breadthFirstTraverse=function(t,e,n,i){if(e=e instanceof Qk?e:this._nodesMap[qk(e)]){for(var o="out"===n?"outEdges":"in"===n?"inEdges":"edges",r=0;r<this.nodes.length;r++)this.nodes[r].__visited=!1;if(!t.call(i,e,null))for(var a=[e];a.length;){var s=a.shift(),l=s[o];for(r=0;r<l.length;r++){var u=l[r];u=u.node1===s?u.node2:u.node1;if(!u.__visited){if(t.call(i,u,s))return;a.push(u),u.__visited=!0}}}}},Kk.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,o=0,r=n.length;o<r;o++)n[o].dataIndex=-1;for(o=0,r=t.count();o<r;o++)n[t.getRawIndex(o)].dataIndex=o;for(e.filterSelf((function(t){return t=i[e.getRawIndex(t)],0<=t.node1.dataIndex&&0<=t.node2.dataIndex})),o=0,r=i.length;o<r;o++)i[o].dataIndex=-1;for(o=0,r=e.count();o<r;o++)i[e.getRawIndex(o)].dataIndex=o},Kk.prototype.clone=function(){for(var t=new Kk(this._directed),e=this.nodes,n=this.edges,i=0;i<e.length;i++)t.addNode(e[i].id,e[i].dataIndex);for(i=0;i<n.length;i++){var o=n[i];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t},n=Kk,$k.prototype.degree=function(){return this.edges.length},$k.prototype.inDegree=function(){return this.inEdges.length},$k.prototype.outDegree=function(){return this.outEdges.length},$k.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)},$k.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t};var Qk=$k;function $k(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}tD.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)},tD.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}};var Jk=tD;function tD(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}function eD(t,e){return{getValue:function(n){var i=this[t][e];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){0<=this.dataIndex&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){0<=this.dataIndex&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}l.K(Qk,eD("hostGraph","data")),l.K(Jk,eD("hostGraph","edgeData"));var nD,iD=n;function oD(t,e,n,i,o){for(var r=new iD(i),a=0;a<t.length;a++)r.addNode(l.O(t[a].id,t[a].name,a),a);var s=[],u=[],c=0;for(a=0;a<e.length;a++){var h=e[a],p=h.source,d=h.target;r.addEdge(p,d,c)&&(u.push(h),s.push(l.O(Ii(h.id,null),p+" > "+d)),c++)}var f;i=n.get("coordinateSystem"),"cartesian2d"===i||"polar"===i?f=v_(t,n):(i=(i=qu.get(i))&&i.dimensions||[],l.r(i,"value")<0&&i.concat(["value"]),i=c_(t,{coordDimensions:i,encodeDefine:n.getEncode()}).dimensions,(f=new u_(i,n)).initData(t)),i=new u_(["value"],n);return i.initData(u,s),o&&o(f,i),mC({mainData:f,struct:r,structAttr:"graph",datas:{node:f,edge:i},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r}function rD(){var t=null!==nD&&nD.apply(this,arguments)||this;return t.type=rD.type,t.hasSymbolVisual=!0,t}a(rD,nD=mp),rD.prototype.init=function(t){nD.prototype.init.apply(this,arguments);var e=this;function n(){return e._categoriesData}this.legendVisualProvider=new Aw(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},rD.prototype.mergeOption=function(t){nD.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},rD.prototype.mergeDefaultAndTheme=function(t){nD.prototype.mergeDefaultAndTheme.apply(this,arguments),xi(t,"edgeLabel",["show"])},rD.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],o=(t=t.data||t.nodes||[],this);if(t&&i)return $A(n=this)&&(n.__curvenessList=[],n.__edgeMap={},XA(n)),n=oD(t,i,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t){var e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var n=Xs.prototype.getModel;function i(t,e){return t=n.call(this,t,e),t.resolveParentPath=r,t}function r(t){var e;return!t||"label"!==t[0]&&"label"!==t[1]?t:(e=t.slice(),"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e)}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=r,t.getModel=i,t}))})),l.k(n.edges,(function(t){var e,n,i;e=t.node1,n=t.node2,i=this,t=t.dataIndex,$A(i)&&(e=JA(e,n,i),i=(n=i.__edgeMap)[ZA(e)],n[e]&&!i?n[e].isForward=!0:i&&n[e]&&(i.isForward=!0,n[e].isForward=!1),n[e]=n[e]||[],n[e].push(t))}),this),n.data},rD.prototype.getGraph=function(){return this.getData().graph},rD.prototype.getEdgeData=function(){return this.getGraph().edgeData},rD.prototype.getCategoriesData=function(){return this._categoriesData},rD.prototype.formatTooltip=function(t,e,n){var i,o,r;return"edge"===n?(o=this.getData(),n=this.getDataParams(t,n),r=o.graph.getEdgeByIndex(t),i=o.getName(r.node1.dataIndex),o=o.getName(r.node2.dataIndex),r=[],null!=i&&r.push(i),null!=o&&r.push(o),Uh("nameValue",{name:r.join(" > "),value:n.value,noValue:null==n.value})):op({series:this,dataIndex:t,multipleSeries:e})},rD.prototype._updateCategoriesData=function(){var t=l.H(this.option.categories||[],(function(t){return null!=t.value?t:l.m({value:0},t)})),e=new u_(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},rD.prototype.setZoom=function(t){this.option.zoom=t},rD.prototype.setCenter=function(t){this.option.center=t},rD.prototype.isAnimationEnabled=function(){return nD.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},rD.type="series.graph",rD.dependencies=["grid","polar","geo","singleAxis","calendar"],rD.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}};var aD,sD=rD,lD={type:"graphRoam",event:"graphRoam",update:"none"},uD=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0};function cD(t){return t=aD.call(this,t)||this,t.type="pointer",t}a(cD,aD=br),cD.prototype.getDefaultShape=function(){return new uD},cD.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,o=e.r,r=e.width,a=e.angle,s=e.x-n(a)*r*(o/3<=r?1:2),l=e.y-i(a)*r*(o/3<=r?1:2);a=e.angle-Math.PI/2;t.moveTo(s,l),t.lineTo(e.x+n(a)*r,e.y+i(a)*r),t.lineTo(e.x+n(e.angle)*o,e.y+i(e.angle)*o),t.lineTo(e.x-n(a)*r,e.y-i(a)*r),t.lineTo(s,l)};var hD=cD;function pD(t,e){var n=null==t?"":t+"";return e&&(Object(l.C)(e)?n=e.replace("{value}",n):Object(l.w)(e)&&(n=e(t))),n}var dD,fD=2*Math.PI;function gD(){var t=null!==dD&&dD.apply(this,arguments)||this;return t.type=gD.type,t}a(gD,dD=Uf),gD.prototype.render=function(t,e,n){this.group.removeAll();var i,o,r,a,s=t.get(["axisLine","lineStyle","color"]),l=(o=n,r=(i=t).get("center"),a=o.getWidth(),l=o.getHeight(),a=Math.min(a,l),{cx:Qn(r[0],o.getWidth()),cy:Qn(r[1],o.getHeight()),r:Qn(i.get("radius"),a/2)});this._renderMain(t,e,n,s,l),this._data=t.getData()},gD.prototype.dispose=function(){},gD.prototype._renderMain=function(t,e,n,i,o){for(var r=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap")?Eb:fd,h=u.get("show"),p=u.getModel("lineStyle"),d=p.get("width"),f=(l-s)%fD||l===s?(l-s)%fD:fD,g=s,y=0;h&&y<i.length;y++){var m=new c({shape:{startAngle:g,endAngle:l=s+f*Math.min(Math.max(i[y][0],0),1),cx:o.cx,cy:o.cy,clockwise:a,r0:o.r-d,r:o.r},silent:!0});m.setStyle({fill:i[y][1]}),m.setStyle(p.getLineStyle(["color","width"])),r.add(m),g=l}function v(t){if(t<=0)return i[0][1];for(var e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]}a||(u=s,s=l,l=u),this._renderTicks(t,e,n,v,o,s,l,a,d),this._renderTitleAndDetail(t,e,n,v,o),this._renderAnchor(t,o),this._renderPointer(t,e,n,v,o,s,l,a,d)},gD.prototype._renderTicks=function(t,e,n,i,o,r,a,s,l){for(var u,c,h,p=this.group,d=o.cx,f=o.cy,g=o.r,y=+t.get("min"),m=+t.get("max"),v=t.getModel("splitLine"),x=t.getModel("axisTick"),_=t.getModel("axisLabel"),b=t.get("splitNumber"),w=x.get("splitNumber"),S=Qn(v.get("length"),g),M=Qn(x.get("length"),g),I=r,O=(a-r)/b,T=O/w,C=v.getModel("lineStyle").getLineStyle(),A=x.getModel("lineStyle").getLineStyle(),k=v.get("distance"),D=0;D<=b;D++)if(P=Math.cos(I),j=Math.sin(I),v.get("show")&&(u=new Dd({shape:{x1:P*(g-(h=k?k+l:l))+d,y1:j*(g-h)+f,x2:P*(g-S-h)+d,y2:j*(g-S-h)+f},style:C,silent:!0}),"auto"===C.stroke&&u.setStyle({stroke:i(D/b)}),p.add(u)),_.get("show")&&(h=_.get("distance")+k,u=pD($n(D/b*(m-y)+y),_.get("formatter")),c=i(D/b),p.add(new ia({style:ws(_,{text:u,x:P*(g-S-h)+d,y:j*(g-S-h)+f,verticalAlign:j<-.8?"top":.8<j?"bottom":"middle",align:P<-.4?"left":.4<P?"right":"center"},{inheritColor:c}),silent:!0}))),x.get("show")&&D!==b){h=(h=x.get("distance"))?h+l:l;for(var L=0;L<=w;L++){var P=Math.cos(I),j=Math.sin(I),R=new Dd({shape:{x1:P*(g-h)+d,y1:j*(g-h)+f,x2:P*(g-M-h)+d,y2:j*(g-M-h)+f},silent:!0,style:A});"auto"===A.stroke&&R.setStyle({stroke:i((D+L/w)/b)}),p.add(R),I+=T}I-=T}else I+=O},gD.prototype._renderPointer=function(t,e,n,i,o,r,a,s,u){var c=this.group,h=this._data,p=this._progressEls,d=[],f=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),m=t.getData(),v=m.mapDimension("value"),x=+t.get("min"),_=+t.get("max"),b=[x,_],w=[r,a];function S(e,n){e=m.getItemModel(e).getModel("pointer");var i=Qn(e.get("width"),o.r),r=Qn(e.get("length"),o.r),a=t.get(["pointer","icon"]),s=e.get("offsetCenter"),l=Qn(s[0],o.r);s=Qn(s[1],o.r),e=e.get("keepAspect"),a=a?Yg(a,l-i/2,s-r,i,r,null,e):new hD({shape:{angle:-Math.PI/2,width:i,r:r,x:l,y:s}});return a.rotation=-(n+Math.PI/2),a.x=o.cx,a.y=o.cy,a}function M(t,e){var n=g.get("roundCap")?Eb:fd,i=g.get("overlap"),a=i?g.get("width"):u/m.count(),l=i?o.r-a:o.r-(t+1)*a;a=i?o.r:o.r-t*a,n=new n({shape:{startAngle:r,endAngle:e,cx:o.cx,cy:o.cy,clockwise:s,r0:l,r:a}});return i&&(n.z2=_-m.get(v,t)%_),n}(y||f)&&(m.diff(h).add((function(e){var n,i,o=m.get(v,e);f&&(hs(n=S(e,r),{rotation:-((isNaN(+o)?w[0]:Kn(o,b,w,!0))+Math.PI/2)},t),c.add(n),m.setItemGraphicEl(e,n)),y&&(n=M(e,r),i=g.get("clip"),hs(n,{shape:{endAngle:Kn(o,b,w,i)}},t),c.add(n),na(t.seriesIndex,m.dataType,e,n),d[e]=n)})).update((function(e,n){var i,o,a=m.get(v,e);f&&((o=S(e,i=(i=h.getItemGraphicEl(n))?i.rotation:r)).rotation=i,cs(o,{rotation:-((isNaN(+a)?w[0]:Kn(a,b,w,!0))+Math.PI/2)},t),c.add(o),m.setItemGraphicEl(e,o)),y&&(o=M(e,(i=p[n])?i.shape.endAngle:r),n=g.get("clip"),cs(o,{shape:{endAngle:Kn(a,b,w,n)}},t),c.add(o),na(t.seriesIndex,m.dataType,e,o),d[e]=o)})).execute(),m.each((function(t){var e,n,o,r,a=m.getItemModel(t),s=a.getModel("emphasis"),u=s.get("focus"),c=s.get("blurScope");s=s.get("disabled");f&&(e=m.getItemGraphicEl(t),o=(n=m.getItemVisual(t,"style")).fill,e instanceof Ar?(r=e.style,e.useStyle(Object(l.m)({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},n))):(e.useStyle(n),"pointer"!==e.type&&e.setColor(o)),e.setStyle(a.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===e.style.fill&&e.setStyle("fill",i(Kn(m.get(v,t),b,[0,1],!0))),e.z2EmphasisLift=0,ns(e,a),$a(e,u,c,s)),y&&((r=d[t]).useStyle(m.getItemVisual(t,"style")),r.setStyle(a.getModel(["progress","itemStyle"]).getItemStyle()),r.z2EmphasisLift=0,ns(r,a),$a(r,u,c,s))})),this._progressEls=d)},gD.prototype._renderAnchor=function(t,e){var n,i,o,r;t=t.getModel("anchor");t.get("show")&&(n=t.get("size"),r=t.get("icon"),i=t.get("offsetCenter"),o=t.get("keepAspect"),(r=Yg(r,e.cx-n/2+Qn(i[0],e.r),e.cy-n/2+Qn(i[1],e.r),n,n,null,o)).z2=t.get("showAbove")?1:0,r.setStyle(t.getModel("itemStyle").getItemStyle()),this.group.add(r))},gD.prototype._renderTitleAndDetail=function(t,e,n,i,o){var r=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new Gn,h=[],p=[],d=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){h[t]=new ia({silent:!0}),p[t]=new ia({silent:!0})})).update((function(t,e){h[t]=r._titleEls[e],p[t]=r._detailEls[e]})).execute(),a.each((function(e){var n,r,g,y,m,v=a.getItemModel(e),x=a.get(s,e),_=new Gn,b=i(Kn(x,[l,u],[0,1],!0)),w=v.getModel("title");w.get("show")&&(n=w.get("offsetCenter"),r=o.cx+Qn(n[0],o.r),n=o.cy+Qn(n[1],o.r),(y=h[e]).attr({z2:f?0:2,style:ws(w,{x:r,y:n,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:b})}),_.add(y)),w=v.getModel("detail");w.get("show")&&(r=w.get("offsetCenter"),n=o.cx+Qn(r[0],o.r),v=o.cy+Qn(r[1],o.r),r=Qn(w.get("width"),o.r),g=Qn(w.get("height"),o.r),b=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:b,y=p[e],m=w.get("formatter"),y.attr({z2:f?0:2,style:ws(w,{x:n,y:v,text:pD(x,m),width:isNaN(r)?null:r,height:isNaN(g)?null:g,align:"center",verticalAlign:"middle"},{inheritColor:b})}),ks(y,{normal:w},x,(function(t){return pD(t,m)})),d&&Ds(y,e,a,t,{getFormattedLabel:function(t,e,n,i,o,r){return pD(r?r.interpolatedValue:x,m)}}),_.add(y)),c.add(_)})),this.group.add(c),this._titleEls=h,this._detailEls=p},gD.type="gauge";var yD,mD=gD;function vD(){var t=null!==yD&&yD.apply(this,arguments)||this;return t.type=vD.type,t.visualStyleAccessPath="itemStyle",t}a(vD,yD=mp),vD.prototype.getInitialData=function(t,e){return Ow(this,["value"])},vD.type="series.gauge",vD.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}};var xD,_D,bD=vD,wD=["itemStyle","opacity"],SD=(a(MD,xD=Sd),MD.prototype.updateData=function(t,e,n){var i=t.hostModel,o=t.getItemModel(e),r=t.getItemLayout(e),a=o.getModel("emphasis"),s=null==(s=o.get(wD))?1:s;n||ys(this),this.useStyle(t.getItemVisual(e,"style")),this.style.lineJoin="round",n?(this.setShape({points:r.points}),this.style.opacity=0,hs(this,{style:{opacity:s}},i,e)):cs(this,{style:{opacity:s},shape:{points:r.points}},i,e),ns(this,o),this._updateLabel(t,e),$a(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))},MD.prototype._updateLabel=function(t,e){var n=this.getTextGuideLine(),i=this.getTextContent(),o=t.hostModel,r=t.getItemModel(e),a=t.getItemLayout(e).label,s=t.getItemVisual(e,"style"),l=s.fill;_s(i,bs(r),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:s.opacity,defaultText:t.getName(e)},{normal:{align:a.textAlign,verticalAlign:a.verticalAlign}}),this.setTextConfig({local:!0,inside:!!a.inside,insideStroke:l,outsideFill:l}),s=a.linePoints;n.setShape({points:s}),this.textGuideLineConfig={anchor:s?new un(s[0][0],s[0][1]):null},cs(i,{style:{x:a.x,y:a.y}},o,e),i.attr({rotation:a.rotation,originX:a.x,originY:a.y,z2:10}),ev(this,nv(r),{stroke:l})},MD);function MD(t,e){var n=xD.call(this)||this,i=n,o=new Td,r=new ia;return i.setTextContent(r),n.setTextGuideLine(o),n.updateData(t,e,!0),n}function ID(){var t=null!==_D&&_D.apply(this,arguments)||this;return t.type=ID.type,t.ignoreLabelLineUpdate=!0,t}a(ID,_D=Uf),ID.prototype.render=function(t,e,n){var i=t.getData(),o=this._data,r=this.group;i.diff(o).add((function(t){var e=new SD(i,t);i.setItemGraphicEl(t,e),r.add(e)})).update((function(t,e){e=o.getItemGraphicEl(e),e.updateData(i,t),r.add(e),i.setItemGraphicEl(t,e)})).remove((function(e){gs(o.getItemGraphicEl(e),t,e)})).execute(),this._data=i},ID.prototype.remove=function(){this.group.removeAll(),this._data=null},ID.prototype.dispose=function(){},ID.type="funnel";var OD,TD=ID;function CD(){var t=null!==OD&&OD.apply(this,arguments)||this;return t.type=CD.type,t}a(CD,OD=mp),CD.prototype.init=function(t){OD.prototype.init.apply(this,arguments),this.legendVisualProvider=new Aw(l.c(this.getData,this),l.c(this.getRawData,this)),this._defaultLabelLine(t)},CD.prototype.getInitialData=function(t,e){return Ow(this,{coordDimensions:["value"],encodeDefaulter:l.h(Su,this)})},CD.prototype._defaultLabelLine=function(t){xi(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},CD.prototype.getDataParams=function(t){var e=this.getData(),n=OD.prototype.getDataParams.call(this,t),i=e.mapDimension("value"),o=e.getSum(i);return n.percent=o?+(e.get(i,t)/o*100).toFixed(2):0,n.$vars.push("percent"),n},CD.type="series.funnel",CD.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}};var AD,kD=CD;function DD(t,e){t.eachSeriesByType("funnel",(function(t){function n(t,e){if("horizontal"===s){var n=Kn(i.get(o,t)||0,[g,y],f,!0),r=void 0;switch(m){case"top":r=d;break;case"center":r=d+(c-n)/2;break;case"bottom":r=d+(c-n)}return[[e,r],[e,r+n]]}var a,l=Kn(i.get(o,t)||0,[g,y],f,!0);switch(m){case"left":a=p;break;case"center":a=p+(u-l)/2;break;case"right":a=p+u-l}return[[a,e],[a+l,e]]}var i=t.getData(),o=i.mapDimension("value"),r=t.get("sort"),a=(a=e,ql(t.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})),s=t.get("orient"),u=a.width,c=a.height,h=function(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,(function(t){return t})),o=[],r="ascending"===e,a=0,s=t.count();a<s;a++)o[a]=a;return Object(l.w)(e)?o.sort(e):"none"!==e&&o.sort((function(t,e){return r?i[t]-i[e]:i[e]-i[t]})),o}(i,r),p=a.x,d=a.y,f="horizontal"===s?[Qn(t.get("minSize"),c),Qn(t.get("maxSize"),c)]:[Qn(t.get("minSize"),u),Qn(t.get("maxSize"),u)],g=(a=i.getDataExtent(o),t.get("min")),y=t.get("max"),m=(null==g&&(g=Math.min(a[0],0)),null==y&&(y=a[1]),t.get("funnelAlign")),v=t.get("gap"),x=(("horizontal"===s?u:c)-v*(i.count()-1))/i.count();"ascending"===r&&(x=-x,v=-v,"horizontal"===s?p+=u:d+=c,h=h.reverse());for(var _,b,w=0;w<h.length;w++){var S,M,I,O=h[w],T=h[w+1],C=i.getItemModel(O);"horizontal"===s?(null==(S=C.get(["itemStyle","width"]))?S=x:(S=Qn(S,u),"ascending"===r&&(S=-S)),M=n(O,p),I=n(T,p+S),p+=S+v):(null==(S=C.get(["itemStyle","height"]))?S=x:(S=Qn(S,c),"ascending"===r&&(S=-S)),M=n(O,d),I=n(T,d+S),d+=S+v),i.setItemLayout(O,{points:M.concat(I.slice().reverse())})}b=(_=i).hostModel.get("orient"),_.each((function(t){var e,n,i,o,r,a,s,l=_.getItemModel(t),u=l.getModel("label").get("position"),c=(l=l.getModel("labelLine"),t=_.getItemLayout(t),t.points),h="inner"===u||"inside"===u||"center"===u||"insideLeft"===u||"insideRight"===u;u=h?(s="insideLeft"===u?(e=(c[0][0]+c[3][0])/2+5,n=(c[0][1]+c[3][1])/2,"left"):"insideRight"===u?(e=(c[1][0]+c[2][0])/2-5,n=(c[1][1]+c[2][1])/2,"right"):(e=(c[0][0]+c[1][0]+c[2][0]+c[3][0])/4,n=(c[0][1]+c[1][1]+c[2][1]+c[3][1])/4,"center"),[[e,n],[e,n]]):(a=r=o=i=void 0,l=l.get("length"),s="left"===u?(i=(c[3][0]+c[0][0])/2,o=(c[3][1]+c[0][1])/2,e=(r=i-l)-5,"right"):"right"===u?(i=(c[1][0]+c[2][0])/2,o=(c[1][1]+c[2][1])/2,e=(r=i+l)+5,"left"):"top"===u?(i=(c[3][0]+c[0][0])/2,n=(a=(o=(c[3][1]+c[0][1])/2)-l)-5,"center"):"bottom"===u?(i=(c[1][0]+c[2][0])/2,n=(a=(o=(c[1][1]+c[2][1])/2)+l)+5,"center"):"rightTop"===u?(i=("horizontal"===b?c[3]:c[1])[0],o=("horizontal"===b?c[3]:c[1])[1],"horizontal"===b?(n=(a=o-l)-5,"center"):(e=(r=i+l)+5,"top")):"rightBottom"===u?(i=c[2][0],o=c[2][1],"horizontal"===b?(n=(a=o+l)+5,"center"):(e=(r=i+l)+5,"bottom")):"leftTop"===u?(i=c[0][0],o=("horizontal"===b?c[0]:c[1])[1],"horizontal"===b?(n=(a=o-l)-5,"center"):(e=(r=i-l)-5,"right")):"leftBottom"===u?(i=("horizontal"===b?c[1]:c[3])[0],o=("horizontal"===b?c[1]:c[2])[1],"horizontal"===b?(n=(a=o+l)+5,"center"):(e=(r=i-l)-5,"right")):(i=(c[1][0]+c[2][0])/2,o=(c[1][1]+c[2][1])/2,"horizontal"===b?(n=(a=o+l)+5,"center"):(e=(r=i+l)+5,"left")),"horizontal"===b?e=r=i:n=a=o,[[i,o],[r,a]]);t.label={linePoints:u,x:e,y:n,verticalAlign:"middle",textAlign:s,inside:h}}))}))}function LD(){var t=null!==AD&&AD.apply(this,arguments)||this;return t.type=LD.type,t._dataGroup=new Gn,t._initialized=!1,t}function PD(t,e,n,i){for(var o,r=[],a=0;a<n.length;a++){var s=n[a],l=t.get(t.mapDimension(s),e);o=l,("category"===i.getAxis(s).type?null==o:null==o||isNaN(o))||r.push(i.dataToPoint(l,s))}return r}function jD(t,e,n,i,o){return i=PD(t,n,i,o),o=new Td({shape:{points:i},z2:10}),e.add(o),t.setItemGraphicEl(n,o),o}function RD(t){return t=hi(t=!0===(t=t.get("smooth",!0))?.3:t),{smooth:t=Object(l.l)(t)?0:t}}function ND(t,e,n,i){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",i.smooth),i=e.getItemModel(n),e=i.getModel("emphasis"),ns(t,i,"lineStyle"),$a(t,e.get("focus"),e.get("blurScope"),e.get("disabled"))}a(LD,AD=Uf),LD.prototype.init=function(){this.group.add(this._dataGroup)},LD.prototype.render=function(t,e,n,i){this._progressiveEls=null;var o,r,a,s,l,u=this._dataGroup,c=t.getData(),h=this._data,p=t.coordinateSystem,d=p.dimensions,f=RD(t);c.diff(h).add((function(t){ND(jD(c,u,t,d,p),c,t,f)})).update((function(e,n){n=h.getItemGraphicEl(n);var i=PD(c,e,d,p);c.setItemGraphicEl(e,n),cs(n,{shape:{points:i}},t,e),ys(n),ND(n,c,e,f)})).remove((function(t){t=h.getItemGraphicEl(t),u.remove(t)})).execute(),this._initialized||(this._initialized=!0,r=t,a=function(){setTimeout((function(){u.removeClipPath()}))},s=(o=p).model,o=o.getRect(),l=new Br({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),s="horizontal"===s.get("layout")?"width":"height",l.setShape(s,0),hs(l,{shape:{width:o.width,height:o.height}},r,a),s=l,u.setClipPath(s)),this._data=c},LD.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},LD.prototype.incrementalRender=function(t,e,n){for(var i=e.getData(),o=e.coordinateSystem,r=o.dimensions,a=RD(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=jD(i,this._dataGroup,l,r,o);u.incremental=!0,ND(u,i,l,a),s.push(u)}},LD.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},LD.type="parallel";var ED,zD=LD;function BD(){var t=null!==ED&&ED.apply(this,arguments)||this;return t.type=BD.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}function VD(t){var e;t=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(t)return e={},Object(l.k)(t.dimensions,(function(t){var n=+t.replace("dim","");e[t]=n})),e}a(BD,ED=mp),BD.prototype.getInitialData=function(t,e){return v_(null,this,{useEncodeDefaulter:Object(l.c)(VD,null,this)})},BD.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,(function(e,o){t===e&&i.push(n.getRawIndex(o))})),i},BD.type="series.parallel",BD.dependencies=["parallel"],BD.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"};var FD,HD=BD,GD=["lineStyle","opacity"],WD={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,i={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){n.eachActiveState(e,(function(t,n){var o=i[t];"normal"===t&&e.hasItemOption&&null!=(t=e.getItemModel(n).get(GD,!0))&&(o=t),e.ensureUniqueItemVisual(n,"style").opacity=o}),t.start,t.end)}}}};function YD(t){var e,n,i;(i=t).parallel||(e=!1,l.k(i.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(i.parallel=[{}])),i=vi((n=t).parallelAxis),l.k(i,(function(t){var e;l.A(t)&&(e=t.parallelIndex||0,(e=vi(n.parallel)[e])&&e.parallelAxisDefault&&l.I(t,e.parallelAxisDefault,!1))}))}function UD(){var t=null!==FD&&FD.apply(this,arguments)||this;return t.type=UD.type,t}a(UD,FD=xp),UD.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},Object(l.k)(XD,(function(t,e){n.getZr().on(e,this._handlers[e]=Object(l.c)(t,this))}),this)),Qf(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},UD.prototype.dispose=function(t,e){$f(this,"_throttledDispatchExpand"),Object(l.k)(this._handlers,(function(t,n){e.getZr().off(n,t)})),this._handlers=null},UD.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},UD.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(Object(l.m)({type:"parallelAxisExpand"},t))},UD.type="parallel";var XD={mousedown:function(t){ZD(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(ZD(this,"click")&&e){var n=[t.offsetX,t.offsetY];if(5<Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2))return;e=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),"none"!==e.behavior&&this._dispatchExpand({axisExpandWindow:e.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){var e,n;!this._mouseDownPoint&&ZD(this,"mousemove")&&("jump"===(n=(t=(e=this._model).coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY])).behavior)&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===n?null:{axisExpandWindow:t.axisExpandWindow,animation:"jump"===n?null:{duration:0}}))}};function ZD(t,e){return t=t._model,t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var qD,KD=UD;function QD(){var t=null!==qD&&qD.apply(this,arguments)||this;return t.type=QD.type,t}a(QD,qD=uu),QD.prototype.init=function(){qD.prototype.init.apply(this,arguments),this.mergeOption({})},QD.prototype.mergeOption=function(t){var e=this.option;t&&l.I(e,t,!0),this._initDimensions()},QD.prototype.contains=function(t,e){return t=t.get("parallelIndex"),null!=t&&e.getComponent("parallel",t)===this},QD.prototype.setAxisExpand=function(t){l.k(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},QD.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=l.n(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);l.k(n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},QD.type="parallel",QD.dependencies=["parallelAxis"],QD.layoutMode="box",QD.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null};var $D,JD=QD;function tL(t,e,n,i,o){return t=$D.call(this,t,e,n)||this,t.type=i||"value",t.axisIndex=o,t}a(tL,$D=Ng),tL.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")};var eL=tL;function nL(t,e,n,i,o,r){t=t||0;var a=n[1]-n[0],s=(a=(null!=o&&(o=oL(o,[0,a])),null!=r&&(r=Math.max(r,null!=o?o:0)),"all"===i&&(s=oL(s=Math.abs(e[1]-e[0]),[0,a]),o=r=oL(s,[o,r]),i=0),e[0]=oL(e[0],n),e[1]=oL(e[1],n),iL(e,i)),e[i]+=t,o||0);t=n.slice();return a.sign<0?t[0]+=s:t[1]-=s,e[i]=oL(e[i],t),n=iL(e,i),null!=o&&(n.sign!==a.sign||n.span<o)&&(e[1-i]=e[i]+a.sign*o),n=iL(e,i),null!=r&&n.span>r&&(e[1-i]=e[i]+n.sign*r),e}function iL(t,e){return t=t[e]-t[1-e],{span:Math.abs(t),sign:0<t||!(t<0)&&e?-1:1}}function oL(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var rL=l.k,aL=Math.min,sL=Math.max,lL=Math.floor,uL=Math.ceil,cL=$n,hL=Math.PI;function pL(t,e,n){this.type="parallel",this._axesMap=l.f(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}function dL(t,e){return aL(sL(t,e[0]),e[1])}pL.prototype._init=function(t,e,n){var i=t.dimensions,o=t.parallelAxisIndex;rL(i,(function(t,n){n=o[n];var i=e.getComponent("parallelAxis",n);t=this._axesMap.set(t,new eL(t,XS(i),[0,0],i.get("type"),n)),n="category"===t.type;t.onBand=n&&i.get("boundaryGap"),t.inverse=i.get("inverse"),(i.axis=t).model=i,t.coordinateSystem=i.coordinateSystem=this}),this)},pL.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},pL.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,o=e.pixelDimIndex,r=t[1-o];t=t[o];return n<=r&&r<=n+e.axisLength&&i<=t&&t<=i+e.layoutLength},pL.prototype.getModel=function(){return this._model},pL.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){var i;t.contains(n,e)&&(i=n.getData(),rL(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),US(e.scale,e.model)}),this))}),this)},pL.prototype.resize=function(t,e){this._rect=ql(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},pL.prototype.getRect=function(){return this._rect},pL.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,n=["x","y"],i=["width","height"],o=t.get("layout"),r="horizontal"===o?0:1,a=e[i[r]],s=[0,a],l=this.dimensions.length,u=dL(t.get("axisExpandWidth"),s),c=dL(t.get("axisExpandCount")||0,[0,l]),h=t.get("axisExpandable")&&3<l&&c<l&&1<c&&0<u&&0<a,p=t.get("axisExpandWindow"),d=(s=(p?(d=dL(p[1]-p[0],s),p[1]=p[0]+d):(d=dL(u*(c-1),s),(p=[u*(t.get("axisExpandCenter")||lL(l/2))-d/2])[1]=p[0]+d),(a-d)/(l-c)),t=(s<3&&(s=0),[lL(cL(p[0]/u,1))+1,uL(cL(p[1]/u,1))-1]),s/u*p[0]);return{layout:o,pixelDimIndex:r,layoutBase:e[n[r]],layoutLength:a,axisBase:e[n[1-r]],axisLength:e[i[1-r]],axisExpandable:h,axisExpandWidth:u,axisCollapseWidth:s,axisExpandWindow:p,axisCount:l,winInnerIndices:t,axisExpandWindow0Pos:d}},pL.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),o=i.layout;e.each((function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),rL(n,(function(e,n){n=(i.axisExpandable?function(t,e){var n,i,o=e.layoutLength,r=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t<l[0]?(n=t*s,i=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*r-e.axisExpandWindow[0],u=r,c=!0):(n=o-(a-1-t)*s,i=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:i}}:function(t,e){return e=e.layoutLength/(e.axisCount-1),{position:e*t,axisNameAvailableWidth:e,axisLabelShow:!0}})(n,i);var r={horizontal:{x:n.position,y:i.axisLength},vertical:{x:0,y:n.position}},a=(r=[r[o].x+t.x,r[o].y+t.y],{horizontal:hL/2,vertical:0}[o]),s=Ge();Ze(s,s,a),Xe(s,s,r),this._axesLayout[e]={position:r,rotation:a,transform:s,axisNameAvailableWidth:n.axisNameAvailableWidth,axisLabelShow:n.axisLabelShow,nameTruncateMaxWidth:n.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},pL.prototype.getAxis=function(t){return this._axesMap.get(t)},pL.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},pL.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());for(var o=this._axesMap,r=this.dimensions,a=[],s=[],u=(l.k(r,(function(e){a.push(t.mapDimension(e)),s.push(o.get(e).model)})),this.hasAxisBrushed()),c=n;c<i;c++){var h=void 0;if(u){h="active";for(var p=t.getValues(a,c),d=0,f=r.length;d<f;d++)if("inactive"===s[d].getActiveState(p[d])){h="inactive";break}}else h="normal";e(h,c)}},pL.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,o=t.length;i<o;i++)"normal"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},pL.prototype.axisCoordToPoint=function(t,e){return Of([t,0],this._axesLayout[e].transform)},pL.prototype.getAxisLayout=function(t){return l.d(this._axesLayout[t])},pL.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),o=i[1]-i[0],r=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};t=t[n]-e.layoutBase-e.axisExpandWindow0Pos,n="slide";var a,s=e.axisCollapseWidth,l=this._model.get("axisExpandSlideTriggerArea"),u=null!=l[0];return s?(u&&s&&t<o*l[0]?(n="jump",a=t-o*l[2]):u&&s&&t>o*(1-l[0])?(n="jump",a=t-o*(1-l[2])):0<=(a=t-o*l[1])&&(a=t-o*(1-l[1]))<=0&&(a=0),(a*=e.axisExpandWidth/s)?nL(a,i,r,"all"):n="none"):(u=i[1]-i[0],(i=[sL(0,r[1]*t/u-u/2)])[1]=aL(r[1],i[0]+u),i[0]=i[1]-u),{axisExpandWindow:i,behavior:n}};var fL,gL=pL,yL={create:function(t,e){var n=[];return t.eachComponent("parallel",(function(i,o){var r=new gL(i,t,e);r.name="parallel_"+o,r.resize(i,e),(i.coordinateSystem=r).model=i,n.push(r)})),t.eachSeries((function(t){var e;"parallel"===t.get("coordinateSystem")&&(e=t.getReferringComponents("parallel",ji).models[0],t.coordinateSystem=e.coordinateSystem)})),n}};a(mL,fL=uu),mL.prototype.getAreaSelectStyle=function(){return qi([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},mL.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=l.d(t);if(e)for(var n=e.length-1;0<=n;n--)Jn(e[n])},mL.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=e.length;i<o;i++)if(e[i][0]<=t&&t<=e[i][1])return"active";return"inactive"},Vs=mL;function mL(){var t=null!==fL&&fL.apply(this,arguments)||this;return t.type=mL.type,t.activeIntervals=[],t}l.K(Vs,Xw);var vL,xL=Vs,_L=!0,bL=Math.min,wL=Math.max,SL=Math.pow,ML=1e4,IL=6,OL=6,TL="globalPan",CL={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},AL={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},kL={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},DL=0;function LL(t){var e=vL.call(this)||this;return e._track=[],e._covers=[],e._handlers={},e._zr=t,e.group=new Gn,e._uid="brushController_"+DL++,Object(l.k)(aP,(function(t,e){this._handlers[e]=Object(l.c)(t,this)}),e),e}function PL(t,e){var n=lP[e.brushType].createCover(t,e);return n.__brushOption=e,NL(n,e),t.group.add(n),n}function jL(t,e){var n=zL(e);return n.endCreating&&(n.endCreating(t,e),NL(e,e.__brushOption)),e}function RL(t,e){var n=e.__brushOption;zL(e).updateCoverShape(t,e,n.range,n)}function NL(t,e){var n=e.z;null==n&&(n=ML),t.traverse((function(t){t.z=n,t.z2=n}))}function EL(t,e){zL(e).updateCommon(t,e),RL(t,e)}function zL(t){return lP[t.__brushOption.brushType]}function BL(t,e,n){var i,o=t._panels;if(!o)return _L;var r=t._transform;return Object(l.k)(o,(function(t){t.isTargetByCursor(e,n,r)&&(i=t)})),i}function VL(t,e){return t=t._panels,t?(e=e.__brushOption.panelId,null!=e?t[e]:_L):_L}function FL(t){var e=t._covers,n=e.length;return Object(l.k)(e,(function(e){t.group.remove(e)}),t),e.length=0,n}function HL(t,e){var n=Object(l.H)(t._covers,(function(t){t=t.__brushOption;var e=Object(l.d)(t.range);return{brushType:t.brushType,panelId:t.panelId,range:e}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function GL(t){var e=t.length-1;return[t[0],t[e=e<0?0:e]]}function WL(t,e,n,i){var o=new Gn;return o.add(new Br({name:"main",style:ZL(n),silent:!0,draggable:!0,cursor:"move",drift:Object(l.h)(QL,t,e,o,["n","s","w","e"]),ondragend:Object(l.h)(HL,e,{isEnd:!0})})),Object(l.k)(i,(function(n){o.add(new Br({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(l.h)(QL,t,e,o,n),ondragend:Object(l.h)(HL,e,{isEnd:!0})}))})),o}function YL(t,e,n,i){var o=i.brushStyle.lineWidth||0,r=wL(o,OL),a=n[0][0],s=n[1][0],l=a-o/2,u=s-o/2,c=n[0][1],h=(n=n[1][1],c-r+o/2),p=n-r+o/2,d=(c=c-a,n=n-s,c+o);o=n+o;XL(t,e,"main",a,s,c,n),i.transformable&&(XL(t,e,"w",l,u,r,o),XL(t,e,"e",h,u,r,o),XL(t,e,"n",l,u,d,r),XL(t,e,"s",l,p,d,r),XL(t,e,"nw",l,u,r,r),XL(t,e,"ne",h,u,r,r),XL(t,e,"sw",l,p,r,r),XL(t,e,"se",h,p,r,r))}function UL(t,e){var n=e.__brushOption,i=n.transformable,o=e.childAt(0);o.useStyle(ZL(n)),o.attr({silent:!i,cursor:i?"move":"default"}),Object(l.k)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var o=e.childOfName(n.join(""));n=1===n.length?KL(t,n[0]):function(t,e){return t=[KL(t,e[0]),KL(t,e[1])],"e"!==t[0]&&"w"!==t[0]||t.reverse(),t.join("")}(t,n);o&&o.attr({silent:!i,invisible:!i,cursor:i?AL[n]+"-resize":null})}))}function XL(t,e,n,i,o,r,a){n=e.childOfName(n);n&&n.setShape((n=tP(t,e,[[i,o],[i+r,o+a]]),t=bL(n[0][0],n[1][0]),e=bL(n[0][1],n[1][1]),i=wL(n[0][0],n[1][0]),n=wL(n[0][1],n[1][1]),{x:t,y:e,width:i-t,height:n-e}))}function ZL(t){return Object(l.i)({strokeNoScale:!0},t.brushStyle)}function qL(t,e,n,i){var o=[bL(t,n),bL(e,i)];t=[wL(t,n),wL(e,i)];return[[o[0],t[0]],[o[1],t[1]]]}function KL(t,e){return{left:"w",right:"e",top:"n",bottom:"s"}[Tf({w:"left",e:"right",n:"top",s:"bottom"}[e],If(t.group))]}function QL(t,e,n,i,o,r){var a=n.__brushOption,s=t.toRectRange(a.range),u=JL(e,o,r);Object(l.k)(i,(function(t){t=CL[t],s[t[0]][t[1]]+=u[t[0]]})),a.range=t.fromRectRange(qL(s[0][0],s[1][0],s[0][1],s[1][1])),EL(e,n),HL(e,{isEnd:!1})}function $L(t,e,n,i){var o=e.__brushOption.range,r=JL(t,n,i);Object(l.k)(o,(function(t){t[0]+=r[0],t[1]+=r[1]})),EL(t,e),HL(t,{isEnd:!1})}function JL(t,e,n){return t=t.group,e=t.transformCoordToLocal(e,n),n=t.transformCoordToLocal(0,0),[e[0]-n[0],e[1]-n[1]]}function tP(t,e,n){return e=VL(t,e),e&&e!==_L?e.clipPath(n,t._transform):Object(l.d)(n)}function eP(t,e,n){if(t._brushType&&!function(t,e,n){return t=t._zr,e<0||e>t.getWidth()||n<0||n>t.getHeight()}(t,e.offsetX,e.offsetY)){var i=t._zr,o=t._covers,r=BL(t,e,n);if(!t._dragging)for(var a=0;a<o.length;a++){var s=o[a].__brushOption;if(r&&(r===_L||s.panelId===r.panelId)&&lP[s.brushType].contain(o[a],n[0],n[1]))return}r&&i.setCursorStyle("crosshair")}}function nP(t){t=t.event,t.preventDefault&&t.preventDefault()}function iP(t,e,n){return t.childOfName("main").contain(e,n)}function oP(t,e,n,i){var o,r,a=t._creatingCover,s=t._creatingPanel,u=t._brushOption;return t._track.push(n.slice()),function(t){var e,n;if((t=t._track).length)return n=t[t.length-1],t=t[0],e=n[0]-t[0],n=n[1]-t[1],t=SL(e*e+n*n,.5),IL<t}(t)||a?(s&&!a&&("single"===u.brushMode&&FL(t),(r=Object(l.d)(u)).brushType=rP(r.brushType,s),r.panelId=s===_L?null:s.panelId,a=t._creatingCover=PL(t,r),t._covers.push(a)),a&&(r=lP[rP(t._brushType,s)],a.__brushOption.range=r.getCreatingRange(tP(t,a,t._track)),i&&(jL(t,a),r.updateCommon(t,a)),RL(t,a),o={isEnd:i})):i&&"single"===u.brushMode&&u.removeOnClick&&BL(t,e,n)&&FL(t)&&(o={isEnd:i,removeOnClick:!0}),o}function rP(t,e){return"auto"===t?e.defaultBrushType:t}a(LL,vL=L),LL.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},LL.prototype._doEnableBrush=function(t){var e,n,i=this._zr;this._enableGlobalPan||(e=TL,n=this._uid,FI(i)[e]=n),Object(l.k)(this._handlers,(function(t,e){i.on(e,t)})),this._brushType=t.brushType,this._brushOption=Object(l.I)(Object(l.d)(kL),t,!0)},LL.prototype._doDisableBrush=function(){var t,e,n,i=this._zr;t=i,e=TL,n=this._uid,(t=FI(t))[e]===n&&(t[e]=null),Object(l.k)(this._handlers,(function(t,e){i.off(e,t)})),this._brushType=this._brushOption=null},LL.prototype.setPanels=function(t){var e;return t&&t.length?(e=this._panels={},Object(l.k)(t,(function(t){e[t.panelId]=Object(l.d)(t)}))):this._panels=null,this},LL.prototype.mount=function(t){this._enableGlobalPan=(t=t||{}).enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},LL.prototype.updateCovers=function(t){t=Object(l.H)(t,(function(t){return Object(l.I)(Object(l.d)(kL),t,!0)}));var e="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,r=this._creatingCover;return new Nx(n,t,(function(t,e){return a(t.__brushOption,e)}),a).add(s).update(s).remove((function(t){n[t]!==r&&o.group.remove(n[t])})).execute(),this;function a(t,n){return(null!=t.id?t.id:e+n)+"-"+t.brushType}function s(e,a){var s=t[e];null!=a&&n[a]===r?i[e]=n[a]:(e=i[e]=null!=a?(n[a].__brushOption=s,n[a]):jL(o,PL(o,s)),EL(o,e))}},LL.prototype.unmount=function(){return this.enableBrush(!1),FL(this),this._zr.remove(this.group),this},LL.prototype.dispose=function(){this.unmount(),this.off()};var aP={mousedown:function(t){var e;this._dragging?sP(this,t):t.target&&t.target.draggable||(nP(t),e=this.group.transformCoordToLocal(t.offsetX,t.offsetY),this._creatingCover=null,(this._creatingPanel=BL(this,t,e))&&(this._dragging=!0,this._track=[e.slice()]))},mousemove:function(t){var e=t.offsetX,n=t.offsetY;e=this.group.transformCoordToLocal(e,n);eP(this,t,e),this._dragging&&(nP(t),(n=oP(this,t,e,!1))&&HL(this,n))},mouseup:function(t){sP(this,t)}};function sP(t,e){var n,i;t._dragging&&(nP(e),n=e.offsetX,i=e.offsetY,n=t.group.transformCoordToLocal(n,i),i=oP(t,e,n,!0),t._dragging=!1,t._track=[],t._creatingCover=null,i&&HL(t,i))}var lP={lineX:uP(0),lineY:uP(1),rect:{createCover:function(t,e){function n(t){return t}return WL({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){return t=GL(t),qL(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(t,e,n,i){YL(t,e,n,i)},updateCommon:UL,contain:iP},polygon:{createCover:function(t,e){var n=new Gn;return n.add(new Td({name:"main",style:ZL(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Sd({name:"main",draggable:!0,drift:Object(l.h)($L,t,e),ondragend:Object(l.h)(HL,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:tP(t,e,n)})},updateCommon:UL,contain:iP}};function uP(t){return{createCover:function(e,n){return WL({toRectRange:function(e){return e=[e,[0,100]],t&&e.reverse(),e},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){return e=GL(e),[bL(e[0][t],e[1][t]),wL(e[0][t],e[1][t])]},updateCoverShape:function(e,n,i,o){var r=VL(e,n);r=[i,r!==_L&&r.getLinearBrushOtherExtent?r.getLinearBrushOtherExtent(t):[0,[(i=e._zr).getWidth(),i.getHeight()][1-t]]];t&&r.reverse(),YL(e,n,r,o)},updateCommon:UL,contain:iP}}var cP=LL;function hP(t){return t=fP(t),function(e){return kf(e,t)}}function pP(t,e){return t=fP(t),function(n){n=null!=e?e:n;var i=n?t.width:t.height;n=n?t.x:t.y;return[n,n+(i||0)]}}function dP(t,e,n){var i=fP(t);return function(t,o){return i.contain(o[0],o[1])&&!QI(t,e,n)}}function fP(t){return xn.create(t)}var gP,yP=["axisLine","axisTickLabel","axisName"];function mP(){var t=null!==gP&&gP.apply(this,arguments)||this;return t.type=mP.type,t}a(mP,gP=xp),mP.prototype.init=function(t,e){gP.prototype.init.apply(this,arguments),(this._brushController=new cP(e.getZr())).on("brush",l.c(this._onBrush,this))},mP.prototype.render=function(t,e,n,i){var o,r,a,s;s=t,o=e,(i=i)&&"axisAreaSelect"===i.type&&o.findComponents({mainType:"parallelAxis",query:i})[0]===s||(this.axisModel=t,this.api=n,this.group.removeAll(),o=this._axisGroup,this._axisGroup=new Gn,this.group.add(this._axisGroup),t.get("show")&&(s=(i=e.getComponent("parallel",t.get("parallelIndex"))).coordinateSystem,r=(e=t.getAreaSelectStyle()).width,a=t.axis.dim,s=s.getAxisLayout(a),a=l.m({strokeContainThreshold:r},s),s=new BM(t,a),l.k(yP,s.add,s),this._axisGroup.add(s.getGroup()),this._refreshBrushController(a,e,t,i,r,n),Af(o,this._axisGroup,t)))},mP.prototype._refreshBrushController=function(t,e,n,i,o,r){var a,s=n.axis.getExtent(),u=s[1]-s[0],c=Math.min(30,.1*Math.abs(u));s=xn.create({x:s[0],y:-o/2,width:u,height:o});s.x-=c,s.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:hP(s),isTargetByCursor:dP(s,r,i),getLinearBrushOtherExtent:pP(s,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers((a=n.axis,l.H(n.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[a.dataToCoord(t[0],!0),a.dataToCoord(t[1],!0)]}}))))},mP.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis;e=l.H(e,(function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]}));!n.option.realtime!==t.isEnd&&!t.removeOnClick||this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:e})},mP.prototype.dispose=function(){this._brushController.dispose()},mP.type="parallelAxis";var vP=mP,xP={type:"axisAreaSelect",event:"axisAreaSelected"},_P={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function bP(t){t.registerComponentView(KD),t.registerComponentModel(JD),t.registerCoordinateSystem("parallel",yL),t.registerPreprocessor(YD),t.registerComponentModel(xL),t.registerComponentView(vP),oS(t,"parallel",xL,_P),(t=t).registerAction(xP,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}var wP,SP,MP=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0},IP=(a(OP,wP=br),OP.prototype.getDefaultShape=function(){return new MP},OP.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},OP.prototype.highlight=function(){Ba(this)},OP.prototype.downplay=function(){Va(this)},OP);function OP(t){return wP.call(this,t)||this}function TP(){var t=null!==SP&&SP.apply(this,arguments)||this;return t.type=TP.type,t._focusAdjacencyDisabled=!1,t}a(TP,SP=Uf),TP.prototype.render=function(t,e,n){var i,o,r=this,a=t.getGraph(),s=this.group,u=t.layoutInfo,c=u.width,h=u.height,p=t.getData(),d=t.getData("edge"),f=t.get("orient");this._model=t,s.removeAll(),s.x=u.x,s.y=u.y,a.eachEdge((function(e){var n,i,o,r,a,u,p,g=new IP,y=oa(g),m=(y=(y.dataIndex=e.dataIndex,y.seriesIndex=t.seriesIndex,y.dataType="edge",e.getModel()),y.getModel("lineStyle")),v=m.get("curveness"),x=e.node1.getLayout(),_=e.node1.getModel(),b=_.get("localX"),w=(_=_.get("localY"),e.node2.getLayout()),S=e.node2.getModel(),M=S.get("localX"),I=(S=S.get("localY"),e.getLayout());switch(g.shape.extent=Math.max(1,I.dy),b="vertical"===(g.shape.orient=f)?(n=(null!=b?b*c:x.x)+I.sy,i=(null!=_?_*h:x.y)+x.dy,o=(null!=M?M*c:w.x)+I.ty,a=n,u=i*(1-v)+(r=null!=S?S*h:w.y)*v,p=o,i*v+r*(1-v)):(n=(null!=b?b*c:x.x)+x.dx,i=(null!=_?_*h:x.y)+I.sy,a=n*(1-v)+(o=null!=M?M*c:w.x)*v,u=i,p=n*v+o*(1-v),r=(null!=S?S*h:w.y)+I.ty),g.setShape({x1:n,y1:i,x2:o,y2:r,cpx1:a,cpy1:u,cpx2:p,cpy2:b}),g.useStyle(m.getItemStyle()),g.style.fill){case"source":g.style.fill=e.node1.getVisual("color"),g.style.decal=e.node1.getVisual("style").decal;break;case"target":g.style.fill=e.node2.getVisual("color"),g.style.decal=e.node2.getVisual("style").decal;break;case"gradient":var O=e.node1.getVisual("color"),T=e.node2.getVisual("color");Object(l.C)(O)&&Object(l.C)(T)&&(g.style.fill=new qd(0,0,+("horizontal"===f),+("vertical"===f),[{color:O,offset:0},{color:T,offset:1}]))}_=y.getModel("emphasis"),ns(g,y,"lineStyle",(function(t){return t.getItemStyle()})),s.add(g),d.setItemGraphicEl(e.dataIndex,g),x=_.get("focus"),$a(g,"adjacency"===x?e.getAdjacentDataIndices():x,_.get("blurScope"),_.get("disabled")),oa(g).dataType="edge"})),a.eachNode((function(e){var n=e.getLayout(),i=e.getModel(),o=i.get("localX"),r=i.get("localY"),a=i.getModel("emphasis");o=new Br({shape:{x:null!=o?o*c:n.x,y:null!=r?r*h:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10}),_s(o,bs(i),{labelFetcher:t,labelDataIndex:e.dataIndex,defaultText:e.id}),o.disableLabelAnimation=!0,o.setStyle("fill",e.getVisual("color")),o.setStyle("decal",e.getVisual("style").decal),ns(o,i),s.add(o),p.setItemGraphicEl(e.dataIndex,o),oa(o).dataType="node",r=a.get("focus");$a(o,"adjacency"===r?e.getAdjacentDataIndices():r,a.get("blurScope"),a.get("disabled"))})),p.eachItemGraphicEl((function(e,i){p.getItemModel(i).get("draggable")&&(e.drift=function(e,o){r._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:p.getRawIndex(i),localX:this.shape.x/c,localY:this.shape.y/h})},e.ondragend=function(){r._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&s.setClipPath((u=s.getBoundingRect(),a=t,i=function(){s.removeClipPath()},hs(o=new Br({shape:{x:u.x-10,y:u.y-10,width:0,height:u.height+20}}),{shape:{width:u.width+20}},a,i),o)),this._data=t.getData()},TP.prototype.dispose=function(){},TP.type="sankey";var CP,AP=TP;function kP(){var t=null!==CP&&CP.apply(this,arguments)||this;return t.type=kP.type,t}a(kP,CP=mp),kP.prototype.getInitialData=function(t,e){for(var n=t.edges||t.links,i=t.data||t.nodes,o=t.levels,r=(this.levelModels=[],this.levelModels),a=0;a<o.length;a++)null!=o[a].depth&&0<=o[a].depth&&(r[o[a].depth]=new Xs(o[a],this,e));if(i&&n)return oD(i,n,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel;e=n.getData().getItemLayout(e);return e&&(e=e.depth,(n=n.levelModels[e])&&(t.parentModel=n)),t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel;e=n.getGraph().getEdgeByIndex(e).node1.getLayout();return e&&(e=e.depth,(n=n.levelModels[e])&&(t.parentModel=n)),t}))})).data},kP.prototype.setNodePosition=function(t,e){t=(this.option.data||this.option.nodes)[t],t.localX=e[0],t.localY=e[1]},kP.prototype.getGraph=function(){return this.getData().graph},kP.prototype.getEdgeData=function(){return this.getGraph().edgeData},kP.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}var o,r;return"edge"===n?(o=(r=this.getDataParams(t,n)).data,r=r.value,Uh("nameValue",{name:o.source+" -- "+o.target,value:r,noValue:i(r)})):(o=this.getGraph().getNodeByIndex(t).getLayout().value,Uh("nameValue",{name:null!=(r=this.getDataParams(t,n).data.name)?r+"":null,value:o,noValue:i(o)}))},kP.prototype.optionUpdated=function(){},kP.prototype.getDataParams=function(t,e){var n=CP.prototype.getDataParams.call(this,t,e);return null==n.value&&"node"===e&&(e=this.getGraph().getNodeByIndex(t).getLayout().value,n.value=e),n},kP.type="series.sankey",kP.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3};var DP=kP;function LP(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),o=(o=e,ql(t.getBoxLayoutParams(),{width:o.getWidth(),height:o.getHeight()})),r=(t.layoutInfo=o).width,a=(o=o.height,t.getGraph()),s=a.nodes;a=a.edges;l.k(s,(function(t){var e=FP(t.outEdges,VP),n=FP(t.inEdges,VP),i=t.getValue()||0;e=Math.max(e,n,i);t.setLayout({value:e},!0)}));for(var u=0!==l.n(s,(function(t){return 0===t.getLayout().value})).length?0:t.get("layoutIterations"),c=t.get("orient"),h=(t=t.get("nodeAlign"),i=i,u=u,s),p=a,d=n,f=(r=n=r,o),g=c,y=[],m=[],v=[],x=[],_=0,b=0;b<p.length;b++)y[b]=1;for(b=0;b<h.length;b++)m[b]=h[b].inEdges.length,0===m[b]&&v.push(h[b]);for(var w=-1;v.length;){for(var S=0;S<v.length;S++){var M=v[S],I=M.hostGraph.data.getRawDataItem(M.dataIndex),O=null!=I.depth&&0<=I.depth;O&&I.depth>w&&(w=I.depth),M.setLayout({depth:O?I.depth:_},!0),"vertical"===g?M.setLayout({dy:d},!0):M.setLayout({dx:d},!0);for(var T=0;T<M.outEdges.length;T++){var C=M.outEdges[T],A=p.indexOf(C);A=(y[A]=0,C.node2),C=h.indexOf(A);0==--m[C]&&x.indexOf(A)<0&&x.push(A)}}++_,v=x,x=[]}for(b=0;b<y.length;b++)if(1===y[b])throw new Error("Sankey is a DAG, the original data has cycle!");var k=_-1<w?w:_-1;if(t&&"left"!==t){var D=h,L=k;if("right"===t){for(var P=[],j=D,R=0;j.length;){for(var N=0;N<j.length;N++){var E=j[N];E.setLayout({skNodeHeight:R},!0);for(var z=0;z<E.inEdges.length;z++){var B=E.inEdges[z];P.indexOf(B.node1)<0&&P.push(B.node1)}}j=P,P=[],++R}l.k(D,(function(t){PP(t)||t.setLayout({depth:Math.max(0,L-t.getLayout().skNodeHeight)},!0)}))}else if("justify"===t){var V=D,F=L;l.k(V,(function(t){PP(t)||t.outEdges.length||t.setLayout({depth:F},!0)}))}}t=h;var H="vertical"===g?(f-d)/k:(r-d)/k,G=g;l.k(t,(function(t){var e=t.getLayout().depth*H;"vertical"===G?t.setLayout({y:e},!0):t.setLayout({x:e},!0)}));D=a;var W=o,Y=n,U=i,X=u,Z=c,q=function(t,e){var n=[],i="vertical"===e?"y":"x",o=zi(t,(function(t){return t.getLayout()[i]}));return o.keys.sort((function(t,e){return t-e})),l.k(o.keys,(function(t){n.push(o.buckets.get(t))})),n}(s,Z),K=(f=q,r=D,W),Q=Y,$=U,J=Z,tt=1/0;l.k(f,(function(t){var e=t.length,n=0;l.k(t,(function(t){n+=t.getLayout().value})),t="vertical"===J?(Q-(e-1)*$)/n:(K-(e-1)*$)/n;t<tt&&(tt=t)})),l.k(f,(function(t){l.k(t,(function(t,e){var n=t.getLayout().value*tt;"vertical"===J?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),l.k(r,(function(t){var e=+t.getValue()*tt;t.setLayout({dy:e},!0)})),jP(q,U,W,Y,Z);for(var et=1;0<X;X--)!function(t,e,n){l.k(t.slice().reverse(),(function(t){l.k(t,(function(t){var i,o;t.outEdges.length&&(i=FP(t.outEdges,RP,n)/FP(t.outEdges,VP),isNaN(i)&&(i=(o=t.outEdges.length)?FP(t.outEdges,NP,n)/o:0),"vertical"===n?(o=t.getLayout().x+(i-BP(t,n))*e,t.setLayout({x:o},!0)):(o=t.getLayout().y+(i-BP(t,n))*e,t.setLayout({y:o},!0)))}))}))}(q,et*=.99,Z),jP(q,U,W,Y,Z),function(t,e,n){l.k(t,(function(t){l.k(t,(function(t){var i,o;t.inEdges.length&&(i=FP(t.inEdges,EP,n)/FP(t.inEdges,VP),isNaN(i)&&(i=(o=t.inEdges.length)?FP(t.inEdges,zP,n)/o:0),"vertical"===n?(o=t.getLayout().x+(i-BP(t,n))*e,t.setLayout({x:o},!0)):(o=t.getLayout().y+(i-BP(t,n))*e,t.setLayout({y:o},!0)))}))}))}(q,et,Z),jP(q,U,W,Y,Z);k=s;var nt="vertical"===c?"x":"y";l.k(k,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[nt]-e.node2.getLayout()[nt]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[nt]-e.node1.getLayout()[nt]}))})),l.k(k,(function(t){var e=0,n=0;l.k(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),l.k(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}))}function PP(t){return t=t.hostGraph.data.getRawDataItem(t.dataIndex),null!=t.depth&&0<=t.depth}function jP(t,e,n,i,o){var r="vertical"===o?"x":"y";l.k(t,(function(t){t.sort((function(t,e){return t.getLayout()[r]-e.getLayout()[r]}));for(var a,s,l,u=0,c=t.length,h="vertical"===o?"dx":"dy",p=0;p<c;p++)0<(l=u-(s=t[p]).getLayout()[r])&&(a=s.getLayout()[r]+l,"vertical"===o?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[r]+s.getLayout()[h]+e;if(0<(l=u-e-("vertical"===o?i:n)))for(a=s.getLayout()[r]-l,"vertical"===o?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a,p=c-2;0<=p;--p)0<(l=(s=t[p]).getLayout()[r]+s.getLayout()[h]+e-u)&&(a=s.getLayout()[r]-l,"vertical"===o?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[r]}))}function RP(t,e){return BP(t.node2,e)*t.getValue()}function NP(t,e){return BP(t.node2,e)}function EP(t,e){return BP(t.node1,e)*t.getValue()}function zP(t,e){return BP(t.node1,e)}function BP(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function VP(t){return t.getValue()}function FP(t,e,n){for(var i=0,o=t.length,r=-1;++r<o;){var a=+e(t[r],n);isNaN(a)||(i+=a)}return i}function HP(t){t.eachSeriesByType("sankey",(function(t){var e,n,i=t.getGraph().nodes;i.length&&(e=1/0,n=-1/0,l.k(i,(function(t){t=t.getLayout().value,t<e&&(e=t),n<t&&(n=t)})),l.k(i,(function(i){var o=new xA({type:"color",mappingMethod:"linear",dataExtent:[e,n],visual:t.get("color")}).mapValueToVisual(i.getLayout().value),r=i.getModel().get(["itemStyle","color"]);null!=r?(i.setVisual("color",r),i.setVisual("style",{fill:r})):(i.setVisual("color",o),i.setVisual("style",{fill:o}))})))}))}function GP(){}GP.prototype.getInitialData=function(t,e){var n,i,o=e.getComponent("xAxis",this.get("xAxisIndex")),r=(e=e.getComponent("yAxis",this.get("yAxisIndex")),o.get("type")),a=e.get("type"),s=(r=("category"===r?(t.layout="horizontal",n=o.getOrdinalMeta(),u=!0):"category"===a?(t.layout="vertical",n=e.getOrdinalMeta(),u=!0):t.layout=t.layout||"horizontal",["x","y"]),a="horizontal"===t.layout?0:1,this._baseAxisDim=r[a]),u=(r=r[1-a],o=[o,e],e=o[a].get("type"),o=o[1-a].get("type"),a=t.data,a&&u&&(i=[],l.k(a,(function(t,e){var n;l.t(t)?(n=t.slice(),t.unshift(e)):l.t(t.value)?((n=l.m({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,i.push(n)})),t.data=i),this.defaultValueDimensions);a=[{name:s,type:Fx(e),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:r,type:Fx(o),dimsDef:u.slice()}];return Ow(this,{coordDimensions:a,dimensionsCount:u.length+1,encodeDefaulter:l.h(wu,a,this)})},GP.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e=GP,a(YP,WP=mp),YP.type="series.boxplot",YP.dependencies=["xAxis","yAxis","grid"],YP.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800};var WP;Ns=YP;function YP(){var t=null!==WP&&WP.apply(this,arguments)||this;return t.type=YP.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}Object(l.K)(Ns,e,!0);var UP,XP=Ns;a(ZP,UP=Uf),ZP.prototype.render=function(t,e,n){var i=t.getData(),o=this.group,r=this._data,a=(this._data||o.removeAll(),"horizontal"===t.get("layout")?1:0);i.diff(r).add((function(t){var e;i.hasValue(t)&&(e=JP(i.getItemLayout(t),i,t,a,!0),i.setItemGraphicEl(t,e),o.add(e))})).update((function(t,e){var n;e=r.getItemGraphicEl(e);i.hasValue(t)?(n=i.getItemLayout(t),e?(ys(e),tj(n,e,i,t)):e=JP(n,i,t,a),o.add(e),i.setItemGraphicEl(t,e)):o.remove(e)})).remove((function(t){t=r.getItemGraphicEl(t),t&&o.remove(t)})).execute(),this._data=i},ZP.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},ZP.type="boxplot",zg=ZP;function ZP(){var t=null!==UP&&UP.apply(this,arguments)||this;return t.type=ZP.type,t}var qP,KP=function(){},QP=(a($P,qP=br),$P.prototype.getDefaultShape=function(){return new KP},$P.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),t.lineTo(n[++i][0],n[i][1])},$P);function $P(t){return t=qP.call(this,t)||this,t.type="boxplotBoxPath",t}function JP(t,e,n,i,o){var r,a,s=t.ends;i=new QP({shape:{points:o?(r=i,a=t,l.H(s,(function(t){return(t=t.slice())[r]=a.initBaseline,t}))):s}});return tj(t,i,e,n,o),i}function tj(t,e,n,o,r){var a=n.hostModel;(0,i[r?"initProps":"updateProps"])(e,{shape:{points:t.ends}},a,o),e.useStyle(n.getItemVisual(o,"style")),e.style.strokeNoScale=!0,e.z2=100,r=n.getItemModel(o),t=r.getModel("emphasis");ns(e,r),$a(e,t.get("focus"),t.get("blurScope"),t.get("disabled"))}var ej=zg;function nj(t,e){}var ij=l.k;function oj(t){var e,n;e=[],n=[],t.eachSeriesByType("boxplot",(function(t){var i=t.getBaseAxis(),o=l.r(n,i);o<0&&(o=n.length,n[o]=i,e[o]={axis:i,seriesModels:[]}),e[o].seriesModels.push(t)})),ij(e,(function(t){var e,n,i,o,r,a,s,u,c,h,p,d,f=t.seriesModels;f.length&&(c=(e=t).axis,i=e.seriesModels,o=i.length,r=e.boxWidthList=[],a=e.boxOffsetList=[],s=[],n="category"===c.type?c.getBandWidth():(u=0,ij(i,(function(t){u=Math.max(u,t.getData().count())})),e=c.getExtent(),Math.abs(e[1]-e[0])/u),ij(i,(function(t){t=t.get("boxWidth"),l.t(t)||(t=[t,t]),s.push([Qn(t[0],n)||0,Qn(t[1],n)||0])})),h=(c=.8*n-2)/o*.3,d=(p=(c-h*(o-1))/o)/2-c/2,ij(i,(function(t,e){a.push(d),d+=h+p,r.push(Math.min(Math.max(p,s[e][0]),s[e][1]))})),ij(f,(function(e,n){var i=t.boxOffsetList[n],o=(n=t.boxWidthList[n],e.coordinateSystem),r=e.getData(),a=n/2,s="horizontal"===e.get("layout")?0:1,l=1-s,u=(n=["x","y"],r.mapDimension(n[s])),c=r.mapDimensionsAll(n[l]);if(!(null==u||c.length<5))for(var h=0;h<r.count();h++){var p=r.get(u,h),d=v(p,c[2],h),f=v(p,c[0],h),g=v(p,c[1],h),y=v(p,c[3],h),m=(p=v(p,c[4],h),[]);x(m,g,!1),x(m,y,!0),m.push(f,g,p,y),_(m,f),_(m,p),_(m,d),r.setItemLayout(h,{initBaseline:d[l],ends:m})}function v(t,e,n){var a;e=r.get(e,n),n=[];return n[s]=t,n[l]=e,isNaN(t)||isNaN(e)?a=[NaN,NaN]:(a=o.dataToPoint(n))[s]+=i,a}function x(t,e,n){var i=e.slice();e=e.slice();i[s]+=a,e[s]-=a,n?t.push(i,e):t.push(e,i)}function _(t,e){var n=e.slice();e=e.slice();n[s]-=a,e[s]+=a,t.push(n,e)}})))}))}var rj,aj={type:"echarts:boxplot",transform:function(t){var e=t.upstream;e.sourceFormat!==du&&Eu(""),e=function(t,e){for(var n=[],i=[],o=(e=e||{}).boundIQR,r="none"===o||0===o,a=0;a<t.length;a++){var s=Jn(t[a].slice()),u=ui(s,.25),c=ui(s,.5),h=ui(s,.75),p=s[0],d=s[s.length-1],f=(null==o?1.5:o)*(h-u),g=r?p:Math.max(p,u-f),y=r?d:Math.min(d,h+f),m=(p=e.itemNameFormatter,Object(l.w)(p)?p({value:a}):Object(l.C)(p)?p.replace("{value}",a+""):a+"");n.push([m,g,u,c,h,y]);for(var v=0;v<s.length;v++){var x=s[v];(x<g||y<x)&&i.push([m,x])}}return{boxData:n,outliers:i}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:e.boxData},{data:e.outliers}]}},sj=["color","borderColor"];a(lj,rj=Uf),lj.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},lj.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},lj.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},lj.prototype.eachRendered=function(t){Ef(this._progressiveEls||this.group,t)},lj.prototype._updateDrawMode=function(t){t=t.pipelineContext.large,null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},lj.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,o=e.getLayout("isSimpleBox"),r=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),e.diff(n).add((function(n){var a,l;e.hasValue(n)&&(a=e.getItemLayout(n),r&&fj(s,a)||(hs(l=dj(a,0,!0),{shape:{points:a.ends}},t,n),gj(l,e,n,o),i.add(l),e.setItemGraphicEl(n,l)))})).update((function(a,l){var u;l=n.getItemGraphicEl(l);e.hasValue(a)?(u=e.getItemLayout(a),r&&fj(s,u)?i.remove(l):(l?(cs(l,{shape:{points:u.ends}},t,a),ys(l)):l=dj(u),gj(l,e,a,o),i.add(l),e.setItemGraphicEl(a,l))):i.remove(l)})).remove((function(t){t=n.getItemGraphicEl(t),t&&i.remove(t)})).execute(),this._data=e},lj.prototype._renderLarge=function(t){this._clear(),_j(t,this.group),t=t.get("clip",!0)?tb(t.coordinateSystem,!1,t):null,t?this.group.setClipPath(t):this.group.removeClipPath()},lj.prototype._incrementalRenderNormal=function(t,e){for(var n,i=e.getData(),o=i.getLayout("isSimpleBox");null!=(n=t.next());){var r=dj(i.getItemLayout(n));gj(r,i,n,o),r.incremental=!0,this.group.add(r),this._progressiveEls.push(r)}},lj.prototype._incrementalRenderLarge=function(t,e){_j(e,this.group,this._progressiveEls,!0)},lj.prototype.remove=function(t){this._clear()},lj.prototype._clear=function(){this.group.removeAll(),this._data=null},lj.type="candlestick",Bg=lj;function lj(){var t=null!==rj&&rj.apply(this,arguments)||this;return t.type=lj.type,t}var uj,cj=function(){},hj=(a(pj,uj=br),pj.prototype.getDefaultShape=function(){return new cj},pj.prototype.buildPath=function(t,e){e=e.points,this.__simpleBox?(t.moveTo(e[4][0],e[4][1]),t.lineTo(e[6][0],e[6][1])):(t.moveTo(e[0][0],e[0][1]),t.lineTo(e[1][0],e[1][1]),t.lineTo(e[2][0],e[2][1]),t.lineTo(e[3][0],e[3][1]),t.closePath(),t.moveTo(e[4][0],e[4][1]),t.lineTo(e[5][0],e[5][1]),t.moveTo(e[6][0],e[6][1]),t.lineTo(e[7][0],e[7][1]))},pj);function pj(t){return t=uj.call(this,t)||this,t.type="normalCandlestickBox",t}function dj(t,e,n){var i,o=t.ends;return new hj({shape:{points:n?(i=t,l.H(o,(function(t){return(t=t.slice())[1]=i.initBaseline,t}))):o},z2:100})}function fj(t,e){for(var n=!0,i=0;i<e.ends.length;i++)if(t.contain(e.ends[i][0],e.ends[i][1])){n=!1;break}return n}function gj(t,e,n,i){var o=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=i,ns(t,o)}var yj,mj=function(){},vj=(a(xj,yj=br),xj.prototype.getDefaultShape=function(){return new mj},xj.prototype.buildPath=function(t,e){for(var n,i=e.points,o=0;o<i.length;)this.__sign===i[o++]?(n=i[o++],t.moveTo(n,i[o++]),t.lineTo(n,i[o++])):o+=3},xj);function xj(t){return t=yj.call(this,t)||this,t.type="largeCandlestickBox",t}function _j(t,e,n,i){var o=t.getData(),r=o.getLayout("largePoints"),a=new vj({shape:{points:r},__sign:1});e.add(a),r=new vj({shape:{points:r},__sign:-1});e.add(r),bj(1,a,t),bj(-1,r,t),i&&(a.incremental=!0,r.incremental=!0),n&&n.push(a,r)}function bj(t,e,n){t=n.get(["itemStyle",0<t?"borderColor":"borderColor0"])||n.get(["itemStyle",0<t?"color":"color0"]),n=n.getModel("itemStyle").getItemStyle(sj),e.useStyle(n),e.style.fill=null,e.style.stroke=t}var wj,Sj=Bg;a(Mj,wj=mp),Mj.prototype.getShadowDim=function(){return"open"},Mj.prototype.brushSelector=function(t,e,n){return e=e.getItemLayout(t),e&&n.rect(e.brushRect)},Mj.type="series.candlestick",Mj.dependencies=["xAxis","yAxis","grid"],Mj.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},Eg=Mj;function Mj(){var t=null!==wj&&wj.apply(this,arguments)||this;return t.type=Mj.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}Object(l.K)(Eg,e,!0);var Ij=Eg;function Oj(t){t&&l.t(t.series)&&l.k(t.series,(function(t){l.A(t)&&"k"===t.type&&(t.type="candlestick")}))}var Tj=["itemStyle","borderColor"],Cj=["itemStyle","borderColor0"],Aj=["itemStyle","color"],kj=["itemStyle","color0"],Dj={seriesType:"candlestick",plan:_p(),performRawSeries:!0,reset:function(t,e){if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var n;null!=(n=t.next());){var i=e.getItemModel(n),o=e.getItemLayout(n).sign,r=i.getItemStyle();i=(r.fill=i.get(0<o?Aj:kj),r.stroke=i.get(0<o?Tj:Cj)||r.fill,e.ensureUniqueItemVisual(n,"style"));Object(l.m)(i,r)}}}}};function Lj(t,e,n,i,o){return n=i<n||!(n<i||!(0<e)||t.get(o,e-1)<=i)?-1:1,n}var Pj,jj={seriesType:"candlestick",plan:_p(),reset:function(t){var e,n,i=t.coordinateSystem,o=t.getData(),r=(e=o,u="category"===(u=(a=t).getBaseAxis()).type?u.getBandWidth():(u=u.getExtent(),Math.abs(u[1]-u[0])/e.count()),e=Qn(Object(l.P)(a.get("barMaxWidth"),u),u),n=Qn(Object(l.P)(a.get("barMinWidth"),1),u),null!=(a=a.get("barWidth"))?Qn(a,u):Math.max(Math.min(u/2,e),n)),a=["x","y"],s=o.getDimensionIndex(o.mapDimension(a[0])),u=Object(l.H)(o.mapDimensionsAll(a[1]),o.getDimensionIndex,o),c=u[0],h=u[1],p=u[2],d=u[3];if(o.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(s<0||u.length<4))return{progress:t.pipelineContext.large?function(t,e){for(var n,o=N_(4*t.count),r=0,a=[],l=[],u=e.getStore();null!=(n=t.next());){var f=u.get(s,n),g=u.get(c,n),y=u.get(h,n),m=u.get(p,n),v=u.get(d,n);isNaN(f)||isNaN(m)||isNaN(v)?(o[r++]=NaN,r+=3):(o[r++]=Lj(u,n,g,y,h),a[0]=f,a[1]=m,n=i.dataToPoint(a,null,l),o[r++]=n?n[0]:NaN,o[r++]=n?n[1]:NaN,a[1]=v,n=i.dataToPoint(a,null,l),o[r++]=n?n[1]:NaN)}e.setLayout("largePoints",o)}:function(t,e){for(var n,o=e.getStore();null!=(n=t.next());){var a=o.get(s,n),l=o.get(c,n),u=o.get(h,n),f=o.get(p,n),g=o.get(d,n),y=Math.min(l,u),m=Math.max(l,u),v=(y=b(y,a),m=b(m,a),b(f,a)),x=b(g,a),_=[];w(_,m,0),w(_,y,1),_.push(S(x),S(m),S(v),S(y)),e.setItemLayout(n,{sign:Lj(o,n,l,u,h),initBaseline:(u<l?m:y)[1],ends:_,brushRect:function(t,e,n){return t=b(t,n),e=b(e,n),t[0]-=r/2,e[0]-=r/2,{x:t[0],y:t[1],width:r,height:e[1]-t[1]}}(f,g,a)})}function b(t,e){var n=[];return n[0]=e,n[1]=t,isNaN(e)||isNaN(t)?[NaN,NaN]:i.dataToPoint(n)}function w(t,e,n){var i=e.slice();e=e.slice();i[0]=Mf(i[0]+r/2,1,!1),e[0]=Mf(e[0]-r/2,1,!0),n?t.push(i,e):t.push(e,i)}function S(t){return t[0]=Mf(t[0],1),t}}}}};function Rj(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}function Nj(t,e){var n=Pj.call(this)||this,i=new O_(t,e),o=new Gn;return n.add(i),n.add(o),n.updateData(t,e),n}a(Nj,Pj=Gn),Nj.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},Nj.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),r=0;r<i;r++){var a=Yg(e,-1,-1,2,2,n),s=(a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5}),-r/i*t.period+t.effectOffset);a.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),o.add(a)}Rj(o,t)},Nj.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var r=i[o];if(e[r]!==t[r])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}Rj(n,t)},Nj.prototype.highlight=function(){Ba(this)},Nj.prototype.downplay=function(){Va(this)},Nj.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},Nj.prototype.updateData=function(t,e){var n=this,i=t.hostModel,o=(this.childAt(0).updateData(t,e),this.childAt(1)),r=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),s=Ug(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),u=l&&l.fill,c=(l=r.getModel("emphasis"),s=(o.setScale(s),o.traverse((function(t){t.setStyle("fill",u)})),Xg(t.getItemVisual(e,"symbolOffset"),s)),s=(s&&(o.x=s[0],o.y=s[1]),t.getItemVisual(e,"symbolRotate")),o.rotation=(s||0)*Math.PI/180||0,{});c.showEffectOn=i.get("showEffectOn"),c.rippleScale=r.get(["rippleEffect","scale"]),c.brushType=r.get(["rippleEffect","brushType"]),c.period=1e3*r.get(["rippleEffect","period"]),c.effectOffset=e/t.count(),c.z=i.getShallow("z")||0,c.zlevel=i.getShallow("zlevel")||0,c.symbolType=a,c.color=u,c.rippleEffectColor=r.get(["rippleEffect","color"]),c.rippleNumber=r.get(["rippleEffect","number"]),"render"===c.showEffectOn?(this._effectCfg?this.updateEffectAnimation(c):this.startEffectAnimation(c),this._effectCfg=c):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==c.showEffectOn&&n.startEffectAnimation(c):"normal"===t&&"render"!==c.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=c,$a(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},Nj.prototype.fadeOut=function(t){t&&t()};var Ej,zj=Nj;function Bj(){var t=null!==Ej&&Ej.apply(this,arguments)||this;return t.type=Bj.type,t}a(Bj,Ej=Uf),Bj.prototype.init=function(){this._symbolDraw=new D_(zj)},Bj.prototype.render=function(t,e,n){var i=t.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},Bj.prototype._getClipShape=function(t){var e=t.coordinateSystem;e=e&&e.getArea&&e.getArea();return t.get("clip",!0)?e:null},Bj.prototype.updateTransform=function(t,e,n){var i=t.getData();this.group.dirty(),t=gb("").reset(t,e,n);t.progress&&t.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},Bj.prototype._updateGroupTransform=function(t){var e;t=t.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=(t=t.getRoamTransform(),Ye(e=Ge(),t),e),this.group.decomposeTransform())},Bj.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},Bj.type="effectScatter";var Vj,Fj=Bj;function Hj(){var t=null!==Vj&&Vj.apply(this,arguments)||this;return t.type=Hj.type,t.hasSymbolVisual=!0,t}a(Hj,Vj=mp),Hj.prototype.getInitialData=function(t,e){return v_(null,this,{useEncodeDefaulter:!0})},Hj.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},Hj.type="series.effectScatter",Hj.dependencies=["grid","polar"],Hj.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10};var Gj,Wj=Hj;function Yj(t,e,n){var i=Gj.call(this)||this;return i.add(i.createLine(t,e,n)),i._updateEffectSymbol(t,e),i}a(Yj,Gj=Gn),Yj.prototype.createLine=function(t,e,n){return new Dk(t,e,n)},Yj.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e).getModel("effect"),i=n.get("symbolSize"),o=n.get("symbol"),r=(l.t(i)||(i=[i,i]),t.getItemVisual(e,"style")),a=(r=n.get("color")||r&&r.stroke,this.childAt(1));this._symbolType!==o&&(this.remove(a),(a=Yg(o,-.5,-.5,1,1,r)).z2=100,a.culling=!0,this.add(a)),a&&(a.setStyle("shadowColor",r),a.setStyle(n.getItemStyle(["color"])),a.scaleX=i[0],a.scaleY=i[1],a.setColor(r),this._symbolType=o,this._symbolScale=i,this._updateEffectAnimation(t,n,e))},Yj.prototype._updateEffectAnimation=function(t,e,n){var i,o,r,a,s,u=this.childAt(1);u&&(i=this,a=t.getItemLayout(n),o=1e3*e.get("period"),r=e.get("loop"),s=e.get("constantSpeed"),e=l.O(e.get("delay"),(function(e){return e/t.count()*o/3})),u.ignore=!0,this._updateAnimationPoints(u,a),(o=0<s?this._getLineLength(u)/s*1e3:o)===this._period&&r===this._loop||(u.stopAnimation(),0<o&&(a=void 0,a=l.w(e)?e(n):e,0<u.__t&&(a=-o*u.__t),u.__t=0,s=u.animate("",r).when(o,{__t:1}).delay(a).during((function(){i._updateSymbolPosition(u)})),r||s.done((function(){i.remove(u)})),s.start())),this._period=o,this._loop=r)},Yj.prototype._getLineLength=function(t){return w(t.__p1,t.__cp1)+w(t.__cp1,t.__p2)},Yj.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},Yj.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},Yj.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t,r=[t.x,t.y],a=r.slice(),s=Yt,l=Ut;r[0]=s(e[0],i[0],n[0],o),r[1]=s(e[1],i[1],n[1],o),s=l(e[0],i[0],n[0],o),l=l(e[1],i[1],n[1],o);t.rotation=-Math.atan2(l,s)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*w(a,r),1===o&&(r[0]=a[0]+(r[0]-a[0])/2,r[1]=a[1]+(r[1]-a[1])/2)):1===t.__lastT?t.scaleY=2*w(e,r):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=r[0],t.y=r[1]},Yj.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)};var Uj,Xj=Yj;function Zj(t,e,n){var i=Uj.call(this)||this;return i._createPolyline(t,e,n),i}a(Zj,Uj=Gn),Zj.prototype._createPolyline=function(t,e,n){var i=t.getItemLayout(e);i=new Td({shape:{points:i}});this.add(i),this._updateCommonStl(t,e,n)},Zj.prototype.updateData=function(t,e,n){var i=t.hostModel;cs(this.childAt(0),{shape:{points:t.getItemLayout(e)}},i,e),this._updateCommonStl(t,e,n)},Zj.prototype._updateCommonStl=function(t,e,n){var i=this.childAt(0),o=t.getItemModel(e),r=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;n&&!t.hasItemOption||(r=(n=o.getModel("emphasis")).getModel("lineStyle").getLineStyle(),l=n.get("disabled"),a=n.get("focus"),s=n.get("blurScope")),i.useStyle(t.getItemVisual(e,"style")),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=r,$a(this,a,s,l)},Zj.prototype.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))};var qj,Kj=Zj;function Qj(){var t=null!==qj&&qj.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}a(Qj,qj=Xj),Qj.prototype.createLine=function(t,e,n){return new Kj(t,e,n)},Qj.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,o=1;o<e.length;o++){var r=e[o-1],a=e[o];i+=w(r,a),n.push(i)}if(0===i)this._length=0;else{for(o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i}},Qj.prototype._getLineLength=function(){return this._length},Qj.prototype._updateSymbolPosition=function(t){var e=t.__t,n=this._points,i=this._offsets,o=n.length;if(i){var r=this._lastFrame;if(e<this._lastFramePercent){for(var a=Math.min(r+1,o-1);0<=a&&!(i[a]<=e);a--);a=Math.min(a,o-2)}else{for(a=r;a<o&&!(i[a]>e);a++);a=Math.min(a-1,o-2)}r=(e-i[a])/(i[a+1]-i[a]);var s=n[a];n=n[a+1],r=(t.x=s[0]*(1-r)+r*n[0],t.y=s[1]*(1-r)+r*n[1],n[0]-s[0]),n=n[1]-s[1];t.rotation=-Math.atan2(n,r)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=e,t.ignore=!1}};var $j,Jj=Qj,tR=function(){this.polyline=!1,this.curveness=0,this.segs=[]},eR=(a(nR,$j=br),nR.prototype.reset=function(){this.notClear=!1,this._off=0},nR.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},nR.prototype.getDefaultShape=function(){return new tR},nR.prototype.buildPath=function(t,e){var n,i=e.segs,o=e.curveness;if(e.polyline)for(n=this._off;n<i.length;){var r=i[n++];if(0<r){t.moveTo(i[n++],i[n++]);for(var a=1;a<r;a++)t.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],u=i[n++],c=i[n++];t.moveTo(s,l),0<o?t.quadraticCurveTo((s+u)/2-(l-c)*o,(l+c)/2-(u-s)*o,u,c):t.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},nR.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,o=n.curveness,r=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<i.length;){var l=i[s++];if(0<l)for(var u=i[s++],c=i[s++],h=1;h<l;h++)if(er(u,c,p=i[s++],d=i[s++],r,t,e))return a;a++}else for(a=0,s=0;s<i.length;){u=i[s++],c=i[s++];var p=i[s++],d=i[s++];if(0<o){if(nr(u,c,(u+p)/2-(c-d)*o,(c+d)/2-(p-u)*o,p,d,r,t,e))return a}else if(er(u,c,p,d,r,t,e))return a;a++}return-1},nR.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?0<=(this.hoverDataIdx=this.findDataIndex(t,e)):!(this.hoverDataIdx=-1)},nR.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape.segs,n=1/0,i=1/0,o=-1/0,r=-1/0,a=0;a<e.length;){var s=e[a++],l=e[a++];n=Math.min(s,n),o=Math.max(s,o),i=Math.min(l,i),r=Math.max(l,r)}t=this._rect=new xn(n,i,o,r)}return t},nR);function nR(t){return t=$j.call(this,t)||this,t._off=0,t.hoverDataIdx=-1,t}function iR(){this.group=new Gn}iR.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},iR.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},iR.prototype.incrementalUpdate=function(t,e){var n,i,o=this._newAdded[0],r=e.getLayout("linesPoints"),a=o&&o.shape.segs;a&&a.length<2e4?(n=a.length,(i=new Float32Array(n+r.length)).set(a),i.set(r,n),o.setShape({segs:i})):(this._newAdded=[],(a=this._create()).incremental=!0,a.setShape({segs:r}),this._setCommon(a,e),a.__startIndex=t.start)},iR.prototype.remove=function(){this._clear()},iR.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},iR.prototype._create=function(){var t=new eR({cursor:"default"});return this._newAdded.push(t),this.group.add(t),t},iR.prototype._setCommon=function(t,e,n){var i=e.hostModel,o=(e=(t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0,e.getVisual("style")),e&&e.stroke&&t.setStyle("stroke",e.stroke),t.setStyle("fill",null),oa(t));o.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){o.dataIndex=null;var n=t.hoverDataIdx;0<n&&(o.dataIndex=n+t.__startIndex)}))},iR.prototype._clear=function(){this._newAdded=[],this.group.removeAll()};var oR,rR=iR,aR={seriesType:"lines",plan:_p(),reset:function(t){var e,n,i=t.coordinateSystem;if(i)return e=t.get("polyline"),n=t.pipelineContext.large,{progress:function(o,r){var a=[];if(n){var s=void 0,l=o.end-o.start;if(e){for(var u=0,c=o.start;c<o.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,p=[];for(c=o.start;c<o.end;c++){var d=t.getLineCoords(c,a);e&&(s[h++]=d);for(var f=0;f<d;f++)p=i.dataToPoint(a[f],!1,p),s[h++]=p[0],s[h++]=p[1]}r.setLayout("linesPoints",s)}else for(c=o.start;c<o.end;c++){var g=r.getItemModel(c),y=(d=t.getLineCoords(c,a),[]);if(e)for(var m=0;m<d;m++)y.push(i.dataToPoint(a[m]));else y[0]=i.dataToPoint(a[0]),y[1]=i.dataToPoint(a[1]),g=g.get(["lineStyle","curveness"]),+g&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*g,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*g]);r.setItemLayout(c,y)}}}}};function sR(){var t=null!==oR&&oR.apply(this,arguments)||this;return t.type=sR.type,t}a(sR,oR=Uf),sR.prototype.render=function(t,e,n){var i=t.getData(),o=this._updateLineDraw(i,t),r=t.get("zlevel"),a=t.get(["effect","trailLength"]),s=(n=n.getZr(),"svg"===n.painter.getType());s||n.painter.getLayer(r).clear(!0),null==this._lastZlevel||s||n.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&0<a&&(s||n.configLayer(r,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),o.updateData(i),s=t.get("clip",!0)&&tb(t.coordinateSystem,!1,t);s?this.group.setClipPath(s):this.group.removeClipPath(),this._lastZlevel=r,this._finished=!0},sR.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},sR.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},sR.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},sR.prototype.updateTransform=function(t,e,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};o=aR.reset(t,e,n),o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},sR.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),o=!!e.get("polyline");e=e.pipelineContext.large;return n&&i===this._hasEffet&&o===this._isPolyline&&e===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=e?new rR:new Ek(o?i?Jj:Kj:i?Xj:Dk),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=e),this.group.add(n.group),n},sR.prototype._showEffect=function(t){return!!t.get(["effect","show"])},sR.prototype._clearLayer=function(t){t=t.getZr(),"svg"!==t.painter.getType()&&null!=this._lastZlevel&&t.painter.getLayer(this._lastZlevel).clear(!0)},sR.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},sR.prototype.dispose=function(t,e){this.remove(t,e)},sR.type="lines";var lR,uR=sR,cR="undefined"==typeof Uint32Array?Array:Uint32Array,hR="undefined"==typeof Float64Array?Array:Float64Array;function pR(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=Object(l.H)(e,(function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),Object(l.J)([e,t[0],t[1]])})))}function dR(){var t=null!==lR&&lR.apply(this,arguments)||this;return t.type=dR.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}a(dR,lR=mp),dR.prototype.init=function(t){t.data=t.data||[],pR(t);var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count)),lR.prototype.init.apply(this,arguments)},dR.prototype.mergeOption=function(t){var e;pR(t),t.data&&(e=this._processFlatCoordsArray(t.data),this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count))),lR.prototype.mergeOption.apply(this,arguments)},dR.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Object(l.e)(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Object(l.e)(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},dR.prototype._getCoordsFromItemModel=function(t){return t=this.getData().getItemModel(t),t.option instanceof Array?t.option:t.getShallow("coords")},dR.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},dR.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],o=0;o<i;o++)e[o]=e[o]||[],e[o][0]=this._flatCoords[n+2*o],e[o][1]=this._flatCoords[n+2*o+1];return i}var r=this._getCoordsFromItemModel(t);for(o=0;o<r.length;o++)e[o]=e[o]||[],e[o][0]=r[o][0],e[o][1]=r[o][1];return r.length},dR.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),Object(l.z)(t[0])){for(var n=t.length,i=new cR(n),o=new hR(n),r=0,a=0,s=0,u=0;u<n;){s++;var c=t[u++];i[a++]=r+e,i[a++]=c;for(var h=0;h<c;h++){var p=t[u++],d=t[u++];o[r++]=p,o[r++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:o,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},dR.prototype.getInitialData=function(t,e){var n=new u_(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,i,o){return t instanceof Array?NaN:(n.hasItemOption=!0,t=t.value,null!=t?t instanceof Array?t[o]:t:void 0)})),n},dR.prototype.formatTooltip=function(t,e,n){t=this.getData().getItemModel(t);var i=t.get("name");if(i)return i;i=t.get("fromName"),t=t.get("toName");var o=[];return null!=i&&o.push(i),null!=t&&o.push(t),Uh("nameValue",{name:o.join(" > ")})},dR.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},dR.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},dR.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},dR.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&0<e?e+"":""},dR.type="series.lines",dR.dependencies=["grid","polar","geo","calendar"],dR.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}};var fR=dR;function gR(t){return t instanceof Array?t:[t,t]}var yR={seriesType:"lines",reset:function(t){var e=gR(t.get("symbol")),n=gR(t.get("symbolSize"));t=t.getData();return t.setVisual("fromSymbol",e&&e[0]),t.setVisual("toSymbol",e&&e[1]),t.setVisual("fromSymbolSize",n&&n[0]),t.setVisual("toSymbolSize",n&&n[1]),{dataEach:t.hasItemOption?function(t,e){var n=gR((i=t.getItemModel(e)).getShallow("symbol",!0)),i=gR(i.getShallow("symbolSize",!0));n[0]&&t.setItemVisual(e,"fromSymbol",n[0]),n[1]&&t.setItemVisual(e,"toSymbol",n[1]),i[0]&&t.setItemVisual(e,"fromSymbolSize",i[0]),i[1]&&t.setItemVisual(e,"toSymbolSize",i[1])}:null}}};function mR(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=bn.d.createCanvas();this.canvas=t}mR.prototype.update=function(t,e,n,i,o,r){var a=this._getBrush(),s=this._getGradient(o,"inRange"),l=this._getGradient(o,"outOfRange"),u=this.pointSize+this.blurSize,c=(o=this.canvas,o.getContext("2d")),h=t.length;o.width=e,o.height=n;for(var p=0;p<h;++p){var d=t[p],f=d[0],g=d[1],y=i(d[2]);c.globalAlpha=y,c.drawImage(a,f-u,g-u)}if(!o.width||!o.height)return o;e=c.getImageData(0,0,o.width,o.height);for(var m=e.data,v=0,x=m.length,_=this.minOpacity,b=this.maxOpacity-_;v<x;){y=m[v+3]/256;var w,S=4*Math.floor(255*y);0<y?(w=r(y)?s:l,0<y&&(y=y*b+_),m[v++]=w[S],m[v++]=w[1+S],m[v++]=w[2+S],m[v++]=w[3+S]*y*256):v+=4}return c.putImageData(e,0,0),o},mR.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=bn.d.createCanvas()),e=this.pointSize+this.blurSize,n=2*e,i=(t.width=n,t.height=n,t.getContext("2d"));return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},mR.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),o=[0,0,0,0],r=0,a=0;a<256;a++)t[e](a/255,!0,o),i[r++]=o[0],i[r++]=o[1],i[r++]=o[2],i[r++]=o[3];return i};var vR,xR=mR;function _R(t){return t=t.dimensions,"lng"===t[0]&&"lat"===t[1]}function bR(){var t=null!==vR&&vR.apply(this,arguments)||this;return t.type=bR.type,t}a(bR,vR=Uf),bR.prototype.render=function(t,e,n){e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this._progressiveEls=null,this.group.removeAll();var i;e=t.coordinateSystem;"cartesian2d"===e.type||"calendar"===e.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):_R(e)&&this._renderOnGeo(e,t,i,n)},bR.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},bR.prototype.incrementalRender=function(t,e,n,i){var o=e.coordinateSystem;o&&(_R(o)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},bR.prototype.eachRendered=function(t){Ef(this._progressiveEls||this.group,t)},bR.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,o){for(var r,a,s,l,u,c=t.coordinateSystem,h=(eb(c,"cartesian2d")&&(m=c.getAxis("x"),r=c.getAxis("y"),a=m.getBandWidth(),s=r.getBandWidth(),l=m.scale.getExtent(),u=r.scale.getExtent()),this.group),p=t.getData(),d=t.getModel(["emphasis","itemStyle"]).getItemStyle(),f=t.getModel(["blur","itemStyle"]).getItemStyle(),g=t.getModel(["select","itemStyle"]).getItemStyle(),y=bs(t),m=t.getModel("emphasis"),v=m.get("focus"),x=m.get("blurScope"),_=m.get("disabled"),b=eb(c,"cartesian2d")?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],w=n;w<i;w++){var S=void 0,M=p.getItemVisual(w,"style");if(eb(c,"cartesian2d")){var I=p.get(b[0],w),O=p.get(b[1],w);if(isNaN(p.get(b[2],w))||I<l[0]||I>l[1]||O<u[0]||O>u[1])continue;I=c.dataToPoint([I,O]),S=new Br({shape:{x:Math.floor(Math.round(I[0])-a/2),y:Math.floor(Math.round(I[1])-s/2),width:Math.ceil(a),height:Math.ceil(s)},style:M})}else{if(isNaN(p.get(b[1],w)))continue;S=new Br({z2:1,shape:c.dataToRect([p.get(b[0],w)]).contentShape,style:M})}O=p.getItemModel(w);var T=(p.hasItemOption&&(d=(I=O.getModel("emphasis")).getModel("itemStyle").getItemStyle(),f=O.getModel(["blur","itemStyle"]).getItemStyle(),g=O.getModel(["select","itemStyle"]).getItemStyle(),v=I.get("focus"),x=I.get("blurScope"),_=I.get("disabled"),y=bs(O)),t.getRawValue(w)),C="-";T&&null!=T[2]&&(C=T[2]+""),_s(S,y,{labelFetcher:t,labelDataIndex:w,defaultOpacity:M.opacity,defaultText:C}),S.ensureState("emphasis").style=d,S.ensureState("blur").style=f,S.ensureState("select").style=g,$a(S,v,x,_),(S.incremental=o)&&(S.states.emphasis.hoverLayer=!0),h.add(S),p.setItemGraphicEl(w,S),this._progressiveEls&&this._progressiveEls.push(S)}},bR.prototype._renderOnGeo=function(t,e,n,i){var o,r,a,s,u,c,h,p=n.targetVisuals.inRange,d=n.targetVisuals.outOfRange,f=e.getData(),g=this._hmLayer||this._hmLayer||new xR,y=(e=(g.blurSize=e.get("blurSize"),g.pointSize=e.get("pointSize"),g.minOpacity=e.get("minOpacity"),g.maxOpacity=e.get("maxOpacity"),t.getViewRect().clone()),t.getRoamTransform()),m=(e.applyTransform(y),Math.max(e.x,0)),v=Math.max(e.y,0),x=(y=Math.min(e.width+e.x,i.getWidth()),e=Math.min(e.height+e.y,i.getHeight()),i=y-m,y=e-v,e=[f.mapDimension("lng"),f.mapDimension("lat"),f.mapDimension("value")],f=f.mapArray(e,(function(e,n,i){return e=t.dataToPoint([e,n]),e[0]-=m,e[1]-=v,e.push(i),e})),e=n.getExtent(),"visualMap.continuous"===n.type?(h=n.option.range,x=e[1]-e[0],h=[(h[0]-e[0])/x,(h[1]-e[0])/x],function(t){return t>=h[0]&&t<=h[1]}):(o=e,r=n.getPieceList(),a=n.option.selected,s=o[1]-o[0],u=(r=l.H(r,(function(t){return{interval:[(t.interval[0]-o[0])/s,(t.interval[1]-o[0])/s]}}))).length,c=0,function(t){for(var e,n=c;n<u;n++)if((e=r[n].interval)[0]<=t&&t<=e[1]){c=n;break}if(n===u)for(n=c-1;0<=n;n--)if((e=r[n].interval)[0]<=t&&t<=e[1]){c=n;break}return 0<=n&&n<u&&a[n]}));g.update(f,i,y,p.color.getNormalizer(),{inRange:p.color.getColorMapper(),outOfRange:d.color.getColorMapper()},x),e=new Ar({style:{width:i,height:y,x:m,y:v,image:g.canvas},silent:!0});this.group.add(e)},bR.type="heatmap";var wR,SR=bR;function MR(){var t=null!==wR&&wR.apply(this,arguments)||this;return t.type=MR.type,t}a(MR,wR=mp),MR.prototype.getInitialData=function(t,e){return v_(null,this,{generateCoord:"value"})},MR.prototype.preventIncremental=function(){var t=qu.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},MR.type="series.heatmap",MR.dependencies=["grid","geo","calendar"],MR.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}};var IR,OR=MR,TR=["itemStyle","borderWidth"],CR=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],AR=new Xp;function kR(){var t=null!==IR&&IR.apply(this,arguments)||this;return t.type=kR.type,t}function DR(t,e,n,i){var o=t.getItemLayout(e),r=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",u=(n.get("symbolRotate")||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),p=(a={dataIndex:e,layout:o,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:r,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0},h=n,r),d=o,f=i,g=a,y=f.valueDim,m=(h=h.get("symbolBoundingData"),f.coordSys.getOtherAxis(f.coordSys.getBaseAxis())),v=m.toGlobalCoord(m.dataToCoord(0)),x=1-(d[y.wh]<=0),_=(m=(_=l.t(h)?((_=[LR(m,h[0])-v,LR(m,h[1])-v])[1]<_[0]&&_.reverse(),_[x]):null!=h?LR(m,h)-v:p?f.coordSysExtent[y.index][x]-v:d[y.wh],g.boundingLength=_,p&&(g.repeatCutLength=d[y.wh]),g.pxSign=0<_?1:-1,t),h=e,f=o,x=r,v=a.boundingLength,p=a.pxSign,d=c,y=i,g=a,y.valueDim),b=(t=y.categoryDim,f=Math.abs(f[t.wh]),m=m.getItemVisual(h,"symbolSize"),e=((h=l.t(m)?m.slice():null==m?["100%","100%"]:[m,m])[t.index]=Qn(h[t.index],f),h[_.index]=Qn(h[_.index],x?f:Math.abs(v)),g.symbolSize=h,(g.symbolScale=[h[0]/d,h[1]/d])[_.index]*=(y.isHorizontal?-1:1)*p,n),c=a.symbolScale,m=u,t=i,x=a,f=((e=e.get(TR)||0)&&(AR.attr({scaleX:c[0],scaleY:c[1],rotation:m}),AR.updateTransform(),e=(e/=AR.getLineScale())*c[t.valueDim.index]),x.valueLineWidth=e,a.symbolSize),v=Xg(n.get("symbolOffset"),f),g=n,h=f,d=o,y=r,p=v,u=s,m=a.valueLineWidth,c=a.boundingLength,t=a.repeatCutLength,x=i,e=a,n=x.categoryDim,f=x.valueDim,o=e.pxSign,r=m=Math.max(h[f.index]+m,0),y&&(b=Math.abs(c),g=l.O(g.get("symbolMargin"),"15%")+"",w=!1,g.lastIndexOf("!")===g.length-1&&(w=!0,g=g.slice(0,g.length-1)),g=Qn(g,h[f.index]),h=Math.max(m+2*g,0),v=w?0:2*g,S=pi(y),s=S?y:XR((b+v)/h),g=(b-s*m)/2/(w?s:Math.max(s-1,1)),h=m+2*g,v=w?0:2*g,S||"fixed"===y||(s=t?XR((Math.abs(t)+v)/h):0),r=s*h-v,e.repeatTimes=s,e.symbolMargin=g),o*(r/2)),w=((m=e.pathPosition=[])[n.index]=d[n.wh]/2,m[f.index]="start"===u?b:"end"===u?c-b:c/2,p&&(m[0]+=p[0],m[1]+=p[1]),e.bundlePosition=[]),S=(w[n.index]=d[n.xy],w[f.index]=d[f.xy],e.barRectShape=l.m({},d));return S[f.wh]=o*Math.max(Math.abs(d[f.wh]),Math.abs(m[f.index]+b)),S[n.wh]=d[n.wh],(y=e.clipShape={})[n.xy]=-d[n.xy],y[n.wh]=x.ecSize[n.wh],y[f.xy]=0,y[f.wh]=d[f.wh],a}function LR(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function PR(t){var e=t.symbolPatternSize;t=Yg(t.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),"image"!==t.type&&t.setStyle({strokeNoScale:!0}),t}function jR(t,e,n,i){var o=t.__pictorialBundle,r=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,h=r[e.valueDim.index]+a+2*n.symbolMargin;for(WR(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c<u?YR(t,null,f(c),n,i):YR(t,null,{scaleX:0,scaleY:0},n,i,(function(){o.remove(t)})),c++}));c<u;c++){var p=PR(n),d=(p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,o.add(p),f(c));YR(p,{x:d.x,y:d.y,scaleX:0,scaleY:0},{scaleX:d.scaleX,scaleY:d.scaleY,rotation:d.rotation},n,i)}function f(t){var e=s.slice(),i=n.pxSign,o=t;return("start"===n.symbolRepeatDirection?0<i:i<0)&&(o=u-1-t),e[l.index]=h*(o-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function RR(t,e,n,i){var o=t.__pictorialBundle,r=t.__pictorialMainPath;r?YR(r,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(r=t.__pictorialMainPath=PR(n),o.add(r),YR(r,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function NR(t,e,n){var i=l.m({},e.barRectShape),o=t.__pictorialBarRect;o?YR(o,null,{shape:i},e,n):((o=t.__pictorialBarRect=new Br({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(o))}function ER(t,e,n,o){var r,a,s,u;n.symbolClip&&(r=t.__pictorialClipPath,u=l.m({},n.clipShape),e=e.valueDim,a=n.animationModel,s=n.dataIndex,r?cs(r,{shape:u},a,s):(u[e.wh]=0,r=new Br({shape:u}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r,(u={})[e.wh]=n.clipShape[e.wh],i[o?"updateProps":"initProps"](r,{shape:u},a,s)))}function zR(t,e){return t=t.getItemModel(e),t.getAnimationDelayParams=BR,t.isAnimationEnabled=VR,t}function BR(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function VR(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function FR(t,e,n,i){var o=new Gn,r=new Gn;return o.add(r),(o.__pictorialBundle=r).x=n.bundlePosition[0],r.y=n.bundlePosition[1],n.symbolRepeat?jR(o,e,n):RR(o,0,n),NR(o,n,i),ER(o,e,n,i),o.__pictorialShapeStr=GR(t,n),o.__pictorialSymbolMeta=n,o}function HR(t,e,n,i){var o=i.__pictorialBarRect,r=(o&&o.removeTextContent(),[]);WR(i,(function(t){r.push(t)})),i.__pictorialMainPath&&r.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),l.k(r,(function(t){ds(t,{scaleX:0,scaleY:0},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function GR(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function WR(t,e,n){l.k(t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function YR(t,e,n,o,r,a){e&&t.attr(e),o.symbolClip&&!r?n&&t.attr(n):n&&i[r?"updateProps":"initProps"](t,n,o.animationModel,o.dataIndex,a)}function UR(t,e,n){var i=n.dataIndex,o=n.itemModel,r=o.getModel("emphasis"),a=r.getModel("itemStyle").getItemStyle(),s=o.getModel(["blur","itemStyle"]).getItemStyle(),u=o.getModel(["select","itemStyle"]).getItemStyle(),c=o.getShallow("cursor"),h=r.get("focus"),p=r.get("blurScope"),d=r.get("scale"),f=(WR(t,(function(t){t instanceof Ar?(e=t.style,t.useStyle(l.m({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))):t.useStyle(n.style);var e=t.ensureState("emphasis");e.style=a,d&&(e.scaleX=1.1*t.scaleX,e.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=u,c&&(t.cursor=c),t.z2=n.z2})),e.valueDim.posDesc[+(0<n.boundingLength)]);_s(t.__pictorialBarRect,bs(o),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:w_(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:f}),$a(t,h,p,r.get("disabled"))}function XR(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}a(kR,IR=Uf),kR.prototype.render=function(t,e,n){var i=this.group,o=t.getData(),r=this._data,a=t.coordinateSystem,s=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:CR[+s],categoryDim:CR[1-+s]};return o.diff(r).add((function(t){var e,n;o.hasValue(t)&&(e=zR(o,t),e=DR(o,t,e,u),n=FR(o,u,e),o.setItemGraphicEl(t,n),i.add(n),UR(n,u,e))})).update((function(t,e){var n,a,s,l,c,h;e=r.getItemGraphicEl(e);o.hasValue(t)?(n=zR(o,t),n=DR(o,t,n,u),a=GR(o,n),e&&a!==e.__pictorialShapeStr&&(i.remove(e),o.setItemGraphicEl(t,null),e=null),e?(a=e,s=u,c=(l=n).animationModel,h=l.dataIndex,cs(a.__pictorialBundle,{x:l.bundlePosition[0],y:l.bundlePosition[1]},c,h),(l.symbolRepeat?jR:RR)(a,s,l,!0),NR(a,l,!0),ER(a,s,l,!0)):e=FR(o,u,n,!0),o.setItemGraphicEl(t,e),e.__pictorialSymbolMeta=n,i.add(e),UR(e,u,n)):i.remove(e)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&HR(r,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=o,this.group},kR.prototype.remove=function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl((function(e){HR(i,oa(e).dataIndex,t,e)})):n.removeAll()},kR.type="pictorialBar";var ZR,qR=kR;function KR(){var t=null!==ZR&&ZR.apply(this,arguments)||this;return t.type=KR.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}a(KR,ZR=Vg),KR.prototype.getInitialData=function(t){return t.stack=null,ZR.prototype.getInitialData.apply(this,arguments)},KR.type="series.pictorialBar",KR.dependencies=["grid"],KR.defaultOption=Ks(Vg.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}});var QR,$R=KR;function JR(){var t=null!==QR&&QR.apply(this,arguments)||this;return t.type=JR.type,t._layers=[],t}a(JR,QR=Uf),JR.prototype.render=function(t,e,n){var i=t.getData(),o=this,r=this.group,a=t.getLayerSeries(),s=i.getLayout("layoutInfo"),u=s.rect;s=s.boundaryGap;function c(t){return t.name}r.x=0,r.y=u.y+s[0];u=new Nx(this._layersSeries||[],a,c,c);var h=[];function p(e,n,s){var l=o._layers;if("remove"===e)r.remove(l[n]);else{for(var u,c=[],p=[],d=a[n].indices,f=0;f<d.length;f++){var g=i.getItemLayout(d[f]),y=g.x,m=g.y0;g=g.y;c.push(y,m),p.push(y,m+g),u=i.getItemVisual(d[f],"style")}var v,x,_,b,w,S=i.getItemLayout(d[0]),M=t.getModel("label").get("margin"),I=t.getModel("emphasis");e=("add"===e?(x=h[n]=new Gn,v=new K_({shape:{points:c,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),x.add(v),r.add(x),t.isAnimationEnabled()&&v.setClipPath((e=v.getBoundingRect(),_=t,b=function(){v.removeClipPath()},hs(w=new Br({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}}),{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},_,b),w))):(x=l[s],v=x.childAt(0),r.add(x),h[n]=x,cs(v,{shape:{points:c,stackedOnPoints:p}},t),ys(v)),_s(v,bs(t),{labelDataIndex:d[f-1],defaultText:i.getName(d[f-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),v.setTextConfig({position:null,local:!0}),v.getTextContent());e&&(e.x=S.x-M,e.y=S.y0+S.y/2),v.useStyle(u),i.setItemGraphicEl(n,v),ns(v,t),$a(v,I.get("focus"),I.get("blurScope"),I.get("disabled"))}}u.add(Object(l.c)(p,this,"add")).update(Object(l.c)(p,this,"update")).remove(Object(l.c)(p,this,"remove")).execute(),this._layersSeries=a,this._layers=h},JR.type="themeRiver";var tN,eN=JR;function nN(){var t=null!==tN&&tN.apply(this,arguments)||this;return t.type=nN.type,t}a(nN,tN=mp),nN.prototype.init=function(t){tN.prototype.init.apply(this,arguments),this.legendVisualProvider=new Aw(l.c(this.getData,this),l.c(this.getRawData,this))},nN.prototype.fixData=function(t){for(var e=t.length,n={},i=zi(t,(function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]})),o=[],r=(i.buckets.each((function(t,e){o.push({name:e,dataList:t})})),o.length),a=0;a<r;++a){for(var s=o[a].name,l=0;l<o[a].dataList.length;++l){var u=o[a].dataList[l][0]+"";n[u]=a}for(u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,t[e]=[u,0,s],e++)}return t},nN.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",ji).models[0].get("type"),i=(t=l.n(t.data,(function(t){return void 0!==t[2]})),this.fixData(t||[])),o=[],r=this.nameMap=l.f(),a=0,s=0;s<i.length;++s)o.push(i[s][2]),r.get(i[s][2])||(r.set(i[s][2],a),a++);return t=c_(i,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Fx(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,n=new u_(t,this),n.initData(i),n},nN.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),n=[],i=0;i<e;++i)n[i]=i;var o=t.mapDimension("single"),r=zi(n,(function(e){return t.get("name",e)})),a=[];return r.buckets.each((function(e,n){e.sort((function(e,n){return t.get(o,e)-t.get(o,n)})),a.push({name:n,indices:e})})),a},nN.prototype.getAxisTooltipData=function(t,e,n){l.t(t)||(t=t?[t]:[]);for(var i,o=this.getData(),r=this.getLayerSeries(),a=[],s=r.length,u=0;u<s;++u){for(var c=Number.MAX_VALUE,h=-1,p=r[u].indices.length,d=0;d<p;++d){var f=o.get(t[0],r[u].indices[d]),g=Math.abs(f-e);g<=c&&(i=f,c=g,h=r[u].indices[d])}a.push(h)}return{dataIndices:a,nestestValue:i}},nN.prototype.formatTooltip=function(t,e,n){var i=this.getData();return Uh("nameValue",{name:i.getName(t),value:i.get(i.mapDimension("value"),t)})},nN.type="series.themeRiver",nN.dependencies=["singleAxis"],nN.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}};var iN,oN=nN;function rN(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),n=t.coordinateSystem,i={},o=n.getRect(),r=(i.rect=o,t.get("boundaryGap"));n=n.getAxis();i.boundaryGap=r,"horizontal"===n.orient?(r[0]=Qn(r[0],o.height),r[1]=Qn(r[1],o.height),aN(e,t,o.height-r[0]-r[1])):(r[0]=Qn(r[0],o.width),r[1]=Qn(r[1],o.width),aN(e,t,o.width-r[0]-r[1])),e.setLayout("layoutInfo",i)}))}function aN(t,e,n){if(t.count())for(var i,o=e.coordinateSystem,r=e.getLayerSeries(),a=t.mapDimension("single"),s=t.mapDimension("value"),u=l.H(r,(function(e){return l.H(e.indices,(function(e){var n=o.dataToPoint(t.get(a,e));return n[1]=t.get(s,e),n}))})),c=(e=function(t){for(var e=t.length,n=t[0].length,i=[],o=[],r=0,a=0;a<n;++a){for(var s=0,l=0;l<e;++l)s+=t[l][a][1];r<s&&(r=s),i.push(s)}for(var u=0;u<n;++u)o[u]=(r-i[u])/2;for(var c=r=0;c<n;++c){var h=i[c]+o[c];r<h&&(r=h)}return{y0:o,max:r}}(u),e.y0),h=n/e.max,p=r.length,d=r[0].indices.length,f=0;f<d;++f){i=c[f]*h,t.setItemLayout(r[0].indices[f],{layerIndex:0,x:u[0][f][0],y0:i,y:u[0][f][1]*h});for(var g=1;g<p;++g)i+=u[g-1][f][1]*h,t.setItemLayout(r[g].indices[f],{layerIndex:g,x:u[g][f][0],y0:i,y:u[g][f][1]*h})}}function sN(t,e,n,i){var o=iN.call(this)||this,r=(o.z2=2,o.textConfig={inside:!0},oa(o).seriesIndex=e.seriesIndex,new ia({z2:4,silent:t.getModel().get(["label","silent"])}));return o.setTextContent(r),o.updateData(!0,t,e,n,i),o}a(sN,iN=fd),sN.prototype.updateData=function(t,e,n,i,o){(this.node=e).piece=this,n=n||this._seriesModel,i=i||this._ecModel;var r=this,a=(oa(r).dataIndex=e.dataIndex,e.getModel()),s=a.getModel("emphasis"),u=e.getLayout(),c=l.m({},u),h=(c.label=null,e.getVisual("style")),p=(h.lineJoin="bevel",e.getVisual("decal"));p&&(h.decal=by(p,o)),p=xw(a.getModel("itemStyle"),c,!0),l.m(c,p),l.k(pa,(function(t){var e=r.ensureState(t);t=a.getModel([t,"itemStyle"]),e.style=t.getItemStyle(),t=xw(t,c);t&&(e.shape=t)})),t?(r.setShape(c),r.shape.r=u.r0,cs(r,{shape:{r:u.r}},n,e.dataIndex)):(cs(r,{shape:c},n),ys(r)),r.useStyle(h),this._updateLabel(n),o=a.getShallow("cursor"),o&&r.attr("cursor",o),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel,p=s.get("focus");$a(this,"ancestor"===p?e.getAncestorsIndices():"descendant"===p?e.getDescendantIndices():p,s.get("blurScope"),s.get("disabled"))},sN.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),r=o.endAngle-o.startAngle,a=(o.startAngle+o.endAngle)/2,s=Math.cos(a),u=Math.sin(a),c=this,h=c.getTextContent(),p=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI;r=i.get("show")&&!(null!=d&&Math.abs(r)<d);function f(t,e){return t=t.get(e),null==t?i.get(e):t}h.ignore=!r,l.k(da,(function(i){var r,d="normal"===i?n.getModel("label"):n.getModel([i,"label"]),g="normal"===i,y=g?h:h.ensureState(i),m=t.getFormattedLabel(p,i);g&&(m=m||e.node.name),y.style=ws(d,{},null,"normal"!==i,!0),m&&(y.style.text=m),m=d.get("show"),null==m||g||(y.ignore=!m),m=f(d,"position"),g=g?c:c.states[i],i=g.style.fill,g.textConfig={outsideFill:"inherit"===d.get("color")?i:null,inside:"outside"!==m},g=f(d,"distance")||0,i=f(d,"align"),"outside"===m?(r=o.r+g,i=a>Math.PI/2?"right":"left"):i&&"center"!==i?"left"===i?(r=o.r0+g,a>Math.PI/2&&(i="right")):"right"===i&&(r=o.r-g,a>Math.PI/2&&(i="left")):(r=(o.r+o.r0)/2,i="center"),y.style.align=i,y.style.verticalAlign=f(d,"verticalAlign")||"middle",y.x=r*s+o.cx,y.y=r*u+o.cy,m=f(d,"rotate"),g=0;"radial"===m?(g=-a)<-Math.PI/2&&(g+=Math.PI):"tangential"===m?(g=Math.PI/2-a)>Math.PI/2?g-=Math.PI:g<-Math.PI/2&&(g+=Math.PI):l.z(m)&&(g=m*Math.PI/180),y.rotation=g})),h.dirtyStyle()};var lN,uN=sN,cN="sunburstRootToNode",hN="sunburstHighlight",pN="sunburstUnhighlight";function dN(t){t.registerAction({type:cN,update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,n){var i,o=MC(t,[cN],e);o&&((i=e.getViewRoot())&&(t.direction=OC(i,o.node)?"rollUp":"drillDown"),e.resetViewRoot(o.node))}))})),t.registerAction({type:hN,update:"none"},(function(t,e,n){t=Object(l.m)({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e){e=MC(t,[hN],e),e&&(t.dataIndex=e.node.dataIndex)})),n.dispatchAction(Object(l.m)(t,{type:"highlight"}))})),t.registerAction({type:pN,update:"updateView"},(function(t,e,n){t=Object(l.m)({},t),n.dispatchAction(Object(l.m)(t,{type:"downplay"}))}))}function fN(){var t=null!==lN&&lN.apply(this,arguments)||this;return t.type=fN.type,t}a(fN,lN=Uf),fN.prototype.render=function(t,e,n,i){var o,r,a,s=this,u=(this.seriesModel=t,this.api=n,this.ecModel=e,t.getData()),c=u.tree.root,h=t.getViewRoot(),p=this.group,d=t.get("renderLabelForZeroData"),f=[],g=(h.eachNode((function(t){f.push(t)})),this._oldChildren||[]);function y(t){return t.getId()}function m(i,a){if(i=null==i?null:o[i],a=null==a?null:r[a],(i=d||!i||i.getValue()?i:null)!==c&&a!==c)if(a&&a.piece){if(i)return a.piece.updateData(!1,i,t,e,n),void u.setItemGraphicEl(i.dataIndex,a.piece);var s=a;s&&s.piece&&(p.remove(s.piece),s.piece=null)}else i&&(a=new uN(i,t,e,n),p.add(a),u.setItemGraphicEl(i.dataIndex,a))}r=g,0===(o=f).length&&0===r.length||new Nx(r,o,y,y).add(m).update(m).remove(l.h(m,null)).execute(),g=c,0<(a=h).depth?(s.virtualPiece?s.virtualPiece.updateData(!1,g,t,e,n):(s.virtualPiece=new uN(g,t,e,n),p.add(s.virtualPiece)),a.piece.off("click"),s.virtualPiece.on("click",(function(t){s._rootToNode(a.parentNode)}))):s.virtualPiece&&(p.remove(s.virtualPiece),s.virtualPiece=null),this._initEvents(),this._oldChildren=f},fN.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1;t.seriesModel.getViewRoot().eachNode((function(i){var o;!n&&i.piece&&i.piece===e.target&&("rootToNode"===(o=i.getModel().get("nodeClick"))?t._rootToNode(i):"link"===o&&(i=(o=i.getModel()).get("link"))&&Gl(i,o.get("target",!0)||"_blank"),n=!0)}))}))},fN.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:cN,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},fN.prototype.containPoint=function(t,e){var n;e=e.getData().getItemLayout(0);if(e)return n=t[0]-e.cx,t=t[1]-e.cy,(n=Math.sqrt(n*n+t*t))<=e.r&&n>=e.r0},fN.type="sunburst";var gN,yN=fN;function mN(){var t=null!==gN&&gN.apply(this,arguments)||this;return t.type=mN.type,t.ignoreStyleOnData=!0,t}a(mN,gN=mp),mN.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data},i=(function t(e){var n=0;l.k(e.children,(function(e){t(e),e=e.value,l.t(e)&&(e=e[0]),n+=e}));var i=e.value;l.t(i)&&(i=i[0]),null!=i&&!isNaN(i)||(i=n),i<0&&(i=0),l.t(e.value)?e.value[0]=i:e.value=i}(n),this._levelModels=l.H(t.levels||[],(function(t){return new Xs(t,this,e)}),this)),o=SC.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){return e=o.getNodeByDataIndex(e),e=i[e.depth],e&&(t.parentModel=e),t}))}));return o.data},mN.prototype.optionUpdated=function(){this.resetViewRoot()},mN.prototype.getDataParams=function(t){var e=gN.prototype.getDataParams.apply(this,arguments);t=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=TC(t,this),e},mN.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},mN.prototype.getViewRoot=function(){return this._viewRoot},mN.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},mN.prototype.enableAriaDecal=function(){NC(this)},mN.type="series.sunburst",mN.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"};var vN=mN,xN=Math.PI/180;function _N(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),i=t.get("radius"),o=(l.t(i)||(i=[0,i]),l.t(e)||(e=[e,e]),n.getWidth()),r=n.getHeight(),a=Math.min(o,r),s=Qn(e[0],o),u=Qn(e[1],r),c=Qn(i[0],a/2),h=(o=Qn(i[1],a/2),e=-t.get("startAngle")*xN,t.get("minAngle")*xN),p=t.getData().tree.root,d=(r=t.getViewRoot(),r.depth),f=(i=t.get("sort"),null!=i&&function t(e,n){var i=e.children||[];e.children=bN(i,n),i.length&&l.k(e.children,(function(e){t(e,n)}))}(r,i),0),g=(l.k(r.children,(function(t){isNaN(t.getValue())||f++})),r.getValue()),y=Math.PI/(g||f)*2,m=0<r.depth,v=(i=r.height-(m?-1:1),(o-c)/(i||1)),x=t.get("clockwise"),_=t.get("stillShowZeroSum"),b=x?1:-1,w=function(e,n){var i,o,r,f,S,M,I,O;if(e)return i=n,e!==p&&(o=e.getValue(),i=n+b*(o=(o=0===g&&_?y:o*y)<h?h:o),f=e.depth-d-(m?-1:1),r=c+v*f,f=c+v*(1+f),(I=t.getLevelModel(e))&&(S=I.get("r0",!0),M=I.get("r",!0),null!=(I=I.get("radius",!0))&&(S=I[0],M=I[1]),null!=S&&(r=Qn(S,a/2)),null!=M&&(f=Qn(M,a/2))),e.setLayout({angle:o,startAngle:n,endAngle:i,clockwise:x,cx:s,cy:u,r0:r,r:f})),e.children&&e.children.length&&(O=0,l.k(e.children,(function(t){O+=w(t,n+O)}))),i-n};m&&(o=2*Math.PI,p.setLayout({angle:o,startAngle:e,endAngle:e+o,clockwise:x,cx:s,cy:u,r0:c,r:c+v})),w(r,e)}))}function bN(t,e){var n,i;return l.w(e)?((n=l.H(t,(function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}}))).sort((function(t,n){return e(t.params,n.params)})),l.H(n,(function(e){return t[e.index]}))):(i="asc"===e,t.sort((function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0==n?(t.dataIndex-e.dataIndex)*(i?-1:1):n})))}function wN(t){var e={};t.eachSeriesByType("sunburst",(function(t){var n=t.getData(),i=n.tree;i.eachNode((function(o){var r=o.getModel().getModel("itemStyle").getItemStyle();r.fill||(r.fill=function(t,n,i){for(var o=t;o&&1<o.depth;)o=o.parentNode;return n=n.getColorFromPalette(o.name||o.dataIndex+"",e),1<t.depth&&Object(l.C)(n)?Object(te.c)(n,(t.depth-1)/(i-1)*.5):n}(o,t,i.root.height)),o=n.ensureUniqueItemVisual(o.dataIndex,"style");Object(l.m)(o,r)}))}))}var SN,MN={color:"fill",borderColor:"stroke"},IN={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ON=ki();function TN(){var t=null!==SN&&SN.apply(this,arguments)||this;return t.type=TN.type,t}a(TN,SN=mp),TN.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},TN.prototype.getInitialData=function(t,e){return v_(null,this)},TN.prototype.getDataParams=function(t,e,n){return t=SN.prototype.getDataParams.call(this,t,e),n&&(t.info=ON(n).info),t},TN.type="series.custom",TN.dependencies=["grid","polar","geo","singleAxis","calendar"],TN.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1};var CN=TN;function AN(t,e){return e=e||[0,0],l.H(["x","y"],(function(n,i){n=this.getAxis(n);var o=e[i];i=t[i]/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(o-i)-n.dataToCoord(o+i))}),this)}function kN(t,e){return e=e||[0,0],l.H([0,1],(function(n){var i=e[n],o=t[n]/2,r=[],a=[];return r[n]=i-o,a[n]=i+o,r[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(r)[n]-this.dataToPoint(a)[n])}),this)}function DN(t,e){var n=this.getAxis();e=e instanceof Array?e[0]:e,t=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(e-t)-n.dataToCoord(e+t))}function LN(t,e){return e=e||[0,0],l.H(["Radius","Angle"],(function(n,i){var o=this["get"+n+"Axis"](),r=e[i];i=t[i]/2,o="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(r-i)-o.dataToCoord(r+i));return"Angle"===n?o*Math.PI/180:o}),this)}function PN(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||Object(l.q)(t,"text")))}function jN(t,e,n){var i,o,r,a=t;return"text"===e?i=a:(i={},Object(l.q)(a,"text")&&(i.text=a.text),Object(l.q)(a,"rich")&&(i.rich=a.rich),Object(l.q)(a,"textFill")&&(i.fill=a.textFill),Object(l.q)(a,"textStroke")&&(i.stroke=a.textStroke),Object(l.q)(a,"fontFamily")&&(i.fontFamily=a.fontFamily),Object(l.q)(a,"fontSize")&&(i.fontSize=a.fontSize),Object(l.q)(a,"fontStyle")&&(i.fontStyle=a.fontStyle),Object(l.q)(a,"fontWeight")&&(i.fontWeight=a.fontWeight),o={type:"text",style:i,silent:!0},r={},e=Object(l.q)(a,"textPosition"),n?r.position=e?a.textPosition:"inside":e&&(r.position=a.textPosition),Object(l.q)(a,"textPosition")&&(r.position=a.textPosition),Object(l.q)(a,"textOffset")&&(r.offset=a.textOffset),Object(l.q)(a,"textRotation")&&(r.rotation=a.textRotation),Object(l.q)(a,"textDistance")&&(r.distance=a.textDistance)),RN(i,t),Object(l.k)(i.rich,(function(t){RN(t,t)})),{textConfig:r,textContent:o}}function RN(t,e){e&&(e.font=e.textFont||e.font,Object(l.q)(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Object(l.q)(e,"textAlign")&&(t.align=e.textAlign),Object(l.q)(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Object(l.q)(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Object(l.q)(e,"textWidth")&&(t.width=e.textWidth),Object(l.q)(e,"textHeight")&&(t.height=e.textHeight),Object(l.q)(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Object(l.q)(e,"textPadding")&&(t.padding=e.textPadding),Object(l.q)(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Object(l.q)(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Object(l.q)(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Object(l.q)(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Object(l.q)(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Object(l.q)(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Object(l.q)(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function NN(t,e,n){var i=t,o=(i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance),0<=i.textPosition.indexOf("inside")),r=t.fill||"#000",a=(EN(i,e),null==i.textFill);return o?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),i.textStroke||(i.textStroke=r),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,Object(l.k)(e.rich,(function(t){EN(t,t)})),i}function EN(t,e){e&&(Object(l.q)(e,"fill")&&(t.textFill=e.fill),Object(l.q)(e,"stroke")&&(t.textStroke=e.fill),Object(l.q)(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Object(l.q)(e,"font")&&(t.font=e.font),Object(l.q)(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Object(l.q)(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Object(l.q)(e,"fontSize")&&(t.fontSize=e.fontSize),Object(l.q)(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Object(l.q)(e,"align")&&(t.textAlign=e.align),Object(l.q)(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Object(l.q)(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Object(l.q)(e,"width")&&(t.textWidth=e.width),Object(l.q)(e,"height")&&(t.textHeight=e.height),Object(l.q)(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Object(l.q)(e,"padding")&&(t.textPadding=e.padding),Object(l.q)(e,"borderColor")&&(t.textBorderColor=e.borderColor),Object(l.q)(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Object(l.q)(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Object(l.q)(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Object(l.q)(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Object(l.q)(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Object(l.q)(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Object(l.q)(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Object(l.q)(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Object(l.q)(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Object(l.q)(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var zN={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},BN=Object(l.F)(zN),VN=(Object(l.N)(rn,(function(t,e){return t[e]=1,t}),{}),rn.join(", "),["","style","shape","extra"]),FN=ki();function HN(t,e,n,i,o){var r=t+"Animation";i=ls(t,i,o)||{},o=FN(e).userDuring;return 0<i.duration&&(i.during=o?Object(l.c)(qN,{el:e,userDuring:o}):null,i.setToFinal=!0,i.scope=t),Object(l.m)(i,n[r]),i}function GN(t,e,n,i){for(var o,r=(i=i||{}).dataIndex,a=i.isInit,s=(i=i.clearStyle,n.isAnimationEnabled()),u=FN(t),c=e.style,h=(u=(u.userDuring=e.during,{}),{}),p=e,d=h,f=0;f<BN.length;f++){var g=BN[f],y=zN[g];g=p[g];g&&(d[y[0]]=g[0],d[y[1]]=g[1])}for(f=0;f<rn.length;f++){var m=rn[f];null!=p[m]&&(d[m]=p[m])}if(QN("shape",e,h),QN("extra",e,h),!a&&s){for(var v=t,x=e,_=u,b=UN(x=e.transition)?rn:vi(x||[]),w=0;w<b.length;w++){var S,M=b[w];"style"!==M&&"shape"!==M&&"extra"!==M&&(S=v[M],_[M]=S)}KN("shape",t,e,u),KN("extra",t,e,u);x=t;var I=e,O=c,T=u;if(O){var C,A=x.style;if(A){var k=O.transition;I=I.transition;if(k&&!UN(k)){var D=vi(k);C=C||(T.style={});for(var L=0;L<D.length;L++){var P=D[L],j=A[P];C[P]=j}}else if(x.getAnimationStyleProps&&(UN(I)||UN(k)||0<=Object(l.r)(I,"style"))){k=x.getAnimationStyleProps();var R=k?k.style:null;if(R){C=C||(T.style={});var N=Object(l.F)(O);for(L=0;L<N.length;L++)P=N[L],R[P]&&(j=A[P],C[P]=j)}}}}}h.style=c;var E=t;I=h,x=i,k=I.style;if(!E.isGroup&&k){if(x){E.useStyle({});for(var z=E.animators,B=0;B<z.length;B++){var V=z[B];"style"===V.targetName&&V.changeTarget(E.style)}}E.setStyle(k)}I&&(I.style=null,I&&E.attr(I),I.style=k),T=t,O=e,Object(l.q)(O,"silent")&&(T.silent=O.silent),Object(l.q)(O,"ignore")&&(T.ignore=O.ignore),T instanceof So&&Object(l.q)(O,"invisible")&&(T.invisible=O.invisible),T instanceof br&&Object(l.q)(O,"autoBatch")&&(T.autoBatch=O.autoBatch),s&&(a?(o={},Object(l.k)(VN,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(o[t]=o[t]||{}),Object(l.m)(t?o[t]:o,n.enterFrom))})),0<(h=HN("enter",t,e,n,r)).duration&&t.animateFrom(o,h)):(i=t,s=e,a=r||0,h=n,(r=u)&&0<(s=HN("update",i,s,h,a)).duration&&i.animateFrom(r,s))),WN(t,e),c?t.dirty():t.markRedraw()}function WN(t,e){for(var n=FN(t).leaveToProps,i=0;i<VN.length;i++){var o=VN[i],r=o?e[o]:e;r&&r.leaveTo&&(n=n||(FN(t).leaveToProps={}),o&&(n[o]=n[o]||{}),Object(l.m)(o?n[o]:n,r.leaveTo))}}function YN(t,e,n,i){var o,r;t&&(o=t.parent,(r=FN(t).leaveToProps)?((e=HN("update",t,e,n,0)).done=function(){o.remove(t),i&&i()},t.animateTo(r,e)):(o.remove(t),i&&i()))}function UN(t){return"all"===t}var XN={},ZN={setTransform:function(t,e){return XN.el[t]=e,this},getTransform:function(t){return XN.el[t]},setShape:function(t,e){var n=XN.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=XN.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=XN.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=XN.el.style;if(e)return e[t]},setExtra:function(t,e){return(XN.el.extra||(XN.el.extra={}))[t]=e,this},getExtra:function(t){var e=XN.el.extra;if(e)return e[t]}};function qN(){var t,e=this.el;e&&(FN(e).userDuring!==(t=this.userDuring)?this.el=this.userDuring=null:(XN.el=e,t(ZN)))}function KN(t,e,n,i){var o=n[t];if(o){var r,a,s=e[t];if(s)if(e=n.transition,n=o.transition,n)if(p=p||(i[t]={}),UN(n))Object(l.m)(p,s);else for(var u=vi(n),c=0;c<u.length;c++){var h=s[f=u[c]];p[f]=h}else if(UN(e)||0<=Object(l.r)(e,t)){var p=p||(i[t]={}),d=Object(l.F)(s);for(c=0;c<d.length;c++){var f;h=s[f=d[c]];r=o[f],a=h,(Object(l.u)(r)?r!==a:null!=r&&isFinite(r))&&(p[f]=h)}}}}function QN(t,e,n){var i=e[t];if(i)for(var o=n[t]={},r=Object(l.F)(i),a=0;a<r.length;a++){var s=r[a];o[s]=se(i[s])}}var $N=ki(),JN=["percent","easing","shape","style","extra"];function tE(t){t.stopAnimation("keyframe"),t.attr($N(t))}function eE(t,e,n){var i,o,r,a;n.isAnimationEnabled()&&e&&(Object(l.t)(e)?Object(l.k)(e,(function(e){eE(t,e,n)})):(i=e.keyframes,r=e.duration,n&&null==r&&(o=ls("enter",n,0),r=o&&o.duration),i&&r&&(a=$N(t),Object(l.k)(VN,(function(n){var o;n&&!t[n]||(i.sort((function(t,e){return t.percent-e.percent})),Object(l.k)(i,(function(i){var s=t.animators,u=n?i[n]:i;if(u){var c=Object(l.F)(u);if((c=n?c:Object(l.n)(c,(function(t){return Object(l.r)(JN,t)<0}))).length){o||((o=t.animate(n,e.loop,!0)).scope="keyframe");for(var h=0;h<s.length;h++)s[h]!==o&&s[h].targetName===o.targetName&&s[h].stopTracks(c);n&&(a[n]=a[n]||{});var p=n?a[n]:a;Object(l.k)(c,(function(e){p[e]=((n?t[n]:t)||{})[e]})),o.whenWithKeys(r*i.percent,u,c,i.easing)}}})),o&&o.delay(e.delay||0).duration(r).start(e.easing))})))))}var nE,iE="emphasis",oE="normal",rE=(Ys="blur",cl="select",[oE,iE,Ys,cl]),aE={normal:["itemStyle"],emphasis:[iE,"itemStyle"],blur:[Ys,"itemStyle"],select:[cl,"itemStyle"]},sE={normal:["label"],emphasis:[iE,"label"],blur:[Ys,"label"],select:[cl,"label"]},lE=["x","y"],uE="e\0\0",cE={normal:{},emphasis:{},blur:{},select:{}},hE={cartesian2d:function(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:l.c(AN,t)}}},geo:function(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:l.c(kN,t)}}},singleAxis:function(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Object(l.c)(DN,t)}}},polar:function(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var o=e.dataToRadius(i[0]),r=(i=n.dataToAngle(i[1]),t.coordToPoint([o,i]));return r.push(o,i*Math.PI/180),r},size:l.c(LN,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function pE(t){return t instanceof br}function dE(t){return t instanceof So}function fE(){var t=null!==nE&&nE.apply(this,arguments)||this;return t.type=fE.type,t}a(fE,nE=Uf),fE.prototype.render=function(t,e,n,i){this._progressiveEls=null;var o=this._data,r=t.getData(),a=this.group,s=_E(t,r,e,n);o||a.removeAll(),r.diff(o).add((function(e){bE(n,null,e,s(e,i),t,a,r)})).remove((function(e){e=o.getItemGraphicEl(e),YN(e,ON(e).option,t)})).update((function(e,l){l=o.getItemGraphicEl(l),bE(n,l,e,s(e,i),t,a,r)})).execute(),e=t.get("clip",!0)?tb(t.coordinateSystem,!1,t):null;e?a.setClipPath(e):a.removeClipPath(),this._data=r},fE.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},fE.prototype.incrementalRender=function(t,e,n,i,o){var r=e.getData(),a=_E(e,r,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u<t.end;u++){var c=bE(null,null,u,a(u,o),e,this.group,r);c&&(c.traverse(l),s.push(c))}},fE.prototype.eachRendered=function(t){Ef(this._progressiveEls||this.group,t)},fE.prototype.filterForExposedEvent=function(t,e,n,i){var o=e.element;if(null==o||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},fE.type="custom";var gE=fE;function yE(t){var e=t.type;if("path"===e){var n=t.shape,i=null!=n.width&&null!=n.height?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,o=kE(n);i=mf(o,null,i,n.layout||"center");ON(i).customPathData=o}else if("image"===e)i=new Ar({}),ON(i).customImagePath=t.style.image;else if("text"===e)i=new ia({});else if("group"===e)i=new Gn;else{if("compoundPath"===e)throw new Error('"compoundPath" is not supported yet.');n=yf(e),n||Eu(""),i=new n}return ON(i).customGraphicType=e,i.name=t.name,i.z2EmphasisLift=1,i.z2SelectLift=1,i}function mE(t,e,n,i,o,r,a){tE(e);var s,u;o=o&&o.normal.cfg,o&&e.setTextConfig(o),i&&null==i.transition&&(i.transition=lE),o=i&&i.style;o&&(u=void("text"===e.type&&(u=o,Object(l.q)(u,"textFill")&&(u.fill=u.textFill),Object(l.q)(u,"textStroke")&&(u.stroke=u.textStroke))),s=pE(e)?o.decal:null,t&&s&&(s.dirty=!0,u=by(s,t)),o.__decalPattern=u),dE(e)&&o&&(u=o.__decalPattern)&&(o.decal=u),GN(e,i,r,{dataIndex:n,isInit:a,clearStyle:!0}),eE(e,i.keyframeAnimation,r)}function vE(t,e,n,i,o){var r;e=e.isGroup?null:e,o=o&&o[t].cfg;e&&(r=e.ensureState(t),!1===i?(t=e.getState(t))&&(t.style=null):r.style=i||null,o&&(r.textConfig=o),Na(e))}function xE(t,e,n){if(!t.isGroup){var i=t;t=n.currentZ,n=n.currentZLevel,t=(i.z=t,i.zlevel=n,e.z2);null!=t&&(i.z2=t||0);for(var o,r,a,s,l=0;l<rE.length;l++)o=i,r=e,a=rE[l],s=void 0,null!=(r=(r=(s=a===oE)?r:IE(r,a))?r.z2:null)&&((s?o:o.ensureState(a)).z2=r||0)}}function _E(t,e,n,i){for(var o,r,a,s,u=t.get("renderItem"),c=t.coordinateSystem,h={},p=(c&&(h=c.prepareCustoms?c.prepareCustoms(c):hE[c.type](c)),Object(l.i)({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:function(t,n){return null==n&&(n=a),e.getStore().get(e.getDimensionIndex(t||0),n)},style:function(n,i){null==i&&(i=a);var o=e.getItemVisual(i,"style"),r=o&&o.fill,s=(o=o&&o.opacity,b(i,oE).getItemStyle()),u=(o=(null!=r&&(s.fill=r),null!=o&&(s.opacity=o),{inheritColor:Object(l.C)(r)?r:"#000"}),r=w(i,oE),ws(r,null,o,!1,!0));u.text=r.getShallow("show")?Object(l.P)(t.getFormattedLabel(i,oE),w_(e,i)):null,i=Ss(r,o,!1);return M(n,s),s=NN(s,u,i),n&&S(s,n),s.legacy=!0,s},ordinalRawValue:function(t,n){null==n&&(n=a),t=t||0;var i=e.getDimensionInfo(t);return i?(t=e.get(i.name,n),n=i&&i.ordinalMeta,n?n.categories[t]:t):0<=(t=e.getDimensionIndex(t))?e.getStore().get(t,n):void 0},styleEmphasis:function(n,i){var o=b(i=null==i?a:i,iE).getItemStyle(),r=w(i,iE),s=ws(r,null,null,!0,!0);s.text=r.getShallow("show")?Object(l.Q)(t.getFormattedLabel(i,iE),t.getFormattedLabel(i,oE),w_(e,i)):null,i=Ss(r,null,!0);return M(n,o),o=NN(o,s,i),n&&S(o,n),o.legacy=!0,o},visual:function(t,n){var i;return null==n&&(n=a),Object(l.q)(MN,t)?(i=e.getItemVisual(n,"style"))?i[MN[t]]:null:Object(l.q)(IN,t)?e.getItemVisual(n,t):void 0},barLayout:function(t){var e;if("cartesian2d"===c.type)return e=c.getBaseAxis(),function(t){var e=[],n=t.axis;if("category"===n.type){for(var i=n.getBandWidth(),o=0;o<t.count;o++)e.push(Object(l.i)({bandWidth:i,axisKey:"axis0",stackId:xb+o},t));var r=Mb(e),a=[];for(o=0;o<t.count;o++){var s=r.axis0[xb+o];s.offsetCenter=s.offset+s.width/2,a.push(s)}return a}}(Object(l.i)({axis:e},t))},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(t){return Cs(t,n)}},h.api||{})),d={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:h.coordSys,dataInsideLength:e.count(),encode:(o=t.getData(),r={},Object(l.k)(o.dimensions,(function(t){var e,n=o.getDimensionInfo(t);n.isExtraCoord||(e=n.coordDim,(r[e]=r[e]||[])[n.coordDimIndex]=o.getDimensionIndex(t))})),r)},f={},g={},y={},m={},v=0;v<rE.length;v++){var x=rE[v];y[x]=t.getModel(aE[x]),m[x]=t.getModel(sE[x])}function _(t){return t===a?s=s||e.getItemModel(t):e.getItemModel(t)}function b(t,n){return e.hasItemOption?t===a?f[n]||(f[n]=_(t).getModel(aE[n])):_(t).getModel(aE[n]):y[n]}function w(t,n){return e.hasItemOption?t===a?g[n]||(g[n]=_(t).getModel(sE[n])):_(t).getModel(sE[n]):m[n]}return function(t,n){return a=t,s=null,f={},g={},u&&u(Object(l.i)({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},d),p)};function S(t,e){for(var n in e)Object(l.q)(e,n)&&(t[n]=e[n])}function M(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}}function bE(t,e,n,i,o,r,a){if(i)return(t=wE(t,e,n,i,o,r))&&a.setItemGraphicEl(n,t),t&&$a(t,i.focus,i.blurScope,i.emphasisDisabled),t;r.remove(e)}function wE(t,e,n,i,o,r){var a=-1,s=e,u=(e&&SE(e,i,o)&&(a=Object(l.r)(r.childrenRef(),e),e=null),!e),c=e,h=(s=(c?c.clearStates():(c=yE(i),s&&(e=s,(s=c).copyTransform(e),dE(s)&&dE(e)&&(s.setStyle(e.style),s.z=e.z,s.z2=e.z2,s.zlevel=e.zlevel,s.invisible=e.invisible,s.ignore=e.ignore,pE(s)&&pE(e)&&s.setShape(e.shape)))),!1===i.morph?c.disableMorphing=!0:c.disableMorphing&&(c.disableMorphing=!1),cE.normal.cfg=cE.normal.conOpt=cE.emphasis.cfg=cE.emphasis.conOpt=cE.blur.cfg=cE.blur.conOpt=cE.select.cfg=cE.select.conOpt=null,cE.isLegacy=!1,c),e=n,i),p=o,d=u,f=cE;if(!s.isGroup){ME(h,null,f),ME(h,iE,f);var g=f.normal.conOpt,y=(h=f.emphasis.conOpt,f.blur.conOpt),m=f.select.conOpt;if(null!=g||null!=h||null!=m||null!=y){var v=s.getTextContent();if(!1===g)v&&s.removeTextContent();else{g=f.normal.conOpt=g||{type:"text"},v?v.clearStates():(v=yE(g),s.setTextContent(v)),mE(null,v,e,g,null,p,d);h=g&&g.style;for(var x=0;x<rE.length;x++){var _,b=rE[x];b!==oE&&(_=f[b].conOpt,vE(b,v,0,OE(g,_,b),null))}h?v.dirty():v.markRedraw()}}}m=c,y=n,s=i,e=o,p=u,!1===(s=s.clipPath)?m&&m.getClipPath()&&m.removeClipPath():s&&((d=(d=m.getClipPath())&&SE(d,s,e)?null:d)||(d=yE(s),m.setClipPath(d)),mE(null,d,y,s,null,e,p)),mE(t,c,n,i,cE,o,u),Object(l.q)(i,"info")&&(ON(c).info=i.info);for(var w=0;w<rE.length;w++){var S,M=rE[w];M!==oE&&(S=OE(i,IE(i,M),M),vE(M,c,0,S,cE))}if(xE(c,i,o),"group"===i.type){var I=t,O=c,T=n,C=o,A=(h=i).children,k=A?A.length:0;h="byName"===(d=h.$mergeChildren)||h.diffChildrenByName,d=!1===d;if(k||h||d)if(h)h={api:I,oldChildren:O.children()||[],newChildren:A||[],dataIndex:T,seriesModel:C,group:O},new Nx(h.oldChildren,h.newChildren,TE,TE,h).add(CE).update(CE).remove(AE).execute();else{d&&O.removeAll();for(var D=0;D<k;D++)A[D]&&wE(I,O.childAt(D),T,A[D],C,O);for(var L=O.childCount()-1;D<=L;L--)YN(O.childAt(L),ON(O).option,C)}}return 0<=a?r.replaceAt(c,a):r.add(c),c}function SE(t,e,n){t=ON(t);var i=e.type,o=e.shape;e=e.style;return n.isUniversalTransitionEnabled()||null!=i&&i!==t.customGraphicType||"path"===i&&(n=o)&&(Object(l.q)(n,"pathData")||Object(l.q)(n,"d"))&&kE(o)!==t.customPathData||"image"===i&&Object(l.q)(e,"image")&&e.image!==t.customImagePath}function ME(t,e,n){var i=e?IE(t,e):t,o=e?OE(t,i,iE):t.style,r=t.type;i=i?i.textConfig:null,t=t.textContent,t=t?e?IE(t,e):t:null,o&&(n.isLegacy||PN(o,r,!!i,!!t))&&(n.isLegacy=!0,o=jN(o,r,!e),!i&&o.textConfig&&(i=o.textConfig),!t&&o.textContent&&(t=o.textContent)),e||!t||(r=t).type||(r.type="text"),o=e?n[e]:n.normal;o.cfg=i,o.conOpt=t}function IE(t,e){return e?t?t[e]:null:t}function OE(t,e,n){return e=e&&e.style,null==e&&n===iE&&t?t.styleEmphasis:e}function TE(t,e){return t=t&&t.name,null!=t?t:uE+e}function CE(t,e){var n=this.context;t=null!=t?n.newChildren[t]:null,e=null!=e?n.oldChildren[e]:null;wE(n.api,e,n.dataIndex,t,n.seriesModel,n.group)}function AE(t){var e=this.context;t=e.oldChildren[t];YN(t,ON(t).option,e.seriesModel)}function kE(t){return t&&(t.pathData||t.d)}var DE=ki(),LE=l.d,PE=l.c;function jE(){this._dragging=!1,this.animationThreshold=15}function RE(t,e,n,i){!function t(e,n){var i;return l.A(e)&&l.A(n)?(i=!0,l.k(n,(function(n,o){i=i&&t(e[o],n)})),!!i):e===n}(DE(n).lastProp,i)&&(DE(n).lastProp=i,e?cs(n,i,t):(n.stopAnimation(),n.attr(i)))}function NE(t,e){t[e.get(["label","show"])?"show":"hide"]()}function EE(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function zE(t,e,n){var i=e.get("z"),o=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=o&&(t.zlevel=o),t.silent=n)}))}jE.prototype.render=function(t,e,n,i){var o=e.get("value"),r=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==o||this._lastStatus!==r){this._lastValue=o,this._lastStatus=r;i=this._group;var a=this._handle;if(!r||"hide"===r)return i&&i.hide(),void(a&&a.hide());i&&i.show(),a&&a.show();r={},a=(this.makeElOption(r,o,t,e,n),r.graphicKey),a=(a!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=a,this._moveAnimation=this.determineAnimation(t,e));i?(a=l.h(RE,e,a),this.updatePointerEl(i,r,a),this.updateLabelEl(i,r,a,e)):(i=this._group=new Gn,this.createPointerEl(i,r,t,e),this.createLabelEl(i,r,t,e),n.getZr().add(i)),zE(i,e,!0),this._renderHandle(o)}},jE.prototype.remove=function(t){this.clear(t)},jE.prototype.dispose=function(t){this.clear(t)},jE.prototype.determineAnimation=function(t,e){var n,i=e.get("animation"),o=t.axis,r="category"===o.type;e=e.get("snap");return!(!e&&!r)&&("auto"===i||null==i?(n=this.animationThreshold,r&&o.getBandWidth()>n||!!e&&(r=HM(t).seriesDataCount,e=o.getExtent(),Math.abs(e[0]-e[1])/r>n)):!0===i)},jE.prototype.makeElOption=function(t,e,n,i,o){},jE.prototype.createPointerEl=function(t,e,n,o){var r=e.pointer;r&&(r=DE(t).pointerEl=new i[r.type](LE(e.pointer)),t.add(r))},jE.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=DE(t).labelEl=new ia(LE(e.label)),t.add(e),NE(e,i))},jE.prototype.updatePointerEl=function(t,e,n){t=DE(t).pointerEl,t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},jE.prototype.updateLabelEl=function(t,e,n,i){t=DE(t).labelEl,t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),NE(t,i))},jE.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),o=this._handle,r=n.getModel("handle"),a=n.get("status");if(!r.get("show")||!a||"hide"===a)return o&&i.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=Lf(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Z(t.event)},onmousedown:PE(this._onHandleDragMove,this,0,0),drift:PE(this._onHandleDragMove,this),ondragend:PE(this._onHandleDragEnd,this)}),i.add(o)),zE(o,n,!1),o.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),a=r.get("size"),l.t(a)||(a=[a,a]),o.scaleX=a[0]/2,o.scaleY=a[1]/2,Qf(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},jE.prototype._moveHandleToValue=function(t,e){RE(this._axisPointerModel,!e&&this._moveAnimation,this._handle,EE(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},jE.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(EE(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(EE(t)),DE(n).lastProp=null,this._doDispatchAxisPointer())},jE.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}]}))},jE.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},jE.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;t=t.getZr();var e=this._group,n=this._handle;t&&e&&(this._lastGraphicKey=null,e&&t.remove(e),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),$f(this,"_doDispatchAxisPointer")},jE.prototype.doClear=function(){},jE.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}};var BE;zs=jE;function VE(t){var e,n=t.get("type");t=t.getModel(n+"Style");return"line"===n?(e=t.getLineStyle()).fill=null:"shadow"===n&&((e=t.getAreaStyle()).stroke=null),e}function FE(t,e,n,i,o){var r=HE(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=(n=n.getModel("label"),jl(n.get("padding")||0)),s=n.getFont(),l=In(r,s),u=o.position,c=l.width+a[1]+a[3],h=(l=l.height+a[0]+a[2],o.align);"right"===h&&(u[0]-=c),"center"===h&&(u[0]-=c/2),h=o.verticalAlign,"bottom"===h&&(u[1]-=l),"middle"===h&&(u[1]-=l/2),o=u,h=c,c=l,i=(l=i).getWidth(),l=l.getHeight(),o[0]=Math.min(o[0]+h,i)-h,o[1]=Math.min(o[1]+c,l)-c,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0),i=n.get("backgroundColor");i&&"auto"!==i||(i=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:ws(n,{text:r,font:s,fill:n.getTextColor(),padding:a,backgroundColor:i}),z2:10}}function HE(t,e,n,i,o){t=e.scale.parse(t);var r,a=e.scale.getLabel({value:t},{precision:o.precision});o=o.formatter;return o&&(r={value:qS(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},l.k(i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex);t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&r.seriesData.push(e)})),l.C(o)?a=o.replace("{value}",a):l.w(o)&&(a=o(r))),a}function GE(t,e,n){var i=Ge();return Ze(i,i,n.rotation),Xe(i,i,n.position),Of([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function WE(t,e,n,i,o,r){var a=BM.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),FE(e,i,o,r,{position:GE(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function YE(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function UE(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function XE(t,e,n,i,o,r){return{cx:t,cy:e,r0:n,r:i,startAngle:o,endAngle:r,clockwise:!0}}function ZE(){return null!==BE&&BE.apply(this,arguments)||this}function qE(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}a(ZE,BE=zs),ZE.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=a.grid,l=i.get("type"),u=qE(s,a).getOtherAxis(a).getGlobalExtent(),c=a.toGlobalCoord(a.dataToCoord(e,!0));l&&"none"!==l&&(r=VE(i),(l=KE[l](a,c,u)).style=r,t.graphicKey=l.type,t.pointer=l),a=bM(s.model,n);WE(e,t,a,n,i,o)},ZE.prototype.getHandleTransform=function(t,e,n){var i=bM(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]),n=GE(e.axis,t,i);return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},ZE.prototype.updateHandleTransform=function(t,e,n,i){n=n.axis;var o=n.grid,r=n.getGlobalExtent(!0),a=(o=qE(o,n).getOtherAxis(n).getGlobalExtent(),n="x"===n.dim?0:1,[t.x,t.y]);a[n]+=e[n],a[n]=Math.min(r[1],a[n]),a[n]=Math.max(r[0],a[n]),e=(o[1]+o[0])/2,r=[e,e];return r[n]=a[n],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:r,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}};var KE={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:YE([e,n[0]],[e,n[1]],QE(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:UE([e-i/2,n[0]],[i,o],QE(t))}}};function QE(t){return"x"===t.dim?0:1}var $E,JE=ZE;function tz(){var t=null!==$E&&$E.apply(this,arguments)||this;return t.type=tz.type,t}a(tz,$E=uu),tz.type="axisPointer",tz.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 ez,nz=tz,iz=ki(),oz=l.k;function rz(t,e,n){var i,o,r;function a(t,e){o.on(t,(function(t){n=r;var n,i,a={dispatchAction:s,pendings:i={showTip:[],hideTip:[]}};function s(t){var e=i[t.type];e?e.push(t):(t.dispatchAction=s,n.dispatchAction(t))}oz(iz(o).records,(function(n){n&&e(n,t,a.dispatchAction)}));var l,u=a.pendings,c=r,h=u.showTip.length,p=u.hideTip.length;h?l=u.showTip[h-1]:p&&(l=u.hideTip[p-1]),l&&(l.dispatchAction=null,c.dispatchAction(l))}))}s.a.node||(i=e.getZr(),iz(i).records||(iz(i).records={}),r=e,iz(o=i).initialized||(iz(o).initialized=!0,a("click",l.h(sz,"click")),a("mousemove",l.h(sz,"mousemove")),a("globalout",az)),(iz(i).records[t]||(iz(i).records[t]={})).handler=n)}function az(t,e,n){t.handler("leave",null,n)}function sz(t,e,n,i){e.handler(t,n,i)}function lz(t,e){s.a.node||(e=e.getZr(),(iz(e).records||{})[t]&&(iz(e).records[t]=null))}function uz(){var t=null!==ez&&ez.apply(this,arguments)||this;return t.type=uz.type,t}a(uz,ez=xp),uz.prototype.render=function(t,e,n){e=e.getComponent("tooltip");var i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";rz("axisPointer",n,(function(t,e,n){"none"!==i&&("leave"===t||0<=i.indexOf(t))&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},uz.prototype.remove=function(t,e){lz("axisPointer",e)},uz.prototype.dispose=function(t,e){lz("axisPointer",e)},uz.type="axisPointer";var cz=uz;function hz(t,e){var n=[],i=t.seriesIndex;if(null==i||!(a=e.getSeriesByIndex(i)))return{point:[]};var o=a.getData();e=Ai(o,t);if(null==e||e<0||l.t(e))return{point:[]};i=o.getItemGraphicEl(e);var r,a,s=a.coordinateSystem;return a.getTooltipPosition?n=a.getTooltipPosition(e)||[]:s&&s.dataToPoint?n=t.isStacked?(a=s.getBaseAxis(),t=s.getOtherAxis(a).dim,a=a.dim,t="x"===t||"radius"===t?1:0,a=o.mapDimension(a),(r=[])[t]=o.get(a,e),r[1-t]=o.get(o.getCalculationInfo("stackResultDimension"),e),s.dataToPoint(r)||[]):s.dataToPoint(o.getValues(l.H(s.dimensions,(function(t){return o.mapDimension(t)})),e))||[]:i&&((a=i.getBoundingRect().clone()).applyTransform(i.transform),n=[a.x+a.width/2,a.y+a.height/2]),{point:n,el:i}}var pz,dz=ki();function fz(t,e,n){var i,o,r,a,s,u,c,h,p,d,f,g,y,m,v=t.currTrigger,x=[t.x,t.y],_=t,b=t.dispatchAction||Object(l.c)(n.dispatchAction,n),w=e.getComponent("axisPointer").coordSysAxesInfo;if(w)return xz(x)&&(x=hz({seriesIndex:_.seriesIndex,dataIndex:_.dataIndex},e).point),i=xz(x),o=_.axesInfo,r=w.axesInfo,a="leave"===v||xz(x),s={},u={},e={list:[],map:{}},c={showPointer:Object(l.h)(yz,u),showTooltip:Object(l.h)(mz,e)},Object(l.k)(w.coordSysMap,(function(t,e){var n=i||t.containPoint(x);Object(l.k)(w.coordSysAxesInfo[e],(function(t,e){var r=t.axis,l=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(o,t);a||!n||o&&!l||null!=(l=null!=(l=l&&l.value)||i?l:r.pointToData(x))&&gz(t,l,c,!1,s)}))})),h={},Object(l.k)(r,(function(t,e){var n=t.linkGroup;n&&!u[e]&&Object(l.k)(n.axesInfo,(function(e,i){i=u[i];e!==t&&i&&(i=i.value,n.mapper&&(i=t.axis.scale.parse(n.mapper(i,vz(e),vz(t)))),h[t.key]=i)}))})),Object(l.k)(h,(function(t,e){gz(r[e],t,c,!0,s)})),p=u,_=r,d=s.axesInfo=[],Object(l.k)(_,(function(t,e){var n=t.axisPointerModel.option;e=p[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&d.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})})),v=e,_=t,e=b,xz(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:_.tooltipOption,position:_.position,dataIndexInside:b.dataIndexInside,dataIndex:b.dataIndex,seriesIndex:b.seriesIndex,dataByCoordSys:v.list})),e=r,_=(t=n).getZr(),b="axisPointerLastHighlights",f=dz(_)[b]||{},g=dz(_)[b]={},Object(l.k)(e,(function(t,e){t=t.axisPointerModel.option,"show"===t.status&&Object(l.k)(t.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;g[e]=t}))})),y=[],m=[],Object(l.k)(f,(function(t,e){g[e]||m.push(t)})),Object(l.k)(g,(function(t,e){f[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 gz(t,e,n,i,o){var r,a,s,u,c,h,p,d,f,g,y=t.axis;!y.scale.isBlank()&&y.containData(e)&&(t.involveSeries?(r=e,s=(a=t).axis,u=s.dim,c=r,h=[],p=Number.MAX_VALUE,d=-1,Object(l.k)(a.seriesModels,(function(t,e){var n,i=t.getData().mapDimensionsAll(u);if(t.getAxisTooltipData){var o=t.getAxisTooltipData(i,r,s),a=o.dataIndices;o=o.nestestValue}else{if(!(a=t.getData().indicesOfNearest(i[0],r,"category"===s.type?.5:null)).length)return;o=t.getData().get(i[0],a[0])}null!=o&&isFinite(o)&&(i=r-o,(n=Math.abs(i))<=p&&((n<p||0<=i&&d<0)&&(p=n,d=i,c=o,h.length=0),Object(l.k)(a,(function(e){h.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))))})),g=(a={payloadBatch:h,snapToValue:c}).snapToValue,(f=a.payloadBatch)[0]&&null==o.seriesIndex&&Object(l.m)(o,f[0]),!i&&t.snap&&y.containData(g)&&null!=g&&(e=g),n.showPointer(t,e,f),n.showTooltip(t,a,g)):n.showPointer(t,e))}function yz(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function mz(t,e,n,i){n=n.payloadBatch;var o,r,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&n.length&&(o=WM(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:i,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:n.slice()}))}function vz(t){var e=t.axis.model,n={};t=n.axisDim=t.axis.dim;return n.axisIndex=n[t+"AxisIndex"]=e.componentIndex,n.axisName=n[t+"AxisName"]=e.name,n.axisId=n[t+"AxisId"]=e.id,n}function xz(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function _z(t){ZM.registerAxisPointerClass("CartesianAxisPointer",JE),t.registerComponentModel(nz),t.registerComponentView(cz),t.registerPreprocessor((function(t){var e;t&&(t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={}),(e=t.axisPointer.link)&&!Object(l.t)(e)&&(t.axisPointer.link=[e]))})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=VM(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},fz)}function bz(){return null!==pz&&pz.apply(this,arguments)||this}a(bz,pz=zs),bz.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=("angle"===a.dim&&(this.animationThreshold=Math.PI/18),a.polar),l=s.getOtherAxis(a).getExtent(),u=a.dataToCoord(e),c=i.get("type");c&&"none"!==c&&(r=VE(i),(c=Sz[c](a,s,u,l)).style=r,t.graphicKey=c.type,t.pointer=c),a=i.get(["label","margin"]);FE(t,n,i,o,function(t,e,n,i){var o,r,a,s=e.axis,l=(t=s.dataToCoord(t),a=(a=n.getAngleAxis().getExtent()[0])/180*Math.PI,n.getRadiusAxis().getExtent());return l="radius"===s.dim?(s=Ge(),Ze(s,s,a),Xe(s,s,[n.cx,n.cy]),o=Of([t,-i],s),s=e.getModel("axisLabel").get("rotate")||0,e=BM.innerTextLayout(a,s*Math.PI/180,-1),r=e.textAlign,e.textVerticalAlign):(a=l[1],o=n.coordToPoint([a+i,t]),s=n.cx,e=n.cy,r=Math.abs(o[0]-s)/a<.3?"center":o[0]>s?"left":"right",Math.abs(o[1]-e)/a<.3?"middle":o[1]>e?"top":"bottom"),{position:o,align:r,verticalAlign:l}}(e,n,s,a))};var wz,Sz={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:YE(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var o=Math.max(1,t.getBandWidth()),r=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:XE(e.cx,e.cy,i[0],i[1],(-n-o/2)*r,(o/2-n)*r)}:{type:"Sector",shape:XE(e.cx,e.cy,n-o/2,n+o/2,0,2*Math.PI)}}},Mz=bz;function Iz(){var t=null!==wz&&wz.apply(this,arguments)||this;return t.type=Iz.type,t}a(Iz,wz=uu),Iz.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},Iz.type="polar",Iz.dependencies=["radiusAxis","angleAxis"],Iz.defaultOption={z:0,center:["50%","50%"],radius:"80%"};var Oz,Tz=Iz;a(Cz,Oz=uu),Cz.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ji).models[0]},Cz.type="polarAxis",Qi=Cz;function Cz(){return null!==Oz&&Oz.apply(this,arguments)||this}l.K(Qi,Xw),a(Dz,Az=Qi),Dz.type="angleAxis";var Az,kz=Dz;function Dz(){var t=null!==Az&&Az.apply(this,arguments)||this;return t.type=Dz.type,t}a(jz,Lz=Qi),jz.type="radiusAxis";var Lz,Pz=jz;function jz(){var t=null!==Lz&&Lz.apply(this,arguments)||this;return t.type=jz.type,t}a(Nz,Rz=Ng),Nz.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]};var Rz;n=Nz;function Nz(t,e){return Rz.call(this,"radius",t,e)||this}n.prototype.dataToRadius=Ng.prototype.dataToCoord,n.prototype.radiusToData=Ng.prototype.coordToData;var Ez,zz=n,Bz=ki();a(Vz,Ez=Ng),Vz.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},Vz.prototype.calculateCategoryInterval=function(){var t=this.getLabelModel(),e=this.scale,n=e.getExtent();e=e.count();if(n[1]-n[0]<1)return 0;n=n[0];var i=this.dataToCoord(n+1)-this.dataToCoord(n),o=(i=Math.abs(i),n=In(null==n?"":n+"",t.getFont(),"center","top"),t=Math.max(n.height,7)/i,n=(isNaN(t)&&(t=1/0),Math.max(0,Math.floor(t))),i=Bz(this.model),t=i.lastAutoInterval,i.lastTickCount);return null!=t&&null!=o&&Math.abs(t-n)<=1&&Math.abs(o-e)<=1&&n<t?n=t:(i.lastTickCount=e,i.lastAutoInterval=n),n},Vs=Vz;function Vz(t,e){return Ez.call(this,"angle",t,e||[0,360])||this}Vs.prototype.dataToAngle=Ng.prototype.dataToCoord,Vs.prototype.angleToData=Ng.prototype.coordToData;var Fz=Vs,Hz=["radius","angle"];function Gz(t){this.dimensions=Hz,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new zz,this._angleAxis=new Fz,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}function Wz(t){var e=t.seriesModel;t=t.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}Gz.prototype.containPoint=function(t){return t=this.pointToCoord(t),this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},Gz.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},Gz.prototype.getAxis=function(t){return this["_"+t+"Axis"]},Gz.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},Gz.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},Gz.prototype.getAngleAxis=function(){return this._angleAxis},Gz.prototype.getRadiusAxis=function(){return this._radiusAxis},Gz.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},Gz.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},Gz.prototype.getTooltipAxes=function(t){return t=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis(),{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},Gz.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},Gz.prototype.pointToData=function(t,e){return t=this.pointToCoord(t),[this._radiusAxis.radiusToData(t[0],e),this._angleAxis.angleToData(t[1],e)]},Gz.prototype.pointToCoord=function(t){for(var e=t[0]-this.cx,n=(t=t[1]-this.cy,this.getAngleAxis()),i=n.getExtent(),o=Math.min(i[0],i[1]),r=Math.max(i[0],i[1]),a=(i=(n.inverse?o=r-360:r=o+360,Math.sqrt(e*e+t*t)),e/=i,t/=i,Math.atan2(-t,e)/Math.PI*180),s=a<o?1:-1;a<o||r<a;)a+=360*s;return[i,a]},Gz.prototype.coordToPoint=function(t){var e=t[0];t=t[1]/180*Math.PI;return[Math.cos(t)*e+this.cx,-Math.sin(t)*e+this.cy]},Gz.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice(),n=(e[0]>e[1]&&e.reverse(),t.getExtent()),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){t-=this.cx,e-=this.cy,t=t*t+e*e-1e-4,e=this.r;var n=this.r0;return t<=e*e&&n*n<=t}}},Gz.prototype.convertToPixel=function(t,e,n){return Wz(e)===this?this.dataToPoint(n):null},Gz.prototype.convertFromPixel=function(t,e,n){return Wz(e)===this?this.pointToData(n):null};var Yz=Gz;function Uz(t,e){var n,i=this,o=i.getAngleAxis(),r=i.getRadiusAxis();o.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){var e;t.coordinateSystem===i&&(e=t.getData(),l.k(JS(e,"radius"),(function(t){r.scale.unionExtentFromData(e,t)})),l.k(JS(e,"angle"),(function(t){o.scale.unionExtentFromData(e,t)})))})),US(o.scale,o.model),US(r.scale,r.model),"category"!==o.type||o.onBand||(t=o.getExtent(),n=360/o.scale.count(),o.inverse?t[1]+=n:t[1]-=n,o.setExtent(t[0],t[1]))}function Xz(t,e){var n;t.type=e.get("type"),t.scale=XS(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType&&(t.inverse=t.inverse!==e.get("clockwise"),n=e.get("startAngle"),t.setExtent(n,n+(t.inverse?-360:360))),(e.axis=t).model=e}var Zz,qz={dimensions:Hz,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){i=new Yz(i+"");var o,r=(i.update=Uz,i.getRadiusAxis()),a=i.getAngleAxis(),s=t.findAxisModel("radiusAxis"),u=t.findAxisModel("angleAxis");Xz(r,s),Xz(a,u),r=i,s=e,u=(a=t).get("center"),o=s.getWidth(),s=s.getHeight(),r.cx=Qn(u[0],o),r.cy=Qn(u[1],s),u=r.getRadiusAxis(),r=Math.min(o,s)/2,null==(o=a.get("radius"))?o=[0,"100%"]:l.t(o)||(o=[0,o]),s=[Qn(o[0],r),Qn(o[1],r)],u.inverse?u.setExtent(s[1],s[0]):u.setExtent(s[0],s[1]),n.push(i),(t.coordinateSystem=i).model=t})),t.eachSeries((function(t){var e;"polar"===t.get("coordinateSystem")&&(e=t.getReferringComponents("polar",ji).models[0],t.coordinateSystem=e.coordinateSystem)})),n}},Kz=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Qz(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]);t=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:t[0],y2:t[1]}}function $z(t){return t.getRadiusAxis().inverse?0:1}function Jz(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}function tB(){var t=null!==Zz&&Zz.apply(this,arguments)||this;return t.type=tB.type,t.axisPointerClass="PolarAxisPointer",t}a(tB,Zz=ZM),tB.prototype.render=function(t,e){var n,i,o,r,a,s;this.group.removeAll(),t.get("show")&&(n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),r=n.getTicksCoords(),a=n.getMinorTicksCoords(),Jz(s=l.H(n.getViewLabels(),(function(t){t=l.d(t);var e=n.scale;e="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(e),t}))),Jz(r),l.k(Kz,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||nB[e](this.group,t,i,r,a,o,s)}),this))},tB.type="angleAxis";var eB,nB={axisLine:function(t,e,n,i,o,r){e=e.getModel(["axisLine","lineStyle"]);var a=$z(n),s=a?0:1;n=0===r[s]?new Xp({shape:{cx:n.cx,cy:n.cy,r:r[a]},style:e.getLineStyle(),z2:1,silent:!0}):new md({shape:{cx:n.cx,cy:n.cy,r:r[a],r0:r[s]},style:e.getLineStyle(),z2:1,silent:!0});n.style.fill=null,t.add(n)},axisTick:function(t,e,n,i,o,r){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),u=r[$z(n)];r=l.H(i,(function(t){return new Dd({shape:Qz(n,[u,u+s],t.coord)})}));t.add(_f(r,{style:l.i(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,o,r){if(o.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),u=(a.get("inside")?-1:1)*s.get("length"),c=r[$z(n)],h=[],p=0;p<o.length;p++)for(var d=0;d<o[p].length;d++)h.push(new Dd({shape:Qz(n,[c,c+u],o[p][d].coord)}));t.add(_f(h,{style:l.i(s.getModel("lineStyle").getLineStyle(),l.i(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,i,o,r,a){var s=e.getCategories(!0),u=e.getModel("axisLabel"),c=u.get("margin"),h=e.get("triggerEvent");l.k(a,(function(i,o){var a=u,p=i.tickValue,d=r[$z(n)],f=n.coordToPoint([d+c,i.coord]),g=n.cx,y=n.cy;g=Math.abs(f[0]-g)/d<.3?"center":f[0]>g?"left":"right",d=Math.abs(f[1]-y)/d<.3?"middle":f[1]>y?"top":"bottom",s&&s[p]&&(y=s[p],l.A(y)&&y.textStyle&&(a=new Xs(y.textStyle,u,u.ecModel))),p=new ia({silent:BM.isLabelSilent(e),style:ws(a,{x:f[0],y:f[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:g,verticalAlign:d})});t.add(p),h&&((y=BM.makeAxisEventDataBase(e)).targetType="axisLabel",y.value=i.rawLabel,oa(p).eventData=y)}),this)},splitLine:function(t,e,n,i,o,r){for(var a=e.getModel("splitLine").getModel("lineStyle"),s=0,u=(u=a.get("color"))instanceof Array?u:[u],c=[],h=0;h<i.length;h++){var p=s++%u.length;c[p]=c[p]||[],c[p].push(new Dd({shape:Qz(n,r,i[h].coord)}))}for(h=0;h<c.length;h++)t.add(_f(c[h],{style:l.i({stroke:u[h%u.length]},a.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,i,o,r){if(o.length){for(var a=e.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<o.length;l++)for(var u=0;u<o[l].length;u++)s.push(new Dd({shape:Qz(n,r,o[l][u].coord)}));t.add(_f(s,{style:a.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,i,o,r){if(i.length){for(var a=e.getModel("splitArea").getModel("areaStyle"),s=0,u=(u=a.get("color"))instanceof Array?u:[u],c=[],h=Math.PI/180,p=-i[0].coord*h,d=Math.min(r[0],r[1]),f=Math.max(r[0],r[1]),g=e.get("clockwise"),y=1,m=i.length;y<=m;y++){var v=(y===m?i[0]:i[y]).coord,x=s++%u.length;c[x]=c[x]||[],c[x].push(new fd({shape:{cx:n.cx,cy:n.cy,r0:d,r:f,startAngle:p,endAngle:-v*h,clockwise:g},silent:!0})),p=-v*h}for(y=0;y<c.length;y++)t.add(_f(c[y],{style:l.i({fill:u[y%u.length]},a.getAreaStyle()),silent:!0}))}}},iB=tB,oB=["axisLine","axisTickLabel","axisName"],rB=["splitLine","splitArea","minorSplitLine"];function aB(){var t=null!==eB&&eB.apply(this,arguments)||this;return t.type=aB.type,t.axisPointerClass="PolarAxisPointer",t}a(aB,eB=ZM),aB.prototype.render=function(t,e){var n,i,o,r,a,s,u,c,h;this.group.removeAll(),t.get("show")&&(n=this._axisGroup,i=this._axisGroup=new Gn,this.group.add(i),o=t.axis,h=(r=o.polar).getAngleAxis(),a=o.getTicksCoords(),s=o.getMinorTicksCoords(),u=h.getExtent()[0],c=o.getExtent(),h={position:[r.cx,r.cy],rotation:u/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1},h=new BM(t,h),l.k(oB,h.add,h),i.add(h.getGroup()),Af(n,i,t),l.k(rB,(function(e){t.get([e,"show"])&&!o.scale.isBlank()&&sB[e](this.group,t,r,u,c,a,s)}),this))},aB.type="radiusAxis";var sB={splitLine:function(t,e,n,i,o,r){for(var a=e.getModel("splitLine").getModel("lineStyle"),s=0,u=(u=a.get("color"))instanceof Array?u:[u],c=[],h=0;h<r.length;h++){var p=s++%u.length;c[p]=c[p]||[],c[p].push(new Xp({shape:{cx:n.cx,cy:n.cy,r:r[h].coord}}))}for(h=0;h<c.length;h++)t.add(_f(c[h],{style:l.i({stroke:u[h%u.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,i,o,r,a){if(a.length){e=e.getModel("minorSplitLine").getModel("lineStyle");for(var s=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)s.push(new Xp({shape:{cx:n.cx,cy:n.cy,r:a[u][c].coord}}));t.add(_f(s,{style:l.i({fill:null},e.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,i,o,r){if(r.length){for(var a=e.getModel("splitArea").getModel("areaStyle"),s=0,u=(u=a.get("color"))instanceof Array?u:[u],c=[],h=r[0].coord,p=1;p<r.length;p++){var d=s++%u.length;c[d]=c[d]||[],c[d].push(new fd({shape:{cx:n.cx,cy:n.cy,r0:h,r:r[p].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=r[p].coord}for(p=0;p<c.length;p++)t.add(_f(c[p],{style:l.i({fill:u[p%u.length]},a.getAreaStyle()),silent:!0}))}}},lB=aB;function uB(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function cB(t,e){return e.dim+t.model.componentIndex}function hB(t,e,n){var i,o,r,a={},s=(i=l.n(e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})),o={},l.k(i,(function(t,e){var n=t.getData(),i=t.coordinateSystem,r=i.getBaseAxis(),a=(i=cB(i,r),r.getExtent()),s=(r="category"===r.type?r.getBandWidth():Math.abs(a[1]-a[0])/n.count(),a=o[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},n=a.stacks,i=(o[i]=a,uB(t)),n[i]||a.autoWidthCount++,n[i]=n[i]||{width:0,maxWidth:0},Qn(t.get("barWidth"),r)),l=(r=Qn(t.get("barMaxWidth"),r),t.get("barGap"));t=t.get("barCategoryGap");s&&!n[i].width&&(s=Math.min(a.remainedWidth,s),n[i].width=s,a.remainedWidth-=s),r&&(n[i].maxWidth=r),null!=l&&(a.gap=l),null!=t&&(a.categoryGap=t)})),r={},l.k(o,(function(t,e){r[e]={};var n,i=t.stacks,o=t.bandWidth,a=(o=Qn(t.categoryGap,o),Qn(t.gap,1)),s=t.remainedWidth,u=t.autoWidthCount,c=(s-o)/(u+(u-1)*a),h=(c=Math.max(c,0),l.k(i,(function(t,e){var n=t.maxWidth;n&&n<c&&(n=Math.min(n,s),t.width&&(n=Math.min(n,t.width)),s-=n,t.width=n,u--)})),c=(s-o)/(u+(u-1)*a),c=Math.max(c,0),0),p=(l.k(i,(function(t,e){t.width||(t.width=c),h+=(n=t).width*(1+a)})),n&&(h-=n.width*a),-h/2);l.k(i,(function(t,n){r[e][n]=r[e][n]||{offset:p,width:t.width},p+=t.width*(1+a)}))})),r);e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type)for(var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=cB(n,i),r=uB(t),l=(o=s[o][r],o.offset),u=o.width,c=n.getOtherAxis(i),h=t.coordinateSystem.cx,p=t.coordinateSystem.cy,d=t.get("barMinHeight")||0,f=t.get("barMinAngle")||0,g=(a[r]=a[r]||[],e.mapDimension(c.dim)),y=e.mapDimension(i.dim),m=g_(e,g),v="radius"!==i.dim||!t.get("roundCap",!0),x=c.dataToCoord(0),_=0,b=e.count();_<b;_++){var w,S,M=e.get(g,_),I=e.get(y,_),O=0<=M?"p":"n",T=x,C=void(m&&(a[r][I]||(a[r][I]={p:x,n:x}),T=a[r][I][O])),A=void 0,k=void 0,D=void 0;"radius"===c.dim?(S=c.dataToCoord(M)-x,w=i.dataToCoord(I),A=(C=T)+(S=Math.abs(S)<d?(S<0?-1:1)*d:S),D=(k=w-l)-u,m&&(a[r][I][O]=A)):(S=c.dataToCoord(M,v)-x,A=(C=i.dataToCoord(I)+l)+u,D=(k=T)+(S=Math.abs(S)<f?(S<0?-1:1)*f:S),m&&(a[r][I][O]=D)),e.setItemLayout(_,{cx:h,cy:p,r0:C,r:A,startAngle:-k*Math.PI/180,endAngle:-D*Math.PI/180,clockwise:D<=k})}}))}var pB,dB={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},fB={splitNumber:5},gB=(a(yB,pB=xp),yB.type="polar",yB);function yB(){var t=null!==pB&&pB.apply(this,arguments)||this;return t.type=yB.type,t}function mB(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,o={},r=i.position,a=(i=i.orient,n=n.getRect(),n=[n.x,n.x+n.width,n.y,n.y+n.height],{horizontal:{top:n[2],bottom:n[3]},vertical:{left:n[0],right:n[1]}});o.position=["vertical"===i?a.vertical[r]:n[0],"horizontal"===i?a.horizontal[r]:n[3]],o.rotation=Math.PI/2*{horizontal:0,vertical:1}[i],o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,right:1,left:-1}[r],t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),l.O(e.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection),a=e.rotate;return null==a&&(a=t.get(["axisLabel","rotate"])),o.labelRotation="top"===r?-a:a,o.z2=1,o}var vB,xB=["axisLine","axisTickLabel","axisName"],_B=["splitArea","splitLine"];function bB(){var t=null!==vB&&vB.apply(this,arguments)||this;return t.type=bB.type,t.axisPointerClass="SingleAxisPointer",t}a(bB,vB=ZM),bB.prototype.render=function(t,e,n,i){var o=this.group,r=(o.removeAll(),this._axisGroup),a=(this._axisGroup=new Gn,mB(t));a=new BM(t,a);l.k(xB,a.add,a),o.add(this._axisGroup),o.add(a.getGroup()),l.k(_B,(function(e){t.get([e,"show"])&&SB[e](this,this.group,this._axisGroup,t)}),this),Af(r,this._axisGroup,t),vB.prototype.render.call(this,t,e,n,i)},bB.prototype.remove=function(){QM(this)},bB.type="singleAxis";var wB,SB={splitLine:function(t,e,n,i){var o=i.axis;if(!o.scale.isBlank()){for(var r=i.getModel("splitLine"),a=r.getModel("lineStyle"),s=(s=a.get("color"))instanceof Array?s:[s],u=i.coordinateSystem.getRect(),c=o.isHorizontal(),h=[],p=0,d=o.getTicksCoords({tickModel:r}),f=[],g=[],y=0;y<d.length;++y){var m=o.toGlobalCoord(d[y].coord);m=(c?(f[0]=m,f[1]=u.y,g[0]=m,g[1]=u.y+u.height):(f[0]=u.x,f[1]=m,g[0]=u.x+u.width,g[1]=m),p++%s.length);h[m]=h[m]||[],h[m].push(new Dd({subPixelOptimize:!0,shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},silent:!0}))}var v=a.getLineStyle(["color"]);for(y=0;y<h.length;++y)e.add(_f(h[y],{style:l.i({stroke:s[y%s.length]},v),silent:!0}))}},splitArea:function(t,e,n,i){KM(t,n,i,i)}},MB=bB;a(IB,wB=uu),IB.prototype.getCoordSysModel=function(){return this},IB.type="singleAxis",IB.layoutMode="box",IB.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},Ns=IB;function IB(){var t=null!==wB&&wB.apply(this,arguments)||this;return t.type=IB.type,t}Object(l.K)(Ns,Xw.prototype);var OB,TB=Ns;function CB(t,e,n,i,o){return t=OB.call(this,t,e,n)||this,t.type=i||"value",t.position=o||"bottom",t}a(CB,OB=Ng),CB.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},CB.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]};var AB=CB,kB=["single"];function DB(t,e,n){this.type="single",this.dimension="single",this.dimensions=kB,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}function LB(t){var e=t.seriesModel;t=t.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}DB.prototype._init=function(t,e,n){var i=this.dimension,o=(i=new AB(i,XS(t),[0,0],t.get("type"),t.get("position")),"category"===i.type);i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),(t.axis=i).model=t,(i.coordinateSystem=this)._axis=i},DB.prototype.update=function(t,e){t.eachSeries((function(t){var e;t.coordinateSystem===this&&(e=t.getData(),Object(l.k)(e.mapDimensionsAll(this.dimension),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),US(this._axis.scale,this._axis.model))}),this)},DB.prototype.resize=function(t,e){this._rect=ql({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},DB.prototype.getRect=function(){return this._rect},DB.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],o=e.reverse?1:0;e.setExtent(i[o],i[1-o]),this._updateAxisTransform(e,n?t.x:t.y)},DB.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),i=n[0]+n[1];n=t.isHorizontal();t.toGlobalCoord=n?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=n?function(t){return t-e}:function(t){return i-t+e}},DB.prototype.getAxis=function(){return this._axis},DB.prototype.getBaseAxis=function(){return this._axis},DB.prototype.getAxes=function(){return[this._axis]},DB.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},DB.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},DB.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},DB.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],o="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[o]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-o]=0==o?n.y+n.height/2:n.x+n.width/2,i},DB.prototype.convertToPixel=function(t,e,n){return LB(e)===this?this.dataToPoint(n):null},DB.prototype.convertFromPixel=function(t,e,n){return LB(e)===this?this.pointToData(n):null};var PB,jB=DB,RB={create:function(t,e){var n=[];return t.eachComponent("singleAxis",(function(i,o){var r=new jB(i,t,e);r.name="single_"+o,r.resize(i,e),i.coordinateSystem=r,n.push(r)})),t.eachSeries((function(t){var e;"singleAxis"===t.get("coordinateSystem")&&(e=t.getReferringComponents("singleAxis",ji).models[0],t.coordinateSystem=e&&e.coordinateSystem)})),n},dimensions:kB},NB=["x","y"],EB=["width","height"];function zB(){return null!==PB&&PB.apply(this,arguments)||this}a(zB,PB=zs),zB.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=a.coordinateSystem,l=FB(s,1-VB(a)),u=(s=s.dataToPoint(e)[0],i.get("type"));u&&"none"!==u&&(r=VE(i),(u=BB[u](a,s,l)).style=r,t.graphicKey=u.type,t.pointer=u),a=mB(n);WE(e,t,a,n,i,o)},zB.prototype.getHandleTransform=function(t,e,n){var i=mB(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]),n=GE(e.axis,t,i);return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},zB.prototype.updateHandleTransform=function(t,e,n,i){n=n.axis;var o=n.coordinateSystem,r=(n=VB(n),FB(o,n)),a=[t.x,t.y];a[n]+=e[n],a[n]=Math.min(r[1],a[n]),a[n]=Math.max(r[0],a[n]),e=FB(o,1-n),r=(e[1]+e[0])/2,o=[r,r];return o[n]=a[n],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:o,tooltipOption:{verticalAlign:"middle"}}};var BB={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:YE([e,n[0]],[e,n[1]],VB(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),o=n[1]-n[0];return{type:"Rect",shape:UE([e-i/2,n[0]],[i,o],VB(t))}}};function VB(t){return t.isHorizontal()?0:1}function FB(t,e){return t=t.getRect(),[t[NB[e]],t[NB[e]]+t[EB[e]]]}var HB,GB,WB=zB,YB=(a(UB,HB=xp),UB.type="single",UB);function UB(){var t=null!==HB&&HB.apply(this,arguments)||this;return t.type=UB.type,t}function XB(){var t=null!==GB&&GB.apply(this,arguments)||this;return t.type=XB.type,t}function ZB(t,e){var n=t.cellSize,i=l.t(n)?n:t.cellSize=[n,n];1===i.length&&(i[1]=i[0]),n=l.H([0,1],(function(t){var n,o;return(null!=(n=e)[Ul[o=t][0]]||null!=n[Ul[o][1]]&&null!=n[Ul[o][2]])&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]}));$l(t,e,{type:"box",ignoreSize:n})}a(XB,GB=uu),XB.prototype.init=function(t,e,n){var i=Jl(t);GB.prototype.init.apply(this,arguments),ZB(t,i)},XB.prototype.mergeOption=function(t){GB.prototype.mergeOption.apply(this,arguments),ZB(this.option,t)},XB.prototype.getCellSize=function(){return this.option.cellSize},XB.type="calendar",XB.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}};var qB,KB=XB;function QB(){var t=null!==qB&&qB.apply(this,arguments)||this;return t.type=QB.type,t}a(QB,qB=xp),QB.prototype.render=function(t,e,n){var i=this.group,o=(i.removeAll(),t.coordinateSystem),r=o.getRangeInfo();o=o.getOrient(),e=e.getLocaleModel();this._renderDayRect(t,r,i),this._renderLines(t,r,o,i),this._renderYearText(t,r,o,i),this._renderMonthText(t,e,o,i),this._renderWeekText(t,e,r,o,i)},QB.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),r=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl;l=new Br({shape:{x:l[0],y:l[1],width:r,height:a},cursor:"default",style:o});n.add(l)}},QB.prototype._renderLines=function(t,e,n,i){for(var o=this,r=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth,u=(this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[],e.start),c=0;u.time<=e.end.time;c++){p(u.formatedDate);var h=(u=0===c?r.getDateInfo(e.start.y+"-"+e.start.m):u).date;h.setMonth(h.getMonth()+1),u=r.getDateInfo(h)}function p(e){o._firstDayOfMonth.push(r.getDateInfo(e)),o._firstDayPoints.push(r.dataToRect([e],!1).tl),e=o._getLinePointsOfOneWeek(t,e,n),o._tlpoints.push(e[0]),o._blpoints.push(e[e.length-1]),s&&o._drawSplitline(e,a,i)}p(r.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,l,n),a,i),s&&this._drawSplitline(o._getEdgesPoints(o._blpoints,l,n),a,i)},QB.prototype._getEdgesPoints=function(t,e,n){return t=[t[0].slice(),t[t.length-1].slice()],n="horizontal"===n?0:1,t[0][n]=t[0][n]-e/2,t[1][n]=t[1][n]+e/2,t},QB.prototype._drawSplitline=function(t,e,n){t=new Td({z2:20,shape:{points:t},style:e}),n.add(t)},QB.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,o=i.getDateInfo(e),r=[],a=0;a<7;a++){var s=i.getNextNDay(o.time,a),l=i.dataToRect([s.time],!1);r[2*s.day]=l.tl,r[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return r},QB.prototype._formatterLabel=function(t,e){return Object(l.C)(t)&&t?(n=t,l.k(e,(function(t,e){n=n.replace("{"+e+"}",i?El(t):t)})),n):Object(l.w)(t)?t(e):e.nameMap;var n,i},QB.prototype._yearTextPositionControl=function(t,e,n,i,o){var r=e[0],a=(e=e[1],["center","bottom"]);"bottom"===i?(e+=o,a=["center","top"]):"left"===i?r-=o:"right"===i?(r+=o,a=["center","top"]):e-=o,o=0;return{rotation:o="left"!==i&&"right"!==i?o:Math.PI/2,x:r,y:e,style:{align:a[0],verticalAlign:a[1]}}},QB.prototype._renderYearText=function(t,e,n,i){var o,r,a,s,l,u;t=t.getModel("yearLabel");t.get("show")&&(o=t.get("margin"),r=(r=t.get("position"))||("horizontal"!==n?"top":"left"),a=((u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]])[0][0]+u[1][0])/2,l=(u[0][1]+u[1][1])/2,a={top:[a,u[s="horizontal"===n?0:1][1]],bottom:[a,u[1-s][1]],left:[u[1-s][0],l],right:[u[s][0],l]},u=e.start.y,+e.end.y>+e.start.y&&(u=u+"-"+e.end.y),s=t.get("formatter"),l={start:e.start.y,end:e.end.y,nameMap:u},e=this._formatterLabel(s,l),(u=new ia({z2:30,style:ws(t,{text:e})})).attr(this._yearTextPositionControl(u,a[r],n,r,o)),i.add(u))},QB.prototype._monthTextPositionControl=function(t,e,n,i,o){var r="left",a="top",s=t[0];t=t[1];return"horizontal"===n?(t+=o,e&&(r="center"),"start"===i&&(a="bottom")):(s+=o,e&&(a="middle"),"start"===i&&(r="right")),{x:s,y:t,align:r,verticalAlign:a}},QB.prototype._renderMonthText=function(t,e,n,i){var o=t.getModel("monthLabel");if(o.get("show"))for(var r=o.get("nameMap"),a=o.get("margin"),s=o.get("position"),u=(t=o.get("align"),[this._tlpoints,this._blpoints]),c=(r&&!Object(l.C)(r)||(r=(e=r&&ol(r)||e).get(["time","monthAbbr"])||[]),"start"===s?0:1),h="horizontal"===n?0:1,p=(a="start"===s?-a:a,"center"===t),d=0;d<u[c].length-1;d++){var f=u[c][d].slice(),g=this._firstDayOfMonth[d],y=(p&&(y=this._firstDayPoints[d],f[h]=(y[h]+u[0][d+1][h])/2),o.get("formatter")),m=r[+g.m-1];g={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:m},m=this._formatterLabel(y,g),g=new ia({z2:30,style:Object(l.m)(ws(o,{text:m}),this._monthTextPositionControl(f,p,n,s,a))});i.add(g)}},QB.prototype._weekTextPositionControl=function(t,e,n,i,o){var r="center",a="middle",s=t[0];t=t[1],n="start"===n;return"horizontal"===e?(s=s+i+(n?1:-1)*o[0]/2,r=n?"right":"left"):(t=t+i+(n?1:-1)*o[1]/2,a=n?"bottom":"top"),{x:s,y:t,align:r,verticalAlign:a}},QB.prototype._renderWeekText=function(t,e,n,i,o){var r=t.getModel("dayLabel");if(r.get("show")){var a=t.coordinateSystem,s=r.get("position"),u=r.get("nameMap"),c=r.get("margin"),h=a.getFirstDayOfWeek(),p=(u&&!Object(l.C)(u)||(u=(e=u&&ol(u)||e).get(["time","dayOfWeekShort"])||Object(l.H)(e.get(["time","dayOfWeekAbbr"]),(function(t){return t[0]}))),a.getNextNDay(n.end.time,7-n.lweek).time),d=[a.getCellWidth(),a.getCellHeight()];c=Qn(c,Math.min(d[1],d[0]));"start"===s&&(p=a.getNextNDay(n.start.time,-(7+n.fweek)).time,c=-c);for(var f=0;f<7;f++){var g=a.getNextNDay(p,f),y=(g=a.dataToRect([g.time],!1).center,Math.abs((f+h)%7));y=new ia({z2:30,style:Object(l.m)(ws(r,{text:u[y]}),this._weekTextPositionControl(g,i,s,c,d))});o.add(y)}}},QB.type="calendar";var $B=QB;function JB(t,e,n){this.type="calendar",this.dimensions=JB.dimensions,this.getDimensionsInfo=JB.getDimensionsInfo,this._model=t}function tV(t){var e=t.calendarModel;t=t.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem:null}JB.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},JB.prototype.getRangeInfo=function(){return this._rangeInfo},JB.prototype.getModel=function(){return this._model},JB.prototype.getRect=function(){return this._rect},JB.prototype.getCellWidth=function(){return this._sw},JB.prototype.getCellHeight=function(){return this._sh},JB.prototype.getOrient=function(){return this._orient},JB.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},JB.prototype.getDateInfo=function(t){var e=(t=ai(t)).getFullYear(),n=t.getMonth()+1,i=(n=n<10?"0"+n:""+n,t.getDate()),o=(i=i<10?"0"+i:""+i,t.getDay());return{y:e+"",m:n,d:i,day:Math.abs((o+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+n+"-"+i,date:t}},JB.prototype.getNextNDay=function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},JB.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],o=this._model.getCellSize().slice(),r=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n],s=(n=(l.k([0,1],(function(t){u(o,t)&&(r[i[t]]=o[t]*a[t])})),{width:e.getWidth(),height:e.getHeight()}),this._rect=ql(r,n));function u(t,e){return null!=t[e]&&"auto"!==t[e]}l.k([0,1],(function(t){u(o,t)||(o[t]=s[i[t]]/a[t])})),this._sw=o[0],this._sh=o[1]},JB.prototype.dataToPoint=function(t,e){l.t(t)&&(t=t[0]),null==e&&(e=!0);t=this.getDateInfo(t);var n=this._rangeInfo,i=t.formatedDate;return!e||t.time>=n.start.time&&t.time<n.end.time+864e5?(e=t.day,t=this._getRangeInfo([n.start.time,i]).nthWeek,"vertical"===this._orient?[this._rect.x+e*this._sw+this._sw/2,this._rect.y+t*this._sh+this._sh/2]:[this._rect.x+t*this._sw+this._sw/2,this._rect.y+e*this._sh+this._sh/2]):[NaN,NaN]},JB.prototype.pointToData=function(t){return t=this.pointToDate(t),t&&t.time},JB.prototype.dataToRect=function(t,e){return t=this.dataToPoint(t,e),{contentShape:{x:t[0]-(this._sw-this._lineWidth)/2,y:t[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:t,tl:[t[0]-this._sw/2,t[1]-this._sh/2],tr:[t[0]+this._sw/2,t[1]-this._sh/2],br:[t[0]+this._sw/2,t[1]+this._sh/2],bl:[t[0]-this._sw/2,t[1]+this._sh/2]}},JB.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=(t=Math.floor((t[1]-this._rect.y)/this._sh)+1,this._rangeInfo.range);return"vertical"===this._orient?this._getDateByWeeksAndDay(t,e-1,n):this._getDateByWeeksAndDay(e,t-1,n)},JB.prototype.convertToPixel=function(t,e,n){return e=tV(e),e===this?e.dataToPoint(n):null},JB.prototype.convertFromPixel=function(t,e,n){return e=tV(e),e===this?e.pointToData(n):null},JB.prototype.containPoint=function(t){return!1},JB.prototype._initRangeOption=function(){var t,e,n,i=this._model.get("range");if(l.t(i)&&1===i.length&&(i=i[0]),l.t(i)?n=i:(t=i.toString(),/^\d{4}$/.test(t)&&(n=[t+"-01-01",t+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(t)&&((e=(o=this.getDateInfo(t)).date).setMonth(e.getMonth()+1),e=this.getNextNDay(e,-1),n=[o.formatedDate,e.formatedDate]),/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(t)&&(n=[t,t])),!n)return i;var o=this._getRangeInfo(n);return o.start.time>o.end.time&&n.reverse(),n},JB.prototype._getRangeInfo=function(t){var e,n,i=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],o=(i[0].time>i[1].time&&(e=!0,i.reverse()),Math.floor(i[1].time/864e5)-Math.floor(i[0].time/864e5)+1),r=new Date(i[0].time),a=(t=r.getDate(),i[1].date.getDate());if(r.setDate(t+o-1),r.getDate()!==a)for(var s=0<r.getTime()-i[1].time?1:-1;(n=r.getDate())!==a&&0<(r.getTime()-i[1].time)*s;)o-=s,r.setDate(n-s);t=Math.floor((o+i[0].day+6)/7);var l=e?1-t:t-1;return e&&i.reverse(),{range:[i[0].formatedDate,i[1].formatedDate],start:i[0],end:i[1],allDay:o,weeks:t,nthWeek:l,fweek:i[0].day,lweek:i[1].day}},JB.prototype._getDateByWeeksAndDay=function(t,e,n){return n=this._getRangeInfo(n),t>n.weeks||0===t&&e<n.fweek||t===n.weeks&&e>n.lweek?null:(t=7*(t-1)-n.fweek+e,e=new Date(n.start.time),e.setDate(+n.start.d+t),this.getDateInfo(e))},JB.create=function(t,e){var n=[];return t.eachComponent("calendar",(function(t){var e=new JB(t);n.push(e),t.coordinateSystem=e})),t.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])})),n},JB.dimensions=["time","value"];var eV=JB;function nV(t,e){var n;return l.k(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}var iV=["transition","enterFrom","leaveTo"],oV=iV.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function rV(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?iV:oV,o=0;o<i.length;o++){var r=i[o];null==t[r]&&null!=e[r]&&(t[r]=e[r])}}a(lV,aV=uu),lV.prototype.mergeOption=function(t,e){var n=this.option.elements;this.option.elements=null,aV.prototype.mergeOption.call(this,t,e),this.option.elements=n},lV.prototype.optionUpdated=function(t,e){var n=this.option,i=(t=(e?n:t).elements,n.elements=e?[]:n.elements),o=(e=[],t=(this._flatten(t,e,null),wi(i,e,"normalMerge")),this._elOptionsToUpdate=[]);l.k(t,(function(t,e){var n,r,a,s,u,c=t.newOption;c&&(o.push(c),s=c,n=(t=t).existing,s.id=t.keyInfo.id,!s.type&&n&&(s.type=n.type),null==s.parentId&&((t=s.parentOption)?s.parentId=t.id:n&&(s.parentId=n.parentId)),s.parentOption=null,t=i,n=e,s=c,u=l.m({},s),r=t[n],"merge"===(a=s.$action||"merge")?r?(l.I(r,u,!0),$l(r,u,{ignoreSize:!0}),tu(s,r),rV(s,r),rV(s,r,"shape"),rV(s,r,"style"),rV(s,r,"extra"),s.clipPath=r.clipPath):t[n]=u:"replace"===a?t[n]=u:"remove"===a&&r&&(t[n]=null),s=i[e],u=c,s&&(s.hv=u.hv=[nV(u,["left","right"]),nV(u,["top","bottom"])],"group"===s.type&&(u=u,null==(s=s).width&&(s.width=u.width=0),null==s.height&&(s.height=u.height=0))))}),this),n.elements=l.n(i,(function(t){return t&&delete t.$action,null!=t}))},lV.prototype._flatten=function(t,e,n){l.k(t,(function(t){var i;t&&(n&&(t.parentOption=n),e.push(t),i=t.children,"group"===t.type&&i&&this._flatten(i,e,t),delete t.children)}),this)},lV.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},lV.type="graphic",lV.defaultOption={elements:[]};var aV,sV=lV;function lV(){var t=null!==aV&&aV.apply(this,arguments)||this;return t.type=lV.type,t.preventAutoZ=!0,t}var uV,cV={path:null,compoundPath:null,group:Gn,image:Ar,text:ia},hV=ki(),pV=(a(dV,uV=xp),dV.prototype.init=function(){this._elMap=l.f()},dV.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},dV.prototype._updateElements=function(t){var e,n,i,o,r=t.useElOptionsToUpdate();r&&(e=this._elMap,n=this.group,i=t.get("z"),o=t.get("zlevel"),l.k(r,(function(r){var a,s,u,c=Ii(r.id,null),h=null!=c?e.get(c):null,p=Ii(r.parentId,null),d=(p=null!=p?e.get(p):n,r.type),f=r.style,g=("text"===d&&f&&r.hv&&r.hv[1]&&(f.textVerticalAlign=f.textBaseline=f.verticalAlign=f.align=null),r.textContent),y=r.textConfig,m=(d=(f&&PN(f,d,!!y,!!g)&&(f=jN(f,d,!0),!y&&f.textConfig&&(y=r.textConfig=f.textConfig),!g&&f.textContent&&(g=f.textContent)),a=r,a=l.m({},a),l.k(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Yl),(function(t){delete a[t]})),a),f=r.$action||"merge","merge"===f),v="replace"===f;m?((u=!(s=h))?s=gV(c,p,r.type,e):(s&&(hV(s).isNew=!1),tE(s)),s&&(GN(s,d,t,{isInit:u}),mV(s,r,i,o))):v?(yV(h,r,e,t),(s=gV(c,p,r.type,e))&&(GN(s,d,t,{isInit:!0}),mV(s,r,i,o))):"remove"===f&&(WN(h,r),yV(h,r,e,t)),p=e.get(c);p&&g&&(m?(d=p.getTextContent())?d.attr(g):p.setTextContent(new ia(g)):v&&p.setTextContent(new ia(g))),p&&((s=r.clipPath)&&(f=s.type,h=void 0,u=!1,m?h=(u=!(c=p.getClipPath())||hV(c).type!==f)?fV(f):c:v&&(u=!0,h=fV(f)),p.setClipPath(h),GN(h,s,t,{isInit:u}),eE(h,s.keyframeAnimation,t)),d=hV(p),p.setTextConfig(y),d.option=r,g=t,m=r,v=oa(c=p).eventData,(v=c.silent||c.ignore||v?v:oa(c).eventData={componentType:"graphic",componentIndex:g.componentIndex,name:c.name})&&(v.info=m.info),Rf({el:p,componentModel:t,itemName:p.name,itemTooltipOption:r.tooltip}),eE(p,r.keyframeAnimation,t))})))},dV.prototype._relocate=function(t,e){for(var n,i,o=t.option.elements,r=this.group,a=this._elMap,s=e.getWidth(),u=e.getHeight(),c=["x","y"],h=0;h<o.length;h++)(f=null!=(d=Ii((p=o[h]).id,null))?a.get(d):null)&&f.isGroup&&(n=(g=f.parent)===r,i=hV(f),y=hV(g),i.width=Qn(i.option.width,n?s:y.width)||0,i.height=Qn(i.option.height,n?u:y.height)||0);var p,d,f;for(h=o.length-1;0<=h;h--)if(f=null!=(d=Ii((p=o[h]).id,null))?a.get(d):null){var g=f.parent,y=hV(g),m={},v=Kl(f,p,g===r?{width:s,height:u}:{width:y.width,height:y.height},null,{hv:p.hv,boundingMode:p.bounding},m);if(!hV(f).isNew&&v){for(var x=p.transition,_={},b=0;b<c.length;b++){var w=c[b],S=m[w];x&&(UN(x)||0<=l.r(x,w))?_[w]=S:f[w]=S}cs(f,_,t,0)}else f.attr(m)}},dV.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){yV(n,hV(n).option,e,t._lastGraphicModel)})),this._elMap=l.f()},dV.prototype.dispose=function(){this._clear()},dV.type="graphic",dV);function dV(){var t=null!==uV&&uV.apply(this,arguments)||this;return t.type=dV.type,t}function fV(t){var e=new(l.q(cV,t)?cV[t]:yf(t))({});return hV(e).type=t,e}function gV(t,e,n,i){return n=fV(n),e.add(n),i.set(t,n),hV(n).id=t,hV(n).isNew=!0,n}function yV(t,e,n,i){t&&t.parent&&("group"===t.type&&t.traverse((function(t){yV(t,e,n,i)})),YN(t,e,i),n.removeKey(hV(t).id))}function mV(t,e,n,i){var o;t.isGroup||((o=t).z=l.P(e.z,n||0),o.zlevel=l.P(e.zlevel,i||0),null!=(n=e.z2)&&(o.z2=n||0)),l.k(l.F(e),(function(n){var i=e[n];0===n.indexOf("on")&&l.w(i)&&(t[n]=i)})),t.draggable=e.draggable,null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}var vV=["x","y","radius","angle","single"],xV=["cartesian2d","polar","singleAxis"];function _V(t){return t+"Axis"}function bV(t,e){var n,i=Object(l.f)(),o=[],r=Object(l.f)();for(t.eachComponent({mainType:"dataZoom",query:e},(function(t){r.get(t.uid)||s(t)}));n=!1,t.eachComponent("dataZoom",a),n;);function a(t){var e;!r.get(t.uid)&&(e=!1,t.eachTargetAxis((function(t,n){t=i.get(t),t&&t[n]&&(e=!0)})),e)&&(s(t),n=!0)}function s(t){r.set(t.uid,!0),o.push(t),t.eachTargetAxis((function(t,e){(i.get(t)||i.set(t,[]))[e]=!0}))}return o}function wV(t){var e=t.ecModel,n={infoList:[],infoMap:Object(l.f)()};return t.eachTargetAxis((function(t,i){var o,r;t=e.getComponent(_V(t),i);!t||(i=t.getCoordSysModel())&&(o=i.uid,(r=n.infoMap.get(o))||(n.infoList.push(r={model:i,axisModels:[]}),n.infoMap.set(o,r)),r.axisModels.push(t))})),n}IV.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)};var SV,MV=IV;function IV(){this.indexList=[],this.indexMap=[]}function OV(){var t=null!==SV&&SV.apply(this,arguments)||this;return t.type=OV.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}function TV(t){var e={};return Object(l.k)(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}a(OV,SV=uu),OV.prototype.init=function(t,e,n){var i=TV(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},OV.prototype.mergeOption=function(t){var e=TV(t);Object(l.I)(this.option,t,!0),Object(l.I)(this.settledOption,e,!0),this._doInit(e)},OV.prototype._doInit=function(t){var e=this.option,n=(this._setDefaultThrottle(t),this._updateRangeUse(t),this.settledOption);Object(l.k)([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},OV.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Object(l.f)();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},OV.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return Object(l.k)(vV,(function(n){var i,o=this.getReferringComponents(_V(n),Ri);o.specified&&(e=!0,i=new MV,Object(l.k)(o.models,(function(t){i.add(t.componentIndex)})),t.set(n,i))}),this),e},OV.prototype._fillAutoTargetAxisByOrient=function(t,e){var n,i=this.ecModel,o=!0;function r(e,n){var i,r,a=e[0];a&&((i=new MV).add(a.componentIndex),t.set(n,i),o=!1,"x"!==n&&"y"!==n||(r=a.getReferringComponents("grid",ji).models[0])&&Object(l.k)(e,(function(t){a.componentIndex!==t.componentIndex&&r===t.getReferringComponents("grid",ji).models[0]&&i.add(t.componentIndex)})))}o&&r(i.findComponents({mainType:(n="vertical"===e?"y":"x")+"Axis"}),n),o&&r(i.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single"),o&&Object(l.k)(vV,(function(e){var n,r;!o||(n=i.findComponents({mainType:_V(e),filter:function(t){return"category"===t.get("type",!0)}}))[0]&&((r=new MV).add(n[0].componentIndex),t.set(e,r),o=!1)}),this)},OV.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){t=t||e}),this),"y"===t?"vertical":"horizontal"},OV.prototype._setDefaultThrottle=function(t){t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle&&(t=this.ecModel.option,this.option.throttle=t.animation&&0<t.animationDurationUpdate?100:20)},OV.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");Object(l.k)([["start","startValue"],["end","endValue"]],(function(i,o){var r=null!=t[i[0]];i=null!=t[i[1]];r&&!i?e[o]="percent":!r&&i?e[o]="value":n?e[o]=n[o]:r&&(e[o]="percent")}))},OV.prototype.noTarget=function(){return this._noTarget},OV.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(_V(e),n))}),this),t},OV.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,i){Object(l.k)(n.indexList,(function(n){t.call(e,i,n)}))}))},OV.prototype.getAxisProxy=function(t,e){if(t=this.getAxisModel(t,e),t)return t.__dzAxisProxy},OV.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(_V(t),e)},OV.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;Object(l.k)([["start","startValue"],["end","endValue"]],(function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),this._updateRangeUse(t)},OV.prototype.setCalculatedRange=function(t){var e=this.option;Object(l.k)(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},OV.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},OV.prototype.getValueRange=function(t,e){return null!=t||null!=e?this.getAxisProxy(t,e).getDataValueWindow():(t=this.findRepresentativeAxisProxy(),t?t.getDataValueWindow():void 0)},OV.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],r=this._targetAxisInfoMap.get(o),a=0;a<r.indexList.length;a++){var s=this.getAxisProxy(o,r.indexList[a]);if(s.hostedBy(this))return s;e=e||s}return e},OV.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},OV.prototype.getOrient=function(){return this._orient},OV.type="dataZoom",OV.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],OV.defaultOption={z:4,filterMode:"filter",start:0,end:100};var CV;zg=OV;function AV(){var t=null!==CV&&CV.apply(this,arguments)||this;return t.type=AV.type,t}a(AV,CV=zg),AV.type="dataZoom.select";var kV,DV=AV;function LV(){var t=null!==kV&&kV.apply(this,arguments)||this;return t.type=LV.type,t}a(LV,kV=xp),LV.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},LV.type="dataZoom";var PV;Bg=LV;function jV(){var t=null!==PV&&PV.apply(this,arguments)||this;return t.type=jV.type,t}a(jV,PV=Bg),jV.type="dataZoom.select";var RV=jV,NV=l.k,EV=Jn;function zV(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}zV.prototype.hostedBy=function(t){return this._dataZoomModel===t},zV.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},zV.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},zV.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){var n;n=(n=e).get("coordinateSystem"),0<=Object(l.r)(xV,n)&&(n=_V(this._dimName),(n=e.getReferringComponents(n,ji).models[0])&&this._axisIndex===n.componentIndex&&t.push(e))}),this),t},zV.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},zV.prototype.getMinMaxSpan=function(){return l.d(this._minMaxSpan)},zV.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,o=this._dataZoomModel.getRangePropMode(),r=[0,100],a=[],s=[],l=(NV(["start","end"],(function(l,u){var c=t[l];l=t[l+"Value"];"percent"===o[u]?l=i.parse(Kn(c=null==c?r[u]:c,r,n)):(e=!0,c=Kn(l=null==l?n[u]:i.parse(l),n,r)),s[u]=l,a[u]=c})),EV(s),EV(a),this._minMaxSpan);function u(t,e,n,o,r){var a=r?"Span":"ValueSpan";nL(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=Kn(t[s],n,o,!0),r&&(e[s]=i.parse(e[s]))}return e?u(s,a,n,r,!1):u(a,s,r,n,!0),{valueWindow:s,percentWindow:a}},zV.prototype.reset=function(t){var e,n,i,o;t===this._dataZoomModel&&(o=this.getTargetSeriesModels(),this._dataExtent=(n=(e=this)._dimName,i=[1/0,-1/0],NV(o=o,(function(t){var e,o;e=i,o=t.getData(),t=n,o&&l.k(JS(o,t),(function(t){t=o.getApproximateExtent(t),t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])}))})),[(e=GS((o=e.getAxisModel()).axis.scale,o,i).calculate()).min,e.max]),this._updateMinMaxSpan(),o=this.calculateDataWindow(t.settledOption),this._valueWindow=o.valueWindow,this._percentWindow=o.percentWindow,this._setAxisModel())},zV.prototype.filterData=function(t,e){var n,i,o,r;t===this._dataZoomModel&&(n=this._dimName,i=this.getTargetSeriesModels(),o=t.get("filterMode"),r=this._valueWindow,"none"!==o&&NV(i,(function(t){var e,i,a=t.getData(),s=a.mapDimensionsAll(n);s.length&&("weakFilter"===o?(e=a.getStore(),i=l.H(s,(function(t){return a.getDimensionIndex(t)}),a),a.filterSelf((function(t){for(var n,o,a,l=0;l<s.length;l++){var u=e.get(i[l],t),c=!isNaN(u),h=u<r[0];u=u>r[1];if(c&&!h&&!u)return!0;c&&(a=!0),h&&(n=!0),u&&(o=!0)}return a&&n&&o}))):NV(s,(function(e){var n;"empty"===o?t.setData(a=a.map(e,(function(t){return(e=t)>=r[0]&&e<=r[1]?t:NaN;var e}))):((n={})[e]=r,a.selectRange(n))})),NV(s,(function(t){a.setApproximateExtent(r,t)})))})))},zV.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;NV(["min","max"],(function(i){var o=e.get(i+"Span"),r=e.get(i+"ValueSpan");null!=(r=null!=r?this.getAxisModel().axis.scale.parse(r):r)?o=Kn(n[0]+r,n,[0,100],!0):null!=o&&(r=Kn(o,[0,100],n,!0)-n[0]),t[i+"Span"]=o,t[i+"ValueSpan"]=r}),this)},zV.prototype._setAxisModel=function(){var t,e=this.getAxisModel(),n=this._percentWindow,i=this._valueWindow;n&&(t=ei(i,[0,500]),t=Math.min(t,20),e=e.axis.scale.rawExtentInfo,0!==n[0]&&e.setDeterminedMinMax("min",+i[0].toFixed(t)),100!==n[1]&&e.setDeterminedMinMax("max",+i[1].toFixed(t)),e.freeze())};var BV=zV,VV={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,o){var r=t.getComponent(_V(i),o);e(i,o,r,n)}))}))}e((function(t,e,n,i){n.__dzAxisProxy=null}));var n=[],i=(e((function(e,i,o,r){o.__dzAxisProxy||(o.__dzAxisProxy=new BV(e,i,r,t),n.push(o.__dzAxisProxy))})),Object(l.f)());return Object(l.k)(n,(function(t){Object(l.k)(t.getTargetSeriesModels(),(function(t){i.set(t.uid,t)}))})),i},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,i){t.getAxisProxy(n,i).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e,n=t.findRepresentativeAxisProxy();n&&(e=n.getDataPercentWindow(),n=n.getDataValueWindow(),t.setCalculatedRange({start:e[0],end:e[1],startValue:n[0],endValue:n[1]}))}))}},FV=!1;function HV(t){FV||(FV=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,VV),t.registerAction("dataZoom",(function(t,e){e=bV(e,t),Object(l.k)(e,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))})),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function GV(t){t.registerComponentModel(DV),t.registerComponentView(RV),HV(t)}function WV(){}var YV,UV={};function XV(t,e){UV[t]=e}function ZV(t){return UV[t]}function qV(){var t=null!==YV&&YV.apply(this,arguments)||this;return t.type=qV.type,t}a(qV,YV=uu),qV.prototype.optionUpdated=function(){YV.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;l.k(this.option.feature,(function(e,n){n=ZV(n),n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(t)),l.I(e,n.defaultOption))}))},qV.type="toolbox",qV.layoutMode={type:"box",ignoreSize:!0},qV.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}};var KV,QV=qV;function $V(t,e){var n=jl(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),new Br({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}function JV(){return null!==KV&&KV.apply(this,arguments)||this}a(JV,KV=xp),JV.prototype.render=function(t,e,n,i){var o,r,a,s,u,c,h,p,d,f,g=this.group;function y(u,c){u=s[u],c=s[c];var h,p=r[u],d=new Xs(p,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===u&&(p.title=i.newTitle),u&&!c){if(0===u.indexOf("my"))h={onclick:d.option.onclick,featureName:u};else{if(p=ZV(u),!p)return;h=new p}a[u]=h}else if(!(h=a[c]))return;h.uid=qs("toolbox-feature"),h.model=d,h.ecModel=e,h.api=n;var f,y,m,v,x,_,b;p=h instanceof WV;!u&&c?p&&h.dispose&&h.dispose(e,n):!d.get("show")||p&&h.unusable?p&&h.remove&&h.remove(e,n):(y=h,c=u,x=(f=d).getModel("iconStyle"),_=f.getModel(["emphasis","iconStyle"]),p=y instanceof WV&&y.getIcons?y.getIcons():f.get("icon"),u=f.get("title")||{},l.C(p)?(m={})[c]=p:m=p,l.C(u)?(v={})[c]=u:v=u,b=f.iconPaths={},l.k(m,(function(i,r){var a=Lf(i,{},{x:-o/2,y:-o/2,width:o,height:o});a.setStyle(x.getItemStyle()),a.ensureState("emphasis").style=_.getItemStyle();var s=new ia({style:{text:v[r],align:_.get("textAlign"),borderRadius:_.get("textBorderRadius"),padding:_.get("textPadding"),fill:null},ignore:!0});a.setTextContent(s),Rf({el:a,componentModel:t,itemName:r,formatterParamsExtra:{title:v[r]}}),a.__title=v[r],a.on("mouseover",(function(){var e=_.getItemStyle(),n="vertical"===t.get("orient")?null==t.get("right")?"right":"left":null==t.get("bottom")?"bottom":"top";s.setStyle({fill:_.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:_.get("textBackgroundColor")}),a.setTextConfig({position:_.get("textPosition")||n}),s.ignore=!t.get("showTitle"),Ba(this)})).on("mouseout",(function(){"emphasis"!==f.get(["iconStatus",r])&&Va(this),s.hide()})),("emphasis"===f.get(["iconStatus",r])?Ba:Va)(a),g.add(a),a.on("click",l.c(y.onclick,y,e,n,r)),b[r]=a})),d.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?Ba:Va)(i[t])},h instanceof WV&&h.render&&h.render(d,e,n,i))}g.removeAll(),t.get("show")&&(o=+t.get("itemSize"),r=t.get("feature")||{},a=this._features||(this._features={}),s=[],l.k(r,(function(t,e){s.push(e)})),new Nx(this._featureNames||[],s).add(y).update(y).remove(l.h(y,null)).execute(),this._featureNames=s,u=g,h=n,p=(c=t).getBoxLayoutParams(),d=c.get("padding"),h={width:h.getWidth(),height:h.getHeight()},f=ql(p,h,d),Zl(c.get("orient"),u,c.get("itemGap"),f.width,f.height),Kl(u,p,h,d),g.add($V(g.getBoundingRect(),t)),g.eachChild((function(t){var e,i,r=t.__title,a=t.ensureState("emphasis"),s=(a=a.textConfig||(a.textConfig={}),t.getTextContent());s=s&&s.states.emphasis;s&&!l.w(s)&&r&&(s=s.style||(s.style={}),r=In(r,ia.makeFont(s)),e=t.x+g.x,i=!1,t.y+g.y+o+r.height>n.getHeight()&&(a.position="top",i=!0),t=i?-5-r.height:o+8,e+r.width/2>n.getWidth()?(a.position=["100%",t],s.align="right"):e-r.width/2<0&&(a.position=[0,t],s.align="left"))})))},JV.prototype.updateView=function(t,e,n,i){l.k(this._features,(function(t){t instanceof WV&&t.updateView&&t.updateView(t.model,e,n,i)}))},JV.prototype.remove=function(t,e){l.k(this._features,(function(n){n instanceof WV&&n.remove&&n.remove(t,e)})),this.group.removeAll()},JV.prototype.dispose=function(t,e){l.k(this._features,(function(n){n instanceof WV&&n.dispose&&n.dispose(t,e)}))},JV.type="toolbox";var tF,eF=JV;function nF(){return null!==tF&&tF.apply(this,arguments)||this}a(nF,tF=WV),nF.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o="svg"===e.getZr().painter.getType(),r=o?"svg":n.get("type",!0)||"png";e=e.getConnectedDataURL({type:r,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),t=s.a.browser;if(Object(l.w)(MouseEvent)&&(t.newEdge||!t.ie&&!t.edge)){t=document.createElement("a");var a=(t.download=i+"."+r,t.target="_blank",t.href=e,new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1}));t.dispatchEvent(a)}else if(window.navigator.msSaveOrOpenBlob||o){t=e.split(","),a=-1<t[0].indexOf("base64");var u=o?decodeURIComponent(t[1]):t[1];o=(a&&(u=window.atob(u)),i+"."+r);if(window.navigator.msSaveOrOpenBlob){for(var c=u.length,h=new Uint8Array(c);c--;)h[c]=u.charCodeAt(c);t=new Blob([h]),window.navigator.msSaveOrOpenBlob(t,o)}else a=document.createElement("iframe"),document.body.appendChild(a),r=a.contentWindow,t=r.document,t.open("image/svg+xml","replace"),t.write(u),t.close(),r.focus(),t.execCommand("SaveAs",!0,o),document.body.removeChild(a)}else r=n.get("lang"),t='<body style="margin:0;"><img src="'+e+'" style="max-width:100%;" title="'+(r&&r[0]||"")+'" /></body>',o=window.open(),o.document.write(t),o.document.title=i},nF.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}};var iF,oF=nF,rF="__ec_magicType_stack__",aF=[["line","bar"],["stack"]];a(sF,iF=WV),sF.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return l.k(t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},sF.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},sF.prototype.onclick=function(t,e,n){var i,o,r=this.model,a=r.get(["seriesIndex",n]);lF[n]&&(i={series:[]},l.k(aF,(function(t){0<=l.r(t,n)&&l.k(t,(function(t){r.setIconStatus(t,"normal")}))})),r.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==a?null:{seriesIndex:a}},(function(t){var e=t.subType,o=t.id;e=lF[n](e,o,t,r),e&&(l.i(e,t.option),i.series.push(e)),o=t.coordinateSystem;if(o&&"cartesian2d"===o.type&&("line"===n||"bar"===n)&&(e=o.getAxesByScale("ordinal")[0],e)){var a=e.dim+"Axis",s=t.getReferringComponents(a,ji).models[0].componentIndex;i[a]=i[a]||[];for(var u=0;u<=s;u++)i[a][s]=i[a][s]||{};i[a][s].boundaryGap="bar"===n}})),"stack"===(t=n)&&(o=l.I({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(t="tiled")),e.dispatchAction({type:"changeMagicType",currentType:t,newOption:i,newTitle:o,featureName:"magicType"}))},e=sF;function sF(){return null!==iF&&iF.apply(this,arguments)||this}var lF={line:function(t,e,n,i){if("bar"===t)return l.I({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return l.I({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){if(n=n.get("stack")===rF,"line"===t||"bar"===t)return i.setIconStatus("stack",n?"normal":"emphasis"),l.I({id:e,stack:n?"":rF},i.get(["option","stack"])||{},!0)}},uF=(Cm({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)})),e),cF=new Array(60).join("-"),hF="\t";function pF(t){e={},n=[],i=[],t.eachRawSeries((function(t){var o,r,a=t.coordinateSystem;!a||"cartesian2d"!==a.type&&"polar"!==a.type||"category"!==(o=a.getBaseAxis()).type?n.push(t):(r=o.dim+"_"+o.index,e[r]||(e[r]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[r].series.push(t))}));var e,n,i,o,r;t={seriesGroupByCategoryAxis:e,other:n,meta:i};return{value:l.n([(o=t.seriesGroupByCategoryAxis,r=[],l.k(o,(function(t,e){for(var n=t.categoryAxis,i=t.valueAxis.dim,o=[" "].concat(l.H(t.series,(function(t){return t.name}))),a=[n.model.getCategories()],s=(l.k(t.series,(function(t){var e=t.getRawData();a.push(t.getRawData().mapArray(e.mapDimension(i),(function(t){return t})))})),[o.join(hF)]),u=0;u<a[0].length;u++){for(var c=[],h=0;h<a.length;h++)c.push(a[h][u]);s.push(c.join(hF))}r.push(s.join("\n"))})),r.join("\n\n"+cF+"\n\n")),(o=t.other,l.H(o,(function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,o=e.getName(arguments[t-1]),r=0;r<t-1;r++)i[r]=arguments[r];n.push((o?o+hF:"")+i.join(hF))})),n.join("\n")})).join("\n\n"+cF+"\n\n"))],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+cF+"\n\n"),meta:t.meta}}function dF(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var fF=new RegExp("["+hF+"]+","g");function gF(t,e){t=t.split(new RegExp("\n*"+cF+"\n*","g"));var n={series:[]};return l.k(t,(function(t,i){var o,r;0<=t.slice(0,t.indexOf("\n")).indexOf(hF)?(r=function(t){for(var e=t.split(/\n+/g),n=(t=dF(e.shift()).split(fF),[]),i=l.H(t,(function(t){return{name:t,data:[]}})),o=0;o<e.length;o++){var r=dF(e[o]).split(fF);n.push(r.shift());for(var a=0;a<r.length;a++)i[a]&&(i[a].data[o]=r[a])}return{series:i,categories:n}}(t),o=(i=e[i]).axisDim+"Axis",i&&(n[o]=n[o]||[],n[o][i.axisIndex]={data:r.categories},n.series=n.series.concat(r.series))):(r=function(t){for(var e=t.split(/\n+/g),n=(t=dF(e.shift()),[]),i=0;i<e.length;i++){var o=dF(e[i]);if(o){for(var r,a=o.split(fF),s=void 0,l=(o=!1,s=isNaN(a[0])?(o=!0,r=a[0],a=a.slice(1),n[i]={name:r,value:[]},n[i].value):n[i]=[],0);l<a.length;l++)s.push(+a[l]);1===s.length&&(o?n[i].value=s[0]:n[i]=s[0])}}return{name:t,data:n}}(t),n.series.push(r))})),n}a(mF,yF=WV),mF.prototype.onclick=function(t,e){var n=e.getDom(),i=this.model,o=(this._dom&&n.removeChild(this._dom),document.createElement("div")),r=(o.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",o.style.backgroundColor=i.get("backgroundColor")||"#fff",document.createElement("h4")),a=i.get("lang")||[],s=(r.innerHTML=a[0]||i.get("title"),r.style.cssText="margin: 10px 20px;",r.style.color=i.get("textColor"),document.createElement("div")),u=document.createElement("textarea"),c=(s.style.cssText="display:block;width:100%;overflow:auto;",i.get("optionToContent")),h=i.get("contentToOption"),p=(t=pF(t),l.w(c)?(d=c(e.getOption()),l.C(d)?s.innerHTML=d:l.v(d)&&s.appendChild(d)):(s.appendChild(u),u.readOnly=i.get("readOnly"),u.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",u.style.color=i.get("textColor"),u.style.borderColor=i.get("textareaBorderColor"),u.style.backgroundColor=i.get("textareaColor"),u.value=t.value),t.meta),d=document.createElement("div"),f=(t=(d.style.cssText="position:absolute;bottom:0;left:0;right:0;","float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px"),document.createElement("div")),g=document.createElement("div"),y=(t=(t+=";background-color:"+i.get("buttonColor"))+";color:"+i.get("buttonTextColor"),this);function m(){n.removeChild(o),y._dom=null}X(f,"click",m),X(g,"click",(function(){if(null==h&&null!=c||null!=h&&null==c)m();else{var t;try{t=l.w(h)?h(s,e.getOption()):gF(u.value,p)}catch(t){throw m(),new Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),m()}})),f.innerHTML=a[1],g.innerHTML=a[2],g.style.cssText=t,f.style.cssText=t,i.get("readOnly")||d.appendChild(g),d.appendChild(f),o.appendChild(r),o.appendChild(s),o.appendChild(d),s.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},mF.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},mF.prototype.dispose=function(t,e){this.remove(t,e)},mF.getDefaultOption=function(t){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}};var yF;Eg=mF;function mF(){return null!==yF&&yF.apply(this,arguments)||this}Cm({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];l.k(t.newOption.series,(function(t){var i,o,r=e.getSeriesByName(t.name)[0];r?(r=r.get("data"),n.push({name:t.name,data:(i=t.data,o=r,l.H(i,(function(t,e){var n;e=o&&o[e];return l.A(e)&&!l.t(e)&&(l.A(t)&&!l.t(t)||(t={value:t}),n=null!=e.name&&null==t.name,t=l.i(t,e),n&&delete t.name),t})))})):n.push(l.m({type:"scatter"},t))})),e.mergeOption(l.i({series:n},t.newOption))}));var vF=Eg,xF=l.k,_F=ki();function bF(t){return t=_F(t),t.snapshots||(t.snapshots=[{}]),t.snapshots}a(SF,wF=WV),SF.prototype.onclick=function(t,e){_F(t).snapshots=null,e.dispatchAction({type:"restore",from:this.uid})},SF.getDefaultOption=function(t){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])}};var wF;Vg=SF;function SF(){return null!==wF&&wF.apply(this,arguments)||this}Cm({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var MF=Vg,IF=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];OF.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){(t.coordRanges||(t.coordRanges=[])).push(e),t.coordRange||(t.coordRange=e,n=LF[t.brushType](0,n,e),t.__rangeOffset={offset:jF[t.brushType](n.values,t.range,[1,1]),xyMinMax:n.xyMinMax})})),t},OF.prototype.matchOutputRanges=function(t,e,n){Object(l.k)(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&Object(l.k)(i.coordSyses,(function(i){var o=LF[t.brushType](1,i,t.range,!0);n(t,o.values,i,e)}))}),this)},OF.prototype.setInputRanges=function(t,e){Object(l.k)(t,(function(t){var n,i=this.findTargetInfo(t,e);t.range=t.range||[],i&&!0!==i&&(t.panelId=i.panelId,i=LF[t.brushType](0,i.coordSys,t.coordRange),n=t.__rangeOffset,t.range=n?jF[t.brushType](i.values,n.offset,function(t,e){return t=NF(t),e=NF(e),t=[t[0]/e[0],t[1]/e[1]],isNaN(t[0])&&(t[0]=1),isNaN(t[1])&&(t[1]=1),t}(i.xyMinMax,n.xyMinMax)):i.values)}),this)},OF.prototype.makePanelOpts=function(t,e){return Object(l.H)(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:hP(i),isTargetByCursor:dP(i,t,n.coordSysModel),getLinearBrushOtherExtent:pP(i)}}))},OF.prototype.controlSeries=function(t,e,n){return t=this.findTargetInfo(t,n),!0===t||t&&0<=Object(l.r)(t.coordSyses,e.coordinateSystem)},OF.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=CF(e,t),o=0;o<n.length;o++){var r=n[o],a=t.panelId;if(a){if(r.panelId===a)return r}else for(var s=0;s<kF.length;s++)if(kF[s](i,r))return r}return!0},Ys=OF;function OF(t,e,n){var i=this,o=(this._targetInfoList=[],CF(e,t));Object(l.k)(AF,(function(t,e){n&&n.include&&!(0<=Object(l.r)(n.include,e))||t(o,i._targetInfoList)}))}function TF(t){return t[0]>t[1]&&t.reverse(),t}function CF(t,e){return Li(t,e,{includeMainTypes:IF})}var AF={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,o=(t=t.gridModels,Object(l.f)()),r={},a={};(n||i||t)&&(Object(l.k)(n,(function(t){t=t.axis.grid.model,o.set(t.id,t),r[t.id]=!0})),Object(l.k)(i,(function(t){t=t.axis.grid.model,o.set(t.id,t),a[t.id]=!0})),Object(l.k)(t,(function(t){o.set(t.id,t),r[t.id]=!0,a[t.id]=!0})),o.each((function(t){var o=t.coordinateSystem,s=[];Object(l.k)(o.getCartesians(),(function(t,e){(0<=Object(l.r)(n,t.getAxis("x").model)||0<=Object(l.r)(i,t.getAxis("y").model))&&s.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:s[0],coordSyses:s,getPanelRect:DF.grid,xAxisDeclared:r[t.id],yAxisDeclared:a[t.id]})})))},geo:function(t,e){Object(l.k)(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:DF.geo})}))}},kF=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel;t=t.gridModel;return(t=!(t=!t&&n?n.axis.grid.model:t)&&i?i.axis.grid.model:t)&&t===e.gridModel},function(t,e){return t=t.geoModel,t&&t===e.geoModel}],DF={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(If(t)),e}},LF={lineX:Object(l.h)(PF,0),lineY:Object(l.h)(PF,1),rect:function(t,e,n,i){var o=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i);t=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),e=[TF([o[0],t[0]]),TF([o[1],t[1]])];return{values:e,xyMinMax:e}},polygon:function(t,e,n,i){var o=[[1/0,-1/0],[1/0,-1/0]];return{values:Object(l.H)(n,(function(n){return n=t?e.pointToData(n,i):e.dataToPoint(n,i),o[0][0]=Math.min(o[0][0],n[0]),o[1][0]=Math.min(o[1][0],n[1]),o[0][1]=Math.max(o[0][1],n[0]),o[1][1]=Math.max(o[1][1],n[1]),n})),xyMinMax:o}}};function PF(t,e,n,i){var o=n.getAxis(["x","y"][t]),r=(n=TF(Object(l.H)([0,1],(function(t){return e?o.coordToData(o.toLocalCoord(i[t]),!0):o.toGlobalCoord(o.dataToCoord(i[t]))}))),[]);return r[t]=n,r[1-t]=[NaN,NaN],{values:n,xyMinMax:r}}var jF={lineX:Object(l.h)(RF,0),lineY:Object(l.h)(RF,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return Object(l.H)(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function RF(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function NF(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var EF,zF=Ys,BF=l.k;a(VF,EF=WV),VF.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new cP(n.getZr()),this._brushController.on("brush",l.c(this._onBrush,this)).mount());var o=t,r=e,a=this,s=a._isZoomActive;i&&"takeGlobalCursor"===i.type&&(s="dataZoomSelect"===i.key&&i.dataZoomSelectActive),a._isZoomActive=s,o.setIconStatus("zoom",s?"emphasis":"normal"),i=new zF(HF(o),r,{include:["grid"]}).makePanelOpts(n,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"})),a._brushController.setPanels(i).enableBrush(!(!s||!i.length)&&{brushType:"auto",brushStyle:o.getModel("brushStyle").getItemStyle()}),t.setIconStatus("back",1<function(t){return bF(t).length}(e)?"emphasis":"normal")},VF.prototype.onclick=function(t,e,n){FF[n].call(this)},VF.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},VF.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},VF.prototype._onBrush=function(t){var e,n,i,o,r=t.areas;function a(t,i,o){i=i.getAxis(t);var r,a,s,l=i.model;r=t,a=l,n.eachComponent({mainType:"dataZoom",subType:"select"},(function(t){t.getAxisModel(r,a.componentIndex)&&(s=t)})),t=s,l=t.findRepresentativeAxisProxy(l).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(o=nL(0,o.slice(),i.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),t&&(e[t.id]={dataZoomId:t.id,startValue:o[0],endValue:o[1]})}t.isEnd&&r.length&&(e={},n=this.ecModel,this._brushController.updateCovers([]),new zF(HF(this.model),n,{include:["grid"]}).matchOutputRanges(r,n,(function(t,e,n){"cartesian2d"===n.type&&("rect"===(t=t.brushType)?(a("x",n,e[0]),a("y",n,e[1])):a({lineX:"x",lineY:"y"}[t],n,e))})),t=e,o=bF(i=n),xF(t,(function(t,e){for(var n,r=o.length-1;0<=r&&!o[r][e];r--);r<0&&(n=i.queryComponents({mainType:"dataZoom",subType:"select",id:e})[0])&&(n=n.getPercentRange(),o[0][e]={dataZoomId:e,start:n[0],end:n[1]})})),o.push(t),this._dispatchZoomAction(e))},VF.prototype._dispatchZoomAction=function(t){var e=[];BF(t,(function(t,n){e.push(l.d(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},VF.getDefaultOption=function(t){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},cl=VF;function VF(){return null!==EF&&EF.apply(this,arguments)||this}var FF={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){var t,e,n;this._dispatchZoomAction((t=this.ecModel,e=bF(t),t=e[e.length-1],1<e.length&&e.pop(),n={},xF(t,(function(t,i){for(var o=e.length-1;0<=o;o--)if(t=e[o][i]){n[i]=t;break}})),n))}};function HF(t){return t={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)},null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}Qi="dataZoom",n=function(t){var e,n,i=t.getComponent("toolbox",0),o=["feature","dataZoom"];if(i&&null!=i.get(o))return e=i.getModel(o),n=[],i=Li(t,HF(e)),BF(i.xAxisModels,(function(t){return r(t,"xAxis","xAxisIndex")})),BF(i.yAxisModels,(function(t){return r(t,"yAxis","yAxisIndex")})),n;function r(t,i,o){t=t.componentIndex,i={type:"select",$fromToolbox:!0,filterMode:e.get("filterMode",!0)||"filter",id:"\0_ec_\0toolbox-dataZoom_"+i+t},i[o]=t,n.push(i)}},Object(l.b)(null==ku.get(Qi)&&n),ku.set(Qi,n);var GF,WF=cl;function YF(){var t=null!==GF&&GF.apply(this,arguments)||this;return t.type=YF.type,t}a(YF,GF=uu),YF.type="tooltip",YF.dependencies=["axisPointer"],YF.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 UF=YF;function XF(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}function ZF(t){if(s.a.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var qF=ZF(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function KF(t,e){if(!t)return e;e=Pl(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var QF=KF(ZF(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),$F=KF(qF,"transform"),JF="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(s.a.transform3dSupported?"will-change:transform;":"");function tH(t,e,n){if(t=t.toFixed(0)+"px",e=e.toFixed(0)+"px",!s.a.transformSupported)return n?"top:"+e+";left:"+t+";":[["top",e],["left",t]];var i=s.a.transform3dSupported;t="translate"+(i?"3d":"")+"("+t+","+e+(i?",0":"")+")";return n?"top:0;left:0;"+$F+":"+t+";":[["top",0],["left",0],[qF,t]]}function eH(t,e,n){var i,o,r=[],a=t.get("transitionDuration"),u=t.get("backgroundColor"),c=t.get("shadowBlur"),h=t.get("shadowColor"),p=t.get("shadowOffsetX"),d=t.get("shadowOffsetY"),f=t.getModel("textStyle"),g=ep(t,"html");return r.push("box-shadow:"+p+"px "+d+"px "+c+"px "+h),e&&a&&r.push((h="opacity"+(c=" "+(p=a)/2+"s "+(d="cubic-bezier(0.23,1,0.32,1)"))+",visibility"+c,n||(c=" "+p+"s "+d,h+=s.a.transformSupported?","+$F+c:",left"+c+",top"+c),QF+":"+h)),u&&r.push("background-color:"+u),Object(l.k)(["width","color","radius"],(function(e){var n="border-"+e,i=Pl(n);i=t.get(i);null!=i&&r.push(n+":"+i+("color"===e?"":"px"))})),r.push((o=[],e=(i=f).get("fontSize"),(a=i.getTextColor())&&o.push("color:"+a),o.push("font:"+i.getFont()),e&&o.push("line-height:"+Math.round(3*e/2)+"px"),a=i.get("textShadowColor"),e=i.get("textShadowBlur")||0,n=i.get("textShadowOffsetX")||0,p=i.get("textShadowOffsetY")||0,a&&e&&o.push("text-shadow:"+n+"px "+p+"px "+e+"px "+a),Object(l.k)(["decoration","align"],(function(t){var e=i.get(t);e&&o.push("text-"+t+":"+e)})),o.join(";"))),null!=g&&r.push("padding:"+jl(g).join("px ")+"px"),r.join(";")+";"}function nH(t,e,n,i,o){var r,a,s=e&&e.painter;n?(n=s&&s.getViewportRoot())&&(r=t,a=document.body,z(E,n,i,o,!0)&&z(r,a,E[0],E[1])):(t[0]=i,t[1]=o,(n=s&&s.getViewportRootOffset())&&(t[0]+=n.offsetLeft,t[1]+=n.offsetTop)),t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function iH(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,s.a.wxa)return null;var i=document.createElement("div"),o=(i.domBelongToZr=!0,this.el=i,this._zr=e.getZr()),r=(n=this._appendToBody=n&&n.appendToBody,nH(this._styleCoord,o,n,e.getWidth()/2,e.getHeight()/2),(n?document.body:t).appendChild(i),this._container=t,this);i.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},i.onmousemove=function(t){var e;t=t||window.event,r._enterable||(e=o.handler,U(o.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t))},i.onmouseleave=function(){r._inContent=!1,r._enterable&&r._show&&r.hideLater(r._hideDelay)}}iH.prototype.update=function(t){var e=this._container,n=(n="position",(i=(i=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(i))?n?i[n]:i:null),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative"),t.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=t.get("className")||""},iH.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,o=this._styleCoord;n.innerHTML?i.cssText=JF+eH(t,!this._firstShow,this._longHide)+tH(o[0],o[1],!0)+"border-color:"+Hl(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},iH.prototype.setContent=function(t,e,n,i,o){var r=this.el;if(null==t)r.innerHTML="";else{var a="";if(Object(l.C)(o)&&"item"===n.get("trigger")&&!XF(n)&&(a=function(t,e,n){if(!Object(l.C)(n)||"inside"===n)return"";var i=t.get("backgroundColor"),o=(t=t.get("borderWidth"),n=(e=Hl(e),n="left"===(n=n)?"right":"right"===n?"left":"top"===n?"bottom":"top"),Math.max(1.5*Math.round(t),6)),r="",a=$F+":",s=(-1<Object(l.r)(["left","right"],n)?(r+="top:50%",a+="translateY(-50%) rotate("+(s="left"==n?-225:-45)+"deg)"):(r+="left:50%",a+="translateX(-50%) rotate("+(s="top"==n?225:45)+"deg)"),s*Math.PI/180),u=o+t;s=u*Math.abs(Math.cos(s))+u*Math.abs(Math.sin(s)),e=e+" solid "+t+"px;";return'<div style="'+["position:absolute;width:"+o+"px;height:"+o+"px;",(r+=";"+n+":-"+Math.round(100*((s-Math.SQRT2*t)/2+Math.SQRT2*t-(s-u)/2))/100+"px")+";"+a+";","border-bottom:"+e,"border-right:"+e,"background-color:"+i+";"].join("")+'"></div>'}(n,i,o)),Object(l.C)(t))r.innerHTML=t+a;else if(t){r.innerHTML="",Object(l.t)(t)||(t=[t]);for(var s=0;s<t.length;s++)Object(l.v)(t[s])&&t[s].parentNode!==r&&r.appendChild(t[s]);a&&r.childNodes.length&&((n=document.createElement("div")).innerHTML=a,r.appendChild(n))}}},iH.prototype.setEnterable=function(t){this._enterable=t},iH.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},iH.prototype.moveTo=function(t,e){var n,i=this._styleCoord;nH(i,this._zr,this._appendToBody,t,e),null!=i[0]&&null!=i[1]&&(n=this.el.style,t=tH(i[0],i[1]),Object(l.k)(t,(function(t){n[t[0]]=t[1]})))},iH.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},iH.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",s.a.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},iH.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Object(l.c)(this.hide,this),t)):this.hide())},iH.prototype.isShow=function(){return this._show},iH.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)};var oH=iH;function rH(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),lH(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}function aH(t){return Math.max(0,t)}function sH(t){var e=aH(t.shadowBlur||0),n=aH(t.shadowOffsetX||0);t=aH(t.shadowOffsetY||0);return{left:aH(e-n),right:aH(e+n),top:aH(e-t),bottom:aH(e+t)}}function lH(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}rH.prototype.update=function(t){t.get("alwaysShowContent")&&this._moveIfResized()},rH.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},rH.prototype.setContent=function(t,e,n,i,o){var r=this,a=(l.A(t)&&Eu(""),this.el&&this._zr.remove(this.el),n.getModel("textStyle")),s=(this.el=new ia({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:ep(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),l.k(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){r.el.style[t]=n.get(t)})),l.k(["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}))},rH.prototype.setEnterable=function(t){this._enterable=t},rH.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect();t=sH(t.style);return[e.width+t.left+t.right,e.height+t.top+t.bottom]},rH.prototype.moveTo=function(t,e){var n,i,o=this.el;o&&(lH(i=this._styleCoord,this._zr,t,e),t=i[0],e=i[1],n=aH((i=o.style).borderWidth||0),i=sH(i),o.x=t+n+i.left,o.y=e+n+i.top,o.markRedraw())},rH.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},rH.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},rH.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(l.c(this.hide,this),t)):this.hide())},rH.prototype.isShow=function(){return this._show},rH.prototype.dispose=function(){this._zr.remove(this.el)};var uH,cH=rH,hH=new Br({shape:{x:-1,y:-1,width:2,height:2}});function pH(){var t=null!==uH&&uH.apply(this,arguments)||this;return t.type=pH.type,t}function dH(t,e,n){for(var i=e.ecModel,o=n?(o=new Xs(n,i,i),new Xs(e.option,o,i)):e,r=t.length-1;0<=r;r--){var a=t[r];a&&(a instanceof Xs&&(a=a.get("tooltip",!0)),(a=Object(l.C)(a)?{formatter:a}:a)&&(o=new Xs(a,o,i)))}return o}function fH(t,e){return t.dispatchAction||Object(l.c)(e.dispatchAction,e)}function gH(t){return"center"===t||"middle"===t}a(pH,uH=xp),pH.prototype.init=function(t,e){var n;!s.a.node&&e.getDom()&&(t=t.getComponent("tooltip"),n=this._renderMode="auto"===(n=t.get("renderMode"))?s.a.domSupported?"html":"richText":n||"html",this._tooltipContent="richText"===n?new cH(e):new oH(e.getDom(),e,{appendToBody:t.get("appendToBody",!0)}))},pH.prototype.render=function(t,e,n){!s.a.node&&n.getDom()&&(this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent"),(e=this._tooltipContent).update(t),e.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?Qf(this,"_updatePosition",50,"fixRate"):$f(this,"_updatePosition"))},pH.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");rz("itemTooltip",this._api,Object(l.c)((function(e,n,i){"none"!==t&&(0<=t.indexOf(e)?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},pH.prototype._keepShow=function(){var t,e=this._tooltipModel,n=this._ecModel,i=this._api;null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")&&(t=this,clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){i.isDisposed()||t.manuallyShowTip(e,n,i,{x:t._lastX,y:t._lastY,dataByCoordSys:t._lastDataByCoordSys})})))},pH.prototype.manuallyShowTip=function(t,e,n,i){var o,r,a,l;i.from!==this.uid&&!s.a.node&&n.getDom()&&(o=fH(i,n),this._ticket="",l=i.dataByCoordSys,(r=function(t,e,n){var i=Pi(t).queryOptionMap,o=i.keys()[0];if(o&&"series"!==o){var r;e=Ni(e,o,i.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(e&&(n.getViewOfComponentModel(e).group.traverse((function(e){var n=oa(e).tooltipConfig;if(n&&n.name===t.name)return r=e,!0})),r))return{componentMainType:o,componentIndex:e.componentIndex,el:r}}}(i,e,n))?((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:i.position,positionDefault:"bottom"},o)):i.tooltip&&null!=i.x&&null!=i.y?((a=hH).x=i.x,a.y=i.y,a.update(),oa(a).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:a},o)):l?this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:l,tooltipOption:i.tooltipOption},o):null!=i.seriesIndex?this._manuallyAxisShowTip(t,e,n,i)||(a=(r=hz(i,e)).point[0],l=r.point[1],null!=a&&null!=l&&this._tryShow({offsetX:a,offsetY:l,target:r.el,position:i.position,positionDefault:"bottom"},o)):null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o)))},pH.prototype.manuallyHideTip=function(t,e,n,i){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(fH(i,n))},pH.prototype._manuallyAxisShowTip=function(t,e,n,i){var o=i.seriesIndex,r=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=r&&null!=a&&(a=e.getSeriesByIndex(o),a&&(e=dH([a.getData().getItemModel(r),a,(a.coordinateSystem||{}).model],this._tooltipModel),"axis"===e.get("trigger"))))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:r,position:i.position}),!0},pH.prototype._tryShow=function(t,e){var n,i,o,r=t.target;this._tooltipModel&&(this._lastX=t.offsetX,this._lastY=t.offsetY,(n=t.dataByCoordSys)&&n.length?this._showAxisTooltip(n,t):r?(Lg(r,(function(t){return null!=oa(t).dataIndex?(i=t,1):null!=oa(t).tooltipConfig&&(o=t,1)}),!(this._lastDataByCoordSys=null)),i?this._showSeriesItemTooltip(t,i,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)):(this._lastDataByCoordSys=null,this._hide(e)))},pH.prototype._showOrMove=function(t,e){t=t.get("showDelay"),e=Object(l.c)(e,this),clearTimeout(this._showTimout),0<t?this._showTimout=setTimeout(e,t):e()},pH.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,o=[e.offsetX,e.offsetY],r=dH([e.tooltipOption],i),a=this._renderMode,s=[],u=Uh("section",{blocks:[],noHeader:!0}),c=[],h=new np,p=(Object(l.k)(t,(function(t){Object(l.k)(t.dataByAxis,(function(t){var e,o,r=n.getComponent(t.axisDim+"Axis",t.axisIndex),p=t.value;r&&null!=p&&(e=HE(p,r.axis,n,t.seriesDataIndices,t.valueLabelOpt),o=Uh("section",{header:e,noHeader:!Object(l.T)(e),sortBlocks:!0,blocks:[]}),u.blocks.push(o),Object(l.k)(t.seriesDataIndices,(function(u){var d,f=n.getSeriesByIndex(u.seriesIndex),g=(u=u.dataIndexInside,f.getDataParams(u));g.dataIndex<0||(g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=qS(r.axis,{value:p}),g.axisValueLabel=e,g.marker=h.makeTooltipMarker("item",Hl(g.color),a),(d=(u=Zc(f.formatTooltip(u,!0,null))).frag)&&(f=dH([f],i).get("valueFormatter"),o.blocks.push(f?Object(l.m)({valueFormatter:f},d):d)),u.text&&c.push(u.text),s.push(g))})))}))})),u.blocks.reverse(),c.reverse(),e.position),d=(e=r.get("order"),e=Qh(u,h,a,e,n.get("useUTC"),r.get("textStyle")),e=(e&&c.unshift(e),"richText"===a?"\n\n":"<br/>"),c.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,h)}))},pH.prototype._showSeriesItemTooltip=function(t,e,n){var i,o,r,a,s,u=this._ecModel,c=(e=oa(e),e.seriesIndex),h=u.getSeriesByIndex(c),p=e.dataModel||h,d=e.dataIndex,f=(e=e.dataType,p.getData(e)),g=this._renderMode,y=t.positionDefault,m=dH([f.getItemModel(d),p,h&&(h.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null);h=m.get("trigger");null!=h&&"item"!==h||(i=p.getDataParams(d,e),o=new np,i.marker=o.makeTooltipMarker("item",Hl(i.color),g),y=Zc(p.formatTooltip(d,!1,e)),h=m.get("order"),e=m.get("valueFormatter"),r=y.frag,a=r?Qh(e?Object(l.m)({valueFormatter:e},r):r,o,g,h,u.get("useUTC"),m.get("textStyle")):y.text,s="item_"+p.name+"_"+d,this._showOrMove(m,(function(){this._showTooltipContent(m,a,i,s,t.offsetX,t.offsetY,t.position,t.target,o)})),n({type:"showTip",dataIndexInside:d,dataIndex:f.getRawIndex(d),seriesIndex:c,from:this.uid}))},pH.prototype._showComponentItemTooltip=function(t,e,n){var i=oa(e),o=i.tooltipConfig.option||{},r=[o=Object(l.C)(o)?{content:o,formatter:o}:o],a=(i=this._ecModel.getComponent(i.componentMainType,i.componentIndex),i=(i&&r.push(i),r.push({formatter:o.content}),t.positionDefault),dH(r,this._tooltipModel,i?{position:i}:null)),s=a.get("content"),u=Math.random()+"",c=new np;this._showOrMove(a,(function(){var n=Object(l.d)(a.get("formatterParams")||{});this._showTooltipContent(a,s,n,u,t.offsetX,t.offsetY,t.position,e,c)})),n({type:"showTip",from:this.uid})},pH.prototype._showTooltipContent=function(t,e,n,i,o,r,a,s,u){var c,h,p,d,f;this._ticket="",t.get("showContent")&&t.get("show")&&(c=this._tooltipContent,h=t.get("formatter"),a=a||t.get("position"),e=e,p=this._getNearestPoint([o,r],n,t.get("trigger"),t.get("borderColor")).color,h&&(e=Object(l.C)(h)?(d=t.ecModel.get("useUTC"),e=h,Fl(e=(f=Object(l.t)(n)?n[0]:n)&&f.axisType&&0<=f.axisType.indexOf("time")?yl(f.axisValue,e,d):e,n,!0)):Object(l.w)(h)?(f=Object(l.c)((function(e,i){e===this._ticket&&(c.setContent(i,u,t,p,a),this._updatePosition(t,a,o,r,c,n,s))}),this),this._ticket=i,h(n,i,f)):h),c.setContent(e,u,t,p,a),c.show(t,p),this._updatePosition(t,a,o,r,c,n,s))},pH.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||Object(l.t)(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:Object(l.t)(e)?void 0:{color:i||e.color||e.borderColor}},pH.prototype._updatePosition=function(t,e,n,i,o,r,a){var s,u=this._api.getWidth(),c=this._api.getHeight(),h=(e=e||t.get("position"),o.getSize()),p=t.get("align"),d=t.get("verticalAlign"),f=a&&a.getBoundingRect().clone();a&&f.applyTransform(a.transform),Object(l.w)(e)&&(e=e([n,i],r,o.el,f,{viewSize:[u,c],contentSize:h.slice()})),Object(l.t)(e)?(n=Qn(e[0],u),i=Qn(e[1],c)):Object(l.A)(e)?((r=e).width=h[0],r.height=h[1],n=(r=ql(r,{width:u,height:c})).x,i=r.y,d=p=null):(n=(s=Object(l.C)(e)&&a?function(t,e,n,i){var o=n[0],r=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-o/2,l=e.y+c/2-r/2;break;case"top":s=e.x+u/2-o/2,l=e.y-r-a;break;case"bottom":s=e.x+u/2-o/2,l=e.y+c+a;break;case"left":s=e.x-o-a,l=e.y+c/2-r/2;break;case"right":s=e.x+u+a,l=e.y+c/2-r/2}return[s,l]}(e,f,h,t.get("borderWidth")):function(t,e,n,i,o,r,a){n=n.getSize();var s=n[0];n=n[1];return null!=r&&(i<t+s+r+2?t-=s+r:t+=r),null!=a&&(o<e+n+a?e-=n+a:e+=a),[t,e]}(n,i,o,u,c,p?null:20,d?null:20))[0],i=s[1]),p&&(n-=gH(p)?h[0]/2:"right"===p?h[0]:0),d&&(i-=gH(d)?h[1]/2:"bottom"===d?h[1]:0),XF(t)&&(r=n,a=i,e=u,f=c,p=(p=o).getSize(),d=p[0],p=p[1],r=Math.min(r+d,e)-d,a=Math.min(a+p,f)-p,r=Math.max(r,0),a=Math.max(a,0),n=(s=[r,a])[0],i=s[1]),o.moveTo(n,i)},pH.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&Object(l.k)(n,(function(n,r){n=n.dataByAxis||[];var a=(t[r]||{}).dataByAxis||[];(o=o&&n.length===a.length)&&Object(l.k)(n,(function(t,n){n=a[n]||{};var r=t.seriesDataIndices||[],s=n.seriesDataIndices||[];(o=o&&t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&r.length===s.length)&&Object(l.k)(r,(function(t,e){e=s[e],o=o&&t.seriesIndex===e.seriesIndex&&t.dataIndex===e.dataIndex})),i&&Object(l.k)(t.seriesDataIndices,(function(t){t=t.seriesIndex;var n=e[t];t=i[t];n&&t&&t.data!==n.data&&(o=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!o},pH.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},pH.prototype.dispose=function(t,e){!s.a.node&&e.getDom()&&($f(this,"_updatePosition"),this._tooltipContent.dispose(),lz("itemTooltip",e))},pH.type="tooltip";var yH=pH,mH=["rect","polygon","keep","clear"];function vH(t,e){var n,i,o,r=vi(t?t.brush:[]);r.length&&(n=[],l.k(r,(function(t){t=t.hasOwnProperty("toolbox")?t.toolbox:[],t instanceof Array&&(n=n.concat(t))})),r=t&&t.toolbox,(r=l.t(r)?r[0]:r)||(t.toolbox=[r={feature:{}}]),(t=(r=(t=r.feature||(r.feature={})).brush||(t.brush={})).type||(r.type=[])).push.apply(t,n),i=t,o={},l.k(i,(function(t){o[t]=1})),i.length=0,l.k(o,(function(t,e){i.push(e)})),e&&!t.length&&t.push.apply(t,mH))}var xH=l.k;function _H(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return 1}function bH(t,e,n){var i={};return xH(e,(function(e){var o=i[e]=(r.prototype.__hidden=r.prototype,new r);function r(){}xH(t[e],(function(t,i){xA.isValidType(i)&&(t={type:i,visual:t},n&&n(t,e),o[i]=new xA(t),"opacity"===i&&((t=l.d(t)).type="colorAlpha",o.__hidden.__alphaForOpacity=new xA(t)))}))})),i}function wH(t,e,n){var i;l.k(n,(function(t){e.hasOwnProperty(t)&&_H(e[t])&&(i=!0)})),i&&l.k(n,(function(n){e.hasOwnProperty(n)&&_H(e[n])?t[n]=l.d(e[n]):delete t[n]}))}var SH={lineX:MH(0),lineY:MH(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&wO(n.range,t[0],t[1])},rect:function(t,e,n){if(n=n.range,!t||n.length<=1)return!1;var i=t.x,o=t.y,r=t.width,a=t.height,s=n[0];return!!(wO(n,i,o)||wO(n,i+r,o)||wO(n,i,o+a)||wO(n,i+r,o+a)||xn.create(t).contain(s[0],s[1])||Pf(i,o,i+r,o,n)||Pf(i,o,i,o+a,n)||Pf(i+r,o,i+r,o+a,n)||Pf(i,o+a,i+r,o+a,n))||void 0}}};function MH(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e)return i=i.range,IH(e[t],i)},rect:function(i,o,r){if(i)return r=r.range,(i=[i[e[t]],i[e[t]]+i[n[t]]])[1]<i[0]&&i.reverse(),IH(i[0],r)||IH(i[1],r)||IH(r[0],i)||IH(r[1],i)}}}function IH(t,e){return e[0]<=t&&t<=e[1]}var OH=["inBrush","outOfBrush"],TH="__ecBrushSelect",CH="__ecInBrushSelectEvent";function AH(t){t.eachComponent({mainType:"brush"},(function(e){(e.brushTargetManager=new zF(e.option,t)).setInputRanges(e.areas,t)}))}function kH(t,e,n){var i,o,r,a,s,u,c=[];t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),AH(t),t.eachComponent({mainType:"brush"},(function(e,n){var r={brushId:e.id,brushIndex:n,brushName:e.name,areas:l.d(e.areas),selected:[]},a=(c.push(r),e.option),s=a.brushLink,u=[],h=[],p=[],d=!1,f=(n||(i=a.throttleType,o=a.throttleDelay),l.H(e.areas,(function(t){var e,n,i,o=jH[t.brushType];o=l.i({boundingRect:o?o(t):void 0},t);return o.selectors=(n=(e=o).brushType,i={point:function(t){return SH[n].point(t,i,e)},rect:function(t){return SH[n].rect(t,i,e)}}),o}))),g=bH(e.option,OH,(function(t){t.mappingMethod="fixed"}));function y(t){return"all"===s||u[t]}function m(t){return!!t.length}l.t(s)&&l.k(s,(function(t){u[t]=1})),t.eachSeries((function(n,i){var o,r,a,s,u,c,g=p[i]=[];"parallel"===n.subType?(u=i,c=(s=n).coordinateSystem,d=d||c.hasAxisBrushed(),y(u)&&c.eachActiveState(s.getData(),(function(t,e){"active"===t&&(h[e]=1)}))):(u=i,r=g,(o=n).brushSelector&&!function(t,e){return t=t.option.seriesIndex,null!=t&&"all"!==t&&(l.t(t)?l.r(t,e)<0:e!==t)}(e,u)&&(l.k(f,(function(n){e.brushTargetManager.controlSeries(n,o,t)&&r.push(n),d=d||m(r)})),y(u)&&m(r)&&(a=o.getData()).each((function(t){LH(o,r,a,t)&&(h[t]=1)}))))})),t.eachSeries((function(t,e){var n,i,o,a,s,u,c,f={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]},v=(r.selected.push(f),p[e]),x=t.getData(),_=y(e)?function(t){return h[t]?(f.dataIndex.push(x.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return LH(t,v,x,e)?(f.dataIndex.push(x.getRawIndex(e)),"inBrush"):"outOfBrush"};function b(t){return Tg(i,u,t)}function w(t,e){Ag(i,u,t,e)}function S(t,e){if(u=null==s?t:e,e=i.getRawDataItem(u),!e||!1!==e.visualMap){e=o.call(a,t);for(var r=n[e],l=c[e],h=0,p=l.length;h<p;h++){var d=l[h];r[d]&&r[d].applyVisual(t,b,w)}}}(y(e)?d:m(v))&&(n=g,i=x,o=_,c={},l.k(OH,(function(t){var e=xA.prepareVisualTypes(n[t]);c[t]=e})),null==s?i.each(S):i.each([s],S))}))})),e=e,r=i,a=o,s=c,(u=n)&&!(u=e.getZr())[CH]&&(u[TH]||(u[TH]=DH),Qf(u,TH,a,r)(e,s))}function DH(t,e){var n;t.isDisposed()||((n=t.getZr())[CH]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[CH]=!1)}function LH(t,e,n,i){for(var o=0,r=e.length;o<r;o++){var a=e[o];if(t.brushSelector(i,n,a.selectors,a))return 1}}var PH,jH={rect:function(t){return RH(t.range)},polygon:function(t){for(var e=t.range,n=0,i=e.length;n<i;n++){var o=o||[[1/0,-1/0],[1/0,-1/0]],r=e[n];r[0]<o[0][0]&&(o[0][0]=r[0]),r[0]>o[0][1]&&(o[0][1]=r[0]),r[1]<o[1][0]&&(o[1][0]=r[1]),r[1]>o[1][1]&&(o[1][1]=r[1])}return o&&RH(o)}};function RH(t){return new xn(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}function NH(){var t=null!==PH&&PH.apply(this,arguments)||this;return t.type=NH.type,t}a(NH,PH=xp),NH.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new cP(e.getZr())).on("brush",l.c(this._onBrush,this)).mount()},NH.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},NH.prototype.updateTransform=function(t,e,n,i){AH(e),this._updateController(t,e,n,i)},NH.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},NH.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},NH.prototype._updateController=function(t,e,n,i){i&&i.$from===t.id||this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},NH.prototype.dispose=function(){this._brushController.dispose()},NH.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);t.isEnd&&!t.removeOnClick||this.api.dispatchAction({type:"brush",brushId:e,areas:l.d(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:l.d(n),$from:e})},NH.type="brush";var EH,zH=NH;function BH(){var t=null!==EH&&EH.apply(this,arguments)||this;return t.type=BH.type,t.areas=[],t.brushOption={},t}function VH(t,e){return l.I({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Xs(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}a(BH,EH=uu),BH.prototype.optionUpdated=function(t,e){var n=this.option;e||wH(n,t,["inBrush","outOfBrush"]),e=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},e.hasOwnProperty("liftZ")||(e.liftZ=5)},BH.prototype.setAreas=function(t){t&&(this.areas=l.H(t,(function(t){return VH(this.option,t)}),this))},BH.prototype.setBrushOption=function(t){this.brushOption=VH(this.option,t),this.brushType=this.brushOption.brushType},BH.type="brush",BH.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],BH.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4};var FH,HH=BH,GH=["rect","polygon","lineX","lineY","keep","clear"];function WH(){return null!==FH&&FH.apply(this,arguments)||this}a(WH,FH=WV),WH.prototype.render=function(t,e,n){var i,o,r;e.eachComponent({mainType:"brush"},(function(t){i=t.brushType,o=t.brushOption.brushMode||"single",r=r||!!t.areas.length})),this._brushType=i,this._brushMode=o,l.k(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===o:"clear"===e?r:e===i)?"emphasis":"normal")}))},WH.prototype.updateView=function(t,e,n){this.render(t,e,n)},WH.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return l.k(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},WH.prototype.onclick=function(t,e,n){var i=this._brushType,o=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===o?"single":"multiple":o}})},WH.getDefaultOption=function(t){return{show:!0,type:GH.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])}};var YH=WH;a(ZH,UH=uu),ZH.type="title",ZH.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 UH,XH=ZH;function ZH(){var t=null!==UH&&UH.apply(this,arguments)||this;return t.type=ZH.type,t.layoutMode={type:"box",ignoreSize:!0},t}a($H,qH=xp),$H.prototype.render=function(t,e,n){var i,o,r,a,s,u,c,h,p;this.group.removeAll(),t.get("show")&&(i=this.group,c=t.getModel("textStyle"),o=t.getModel("subtextStyle"),h=t.get("textAlign"),p=l.P(t.get("textBaseline"),t.get("textVerticalAlign")),s=(c=new ia({style:ws(c,{text:t.get("text"),fill:c.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),u=t.get("subtext"),o=new ia({style:ws(o,{text:u,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),c.silent=!r&&!s,o.silent=!a&&!s,r&&c.on("click",(function(){Gl(r,"_"+t.get("target"))})),a&&o.on("click",(function(){Gl(a,"_"+t.get("subtarget"))})),oa(c).eventData=oa(o).eventData=s?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),u&&i.add(o),s=i.getBoundingRect(),(u=t.getBoxLayoutParams()).width=s.width,u.height=s.height,u=ql(u,{width:n.getWidth(),height:n.getHeight()},t.get("padding")),h||("right"===(h="middle"===(h=t.get("left")||t.get("right"))?"center":h)?u.x+=u.width:"center"===h&&(u.x+=u.width/2)),p||("bottom"===(p="center"===(p=t.get("top")||t.get("bottom"))?"middle":p)?u.y+=u.height:"middle"===p&&(u.y+=u.height/2),p=p||"top"),i.x=u.x,i.y=u.y,i.markRedraw(),c.setStyle(n={align:h,verticalAlign:p}),o.setStyle(n),s=i.getBoundingRect(),c=u.margin,(h=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),p=new Br({shape:{x:s.x-c[3],y:s.y-c[0],width:s.width+c[1]+c[3],height:s.height+c[0]+c[2],r:t.get("borderRadius")},style:h,subPixelOptimize:!0,silent:!0}),i.add(p))},$H.type="title";var qH,KH,QH=$H;function $H(){var t=null!==qH&&qH.apply(this,arguments)||this;return t.type=$H.type,t}function JH(){var t=null!==KH&&KH.apply(this,arguments)||this;return t.type=JH.type,t.layoutMode="box",t}a(JH,KH=uu),JH.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},JH.prototype.mergeOption=function(t){KH.prototype.mergeOption.apply(this,arguments),this._initData()},JH.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t=e<=t?e-1:t)<0&&(t=0),this.option.currentIndex=t},JH.prototype.getCurrentIndex=function(){return this.option.currentIndex},JH.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},JH.prototype.setPlayState=function(t){this.option.autoPlay=!!t},JH.prototype.getPlayState=function(){return!!this.option.autoPlay},JH.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=(e=e.axisType,this._names=[]);"category"===e?(t=[],Object(l.k)(n,(function(e,n){var o,r=Ii(bi(e),"");Object(l.A)(e)?(o=Object(l.d)(e)).value=n:o=n,t.push(o),i.push(r)}))):t=n,n={category:"ordinal",time:"time",value:"number"}[e]||"number";(this._data=new u_([{name:"value",type:n}],this)).initData(t,i)},JH.prototype.getData=function(){return this._data},JH.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},JH.type="timeline",JH.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]};var tG;Vs=JH,a(eG,tG=Vs),eG.type="timeline.slider",eG.defaultOption=Ks(Vs.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),Ns=eG;function eG(){var t=null!==tG&&tG.apply(this,arguments)||this;return t.type=eG.type,t}Object(l.K)(Ns,Hs.prototype);var nG,iG=Ns;function oG(){var t=null!==nG&&nG.apply(this,arguments)||this;return t.type=oG.type,t}a(oG,nG=xp),oG.type="timeline";var rG;zs=oG;function aG(t,e,n,i){return t=rG.call(this,t,e,n)||this,t.type=i||"value",t}a(aG,rG=Ng),aG.prototype.getLabelModel=function(){return this.model.getModel("label")},aG.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")};var sG,lG=aG,uG=Math.PI,cG=ki();function hG(){var t=null!==sG&&sG.apply(this,arguments)||this;return t.type=hG.type,t}function pG(t,e,n,i,o,r){var a=e.get("color");o?(o.setColor(a),n.add(o),r&&r.onUpdate(o)):((o=Yg(t.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(o),r&&r.onCreate(o)),a=e.getItemStyle(["color"]),o.setStyle(a),i=Object(l.I)({rectHover:!0,z2:100},i,!0),n=Ug(t.get("symbolSize")),i.scaleX=n[0]/2,i.scaleY=n[1]/2,r=Xg(t.get("symbolOffset"),n),r&&(i.x=(i.x||0)+r[0],i.y=(i.y||0)+r[1]),e=t.get("symbolRotate");return i.rotation=(e||0)*Math.PI/180||0,o.attr(i),o.updateTransform(),o}function dG(t,e,n,i,o,r){var a;t.dragging||(a=o.getModel("checkpointStyle"),i=i.dataToCoord(o.getData().get("value",n)),r||!a.get("animation",!0)?(t.attr({x:i,y:0}),e&&e.attr({shape:{x2:i}})):(o={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)},t.stopAnimation(null,!0),t.animateTo({x:i,y:0},o),e&&e.animateTo({shape:{x2:i}},o)))}a(hG,sG=zs),hG.prototype.init=function(t,e){this.api=e},hG.prototype.render=function(t,e,n){var i,o,r;this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)&&(i=this._layout(t,n),o=this._createGroup("_mainGroup"),e=this._createGroup("_labelGroup"),r=this._axis=this._createAxis(i,t),t.formatTooltip=function(t){return Uh("nameValue",{noName:!0,value:r.scale.getLabel({value:t})})},Object(l.k)(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](i,o,r,t)}),this),this._renderAxisLabel(i,e,r,t),this._position(i,t)),this._doPlayStop(),this._updateTicksStatus()},hG.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},hG.prototype.dispose=function(){this._clearTimer()},hG.prototype._layout=function(t,e){var n,i,o,r=t.get(["label","position"]),a=t.get("orient"),s=(s=e,ql((u=t).getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()},u.get("padding"))),u=null==r||"auto"===r?"horizontal"===a?s.y+s.height/2<e.getHeight()/2?"-":"+":s.x+s.width/2<e.getWidth()/2?"+":"-":Object(l.C)(r)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][r]:r,c=(e={horizontal:"center",vertical:0<=u||"+"===u?"left":"right"},r={horizontal:0<=u||"+"===u?"top":"bottom",vertical:"middle"},{horizontal:0,vertical:uG/2}),h="vertical"===a?s.height:s.width,p=t.getModel("controlStyle"),d=p.get("show",!0),f=d?p.get("itemSize"):0,g=d?p.get("itemGap"):0,y=f+g,m=(t.get(["label","rotate"])||0)*uG/180,v=p.get("position",!0),x=d&&p.get("showPlayBtn",!0),_=d&&p.get("showPrevBtn",!0),b=(d=d&&p.get("showNextBtn",!0),p=0,h);"left"===v||"bottom"===v?(x&&(n=[0,0],p+=y),_&&(i=[p,0],p+=y)):(x&&(n=[b-f,0],b-=y),_&&(i=[0,0],p+=y)),d&&(o=[b-f,0],b-=y),v=[p,b];return t.get("inverse")&&v.reverse(),{viewRect:s,mainLength:h,orient:a,rotation:c[a],labelRotation:m,labelPosOpt:u,labelAlign:t.get(["label","align"])||e[a],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||r[a],playPosition:n,prevBtnPosition:i,nextBtnPosition:o,axisExtent:v,controlSize:f,controlGap:g}},hG.prototype._position=function(t,e){var n,i=this._mainGroup,o=this._labelGroup,r=t.viewRect,a=("vertical"===t.orient&&(Xe(c=Ge(),c,[-(s=r.x),-(u=r.y+r.height)]),Ze(c,c,-uG/2),Xe(c,c,[s,u]),(r=r.clone()).applyTransform(c)),d(r)),s=d(i.getBoundingRect()),u=d(o.getBoundingRect()),c=[i.x,i.y],h=(r=[o.x,o.y],r[0]=c[0]=a[0][0],t.labelPosOpt);function p(t){t.originX=a[0][0]-t.x,t.originY=a[1][0]-t.y}function d(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function f(t,e,n,i,o){t[i]+=n[i][o]-e[i][o]}null==h||Object(l.C)(h)?(f(c,s,a,1,n="+"===h?0:1),f(r,u,a,1,1-n)):(f(c,s,a,1,n=0<=h?0:1),r[1]=c[1]+h),i.setPosition(c),o.setPosition(r),i.rotation=o.rotation=t.rotation,p(i),p(o)},hG.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),o=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new xS({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new CS({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new SS}}(e,i),r=(o.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))},n.getDataExtent("value"));o.setExtent(r[0],r[1]),o.calcNiceTicks(),r=new lG("value",o,t.axisExtent,i);return r.model=e,r},hG.prototype._createGroup=function(t){return t=this[t]=new Gn,this.group.add(t),t},hG.prototype._renderAxisLine=function(t,e,n,i){var o;n=n.getExtent();i.get(["lineStyle","show"])&&(o=new Dd({shape:{x1:n[0],y1:0,x2:n[1],y2:0},style:Object(l.m)({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}),e.add(o),n=this._progressLine=new Dd({shape:{x1:n[0],x2:this._currentPointer?this._currentPointer.x:n[0],y1:0,y2:0},style:Object(l.i)({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1}),e.add(n))},hG.prototype._renderAxisTick=function(t,e,n,i){var o=this,r=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],Object(l.k)(a,(function(t){var a=n.dataToCoord(t.value),s=r.getItemModel(t.value),u=s.getModel("itemStyle"),c=s.getModel(["emphasis","itemStyle"]),h=s.getModel(["progress","itemStyle"]);a={x:a,y:0,onclick:Object(l.c)(o._changeTimeline,o,t.value)},u=pG(s,u,e,a),u.ensureState("emphasis").style=c.getItemStyle(),u.ensureState("progress").style=h.getItemStyle(),Qa(u),a=oa(u);s.get("tooltip")?(a.dataIndex=t.value,a.dataModel=i):a.dataIndex=a.dataModel=null,o._tickSymbols.push(u)}))},hG.prototype._renderAxisLabel=function(t,e,n,i){var o,r=this;n.getLabelModel().get("show")&&(o=i.getData(),i=n.getViewLabels(),this._tickLabels=[],Object(l.k)(i,(function(i){var a=i.tickValue,s=o.getItemModel(a),u=s.getModel("label"),c=s.getModel(["emphasis","label"]),h=(s=s.getModel(["progress","label"]),n.dataToCoord(i.tickValue));h=new ia({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:Object(l.c)(r._changeTimeline,r,a),silent:!1,style:ws(u,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});h.ensureState("emphasis").style=ws(c),h.ensureState("progress").style=ws(s),e.add(h),Qa(h),cG(h).dataIndex=a,r._tickLabels.push(h)})))},hG.prototype._renderControl=function(t,e,n,i){var o=t.controlSize,r=t.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),u=i.getPlayState(),c=i.get("inverse",!0);function h(t,n,u,c){var h;t&&(h=An(Object(l.P)(i.get(["controlStyle",n+"BtnSize"]),o),o),(n=function(t,e,n,i){var o=i.style;t=Lf(t.get(["controlStyle",e]),i||{},new xn(n[0],n[1],n[2],n[3]));return o&&t.setStyle(o),t}(i,n+"Icon",[0,-h/2,h,h],{x:t[0],y:t[1],originX:o/2,originY:0,rotation:c?-r:0,rectHover:!0,style:a,onclick:u})).ensureState("emphasis").style=s,e.add(n),Qa(n))}h(t.nextBtnPosition,"next",Object(l.c)(this._changeTimeline,this,c?"-":"+")),h(t.prevBtnPosition,"prev",Object(l.c)(this._changeTimeline,this,c?"+":"-")),h(t.playPosition,u?"stop":"play",Object(l.c)(this._handlePlayClick,this,!u),!0)},hG.prototype._renderCurrentPointer=function(t,e,n,i){var o=i.getData(),r=i.getCurrentIndex(),a=(o=o.getItemModel(r).getModel("checkpointStyle"),this);this._currentPointer=pG(o,o,this._mainGroup,{},this._currentPointer,{onCreate:function(t){t.draggable=!0,t.drift=Object(l.c)(a._handlePointerDrag,a),t.ondragend=Object(l.c)(a._handlePointerDragend,a),dG(t,a._progressLine,r,n,i,!0)},onUpdate:function(t){dG(t,a._progressLine,r,n,i)}})},hG.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},hG.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},hG.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},hG.prototype._pointerChangeTimeline=function(t,e){t=this._toAxisCoord(t)[0];var n=Jn(this._axis.getExtent().slice());(t=t>n[1]?n[1]:t)<n[0]&&(t=n[0]),this._currentPointer.x=t,this._currentPointer.markRedraw(),this._progressLine.shape.x2=t,this._progressLine.dirty(),n=this._findNearestTick(t),t=this.model;(e||n!==t.getCurrentIndex()&&t.get("realtime"))&&this._changeTimeline(n)},hG.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},hG.prototype._toAxisCoord=function(t){return Of(t,this._mainGroup.getLocalTransform(),!0)},hG.prototype._findNearestTick=function(t){var e,n=this.model.getData(),i=1/0,o=this._axis;return n.each(["value"],(function(n,r){n=o.dataToCoord(n),n=Math.abs(n-t),n<i&&(i=n,e=r)})),e},hG.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},hG.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},hG.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var i=0;i<e.length;i++)e&&e[i]&&e[i].toggleState("progress",i<t);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",cG(n[i]).dataIndex<=t)},hG.type="timeline.slider";var fG=hG;function gG(t){t=t&&t.timeline,l.t(t)||(t=t?[t]:[]),l.k(t,(function(t){var e,n;t&&(e=(t=t).type,(n={number:"value",time:"time"})[e]&&(t.axisType=n[e],delete t.type),yG(t),mG(t,"controlPosition")&&(mG(n=t.controlStyle||(t.controlStyle={}),"position")||(n.position=t.controlPosition),"none"!==n.position||mG(n,"show")||(n.show=!1,delete n.position),delete t.controlPosition),l.k(t.data||[],(function(t){l.A(t)&&!l.t(t)&&(!mG(t,"value")&&mG(t,"name")&&(t.value=t.name),yG(t))})))}))}function yG(t){var e=t.itemStyle||(t.itemStyle={}),n=(e=e.emphasis||(e.emphasis={}),t=t.label||t.label||{},t.normal||(t.normal={})),i={normal:1,emphasis:1};l.k(t,(function(t,e){i[e]||mG(n,e)||(n[e]=t)})),e.label&&!mG(t,"emphasis")&&(t.emphasis=e.label,delete e.label)}function mG(t,e){return t.hasOwnProperty(e)}function vG(t,e){if(t)for(var n=Object(l.t)(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return 1}function xG(t){xi(t,"label",["show"])}var _G,bG=ki();a(wG,_G=uu),wG.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},wG.prototype.isAnimationEnabled=function(){if(s.a.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},wG.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},wG.prototype._mergeOption=function(t,e,n,i){var o=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),r=bG(t)[o];n&&n.data?(r?r._mergeOption(n,e,!0):(i&&xG(n),l.k(n.data,(function(t){t instanceof Array?(xG(t[0]),xG(t[1])):xG(t)})),r=this.createMarkerModelFromSeries(n,this,e),l.m(r,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),r.__hostSeries=t),bG(t)[o]=r):bG(t)[o]=null}),this)},wG.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.getRawValue(t);i=i.getName(t);return Uh("section",{header:this.name,blocks:[Uh("nameValue",{name:i,value:o,noName:!i,noValue:null==o})]})},wG.prototype.getData=function(){return this._data},wG.prototype.setData=function(t){this._data=t},wG.getMarkerModelFromSeries=function(t,e){return bG(t)[e]},wG.type="marker",wG.dependencies=["series","grid","polar","geo"],e=wG;function wG(){var t=null!==_G&&_G.apply(this,arguments)||this;return t.type=wG.type,t.createdBySelf=!1,t}l.K(e,Hs.prototype);var SG,MG=e;function IG(){var t=null!==SG&&SG.apply(this,arguments)||this;return t.type=IG.type,t}a(IG,SG=MG),IG.prototype.createMarkerModelFromSeries=function(t,e,n){return new IG(t,e,n)},IG.type="markPoint",IG.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}};var OG=IG;function TG(t,e,n,i,o,r){var a=[],s=g_(e,i)?e.getCalculationInfo("stackResultDimension"):i;t=PG(e,s,t),t=e.indicesOfNearest(s,t)[0],a[o]=e.get(n,t),a[r]=e.get(s,t),o=e.get(i,t),n=ti(e.get(i,t));return 0<=(n=Math.min(n,20))&&(a[r]=+a[r].toFixed(n)),[a,o]}var CG={min:Object(l.h)(TG,"min"),max:Object(l.h)(TG,"max"),average:Object(l.h)(TG,"average"),median:Object(l.h)(TG,"median")};function AG(t,e){var n=t.getData(),i=t.coordinateSystem;if(e&&(r=e,isNaN(parseFloat(r.x))||isNaN(parseFloat(r.y)))&&!Object(l.t)(e.coord)&&i){var o=i.dimensions,r=kG(e,n,i,t);if((e=Object(l.d)(e)).type&&CG[e.type]&&r.baseAxis&&r.valueAxis)i=Object(l.r)(o,r.baseAxis.dim),t=Object(l.r)(o,r.valueAxis.dim),r=CG[e.type](n,r.baseDataDim,r.valueDataDim,i,t),e.coord=r[0],e.value=r[1];else{for(var a=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],s=0;s<2;s++)CG[a[s]]&&(a[s]=PG(n,n.mapDimension(o[s]),a[s]));e.coord=a}}return e}function kG(t,e,n,i){var o={};return null!=t.valueIndex||null!=t.valueDim?(o.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,o.valueAxis=n.getAxis(function(t,e){return t=t.getData().getDimensionInfo(e),t&&t.coordDim}(i,o.valueDataDim)),o.baseAxis=n.getOtherAxis(o.valueAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim)):(o.baseAxis=i.getBaseAxis(),o.valueAxis=n.getOtherAxis(o.baseAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim),o.valueDataDim=e.mapDimension(o.valueAxis.dim)),o}function DG(t,e){return!(t&&t.containData&&e.coord&&(n=e,isNaN(parseFloat(n.x))&&isNaN(parseFloat(n.y))))||t.containData(e.coord);var n}function LG(t,e){return t?function(t,n,i,o){return sh(o<2?t.coord&&t.coord[o]:t.value,e[o])}:function(t,n,i,o){return sh(t.value,e[o])}}function PG(t,e,n){var i,o;return"average"===n?(o=i=0,t.each(e,(function(t,e){isNaN(t)||(i+=t,o++)})),i/o):"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var jG,RG=ki();function NG(){var t=null!==jG&&jG.apply(this,arguments)||this;return t.type=NG.type,t}a(NG,jG=xp),NG.prototype.init=function(){this.markerGroupMap=Object(l.f)()},NG.prototype.render=function(t,e,n){var i=this,o=this.markerGroupMap;o.each((function(t){RG(t).keep=!1})),e.eachSeries((function(t){var o=MG.getMarkerModelFromSeries(t,i.type);o&&i.renderSeries(t,o,e,n)})),o.each((function(t){RG(t).keep||i.group.remove(t.group)}))},NG.prototype.markKeep=function(t){RG(t).keep=!0},NG.prototype.blurSeries=function(t){var e=this;Object(l.k)(t,(function(t){t=MG.getMarkerModelFromSeries(t,e.type),t&&t.getData().eachItemGraphicEl((function(t){t&&Fa(t)}))}))},NG.type="marker";var EG;Eg=NG;function zG(t,e,n){var i=e.coordinateSystem;t.each((function(o){var r,a,s,l=t.getItemModel(o),u=Qn(l.get("x"),n.getWidth());l=Qn(l.get("y"),n.getHeight());isNaN(u)||isNaN(l)?e.getMarkerPosition?s=e.getMarkerPosition(t.getValues(t.dimensions,o)):i&&(r=t.get(i.dimensions[0],o),a=t.get(i.dimensions[1],o),s=i.dataToPoint([r,a])):s=[u,l],isNaN(u)||(s[0]=u),isNaN(l)||(s[1]=l),t.setItemLayout(o,s)}))}function BG(){var t=null!==EG&&EG.apply(this,arguments)||this;return t.type=BG.type,t}a(BG,EG=Eg),BG.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=MG.getMarkerModelFromSeries(t,"markPoint");e&&(zG(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},BG.prototype.renderSeries=function(t,e,n,i){var o=t.coordinateSystem,r=t.id,a=t.getData(),s=this.markerGroupMap,u=(s=s.get(r)||s.set(r,new D_),function(t,e,n){var i;i=t?Object(l.H)(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(l.m)(Object(l.m)({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var o=new u_(i,n);n=Object(l.H)(n.get("data"),Object(l.h)(AG,e));return t&&(n=Object(l.n)(n,Object(l.h)(DG,t))),t=LG(!!t,i),o.initData(n,null,t),o}(o,t,e));e.setData(u),zG(e.getData(),t,i),u.each((function(t){var n=u.getItemModel(t),i=n.getShallow("symbol"),o=n.getShallow("symbolSize"),r=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),c=n.getShallow("symbolKeepAspect"),h=((Object(l.w)(i)||Object(l.w)(o)||Object(l.w)(r)||Object(l.w)(s))&&(h=e.getRawValue(t),p=e.getDataParams(t),Object(l.w)(i)&&(i=i(h,p)),Object(l.w)(o)&&(o=o(h,p)),Object(l.w)(r)&&(r=r(h,p)),Object(l.w)(s)&&(s=s(h,p))),n.getModel("itemStyle").getItemStyle()),p=Cg(a,"color");h.fill||(h.fill=p),u.setItemVisual(t,{symbol:i,symbolSize:o,symbolRotate:r,symbolOffset:s,symbolKeepAspect:c,style:h})})),s.updateData(u),this.group.add(s.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){oa(t).dataModel=e}))})),this.markKeep(s),s.group.silent=e.get("silent")||t.get("silent")},BG.type="markPoint";var VG,FG=BG;function HG(){var t=null!==VG&&VG.apply(this,arguments)||this;return t.type=HG.type,t}function GG(t,e,n,i){var o,r,a,s,u=t.getData();return(e=[AG(t,(n=Object(l.t)(i)?i:"min"===(o=i.type)||"max"===o||"average"===o||"median"===o||null!=i.xAxis||null!=i.yAxis?(r=s=void 0,r=null!=i.yAxis||null!=i.xAxis?(s=e.getAxis(null!=i.yAxis?"y":"x"),Object(l.O)(i.yAxis,i.xAxis)):(s=(e=kG(i,u,e,t)).valueAxis,PG(u,y_(u,e.valueDataDim),o)),e=1-(u="x"===s.dim?0:1),s={coord:[]},(a=Object(l.d)(i)).type=null,a.coord=[],a.coord[e]=-1/0,s.coord[e]=1/0,0<=(e=n.get("precision"))&&Object(l.z)(r)&&(r=+r.toFixed(Math.min(e,20))),a.coord[u]=s.coord[u]=r,[a,s,{type:o,valueIndex:i.valueIndex,value:r}]):[])[0]),AG(t,n[1]),Object(l.m)({},n[2])])[2].type=e[2].type||null,Object(l.I)(e[2],e[0]),Object(l.I)(e[2],e[1]),e}a(HG,VG=MG),HG.prototype.createMarkerModelFromSeries=function(t,e,n){return new HG(t,e,n)},HG.type="markLine",HG.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"};var WG,YG=HG,UG=ki();function XG(t){return!isNaN(t)&&!isFinite(t)}function ZG(t,e,n,i){var o=1-t,r=i.dimensions[t];return XG(e[o])&&XG(n[o])&&e[t]===n[t]&&i.getAxis(r).containData(e[t])}function qG(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(ZG(1,n,i,t)||ZG(0,n,i,t)))return!0}return DG(t,e[0])&&DG(t,e[1])}function KG(t,e,n,i,o){var r,a,s=i.coordinateSystem,l=t.getItemModel(e),u=Qn(l.get("x"),o.getWidth());l=Qn(l.get("y"),o.getHeight());isNaN(u)||isNaN(l)?(r=i.getMarkerPosition?i.getMarkerPosition(t.getValues(t.dimensions,e)):(a=s.dimensions,o=t.get(a[0],e),i=t.get(a[1],e),s.dataToPoint([o,i])),eb(s,"cartesian2d")&&(o=s.getAxis("x"),i=s.getAxis("y"),a=s.dimensions,XG(t.get(a[0],e))?r[0]=o.toGlobalCoord(o.getExtent()[n?0:1]):XG(t.get(a[1],e))&&(r[1]=i.toGlobalCoord(i.getExtent()[n?0:1]))),isNaN(u)||(r[0]=u),isNaN(l)||(r[1]=l)):r=[u,l],t.setItemLayout(e,r)}function QG(){var t=null!==WG&&WG.apply(this,arguments)||this;return t.type=QG.type,t}a(QG,WG=Eg),QG.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e,i,o,r=MG.getMarkerModelFromSeries(t,"markLine");r&&(e=r.getData(),i=UG(r).from,o=UG(r).to,i.each((function(e){KG(i,e,!0,t,n),KG(o,e,!1,t,n)})),e.each((function(t){e.setItemLayout(t,[i.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout())}),this)},QG.prototype.renderSeries=function(t,e,n,i){var o=t.coordinateSystem,r=t.id,a=t.getData(),s=this.markerGroupMap,u=(s=s.get(r)||s.set(r,new Ek),r=(this.group.add(s.group),function(t,e,n){var i;i=t?Object(l.H)(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(l.m)(Object(l.m)({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var o=new u_(i,n),r=new u_(i,n),a=new u_([],n);n=Object(l.H)(n.get("data"),Object(l.h)(GG,e,t,n));return t&&(n=Object(l.n)(n,Object(l.h)(qG,t))),t=LG(!!t,i),o.initData(Object(l.H)(n,(function(t){return t[0]})),null,t),r.initData(Object(l.H)(n,(function(t){return t[1]})),null,t),a.initData(Object(l.H)(n,(function(t){return t[2]}))),a.hasItemOption=!0,{from:o,to:r,line:a}}(o,t,e)),r.from),c=r.to,h=r.line,p=(UG(e).from=u,UG(e).to=c,e.setData(h),e.get("symbol")),d=e.get("symbolSize"),f=e.get("symbolRotate"),g=e.get("symbolOffset");function y(e,n,o){var r=e.getItemModel(n),s=(KG(e,n,o,t,i),r.getModel("itemStyle").getItemStyle());null==s.fill&&(s.fill=Cg(a,"color")),e.setItemVisual(n,{symbolKeepAspect:r.get("symbolKeepAspect"),symbolOffset:Object(l.P)(r.get("symbolOffset",!0),g[o?0:1]),symbolRotate:Object(l.P)(r.get("symbolRotate",!0),f[o?0:1]),symbolSize:Object(l.P)(r.get("symbolSize"),d[o?0:1]),symbol:Object(l.P)(r.get("symbol",!0),p[o?0:1]),style:s})}Object(l.t)(p)||(p=[p,p]),Object(l.t)(d)||(d=[d,d]),Object(l.t)(f)||(f=[f,f]),Object(l.t)(g)||(g=[g,g]),r.from.each((function(t){y(u,t,!0),y(c,t,!1)})),h.each((function(t){var e=h.getItemModel(t).getModel("lineStyle").getLineStyle();h.setItemLayout(t,[u.getItemLayout(t),c.getItemLayout(t)]),null==e.stroke&&(e.stroke=u.getItemVisual(t,"style").fill),h.setItemVisual(t,{fromSymbolKeepAspect:u.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:u.getItemVisual(t,"symbolOffset"),fromSymbolRotate:u.getItemVisual(t,"symbolRotate"),fromSymbolSize:u.getItemVisual(t,"symbolSize"),fromSymbol:u.getItemVisual(t,"symbol"),toSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(t,"symbolOffset"),toSymbolRotate:c.getItemVisual(t,"symbolRotate"),toSymbolSize:c.getItemVisual(t,"symbolSize"),toSymbol:c.getItemVisual(t,"symbol"),style:e})})),s.updateData(h),r.line.eachItemGraphicEl((function(t,n){t.traverse((function(t){oa(t).dataModel=e}))})),this.markKeep(s),s.group.silent=e.get("silent")||t.get("silent")},QG.type="markLine";var $G,JG=QG;function tW(){var t=null!==$G&&$G.apply(this,arguments)||this;return t.type=tW.type,t}function eW(t,e,n,i){var o=AG(t,i[0]),r=(t=AG(t,i[1]),i=o.coord,t.coord);return i[0]=Object(l.O)(i[0],-1/0),i[1]=Object(l.O)(i[1],-1/0),r[0]=Object(l.O)(r[0],1/0),r[1]=Object(l.O)(r[1],1/0),(i=Object(l.J)([{},o,t])).coord=[o.coord,t.coord],i.x0=o.x,i.y0=o.y,i.x1=t.x,i.y1=t.y,i}a(tW,$G=MG),tW.prototype.createMarkerModelFromSeries=function(t,e,n){return new tW(t,e,n)},tW.type="markArea",tW.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}};var nW=tW,iW=ki();function oW(t){return!isNaN(t)&&!isFinite(t)}function rW(t,e,n){return t=1-t,oW(e[t])&&oW(n[t])}function aW(t,e){var n=e.coord[0],i=e.coord[1];return!!(eb(t,"cartesian2d")&&n&&i&&(rW(1,n,i)||rW(0,n,i)))||DG(t,{coord:n,x:e.x0,y:e.y0})||DG(t,{coord:i,x:e.x1,y:e.y1})}function sW(t,e,n,i,o){var r,a,s,l=i.coordinateSystem,u=t.getItemModel(e),c=Qn(u.get(n[0]),o.getWidth());u=Qn(u.get(n[1]),o.getHeight());return isNaN(c)||isNaN(u)?(s=i.getMarkerPosition?i.getMarkerPosition(t.getValues(n,e)):(o=[r=t.get(n[0],e),a=t.get(n[1],e)],l.clampData&&l.clampData(o,o),l.dataToPoint(o,!0)),eb(l,"cartesian2d")&&(i=l.getAxis("x"),o=l.getAxis("y"),r=t.get(n[0],e),a=t.get(n[1],e),oW(r)?s[0]=i.toGlobalCoord(i.getExtent()["x0"===n[0]?0:1]):oW(a)&&(s[1]=o.toGlobalCoord(o.getExtent()["y0"===n[1]?0:1]))),isNaN(c)||(s[0]=c),isNaN(u)||(s[1]=u)):s=[c,u],s}var lW,uW=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];function cW(){var t=null!==lW&&lW.apply(this,arguments)||this;return t.type=cW.type,t}a(cW,lW=Eg),cW.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e,i=MG.getMarkerModelFromSeries(t,"markArea");i&&(e=i.getData()).each((function(i){var o=Object(l.H)(uW,(function(o){return sW(e,i,o,t,n)}));e.setItemLayout(i,o),e.getItemGraphicEl(i).setShape("points",o)}))}),this)},cW.prototype.renderSeries=function(t,e,n,i){var o=t.coordinateSystem,r=t.id,a=t.getData(),s=this.markerGroupMap,u=s.get(r)||s.set(r,{group:new Gn}),c=(this.group.add(u.group),this.markKeep(u),function(t,e,n){var i,o,r;return i=t?(r=Object(l.H)(t&&t.dimensions,(function(t){var n=e.getData();n=n.getDimensionInfo(n.mapDimension(t))||{};return Object(l.m)(Object(l.m)({},n),{name:t,ordinalMeta:null})})),o=Object(l.H)(["x0","y0","x1","y1"],(function(t,e){return{name:t,type:r[e%2].type}})),new u_(o,n)):new u_(o=[{name:"value",type:"float"}],n),n=Object(l.H)(n.get("data"),Object(l.h)(eW,e,t,n)),t&&(n=Object(l.n)(n,Object(l.h)(aW,t))),t=t?function(t,e,n,i){return sh(t.coord[Math.floor(i/2)][i%2],o[i])}:function(t,e,n,i){return sh(t.value,o[i])},i.initData(n,null,t),i.hasItemOption=!0,i}(o,t,e));e.setData(c),c.each((function(e){var n=Object(l.H)(uW,(function(n){return sW(c,e,n,t,i)})),r=o.getAxis("x").scale,s=o.getAxis("y").scale,u=r.getExtent(),h=s.getExtent();r=[r.parse(c.get("x0",e)),r.parse(c.get("x1",e))],s=[s.parse(c.get("y0",e)),s.parse(c.get("y1",e))],Jn(r),Jn(s),u=!(u[0]>r[1]||u[1]<r[0]||h[0]>s[1]||h[1]<s[0]),c.setItemLayout(e,{points:n,allClipped:!u}),r=c.getItemModel(e).getModel("itemStyle").getItemStyle(),h=Cg(a,"color");r.fill||(r.fill=h,Object(l.C)(r.fill)&&(r.fill=te.e(r.fill,.4))),r.stroke||(r.stroke=h),c.setItemVisual(e,"style",r)})),c.diff(iW(u).data).add((function(t){var e=c.getItemLayout(t);e.allClipped||(e=new Sd({shape:{points:e.points}}),c.setItemGraphicEl(t,e),u.group.add(e))})).update((function(t,n){n=iW(u).data.getItemGraphicEl(n);var i=c.getItemLayout(t);i.allClipped?n&&u.group.remove(n):(n?cs(n,{shape:{points:i.points}},e,t):n=new Sd({shape:{points:i.points}}),c.setItemGraphicEl(t,n),u.group.add(n))})).remove((function(t){t=iW(u).data.getItemGraphicEl(t),u.group.remove(t)})).execute(),c.eachItemGraphicEl((function(t,n){var i=c.getItemModel(n),o=c.getItemVisual(n,"style");t.useStyle(c.getItemVisual(n,"style")),_s(t,bs(i),{labelFetcher:e,labelDataIndex:n,defaultText:c.getName(n)||"",inheritColor:Object(l.C)(o.fill)?te.e(o.fill,1):"#000"}),ns(t,i),$a(t,null,null,i.get(["emphasis","disabled"])),oa(t).dataModel=e})),iW(u).data=c,u.group.silent=e.get("silent")||t.get("silent")},cW.type="markArea";var hW,pW=cW;function dW(){var t=null!==hW&&hW.apply(this,arguments)||this;return t.type=dW.type,t.layoutMode={type:"box",ignoreSize:!0},t}a(dW,hW=uu),dW.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},dW.prototype.mergeOption=function(t,e){hW.prototype.mergeOption.call(this,t,e),this._updateSelector(t)},dW.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),l.t(e)&&l.k(e,(function(t,i){l.C(t)&&(t={type:t}),e[i]=l.I(t,(i=n,"all"===(t=t.type)?{type:"all",title:i.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:i.getLocaleModel().get(["legend","selector","inverse"])}:void 0))}))},dW.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}e||this.select(t[0].get("name"))}},dW.prototype._updateData=function(t){var e=[],n=[],i=(t.eachRawSeries((function(i){var o,r=i.name;n.push(r),i.legendVisualProvider?(r=i.legendVisualProvider.getAllNames(),t.isSeriesFiltered(i)||(n=n.concat(r)),r.length?e=e.concat(r):o=!0):o=!0,o&&Oi(i)&&e.push(i.name)})),this._availableNames=n,this.get("data")||e);i=l.H(i,(function(t){return(l.C(t)||l.z(t))&&(t={name:t}),new Xs(t,this,this.ecModel)}),this);this._data=i},dW.prototype.getData=function(){return this._data},dW.prototype.select=function(t){var e,n=this.option.selected;"single"===this.get("selectedMode")&&(e=this._data,l.k(e,(function(t){n[t.get("name")]=!1}))),n[t]=!0},dW.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},dW.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},dW.prototype.allSelect=function(){var t=this._data,e=this.option.selected;l.k(t,(function(t){e[t.get("name",!0)]=!0}))},dW.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;l.k(t,(function(t){t=t.get("name",!0),e.hasOwnProperty(t)||(e[t]=!0),e[t]=!e[t]}))},dW.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&0<=l.r(this._availableNames,t)},dW.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},dW.type="legend.plain",dW.dependencies=["series"],dW.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 fW,gW=dW,yW=l.h,mW=l.k,vW=Gn;function xW(){var t=null!==fW&&fW.apply(this,arguments)||this;return t.type=xW.type,t.newlineDisabled=!1,t}function _W(t,e,n,i){SW(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),wW(t,e,n,i)}function bW(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,o=n.length;i<o&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function wW(t,e,n,i){bW(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function SW(t,e,n,i){bW(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}a(xW,fW=xp),xW.prototype.init=function(){this.group.add(this._contentGroup=new vW),this.group.add(this._selectorGroup=new vW),this._isFirstRender=!0},xW.prototype.getContentGroup=function(){return this._contentGroup},xW.prototype.getSelectorGroup=function(){return this._selectorGroup},xW.prototype.render=function(t,e,n){var i,o,r,a,s,u=this._isFirstRender;this._isFirstRender=!1,this.resetInner(),t.get("show",!0)&&(a=t.get("align"),r=t.get("orient"),a&&"auto"!==a||(a="right"===t.get("left")&&"vertical"===r?"right":"left"),i=t.get("selector",!0),o=t.get("selectorPosition",!0),this.renderInner(a,t,e,n,i,r,o=!i||o&&"auto"!==o?o:"horizontal"===r?"end":"start"),s=ql(e=t.getBoxLayoutParams(),r={width:n.getWidth(),height:n.getHeight()},n=t.get("padding")),a=this.layoutInner(t,a,s,u,i,o),s=ql(l.i({width:a.width,height:a.height},e),r,n),this.group.x=s.x-a.x,this.group.y=s.y-a.y,this.group.markRedraw(),this.group.add(this._backgroundEl=$V(a,t)))},xW.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},xW.prototype.renderInner=function(t,e,n,i,o,r,a){var s=this.getContentGroup(),u=l.f(),c=e.get("selectedMode"),h=[];n.eachRawSeries((function(t){t.get("legendHoverLink")||h.push(t.id)})),mW(e.getData(),(function(o,r){var a=o.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a))return(g=new vW).newline=!0,void s.add(g);var p,d,f,g=n.getSeriesByName(a)[0];u.get(a)||(g?(p=(f=g.getData()).getVisual("legendLineStyle")||{},d=f.getVisual("legendIcon"),f=f.getVisual("style"),this._createItem(g,a,r,o,e,t,p,f,d,c).on("click",yW(_W,a,null,i,h)).on("mouseover",yW(wW,g.name,null,i,h)).on("mouseout",yW(SW,g.name,null,i,h)),u.set(a,!0)):n.eachRawSeries((function(n){var s,p,d;!u.get(a)&&n.legendVisualProvider&&(p=n.legendVisualProvider).containName(a)&&(d=p.indexOfName(a),s=p.getItemVisual(d,"style"),p=p.getItemVisual(d,"legendIcon"),(d=Object(te.g)(s.fill))&&0===d[3]&&(d[3]=.2,s=l.m(l.m({},s),{fill:Object(te.h)(d,"rgba")})),this._createItem(n,a,r,o,e,t,{},s,p,c).on("click",yW(_W,null,a,i,h)).on("mouseover",yW(wW,null,a,i,h)).on("mouseout",yW(SW,null,a,i,h)),u.set(a,!0))}),this))}),this),o&&this._createSelector(o,e,i,r,a)},xW.prototype._createSelector=function(t,e,n,i,o){var r=this.getSelectorGroup();mW(t,(function(t){var i=t.type,o=new ia({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});r.add(o),_s(o,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),Qa(o)}))},xW.prototype._createItem=function(t,e,n,i,o,r,a,s,u,c){var h=t.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),f=o.isSelected(e),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),m=i.get("icon");a=function(t,e,n,i,o,r){function a(t,e){"auto"===t.lineWidth&&(t.lineWidth=0<e.lineWidth?2:0),mW(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var s=e.getModel("itemStyle").getItemStyle();t=0===t.lastIndexOf("empty",0)?"fill":"stroke";s.decal=i.decal,"inherit"===s.fill&&(s.fill=i[o]),"inherit"===s.stroke&&(s.stroke=i[t]),"inherit"===s.opacity&&(s.opacity=("fill"===o?i:n).opacity),a(s,i);o=e.getModel("lineStyle");var l=o.getLineStyle();return a(l,n),"auto"===s.fill&&(s.fill=i.fill),"auto"===s.stroke&&(s.stroke=i.fill),"auto"===l.stroke&&(l.stroke=i.fill),r||(n=e.get("inactiveBorderWidth"),r=s[t],s.lineWidth="auto"===n?0<i.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}}(u=m||u||"roundRect",i,a,s,h,f),s=new vW,h=i.getModel("textStyle"),!l.w(t.getLegendIcon)||m&&"inherit"!==m?(m="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0,s.add(function(t){var e=t.icon||"roundRect",n=Yg(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<e.indexOf("empty")&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}({itemWidth:p,itemHeight:d,icon:u,iconRotate:m,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:y}))):s.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:u,iconRotate:g,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:y})),m="left"===r?p+5:-5,t=r,u=o.get("formatter"),g=e,l.C(u)&&u?g=u.replace("{name}",null!=e?e:""):l.w(u)&&(g=u(e)),a=i.get("inactiveColor"),s.add(new ia({style:ws(h,{text:g,x:m,y:d/2,fill:f?h.getTextColor():a,align:t,verticalAlign:"middle"})})),y=new Br({shape:s.getBoundingRect(),invisible:!0}),p=i.getModel("tooltip");return p.get("show")&&Rf({el:y,componentModel:o,itemName:e,itemTooltipOption:p.option}),s.add(y),s.eachChild((function(t){t.silent=!0})),y.silent=!c,this.getContentGroup().add(s),Qa(s),s.__legendDataIndex=n,s},xW.prototype.layoutInner=function(t,e,n,i,o,r){var a,s,l,u,c,h=this.getContentGroup(),p=this.getSelectorGroup(),d=(n=(Zl(t.get("orient"),h,t.get("itemGap"),n.width,n.height),h.getBoundingRect()),[-n.x,-n.y]);return p.markRedraw(),h.markRedraw(),o?(Zl("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",u=0===t?"height":"width",c=0===t?"y":"x","end"===r?a[t]+=n[l]+s:d[t]+=o[l]+s,a[1-t]+=n[u]/2-o[u]/2,p.x=a[0],p.y=a[1],h.x=d[0],h.y=d[1],(r={x:0,y:0})[l]=n[l]+s+o[l],r[u]=Math.max(n[u],o[u]),r[c]=Math.min(0,o[c]+a[1-t]),r):(h.x=d[0],h.y=d[1],this.group.getBoundingRect())},xW.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},xW.type="legend.plain";var MW,IW=xW;function OW(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}function TW(t,e,n){var i,o={},r="toggleSelected"===t;return n.eachComponent("legend",(function(n){r&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name));var a=n.getData();Object(l.k)(a,(function(t){var e;t=t.get("name");"\n"!==t&&""!==t&&(e=n.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 CW(t){t.registerComponentModel(gW),t.registerComponentView(IW),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,OW),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),(t=t).registerAction("legendToggleSelect","legendselectchanged",Object(l.h)(TW,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Object(l.h)(TW,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Object(l.h)(TW,"inverseSelect")),t.registerAction("legendSelect","legendselected",Object(l.h)(TW,"select")),t.registerAction("legendUnSelect","legendunselected",Object(l.h)(TW,"unSelect"))}function AW(){var t=null!==MW&&MW.apply(this,arguments)||this;return t.type=AW.type,t}function kW(t,e,n){var i=[1,1];i[t.getOrient().index]=0,$l(e,n,{type:"box",ignoreSize:!!i})}a(AW,MW=gW),AW.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},AW.prototype.init=function(t,e,n){var i=Jl(t);MW.prototype.init.call(this,t,e,n),kW(this,t,i)},AW.prototype.mergeOption=function(t,e){MW.prototype.mergeOption.call(this,t,e),kW(this,this.option,t)},AW.type="legend.scroll",AW.defaultOption=Ks(gW.defaultOption,{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});var DW,LW=AW,PW=Gn,jW=["width","height"],RW=["x","y"];function NW(){var t=null!==DW&&DW.apply(this,arguments)||this;return t.type=NW.type,t.newlineDisabled=!0,t._currentIndex=0,t}a(NW,DW=IW),NW.prototype.init=function(){DW.prototype.init.call(this),this.group.add(this._containerGroup=new PW),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new PW)},NW.prototype.resetInner=function(){DW.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},NW.prototype.renderInner=function(t,e,n,i,o,r,a){var s=this,u=(DW.prototype.renderInner.call(this,t,e,n,i,o,r,a),this._controllerGroup),c=(t=e.get("pageIconSize",!0),l.t(t)?t:[t,t]);h("pagePrev",0),n=e.getModel("pageTextStyle");function h(t,n){var o=t+"DataIndex";n=Lf(e.get("pageIcons",!0)[e.getOrient().name][n],{onclick:l.c(s._pageGo,s,o,e,i)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});n.name=t,u.add(n)}u.add(new ia({name:"pageText",style:{text:"xx/xx",fill:n.getTextColor(),font:n.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1)},NW.prototype.layoutInner=function(t,e,n,i,o,r){var a=this.getSelectorGroup(),s=t.getOrient().index,u=jW[s],c=RW[s],h=jW[1-s],p=RW[1-s],d=(o&&Zl("horizontal",a,t.get("selectorItemGap",!0)),t.get("selectorButtonGap",!0)),f=a.getBoundingRect(),g=[-f.x,-f.y],y=l.d(n);o&&(y[u]=n[u]-f[u]-d),n=this._layoutContentAndController(t,i,y,s,u,h,p,c);return o&&("end"===r?g[s]+=n[u]+d:(t=f[u]+d,g[s]-=t,n[c]-=t),n[u]+=f[u]+d,g[1-s]+=n[p]+n[h]/2-f[h]/2,n[h]=Math.max(n[h],f[h]),n[p]=Math.min(n[p],f[p]+g[1-s]),a.x=g[0],a.y=g[1],a.markRedraw()),n},NW.prototype._layoutContentAndController=function(t,e,n,i,o,r,a,s){var u=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup,p=(Zl(t.get("orient"),u,t.get("itemGap"),i?n.width:null,i?null:n.height),Zl("horizontal",h,t.get("pageButtonItemGap",!0)),u.getBoundingRect()),d=h.getBoundingRect(),f=this._showController=p[o]>n[o],g=[-p.x,-p.y],y=(e=(e||(g[i]=u[s]),[0,0]),s=[-d.x,-d.y],l.P(t.get("pageButtonGap",!0),t.get("itemGap",!0)));f&&("end"===t.get("pageButtonPosition",!0)?s[i]+=n[o]-d[o]:e[i]+=d[o]+y),s[1-i]+=p[r]/2-d[r]/2,u.setPosition(g),c.setPosition(e),h.setPosition(s),g={x:0,y:0},g[o]=(f?n:p)[o],g[r]=Math.max(p[r],d[r]),g[a]=Math.min(0,d[a]+s[1-i]),c.__rectSize=n[o],f?((e={x:0,y:0})[o]=Math.max(n[o]-d[o]-y,0),e[r]=g[r],c.setClipPath(new Br({shape:e})),c.__rectSize=e[o]):h.eachChild((function(t){t.attr({invisible:!0,silent:!0})})),p=this._getPageInfo(t);return null!=p.pageIndex&&cs(u,{x:p.contentPosition[0],y:p.contentPosition[1]},f?t:null),this._updatePageInfoView(t,p),g},NW.prototype._pageGo=function(t,e,n){t=this._getPageInfo(e)[t],null!=t&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},NW.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup,i=(l.k(["pagePrev","pageNext"],(function(i){var o=null!=e[i+"DataIndex"];i=n.childOfName(i);i&&(i.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),i.cursor=o?"pointer":"default")})),n.childOfName("pageText")),o=t.get("pageFormatter"),r=e.pageIndex,a=(r=null!=r?r+1:0,e.pageCount);i&&o&&i.setStyle("text",l.C(o)?o.replace("{current}",null==r?"":r+"").replace("{total}",null==a?"":a+""):o({current:r,total:a}))},NW.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=(t=t.getOrient().index,jW[t]),r=RW[t],a=(e=this._findTargetItemIndex(e),n.children()),s=a[e],l=a.length,u=l?1:0,c={contentPosition:[n.x,n.y],pageCount:u,pageIndex:u-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!s)return c;n=g(s),c.contentPosition[t]=-n.s;for(var h=e+1,p=n,d=n,f=null;h<=l;++h)(!(f=g(a[h]))&&d.e>p.s+i||f&&!y(f,p.s))&&(p=d.i>p.i?d:f)&&(null==c.pageNextDataIndex&&(c.pageNextDataIndex=p.i),++c.pageCount),d=f;for(h=e-1,p=n,d=n,f=null;-1<=h;--h)(f=g(a[h]))&&y(d,f.s)||!(p.i<d.i)||(d=p,null==c.pagePrevDataIndex&&(c.pagePrevDataIndex=p.i),++c.pageCount,++c.pageIndex),p=f;return c;function g(t){var e,n;if(t)return{s:n=(e=t.getBoundingRect())[r]+t[r],e:n+e[o],i:t.__legendDataIndex}}function y(t,e){return t.e>=e&&t.s<=e+i}},NW.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild((function(i,o){i=i.__legendDataIndex,null==n&&null!=i&&(n=o),i===t&&(e=o)})),null!=e?e:n):0;var e,n},NW.type="legend.scroll";var EW,zW=NW;function BW(t){Nm(CW),t.registerComponentModel(LW),t.registerComponentView(zW),t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}function VW(){var t=null!==EW&&EW.apply(this,arguments)||this;return t.type=VW.type,t}a(VW,EW=zg),VW.type="dataZoom.inside",VW.defaultOption=Ks(zg.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0});var FW,HW=VW,GW=ki();function WW(t,e){e&&(t.removeKey(e.model.uid),(t=e.controller)&&t.dispose())}function YW(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function UW(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function XW(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=GW(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=Object(l.f)());i.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=wV(t);Object(l.k)(n.infoList,(function(n){var o,r,a=n.model.uid,s=i.get(a)||i.set(a,(a=e,s=n.model,o={model:s,containsPoint:Object(l.h)(UW,s),dispatchAction:Object(l.h)(YW,a),dataZoomInfoMap:null,controller:null},r=o.controller=new UI(a.getZr()),Object(l.k)(["pan","zoom","scrollMove"],(function(t){r.on(t,(function(e){var n=[];o.dataZoomInfoMap.each((function(i){var r;e.isAvailableBehavior(i.model.option)&&(r=(r=(i.getRange||{})[t])&&r(i.dzReferCoordSysInfo,o.model.mainType,o.controller,e),!i.model.get("disabled",!0)&&r&&n.push({dataZoomId:i.model.id,start:r[0],end:r[1]}))})),n.length&&o.dispatchAction(n)}))})),o));(s.dataZoomInfoMap||(s.dataZoomInfoMap=Object(l.f)())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),i.each((function(t){var e,n,o,r,a,s=t.controller,l=t.dataZoomInfoMap;l&&null!=(n=l.keys()[0])&&(e=l.get(n)),e?(r={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0,l.each((function(t){t=t.model;var e=!t.get("disabled",!0)&&(!t.get("zoomLock",!0)||"move");r["type_"+o]<r["type_"+e]&&(o=e),a=a&&t.get("preventDefaultMouseMove",!0)})),n={controlType:o,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}},s.enable(n.controlType,n.opt),s.setPointerChecker(t.containsPoint),Qf(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")):WW(i,t)}))}))}function ZW(){var t=null!==FW&&FW.apply(this,arguments)||this;return t.type="dataZoom.inside",t}a(ZW,FW=Bg),ZW.prototype.render=function(t,e,n){var i,o;FW.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),n=n,i=t,o={pan:Object(l.c)(qW.pan,this),zoom:Object(l.c)(qW.zoom,this),scrollMove:Object(l.c)(qW.scrollMove,this)},GW(n).coordSysRecordMap.each((function(t){t=t.dataZoomInfoMap.get(i.uid),t&&(t.getRange=o)})))},ZW.prototype.dispose=function(){this._clear(),FW.prototype.dispose.apply(this,arguments)},ZW.prototype._clear=function(){for(var t=this.api,e=this.dataZoomModel,n=GW(t).coordSysRecordMap,i=n.keys(),o=0;o<i.length;o++){var r,a=i[o],s=(a=n.get(a),a.dataZoomInfoMap);s&&(r=e.uid,s.get(r)&&(s.removeKey(r),s.keys().length||WW(n,a)))}this.range=null},ZW.type="dataZoom.inside";var qW={zoom:function(t,e,n,i){var o=this.range,r=o.slice(),a=t.axisModels[0];if(a)return e=$W[e](null,[i.originX,i.originY],a,n,t),a=(0<e.signal?e.pixelStart+e.pixelLength-e.pixel:e.pixel-e.pixelStart)/e.pixelLength*(r[1]-r[0])+r[0],n=Math.max(1/i.scale,0),r[0]=(r[0]-a)*n+a,r[1]=(r[1]-a)*n+a,t=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan(),nL(0,r,[0,100],0,t.minSpan,t.maxSpan),this.range=r,o[0]!==r[0]||o[1]!==r[1]?r:void 0},pan:KW((function(t,e,n,i,o,r){return i=$W[i]([r.oldX,r.oldY],[r.newX,r.newY],e,o,n),i.signal*(t[1]-t[0])*i.pixel/i.pixelLength})),scrollMove:KW((function(t,e,n,i,o,r){return $W[i]([0,0],[r.scrollDelta,r.scrollDelta],e,o,n).signal*(t[1]-t[0])*r.scrollDelta}))};function KW(t){return function(e,n,i,o){var r=this.range,a=r.slice(),s=e.axisModels[0];if(s)return nL(t(a,s,e,n,i,o),a,[0,100],"all"),this.range=a,r[0]!==a[0]||r[1]!==a[1]?a:void 0}}var QW,$W={grid:function(t,e,n,i,o){n=n.axis;var r={};o=o.model.coordinateSystem.getRect();return t=t||[0,0],"x"===n.dim?(r.pixel=e[0]-t[0],r.pixelLength=o.width,r.pixelStart=o.x,r.signal=n.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=o.height,r.pixelStart=o.y,r.signal=n.inverse?-1:1),r},polar:function(t,e,n,i,o){var r=n.axis,a={},s=(o=o.model.coordinateSystem,o.getRadiusAxis().getExtent()),l=o.getAngleAxis().getExtent();return t=t?o.pointToCoord(t):[0,0],e=o.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=s[1]-s[0],a.pixelStart=s[0],a.signal=r.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=r.inverse?-1:1),a},singleAxis:function(t,e,n,i,o){n=n.axis,o=o.model.coordinateSystem.getRect();var r={};return t=t||[0,0],"horizontal"===n.orient?(r.pixel=e[0]-t[0],r.pixelLength=o.width,r.pixelStart=o.x,r.signal=n.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=o.height,r.pixelStart=o.y,r.signal=n.inverse?-1:1),r}},JW=ZW;function tY(t){HV(t),t.registerComponentModel(HW),t.registerComponentView(JW),XW(t)}function eY(){var t=null!==QW&&QW.apply(this,arguments)||this;return t.type=eY.type,t}a(eY,QW=zg),eY.type="dataZoom.slider",eY.layoutMode="box",eY.defaultOption=Ks(zg.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}});var nY,iY=eY,oY=Br,rY="horizontal",aY="vertical",sY=["line","bar","candlestick","scatter"],lY={easing:"cubicOut",duration:100,delay:0};function uY(){var t=null!==nY&&nY.apply(this,arguments)||this;return t.type=uY.type,t._displayables={},t}function cY(t){return"vertical"===t?"ns-resize":"ew-resize"}a(uY,nY=Bg),uY.prototype.init=function(t,e){this.api=e,this._onBrush=Object(l.c)(this._onBrush,this),this._onBrushEnd=Object(l.c)(this._onBrushEnd,this)},uY.prototype.render=function(t,e,n,i){if(nY.prototype.render.apply(this,arguments),Qf(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1===t.get("show"))this.group.removeAll();else{if(t.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}},uY.prototype.dispose=function(){this._clear(),nY.prototype.dispose.apply(this,arguments)},uY.prototype._clear=function(){$f(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},uY.prototype._buildView=function(){var t=this.group,e=(t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval(),this._displayables.sliderGroup=new Gn);this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},uY.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,i=this._findCoordRect(),o=(e={width:e.getWidth(),height:e.getHeight()},this._orient===rY?{right:e.width-i.x-i.width,top:e.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height}),r=Jl(t.option);Object(l.k)(["right","top","width","height"],(function(t){"ph"===r[t]&&(r[t]=o[t])})),n=ql(r,e);this._location={x:n.x,y:n.y},this._size=[n.width,n.height],this._orient===aY&&this._size.reverse()},uY.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=(i=i&&i.get("inverse"),this._displayables.sliderGroup),r=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==rY||i?n===rY&&i?{scaleY:r?1:-1,scaleX:-1}:n!==aY||i?{scaleY:r?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:r?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:r?1:-1,scaleX:1}),n=t.getBoundingRect([o]);t.x=e.x-n.x,t.y=e.y-n.y,t.markRedraw()},uY.prototype._getViewExtent=function(){return[0,this._size[0]]},uY.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new oY({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),t=new oY({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:Object(l.c)(this._onClickPanel,this)}),e=this.api.getZr();i?(t.on("mousedown",this._onBrushStart,this),t.cursor="crosshair",e.on("mousemove",this._onBrush),e.on("mouseup",this._onBrushEnd)):(e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)),n.add(t)},uY.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData();i=i.getShadowDim?i.getShadowDim():t.otherDim;if(null!=i)for(var r,a,s,l,u,c,h,p,d,f,g=this._shadowPolygonPts,y=this._shadowPolylinePts,m=(o===this._shadowData&&i===this._shadowDim&&e[0]===n[0]&&e[1]===n[1]||(t=.3*((r=o.getDataExtent(i))[1]-r[0]),r=[r[0]-t,r[1]+t],a=[0,e[1]],n=[0,e[0]],s=[[e[0],0],[0,0]],l=[],u=n[1]/(o.count()-1),c=0,h=Math.round(o.count()/e[0]),o.each([i],(function(t,e){var n;0<h&&e%h?c+=u:(t=(n=null==t||isNaN(t)||""===t)?0:Kn(t,r,a,!0),n&&!p&&e?(s.push([s[s.length-1][0],0]),l.push([l[l.length-1][0],0])):!n&&p&&(s.push([c,0]),l.push([c,0])),s.push([c,t]),l.push([c,t]),c+=u,p=n)})),g=this._shadowPolygonPts=s,y=this._shadowPolylinePts=l),this._shadowData=o,this._shadowDim=i,this._shadowSize=[e[0],e[1]],this.dataZoomModel),v=0;v<3;v++){d=1===v,x=f=void 0,d=m.getModel(d?"selectedDataBackground":"dataBackground"),f=new Gn,x=new Sd({shape:{points:g},segmentIgnoreThreshold:1,style:d.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),d=new Td({shape:{points:y},segmentIgnoreThreshold:1,style:d.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),f.add(x),f.add(d);var x=f;this._displayables.sliderGroup.add(x),this._displayables.dataShadowSegs.push(x)}}},uY.prototype._prepareDataShadowInfo=function(){var t,e,n=this.dataZoomModel,i=n.get("showDataShadow");if(!1!==i)return e=this.ecModel,n.eachTargetAxis((function(o,r){var a=n.getAxisProxy(o,r).getTargetSeriesModels();Object(l.k)(a,(function(n){var a,s,u,c;t||!0!==i&&Object(l.r)(sY,n.get("type"))<0||(a=e.getComponent(_V(o),r).axis,c=n.coordinateSystem,null!=(s={x:"y",y:"x",radius:"angle",angle:"radius"}[o])&&c.getOtherAxis&&(u=c.getOtherAxis(a).inverse),s=n.getData().mapDimension(s),t={thisAxis:a,series:n,thisDim:o,otherDim:s,otherAxisInverse:u})}),this)}),this),t},uY.prototype._renderHandle=function(){var t,e,n=this.group,i=this._displayables,o=i.handles=[null,null],r=i.handleLabels=[null,null],a=this._displayables.sliderGroup,s=this._size,u=this.dataZoomModel,c=this.api,h=u.get("borderRadius")||0,p=u.get("brushSelect"),d=i.filler=new oY({silent:p,style:{fill:u.get("fillerColor")},textConfig:{position:"inside"}});a.add(d),a.add(new oY({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:h},style:{stroke:u.get("dataBackgroundColor")||u.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),Object(l.k)([0,1],(function(t){var e=u.get("handleIcon"),i=(e=Yg(e=!Hg[e]&&e.indexOf("path://")<0&&e.indexOf("image://")<0?"path://"+e:e,-1,0,2,2,null,!0),e.attr({cursor:cY(this._orient),draggable:!0,drift:Object(l.c)(this._onDragMove,this,t),ondragend:Object(l.c)(this._onDragEnd,this),onmouseover:Object(l.c)(this._showDataInfo,this,!0),onmouseout:Object(l.c)(this._showDataInfo,this,!1),z2:5}),e.getBoundingRect()),s=u.get("handleSize");this._handleHeight=Qn(s,this._size[1]),this._handleWidth=i.width/i.height*this._handleHeight,e.setStyle(u.getModel("handleStyle").getItemStyle()),e.style.strokeNoScale=!0,e.rectHover=!0,e.ensureState("emphasis").style=u.getModel(["emphasis","handleStyle"]).getItemStyle(),Qa(e),s=u.get("handleColor"),null!=s&&(e.style.fill=s),a.add(o[t]=e),i=u.getModel("textStyle");n.add(r[t]=new ia({silent:!0,invisible:!0,style:ws(i,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:i.getTextColor(),font:i.getFont()}),z2:10}))}),this),h=d;p&&(d=Qn(u.get("moveHandleSize"),s[1]),t=i.moveHandle=new Br({style:u.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),p=.8*d,(p=i.moveHandleIcon=Yg(u.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0)).silent=!0,p.y=s[1]+d/2-.5,t.ensureState("emphasis").style=u.getModel(["emphasis","moveHandleStyle"]).getItemStyle(),e=Math.min(s[1]/2,Math.max(d,10)),(h=i.moveZone=new Br({invisible:!0,shape:{y:s[1]-e,height:d+e}})).on("mouseover",(function(){c.enterEmphasis(t)})).on("mouseout",(function(){c.leaveEmphasis(t)})),a.add(t),a.add(p),a.add(h)),h.attr({draggable:!0,cursor:cY(this._orient),drift:Object(l.c)(this._onDragMove,this,"all"),ondragstart:Object(l.c)(this._showDataInfo,this,!0),ondragend:Object(l.c)(this._onDragEnd,this),onmouseover:Object(l.c)(this._showDataInfo,this,!0),onmouseout:Object(l.c)(this._showDataInfo,this,!1)})},uY.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[Kn(t[0],[0,100],e,!0),Kn(t[1],[0,100],e,!0)]},uY.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),r=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];nL(e,i,o,n.get("zoomLock")?"all":t,null!=r.minSpan?Kn(r.minSpan,a,o,!0):null,null!=r.maxSpan?Kn(r.maxSpan,a,o,!0):null),e=this._range,n=this._range=Jn([Kn(i[0],o,a,!0),Kn(i[1],o,a,!0)]);return!e||e[0]!==n[0]||e[1]!==n[1]},uY.prototype._updateView=function(t){for(var e=this._displayables,n=this._handleEnds,i=Jn(n.slice()),o=this._size,r=(Object(l.k)([0,1],(function(t){var i=e.handles[t],r=this._handleHeight;i.attr({scaleX:r/2,scaleY:r/2,x:n[t]+(t?-1:1),y:o[1]/2-r/2})}),this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]}),{x:i[0],width:i[1]-i[0]}),a=(e.moveHandle&&(e.moveHandle.setShape(r),e.moveZone.setShape(r),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",r.x+r.width/2)),e.dataShadowSegs),s=[0,i[0],i[1],o[0]],u=0;u<a.length;u++){var c=a[u],h=c.getClipPath();h||(h=new Br,c.setClipPath(h)),h.setShape({x:s[u],y:0,width:s[u+1]-s[u],height:o[1]})}this._updateDataInfo(t)},uY.prototype._updateDataInfo=function(t){var e,n,i=this.dataZoomModel,o=this._displayables,r=o.handleLabels,a=this._orient,s=["",""],l=(!i.get("showDetail")||(i=i.findRepresentativeAxisProxy())&&(e=i.getAxisModel().axis,n=this._range,t=t?i.calculateDataWindow({start:n[0],end:n[1]}).valueWindow:i.getDataValueWindow(),s=[this._formatLabel(t[0],e),this._formatLabel(t[1],e)]),Jn(this._handleEnds.slice()));function u(t){var e=If(o.handles[t].parent,this.group),n=Tf(0===t?"right":"left",e),i=this._handleWidth/2+5;i=Of([l[t]+(0===t?-i:i),this._size[1]/2],e);r[t].setStyle({x:i[0],y:i[1],verticalAlign:a===rY?"middle":n,align:a===rY?n:"center",text:s[t]})}u.call(this,0),u.call(this,1)},uY.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter");n=n.get("labelPrecision"),null!=n&&"auto"!==n||(n=e.getPixelPrecision()),e=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(n,20));return Object(l.w)(i)?i(t,e):Object(l.C)(i)?i.replace("{value}",e):e},uY.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},uY.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,Z(i.event),i=Of([e,n],this._displayables.sliderGroup.getLocalTransform(),!0),e=this._updateInterval(t,i[0]),n=this.dataZoomModel.get("realtime"),this._updateView(!n),e&&n&&this._dispatchZoomAction(!0)},uY.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),this.dataZoomModel.get("realtime")||this._dispatchZoomAction(!1)},uY.prototype._onClickPanel=function(t){var e=this._size;t=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);t[0]<0||t[0]>e[0]||t[1]<0||t[1]>e[1]||(e=((e=this._handleEnds)[0]+e[1])/2,t=this._updateInterval("all",t[0]-e),this._updateView(),t&&this._dispatchZoomAction(!1))},uY.prototype._onBrushStart=function(t){var e=t.offsetX;t=t.offsetY;this._brushStart=new un(e,t),this._brushing=!0,this._brushStartTime=+new Date},uY.prototype._onBrushEnd=function(t){var e,n,i;this._brushing&&(e=this._displayables.brushRect,this._brushing=!1,e&&(e.attr("ignore",!0),e=e.shape,+new Date-this._brushStartTime<200&&Math.abs(e.width)<5||(n=this._getViewExtent(),this._range=Jn([Kn(e.x,n,i=[0,100],!0),Kn(e.x+e.width,n,i,!0)]),this._handleEnds=[e.x,e.x+e.width],this._updateView(),this._dispatchZoomAction(!1))))},uY.prototype._onBrush=function(t){this._brushing&&(Z(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},uY.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new oY({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1),i=this._brushStart,n=this._displayables.sliderGroup,t=n.transformCoordToLocal(t,e),e=n.transformCoordToLocal(i.x,i.y),n=this._size;t[0]=Math.max(Math.min(n[0],t[0]),0),o.setShape({x:e[0],y:0,width:t[0]-e[0],height:n[1]})},uY.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?lY:null,start:e[0],end:e[1]})},uY.prototype._findCoordRect=function(){var t,e,n=wV(this.dataZoomModel).infoList;return(t=!t&&n.length?(n=n[0].model.coordinateSystem).getRect&&n.getRect():t)?t:{x:.2*(n=this.api.getWidth()),y:.2*(e=this.api.getHeight()),width:.6*n,height:.6*e}},uY.type="dataZoom.slider";var hY=uY;function pY(t){t.registerComponentModel(iY),t.registerComponentView(hY),HV(t)}var dY,fY={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},gY={get:function(t,e,n){return t=l.d((fY[t]||{})[e]),n&&l.t(t)?t[t.length-1]:t}},yY=xA.mapVisual,mY=xA.eachVisual,vY=l.t,xY=l.k,_Y=Jn,bY=Kn;function wY(){var t=null!==dY&&dY.apply(this,arguments)||this;return t.type=wY.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}a(wY,dY=uu),wY.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},wY.prototype.optionUpdated=function(t,e){var n=this.option;e||wH(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},wY.prototype.resetVisual=function(t){var e=this.stateList;t=l.c(t,this),this.controllerVisuals=bH(this.option.controller,e,t),this.targetVisuals=bH(this.option.target,e,t)},wY.prototype.getItemSymbol=function(){return null},wY.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=vi(t),e},wY.prototype.eachTargetSeries=function(t,e){l.k(this.getTargetSeriesIndices(),(function(n){n=this.ecModel.getSeriesByIndex(n),n&&t.call(e,n)}),this)},wY.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},wY.prototype.formatValueText=function(t,e,n){var i,o=this.option,r=o.precision,a=this.dataBound;o=o.formatter,n=n||["<",">"],l.t(t)&&(t=t.slice(),i=!0),e=e?t:i?[s(t[0]),s(t[1])]:s(t);return l.C(o)?o.replace("{value}",i?e[0]:e).replace("{value2}",i?e[1]:e):l.w(o)?i?o(t[0],t[1]):o(t):i?t[0]===a[0]?n[0]+" "+e[1]:t[1]===a[1]?n[1]+" "+e[0]:e[0]+" - "+e[1]:e;function s(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(r,20))}},wY.prototype.resetExtent=function(){var t=this.option;t=_Y([t.min,t.max]);this._dataExtent=t},wY.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;0<=i;i--){var o=n[i];o=t.getDimensionInfo(o);if(!o.isCalculationCoord)return o.storeDimIndex}},wY.prototype.getExtent=function(){return this._dataExtent.slice()},wY.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),o=e.controller||(e.controller={}),r=(l.I(i,n),l.I(o,n),this.isCategory());function a(n){vY(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,i),a.call(this,o),function(t,e,n){e=t[e];var i=t[n];e&&!i&&(i=t[n]={},xY(e,(function(t,e){var n;!xA.isValidType(e)||null!=(n=gY.get(e,"inactive",r))&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))})))}.call(this,i,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),o=this.getItemSymbol()||"roundRect";xY(this.stateList,(function(a){var s,u=this.itemSize,c=t[a];null==(c=c||(t[a]={color:r?i:[i]})).symbol&&(c.symbol=e&&l.d(e)||(r?o:[o])),null==c.symbolSize&&(c.symbolSize=n&&l.d(n)||(r?u[0]:[u[0],u[0]])),c.symbol=yY(c.symbol,(function(t){return"none"===t?o:t})),a=c.symbolSize;null!=a&&(s=-1/0,mY(a,(function(t){s<t&&(s=t)})),c.symbolSize=yY(a,(function(t){return bY(t,[0,s],[0,u[0]],!0)})))}),this)}.call(this,o)},wY.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},wY.prototype.isCategory=function(){return!!this.option.categories},wY.prototype.setSelected=function(t){},wY.prototype.getSelected=function(){return null},wY.prototype.getValueState=function(t){return null},wY.prototype.getVisualMeta=function(t){return null},wY.type="visualMap",wY.dependencies=["series"],wY.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}};Vg=wY;var SY,MY=[20,140];function IY(){var t=null!==SY&&SY.apply(this,arguments)||this;return t.type=IY.type,t}function OY(t,e,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,o=n[0],r=[],a=0;a<=200&&o<n[1];a++)r.push(o),o+=i;return r.push(n[1]),r}a(IY,SY=Vg),IY.prototype.optionUpdated=function(t,e){SY.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},IY.prototype.resetItemSize=function(){SY.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;null!=t[0]&&!isNaN(t[0])||(t[0]=MY[0]),null!=t[1]&&!isNaN(t[1])||(t[1]=MY[1])},IY.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):l.t(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},IY.prototype.completeVisualOption=function(){SY.prototype.completeVisualOption.apply(this,arguments),l.k(this.stateList,(function(t){t=this.option.controller[t].symbolSize,t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},IY.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},IY.prototype.getSelected=function(){var t=this.getExtent(),e=Jn((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},IY.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},IY.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},IY.prototype.getVisualMeta=function(t){var e=OY(0,0,this.getExtent()),n=OY(0,0,this.option.range.slice()),i=[];function o(e,n){i.push({value:e,color:t(e,n)})}for(var r=0,a=0,s=n.length,l=e.length;a<l&&(!n.length||e[a]<=n[0]);a++)e[a]<n[r]&&o(e[a],"outOfRange");for(var u=1;r<s;r++,u=0)u&&i.length&&o(n[r],"outOfRange"),o(n[r],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(u&&(i.length&&o(i[i.length-1].value,"outOfRange"),u=0),o(e[a],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},IY.type="visualMap.continuous",IY.defaultOption=Ks(Vg.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}});var TY,CY=IY;function AY(){var t=null!==TY&&TY.apply(this,arguments)||this;return t.type=AY.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}a(AY,TY=xp),AY.prototype.init=function(t,e){this.ecModel=t,this.api=e},AY.prototype.render=function(t,e,n,i){!1===(this.visualMapModel=t).get("show")?this.group.removeAll():this.doRender(t,e,n,i)},AY.prototype.renderBackground=function(t){var e=this.visualMapModel,n=jl(e.get("padding")||0),i=t.getBoundingRect();t.add(new Br({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},AY.prototype.getControllerVisual=function(t,e,n){var i=(n=n||{}).forceState,o=this.visualMapModel,r={};function a(t){return r[t]}function s(t,e){r[t]=e}"color"===e&&(c=o.get("contentColor"),r.color=c);var u=o.controllerVisuals[i||o.getValueState(t)],c=xA.prepareVisualTypes(u);return l.k(c,(function(i){var o=u[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",o=u.__alphaForOpacity),xA.dependsOn(i,e)&&o&&o.applyVisual(t,a,s)})),r[e]},AY.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;Kl(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},AY.prototype.doRender=function(t,e,n,i){},AY.type="visualMap";Ys=AY;var kY=[["left","right","width"],["top","bottom","height"]];function DY(t,e,n){var i=t.option;t=i.align;if(null!=t&&"auto"!==t)return t;t={width:e.getWidth(),height:e.getHeight()};for(var o="horizontal"===i.orient?1:0,r=kY[o],a=[0,null,10],s={},l=0;l<3;l++)s[kY[1-o][l]]=a[l],s[r[l]]=2===l?n[0]:i[r[l]];e=[["x","width",3],["y","height",0]][o];var u=ql(s,t,i.padding);return r[(u.margin[e[2]]||0)+u[e[0]]+.5*u[e[1]]<.5*t[e[1]]?0:1]}function LY(t,e){return l.k(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}var PY,jY=Kn,RY=l.k,NY=Math.min,EY=Math.max;function zY(){var t=null!==PY&&PY.apply(this,arguments)||this;return t.type=zY.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}function BY(t,e,n,i){return new Sd({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){Z(t.event)},ondragend:i})}function VY(t){var e=t.get("hoverLinkOnHandle");return null==e?t.get("realtime"):e}function FY(t){return"vertical"===t?"ns-resize":"ew-resize"}function HY(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))}a(zY,PY=Ys),zY.prototype.doRender=function(t,e,n,i){this._api=n,i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},zY.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e),t=t.get("text");this._renderEndsText(e,t,0),this._renderEndsText(e,t,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},zY.prototype._renderEndsText=function(t,e,n){var i,o,r;e&&(e=null!=(e=e[1-n])?e+"":"",o=(i=this.visualMapModel).get("textGap"),i=i.itemSize,r=this._shapes.mainGroup,i=this._applyTransform([i[0]/2,0===n?-o:i[1]+o],r),o=this._applyTransform(0===n?"bottom":"top",r),n=this._orient,r=this.visualMapModel.textStyleModel,this.group.add(new ia({style:{x:i[0],y:i[1],verticalAlign:"horizontal"===n?"middle":o,align:"horizontal"===n?o:"center",text:e,font:r.getFont(),fill:r.getTextColor()}})))},zY.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,o=this._orient,r=this._useHandle,a=DY(e,this.api,i),s=(a=n.mainGroup=this._createBarGroup(a),new Gn);a.add(s),s.add(n.outOfRange=BY()),s.add(n.inRange=BY(null,r?FY(this._orient):null,l.c(this._dragHandle,this,"all",!1),l.c(this._dragHandle,this,"all",!0))),s.setClipPath(new Br({shape:{x:0,y:0,width:i[0],height:i[1],r:3}})),s=e.textStyleModel.getTextRect("国"),s=EY(s.width,s.height);r&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,a,0,i,s,o),this._createHandle(e,a,1,i,s,o)),this._createIndicator(e,a,i,s,o),t.add(a)},zY.prototype._createHandle=function(t,e,n,i,o,r){var a=l.c(this._dragHandle,this,n,!1),s=l.c(this._dragHandle,this,n,!0),u=An(t.get("handleSize"),i[0]),c=Yg(t.get("handleIcon"),-u/2,-u/2,u,u,null,!0),h=FY(this._orient);c.attr({cursor:h,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){Z(t.event)}}),c.x=i[0]/2,c.useStyle(t.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),is(c,!0),e.add(c),i=this.visualMapModel.textStyleModel,t=new ia({cursor:h,draggable:!0,drift:a,onmousemove:function(t){Z(t.event)},ondragend:s,style:{x:0,y:0,text:"",font:i.getFont(),fill:i.getTextColor()}}),t.ensureState("blur").style={opacity:.1},t.stateTransition={duration:200},this.group.add(t),e=[u,0],h=this._shapes;h.handleThumbs[n]=c,h.handleLabelPoints[n]=e,h.handleLabels[n]=t},zY.prototype._createIndicator=function(t,e,n,i,o){var r=An(t.get("indicatorSize"),n[0]),a=(r=Yg(t.get("indicatorIcon"),-r/2,-r/2,r,r,null,!0),t=(r.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2}),t.getModel("indicatorStyle").getItemStyle()),r instanceof Ar?(a=r.style,r.useStyle(l.m({image:a.image,x:a.x,y:a.y,width:a.width,height:a.height},t))):r.useStyle(t),e.add(r),this.visualMapModel.textStyleModel);t=new ia({silent:!0,invisible:!0,style:{x:0,y:0,text:"",font:a.getFont(),fill:a.getTextColor()}}),this.group.add(t),e=[("horizontal"===o?i/2:6)+n[0]/2,0],a=this._shapes;a.indicator=r,a.indicatorLabel=t,a.indicatorLabelPoint=e,this._firstShowIndicator=!0},zY.prototype._dragHandle=function(t,e,n,i){this._useHandle&&(this._dragging=!e,e||(n=this._applyTransform([n,i],this._shapes.mainGroup,!0),this._updateInterval(t,n[1]),this._hideIndicator(),this._updateView()),e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?this._hovering||this._clearHoverLinkToSeries():VY(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1))},zY.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent();t=[0,t.itemSize[1]];this._handleEnds=[jY(e[0],n,t,!0),jY(e[1],n,t,!0)]},zY.prototype._updateInterval=function(t,e){var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];nL(e=e||0,i,o,t,0),e=n.getExtent();this._dataInterval=[jY(i[0],o,e,!0),jY(i[1],o,e,!0)]},zY.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,o=(e=[0,e.itemSize[1]],t=t?e:this._handleEnds,this._createBarVisual(this._dataInterval,n,t,"inRange"));n=this._createBarVisual(n,n,e,"outOfRange");i.inRange.setStyle({fill:o.barColor}).setShape("points",o.barPoints),i.outOfRange.setStyle({fill:n.barColor}).setShape("points",n.barPoints),this._updateHandle(t,o)},zY.prototype._createBarVisual=function(t,e,n,i){i={forceState:i,convertOpacityToAlpha:!0};var o=this._makeColorGradient(t,i);t=[this.getControllerVisual(t[0],"symbolSize",i),this.getControllerVisual(t[1],"symbolSize",i)],i=this._createBarPoints(n,t);return{barColor:new qd(0,0,0,1,o),barPoints:i,handlesColor:[o[0].color,o[o.length-1].color]}},zY.prototype._makeColorGradient=function(t,e){var n=[],i=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var o=1;o<100;o++){var r=t[0]+i*o;if(r>t[1])break;n.push({color:this.getControllerVisual(r,"color",e),offset:o/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},zY.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},zY.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new Gn("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},zY.prototype._updateHandle=function(t,e){var n,i,o,r,a,s;this._useHandle&&(n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,r=n.handleLabels,a=i.itemSize,s=i.getExtent(),RY([0,1],(function(l){var u=o[l],c=(u.setStyle("fill",e.handlesColor[l]),u.y=t[l],jY(t[l],[0,a[1]],s,!0));c=this.getControllerVisual(c,"symbolSize"),u.scaleX=u.scaleY=c/a[0],u.x=a[0]-c/2,c=Of(n.handleLabelPoints[l],If(u,this.group));r[l].setStyle({x:c[0],y:c[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this))},zY.prototype._showIndicator=function(t,e,n,i){var o=this.visualMapModel,r=o.getExtent(),a=o.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),h=this.getControllerVisual(t,"symbolSize"),p=(t=jY(t,r,s,!0),r=a[0]-h/2,s={x:u.x,y:u.y},a=(u.y=t,u.x=r,Of(l.indicatorLabelPoint,If(u,this.group))),h=l.indicatorLabel,l=(h.attr("invisible",!1),this._applyTransform("left",l.mainGroup)),"horizontal"===this._orient),d=(n=(h.setStyle({text:(n||"")+o.formatValueText(e),verticalAlign:p?l:"middle",align:p?"center":l}),{x:r,y:t,style:{fill:c}}),e={style:{x:a[0],y:a[1]}},o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator?(p={duration:100,easing:"cubicInOut",additive:!0},u.x=s.x,u.y=s.y,u.animateTo(n,p),h.animateTo(e,p)):(u.attr(n),h.attr(e)),this._firstShowIndicator=!1,this._shapes.handleLabels);if(d)for(var f=0;f<d.length;f++)this._api.enterBlur(d[f])}},zY.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",(function(e){var n;t._hovering=!0,t._dragging||(n=t.visualMapModel.itemSize,(e=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0))[1]=NY(EY(0,e[1]),n[1]),t._doHoverLinkToSeries(e[1],0<=e[0]&&e[0]<=n[0]))})).on("mouseout",(function(){t._hovering=!1,t._dragging||t._clearHoverLinkToSeries()}))},zY.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},zY.prototype._doHoverLinkToSeries=function(t,e){var n,i,o,r=this.visualMapModel,a=r.itemSize;function s(t,e,n){for(var i=0,o=t.length;i<o;i++){var r=Ii(t[i].seriesId,null);if(null==r)return;for(var a=vi(t[i].dataIndex),s=n&&n[r],l=0,u=a.length;l<u;l++){var c=a[l];s&&s[c]?s[c]=null:(e[r]||(e[r]={}))[c]=1}}}function l(t,e){var n,i,o=[];for(n in t)t.hasOwnProperty(n)&&null!=t[n]&&(e?o.push(+n):(i=l(t[n],!0)).length&&o.push({seriesId:n,dataIndex:i}));return o}r.option.hoverLink&&(a=[0,a[1]],i=r.getExtent(),n=[(t=NY(EY(a[0],t),a[1]))-(o=function(t,e,n){var i=6;t=t.get("hoverLinkDataSize");return t&&(i=jY(t,e,n,!0)/2),i}(r,i,a)),t+o],t=jY(t,a,i,!0),i=[jY(n[0],a,i,!0),jY(n[1],a,i,!0)],n[0]<a[0]&&(i[0]=-1/0),a[1]<n[1]&&(i[1]=1/0),e&&(i[0]===-1/0?this._showIndicator(t,i[1],"< ",o):i[1]===1/0?this._showIndicator(t,i[0],"> ",o):this._showIndicator(t,t,"≈ ",o)),a=this._hoverLinkDataIndices,n=[],(e||VY(r))&&(n=this._hoverLinkDataIndices=r.findTargetDataIndices(i)),t=n,o={},s(a||[],e={}),s(t||[],o,e),i=[l(e),l(o)],this._dispatchHighDown("downplay",LY(i[0],r)),this._dispatchHighDown("highlight",LY(i[1],r)))},zY.prototype._hoverLinkFromSeriesMouseOver=function(t){t=t.target;var e,n=this.visualMapModel;t&&null!=oa(t).dataIndex&&(t=oa(t),e=this.ecModel.getSeriesByIndex(t.seriesIndex),n.isTargetSeries(e)&&(n=(e=e.getData(t.dataType)).getStore().get(n.getDataDimensionIndex(e),t.dataIndex),isNaN(n)||this._showIndicator(n,n)))},zY.prototype._hideIndicator=function(){var t=this._shapes,e=(t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0),this._shapes.handleLabels);if(e)for(var n=0;n<e.length;n++)this._api.leaveBlur(e[n])},zY.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",LY(t,this.visualMapModel)),t.length=0},zY.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},zY.prototype._applyTransform=function(t,e,n,i){return e=If(e,i?null:this.group),(l.t(t)?Of:Tf)(t,e,n)},zY.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},zY.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},zY.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},zY.type="visualMap.continuous";var GY=zY,WY={type:"selectDataRange",event:"dataRangeSelected",update:"update"},YY=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var i,o,r,a,s=t.pipelineContext;!e.isTargetSeries(t)||s&&s.large||n.push((s=e.stateList,i=e.targetVisuals,o=l.c(e.getValueState,e),r=e.getDataDimensionIndex(t.getData()),a={},l.k(s,(function(t){var e=xA.prepareVisualTypes(i[t]);a[t]=e})),{progress:function(t,e){var n,s;function l(t){return Tg(e,s,t)}function u(t,n){Ag(e,s,t,n)}null!=r&&(n=e.getDimensionIndex(r));for(var c=e.getStore();null!=(s=t.next());){var h=e.getRawDataItem(s);if(!h||!1!==h.visualMap)for(var p=null!=r?c.get(n,s):s,d=(h=o(p),i[h]),f=a[h],g=0,y=f.length;g<y;g++){var m=f[g];d[m]&&d[m].applyVisual(p,l,u)}}}}))})),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),i=[];e.eachComponent("visualMap",(function(e){var o;e.isTargetSeries(t)&&(o=e.getVisualMeta(l.c(UY,null,t,e))||{stops:[],outerColors:[]},0<=(e=e.getDataDimensionIndex(n))&&(o.dimension=e,i.push(o)))})),t.getData().setVisual("visualMeta",i)}}];function UY(t,e,n,i){for(var o=e.targetVisuals[i],r=xA.prepareVisualTypes(o),a={color:Cg(t.getData(),"color")},s=0,l=r.length;s<l;s++){var u=r[s];u=o["opacity"===u?"__alphaForOpacity":u];u&&u.applyVisual(n,c,h)}return a.color;function c(t){return a[t]}function h(t,e){a[t]=e}}var XY=l.k;function ZY(t){t=t&&t.visualMap,l.t(t)||(t=t?[t]:[]),XY(t,(function(t){t&&(qY(t,"splitList")&&!qY(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList),(t=t.pieces)&&l.t(t)&&XY(t,(function(t){l.A(t)&&(qY(t,"start")&&!qY(t,"min")&&(t.min=t.start),qY(t,"end")&&!qY(t,"max")&&(t.max=t.end))})))}))}function qY(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var KY,QY=!1;function $Y(t){QY||(QY=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?0<t.pieces.length:0<t.splitNumber)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(WY,HY),Object(l.k)(YY,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(ZY))}function JY(t){t.registerComponentModel(CY),t.registerComponentView(GY),$Y(t)}function tU(){var t=null!==KY&&KY.apply(this,arguments)||this;return t.type=tU.type,t._pieceList=[],t}a(tU,KY=Vg),tU.prototype.optionUpdated=function(t,e){KY.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode(),i=(this._pieceList=[],eU[this._mode].call(this,this._pieceList),this._resetSelected(t,e),this.option.categories);this.resetVisual((function(t,e){"categories"===n?(t.mappingMethod="category",t.categories=l.d(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=l.H(this._pieceList,(function(t){return t=l.d(t),"inRange"!==e&&(t.visual=null),t})))}))},tU.prototype.completeVisualOption=function(){var t=this.option,e={},n=xA.listVisualTypes(),i=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}l.k(t.pieces,(function(t){l.k(n,(function(n){t.hasOwnProperty(n)&&(e[n]=1)}))})),l.k(e,(function(e,n){var r=!1;l.k(this.stateList,(function(e){r=r||o(t,e,n)||o(t.target,e,n)}),this),r||l.k(this.stateList,(function(e){(t[e]||(t[e]={}))[n]=gY.get(n,"inRange"===e?"active":"inactive",i)}))}),this),KY.prototype.completeVisualOption.apply(this,arguments)},tU.prototype._resetSelected=function(t,e){var n,i=this.option,o=this._pieceList,r=(e?i:t).selected||{};i.selected=r,l.k(o,(function(t,e){t=this.getSelectedMapKey(t),r.hasOwnProperty(t)||(r[t]=!0)}),this),"single"===i.selectedMode&&(n=!1,l.k(o,(function(t,e){t=this.getSelectedMapKey(t),r[t]&&(n?r[t]=!1:n=!0)}),this))},tU.prototype.getItemSymbol=function(){return this.get("itemSymbol")},tU.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},tU.prototype.getPieceList=function(){return this._pieceList},tU.prototype._determineMode=function(){var t=this.option;return t.pieces&&0<t.pieces.length?"pieces":this.option.categories?"categories":"splitNumber"},tU.prototype.setSelected=function(t){this.option.selected=l.d(t)},tU.prototype.getValueState=function(t){return t=xA.findPieceIndex(t,this._pieceList),null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},tU.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(i){var o=[],r=i.getData();r.each(this.getDataDimensionIndex(r),(function(e,i){xA.findPieceIndex(e,n)===t&&o.push(i)}),this),e.push({seriesId:i.id,dataIndex:o})}),this),e},tU.prototype.getRepresentValue=function(t){return this.isCategory()||null!=t.value?t.value:(t=t.interval||[])[0]===-1/0&&t[1]===1/0?0:(t[0]+t[1])/2},tU.prototype.getVisualMeta=function(t){var e,n,i,o,r,a;if(!this.isCategory())return e=[],n=["",""],i=this,o=this._pieceList.slice(),o.length?((r=o[0].interval[0])!==-1/0&&o.unshift({interval:[-1/0,r]}),(r=o[o.length-1].interval[1])!==1/0&&o.push({interval:[r,1/0]})):o.push({interval:[-1/0,1/0]}),a=-1/0,l.k(o,(function(t){t=t.interval,t&&(t[0]>a&&s([a,t[0]],"outOfRange"),s(t.slice()),a=t[1])}),this),{stops:e,outerColors:n};function s(o,r){var a=i.getRepresentValue({interval:o});r=r||i.getValueState(a),a=t(a,r);o[0]===-1/0?n[0]=a:o[1]===1/0?n[1]=a:e.push({value:o[0],color:a},{value:o[1],color:a})}},tU.type="visualMap.piecewise",tU.defaultOption=Ks(Vg.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0});var eU={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),o=e.splitNumber;o=Math.max(parseInt(o,10),1);e.splitNumber=o;for(var r=(i[1]-i[0])/o;+r.toFixed(n)!==r&&n<5;)n++;e.precision=n,r=+r.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<o;s+=r,a++){var u=a===o-1?i[1]:s+r;t.push({interval:[s,u],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),ci(t),l.k(t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;l.k(e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),nU(e,t)},pieces:function(t){var e=this.option;l.k(e.pieces,(function(e,n){if(n={text:"",index:n},null!=(e=l.A(e)?e:{value:e}).label&&(n.text=e.label),e.hasOwnProperty("value")){var i=n.value=e.value;n.interval=[i,i],n.close=[1,1]}else{for(var o=n.interval=[],r=n.close=[0,0],a=[1,0,1],s=[-1/0,1/0],u=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],p=0;p<3&&null==o[c];p++)o[c]=e[h[p]],r[c]=a[p],u[c]=2===p;null==o[c]&&(o[c]=s[c])}u[0]&&o[1]===1/0&&(r[0]=0),u[1]&&o[0]===-1/0&&(r[1]=0),o[0]===o[1]&&r[0]&&r[1]&&(n.value=o[0])}n.visual=xA.retrieveVisuals(e),t.push(n)}),this),nU(e,t),ci(t),l.k(t,(function(t){var e=t.close;e=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,e)}),this)}};function nU(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var iU,oU=tU;function rU(){var t=null!==iU&&iU.apply(this,arguments)||this;return t.type=rU.type,t}a(rU,iU=Ys),rU.prototype.doRender=function(){var t=this.group,e=(t.removeAll(),this.visualMapModel),n=e.get("textGap"),i=e.textStyleModel,o=i.getFont(),r=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,u=(i=this._getViewData(),i.endsText),c=l.O(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,a),l.k(i.viewPieceList,(function(i){var u=i.piece,h=new Gn;h.onclick=l.c(this._onItemClick,this,u),this._enableHoverLink(h,i.indexInModelPieceList),i=e.getRepresentValue(u);this._createItemSymbol(h,i,[0,0,s[0],s[1]]),c&&(i=this.visualMapModel.getValueState(i),h.add(new ia({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:u.text,verticalAlign:"middle",align:a,font:o,fill:r,opacity:"outOfRange"===i?.5:1}}))),t.add(h)}),this),u&&this._renderEndsText(t,u[1],s,c,a),Zl(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},rU.prototype._enableHoverLink=function(t,e){var n=this,i=(t.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")})),function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:LY(i.findTargetDataIndices(e),i)})})},rU.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;return"vertical"===e.orient?DY(t,this.api,t.itemSize):(t=e.align)&&"auto"!==t?t:"left"},rU.prototype._renderEndsText=function(t,e,n,i,o){var r,a;e&&(r=new Gn,a=this.visualMapModel.textStyleModel,r.add(new ia({style:{x:i?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:e,font:a.getFont(),fill:a.getTextColor()}})),t.add(r))},rU.prototype._getViewData=function(){var t=this.visualMapModel,e=l.H(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),i=t.get("orient");t=t.get("inverse");return("horizontal"===i?t:!t)?e.reverse():n=n&&n.slice().reverse(),{viewPieceList:e,endsText:n}},rU.prototype._createItemSymbol=function(t,e,n){t.add(Yg(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},rU.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=l.d(n.selected),o=e.getSelectedMapKey(t);"single"===n.selectedMode?(i[o]=!0,l.k(i,(function(t,e){i[e]=e===o}))):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})},rU.type="visualMap.piecewise";var aU=rU;function sU(t){t.registerComponentModel(oU),t.registerComponentView(aU),$Y(t)}var lU={label:{enabled:!0},decal:{show:!1}},uU=ki(),cU={};function hU(t,e){var n,i,o,r,a,s,u,c,h=t.getModel("aria");function p(t,e){if(!l.C(t))return t;var n=t;return l.k(e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}h.get("enabled")&&(u=l.d(lU),l.I(u.label,t.getLocaleModel().get("aria"),!1),l.I(h.option,u,!1),h.getModel("decal").get("show")&&(n=l.f(),t.eachSeries((function(t){var e;t.isColorBySeries()||((e=n.get(t.type))||n.set(t.type,e={}),uU(t).scope=e)})),t.eachRawSeries((function(e){var n,i,o,r,a,s,u;function c(t,e){return t=t?l.m(l.m({},e),t):e,t.dirty=!0,t}t.isSeriesFiltered(e)||(l.w(e.enableAriaDecal)?e.enableAriaDecal():(n=e.getData(),e.isColorBySeries()?(i=Ru(e.ecModel,e.name,cU,t.getSeriesCount()),o=n.getVisual("decal"),n.setVisual("decal",c(o,i))):(r=e.getRawData(),a={},s=uU(e).scope,n.each((function(t){var e=n.getRawIndex(t);a[e]=t})),u=r.count(),r.each((function(t){var i=a[t],o=(t=r.getName(t)||t+"",t=Ru(e.ecModel,t,s,u),n.getItemVisual(i,"decal"));n.setItemVisual(i,"decal",c(o,t))})))))}))),u=t.getLocaleModel().get("aria"),(c=h.getModel("label")).option=l.i(c.option,u),c.get("enabled")&&(u=e.getZr().dom,c.get("description")?u.setAttribute("aria-label",c.get("description")):(i=t.getSeriesCount(),o=c.get(["data","maxCount"])||10,h=c.get(["series","maxCount"])||10,r=Math.min(i,h),i<1||(h=(h=function(){var e=t.get("title");return e&&e.length&&(e=e[0]),e&&e.text}())?p(c.get(["general","withTitle"]),{title:h}):c.get(["general","withoutTitle"]),a=[],e=1<i?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]),h+=p(e,{seriesCount:i}),t.eachSeries((function(e,n){if(n<r){n=void 0;var s=e.get("name")?"withName":"withoutName";n=p(n=1<i?c.get(["series","multiple",s]):c.get(["series","single",s]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(s=e.subType,t.getLocaleModel().get(["series","typeNames"])[s]||"自定义图")});for(var l,u,h,d=e.getData(),f=(d.count()>o?n+=p(c.get(["data","partialData"]),{displayCnt:o}):n+=c.get(["data","allData"]),c.get(["data","separator","middle"])),g=(s=c.get(["data","separator","end"]),[]),y=0;y<d.count();y++)y<o&&(l=d.getName(y),u=d.getValues(y),h=c.get(["data",l?"withName":"withoutName"]),g.push(p(h,{name:l,value:u.join(f)})));n+=g.join(f)+s,a.push(n)}})),e=c.getModel(["series","multiple","separator"]),s=e.get("middle"),e=e.get("end"),h+=a.join(s)+e,u.setAttribute("aria-label",h)))))}function pU(t){var e;t&&t.aria&&(null!=(e=t.aria).show&&(e.enabled=e.show),e.label=e.label||{},l.k(["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])})))}var dU={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},fU=(gU.prototype.evaluate=function(t){var e=typeof t;return Object(l.C)(e)?this._condVal.test(t):!!Object(l.z)(e)&&this._condVal.test(t+"")},gU);function gU(t){null==(this._condVal=Object(l.C)(t)?new RegExp(t):Object(l.B)(t)?t:null)&&Eu("")}mU.prototype.evaluate=function(){return this.value};var yU=mU;function mU(){}xU.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0};var vU=xU;function xU(){}bU.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1};var _U=bU;function bU(){}SU.prototype.evaluate=function(){return!this.child.evaluate()};var wU=SU;function SU(){}IU.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:e))return!1;return!0};var MU=IU;function IU(){}function OU(t,e){if(!0===t||!1===t)return(n=new yU).value=t,n;var n;if(CU(t)||Eu(""),t.and)return TU("and",t,e);if(t.or)return TU("or",t,e);if(t.not)return n=e,CU(r=(r=t).not)||Eu(""),(u=new wU).child=OU(r,n),u.child||Eu(""),u;for(var i=t,o=e,r=o.prepareGetValue(i),a=[],s=Object(l.F)(i),u=i.parser,c=u?uh(u):null,h=0;h<s.length;h++){var p,d=s[h];"parser"===d||o.valueGetterAttrMap.get(d)||(p=Object(l.q)(dU,d)?dU[d]:d,d=i[d],d=c?c(d):d,(p=function(t,e){return"eq"===t||"ne"===t?new gh("eq"===t,e):Object(l.q)(ch,t)?new hh(t,e):null}(p,d)||"reg"===p&&new fU(d))||Eu(""),a.push(p))}return a.length||Eu(""),(u=new MU).valueGetterParam=r,u.valueParser=c,u.getValue=o.getValue,u.subCondList=a,u}function TU(t,e,n){return e=e[t],Object(l.t)(e)||Eu(""),e.length||Eu(""),t=new("and"===t?vU:_U),t.children=Object(l.H)(e,(function(t){return OU(t,n)})),t.children.length||Eu(""),t}function CU(t){return Object(l.A)(t)&&!Object(l.u)(t)}kU.prototype.evaluate=function(){return this._cond.evaluate()};var AU=kU;function kU(t,e){this._cond=OU(t,e)}var DU={type:"echarts:filter",transform:function(t){for(var e,n,i=t.upstream,o=(t=t.config,n={valueGetterAttrMap:Object(l.f)({dimension:!0}),prepareGetValue:function(t){var e=t.dimension;Object(l.q)(t,"dimension")||Eu(""),t=i.getDimensionInfo(e);return t||Eu(""),{dimIdx:t.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}},new AU(t,n)),r=[],a=0,s=i.count();a<s;a++)e=i.getRawDataItem(a),o.evaluate()&&r.push(e);return{data:r}}},LU={type:"echarts:sort",transform:function(t){for(var e=t.upstream,n=(t=t.config,t=vi(t),t.length||Eu(""),[]),i=(t=(Object(l.k)(t,(function(t){var i=t.dimension,o=t.order,r=t.parser,a=(t=t.incomparable,i=(null==i&&Eu(""),"asc"!==o&&"desc"!==o&&Eu(""),t&&"min"!==t&&"max"!==t&&Eu(""),"asc"!==o&&"desc"!==o&&Eu(""),e.getDimensionInfo(i)),i||Eu(""),r?uh(r):null);r&&!a&&Eu(""),n.push({dimIdx:i.index,parser:a,comparator:new dh(o,t)})})),e.sourceFormat),t!==du&&t!==fu&&Eu(""),[]),o=0,r=e.count();o<r;o++)i.push(e.getRawDataItem(o));return i.sort((function(t,i){for(var o=0;o<n.length;o++){var r=n[o],a=e.retrieveValueFromItem(t,r.dimIdx),s=e.retrieveValueFromItem(i,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:i}}};a(RU,PU=uu),RU.prototype.init=function(t,e,n){PU.prototype.init.call(this,t,e,n),this._sourceManager=new Eh(this),Bh(this)},RU.prototype.mergeOption=function(t,e){PU.prototype.mergeOption.call(this,t,e),Bh(this)},RU.prototype.optionUpdated=function(){this._sourceManager.dirty()},RU.prototype.getSourceManager=function(){return this._sourceManager},RU.type="dataset",RU.defaultOption={seriesLayoutBy:vu};var PU,jU=RU;function RU(){var t=null!==PU&&PU.apply(this,arguments)||this;return t.type="dataset",t}a(zU,NU=xp),zU.type="dataset";var NU,EU=zU;function zU(){var t=null!==NU&&NU.apply(this,arguments)||this;return t.type="dataset",t}var BU=tr.CMD;function VU(t,e){return Math.abs(t-e)<1e-5}function FU(t){var e,n,i=t.data,o=t.len(),r=[],a=0,s=0,l=0,u=0;function c(t,n){e&&2<e.length&&r.push(e),e=[t,n]}function h(t,n,i,o){VU(t,i)&&VU(n,o)||e.push(t,n,i,o,i,o)}for(var p,d,f,g,y,m,v,x,_,b,w,S,M=0;M<o;){var I=i[M++],O=1===M;switch(O&&(l=a=i[M],u=s=i[M+1],I!==BU.L&&I!==BU.C&&I!==BU.Q||(e=[l,u])),I){case BU.M:a=l=i[M++],s=u=i[M++],c(l,u);break;case BU.L:h(a,s,j=i[M++],R=i[M++]),a=j,s=R;break;case BU.C:e.push(i[M++],i[M++],i[M++],i[M++],a=i[M++],s=i[M++]);break;case BU.Q:j=i[M++],R=i[M++],D=i[M++],n=i[M++],e.push(a+2/3*(j-a),s+2/3*(R-s),D+2/3*(j-D),n+2/3*(R-n),D,n),a=D,s=n;break;case BU.A:var T=i[M++],C=i[M++],A=i[M++],k=i[M++],D=i[M++],L=i[M++]+D,P=(M+=1,!i[M++]),j=Math.cos(D)*A+T,R=Math.sin(D)*k+C;O?c(l=j,u=R):h(a,s,j,R);a=Math.cos(L)*A+T,s=Math.sin(L)*k+C;for(var N=(P?-1:1)*Math.PI/2,E=D;P?L<E:E<L;E+=N){var z=P?Math.max(E+N,L):Math.min(E+N,L);p=E,z=z,d=T,f=C,g=A,y=k,m=S=w=b=_=x=v=m=void 0,m=Math.abs(z-p),m=4*Math.tan(m/4)/3,v=z<p?-1:1,x=Math.cos(p),p=Math.sin(p),_=Math.cos(z),z=Math.sin(z),b=_*g+d,w=z*y+f,S=g*m*v,m=y*m*v,e.push(x*g+d-S*p,p*y+f+m*x,b+S*z,w-m*_,b,w)}break;case BU.R:l=a=i[M++],u=s=i[M++],j=l+i[M++],R=u+i[M++],c(j,u),h(j,u,j,R),h(j,R,l,R),h(l,R,l,u),h(l,u,j,u);break;case BU.Z:e&&h(a,s,l,u),a=l,s=u}}return e&&2<e.length&&r.push(e),r}function HU(t,e){var n=FU(t),i=[];e=e||1;for(var o=0;o<n.length;o++){var r=n[o],a=[],s=r[0],l=r[1];a.push(s,l);for(var u=2;u<r.length;){var c=r[u++],h=r[u++],p=r[u++],d=r[u++],f=r[u++],g=r[u++];!function t(e,n,i,o,r,a,s,l,u,c){var h,p,d,f,g,y,m,v,x;VU(e,i)&&VU(n,o)&&VU(r,s)&&VU(a,l)?u.push(s,l):(h=(h=2/c)*h,v=s-e,p=l-n,v/=m=Math.sqrt(v*v+p*p),p/=m,g=(m=r-s)*m+(y=a-l)*y,(x=(d=i-e)*d+(f=o-n)*f)<h&&g<h?u.push(s,l):(m=-v*m-p*y,x-(y=v*d+p*f)*y<h&&0<=y&&g-m*m<h&&0<=m?u.push(s,l):(x=[],Gt(e,i,r,s,.5,v=[]),Gt(n,o,a,l,.5,x),t(v[0],x[0],v[1],x[1],v[2],x[2],v[3],x[3],u,c),t(v[4],x[4],v[5],x[5],v[6],x[6],v[7],x[7],u,c))))}(s,l,c,h,p,d,f,g,a,e),s=f,l=g}i.push(a)}return i}function GU(t,e,n){for(var i=t[e],o=(t=t[1-e],e=Math.abs(i/t),Math.ceil(Math.sqrt(e*n))),r=Math.floor(n/o),a=(0===r&&(r=1,o=n),[]),s=0;s<o;s++)a.push(r);var l=n-o*r;if(0<l)for(s=0;s<l;s++)a[s%o]+=1;return a}function WU(t,e,n){for(var i=t.r0,o=t.r,r=t.startAngle,a=t.endAngle,s=Math.abs(a-r),l=(a=s*o,o-i),u=a>Math.abs(l),c=GU([a,l],u?0:1,e),h=(u?s:l)/c.length,p=0;p<c.length;p++)for(var d=(u?l:s)/c[p],f=0;f<c[p];f++){var g={};u?(g.startAngle=r+h*p,g.endAngle=r+h*(p+1),g.r0=i+d*f,g.r=i+d*(f+1)):(g.startAngle=r+d*f,g.endAngle=r+d*(f+1),g.r0=i+h*p,g.r=i+h*(p+1)),g.clockwise=t.clockwise,g.cx=t.cx,g.cy=t.cy,n.push(g)}}function YU(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function UU(t,e,n){for(var i,o,r,a,s,l,u=t.length,c=[],h=0;h<u;h++){var p=t[h],d=t[(h+1)%u],f=(i=p[0],p=p[1],o=d[0],d=d[1],r=e.x,a=e.y,s=n.x,f=n.y,l=void 0,l=(s-=r)*(d-=p)-(o-=i)*(f-=a),Math.abs(l)<1e-6||(r=((i-r)*f-s*(p-a))/l)<0||1<r?null:new un(r*o+i,r*d+p));f&&c.push({projPt:(s=f,a=e,l=n,o=void 0,o=new un,un.sub(o,l,a),o.normalize(),l=new un,un.sub(l,s,a),l.dot(o)),pt:f,idx:h})}if(c.length<2)return[{points:t},{points:t}];c.sort((function(t,e){return t.projPt-e.projPt}));var g=c[0],y=c[c.length-1],m=(y.idx<g.idx&&(m=g,g=y,y=m),[g.pt.x,g.pt.y]),v=[y.pt.x,y.pt.y],x=[m],_=[v];for(h=g.idx+1;h<=y.idx;h++)YU(x,t[h].slice());for(YU(x,v),YU(x,m),h=y.idx+1;h<=g.idx+u;h++)YU(_,t[h%u].slice());return YU(_,m),YU(_,v),[{points:x},{points:_}]}function XU(t){t=t.points;var e=[],n=[],i=(n=(Lo(t,e,n),new xn(e[0],e[1],n[0]-e[0],n[1]-e[1])),e=n.width,n.height),o=n.x,r=(n=n.y,new un),a=new un;return i<e?(r.x=a.x=o+e/2,r.y=n,a.y=n+i):(r.y=a.y=n+i/2,r.x=o,a.x=o+e),UU(t,r,a)}function ZU(t,e,n,i){var o;1===n?i.push(e):(o=Math.floor(n/2),e=t(e),ZU(t,e[0],o,i),ZU(t,e[1],n-o,i))}function qU(t,e){var n,i=[],o=t.shape;switch(t.type){case"rect":for(var r=o,a=e,s=i,u=r.width,c=r.height,h=c<u,p=GU([u,c],h?0:1,a),d=h?"width":"height",f=h?"height":"width",g=h?"x":"y",y=h?"y":"x",m=r[d]/p.length,v=0;v<p.length;v++)for(var x=r[f]/p[v],_=0;_<p[v];_++){var b={};b[g]=v*m,b[y]=_*x,b[d]=m,b[f]=x,b.x+=r.x,b.y+=r.y,s.push(b)}n=Br;break;case"sector":WU(o,e,i),n=fd;break;case"circle":WU({r0:0,r:o.r,startAngle:0,endAngle:2*Math.PI,cx:o.cx,cy:o.cy},e,i),n=fd;break;default:u=t.getComputedTransform(),c=u?Math.sqrt(Math.max(u[0]*u[0]+u[1]*u[1],u[2]*u[2]+u[3]*u[3])):1;var w=Object(l.H)(HU(t.getUpdatedPathProxy(),c),(function(t){for(var e=t,n=[],i=0;i<e.length;)n.push([e[i++],e[i++]]);return n})),S=w.length;if(0===S)ZU(XU,{points:w[0]},e,i);else if(S===e)for(var M=0;M<S;M++)i.push({points:w[M]});else{var I=0,O=Object(l.H)(w,(function(t){var e=[],n=[];Lo(t,e,n),n=(n[1]-e[1])*(n[0]-e[0]);return I+=n,{poly:t,area:n}})),T=(O.sort((function(t,e){return e.area-t.area})),e);for(M=0;M<S;M++){var C=O[M];if(T<=0)break;var A=M===S-1?T:Math.ceil(C.area/I*e);A<0||(ZU(XU,{points:C.poly},A,i),T-=A)}}n=Sd}if(!n){for(var k=t,D=e,L=[],P=0;P<D;P++)L.push(Hp(k));return L}var j,R,N=[];for(M=0;M<i.length;M++){var E=new n;E.setShape(i[M]),j=t,(R=E).setStyle(j.style),R.z=j.z,R.z2=j.z2,R.zlevel=j.zlevel,N.push(E)}return N}function KU(t,e){for(var n=t.length,i=t[n-2],o=t[n-1],r=[],a=0;a<e.length;)r[a++]=i,r[a++]=o;return r}function QU(t,e){for(var n,i,o=[],r=[],a=0;a<Math.max(t.length,e.length);a++){var s=t[a],l=e[a],u=void 0,c=void 0;s?l?(n=u=(i=function(t,e){var n=t.length,i=e.length;if(n===i)return[t,e];for(var o=[],r=[],a=n<i?t:e,s=Math.min(n,i),l=(i=Math.abs(i-n)/6,Math.ceil(i/((s-2)/6))+1),u=[a[0],a[1]],c=i,h=2;h<s;){var p=a[h-2],d=a[h-1],f=a[h++],g=a[h++],y=a[h++],m=a[h++],v=a[h++],x=a[h++];if(c<=0)u.push(f,g,y,m,v,x);else{for(var _=Math.min(c,l-1)+1,b=1;b<=_;b++){var w=b/_;Gt(p,f,y,v,w,o),Gt(d,g,m,x,w,r),u.push(o[1],r[1],o[2],r[2],p=o[3],d=r[3]),f=o[5],g=r[5],y=o[6],m=r[6]}c-=_-1}}return a===t?[u,e]:[t,u]}(s,l))[0],i=c=i[1]):(c=KU(i||s,s),u=s):(u=KU(n||l,l),c=l),o.push(u),r.push(c)}return[o,r]}function $U(t){for(var e=0,n=0,i=0,o=t.length,r=0,a=o-2;r<o;a=r,r+=2){var s=t[a],l=t[a+1],u=t[r],c=t[r+1],h=s*c-u*l;e+=h,n+=(s+u)*h,i+=(l+c)*h}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,i/e/3,e]}function JU(t,e,n,i){for(var o,r=[],a=0;a<t.length;a++){for(var s=t[a],l=e[a],u=$U(s),c=$U(l),h=(null==o&&(o=u[2]<0!=c[2]<0),[]),p=[],d=0,f=1/0,g=[],y=s.length,m=6*function(t,e,n,i){for(var o=(t.length-2)/6,r=1/0,a=0,s=t.length,l=s-2,u=0;u<o;u++){for(var c=6*u,h=0,p=0;p<s;p+=2){var d=0===p?c:(c+p-2)%l+2,f=t[d]-n[0];d=t[1+d]-n[1],f=e[p]-i[0]-f,d=e[p+1]-i[1]-d;h+=f*f+d*d}h<r&&(r=h,a=u)}return a}(s=o?function(t){for(var e=[],n=t.length,i=0;i<n;i+=2)e[i]=t[n-i-2],e[i+1]=t[n-i-1];return e}(s):s,l,u,c),v=y-2,x=0;x<v;x+=2){var _=(m+x)%v+2;h[x+2]=s[_]-u[0],h[x+3]=s[1+_]-u[1]}if(h[0]=s[m]-u[0],h[1]=s[1+m]-u[1],0<n)for(var b=i/n,w=-i/2;w<=i/2;w+=b){var S=Math.sin(w),M=Math.cos(w),I=0;for(x=0;x<s.length;x+=2){var O=h[x],T=h[x+1],C=l[x]-c[0],A=l[x+1]-c[1],k=C*M-A*S;C=C*S+A*M,A=(g[x]=k)-O,k=(g[x+1]=C)-T;I+=A*A+k*k}if(I<f){f=I,d=w;for(var D=0;D<g.length;D++)p[D]=g[D]}}else for(var L=0;L<y;L+=2)p[L]=l[L]-c[0],p[L+1]=l[L+1]-c[1];r.push({from:h,to:p,fromCp:u,toCp:c,rotation:-d})}return r}function tX(t){return t.__isCombineMorphing}var eX="__mOriginal_";function nX(t,e,n){var i=eX+e,o=t[i]||t[e],r=(t[i]||(t[i]=t[e]),n.replace),a=n.after,s=n.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=(r||o).apply(this,e),a&&a.apply(this,e),t}}function iX(t,e){var n=eX+e;t[n]&&(t[e]=t[n],t[n]=null)}function oX(t,e){for(var n=0;n<t.length;n++)for(var i=t[n],o=0;o<i.length;){var r=i[o],a=i[o+1];i[o++]=e[0]*r+e[2]*a+e[4],i[o++]=e[1]*r+e[3]*a+e[5]}}function rX(t,e){var n=t.getUpdatedPathProxy(),i=e.getUpdatedPathProxy(),o=(n=QU(FU(n),FU(i)),i=n[0],n=n[1],t=t.getComputedTransform(),e.getComputedTransform());t&&oX(i,t),o&&oX(n,o),nX(e,"updateTransform",{replace:function(){this.transform=null}}),e.transform=null;var r=JU(i,n,10,Math.PI),a=[];nX(e,"buildPath",{replace:function(t){for(var n=e.__morphT,i=1-n,o=[],s=0;s<r.length;s++){var l=r[s],u=l.from,c=l.to,h=l.rotation*n,p=l.fromCp,d=(l=l.toCp,Math.sin(h)),f=Math.cos(h);M(o,p,l,n);for(var g=0;g<u.length;g+=2){var y=u[g],m=u[g+1];y=y*i+(_=c[g])*n,m=m*i+(b=c[g+1])*n;a[g]=y*f-m*d+o[0],a[g+1]=y*d+m*f+o[1]}var v=a[0],x=a[1];for(t.moveTo(v,x),g=2;g<u.length;){var _=a[g++],b=a[g++],w=a[g++],S=a[g++],I=a[g++],O=a[g++];v===_&&x===b&&w===I&&S===O?t.lineTo(I,O):t.bezierCurveTo(_,b,w,S,I,O),v=I,x=O}}}})}function aX(t,e,n){var i,o;t&&e&&(i=n.done,o=n.during,rX(t,e),e.__morphT=0,e.animateTo({__morphT:1},Object(l.i)({during:function(t){e.dirtyShape(),o&&o(t)},done:function(){iX(e,"buildPath"),iX(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape(),i&&i()}},n)))}function sX(t){var e=1/0,n=1/0,i=-1/0,o=-1/0,r=Object(l.H)(t,(function(t){var r=t.getBoundingRect(),a=(t=t.getComputedTransform(),r.x+r.width/2+(t?t[4]:0));r=r.y+r.height/2+(t?t[5]:0);return e=Math.min(a,e),n=Math.min(r,n),i=Math.max(a,i),o=Math.max(r,o),[a,r]}));return Object(l.H)(r,(function(r,a){return{cp:r,z:function(t,e,n,i,o,r){t=o===n?0:Math.round(32767*(t-n)/(o-n)),e=r===i?0:Math.round(32767*(e-i)/(r-i));for(var a=0,s=32768;0<s;s/=2){var l=0,u=0;a+=s*s*(3*(l=0<(t&s)?1:l)^(u=0<(e&s)?1:u)),0===u&&(1===l&&(t=s-1-t,e=s-1-e),u=t,t=e,e=u)}return a}(r[0],r[1],e,n,i,o),path:t[a]}})).sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function lX(t){return qU(t.path,t.count)}function uX(){return{fromIndividuals:[],toIndividuals:[],count:0}}function cX(t,e,n){var i=[];!function t(e){for(var n=0;n<e.length;n++){var o=e[n];tX(o)?t(o.childrenRef()):o instanceof br&&i.push(o)}}(t);var o=i.length;if(!o)return uX();var r=n.dividePath||lX;if((a=r({path:e,count:o})).length!==o)return uX();i=sX(i);for(var a=sX(a),s=n.done,u=n.during,c=n.individualDelay,h=new sn,p=0;p<o;p++){var d=i[p],f=a[p];f.parent=e,f.copyTransform(h),c||rX(d,f)}function g(t){for(var e=0;e<a.length;e++)a[e].addSelfToZr(t)}function y(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,iX(e,"addSelfToZr"),iX(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return a},nX(e,"addSelfToZr",{after:function(t){g(t)}}),nX(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<a.length;e++)a[e].removeSelfFromZr(t)}});var m=a.length;if(c){var v=m,x=function(){0===--v&&(y(),s&&s())};for(p=0;p<m;p++){var _=c?Object(l.i)({delay:(n.delay||0)+c(p,m,i[p],a[p]),done:x},n):n;aX(i[p],a[p],_)}}else e.__morphT=0,e.animateTo({__morphT:1},Object(l.i)({during:function(t){for(var n=0;n<m;n++){var i=a[n];i.__morphT=e.__morphT,i.dirtyShape()}u&&u(t)},done:function(){y();for(var e=0;e<t.length;e++)iX(t[e],"updateTransform");s&&s()}},n));return e.__zr&&g(e.__zr),{fromIndividuals:i,toIndividuals:a,count:m}}function hX(t,e,n){var i=e.length,o=[],r=n.dividePath||lX;if(tX(t)){!function t(e){for(var n=0;n<e.length;n++){var i=e[n];tX(i)?t(i.childrenRef()):i instanceof br&&o.push(i)}}(t.childrenRef());var a=o.length;if(a<i)for(var s=0,u=a;u<i;u++)o.push(Hp(o[s++%a]));o.length=i}else{o=r({path:t,count:i});var c=t.getComputedTransform();for(u=0;u<o.length;u++)o[u].setLocalTransform(c);if(o.length!==i)return uX()}o=sX(o),e=sX(e);var h=n.individualDelay;for(u=0;u<i;u++){var p=h?Object(l.i)({delay:(n.delay||0)+h(u,i,o[u],e[u])},n):n;aX(o[u],e[u],p)}return{fromIndividuals:o,toIndividuals:e,count:e.length}}function pX(t){return Object(l.t)(t[0])}function dX(t,e){for(var n=[],i=t.length,o=0;o<i;o++)n.push({one:t[o],many:[]});for(o=0;o<e.length;o++){var r=e[o].length,a=void 0;for(a=0;a<r;a++)n[a%i].many.push(e[o][a])}var s=0;for(o=i-1;0<=o;o--)if(!n[o].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}r=l.length;var u=Math.ceil(r/2);n[o].many=l.slice(u,r),n[s].many=l.slice(0,u),s++}return n}var fX={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i<t.count;i++){var o=Hp(t.path);o.setStyle("opacity",n),e.push(o)}return e},split:null};function gX(t,e,n,i,o,r){if(t.length&&e.length&&(o=ls("update",i,o),o&&0<o.duration)){for(var a,s,u=i.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},o),h=(pX(t)&&(a=t,s=e),pX(e)&&(a=e,s=t),a?a===t:t.length>e.length),p=a?dX(s,a):dX(h?e:t,[h?t:e]),d=0,f=0;f<p.length;f++)d+=p[f].many.length;var g=0;for(f=0;f<p.length;f++)!function t(e,i,o,a,s){var h=e.many,p=e.one;if(1!==h.length||s){s=Object(l.i)({dividePath:fX[n],individualDelay:u&&function(t,e,n,i){return u(t+o,a)}},c),s=i?cX(h,p,s):hX(p,h,s);for(var d=s.fromIndividuals,f=s.toIndividuals,g=d.length,y=0;y<g;y++)m=u?Object(l.i)({delay:u(y,g)},c):c,r(d[y],f[y],i?h[y]:e.one,i?e.one:h[y],m)}else{var m;s=i?h[0]:p,p=i?p:h[0];tX(s)?t({many:[s],one:p},!0,o,a,!0):(aX(s,p,m=u?Object(l.i)({delay:u(o,a)},c):c),r(s,p,s,p,m))}}(p[f],h,g,d),g+=p[f].many.length}}function yX(t){if(!t)return[];if(Object(l.t)(t)){for(var e=[],n=0;n<t.length;n++)e.push(yX(t[n]));return e}var i=[];return t.traverse((function(t){t instanceof br&&!t.disableMorphing&&!t.invisible&&!t.ignore&&i.push(t)})),i}var mX=1e4,vX=ki();function xX(t){var e=[];return Object(l.k)(t,(function(t){var n=t.data;if(!(n.count()>mX))for(var i=n.getIndices(),o=function(t){for(var e=t.dimensions,n=0;n<e.length;n++){var i=t.getDimensionInfo(e[n]);if(i&&0===i.otherDims.itemGroupId)return e[n]}}(n),r=0;r<i.length;r++)e.push({data:n,dim:t.dim||o,divide:t.divide,dataIndex:r})})),e}function _X(t,e,n){t.traverse((function(t){t instanceof br&&hs(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})}))}function bX(t){var e;t.parent&&(e=t.getComputedTransform(),t.setLocalTransform(e),t.parent.remove(t))}function wX(t){t.stopAnimation(),t.isGroup&&t.traverse((function(t){t.stopAnimation()}))}function SX(t,e,n){var i=ls("update",n,e);i&&t.traverse((function(t){var e;t instanceof So&&(e=ss(t).oldStyle)&&t.animateFrom({style:e},i)}))}function MX(t,e,n){var i=xX(t),o=xX(e);function r(t,e,n,i,o){(n||t)&&e.animateFrom({style:n&&n!==t?Object(l.m)(Object(l.m)({},n.style),t.style):t.style},o)}function a(t){for(var e=0;e<t.length;e++)if(t[e].dim)return t[e].dim}var s=a(i),u=a(o),c=!1;function h(t,e){return function(n){var i=n.data;n=n.dataIndex;if(e)return i.getId(n);var o=i.hostModel&&i.hostModel.get("dataGroupId"),r=t?s||u:u||s,a=(r=r&&i.getDimensionInfo(r),r&&r.ordinalMeta);return r?(r=i.get(r.name,n),a&&a.categories[r]||r+""):(a=i.getRawDataItem(n),a&&a.groupId?a.groupId+"":o||i.getId(n))}}t=function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++){var o=t[i],r=e[i];if(o.data.getId(o.dataIndex)!==r.data.getId(r.dataIndex))return!1}return!0}(i,o);var p={};if(!t)for(var d=0;d<o.length;d++){var f=o[d];f=f.data.getItemGraphicEl(f.dataIndex);f&&(p[f.id]=!0)}function g(t,e){e=i[e];var n=o[t],a=n.data.hostModel,s=(e=e.data.getItemGraphicEl(e.dataIndex),n.data.getItemGraphicEl(n.dataIndex));e===s?s&&SX(s,n.dataIndex,a):e&&p[e.id]||s&&(wX(s),e?(wX(e),bX(e),c=!0,gX(yX(e),yX(s),n.divide,a,t,r)):_X(s,a,t))}new Nx(i,o,h(!0,t),h(!1,t),null,"multiple").update(g).updateManyToOne((function(t,e){var n=o[t],a=n.data,s=a.hostModel,u=a.getItemGraphicEl(n.dataIndex);a=Object(l.n)(Object(l.H)(e,(function(t){return i[t].data.getItemGraphicEl(i[t].dataIndex)})),(function(t){return t&&t!==u&&!p[t.id]}));u&&(wX(u),a.length?(Object(l.k)(a,(function(t){wX(t),bX(t)})),c=!0,gX(yX(a),yX(u),n.divide,s,t,r)):_X(u,s,n.dataIndex))})).updateOneToMany((function(t,e){e=i[e];var n,a,s=e.data.getItemGraphicEl(e.dataIndex);s&&p[s.id]||(n=Object(l.n)(Object(l.H)(t,(function(t){return o[t].data.getItemGraphicEl(o[t].dataIndex)})),(function(t){return t&&t!==s})),a=o[t[0]].data.hostModel,n.length&&(Object(l.k)(n,wX),s?(wX(s),bX(s),c=!0,gX(yX(s),yX(n),e.divide,a,t[0],r)):Object(l.k)(n,(function(e){return _X(e,a,t[0])}))))})).updateManyToMany((function(t,e){new Nx(e,t,(function(t){return i[t].data.getId(i[t].dataIndex)}),(function(t){return o[t].data.getId(o[t].dataIndex)})).update((function(n,i){g(t[n],e[i])})).execute()})).execute(),c&&Object(l.k)(e,(function(t){t=t.data.hostModel;var e=t&&n.getViewOfSeriesModel(t),i=ls("update",t,0);e&&t.isAnimationEnabled()&&i&&0<i.duration&&e.group.traverse((function(t){t instanceof br&&!t.animators.length&&t.animateFrom({style:{opacity:0}},i)}))}))}function IX(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function OX(t){return Object(l.t)(t)?t.sort().join(","):t}function TX(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function CX(t,e){var n=Object(l.f)(),i=Object(l.f)(),o=Object(l.f)();return Object(l.k)(t.oldSeries,(function(e,n){var r=t.oldData[n],a=(n=IX(e),OX(n));i.set(a,r),Object(l.t)(n)&&Object(l.k)(n,(function(t){o.set(t,{data:r,key:a})}))})),Object(l.k)(e.updatedSeries,(function(t){var e,r,a,s;t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()&&(e=t.getData(),s=OX(t=IX(t)),(a=i.get(s))?n.set(s,{oldSeries:[{divide:TX(a),data:a}],newSeries:[{divide:TX(e),data:e}]}):Object(l.t)(t)?(r=[],Object(l.k)(t,(function(t){t=i.get(t),t&&r.push({divide:TX(t),data:t})})),r.length&&n.set(s,{oldSeries:r,newSeries:[{data:e,divide:TX(e)}]})):(a=o.get(t))&&((s=n.get(a.key))||(s={oldSeries:[{data:a.data,divide:TX(a.data)}],newSeries:[]},n.set(a.key,s)),s.newSeries.push({data:e,divide:TX(e)})))})),n}function AX(t,e){for(var n=0;n<t.length;n++)if(null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id)return n}Nm([function(t){t.registerPainter("canvas",Mv)}]),Nm([function(t){t.registerPainter("svg",Lx)}]),Nm([function(t){t.registerChartView(fb),t.registerSeriesModel(b_),t.registerLayout(gb("line",!0)),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,vb("line"))},function(t){t.registerChartView(sw),t.registerSeriesModel(jb),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,l.h(Ib,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ob("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,vb("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))},function(t){t.registerChartView(Iw),t.registerSeriesModel(Lw),kg("pie",t.registerAction),t.registerLayout(Object(l.h)(pw,"pie")),t.registerProcessor(dw("pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value");e=n.get(e,t);return!(Object(l.z)(e)&&!isNaN(e)&&e<0)}))}})},function(t){Nm(fI),t.registerSeriesModel(Rw),t.registerChartView(Ww),t.registerLayout(gb("scatter"))},function(t){Nm(EI),t.registerChartView(bI),t.registerSeriesModel(MI),t.registerLayout(gI),t.registerProcessor(dw("radar")),t.registerPreprocessor(vI)},function(t){Nm(HT),t.registerChartView(fT),t.registerSeriesModel(yT),t.registerLayout(vT),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,mT),kg("map",t.registerAction)},function(t){t.registerChartView(lC),t.registerSeriesModel(AC),t.registerLayout(DC),t.registerVisual(LC),(t=t).registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex;e=e.getData().tree.getNodeByDataIndex(n);e.isExpand=!e.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=zT(e.coordinateSystem,t);e.setCenter&&e.setCenter(n.center),e.setZoom&&e.setZoom(n.zoom)}))}))},function(t){t.registerSeriesModel(zC),t.registerChartView(nA),t.registerVisual(wA),t.registerLayout(zA),RC(t)},function(t){t.registerChartView(Zk),t.registerSeriesModel(sD),t.registerProcessor(GA),t.registerVisual(WA),t.registerVisual(UA),t.registerLayout(ok),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,hk),t.registerLayout(fk),t.registerCoordinateSystem("graphView",{dimensions:MT.dimensions,create:gk}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},l.L),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},l.L),t.registerAction(lD,(function(t,e){e.eachComponent({mainType:"series",query:t},(function(e){var n=zT(e.coordinateSystem,t);e.setCenter&&e.setCenter(n.center),e.setZoom&&e.setZoom(n.zoom)}))}))},function(t){t.registerChartView(mD),t.registerSeriesModel(bD)},function(t){t.registerChartView(TD),t.registerSeriesModel(kD),t.registerLayout(DD),t.registerProcessor(dw("funnel"))},function(t){Nm(bP),t.registerChartView(zD),t.registerSeriesModel(HD),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,WD)},function(t){t.registerChartView(AP),t.registerSeriesModel(DP),t.registerLayout(LP),t.registerVisual(HP),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))},function(t){t.registerSeriesModel(XP),t.registerChartView(ej),t.registerVisual(nj),t.registerLayout(oj),t.registerTransform(aj)},function(t){t.registerChartView(Sj),t.registerSeriesModel(Ij),t.registerPreprocessor(Oj),t.registerVisual(Dj),t.registerLayout(jj)},function(t){t.registerChartView(Fj),t.registerSeriesModel(Wj),t.registerLayout(gb("effectScatter"))},function(t){t.registerChartView(uR),t.registerSeriesModel(fR),t.registerLayout(aR),t.registerVisual(yR)},function(t){t.registerChartView(SR),t.registerSeriesModel(OR)},function(t){t.registerChartView(qR),t.registerSeriesModel($R),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Object(l.h)(Ib,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ob("pictorialBar"))},function(t){t.registerChartView(eN),t.registerSeriesModel(oN),t.registerLayout(rN),t.registerProcessor(dw("themeRiver"))},function(t){t.registerChartView(yN),t.registerSeriesModel(vN),t.registerLayout(Object(l.h)(_N,"sunburst")),t.registerProcessor(Object(l.h)(dw,"sunburst")),t.registerVisual(wN),dN(t)},function(t){t.registerChartView(gE),t.registerSeriesModel(CN)}]),Nm((function(t){Nm(fI),Nm(_z)})),Nm((function(t){Nm(_z),ZM.registerAxisPointerClass("PolarAxisPointer",Mz),t.registerCoordinateSystem("polar",qz),t.registerComponentModel(Tz),t.registerComponentView(gB),oS(t,"angle",kz,dB),oS(t,"radius",Pz,fB),t.registerComponentView(iB),t.registerComponentView(lB),t.registerLayout(Object(l.h)(hB,"bar"))})),Nm(HT),Nm((function(t){Nm(_z),ZM.registerAxisPointerClass("SingleAxisPointer",WB),t.registerComponentView(YB),t.registerComponentView(MB),t.registerComponentModel(TB),oS(t,"single",TB,TB.defaultOption),t.registerCoordinateSystem("single",RB)})),Nm(bP),Nm((function(t){t.registerComponentModel(KB),t.registerComponentView($B),t.registerCoordinateSystem("calendar",eV)})),Nm((function(t){t.registerComponentModel(sV),t.registerComponentView(pV),t.registerPreprocessor((function(t){var e=t.graphic;Object(l.t)(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))})),Nm((function(t){t.registerComponentModel(QV),t.registerComponentView(eF),XV("saveAsImage",oF),XV("magicType",uF),XV("dataView",vF),XV("dataZoom",WF),XV("restore",MF),Nm(GV)})),Nm((function(t){Nm(_z),t.registerComponentModel(UF),t.registerComponentView(yH),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},l.L),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},l.L)})),Nm(_z),Nm((function(t){t.registerComponentView(zH),t.registerComponentModel(HH),t.registerPreprocessor(vH),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,kH),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},l.L),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},l.L),XV("brush",YH)})),Nm((function(t){t.registerComponentModel(XH),t.registerComponentView(QH)})),Nm((function(t){var e;t.registerComponentModel(iG),t.registerComponentView(fG),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),(e=t).registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e,n){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),Object(l.i)({currentIndex:i.option.currentIndex},t)})),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){e=e.getComponent("timeline"),e&&null!=t.playState&&e.setPlayState(t.playState)})),t.registerPreprocessor(gG)})),Nm((function(t){t.registerComponentModel(OG),t.registerComponentView(FG),t.registerPreprocessor((function(t){vG(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))})),Nm((function(t){t.registerComponentModel(YG),t.registerComponentView(JG),t.registerPreprocessor((function(t){vG(t.series,"markLine")&&(t.markLine=t.markLine||{})}))})),Nm((function(t){t.registerComponentModel(nW),t.registerComponentView(pW),t.registerPreprocessor((function(t){vG(t.series,"markArea")&&(t.markArea=t.markArea||{})}))})),Nm((function(t){Nm(CW),Nm(BW)})),Nm((function(t){Nm(tY),Nm(pY)})),Nm(tY),Nm(pY),Nm((function(t){Nm(JY),Nm(sU)})),Nm(JY),Nm(sU),Nm((function(t){t.registerPreprocessor(pU),t.registerVisual(t.PRIORITY.VISUAL.ARIA,hU)})),Nm((function(t){t.registerTransform(DU),t.registerTransform(LU)})),Nm((function(t){t.registerComponentModel(jU),t.registerComponentView(EU)})),Nm((function(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){Object(l.k)(vi(n.seriesTransition),(function(t){Object(l.k)(vi(t.to),(function(t){for(var e=n.updatedSeries,i=0;i<e.length;i++)(null!=t.seriesIndex&&t.seriesIndex===e[i].seriesIndex||null!=t.seriesId&&t.seriesId===e[i].id)&&(e[i][lp]=!0)}))}))})),t.registerUpdateLifecycle("series:transition",(function(t,e,n){for(var i,o,r=vX(e),a=(r.oldSeries&&n.updatedSeries&&n.optionChanged&&((i=n.seriesTransition)?Object(l.k)(vi(i),(function(t){var i,o,a,s,u;t=t,i=r,o=n,a=e,s=[],u=[],Object(l.k)(vi(t.from),(function(t){var e=AX(i.oldSeries,t);0<=e&&s.push({data:i.oldData[e],divide:TX(i.oldData[e]),dim:t.dimension})})),Object(l.k)(vi(t.to),(function(t){var e=AX(o.updatedSeries,t);0<=e&&(e=o.updatedSeries[e].getData(),u.push({data:e,divide:TX(e),dim:t.dimension}))})),0<s.length&&0<u.length&&MX(s,u,a)})):(o=CX(r,n),Object(l.k)(o.keys(),(function(t){t=o.get(t),MX(t.oldSeries,t.newSeries,e)}))),Object(l.k)(n.updatedSeries,(function(t){t[lp]&&(t[lp]=!1)}))),t.getSeries()),s=r.oldSeries=[],u=r.oldData=[],c=0;c<a.length;c++){var h=a[c].getData();h.count()<mX&&(s.push(a[c]),u.push(h))}}))})),Nm(vv)},3485:function(t,e,n){"use strict";var i=n("7a23"),o=["id"],r=n("313e"),a=Object(i.defineComponent)({props:{className:{type:String,default:"chart"},id:{type:String,default:"lineChartsCompoents"},width:{type:String,default:"200px",required:!0},height:{type:String,default:"200px",required:!0},options:{type:Object,default:function(){return{}}}},setup:function(t){e=Object(i.ref)(),n=Object(i.ref)(),o=function(){e.value&&e.value.resize()},a=function(t){"width"===t.propertyName&&o()};var e,n,o,a,s={chart:e,mounted:function(){d(),g()},beforeDestroy:function(){f(),y()},activated:function(){d(),g()},deactivated:function(){f(),y()}},l=s.mounted,u=s.chart,c=s.beforeDestroy,h=s.activated,p=s.deactivated;function d(){window.addEventListener("resize",o)}function f(){window.removeEventListener("resize",o)}function g(){n.value=document.getElementsByClassName("sidebar-container")[0],n.value&&n.value.addEventListener("transitionend",a)}function y(){n.value&&n.value.removeEventListener("transitionend",a)}return Object(i.watch)(t,(function(t){t.options&&u.value&&u.value.setOption(t.options)})),Object(i.onMounted)((function(){l(),Object(i.nextTick)((function(){var e;(e=Object(r.b)(document.getElementById(t.id))).setOption(t.options),u.value=e}))})),Object(i.onBeforeUnmount)((function(){c()})),Object(i.onActivated)((function(){h()})),Object(i.onDeactivated)((function(){p()})),{}}}),s=n("6b0d");n=n.n(s);e.a=n()(a,[["render",function(t,e,n,r,a,s){return Object(i.openBlock)(),Object(i.createElementBlock)("div",{id:t.id,class:Object(i.normalizeClass)(t.className),style:Object(i.normalizeStyle)({height:t.height,width:t.width})},null,14,o)}]])},"41ef":function(t,e,n){"use strict";n.d(e,"g",(function(){return g})),n.d(e,"c",(function(){return m})),n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return x})),n.d(e,"f",(function(){return _})),n.d(e,"e",(function(){return b})),n.d(e,"h",(function(){return w})),n.d(e,"d",(function(){return S}));e=n("d51b");var i={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]};function o(t){return(t=Math.round(t))<0?0:255<t?255:t}function r(t){return t<0?0:1<t?1:t}function a(t){return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100*255):o(parseInt(t,10))}function s(t){return t.length&&"%"===t.charAt(t.length-1)?r(parseFloat(t)/100):r(parseFloat(t))}function l(t,e,n){return n<0?n+=1:1<n&&--n,6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function u(t,e,n){return t+(e-t)*n}function c(t,e,n,i,o){return t[0]=e,t[1]=n,t[2]=i,t[3]=o,t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var p=new e.a(20),d=null;function f(t,e){d&&h(d,e),d=p.put(t,d||e.slice())}function g(t,e){if(t){e=e||[];var n=p.get(t);if(n)return h(e,n);if(n=(t+="").replace(/ /g,"").toLowerCase(),n in i)return h(e,i[n]),f(t,e),e;var o=n.length;if("#"===n.charAt(0))return 4===o||5===o?0<=(r=parseInt(n.slice(1,4),16))&&r<=4095?(c(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(n.slice(4),16)/15:1),f(t,e),e):void c(e,0,0,0,1):7===o||9===o?0<=(r=parseInt(n.slice(1,7),16))&&r<=16777215?(c(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(n.slice(7),16)/255:1),f(t,e),e):void c(e,0,0,0,1):void 0;var r=n.indexOf("("),l=n.indexOf(")");if(-1!==r&&l+1===o){o=n.substr(0,r);var u=n.substr(r+1,l-(r+1)).split(","),d=1;switch(o){case"rgba":if(4!==u.length)return 3===u.length?c(e,+u[0],+u[1],+u[2],1):c(e,0,0,0,1);d=s(u.pop());case"rgb":return 3!==u.length?void c(e,0,0,0,1):(c(e,a(u[0]),a(u[1]),a(u[2]),d),f(t,e),e);case"hsla":return 4!==u.length?void c(e,0,0,0,1):(u[3]=s(u[3]),y(u,e),f(t,e),e);case"hsl":return 3!==u.length?void c(e,0,0,0,1):(y(u,e),f(t,e),e);default:return}}c(e,0,0,0,1)}}function y(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=s(t[1]),r=s(t[2]);i=r<=.5?r*(i+1):r+i-r*i,r=2*r-i;return c(e=e||[],o(255*l(r,i,n+1/3)),o(255*l(r,i,n)),o(255*l(r,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function m(t,e){var n=g(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,255<n[i]?n[i]=255:n[i]<0&&(n[i]=0);return w(n,4===n.length?"rgba":"rgb")}}function v(t,e,n){var i,a,s;if(e&&e.length&&0<=t&&t<=1)return n=n||[],t*=e.length-1,i=Math.floor(t),s=Math.ceil(t),a=e[i],e=e[s],s=t-i,n[0]=o(u(a[0],e[0],s)),n[1]=o(u(a[1],e[1],s)),n[2]=o(u(a[2],e[2],s)),n[3]=r(u(a[3],e[3],s)),n}function x(t,e,n){var i,a,s,l;if(e&&e.length&&0<=t&&t<=1)return t*=e.length-1,i=Math.floor(t),a=Math.ceil(t),l=g(e[i]),e=g(e[a]),s=t-i,l=w([o(u(l[0],e[0],s)),o(u(l[1],e[1],s)),o(u(l[2],e[2],s)),r(u(l[3],e[3],s))],"rgba"),n?{color:l,leftIndex:i,rightIndex:a,value:t}:l}function _(t,e,n,i){var o=g(t);if(t)return o=function(t){var e,n,i,o,r,a,s,l,u,c;if(t)return c=t[0]/255,e=t[1]/255,n=t[2]/255,s=Math.min(c,e,n),i=Math.max(c,e,n),o=(i+s)/2,0==(u=i-s)?a=r=0:(a=o<.5?u/(i+s):u/(2-i-s),s=((i-c)/6+u/2)/u,l=((i-e)/6+u/2)/u,u=((i-n)/6+u/2)/u,c===i?r=u-l:e===i?r=1/3+s-u:n===i&&(r=2/3+l-s),r<0&&(r+=1),1<r&&--r),c=[360*r,a,o],null!=t[3]&&c.push(t[3]),c}(o),null!=e&&(o[0]=(t=e,(t=Math.round(t))<0?0:360<t?360:t)),null!=n&&(o[1]=s(n)),null!=i&&(o[2]=s(i)),w(y(o),"rgba")}function b(t,e){if(t=g(t),t&&null!=e)return t[3]=r(e),w(t,"rgba")}function w(t,e){var n;if(t&&t.length)return n=t[0]+","+t[1]+","+t[2],"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}function S(t,e){return t=g(t),t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}},"6d8b":function(t,e,n){"use strict";n.d(e,"p",(function(){return p})),n.d(e,"G",(function(){return d})),n.d(e,"d",(function(){return f})),n.d(e,"I",(function(){return g})),n.d(e,"J",(function(){return y})),n.d(e,"m",(function(){return m})),n.d(e,"i",(function(){return v})),n.d(e,"r",(function(){return x})),n.d(e,"s",(function(){return _})),n.d(e,"K",(function(){return b})),n.d(e,"u",(function(){return w})),n.d(e,"k",(function(){return S})),n.d(e,"H",(function(){return M})),n.d(e,"N",(function(){return I})),n.d(e,"n",(function(){return O})),n.d(e,"o",(function(){return T})),n.d(e,"F",(function(){return C})),n.d(e,"c",(function(){return A})),n.d(e,"h",(function(){return k})),n.d(e,"t",(function(){return D})),n.d(e,"w",(function(){return L})),n.d(e,"C",(function(){return P})),n.d(e,"D",(function(){return j})),n.d(e,"z",(function(){return R})),n.d(e,"A",(function(){return N})),n.d(e,"E",(function(){return z})),n.d(e,"v",(function(){return B})),n.d(e,"x",(function(){return V})),n.d(e,"y",(function(){return F})),n.d(e,"B",(function(){return H})),n.d(e,"l",(function(){return G})),n.d(e,"O",(function(){return W})),n.d(e,"P",(function(){return Y})),n.d(e,"Q",(function(){return U})),n.d(e,"S",(function(){return X})),n.d(e,"M",(function(){return Z})),n.d(e,"b",(function(){return q})),n.d(e,"T",(function(){return K})),n.d(e,"R",(function(){return $})),n.d(e,"f",(function(){return nt})),n.d(e,"e",(function(){return it})),n.d(e,"g",(function(){return ot})),n.d(e,"j",(function(){return rt})),n.d(e,"q",(function(){return at})),n.d(e,"L",(function(){return st})),n.d(e,"a",(function(){return lt}));e=n("726e");var i=I(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=I(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),r=Object.prototype.toString,a=(n=Array.prototype,n.forEach),s=n.filter,l=n.slice,u=n.map,c=(n=function(){}.constructor,n=n?n.prototype:null,"__proto__"),h=2311;function p(){return h++}function d(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]}function f(t){if(null==t||"object"!=typeof t)return t;var e=t,n=r.call(t);if("[object Array]"===n){if(!J(t)){e=[];for(var a=0,s=t.length;a<s;a++)e[a]=f(t[a])}}else if(o[n]){if(!J(t)){var l=t.constructor;if(l.from)e=l.from(t);else for(e=new l(t.length),a=0,s=t.length;a<s;a++)e[a]=t[a]}}else if(!i[n]&&!J(t)&&!B(t))for(var u in e={},t)t.hasOwnProperty(u)&&u!==c&&(e[u]=f(t[u]));return e}function g(t,e,n){if(!N(e)||!N(t))return n?f(e):t;for(var i in e){var o,r;e.hasOwnProperty(i)&&i!==c&&(o=t[i],!N(r=e[i])||!N(o)||D(r)||D(o)||B(r)||B(o)||E(r)||E(o)||J(r)||J(o)?!n&&i in t||(t[i]=f(e[i])):g(o,r,n))}return t}function y(t,e){for(var n=t[0],i=1,o=t.length;i<o;i++)n=g(n,t[i],e);return n}function m(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==c&&(t[n]=e[n]);return t}function v(t,e,n){for(var i=C(e),o=0;o<i.length;o++){var r=i[o];(n?null!=e[r]:null==t[r])&&(t[r]=e[r])}return t}function x(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function _(t,e){var n,i=t.prototype;function o(){}for(n in o.prototype=e.prototype,t.prototype=new o,i)i.hasOwnProperty(n)&&(t.prototype[n]=i[n]);(t.prototype.constructor=t).superClass=e}function b(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),o=0;o<i.length;o++){var r=i[o];"constructor"!==r&&(n?null!=e[r]:null==t[r])&&(t[r]=e[r])}else v(t,e,n)}function w(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function S(t,e,n){if(t&&e)if(t.forEach&&t.forEach===a)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t);else for(var r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function M(t,e,n){if(!t)return[];if(!e)return X(t);if(t.map&&t.map===u)return t.map(e,n);for(var i=[],o=0,r=t.length;o<r;o++)i.push(e.call(n,t[o],o,t));return i}function I(t,e,n,i){if(t&&e){for(var o=0,r=t.length;o<r;o++)n=e.call(i,n,t[o],o,t);return n}}function O(t,e,n){if(!t)return[];if(!e)return X(t);if(t.filter&&t.filter===s)return t.filter(e,n);for(var i=[],o=0,r=t.length;o<r;o++)e.call(n,t[o],o,t)&&i.push(t[o]);return i}function T(t,e,n){if(t&&e)for(var i=0,o=t.length;i<o;i++)if(e.call(n,t[i],i,t))return t[i]}function C(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e,n=[];for(e in t)t.hasOwnProperty(e)&&n.push(e);return n}e.d.createCanvas;var A=n&&L(n.bind)?n.call.bind(n.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(l.call(arguments)))}};function k(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(l.call(arguments)))}}function D(t){return Array.isArray?Array.isArray(t):"[object Array]"===r.call(t)}function L(t){return"function"==typeof t}function P(t){return"string"==typeof t}function j(t){return"[object String]"===r.call(t)}function R(t){return"number"==typeof t}function N(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function E(t){return i[r.call(t)]}function z(t){return!!o[r.call(t)]}function B(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function V(t){return null!=t.colorStops}function F(t){return null!=t.image}function H(t){return"[object RegExp]"===r.call(t)}function G(t){return t!=t}function W(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function Y(t,e){return null!=t?t:e}function U(t,e,n){return null!=t?t:null!=e?e:n}function X(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return l.apply(t,e)}function Z(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function q(t,e){if(!t)throw new Error(e)}function K(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Q="__ec_primitive__";function $(t){t[Q]=!0}function J(t){return t[Q]}et.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},et.prototype.set=function(t,e){return this.data[t]=e},et.prototype.each=function(t,e){for(var n in this.data)this.data.hasOwnProperty(n)&&t.call(e,this.data[n],n)},et.prototype.keys=function(){return C(this.data)},et.prototype.removeKey=function(t){delete this.data[t]};var tt=et;function et(t){this.data={};var e=D(t),n=(this.data={},this);function i(t,i){e?n.set(t,i):n.set(i,t)}t instanceof et?t.each(i):t&&S(t,i)}function nt(t){return new tt(t)}function it(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var o=t.length;for(i=0;i<e.length;i++)n[i+o]=e[i];return n}function ot(t,e){var n;t=Object.create?Object.create(t):((n=function(){}).prototype=t,new n);return e&&m(t,e),t}function rt(t){t=t.style,t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function at(t,e){return t.hasOwnProperty(e)}function st(){}var lt=180/Math.PI},"726e":function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"d",(function(){return u})),n.d(e,"e",(function(){return c}));var i,o,r=12,a="sans-serif",s=r+"px "+a,l=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),o=(t.charCodeAt(n)-20)/100;e[i]=o}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),u={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(i||(n=u.createCanvas(),i=n&&n.getContext("2d")),i)return o!==e&&(o=i.font=e||s),i.measureText(t);t=t||"";var n=/^([0-9]*?)px$/.exec(e=e||s),a=+(n&&n[1])||r,c=0;if(0<=e.indexOf("mono"))c=a*t.length;else for(var h=0;h<t.length;h++){var p=l[t[h]];c+=null==p?a:p*a}return{width:c}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}};function c(t){for(var e in u)t[e]&&(u[e]=t[e])}},"7a29":function(t,e,n){"use strict";(function(t){n.d(e,"p",(function(){return s})),n.d(e,"j",(function(){return u})),n.d(e,"q",(function(){return h})),n.d(e,"e",(function(){return p})),n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return f})),n.d(e,"i",(function(){return g})),n.d(e,"h",(function(){return y})),n.d(e,"l",(function(){return m})),n.d(e,"n",(function(){return v})),n.d(e,"m",(function(){return x})),n.d(e,"o",(function(){return _})),n.d(e,"k",(function(){return b})),n.d(e,"d",(function(){return w})),n.d(e,"f",(function(){return S})),n.d(e,"g",(function(){return M})),n.d(e,"c",(function(){return I}));var i=n("6d8b"),o=n("41ef"),r=n("22d1"),a=Math.round;function s(t){var e,n;return t&&"transparent"!==t?"string"==typeof t&&-1<t.indexOf("rgba")&&(n=Object(o.g)(t))&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3]):t="none",{color:t,opacity:null==e?1:e}}var l=1e-4;function u(t){return t<l&&-l<t}function c(t){return a(1e3*t)/1e3}function h(t){return a(1e4*t)/1e4}function p(t){return"matrix("+c(t[0])+","+c(t[1])+","+c(t[2])+","+c(t[3])+","+h(t[4])+","+h(t[5])+")"}var d={left:"start",right:"end",center:"middle",middle:"middle"};function f(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function g(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function y(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(",")}function m(t){return t&&!!t.image}function v(t){return m(t)||(t=t)&&!!t.svgElement}function x(t){return"linear"===t.type}function _(t){return"radial"===t.type}function b(t){return t&&("linear"===t.type||"radial"===t.type)}function w(t){return"url(#"+t+")"}function S(t){return t=t.getGlobalScale(),t=Math.max(t[0],t[1]),Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function M(t){var e=t.x||0,n=t.y||0,o=(t.rotation||0)*i.a,r=Object(i.P)(t.scaleX,1),s=Object(i.P)(t.scaleY,1),l=t.skewX||0,u=(t=t.skewY||0,[]);return(e||n)&&u.push("translate("+e+"px,"+n+"px)"),o&&u.push("rotate("+o+")"),1===r&&1===s||u.push("scale("+r+","+s+")"),(l||t)&&u.push("skew("+a(l*i.a)+"deg, "+a(t*i.a)+"deg)"),u.join(" ")}var I=r.a.hasGlobalWindow&&Object(i.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}}).call(this,n("b639").Buffer)},9152:function(t,e){
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
- e.read=function(t,e,n,i,o){var r,a,s=8*o-i-1,l=(1<<s)-1,u=l>>1,c=-7,h=n?o-1:0,p=n?-1:1;o=t[e+h];for(h+=p,r=o&(1<<-c)-1,o>>=-c,c+=s;0<c;r=256*r+t[e+h],h+=p,c-=8);for(a=r&(1<<-c)-1,r>>=-c,c+=i;0<c;a=256*a+t[e+h],h+=p,c-=8);if(0===r)r=1-u;else{if(r===l)return a?NaN:1/0*(o?-1:1);a+=Math.pow(2,i),r-=u}return(o?-1:1)*a*Math.pow(2,r-i)},e.write=function(t,e,n,i,o,r){var a,s,l=8*r-o-1,u=(1<<l)-1,c=u>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:r-1,d=i?1:-1;r=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*(i=Math.pow(2,-a))<1&&(a--,i*=2),2<=(e+=1<=a+c?h/i:h*Math.pow(2,1-c))*i&&(a++,i/=2),u<=a+c?(s=0,a=u):1<=a+c?(s=(e*i-1)*Math.pow(2,o),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,o),a=0));8<=o;t[n+p]=255&s,p+=d,s/=256,o-=8);for(a=a<<o|s,l+=o;0<l;t[n+p]=255&a,p+=d,a/=256,l-=8);t[n+p-d]|=128*r}},b0c0:function(t,e,n){var i=n("83ab"),o=(n=n("9bf2").f,Function.prototype),r=o.toString,a=/^\s*function ([^ (]*)/;!i||"name"in o||n(o,"name",{configurable:!0,get:function(){try{return r.call(this).match(a)[1]}catch(t){return""}}})},b639:function(t,e,n){"use strict";(function(t){
- /*!
- * The buffer module from node.js, for the browser.
- *
- * @author Feross Aboukhadijeh <http://feross.org>
- * @license MIT
- */
- var i=n("1fb5"),o=n("9152"),r=n("e3db");function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=l.prototype:(t=null===t?new l(e):t).length=e,t}function l(t,e,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(t,e,n);if("number"!=typeof t)return u(this,t,e,n);if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}function u(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer){var o=t,a=e,u=n;if(a.byteLength,u<0||a.byteLength<u)throw new RangeError("'offset' is out of bounds");if(a.byteLength<u+(i||0))throw new RangeError("'length' is out of bounds");return a=void 0===u&&void 0===i?new Uint8Array(a):void 0===i?new Uint8Array(a,u):new Uint8Array(a,u,i),l.TYPED_ARRAY_SUPPORT?(o=a).__proto__=l.prototype:o=p(o,a),o}if("string"!=typeof e){if(u=t,i=e,l.isBuffer(i))return a=0|d(i.length),0===(u=s(u,a)).length||i.copy(u,0,0,a),u;if(i){if("undefined"!=typeof ArrayBuffer&&i.buffer instanceof ArrayBuffer||"length"in i)return"number"!=typeof i.length||function(t){return t!=t}(i.length)?s(u,0):p(u,i);if("Buffer"===i.type&&r(i.data))return p(u,i.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}if(o=t,i=e,t=n,!l.isEncoding(t="string"==typeof t&&""!==t?t:"utf8"))throw new TypeError('"encoding" must be a valid string encoding');return e=0|f(i,t),(i=(o=s(o,e)).write(i,t))!==e?o.slice(0,i):o}function c(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 h(t,e){if(c(e),t=s(t,e<0?0:0|d(e)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function p(t,e){var n=e.length<0?0:0|d(e.length);t=s(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function d(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function f(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;var n=(t="string"!=typeof t?""+t:t).length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return D(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return L(t).length;default:if(i)return D(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,n){var o,r=!1;if((e=void 0===e||e<0?0:e)>this.length)return"";if((n=void 0===n||n>this.length?this.length:n)<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":var a=this,s=e,l=n,u=a.length;(!l||l<0||u<l)&&(l=u);for(var c="",h=s=!s||s<0?0:s;h<l;++h)c+=function(t){return t<16?"0"+t.toString(16):t.toString(16)}(a[h]);return c;case"utf8":case"utf-8":return b(this,e,n);case"ascii":var p=this,d=(u=e,n),f="";d=Math.min(p.length,d);for(var g=u;g<d;++g)f+=String.fromCharCode(127&p[g]);return f;case"latin1":case"binary":var y=this,m=(s=e,n),v="";m=Math.min(y.length,m);for(var x=s;x<m;++x)v+=String.fromCharCode(y[x]);return v;case"base64":return _=this,o=n,0===(w=e)&&o===_.length?i.fromByteArray(_):i.fromByteArray(_.slice(w,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":for(var _=e,w=n,S=this.slice(_,w),M="",I=0;I<S.length;I+=2)M+=String.fromCharCode(S[I]+256*S[I+1]);return M;default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function y(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function m(t,e,n,i,o){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):2147483647<n?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,(n=(n=isNaN(n)?o?0:t.length-1:n)<0?t.length+n:n)>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=l.from(e,i)),l.isBuffer(e))return 0===e.length?-1:v(t,e,n,i,o);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(o?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(t,e,n):v(t,[e],n,i,o);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,i,o){var r=1,a=t.length,s=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;a/=r=2,s/=2,n/=2}function l(t,e){return 1===r?t[e]:t.readUInt16BE(e*r)}if(o)for(var u=-1,c=n;c<a;c++)if(l(t,c)===l(e,-1===u?0:c-u)){if(c-(u=-1===u?c:u)+1===s)return u*r}else-1!==u&&(c-=c-u),u=-1;else for(c=n=a<n+s?a-s:n;0<=c;c--){for(var h=!0,p=0;p<s;p++)if(l(t,c+p)!==l(e,p)){h=!1;break}if(h)return c}return-1}function x(t,e,n,i){return P(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,i)}function _(t,e,n,i){return P(function(t,e){for(var n,i,o=[],r=0;r<t.length&&!((e-=2)<0);++r)i=t.charCodeAt(r),n=i>>8,i%=256,o.push(i),o.push(n);return o}(e,t.length-n),t,n,i)}function b(t,e,n){n=Math.min(t.length,n);for(var i=[],o=e;o<n;){var r,a,s,l,u=t[o],c=null,h=239<u?4:223<u?3:191<u?2:1;if(o+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:128==(192&(r=t[o+1]))&&127<(l=(31&u)<<6|63&r)&&(c=l);break;case 3:r=t[o+1],a=t[o+2],128==(192&r)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&r)<<6|63&a)&&(l<55296||57343<l)&&(c=l);break;case 4:r=t[o+1],a=t[o+2],s=t[o+3],128==(192&r)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&r)<<12|(63&a)<<6|63&s)&&l<1114112&&(c=l)}null===c?(c=65533,h=1):65535<c&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),o+=h}var p=i,d=p.length;if(d<=w)return String.fromCharCode.apply(String,p);for(var f="",g=0;g<d;)f+=String.fromCharCode.apply(String,p.slice(g,g+=w));return f}e.Buffer=l,e.SlowBuffer=function(t){return+t!=t&&(t=0),l.alloc(+t)},e.INSPECT_MAX_BYTES=50,l.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=a(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,n){return u(null,t,e,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,n){return i=null,e=e,n=n,c(t=t),t<=0||void 0===e?s(i,t):"string"==typeof n?s(i,t).fill(e,n):s(i,t).fill(e);var i},l.allocUnsafe=function(t){return h(null,t)},l.allocUnsafeSlow=function(t){return h(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,o=0,r=Math.min(n,i);o<r;++o)if(t[o]!==e[o]){n=t[o],i=e[o];break}return n<i?-1:i<n?1:0},l.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}},l.concat=function(t,e){if(!r(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);if(void 0===e)for(o=e=0;o<t.length;++o)e+=t[o].length;for(var n=l.allocUnsafe(e),i=0,o=0;o<t.length;++o){var a=t[o];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},l.byteLength=f,l.prototype._isBuffer=!0,l.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)y(this,e,e+1);return this},l.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)y(this,e,e+3),y(this,e+1,e+2);return this},l.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)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},l.prototype.toString=function(){var t=0|this.length;return 0==t?"":0===arguments.length?b(this,0,t):g.apply(this,arguments)},l.prototype.equals=function(t){if(l.isBuffer(t))return this===t||0===l.compare(this,t);throw new TypeError("Argument must be a Buffer")},l.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return 0<this.length&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},l.prototype.compare=function(t,e,n,i,o){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),(e=void 0===e?0:e)<0||n>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(o<=i&&n<=e)return 0;if(o<=i)return-1;if(n<=e)return 1;if(this===t)return 0;for(var r=(o>>>=0)-(i>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(r,a),u=this.slice(i,o),c=t.slice(e,n),h=0;h<s;++h)if(u[h]!==c[h]){r=u[h],a=c[h];break}return r<a?-1:a<r?1:0},l.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},l.prototype.indexOf=function(t,e,n){return m(this,t,e,n,!0)},l.prototype.lastIndexOf=function(t,e,n){return m(this,t,e,n,!1)},l.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var o=this.length-e;if((void 0===n||o<n)&&(n=o),0<t.length&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i=i||"utf8";for(var r,a,s,l=!1;;)switch(i){case"hex":var u=this,c=t,h=e,p=n,d=(h=Number(h)||0,u.length-h);if((!p||d<(p=Number(p)))&&(p=d),(d=c.length)%2!=0)throw new TypeError("Invalid hex string");d/2<p&&(p=d/2);for(var f=0;f<p;++f){var g=parseInt(c.substr(2*f,2),16);if(isNaN(g))return f;u[h+f]=g}return f;case"utf8":case"utf-8":return d=e,s=n,P(D(t,(a=this).length-d),a,d,s);case"ascii":return x(this,t,e,n);case"latin1":case"binary":return x(this,t,e,n);case"base64":return a=this,s=e,r=n,P(L(t),a,s,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,t,e,n);default:if(l)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),l=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var w=4096;function S(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(n<t+e)throw new RangeError("Trying to access beyond buffer length")}function M(t,e,n,i,o,r){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(o<e||e<r)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function I(t,e,n,i){e<0&&(e=65535+e+1);for(var o=0,r=Math.min(t.length-n,2);o<r;++o)t[n+o]=(e&255<<8*(i?o:1-o))>>>8*(i?o:1-o)}function O(t,e,n,i){e<0&&(e=4294967295+e+1);for(var o=0,r=Math.min(t.length-n,4);o<r;++o)t[n+o]=e>>>8*(i?o:3-o)&255}function T(t,e,n,i){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function C(t,e,n,i,r){return r||T(t,0,n,4),o.write(t,e,n,i,23,4),n+4}function A(t,e,n,i,r){return r||T(t,0,n,8),o.write(t,e,n,i,52,8),n+8}l.prototype.slice=function(t,e){var n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):n<t&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):n<e&&(e=n),e<t&&(e=t),l.TYPED_ARRAY_SUPPORT)(o=this.subarray(t,e)).__proto__=l.prototype;else for(var i=e-t,o=new l(i,void 0),r=0;r<i;++r)o[r]=this[r+t];return o},l.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||S(t,e,this.length);for(var i=this[t],o=1,r=0;++r<e&&(o*=256);)i+=this[t+r]*o;return i},l.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||S(t,e,this.length);for(var i=this[t+--e],o=1;0<e&&(o*=256);)i+=this[t+--e]*o;return i},l.prototype.readUInt8=function(t,e){return e||S(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||S(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||S(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||S(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||S(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||S(t,e,this.length);for(var i=this[t],o=1,r=0;++r<e&&(o*=256);)i+=this[t+r]*o;return(o*=128)<=i&&(i-=Math.pow(2,8*e)),i},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||S(t,e,this.length);for(var i=e,o=1,r=this[t+--i];0<i&&(o*=256);)r+=this[t+--i]*o;return(o*=128)<=r&&(r-=Math.pow(2,8*e)),r},l.prototype.readInt8=function(t,e){return e||S(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){return e||S(t,2,this.length),e=this[t]|this[t+1]<<8,32768&e?4294901760|e:e},l.prototype.readInt16BE=function(t,e){return e||S(t,2,this.length),e=this[t+1]|this[t]<<8,32768&e?4294901760|e:e},l.prototype.readInt32LE=function(t,e){return e||S(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||S(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||S(t,4,this.length),o.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||S(t,4,this.length),o.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||S(t,8,this.length),o.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||S(t,8,this.length),o.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,i){t=+t,e|=0,n|=0,i||M(this,t,e,n,Math.pow(2,8*n)-1,0);var o=1,r=0;for(this[e]=255&t;++r<n&&(o*=256);)this[e+r]=t/o&255;return e+n},l.prototype.writeUIntBE=function(t,e,n,i){t=+t,e|=0,n|=0,i||M(this,t,e,n,Math.pow(2,8*n)-1,0);var o=n-1,r=1;for(this[e+o]=255&t;0<=--o&&(r*=256);)this[e+o]=t/r&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):O(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):O(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,n,i){t=+t,e|=0,i||M(this,t,e,n,(i=Math.pow(2,8*n-1))-1,-i);var o=0,r=1,a=0;for(this[e]=255&t;++o<n&&(r*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/r>>0)-a&255;return e+n},l.prototype.writeIntBE=function(t,e,n,i){t=+t,e|=0,i||M(this,t,e,n,(i=Math.pow(2,8*n-1))-1,-i);var o=n-1,r=1,a=0;for(this[e+o]=255&t;0<=--o&&(r*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/r>>0)-a&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&(t=t<0?255+t+1:t),e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):O(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):O(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,n){return C(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return C(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return A(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return A(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,i){if(n=n||0,i||0===i||(i=this.length),e>=t.length&&(e=t.length),(i=0<i&&i<n?n:i)===n)return 0;if(0===t.length||0===this.length)return 0;if((e=e||0)<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length);var o,r=(i=t.length-e<i-n?t.length-e+n:i)-n;if(this===t&&n<e&&e<i)for(o=r-1;0<=o;--o)t[o+e]=this[o+n];else if(r<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<r;++o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+r),e);return r},l.prototype.fill=function(t,e,n,i){if("string"==typeof t){var o;if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1!==t.length||(o=t.charCodeAt(0))<256&&(t=o),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;if(e>>>=0,n=void 0===n?this.length:n>>>0,"number"==typeof(t=t||0))for(s=e;s<n;++s)this[s]=t;else for(var r=l.isBuffer(t)?t:D(new l(t,i).toString()),a=r.length,s=0;s<n-e;++s)this[s+e]=r[s%a];return this};var k=/[^+\/0-9A-Za-z-_]/g;function D(t,e){e=e||1/0;for(var n,i=t.length,o=null,r=[],a=0;a<i;++a){if(55295<(n=t.charCodeAt(a))&&n<57344){if(!o){if(56319<n){-1<(e-=3)&&r.push(239,191,189);continue}if(a+1===i){-1<(e-=3)&&r.push(239,191,189);continue}o=n;continue}if(n<56320){-1<(e-=3)&&r.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&-1<(e-=3)&&r.push(239,191,189);if(o=null,n<128){if(--e<0)break;r.push(n)}else if(n<2048){if((e-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function L(t){return i.toByteArray(function(t){var e;if((t=((e=t).trim?e.trim():e.replace(/^\s+|\s+$/g,"")).replace(k,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function P(t,e,n,i){for(var o=0;o<i&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}}).call(this,n("c8ba"))},d51b:function(t,e,n){"use strict";var i=function(t){this.value=t},o=(r.prototype.insert=function(t){return t=new i(t),this.insertEntry(t),t},r.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++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r);function r(){this._len=0}function a(t){this._list=new o,this._maxSize=10,this._map={},this._maxSize=t}a.prototype.put=function(t,e){var n,o,r=this._list,a=this._map,s=null;return null==a[t]&&(o=r.len(),n=this._lastRemovedEntry,o>=this._maxSize&&0<o&&(o=r.head,r.remove(o),delete a[o.key],s=o.value,this._lastRemovedEntry=o),n?n.value=e:n=new i(e),n.key=t,r.insertEntry(n),a[t]=n),s},a.prototype.get=function(t){t=this._map[t];var e=this._list;if(null!=t)return t!==e.tail&&(e.remove(t),e.insertEntry(t)),t.value},a.prototype.clear=function(){this._list.clear(),this._map={}},a.prototype.len=function(){return this._list.len()},e.a=a},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}}}]);
|