12345678910 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-44220faa"],{"22d1":function(t,e,n){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:!c.hasGlobalWindow||"Deno"in window?(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){n.d(e,"e",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"f",(function(){return s})),n.d(e,"a",(function(){return l}));let i="/duoduo-service/setup-service/",o="/duoduo-service/object-service/",r="/duoduo-service/duoduoenv-service/",a="/duoduo-service",s="/duoduo-service/",l="/duoduo-service/custom-service/"},"313e":function(t,e,n){n.d(e,"b",(function(){return Cm})),n.d(e,"a",(function(){return o}));var i={},o=(n.r(i),n.d(i,"updateProps",(function(){return vs})),n.d(i,"initProps",(function(){return xs})),n.d(i,"removeElement",(function(){return bs})),n.d(i,"removeElementWithFadeOut",(function(){return Ss})),n.d(i,"isElementRemoved",(function(){return _s})),n.d(i,"extendShape",(function(){return xf})),n.d(i,"extendPath",(function(){return bf})),n.d(i,"registerShape",(function(){return wf})),n.d(i,"getShapeClass",(function(){return Sf})),n.d(i,"makePath",(function(){return Mf})),n.d(i,"makeImage",(function(){return If})),n.d(i,"mergePath",(function(){return Tf})),n.d(i,"resizePath",(function(){return Cf})),n.d(i,"subPixelOptimizeLine",(function(){return kf})),n.d(i,"subPixelOptimizeRect",(function(){return Df})),n.d(i,"subPixelOptimize",(function(){return Af})),n.d(i,"getTransform",(function(){return Lf})),n.d(i,"applyTransform",(function(){return Pf})),n.d(i,"transformDirection",(function(){return jf})),n.d(i,"groupTransition",(function(){return Nf})),n.d(i,"clipPointsByRect",(function(){return Ef})),n.d(i,"clipRectByRect",(function(){return zf})),n.d(i,"createIcon",(function(){return Vf})),n.d(i,"linePolygonIntersect",(function(){return Bf})),n.d(i,"lineLineIntersect",(function(){return Ff})),n.d(i,"setTooltipConfig",(function(){return Gf})),n.d(i,"traverseElements",(function(){return Wf})),n.d(i,"Group",(function(){return qn})),n.d(i,"Image",(function(){return Vr})),n.d(i,"Text",(function(){return pa})),n.d(i,"Circle",(function(){return tp})),n.d(i,"Ellipse",(function(){return ip})),n.d(i,"Sector",(function(){return bp})),n.d(i,"Ring",(function(){return Mp})),n.d(i,"Polygon",(function(){return Dp})),n.d(i,"Polyline",(function(){return jp})),n.d(i,"Rect",(function(){return qr})),n.d(i,"Line",(function(){return zp})),n.d(i,"BezierCurve",(function(){return Yp})),n.d(i,"Arc",(function(){return qp})),n.d(i,"IncrementalDisplayable",(function(){return gf})),n.d(i,"CompoundPath",(function(){return Qp})),n.d(i,"LinearGradient",(function(){return nf})),n.d(i,"RadialGradient",(function(){return rf})),n.d(i,"BoundingRect",(function(){return wt})),n.d(i,"OrientedBoundingRect",(function(){return df})),n.d(i,"Point",(function(){return dt})),n.d(i,"Path",(function(){return Ar})),{}),r=(n.r(o),n.d(o,"extendShape",(function(){return xf})),n.d(o,"extendPath",(function(){return bf})),n.d(o,"makePath",(function(){return Mf})),n.d(o,"makeImage",(function(){return If})),n.d(o,"mergePath",(function(){return Tf})),n.d(o,"resizePath",(function(){return Cf})),n.d(o,"createIcon",(function(){return Vf})),n.d(o,"updateProps",(function(){return vs})),n.d(o,"initProps",(function(){return xs})),n.d(o,"getTransform",(function(){return Lf})),n.d(o,"clipPointsByRect",(function(){return Ef})),n.d(o,"clipRectByRect",(function(){return zf})),n.d(o,"registerShape",(function(){return wf})),n.d(o,"getShapeClass",(function(){return Sf})),n.d(o,"Group",(function(){return qn})),n.d(o,"Image",(function(){return Vr})),n.d(o,"Text",(function(){return pa})),n.d(o,"Circle",(function(){return tp})),n.d(o,"Ellipse",(function(){return ip})),n.d(o,"Sector",(function(){return bp})),n.d(o,"Ring",(function(){return Mp})),n.d(o,"Polygon",(function(){return Dp})),n.d(o,"Polyline",(function(){return jp})),n.d(o,"Rect",(function(){return qr})),n.d(o,"Line",(function(){return zp})),n.d(o,"BezierCurve",(function(){return Yp})),n.d(o,"Arc",(function(){return qp})),n.d(o,"IncrementalDisplayable",(function(){return gf})),n.d(o,"CompoundPath",(function(){return Qp})),n.d(o,"LinearGradient",(function(){return nf})),n.d(o,"RadialGradient",(function(){return rf})),n.d(o,"BoundingRect",(function(){return wt})),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;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 d(t,e){return t[0]=e[0],t[1]=e[1],t}function p(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;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 k(t){(this.handler=t).on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}k.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))},k.prototype._drag=function(t){var e,n,i,o,r=this._draggingTarget;r&&(i=(e=t.offsetX)-this._x,o=(n=t.offsetY)-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)},k.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 D=k;function A(t){t&&(this._$eventProcessor=t)}A.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){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;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)}return this},A.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},A.prototype.off=function(t,e){var n=this._$handlers;if(n)if(t)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];else this._$handlers={};return this},A.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var i=this._$handlers[t],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)}}o&&o.afterTrigger&&o.afterTrigger(t)}return this},A.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var i=this._$handlers[t],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))}}o&&o.afterTrigger&&o.afterTrigger(t)}return this};var L=A,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,d=0,p=0;d<l;d++){var f=1<<d;f&o||(h+=(p%2?-1:1)*t[n][d]*j(t,e-1,c,u,o|f,r),p++)}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&&!V(e)){var r=e[N]||(e[N]={});e=((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,d=c.left;c=c.top;a.push(d,c),l=l&&r&&d===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))})(((t,e)=>{var n=e.markers;if(!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 V(t){return"CANVAS"===t.nodeName.toUpperCase()}var B=/([&<>"'])/g,F={"&":"&","<":"<",">":">",'"':""","'":"'"};function G(t){return null==t?"":(t+"").replace(B,(function(t,e){return F[e]}))}var H=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,W=[],Y=s.a.browser.firefox&&+s.a.browser.version.split(".")[0]<39;function X(t,e,n,i){return n=n||{},i?U(t,e,n):Y&&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):U(t,e,n),n}function U(t,e,n){if(s.a.domSupported&&t.getBoundingClientRect){var i,o=e.clientX;e=e.clientY;if(V(t))return i=t.getBoundingClientRect(),n.zrX=o-i.left,void(n.zrY=e-i.top);if(z(W,t,o,e))return n.zrX=W[0],void(n.zrY=W[1])}n.zrX=n.zrY=0}function Z(t){return t||window.event}function q(t,e,n){var i;return null==(e=Z(e)).zrX&&((i=e.type)&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&X(t,i,e,n):(X(t,e,e,n),i=(t=>{var e,n=t.wheelDelta;return n||(e=t.deltaX,t=t.deltaY,null!=e&&null!=t?3*(0!==t?Math.abs(t):Math.abs(e))*(0<t||!(t<0)&&0<e?-1:1):n)})(e),e.zrDelta=i?i/120:-(e.detail||0)/3),t=e.button,null==e.which&&void 0!==t&&H.test(e.type))&&(e.which=1&t?1:2&t?3:4&t?2:0),e}function K(t,e,n,i){t.addEventListener(e,n,i)}var Q=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function $(t){return 2===t.which||3===t.which}tt.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},tt.prototype.clear=function(){return this._track.length=0,this},tt.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=X(n,s,{});o.points.push([l.zrX,l.zrY]),o.touches.push(s)}this._track.push(o)}},tt.prototype._recognize=function(t){for(var e in nt)if(nt.hasOwnProperty(e)&&(e=nt[e](this._track,t),e))return e};var J=tt;function tt(){this._track=[]}function et(t){var e=t[1][0]-t[0][0];t=t[1][1]-t[0][1];return Math.sqrt(e*e+t*t)}var nt={pinch:function(t,e){var n,i=t.length;if(i)return n=(t[i-1]||{}).points,(i=(t[i-2]||{}).points||n)&&1<i.length&&n&&1<n.length?(i=et(n)/et(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 it(){return[1,0,0,1,0,0]}function ot(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function rt(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 at(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 st(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 lt(t,e,n,i){void 0===i&&(i=[0,0]);var o=e[0],r=e[2],a=e[4],s=e[1],l=e[3],u=(e=e[5],Math.sin(n));n=Math.cos(n);t[0]=o*n+s*u,t[1]=-o*u+s*n,t[2]=r*n+l*u,t[3]=-r*u+n*l,t[4]=n*(a-i[0])+u*(e-i[1])+i[0],t[5]=n*(e-i[1])-u*(a-i[0])+i[1]}function ut(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 ct(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}function ht(t,e){this.x=t||0,this.y=e||0}ht.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},ht.prototype.clone=function(){return new ht(this.x,this.y)},ht.prototype.set=function(t,e){return this.x=t,this.y=e,this},ht.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},ht.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},ht.prototype.scale=function(t){this.x*=t,this.y*=t},ht.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},ht.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},ht.prototype.dot=function(t){return this.x*t.x+this.y*t.y},ht.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},ht.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},ht.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},ht.prototype.distance=function(t){var e=this.x-t.x;t=this.y-t.y;return Math.sqrt(e*e+t*t)},ht.prototype.distanceSquare=function(t){var e=this.x-t.x;t=this.y-t.y;return e*e+t*t},ht.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},ht.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},ht.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},ht.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},ht.set=function(t,e,n){t.x=e,t.y=n},ht.copy=function(t,e){t.x=e.x,t.y=e.y},ht.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},ht.lenSquare=function(t){return t.x*t.x+t.y*t.y},ht.dot=function(t,e){return t.x*e.x+t.y*e.y},ht.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},ht.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},ht.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},ht.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},ht.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 dt=ht,pt=Math.min,ft=Math.max,gt=new dt,yt=new dt,mt=new dt,vt=new dt,xt=new dt,_t=new dt;function bt(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}bt.prototype.union=function(t){var e=pt(t.x,this.x),n=pt(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ft(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ft(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},bt.prototype.applyTransform=function(t){bt.applyTransform(this,this,t)},bt.prototype.calculateTransform=function(t){var e=t.width/this.width,n=t.height/this.height,i=it();return st(i,i,[-this.x,-this.y]),ut(i,i,[e,n]),st(i,i,[t.x,t.y]),i},bt.prototype.intersect=function(t,e){if(!t)return!1;t instanceof bt||(t=bt.create(t));var n,i,o,r,a,s,l,u,c=this.x,h=this.x+this.width,d=this.y,p=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||p<y||t<d));return e&&(n=1/0,i=0,o=Math.abs(h-f),r=Math.abs(g-c),a=Math.abs(p-y),s=Math.abs(t-d),l=Math.min(o,r),u=Math.min(a,s),h<f||g<c?i<l&&(i=l,o<r?dt.set(_t,-o,0):dt.set(_t,r,0)):l<n&&(n=l,o<r?dt.set(xt,o,0):dt.set(xt,-r,0)),p<y||t<d?i<u&&(i=u,a<s?dt.set(_t,0,-a):dt.set(_t,0,s)):l<n&&(n=l,a<s?dt.set(xt,0,a):dt.set(xt,0,-s))),e&&dt.copy(e,m?xt:_t),m},bt.prototype.contain=function(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},bt.prototype.clone=function(){return new bt(this.x,this.y,this.width,this.height)},bt.prototype.copy=function(t){bt.copy(this,t)},bt.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},bt.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},bt.prototype.isZero=function(){return 0===this.width||0===this.height},bt.create=function(t){return new bt(t.x,t.y,t.width,t.height)},bt.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},bt.applyTransform=function(t,e,n){var i,o,r;n?n[1]<1e-5&&-1e-5<n[1]&&n[2]<1e-5&&-1e-5<n[2]?(r=n[0],i=n[3],o=n[5],t.x=e.x*r+n[4],t.y=e.y*i+o,t.width=e.width*r,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height)):(gt.x=mt.x=e.x,gt.y=vt.y=e.y,yt.x=vt.x=e.x+e.width,yt.y=mt.y=e.y+e.height,gt.transform(n),vt.transform(n),yt.transform(n),mt.transform(n),t.x=pt(gt.x,yt.x,mt.x,vt.x),t.y=pt(gt.y,yt.y,mt.y,vt.y),o=ft(gt.x,yt.x,mt.x,vt.x),r=ft(gt.y,yt.y,mt.y,vt.y),t.width=o-t.x,t.height=r-t.y):t!==e&&bt.copy(t,e)};var wt=bt,St="silent";function Mt(){Q(this.event)}c(Tt,It=L),Tt.prototype.dispose=function(){},Tt.prototype.setCursor=function(){};var It,Ot=Tt;function Tt(){var t=null!==It&&It.apply(this,arguments)||this;return t.handler=null,t}var Ct,kt=function(t,e){this.x=t,this.y=e},Dt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],At=new wt(0,0,0,0),Lt=(c(Pt,Ct=L),Pt.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(l.k(Dt,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},Pt.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Rt(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 kt(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)},Pt.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})},Pt.prototype.resize=function(){this._hovered=new kt(0,0)},Pt.prototype.dispatch=function(t,e){t=this[t],t&&t.call(this,e)},Pt.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},Pt.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},Pt.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:Mt};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)})))}},Pt.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),o=new kt(t,e);if(jt(i,o,t,e,n),this._pointerSize&&!o.target){for(var r=[],a=this._pointerSize,s=a/2,l=new wt(t-s,e-s,a,a),u=i.length-1;0<=u;u--){var c=i[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(At.copy(c.getBoundingRect()),c.transform&&At.applyTransform(c.transform),At.intersect(l)&&r.push(c))}if(r.length)for(var h=Math.PI/12,d=2*Math.PI,p=0;p<s;p+=4)for(var f=0;f<d;f+=h)if(jt(r,o,t+p*Math.cos(f),e+p*Math.sin(f),n),o.target)return o}return o},Pt.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new J);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 kt).target=i.target,this.dispatchToElement(n,e,i.event))},Pt);function Pt(t,e,n,i,o){var r=Ct.call(this)||this;return r._hovered=new kt(0,0),r.storage=t,r.painter=e,r.painterRoot=i,r._pointerSize=o,n=n||new Ot,r.proxy=null,r.setHandlerProxy(n),r._draggingMgr=new D(r),r}function jt(t,e,n,i,o){for(var r=t.length-1;0<=r;r--){var a=t[r],s=void 0;if(a!==o&&!a.ignore&&(s=((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||St}return!1})(a,n,i))&&(e.topTarget||(e.topTarget=a),s!==St)){e.target=a;break}}}function Rt(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){Lt.prototype[t]=function(e){var n,i,o=e.zrX,r=e.zrY,a=Rt(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 Nt=Lt,Et=32,zt=7;function Vt(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 Bt(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 Ft(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 Gt(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 Ht(t,e){var n,i,o=zt,r=0,a=[];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=Gt(t[c],t,l,u,0,e);if(l+=s,0!=(u-=s)&&0!==(h=Ft(t[l+u-1],t,c,h,h-1,e)))if(u<=h){var d=l,p=u,f=(s=c,h),g=0;for(g=0;g<p;g++)a[g]=t[d+g];var y=0,m=s,v=d;if(t[v++]=t[m++],0==--f)for(g=0;g<p;g++)t[v+g]=a[y+g];else if(1===p){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==--p){b=!0;break}}while((x|_)<w);if(b)break;do{if(0!==(x=Gt(t[m],a,y,p,0,e))){for(g=0;g<x;g++)t[v+g]=a[y+g];if(v+=x,y+=x,(p-=x)<=1){b=!0;break}}if(t[v++]=t[m++],0==--f){b=!0;break}if(0!==(_=Ft(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==--p){b=!0;break}}while(w--,zt<=x||zt<=_);if(b)break;w<0&&(w=0),w+=2}if((o=w)<1&&(o=1),1===p){for(g=0;g<f;g++)t[v+g]=t[m+g];t[v+f]=a[y]}else{if(0===p)throw new Error;for(g=0;g<p;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,k=O-1,D=I+O-1,A=0,L=0;if(t[D--]=t[C--],0==--M)for(A=D-(O-1),T=0;T<O;T++)t[A+T]=a[T];else if(1===O){for(L=1+(D-=M),A=1+(C-=M),T=M-1;0<=T;T--)t[L+T]=t[A+T];t[D]=a[k]}else{for(var P=o;;){var j=0,R=0,N=!1;do{if(e(a[k],t[C])<0){if(t[D--]=t[C--],j++,(R=0)==--M){N=!0;break}}else if(t[D--]=a[k--],R++,j=0,1==--O){N=!0;break}}while((j|R)<P);if(N)break;do{if(0!==(j=M-Gt(a[k],t,S,M,M-1,e))){for(M-=j,L=1+(D-=j),A=1+(C-=j),T=j-1;0<=T;T--)t[L+T]=t[A+T];if(0===M){N=!0;break}}if(t[D--]=a[k--],1==--O){N=!0;break}if(0!==(R=O-Ft(t[C],a,0,O,O-1,e))){for(O-=R,L=1+(D-=R),A=1+(k-=R),T=0;T<R;T++)t[L+T]=a[A+T];if(O<=1){N=!0;break}}if(t[D--]=t[C--],0==--M){N=!0;break}}while(P--,zt<=j||zt<=R);if(N)break;P<0&&(P=0),P+=2}if((o=P)<1&&(o=1),1===O){for(L=1+(D-=M),A=1+(C-=M),T=M-1;0<=T;T--)t[L+T]=t[A+T];t[D]=a[k]}else{if(0===O)throw new Error;for(A=D-(O-1),T=0;T<O;T++)t[A+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 Wt(t,e,n,i){var o=(i=i||t.length)-(n=n||0);if(!(o<2)){var r=0;if(o<Et)Bt(t,n,i,n+(r=Vt(t,n,i,e)),e);else{var a,s=Ht(t,e),l=(t=>{for(var e=0;Et<=t;)e|=1&t,t>>=1;return t+e})(o);do{}while((r=Vt(t,n,i,e))<l&&(Bt(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 Yt=1,Xt=4;function Ut(){}function Zt(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function qt(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Zt}qt.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},qt.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},qt.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,Wt(n,Zt)},qt.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|=Yt),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)&&(Ut(),i.z=0),isNaN(i.z2)&&(Ut(),i.z2=0),isNaN(i.zlevel)&&(Ut(),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)}},qt.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},qt.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)}},qt.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},qt.prototype.getRoots=function(){return this._roots},qt.prototype.dispose=function(){this._displayList=null,this._roots=null};var Kt=qt,Qt=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)},$t={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(2*Math.PI*(t-e)/.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(2*Math.PI*(t-e)/.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(2*Math.PI*(t-e)/.4)*-.5:n*Math.pow(2,-10*--t)*Math.sin(2*Math.PI*(t-e)/.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-$t.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*$t.bounceIn(2*t):.5*$t.bounceOut(2*t-1)+.5}},Jt=$t,te=Math.pow,ee=Math.sqrt,ne=1e-8,ie=1e-4,oe=ee(3),re=1/3,ae=h(),se=h(),le=h();function ue(t){return-ne<t&&t<ne}function ce(t){return ne<t||t<-ne}function he(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 de(t,e,n,i,o){var r=1-o;return 3*(((e-t)*r+2*(n-e)*o)*r+(i-n)*o*o)}function pe(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 ue(o)&&ue(l)?ue(n)?r[0]=0:0<=(a=-e/n)&&a<=1&&(r[u++]=a):ue(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=ee(e))),0<=(a=(-n-((t=(t=o*n+1.5*i*(-l+t))<0?-te(-t,re):te(t,re))+(e=e<0?-te(-e,re):te(e,re))))/(3*i))&&a<=1&&(r[u++]=a)):(t=(2*o*n-3*i*l)/(2*ee(o*o*o)),e=Math.acos(t)/3,a=(-n-2*(l=ee(o))*(t=Math.cos(e)))/(3*i),s=(-n+l*(t+oe*Math.sin(e)))/(3*i),o=(-n+l*(t-oe*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 fe(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 ue(i)?ce(a)&&0<=(r=-n/a)&&r<=1&&(o[e++]=r):ue(t=a*a-4*i*n)?o[0]=-a/(2*i):0<t&&(t=(-a-(n=ee(t)))/(2*i),0<=(r=(-a+n)/(2*i))&&r<=1&&(o[e++]=r),0<=t)&&t<=1&&(o[e++]=t),e}function ge(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 ye(t,e,n,i,o,r,a,s,l,u,c){var h,d,p,f,g=.005,y=1/0;ae[0]=l,ae[1]=u;for(var m=0;m<1;m+=.05)se[0]=he(t,n,o,a,m),se[1]=he(e,i,r,s,m),(p=S(ae,se))<y&&(h=m,y=p);y=1/0;for(var v=0;v<32&&!(g<ie);v++)d=h+g,se[0]=he(t,n,o,a,f=h-g),se[1]=he(e,i,r,s,f),p=S(se,ae),0<=f&&p<y?(h=f,y=p):(le[0]=he(t,n,o,a,d),le[1]=he(e,i,r,s,d),f=S(le,ae),d<=1&&f<y?(h=d,y=f):g*=.5);return c&&(c[0]=he(t,n,o,a,h),c[1]=he(e,i,r,s,h)),ee(y)}function me(t,e,n,i){var o=1-i;return o*(o*t+2*i*e)+i*i*n}function ve(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function xe(t,e,n){return n=t+n-2*e,0==n?.5:(t-e)/n}function _e(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 be(t,e,n,i,o,r,a,s,l){var u,c=.005,h=1/0;ae[0]=a,ae[1]=s;for(var d=0;d<1;d+=.05)se[0]=me(t,n,o,d),se[1]=me(e,i,r,d),(y=S(ae,se))<h&&(u=d,h=y);h=1/0;for(var p=0;p<32&&!(c<ie);p++){var f=u-c,g=u+c,y=(se[0]=me(t,n,o,f),se[1]=me(e,i,r,f),S(se,ae));0<=f&&y<h?(u=f,h=y):(le[0]=me(t,n,o,g),le[1]=me(e,i,r,g),f=S(le,ae),g<=1&&f<h?(u=g,h=f):c*=.5)}return l&&(l[0]=me(t,n,o,u),l[1]=me(e,i,r,u)),ee(h)}var we=/cubic-bezier\(([0-9,\.e ]+)\)/;function Se(t){if(t=t&&we.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:pe(0,n,o,1,t,e)&&he(0,i,r,1,e[0])}}}function Me(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)}Me.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},Me.prototype.pause=function(){this._paused=!0},Me.prototype.resume=function(){this._paused=!1},Me.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(l.w)(t)?t:Jt[t]||Se(t)};var Ie=Me,Oe=n("41ef"),Te=n("7a29"),Ce=Array.prototype.slice;function ke(t,e,n){return(e-t)*n+t}function De(t,e,n,i){for(var o=e.length,r=0;r<o;r++)t[r]=ke(e[r],n[r],i);return t}function Ae(t,e,n,i){for(var o=e.length,r=0;r<o;r++)t[r]=e[r]+n[r]*i;return t}function Le(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 Pe(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(Ce.call(t[i]));return n}return Ce.call(t)}return t}function je(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 Re(t){return 4===t||5===t}function Ne(t){return 1===t||2===t}var Ee=[0,0,0,0],ze=(Ve.prototype.isFinished=function(){return this._finished},Ve.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},Ve.prototype.needsAnimate=function(){return 1<=this.keyframes.length},Ve.prototype.getAdditiveTrack=function(){return this._additiveTrack},Ve.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=Oe.h(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:Oe.h(t.color)}})),Object(Te.m)(e)?s=4:Object(Te.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:Jt[n]||Se(n)),o.push(c),c},Ve.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=Ne(i),l=Re(i),u=0;u<o;u++){var c=n[u],h=c.value,d=r.value;if(c.percent=c.time/t,!a)if(s&&u!==o-1){_=x=v=m=y=g=f=p=c=void 0;var p=d,f=i,g=c=h,y=p;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]:Ce.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=S=w=b=c=p=void 0;p=h.colorStops,c=d.colorStops;for(var b=p.length,w=c.length,S=w<b?c:p,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=Ae([],n[u].value,O,-1):Ne(i)&&(n[u].additiveValue=(1===i?Ae:Le)([],n[u].value,O,-1))}},Ve.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,d=this.propName,p=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:p?Ee:t[d],(Ne(u)||p)&&(g=g||(this._additiveValue=[])),this.discrete?t[d]=(o<1?n:i).rawValue:Ne(u)?(1===u?De:(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]=ke(e[a][s],n[a][s],i)}})(g,n[s],i[s],o):Re(u)?(f=n[s],r=i[s],t[d]={type:(u=4===u)?"linear":"radial",x:ke(f.x,r.x,o),y:ke(f.y,r.y,o),colorStops:Object(l.H)(f.colorStops,(function(t,e){return e=r.colorStops[e],{offset:ke(t.offset,e.offset,o),color:je(De([],t.color,e.color,o))}})),global:r.global},u?(t[d].x2=ke(f.x2,r.x2,o),t[d].y2=ke(f.y2,r.y2,o)):t[d].r=ke(f.r,r.r,o)):p?(De(g,n[s],i[s],o),a||(t[d]=je(g))):(u=ke(n[s],i[s],o),a?this._additiveValue=u:t[d]=u),a)&&this._addToTarget(t)}},Ve.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(Oe.h(t[n],Ee),Ae(Ee,Ee,i,1),t[n]=je(Ee)):1===e?Ae(t[n],t[n],i,1):2===e&&Le(t[n],t[n],i,1)},Ve);function Ve(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}function Be(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)}Be.prototype.getMaxTime=function(){return this._maxTime},Be.prototype.getDelay=function(){return this._delay},Be.prototype.getLoop=function(){return this._loop},Be.prototype.getTarget=function(){return this._target},Be.prototype.changeTarget=function(t){this._target=t},Be.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Object(l.F)(e),n)},Be.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 ze(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&&je(u))):u=this._target[a],null==u)continue;0<t&&l.addKeyframe(0,Pe(u),i),this._trackKeys.push(a)}l.addKeyframe(t,Pe(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},Be.prototype.pause=function(){this._clip.pause(),this._paused=!0},Be.prototype.resume=function(){this._clip.resume(),this._paused=!1},Be.prototype.isPaused=function(){return!!this._paused},Be.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},Be.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)},Be.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)},Be.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},Be.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},Be.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 Ie({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}},Be.prototype.stop=function(t){var e;this._clip&&(e=this._clip,t&&e.onframe(1),this._abortedCallback())},Be.prototype.delay=function(t){return this._delay=t,this},Be.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},Be.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},Be.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},Be.prototype.getClip=function(){return this._clip},Be.prototype.getTrack=function(t){return this._tracks[t]},Be.prototype.getTracks=function(){var t=this;return Object(l.H)(this._trackKeys,(function(e){return t._tracks[e]}))},Be.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},Be.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]=Pe(r.rawValue))}}},Be.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 Fe,Ge=Be;function He(){return(new Date).getTime()}function We(t){var e=Fe.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(We,Fe=L),We.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},We.prototype.addAnimator=function(t){t.animation=this,t=t.getClip(),t&&this.addClip(t)},We.prototype.removeClip=function(t){var e,n;t.animation&&(n=t.next,(e=t.prev)?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null)},We.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},We.prototype.update=function(t){for(var e=He()-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())},We.prototype._startLoop=function(){var t=this;this._running=!0,Qt((function e(){t._running&&(Qt(e),t._paused||t.update())}))},We.prototype.start=function(){this._running||(this._time=He(),this._pausedTime=0,this._startLoop())},We.prototype.stop=function(){this._running=!1},We.prototype.pause=function(){this._paused||(this._pauseStart=He(),this._paused=!0)},We.prototype.resume=function(){this._paused&&(this._pausedTime+=He()-this._pauseStart,this._paused=!1)},We.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},We.prototype.isFinished=function(){return null==this._head},We.prototype.animate=function(t,e){return e=e||{},this.start(),t=new Ge(t,e.loop),this.addAnimator(t),t};var Ye,Xe=We,Ue=s.a.domSupported,Ze=(Ye={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 Ye.hasOwnProperty(e)?e:t}))}),qe=["mousemove","mouseup"],Ke=["pointermove","pointerup"],Qe=!1;function $e(t){return t=t.pointerType,"pen"===t||"touch"===t}function Je(t){t&&(t.zrByTouch=!0)}function tn(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 en=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},nn={mousedown:function(t){t=q(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=q(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=q(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){tn(this,(t=q(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Qe=!0,t=q(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Qe||(t=q(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Je(t=q(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),nn.mousemove.call(this,t),nn.mousedown.call(this,t)},touchmove:function(t){Je(t=q(this.dom,t)),this.handler.processGesture(t,"change"),nn.mousemove.call(this,t)},touchend:function(t){Je(t=q(this.dom,t)),this.handler.processGesture(t,"end"),nn.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&nn.click.call(this,t)},pointerdown:function(t){nn.mousedown.call(this,t)},pointermove:function(t){$e(t)||nn.mousemove.call(this,t)},pointerup:function(t){nn.mouseup.call(this,t)},pointerout:function(t){$e(t)||nn.mouseout.call(this,t)}},on=(l.k(["click","dblclick","contextmenu"],(function(t){nn[t]=function(e){e=q(this.dom,e),this.trigger(t,e)}})),{pointermove:function(t){$e(t)||on.mousemove.call(this,t)},pointerup:function(t){on.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 rn(t,e){var n=e.domHandlers;s.a.pointerEventsSupported?l.k(Ze.pointer,(function(i){sn(e,i,(function(e){n[i].call(t,e)}))})):(s.a.touchEventsSupported&&l.k(Ze.touch,(function(i){sn(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(Ze.mouse,(function(i){sn(e,i,(function(o){o=Z(o),e.touching||n[i].call(t,o)}))})))}function an(t,e){function n(n){sn(e,n,(function(i){var o;i=Z(i),tn(t,i.target)||(o=i,i=q(t.dom,new en(t,o),!0),e.domHandlers[n].call(t,i))}),{capture:!0})}s.a.pointerEventsSupported?l.k(Ke,n):s.a.touchEventsSupported||l.k(qe,n)}function sn(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,K(t.domTarget,e,n,i)}function ln(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 un,cn=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e};function hn(t,e){var n=un.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=e,n._localHandlerScope=new cn(t,nn),Ue&&(n._globalHandlerScope=new cn(document,on)),rn(n,n._localHandlerScope),n}c(hn,un=L),hn.prototype.dispose=function(){ln(this._localHandlerScope),Ue&&ln(this._globalHandlerScope)},hn.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},hn.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,Ue&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?an(this,e):ln(e))};var dn=hn,pn=(e=1,e=s.a.hasGlobalWindow?Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1):e),fn="#333",gn="#ccc",yn=ot;function mn(t){return 5e-5<t||t<-5e-5}var vn=[],xn=[],_n=it(),bn=Math.abs;function wn(){}wn.prototype.getLocalTransform=function(t){return wn.getLocalTransform(this,t)},wn.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},wn.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},wn.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},wn.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},wn.prototype.needLocalTransform=function(){return mn(this.rotation)||mn(this.x)||mn(this.y)||mn(this.scaleX-1)||mn(this.scaleY-1)||mn(this.skewX)||mn(this.skewY)},wn.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||it(),e?this.getLocalTransform(n):yn(n),t&&(e?at(n,t,n):rt(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(yn(n),this.invTransform=null)},wn.prototype._resolveGlobalScaleRatio=function(t){var e,n,i=this.globalScaleRatio;null!=i&&1!==i&&(this.getGlobalScale(vn),n=((vn[1]-(n=vn[1]<0?-1:1))*i+n)/vn[1]||0,t[0]*=i=((vn[0]-(e=vn[0]<0?-1:1))*i+e)/vn[0]||0,t[1]*=i,t[2]*=n,t[3]*=n),this.invTransform=this.invTransform||it(),ct(this.invTransform,t)},wn.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},wn.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)},wn.prototype.decomposeTransform=function(){var t,e,n;this.transform&&(e=this.parent,t=this.transform,e&&e.transform&&(e.invTransform=e.invTransform||it(),at(xn,e.invTransform,t),t=xn),e=this.originX,n=this.originY,(e||n)&&(_n[4]=e,_n[5]=n,at(xn,t,_n),xn[4]-=e,xn[5]-=n,t=xn),this.setLocalTransform(t))},wn.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},wn.prototype.transformCoordToLocal=function(t,e){return t=[t,e],e=this.invTransform,e&&I(t,t,e),t},wn.prototype.transformCoordToGlobal=function(t,e){return t=[t,e],e=this.transform,e&&I(t,t,e),t},wn.prototype.getLineScale=function(){var t=this.transform;return t&&1e-10<bn(t[0]-1)&&1e-10<bn(t[3]-1)?Math.sqrt(bn(t[0]*t[3]-t[2]*t[1])):1},wn.prototype.copyTransform=function(t){Mn(this,t)},wn.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&<(e,e,l),e[4]+=n+u,e[5]+=i+c,e},wn.initDefaultProps=((e=wn.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 Sn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Mn(t,e){for(var n=0;n<Sn.length;n++){var i=Sn[n];t[i]=e[i]}}var In=wn,On=n("d51b"),Tn=n("726e"),Cn={};function kn(t,e){e=e||Tn.a;var n=Cn[e],i=(n=n||(Cn[e]=new On.a(500))).get(t);return null==i&&(i=Tn.d.measureText(t,e).width,n.put(t,i)),i}function Dn(t,e,n,i){return t=kn(t,e),e=jn(e),n=Ln(0,t,n),i=Pn(0,e,i),new wt(n,i,t,e)}function An(t,e,n,i){var o=((t||"")+"").split("\n");if(1===o.length)return Dn(o[0],e,n,i);for(var r=new wt(0,0,0,0),a=0;a<o.length;a++){var s=Dn(o[a],e,n,i);0===a?r.copy(s):r.union(s)}return r}function Ln(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Pn(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function jn(t){return kn("国",t)}function Rn(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function Nn(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+=Rn(i[0],n.width),u+=Rn(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 En="__zr_normal__",zn=Sn.concat(["ignore"]),Vn=Object(l.N)(Sn,(function(t,e){return t[e]=!0,t}),{ignore:!1}),Bn={},Fn=new wt(0,0,0,0);Gn.prototype._init=function(t){this.attr(t)},Gn.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()},Gn.prototype.beforeUpdate=function(){},Gn.prototype.afterUpdate=function(){},Gn.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},Gn.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=Fn,t.layoutRect?u.copy(t.layoutRect):u.copy(this.getBoundingRect()),l||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Bn,t,u):Nn(Bn,t,u),e.x=Bn.x,e.y=Bn.y,n=Bn.align,i=Bn.verticalAlign,r=t.origin)&&null!=t.rotation&&(s=a=void 0,s="center"===r?(a=.5*u.width,.5*u.height):(a=Rn(r[0],u.width),Rn(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|=Yt,o&&h.dirtyStyle(!0))},Gn.prototype.canBeInsideText=function(){return!0},Gn.prototype.getInsideTextFill=function(){return"#fff"},Gn.prototype.getInsideTextStroke=function(t){return"#000"},Gn.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?gn:fn},Gn.prototype.getOutsideStroke=function(t){for(var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&Object(Oe.h)(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(Oe.i)(n,"rgba")},Gn.prototype.traverse=function(t,e){},Gn.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},Gn.prototype.hide=function(){this.ignore=!0,this.markRedraw()},Gn.prototype.show=function(){this.ignore=!1,this.markRedraw()},Gn.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},Gn.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!==En||(o=(o=i.targetName)?e[o]:e,i.saveTo(o))}},Gn.prototype._innerSaveToNormal=function(t){var e=(e=this._normalState)||(this._normalState={});t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,zn)},Gn.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])}},Gn.prototype.hasState=function(){return 0<this.currentStates.length},Gn.prototype.getState=function(t){return this.states[t]},Gn.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},Gn.prototype.clearStates=function(t){this.useState(En,!1,t)},Gn.prototype.useState=function(t,e,n,i){var o=t===En,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&=~Yt),a;Object(l.G)("State "+t+" not exists.")}}},Gn.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&=~Yt)}}else this.clearStates()},Gn.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},Gn.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},Gn.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))},Gn.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)},Gn.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},Gn.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},Gn.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<zn.length;c++){var h=zn[c],d=o&&Vn[h];e&&null!=e[h]?d?(u=!0,s[h]=e[h]):this[h]=e[h]:a&&null!=n[h]&&(d?(u=!0,s[h]=n[h]):this[h]=n[h])}if(!o)for(c=0;c<this.animators.length;c++){var p=this.animators[c],f=p.targetName;p.getLoop()||p.__changeFinalValue(f?(e||n)[f]:e||n)}u&&this._transitionState(t,s,r)},Gn.prototype._attachComponent=function(t){var e;t.__zr&&!t.__hostTarget||t!==this&&((e=this.__zr)&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this)},Gn.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},Gn.prototype.getClipPath=function(){return this._clipPath},Gn.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},Gn.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},Gn.prototype.getTextContent=function(){return this._textContent},Gn.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new In,this._attachComponent(t),this._textContent=t,this.markRedraw())},Gn.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Object(l.m)(this.textConfig,t),this.markRedraw()},Gn.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},Gn.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},Gn.prototype.getTextGuideLine=function(){return this._textGuide},Gn.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},Gn.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},Gn.prototype.markRedraw=function(){this.__dirty|=Yt;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},Gn.prototype.dirty=function(){this.markRedraw()},Gn.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},Gn.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)}},Gn.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)}},Gn.prototype.animate=function(t,e,n){var i=t?this[t]:this;i=new Ge(i,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},Gn.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()},Gn.prototype.updateDuringAnimation=function(t){this.markRedraw()},Gn.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},Gn.prototype.animateTo=function(t,e,n){Hn(this,t,e,n)},Gn.prototype.animateFrom=function(t,e,n){Hn(this,t,e,n,!0)},Gn.prototype._transitionState=function(t,e,n,i){for(var o=Hn(this,e,n,i),r=0;r<o.length;r++)o[r].__fromStateTransition=t},Gn.prototype.getBoundingRect=function(){return null},Gn.prototype.getPaintRect=function(){return null},Gn.initDefaultProps=(()=>{var t=Gn.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=Yt,Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))})(),e=Gn;function Gn(t){this.id=Object(l.p)(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}function Hn(t,e,n,i,o){function r(){c=!0,--u<=0&&(c?h&&h():d&&d())}function a(){--u<=0&&(c?h&&h():d&&d())}var s=[],u=(function t(e,n,i,o,r,a,s,u){for(var c=Object(l.F)(o),h=r.duration,d=r.delay,p=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(!p&&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!Xn(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]=Pe(i[x]),Yn(i,o,x);(M=new Ge(i,!1,!1,p?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(d||0),e.addAnimator(M,n),s.push(M)}}(t,"",t,e,n=n||{},i,s,o),s.length),c=!1,h=n.done,d=n.aborted;u||h&&h(),0<s.length&&n.during&&s[0].during((function(t,e){n.during(e)}));for(var p=0;p<s.length;p++){var f=s[p];f.done(r),f.aborted(a),n.force&&f.duration(n.duration),f.start(n.easing)}return s}function Wn(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function Yn(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),Wn(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]?Wn(r[u],o[u],s):r[u]=Array.prototype.slice.call(o[u]);else Wn(r,o,a);r.length=o.length}else t[n]=e[n]}function Xn(t,e){return t===e||Object(l.u)(t)&&Object(l.u)(e)&&((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,In);var Un;n=e,c(Zn,Un=n),Zn.prototype.childrenRef=function(){return this._children},Zn.prototype.children=function(){return this._children.slice()},Zn.prototype.childAt=function(t){return this._children[t]},Zn.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},Zn.prototype.childCount=function(){return this._children.length},Zn.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},Zn.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},Zn.prototype.replace=function(t,e){return t=l.r(this._children,t),0<=t&&this.replaceAt(e,t),this},Zn.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},Zn.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()},Zn.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},Zn.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},Zn.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},Zn.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},Zn.prototype.addSelfToZr=function(t){Un.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].addSelfToZr(t)},Zn.prototype.removeSelfFromZr=function(t){Un.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].removeSelfFromZr(t)},Zn.prototype.getBoundingRect=function(t){for(var e=new wt(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))?(wt.applyTransform(e,a,s),(o=o||e.clone()).union(e)):(o=o||a.clone()).union(a))}return o||e},e=Zn;function Zn(t){var e=Un.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}e.prototype.type="group";var qn=e,Kn={},Qn={};
- /*!
- * 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
- */ti.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},ti.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},ti.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},ti.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=(t=>{if(t){if("string"==typeof t)return Object(Oe.e)(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,o=0;o<i;o++)n+=Object(Oe.e)(e[o].color,1);return(n/=i)<.4}}return!1})(t))},ti.prototype.getBackgroundColor=function(){return this._backgroundColor},ti.prototype.setDarkMode=function(t){this._darkMode=t},ti.prototype.isDarkMode=function(){return this._darkMode},ti.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},ti.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},ti.prototype.flush=function(){this._disposed||this._flush(!1)},ti.prototype._flush=function(t){var e,n=He();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),t=He();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:t-n})):0<this._sleepAfterStill&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill)&&this.animation.stop()},ti.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},ti.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},ti.prototype.refreshHover=function(){this._needsRefreshHover=!0},ti.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},ti.prototype.resize=function(t){this._disposed||(this.painter.resize((t=t||{}).width,t.height),this.handler.resize())},ti.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},ti.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},ti.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},ti.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},ti.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},ti.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},ti.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},ti.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},ti.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof qn&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},ti.prototype.dispose=function(){var t;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete Qn[t])};var $n,Jn=ti;function ti(t,e,n){var i,o=this,r=(this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t,new Kt),a=n.renderer||"canvas",u=(a=(Kn[a]||(a=l.F(Kn)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect,new Kn[a](e,r,n,t)),e=n.ssr||a.ssrOnly,t=(this.storage=r,this.painter=a,s.a.node||s.a.worker||e?null:new dn(a.getViewportRoot(),a.root)),n.useCoarsePointer);(null==u||"auto"===u?s.a.touchEventsSupported:!!u)&&(i=l.P(n.pointerSize,44)),this.handler=new Nt(r,a,t,a.root,i),this.animation=new Xe({stage:{update:e?null:function(){return o._flush(!0)}}}),e||this.animation.start()}function ei(t,e){return t=new Jn(l.p(),t,e),Qn[t.id]=t}var ni=20;function ii(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 oi(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 ri(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),ni),t=(+t).toFixed(e),n?t:+t}function ai(t){return t.sort((function(t,e){return t-e})),t}function si(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 li(t,e){var n=Math.log,i=Math.LN10;t=Math.floor(n(t[1]-t[0])/i),n=Math.round(n(Math.abs(e[1]-e[0]))/i),e=Math.min(Math.max(-t+n,0),20);return isFinite(e)?e:20}function ui(t,e){var n=l.N(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];for(var i=Math.pow(10,e),o=(e=l.H(t,(function(t){return(isNaN(t)?0:t)/n*i*100})),100*i),r=l.H(e,(function(t){return Math.floor(t)})),a=l.N(r,(function(t,e){return t+e}),0),s=l.H(e,(function(t,e){return t-r[e]}));a<o;){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,d=s.length;h<d;++h)s[h]>u&&(u=s[h],c=h);++r[c],s[c]=0,++a}return l.H(r,(function(t){return t/i}))}var ci=9007199254740991;function hi(t){var e=2*Math.PI;return(t%e+e)%e}function di(t){return-1e-4<t&&t<1e-4}var pi=/^(?:(\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 fi(t){var e,n;return t instanceof Date?t:l.C(t)?(e=pi.exec(t))?e[8]?(n=+e[4]||0,"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))):new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0):new Date(NaN):null==t?new Date(NaN):new Date(Math.round(t))}function gi(t){var e;return 0===t?0:(e=Math.floor(Math.log(t)/Math.LN10),10<=t/Math.pow(10,e)&&e++,e)}function yi(t,e){var n=gi(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 mi(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 vi(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 xi(t){var e=parseFloat(t);return e==t&&(0!==e||!l.C(t)||t.indexOf("x")<=0)?e:NaN}function _i(t){return!isNaN(xi(t))}function bi(){return Math.round(9*Math.random())}function wi(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 Si(t,e,n){return(e-t)*n+t}var Mi="series\0",Ii="\0_ec_\0";function Oi(t){return t instanceof Array?t:null==t?[]:[t]}function Ti(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 Ci=["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 ki(t){return!Object(l.A)(t)||Object(l.t)(t)||t instanceof Date?t:t.value}function Di(t,e,n){var i,o,r,a,s,u,c,h,d,p,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=((t,e,n)=>{var i=[];if("replaceAll"!==n)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||Ri(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=Li(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)&&!Ri(t)&&!Ri(i)&&Ai("name",i,t))return s[n].newOption=t,void(u[e]=null)}}))),f||g?(h=n,t=e,d=g,Object(l.k)(t,(function(t){if(t){for(var e,n=0;(e=h[n])&&(e.newOption||Ri(e.existing)||e.existing&&null!=t.id&&!Ai("id",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=d):h.push({newOption:t,brandNew:d,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,p=Object(l.f)(),Object(l.k)(f,(function(t){var e=t.existing;e&&p.set(e.id,t)})),Object(l.k)(f,(function(t){var e=t.newOption;Object(l.b)(!e||null==e.id||!p.get(e.id)||p.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&p.set(e.id,t),t.keyInfo||(t.keyInfo={})})),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?Li(i.name):n?n.name:Mi+e,n)o.id=Li(n.id);else if(null!=i.id)o.id=Li(i.id);else for(var r=0;o.id="\0"+o.name+"\0"+r++,p.get(o.id););p.set(o.id,t)}})),n}function Ai(t,e,n){return e=Pi(e[t],null),n=Pi(n[t],null),null!=e&&null!=n&&e===n}function Li(t){return Pi(t,"")}function Pi(t,e){return null==t?e:Object(l.C)(t)?t:Object(l.z)(t)||Object(l.D)(t)?t+"":e}function ji(t){return t=t.name,!(!t||!t.indexOf(Mi))}function Ri(t){return t&&null!=t.id&&0===Li(t.id).indexOf(Ii)}function Ni(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,t=t.existing,o=n,(r=r).type||(t?t.subType:o.determineSubType(i,r))))}))}function Ei(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 zi(){var t="__ec_inner_"+Vi++;return function(e){return e[t]||(e[t]={})}}var Vi=bi();function Bi(t,e,n){e=Fi(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=Wi(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 Fi(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 Gi={useDefault:!0,enableAll:!1,enableNone:!1},Hi={useDefault:!1,enableAll:!0,enableNone:!0};function Wi(t,e,n,i){i=i||Gi;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 Yi(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Xi(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 Ui(t,e,n,i,o){var r=null==e||"auto"===e;if(null==i)return i;if(Object(l.z)(i))return ri(p=Si(n||0,i,o),r?Math.max(si(n||0),si(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 d,p,f=t.getDimensionInfo(h);f&&"ordinal"===f.type?a[h]=(o<1&&s?s:u)[h]:(p=Si(f=s&&s[h]?s[h]:0,d=u[h],o),a[h]=ri(p,r?Math.max(si(f),si(d)):e))}return a}var Zi=".",qi="___EC__COMPONENT__CONTAINER___",Ki="___EC__EXTENDED_CLASS___";function Qi(t){var e={main:"",sub:""};return t&&(t=t.split(Zi),e.main=t[0]||"",e.sub=t[1]||""),e}function $i(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[Ki]=!0,e.extend=this.extend,e.superCall=to,e.superApply=eo,e.superClass=o,e}}function Ji(t,e){t.extend=e.extend}function to(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 eo(t,e,n){return this.superClass.prototype[e].apply(t,n)}function no(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=Qi(t.prototype.type=i)).sub?n.sub!==qi&&((t=>{var n=e[t.main];return n&&n[qi]?n:e[t.main]={___EC__COMPONENT__CONTAINER___:!0}})(n)[n.sub]=t):e[n.main]=t),t},t.getClass=function(t,n,i){var o=e[t];if(o&&o[qi]&&(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=Qi(t);var n=[];t=e[t.main];return t&&t[qi]?l.k(t,(function(t,e){e!==qi&&n.push(t)})):n.push(t),n},t.hasClass=function(t){return t=Qi(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=Qi(t),t=e[t.main],t&&t[qi]}}function io(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 oo=io([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),ro=(ao.prototype.getAreaStyle=function(t,e){return oo(this,t,e)},ao);function ao(){}var so=new On.a(50);function lo(t,e,n,i,o){return t?"string"==typeof t?(e&&e.__zrImageSrc===t||!n||(n={hostEl:n,cb:i,cbPayload:o},(i=so.get(t))?co(e=i.image)||i.pending.push(n):((e=Tn.d.loadImage(t,uo,uo)).__zrImageSrc=t,so.put(t,e.__cachedImgObj={image:e,pending:[n]}))),e):t:e}function uo(){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 co(t){return t&&t.width&&t.height}var ho=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function po(t,e,n,i,o,r){if(n){for(var a=(e+"").split("\n"),s=(r=fo(n,i,o,r),!1),l={},u=0,c=a.length;u<c;u++)go(l,a[u],r),a[u]=l.textLine,s=s||l.isTruncated;t.text=a.join("\n"),t.isTruncated=s}else t.text="",t.isTruncated=!1}function fo(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=kn("国",e),o.ascCharWidth=kn("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=kn(n,e),s<i&&(n="",i=0),s=t-i,o.ellipsis=n,o.ellipsisWidth=i,o.contentWidth=s,o.containerWidth=t,o}function go(t,e,n){var i=n.containerWidth,o=n.font,r=n.contentWidth;if(i)if((l=kn(e,o))<=i)t.textLine=e,t.isTruncated=!1;else{for(var a=0;;a++){if(l<=r||a>=n.maxIterations){e+=n.ellipsis;break}var s=0===a?((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})(e,r,n.ascCharWidth,n.cnCharWidth):0<l?Math.floor(e.length*r/l):0,l=kn(e=e.substr(0,s),o)}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}else t.textLine="",t.isTruncated=!1}var yo=function(){},mo=function(t){this.tokens=[],t&&(this.tokens=t)},vo=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function xo(t,e){var n=new vo;if(null!=t&&(t+=""),t){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=ho.lastIndex=0;null!=(i=ho.exec(t));){var c=i.index;u<c&&_o(n,t.substring(u,c),e,s),_o(n,i[2],e,s,i[1]),u=ho.lastIndex}u<t.length&&_o(n,t.substring(u,t.length),e,s);var h,d=[],p=0,f=0,g=e.padding,y="truncate"===a,m="truncate"===e.lineOverflow,v={};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=(A=_.tokens[S]).styleName&&e.rich[A.styleName]||{},I=A.textPadding=M.padding,O=I?I[1]+I[3]:0,T=A.font=M.font||e.font,C=(A.contentHeight=jn(T),Object(l.P)(M.height,A.contentHeight));if(A.innerHeight=C,I&&(C+=I[0]+I[2]),A.height=C,A.lineHeight=Object(l.Q)(M.lineHeight,e.lineHeight,C),A.align=M&&M.align||e.align,A.verticalAlign=M&&M.verticalAlign||"middle",m&&null!=r&&p+A.lineHeight>r){I=n.lines.length,0<S?(_.tokens=_.tokens.slice(0,S),P(_,w,b),n.lines=n.lines.slice(0,x+1)):n.lines=n.lines.slice(0,x),n.isTruncated=n.isTruncated||n.lines.length<I;break t}I=M.width;var k,D=null==I||"auto"===I;"string"==typeof I&&"%"===I.charAt(I.length-1)?(A.percentWidth=I,d.push(A),A.contentWidth=kn(A.text,T)):(D&&(I=(I=M.backgroundColor)&&I.image)&&(k=void 0,co(I="string"==typeof(h=I)?(k=so.get(h))&&k.image:h))&&(A.width=Math.max(A.width,I.width*C/I.height)),null!=(k=y&&null!=o?o-w:null)&&k<A.width?!D||k<O?(A.text="",A.width=A.contentWidth=0):(po(v,A.text,k-O,T,e.ellipsis,{minChar:e.truncateMinChar}),A.text=v.text,n.isTruncated=n.isTruncated||v.isTruncated,A.width=A.contentWidth=kn(A.text,T)):A.contentWidth=kn(A.text,T)),A.width+=O,w+=A.width,M&&(b=Math.max(b,A.lineHeight))}P(_,w,b)}for(n.outerWidth=n.width=Object(l.P)(o,f),n.outerHeight=n.height=Object(l.P)(r,p),n.contentHeight=p,n.contentWidth=f,g&&(n.outerWidth+=g[1]+g[3],n.outerHeight+=g[0]+g[2]),x=0;x<d.length;x++){var A,L=(A=d[x]).percentWidth;A.width=parseInt(L,10)/100*n.width}}return n;function P(t,e,n){t.width=e,p+=t.lineHeight=n,f=Math.max(f,e)}}function _o(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=Rn(l.width,i.width)+n,0<u.length&&t+i.accumWidth>i.width&&(r=e.split("\n"),h=!0),i.accumWidth=t):(t=wo(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 d=0;d<r.length;d++){var p,f,g=r[d],y=new yo;y.styleName=o,y.text=g,y.isLineHolder=!g&&!s,"number"==typeof l.width?y.width=l.width:y.width=a?a[d]:kn(g,c),d||h?u.push(new mo([y])):1===(f=(p=(u[u.length-1]||(u[0]=new mo)).tokens).length)&&p[0].isLineHolder?p[0]=y:!g&&f&&!s||p.push(y)}}var bo=Object(l.N)(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function wo(t,e,n,i,o){for(var r,a=[],s=[],l="",u="",c=0,h=0,d=0;d<t.length;d++){var p,f,g=t.charAt(d);"\n"===g?(u&&(l+=u,h+=c),a.push(l),s.push(h),u=l="",h=c=0):(p=kn(g,e),f=!(i||(f=void 0,!(32<=(f=(f=r=g).charCodeAt(0))&&f<=591||880<=f&&f<=4351||4608<=f&&f<=5119||7680<=f&&f<=8303))||bo[r]),(a.length?n<h+p:n<o+h+p)?h?(l||u)&&(h=f?(l||(l=u,u="",h=c=0),a.push(l),s.push(h-c),u+=g,l="",c+=p):(u&&(l+=u,u="",c=0),a.push(l),s.push(h),l=g,p)):f?(a.push(u),s.push(c),u=g,c=p):(a.push(g),s.push(p)):(h+=p,f?(u+=g,c+=p):(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 So,Mo="__zr_style_"+Math.round(10*Math.random()),Io={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Oo={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},To=(Io[Mo]=!0,["z","z2","invisible"]),Co=["invisible"];c(ko,So=n),ko.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]):So.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},ko.prototype.beforeBrush=function(){},ko.prototype.afterBrush=function(){},ko.prototype.innerBeforeBrush=function(){},ko.prototype.innerAfterBrush=function(){},ko.prototype.shouldBePainted=function(t,e,n,i){var o=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&((t,e,n)=>(Do.copy(t.getBoundingRect()),t.transform&&Do.applyTransform(t.transform),Ao.width=e,Ao.height=n,!Do.intersect(Ao)))(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},ko.prototype.contain=function(t,e){return this.rectContain(t,e)},ko.prototype.traverse=function(t,e){t.call(e,this)},ko.prototype.rectContain=function(t,e){return t=this.transformCoordToLocal(t,e),this.getBoundingRect().contain(t[0],t[1])},ko.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 wt(0,0,0,0)),o?wt.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},ko.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new wt(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},ko.prototype.getPrevPaintRect=function(){return this._prevPaintRect},ko.prototype.animateStyle=function(t){return this.animate("style",t)},ko.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},ko.prototype.attrKV=function(t,e){"style"!==t?So.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},ko.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:Object(l.m)(this.style,t),this.dirtyStyle(),this},ko.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},ko.prototype.dirty=function(){this.dirtyStyle()},ko.prototype.styleChanged=function(){return!!(2&this.__dirty)},ko.prototype.styleUpdated=function(){this.__dirty&=-3},ko.prototype.createStyle=function(t){return Object(l.g)(Io,t)},ko.prototype.useStyle=function(t){t[Mo]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},ko.prototype.isStyleObject=function(t){return t[Mo]},ko.prototype._innerSaveToNormal=function(t){So.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,To)},ko.prototype._applyStateObj=function(t,e,n,i,o,r){So.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++)(p=c[h])in a&&(a[p]=a[p],this.style[p]=u[p]);var d=Object(l.F)(a);for(h=0;h<d.length;h++){var p=d[h];this.style[p]=this.style[p]}this._transitionState(t,{style:a},r,this.getAnimationStyleProps())}else this.useStyle(a);var f=this.__inHover?Co:To;for(h=0;h<f.length;h++)p=f[h],e&&null!=e[p]?this[p]=e[p]:s&&null!=n[p]&&(this[p]=n[p])},ko.prototype._mergeStates=function(t){for(var e,n=So.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},ko.prototype._mergeStyle=function(t,e){return Object(l.m)(t,e),t},ko.prototype.getAnimationStyleProps=function(){return Oo},ko.initDefaultProps=((n=ko.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|Yt)),n=ko;function ko(t){return So.call(this,t)||this}var Do=new wt(0,0,0,0),Ao=new wt(0,0,0,0),Lo=n,Po=Math.min,jo=Math.max,Ro=Math.sin,No=Math.cos,Eo=2*Math.PI,zo=h(),Vo=h(),Bo=h();function Fo(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++)o=Po(o,(i=t[l])[0]),r=jo(r,i[0]),a=Po(a,i[1]),s=jo(s,i[1]);e[0]=o,e[1]=a,n[0]=r,n[1]=s}}function Go(t,e,n,i,o,r){o[0]=Po(t,n),o[1]=Po(e,i),r[0]=jo(t,n),r[1]=jo(e,i)}var Ho=[],Wo=[],Yo={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Xo=[],Uo=[],Zo=[],qo=[],Ko=[],Qo=[],$o=Math.min,Jo=Math.max,tr=Math.cos,er=Math.sin,nr=Math.abs,ir=Math.PI,or=2*ir,rr="undefined"!=typeof Float32Array,ar=[];function sr(t){return Math.round(t/ir*1e8)/1e8%2*ir}function lr(t,e){var n=sr(t[0]),i=(n<0&&(n+=or),n-t[0]),o=t[1];o+=i,!e&&or<=o-n?o=n+or:e&&or<=n-o?o=n-or:!e&&o<n?o=n+(or-sr(n-o)):e&&n<o&&(o=n-(or-sr(o-n))),t[0]=n,t[1]=o}function ur(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=[])}ur.prototype.increaseVersion=function(){this._version++},ur.prototype.getVersion=function(){return this._version},ur.prototype.setScale=function(t,e,n){0<(n=n||0)&&(this._ux=nr(n/pn/t)||0,this._uy=nr(n/pn/e)||0)},ur.prototype.setDPR=function(t){this.dpr=t},ur.prototype.setContext=function(t){this._ctx=t},ur.prototype.getContext=function(){return this._ctx},ur.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},ur.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},ur.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Yo.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},ur.prototype.lineTo=function(t,e){var n=nr(t-this._xi),i=nr(e-this._yi),o=n>this._ux||i>this._uy;return this.addData(Yo.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},ur.prototype.bezierCurveTo=function(t,e,n,i,o,r){return this._drawPendingPt(),this.addData(Yo.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},ur.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Yo.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},ur.prototype.arc=function(t,e,n,i,o,r){return this._drawPendingPt(),ar[0]=i,ar[1]=o,lr(ar,r),this.addData(Yo.A,t,e,n,n,i=ar[0],(o=ar[1])-i,0,r?0:1),this._ctx&&this._ctx.arc(t,e,n,i,o,r),this._xi=tr(o)*n+t,this._yi=er(o)*n+e,this},ur.prototype.arcTo=function(t,e,n,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,o),this},ur.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Yo.R,t,e,n,i),this},ur.prototype.closePath=function(){this._drawPendingPt(),this.addData(Yo.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},ur.prototype.fill=function(t){t&&t.fill(),this.toStatic()},ur.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},ur.prototype.len=function(){return this._len},ur.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!rr||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},ur.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(rr&&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},ur.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]}},ur.prototype._drawPendingPt=function(){0<this._pendingPtDist&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},ur.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}},ur.prototype.toStatic=function(){var t;this._saveData&&(this._drawPendingPt(),(t=this.data)instanceof Array)&&(t.length=this._len,rr)&&11<this._len&&(this.data=new Float32Array(t))},ur.prototype.getBoundingRect=function(){Zo[0]=Zo[1]=Ko[0]=Ko[1]=Number.MAX_VALUE,qo[0]=qo[1]=Qo[0]=Qo[1]=-Number.MAX_VALUE;for(var t,e=this.data,n=0,i=0,o=0,r=0,a=0;a<this._len;){var s=e[a++],l=1===a;switch(l&&(o=n=e[a],r=i=e[a+1]),s){case Yo.M:n=o=e[a++],i=r=e[a++],Ko[0]=o,Ko[1]=r,Qo[0]=o,Qo[1]=r;break;case Yo.L:Go(n,i,e[a],e[a+1],Ko,Qo),n=e[a++],i=e[a++];break;case Yo.C:M=S=w=b=_=x=v=m=y=g=f=p=d=h=c=u=void 0;var u=n,c=i,h=e[a++],d=e[a++],p=e[a++],f=e[a++],g=e[a],y=e[a+1],m=Ko,v=Qo,x=fe,_=he,b=x(u,h,p,g,Ho);m[0]=1/0,m[1]=1/0,v[0]=-1/0,v[1]=-1/0;for(var w=0;w<b;w++){var S=_(u,h,p,g,Ho[w]);m[0]=Po(S,m[0]),v[0]=jo(S,v[0])}for(b=x(c,d,f,y,Wo),w=0;w<b;w++){var M=_(c,d,f,y,Wo[w]);m[1]=Po(M,m[1]),v[1]=jo(M,v[1])}m[0]=Po(u,m[0]),v[0]=jo(u,v[0]),m[0]=Po(g,m[0]),v[0]=jo(g,v[0]),m[1]=Po(c,m[1]),v[1]=jo(c,v[1]),m[1]=Po(y,m[1]),v[1]=jo(y,v[1]),n=e[a++],i=e[a++];break;case Yo.Q:x=n,F=i,P=e[a++],k=e[a++],L=e[a],I=e[a+1],A=Ko,j=Qo,t=D=t=C=void 0,C=me,t=jo(Po((D=xe)(x,P,L),1),0),D=jo(Po(D(F,k,I),1),0),P=C(x,P,L,t),t=C(F,k,I,D),A[0]=Po(x,L,P),A[1]=Po(F,I,t),j[0]=jo(x,L,P),j[1]=jo(F,I,t),n=e[a++],i=e[a++];break;case Yo.A:var I,C=e[a++],k=e[a++],D=e[a++],A=e[a++],L=e[a++],P=e[a++]+L,j=(a+=1,!e[a++]),R=(l&&(o=tr(L)*D+C,r=er(L)*A+k),X=I=Y=W=H=G=F=B=V=z=E=N=R=void 0,C),N=k,E=D,z=A,V=L,B=P,F=j,G=Ko,H=Qo,W=O,Y=T;if((I=Math.abs(V-B))%Eo<1e-4&&1e-4<I)G[0]=R-E,G[1]=N-z,H[0]=R+E,H[1]=N+z;else{zo[0]=No(V)*E+R,zo[1]=Ro(V)*z+N,Vo[0]=No(B)*E+R,Vo[1]=Ro(B)*z+N,W(G,zo,Vo),Y(H,zo,Vo),(V%=Eo)<0&&(V+=Eo),(B%=Eo)<0&&(B+=Eo),B<V&&!F?B+=Eo:V<B&&F&&(V+=Eo),F&&(I=B,B=V,V=I);for(var X=0;X<B;X+=Math.PI/2)V<X&&(Bo[0]=No(X)*E+R,Bo[1]=Ro(X)*z+N,W(G,Bo,G),Y(H,Bo,H))}n=tr(P)*D+C,i=er(P)*A+k;break;case Yo.R:Go(o=n=e[a++],r=i=e[a++],o+e[a++],r+e[a++],Ko,Qo);break;case Yo.Z:n=o,i=r}O(Zo,Zo,Ko),T(qo,qo,Qo)}return 0===a&&(Zo[0]=Zo[1]=qo[0]=qo[1]=0),new wt(Zo[0],Zo[1],qo[0]-Zo[0],qo[1]-Zo[1])},ur.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 d=t[h++],p=1===h,f=(p&&(a=o=t[h],s=r=t[h+1]),-1);switch(d){case Yo.M:o=a=t[h++],r=s=t[h++];break;case Yo.L:var g=t[h++],y=(x=t[h++])-r;(nr(T=g-o)>n||nr(y)>i||h===e-1)&&(f=Math.sqrt(T*T+y*y),o=g,r=x);break;case Yo.C:var m=t[h++],v=t[h++],x=(g=t[h++],t[h++]),_=t[h++],b=t[h++];f=((t,e,n,i,o,r,a,s,l)=>{for(var u=t,c=e,h=0,d=1/l,p=1;p<=l;p++){var f=p*d,g=he(t,n,o,a,f),y=(f=he(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 Yo.Q:f=((t,e,n,i,o,r,a)=>{for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var d=h*c,p=me(t,n,o,d),f=(d=me(e,i,r,d),p-s),g=d-l;u+=Math.sqrt(f*f+g*g),s=p,l=d}return u})(o,r,m=t[h++],v=t[h++],g=t[h++],x=t[h++],10),o=g,r=x;break;case Yo.A:_=t[h++],b=t[h++];var w=t[h++],S=t[h++],M=t[h++],I=t[h++],O=I+M;h+=1,p&&(a=tr(M)*w+_,s=er(M)*S+b),f=Jo(w,S)*$o(or,Math.abs(I)),o=tr(O)*w+_,r=er(O)*S+b;break;case Yo.R:a=o=t[h++],s=r=t[h++],f=2*t[h++]+2*t[h++];break;case Yo.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},ur.prototype.rebuildPath=function(t,e){var n,i,o,r,a,s,l,u,c=this.data,h=this._ux,d=this._uy,p=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<p;){var x=c[v++],_=1===v;switch(_&&(n=o=c[v],i=r=c[v+1]),x!==Yo.L&&0<m&&(t.lineTo(l,u),m=0),x){case Yo.M:n=o=c[v++],i=r=c[v++],t.moveTo(o,r);break;case Yo.L:var b=c[v++],w=c[v++],S=nr(b-o),M=nr(w-r);if(h<S||d<M){if(f){if(s<g+(G=a[y++])){var I=(s-g)/G;t.lineTo(o*(1-I)+b*I,r*(1-I)+w*I);break t}g+=G}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 Yo.C:var O=c[v++],T=c[v++],C=c[v++],k=c[v++];M=c[v++],S=c[v++];if(f){if(s<g+(G=a[y++])){ge(o,O,C,M,I=(s-g)/G,Xo),ge(r,T,k,S,I,Uo),t.bezierCurveTo(Xo[1],Uo[1],Xo[2],Uo[2],Xo[3],Uo[3]);break t}g+=G}t.bezierCurveTo(O,T,C,k,M,S),o=M,r=S;break;case Yo.Q:if(O=c[v++],T=c[v++],C=c[v++],k=c[v++],f){if(s<g+(G=a[y++])){_e(o,O,C,I=(s-g)/G,Xo),_e(r,T,k,I,Uo),t.quadraticCurveTo(Xo[1],Uo[1],Xo[2],Uo[2]);break t}g+=G}t.quadraticCurveTo(O,T,C,k),o=C,r=k;break;case Yo.A:var D=c[v++],A=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,V=.001<nr(L-P),B=j+R,F=!1;if(f&&(s<g+(G=a[y++])&&(B=j+R*(s-g)/G,F=!0),g+=G),V&&t.ellipse?t.ellipse(D,A,L,P,N,j,B,E):t.arc(D,A,z,j,B,E),F)break t;_&&(n=tr(j)*L+D,i=er(j)*P+A),o=tr(B)*L+D,r=er(B)*P+A;break;case Yo.R:n=o=c[v],i=r=c[v+1],b=c[v++],w=c[v++];var G;R=c[v++],V=c[v++];if(f){if(s<g+(G=a[y++])){N=s-g,t.moveTo(b,w),t.lineTo(b+$o(N,R),w),0<(N-=R)&&t.lineTo(b+R,w+$o(N,V)),0<(N-=V)&&t.lineTo(b+Jo(R-N,0),w+V),0<(N-=R)&&t.lineTo(b,w+Jo(V-N,0));break t}g+=G}t.rect(b,w,R,V);break;case Yo.Z:if(f){if(s<g+(G=a[y++])){I=(s-g)/G,t.lineTo(o*(1-I)+n*I,r*(1-I)+i*I);break t}g+=G}t.closePath(),o=n,r=i}}},ur.prototype.clone=function(){var t=new ur,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},ur.CMD=Yo,ur.initDefaultProps=((n=ur.prototype)._saveData=!0,n._ux=0,n._uy=0,n._pendingPtDist=0,void(n._version=0));var cr=ur;function hr(t,e,n,i,o,r,a){var s;if(0!==o)return s=0,!(e+(o=o)<a&&i+o<a||a<e-o&&a<i-o||t+o<r&&n+o<r||r<t-o&&r<n-o)&&(t===n?Math.abs(r-t)<=o/2:(r=(s=(e-i)/(t-n))*r-a+(t*i-n*e)/(t-n))*r/(s*s+1)<=o/2*o/2)}function dr(t,e,n,i,o,r,a,s,l){if(0!==a)return!(e+(a=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)&&be(t,e,n,i,o,r,s,l,null)<=a/2}var pr=2*Math.PI;function fr(t){return(t%=pr)<0&&(t+=pr),t}var gr=2*Math.PI;function yr(t,e,n,i,o,r){return e<r&&i<r||r<e&&r<i||i===e?0:(n=(r=(r-e)/(i-e))*(n-t)+t)===o?1/0:o<n?1!=r&&0!=r?i<e?1:-1:i<e?.5:-.5:0}var mr=cr.CMD,vr=2*Math.PI,xr=1e-4,_r=[-1,-1,-1],br=[-1,-1];function wr(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=pe(e,i,r,s,u,_r);if(0===c)return 0;for(var h,d=0,p=-1,f=void 0,g=void 0,y=0;y<c;y++){var m=_r[y],v=0===m||1===m?.5:1;he(t,n,o,a,m)<l||(p<0&&(p=fe(e,i,r,s,br),br[1]<br[0]&&1<p&&(h=void 0,h=br[0],br[0]=br[1],br[1]=h),f=he(e,i,r,s,br[0]),1<p)&&(g=he(e,i,r,s,br[1])),2===p?m<br[0]?d+=f<e?v:-v:m<br[1]?d+=g<f?v:-v:d+=s<g?v:-v:m<br[0]?d+=f<e?v:-v:d+=s<f?v:-v)}return d}function Sr(t,e,n,i,o,r,a,s){if(e<s&&i<s&&r<s||s<e&&s<i&&s<r)return 0;h=_r,c=(l=e)-2*(u=i)+(c=r),u=2*(u-l),l-=s=s,s=0,ue(c)?ce(u)&&0<=(d=-l/u)&&d<=1&&(h[s++]=d):ue(l=u*u-4*c*l)?0<=(d=-u/(2*c))&&d<=1&&(h[s++]=d):0<l&&(p=(-u-(l=ee(l)))/(2*c),0<=(d=(-u+l)/(2*c))&&d<=1&&(h[s++]=d),0<=p)&&p<=1&&(h[s++]=p);var l,u,c,h,d,p,f=s;if(0===f)return 0;var g=xe(e,i,r);if(0<=g&&g<=1){for(var y=0,m=me(e,i,r,g),v=0;v<f;v++){var x=0===_r[v]||1===_r[v]?.5:1;me(t,n,o,_r[v])<a||(_r[v]<g?y+=m<e?x:-x:y+=r<m?x:-x)}return y}return x=0===_r[0]||1===_r[0]?.5:1,me(t,n,o,_r[0])<a?0:r<e?x:-x}function Mr(t,e,n,i,o){for(var r,a=t.data,s=t.len(),l=0,u=0,c=0,h=0,d=0,p=0;p<s;){var f=a[p++],g=1===p;switch(f===mr.M&&1<p&&(n||(l+=yr(u,c,h,d,i,o))),g&&(h=u=a[p],d=c=a[p+1]),f){case mr.M:u=h=a[p++],c=d=a[p++];break;case mr.L:if(n){if(hr(u,c,a[p],a[p+1],e,i,o))return!0}else l+=yr(u,c,a[p],a[p+1],i,o)||0;u=a[p++],c=a[p++];break;case mr.C:if(n){if(((t,e,n,i,o,r,a,s,l,u,c)=>0!==l&&!(e+(l=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)&&ye(t,e,n,i,o,r,a,s,u,c,null)<=l/2)(u,c,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],e,i,o))return!0}else l+=wr(u,c,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],i,o)||0;u=a[p++],c=a[p++];break;case mr.Q:if(n){if(dr(u,c,a[p++],a[p++],a[p],a[p+1],e,i,o))return!0}else l+=Sr(u,c,a[p++],a[p++],a[p],a[p+1],i,o)||0;u=a[p++],c=a[p++];break;case mr.A:var y=a[p++],m=a[p++],v=a[p++],x=a[p++],_=a[p++],b=a[p++],w=(p+=1,!!(1-a[p++])),S=Math.cos(_)*v+y,M=Math.sin(_)*x+m,I=(g?(h=S,d=M):l+=yr(u,c,S,M,i,o),(i-y)*x/v+y);if(n){if(((t,e,n,i,o,r,a,s,l)=>0!==a&&(a=a,s-=t,l-=e,!(n<(t=Math.sqrt(s*s+l*l))-a||t+a<n))&&(Math.abs(i-o)%gr<1e-4||((o=r?(e=i,i=fr(o),fr(e)):(i=fr(i),fr(o)))<i&&(o+=gr),(t=Math.atan2(l,s))<0&&(t+=gr),i<=t&&t<=o)||i<=t+gr&&t+gr<=o))(y,m,x,_,_+b,w,e,I,o))return!0}else l+=((t,e,n,i,o,r,a,s)=>{if(n<(s-=e)||s<-n)return 0;e=Math.sqrt(n*n-s*s);if(_r[0]=-e,_r[1]=e,(n=Math.abs(i-o))<1e-4)return 0;if(vr-1e-4<=n)return o=vr,c=r?1:-1,a>=_r[i=0]+t&&a<=_r[1]+t?c:0;o<i&&(e=i,i=o,o=e),i<0&&(i+=vr,o+=vr);for(var l=0,u=0;u<2;u++){var c,h=_r[u];a<h+t&&(c=r?1:-1,i<=(h=(h=Math.atan2(s,h))<0?vr+h:h)&&h<=o||i<=h+vr&&h+vr<=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 mr.R:if(h=u=a[p++],d=c=a[p++],S=h+a[p++],M=d+a[p++],n){if(hr(h,d,S,d,e,i,o)||hr(S,d,S,M,e,i,o)||hr(S,M,h,M,e,i,o)||hr(h,M,h,d,e,i,o))return!0}else l=(l+=yr(S,d,S,M,i,o))+yr(h,M,h,d,i,o);break;case mr.Z:if(n){if(hr(u,c,h,d,e,i,o))return!0}else l+=yr(u,c,h,d,i,o);u=h,c=d}}return n||(t=c,r=d,Math.abs(t-r)<xr)||(l+=yr(u,c,h,d,i,o)||0),0!==l}var Ir,Or=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},Io),Tr={style:Object(l.i)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Oo.style)},Cr=Sn.concat(["invisible","culling","z","z2","zlevel","parent"]);function kr(t){return Ir.call(this,t)||this}c(kr,Ir=Lo),kr.prototype.update=function(){var t=this,e=(Ir.prototype.update.call(this),this.style);if(e.decal){var n,i=this._decalEl=this._decalEl||new kr,o=(i.buildPath===kr.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<Cr.length;++r)i[Cr[r]]=this[Cr[r]];i.__dirty|=Yt}else this._decalEl&&(this._decalEl=null)},kr.prototype.getDecalElement=function(){return this._decalEl},kr.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):Ir.prototype.attrKV.call(this,o,r)}this.style||this.useStyle({})},kr.prototype.getDefaultStyle=function(){return null},kr.prototype.getDefaultShape=function(){return{}},kr.prototype.canBeInsideText=function(){return this.hasFill()},kr.prototype.getInsideTextFill=function(){var t,e=this.style.fill;if("none"!==e){if(Object(l.C)(e))return.5<(t=Object(Oe.e)(e,0))?fn:.2<t?"#eee":gn;if(e)return gn}return fn},kr.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(l.C)(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==Object(Oe.e)(t,0)<.4)return e}},kr.prototype.buildPath=function(t,e,n){},kr.prototype.pathUpdated=function(){this.__dirty&=~Xt},kr.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},kr.prototype.createPathProxy=function(){this.path=new cr(!1)},kr.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))},kr.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},kr.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&Xt)&&(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},kr.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)),Mr(n,i/o,!0,t,e))))return!0;if(this.hasFill())return Mr(n,0,!1,t,e)}return!1},kr.prototype.dirtyShape=function(){this.__dirty|=Xt,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},kr.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},kr.prototype.animateShape=function(t){return this.animate("shape",t)},kr.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},kr.prototype.attrKV=function(t,e){"shape"===t?this.setShape(e):Ir.prototype.attrKV.call(this,t,e)},kr.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},kr.prototype.shapeChanged=function(){return!!(this.__dirty&Xt)},kr.prototype.createStyle=function(t){return Object(l.g)(Or,t)},kr.prototype._innerSaveToNormal=function(t){Ir.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.shape&&!e.shape&&(e.shape=Object(l.m)({},this.shape))},kr.prototype._applyStateObj=function(t,e,n,i,o,r){Ir.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 d=c[h];"object"==typeof a[d]?this.shape[d]=a[d]:u[d]=a[d]}this._transitionState(t,{shape:u},r)}else this.shape=a,this.dirtyShape()},kr.prototype._mergeStates=function(t){for(var e,n=Ir.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},kr.prototype.getAnimationStyleProps=function(){return Tr},kr.prototype.isZeroArea=function(){return!1},kr.extend=function(t){c(o,e=kr),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},kr.initDefaultProps=((n=kr.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=2|Yt|Xt));var Dr,Ar=kr,Lr=Object(l.i)({strokeFirst:!0,font:Tn.a,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Or);c(Pr,Dr=Lo),Pr.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth},Pr.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Pr.prototype.createStyle=function(t){return Object(l.g)(Lr,t)},Pr.prototype.setBoundingRect=function(t){this._rect=t},Pr.prototype.getBoundingRect=function(){var t,e=this.style;return this._rect||(null!=(t=e.text)?t+="":t="",(t=An(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},Pr.initDefaultProps=void(Pr.prototype.dirtyRectTolerance=10),n=Pr;function Pr(){return null!==Dr&&Dr.apply(this,arguments)||this}n.prototype.type="tspan";var jr=n,Rr=Object(l.i)({x:0,y:0},Io),Nr={style:Object(l.i)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Oo.style)};c(zr,Er=Lo),zr.prototype.createStyle=function(t){return Object(l.g)(Rr,t)},zr.prototype._getSize=function(t){var e,n=this.style,i=n[t];return null!=i?i:(i=(i=n.image)&&"string"!=typeof i&&i.width&&i.height?n.image:this.__image)?null==(e=n[n="width"===t?"height":"width"])?i[t]:i[t]/i[n]*e:0},zr.prototype.getWidth=function(){return this._getSize("width")},zr.prototype.getHeight=function(){return this._getSize("height")},zr.prototype.getAnimationStyleProps=function(){return Nr},zr.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new wt(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect};var Er;n=zr;function zr(){return null!==Er&&Er.apply(this,arguments)||this}n.prototype.type="image";var Vr=n,Br=Math.round;function Fr(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)&&(Br(2*i)===Br(2*o)&&(t.x1=t.x2=Hr(i,n,!0)),Br(2*r)===Br(2*e))&&(t.y1=t.y2=Hr(r,n,!0)),t}function Gr(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)&&(t.x=Hr(i,n,!0),t.y=Hr(o,n,!0),t.width=Math.max(Hr(i+r,n,!1)-t.x,0===r?0:1),t.height=Math.max(Hr(o+e,n,!1)-t.y,0===e?0:1)),t}function Hr(t,e,n){var i;return e?((i=Br(2*t))+Br(e))%2==0?i/2:(i+(n?1:-1))/2:t}var Wr,Yr=function(){this.x=0,this.y=0,this.width=0,this.height=0},Xr={};c(Ur,Wr=Ar),Ur.prototype.getDefaultShape=function(){return new Yr},Ur.prototype.buildPath=function(t,e){var n,i,o,r,a,s,l,u,c,h,d,p,f,g;this.subPixelOptimize?(n=(a=Gr(Xr,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,d=(e=e).x,p=e.y,(f=e.width)<0&&(d+=f,f=-f),(g=e.height)<0&&(p+=g,g=-g),"number"==typeof(e=e.r)?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(d+s,p),a.lineTo(d+f-l,p),0!==l&&a.arc(d+f-l,p+l,l,-Math.PI/2,0),a.lineTo(d+f,p+g-u),0!==u&&a.arc(d+f-u,p+g-u,u,0,Math.PI/2),a.lineTo(d+c,p+g),0!==c&&a.arc(d+c,p+g-c,c,Math.PI/2,Math.PI),a.lineTo(d,p+s),0!==s&&a.arc(d+s,p+s,s,Math.PI,1.5*Math.PI)):t.rect(n,i,o,r)},Ur.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},n=Ur;function Ur(t){return Wr.call(this,t)||this}n.prototype.type="rect";var Zr,qr=n,Kr={fill:"#000"},Qr={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},Oo.style)},$r=(c(Jr,Zr=Lo),Jr.prototype.childrenRef=function(){return this._children},Jr.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}},Jr.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):Zr.prototype.updateTransform.call(this)},Jr.prototype.getLocalTransform=function(t){var e=this.innerTransformable;return e?e.getLocalTransform(t):Zr.prototype.getLocalTransform.call(this,t)},Jr.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),Zr.prototype.getComputedTransform.call(this)},Jr.prototype._updateSubTexts=function(){var t;this._childCursor=0,aa(t=this.style),Object(l.k)(t.rich,aa),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},Jr.prototype.addSelfToZr=function(t){Zr.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=t},Jr.prototype.removeSelfFromZr=function(t){Zr.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=null},Jr.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new wt(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},Jr.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Kr},Jr.prototype.setTextContent=function(t){},Jr.prototype._mergeStyle=function(t,e){var n,i;return e&&(n=e.rich,i=t.rich||n&&{},Object(l.m)(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i)),t},Jr.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])}},Jr.prototype.getAnimationStyleProps=function(){return Qr},Jr.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},Jr.prototype._updatePlainTexts=function(){for(var t,e=this.style,n=e.font||Tn.a,i=e.padding,o=((t,e)=>{null!=t&&(t+="");var n,i=e.overflow,o=e.padding,r=e.font,a="truncate"===i,s=jn(r),u=Object(l.P)(e.lineHeight,s),c=!!e.backgroundColor,h="truncate"===e.lineOverflow,d=!1,p=e.width,f=(i=(n=null==p||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?wo(t,e.font,p,"breakAll"===i,0).lines:[]).length*u,Object(l.P)(e.height,i));if(f<i&&h&&(h=Math.floor(f/u),d=d||n.length>h,n=n.slice(0,h)),t&&a&&null!=p)for(var g=fo(p,r,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y={},m=0;m<n.length;m++)go(y,n[m],g),n[m]=y.textLine,d=d||y.isTruncated;h=f;var v=0;for(m=0;m<n.length;m++)v=Math.max(kn(n[m],r),v);return null==p&&(p=v),t=v,o&&(h+=o[0]+o[2],t+=o[1]+o[3],p+=o[1]+o[3]),{lines:n,height:f,outerWidth:t=c?p:t,outerHeight:h,lineHeight:u,calculatedLineHeight:s,contentWidth:v,contentHeight:i,width:p,isTruncated:d}})(ca(e),e),r=ha(e),a=!!e.backgroundColor,s=o.outerHeight,u=o.outerWidth,c=o.contentWidth,h=o.lines,d=o.lineHeight,p=this._defaultStyle,f=(this.isTruncated=!!o.isTruncated,e.x||0),g=e.y||0,y=e.align||p.align||"left",m=e.verticalAlign||p.verticalAlign||"top",v=f,x=Pn(g,o.contentHeight,m),_=((r||i)&&(t=Ln(f,u,y),g=Pn(g,s,m),r)&&this._renderBackground(e,e,t,g,u,s),x+=d/2,i&&(v=ua(f,y,i),"top"===m?x+=i[0]:"bottom"===m&&(x-=i[2])),0),b=(r=!1,la(("fill"in e?e:(r=!0,p)).fill)),w=(sa("stroke"in e?e.stroke:a||p.autoStroke&&!r?null:(_=2,p.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(jr),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,oa(C,e),x+=d,M&&T.setBoundingRect(new wt(Ln(C.x,c,C.textAlign),Pn(C.y,I,C.textBaseline),c,I))}},Jr.prototype._updateRichTexts=function(){for(var t=this.style,e=xo(ca(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=(this.isTruncated=!!e.isTruncated,Ln(a,i,u)),u=Pn(s,o,l),a),h=u,d=(r&&(c+=r[3],h+=r[0]),c+n),p=(ha(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=d,S=m-1,M=void 0;_<m&&(!(M=y[_]).align||"left"===M.align);)this._placeToken(M,t,v,h,b,"left",p),x-=M.width,b+=M.width,_++;for(;0<=S&&"right"===(M=y[S]).align;)this._placeToken(M,t,v,h,w,"right",p),x-=M.width,w-=M.width,S--;for(b+=(n-(b-c)-(d-w)-x)/2;_<=S;)M=y[_],this._placeToken(M,t,v,h,b+M.width/2,"center",p),b+=M.width,_++;h+=v}},Jr.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&&ha(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=ua(o,r,i),c-=t.height/2-i[0]-t.innerHeight/2),n=this._getOrCreateChild(jr),i=n.createStyle();var h=(n.useStyle(i),this._defaultStyle),d=!1,p=0,f=la(("fill"in s?s:"fill"in e?e:(d=!0,h)).fill);u=sa("stroke"in s?s.stroke:"stroke"in e?e.stroke:u||a||h.autoStroke&&!d?null:(p=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||Tn.a,i.opacity=Object(l.Q)(s.opacity,e.opacity,1),oa(i,s),u&&(i.lineWidth=Object(l.Q)(s.lineWidth,e.lineWidth,p),i.lineDash=Object(l.P)(s.lineDash,e.lineDash),i.lineDashOffset=e.lineDashOffset||0,i.stroke=u),f&&(i.fill=f),d=t.contentWidth,h=t.contentHeight;n.setBoundingRect(new wt(Ln(i.x,d,i.textAlign),Pn(i.y,h,i.textBaseline),d,h))},Jr.prototype._renderBackground=function(t,e,n,i,o,r){var a,s,u,c,h=t.backgroundColor,d=t.borderWidth,p=t.borderColor,f=h&&h.image,g=h&&!f,y=t.borderRadius,m=this;(g||t.lineHeight||d&&p)&&((a=this._getOrCreateChild(qr)).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(Vr)).onload=function(){m.dirtyStyle()},(u=s.style).image=h.image,u.x=n,u.y=i,u.width=o,u.height=r),d&&p&&((c=a.style).lineWidth=d,c.stroke=p,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)},Jr.makeFont=function(t){var e="";return(e=ra(t)?[t.fontStyle,t.fontWeight,ia(t.fontSize),t.fontFamily||"sans-serif"].join(" "):e)&&Object(l.T)(e)||t.textFont||t.font},Jr);function Jr(t){var e=Zr.call(this)||this;return e.type="text",e._children=[],e._defaultStyle=Kr,e.attr(t),e}var ta={left:!0,right:1,center:1},ea={top:1,bottom:1,middle:1},na=["fontStyle","fontWeight","fontSize","fontFamily"];function ia(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?Tn.c+"px":t+"px":t}function oa(t,e){for(var n=0;n<na.length;n++){var i=na[n],o=e[i];null!=o&&(t[i]=o)}}function ra(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function aa(t){var e;t&&(t.font=$r.makeFont(t),e=t.align,t.align=null==(e="middle"===e?"center":e)||ta[e]?e:"left",t.verticalAlign=null==(e="center"===(e=t.verticalAlign)?"middle":e)||ea[e]?e:"top",t.padding)&&(t.padding=Object(l.M)(t.padding))}function sa(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function la(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function ua(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function ca(t){return t=t.text,null!=t&&(t+=""),t}function ha(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function da(t,e,n,i){var o;i&&((o=fa(i)).dataIndex=n,o.dataType=e,o.seriesIndex=t,o.ssrType="chart","group"===i.type)&&i.traverse((function(i){i=fa(i),i.seriesIndex=t,i.dataIndex=n,i.dataType=e,i.ssrType="chart"}))}var pa=$r,fa=zi(),ga=1,ya={},ma=zi(),va=zi(),xa=0,_a=1,ba=2,wa=["emphasis","blur","select"],Sa=["normal","emphasis","blur","select"],Ma=10,Ia=9,Oa="highlight",Ta="downplay",Ca="select",ka="unselect",Da="toggleSelect";function Aa(t){return null!=t&&"none"!==t}function La(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Pa(t){La(t,"emphasis",ba)}function ja(t){t.hoverState===ba&&La(t,"normal",xa)}function Ra(t){La(t,"blur",_a)}function Na(t){t.hoverState===_a&&La(t,"normal",xa)}function Ea(t){t.selected=!0}function za(t){t.selected=!1}function Va(t,e,n){e(t,n)}function Ba(t,e,n){Va(t,e,n),t.isGroup&&t.traverse((function(t){Va(t,e,n)}))}function Fa(t,e){switch(e){case"emphasis":t.hoverState=ba;break;case"normal":t.hoverState=xa;break;case"blur":t.hoverState=_a;break;case"select":t.selected=!0}}function Ga(t,e,n){var i=0<=Object(l.r)(t.currentStates,e),o=t.style.opacity;t=i?null:((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 Ha(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 Ar&&(o=ma(n),r=e&&o.selectFill||o.normalFill,e=e&&o.selectStroke||o.normalStroke,Aa(r)||Aa(e))&&("inherit"===(o=(i=i||{}).style||{}).fill?(a=!0,i=Object(l.m)({},i),(o=Object(l.m)({},o)).fill=r):!Aa(o.fill)&&Aa(r)?(a=!0,i=Object(l.m)({},i),(o=Object(l.m)({},o)).fill=Object(Oe.d)(r)):!Aa(o.stroke)&&Aa(e)&&(a||(i=Object(l.m)({},i),o=Object(l.m)({},o)),o.stroke=Object(Oe.d)(e)),i.style=o),i&&null==i.z2&&(a||(i=Object(l.m)({},i)),r=n.z2EmphasisLift,i.z2=n.z2+(null!=r?r:Ma)),i;if("blur"===t)return Ga(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:Ia)),o}return s}function Wa(t){t.stateProxy=Ha;var e=t.getTextContent();t=t.getTextGuideLine();e&&(e.stateProxy=Ha),t&&(t.stateProxy=Ha)}function Ya(t,e){Ja(t,e)||t.__highByOuter||Ba(t,Pa)}function Xa(t,e){Ja(t,e)||t.__highByOuter||Ba(t,ja)}function Ua(t,e){t.__highByOuter|=1<<(e||0),Ba(t,Pa)}function Za(t,e){(t.__highByOuter&=~(1<<(e||0)))||Ba(t,ja)}function qa(t){Ba(t,Ra)}function Ka(t){Ba(t,Na)}function Qa(t){Ba(t,Ea)}function $a(t){Ba(t,za)}function Ja(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function ts(t){var e=t.getModel(),n=[],i=[];e.eachComponent((function(e,o){var r=va(o),a=(e="series"===e,e?t.getViewOfSeriesModel(o):t.getViewOfComponentModel(o));e||i.push(a),r.isBlured&&(a.group.traverse((function(t){Na(t)})),e)&&n.push(o),r.isBlured=!1})),Object(l.k)(i,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function es(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&&Ka(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){t.__highByOuter&&s&&"self"===e||Ra(t)})),Object(l.u)(e))u(t.getData(),e);else if(Object(l.A)(e))for(var h=Object(l.F)(e),d=0;d<h.length;d++)u(t.getData(h[d]),e[h[d]]);a.push(t),va(t).isBlured=!0}})),s.eachComponent((function(t,e){"series"!==t&&(t=i.getViewOfComponentModel(e))&&t.toggleBlurSeries&&t.toggleBlurSeries(a,!0,s)})))}function ns(t,e,n){var i;null!=t&&null!=e&&(t=n.getModel().getComponent(t,e))&&(va(t).isBlured=!0,i=n.getViewOfComponentModel(t))&&i.focusBlurEnabled&&i.group.traverse((function(t){Ra(t)}))}function is(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"===fa(a[s]).focus){r=!0;break}return{focusSelf:r,dispatchers:a}}function os(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)?Qa:$a)(e)}))}))}function rs(t,e,n){hs(t,!0),Ba(t,Wa),ss(t,e,n)}function as(t,e,n,i){i?hs(t,!1):rs(t,e,n)}function ss(t,e,n){t=fa(t),null!=e?(t.focus=e,t.blurScope=n):t.focus&&(t.focus=null)}var ls=["emphasis","blur","select"],us={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function cs(t,e,n,i){n=n||"itemStyle";for(var o=0;o<ls.length;o++){var r=ls[o],a=e.getModel([r,n]);t.ensureState(r).style=i?i(a):a[us[n]]()}}function hs(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 ds(t){return!(!t||!t.__highDownDispatcher)}function ps(t){return t=t.type,t===Ca||t===ka||t===Da}function fs(t){return t=t.type,t===Oa||t===Ta}var gs=zi();function ys(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 ms(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"),ys(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 vs(t,e,n,i,o,r){ms("update",t,e,n,i,o,r)}function xs(t,e,n,i,o,r){ms("enter",t,e,n,i,o,r)}function _s(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 bs(t,e,n,i,o,r){_s(t)||ms("leave",t,e,n,i,o,r)}function ws(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),bs(t,{style:{opacity:0}},e,n,i)}function Ss(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||ws(t,e,n,i)})):ws(t,e,n,i)}function Ms(t){gs(t).oldStyle=t.style}var Is={};function Os(t,e){for(var n=0;n<wa.length;n++){var i=wa[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 Ts(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<wa.length;c++){var h=wa[c],d=e[h];u[h]=Object(l.P)(o?o.getFormattedLabel(r,h,null,a,d&&d.get("formatter")):null,i)}return u}function Cs(t,e,n,i){n=n||Is;for(var o=t instanceof pa,r=!1,a=0;a<Sa.length;a++)if((p=e[Sa[a]])&&p.getShallow("show")){r=!0;break}var s=o?t:t.getTextContent();if(r){o||(s||(s=new pa,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var u=Ts(n,e),c=e.normal,h=!!c.getShallow("show"),d=Ds(c,i&&i.normal,n,!1,!o);for(d.text=u.normal,o||t.setTextConfig(As(c,n,!1)),a=0;a<wa.length;a++){var p,f,g,y=wa[a];(p=e[y])&&(f=s.ensureState(y),(g=!!Object(l.P)(p.getShallow("show"),h))!=h&&(f.ignore=!g),f.style=Ds(p,i&&i[y],n,!0,!o),f.style.text=u[y],o||(t.ensureState(y).textConfig=As(p,n,!0)))}s.silent=!!c.getShallow("silent"),null!=s.style.x&&(d.x=s.style.x),null!=s.style.y&&(d.y=s.style.y),s.ignore=!h,s.useStyle(d),s.dirty(),n.enableTextSetter&&(Es(s).setLabelText=function(t){t=Ts(n,e,t),Os(s,t)})}else s&&(s.ignore=!0);t.dirty()}function ks(t,e){for(var n={normal:t.getModel(e=e||"label")},i=0;i<wa.length;i++){var o=wa[i];n[o]=t.getModel([o,e])}return n}function Ds(t,e,n,i,o){var r={},a=r,s=t,u=n,c=i,h=o;u=u||Is;t=s.ecModel;var d,p,f=t&&t.option.textStyle,g=(t=>{for(var e;t&&t!==t.ecModel;){var n=(t.option||Is).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})(s);if(g)for(var y in d={},g)g.hasOwnProperty(y)&&(p=s.getModel(["rich",y]),Rs(d[y]={},p,f,u,c,h,!1,!0));return d&&(a.rich=d),(t=s.get("overflow"))&&(a.overflow=t),null!=(t=s.get("minMargin"))&&(a.margin=t),Rs(a,s,f,u,c,h,!0,!1),e&&Object(l.m)(r,e),r}function As(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 Ls=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Ps=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],js=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Rs(t,e,n,i,o,r,a,s){n=!o&&n||Is;var u=i&&i.inheritColor,c=e.getShallow("color"),h=e.getShallow("textBorderColor"),d=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!=(d=o||null!=d||s?d:i&&i.defaultOpacity)&&(t.opacity=d),o||r||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var p=0;p<Ls.length;p++){var f=Ls[p];null!=(g=Object(l.P)(e.getShallow(f),n[f]))&&(t[f]=g)}for(p=0;p<Ps.length;p++)f=Ps[p],null!=(g=e.getShallow(f))&&(t[f]=g);if(null==t.verticalAlign&&null!=(h=e.getShallow("baseline"))&&(t.verticalAlign=h),!a||!i.disableBox){for(p=0;p<js.length;p++){var g;f=js[p];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 Ns(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 Es=zi();function zs(t,e,n,i){t&&((t=Es(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 Vs(t,e,n,i,o){var r,a,s,u=Es(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?xs:vs)(t,{percent:1},i,e,null,(function(i){var l=Ui(n,u.precision,a,s,i);u.interpolatedValue=1===i?null:l,i=Ts({labelDataIndex:e,labelFetcher:o,defaultText:r?r(l):l+""},u.statesModels,l);Os(t,i)})))}var Bs=["textStyle","color"],Fs=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Gs=new pa;function Hs(){}Hs.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Bs):null)},Hs.prototype.getFont=function(){return Ns({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},Hs.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Fs.length;n++)e[Fs[n]]=this.getShallow(Fs[n]);return Gs.useStyle(e),Gs.update(),Gs.getBoundingRect()};n=Hs;var Ws=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Ys=io(Ws),Xs=(Us.prototype.getLineStyle=function(t){return Ys(this,t)},Us);function Us(){}var Zs=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],qs=io(Zs),Ks=(Qs.prototype.getItemStyle=function(t,e){return qs(this,t,e)},Qs);function Qs(){}tl.prototype.init=function(t,e,n){for(var i=3;i<arguments.length;i++);},tl.prototype.mergeOption=function(t,e){Object(l.I)(this.option,t,!0)},tl.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},tl.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},tl.prototype.getModel=function(t,e){var n=null!=t;t=n?this.parsePath(t):null;return new tl(n?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},tl.prototype.isEmpty=function(){return null==this.option},tl.prototype.restoreData=function(){},tl.prototype.clone=function(){return new this.constructor(Object(l.d)(this.option))},tl.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},tl.prototype.resolveParentPath=function(t){return t},tl.prototype.isAnimationEnabled=function(){if(!s.a.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},tl.prototype._doGet=function(t,e){var n=this.option;if(t){for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel))}return n};var $s,Js=tl;function tl(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}$i(Js),vl=Js,$s=["__\0is_clz",e++].join("_"),vl.prototype[$s]=!0,vl.isInstance=function(t){return!(!t||!t[$s])},Object(l.K)(Js,Xs),Object(l.K)(Js,Ks),Object(l.K)(Js,ro),Object(l.K)(Js,n);var el=Js,nl=Math.round(10*Math.random());function il(t){return[t||"",nl++].join("_")}function ol(t,e){return l.I(l.I({},t,!0),e,!0)}var rl="ZH",al="EN",sl=al,ll={},ul={},cl=s.a.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage||sl).toUpperCase().indexOf(rl)?rl:sl;function hl(t,e){t=t.toUpperCase(),ul[t]=new el(e),ll[t]=e}function dl(t){return ul[t]}hl(al,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),hl(rl,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var pl=1e3,fl=60*pl,gl=60*fl,yl=24*gl,ml=(e=365*yl,{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}"}),vl="{yyyy}-{MM}-{dd}",xl={year:"{yyyy}",month:"{yyyy}-{MM}",day:vl,hour:vl+" "+ml.hour,minute:vl+" "+ml.minute,second:vl+" "+ml.second,millisecond:ml.none},_l=["year","month","day","hour","minute","second","millisecond"],bl=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function wl(t,e){return"0000".substr(0,e-(t+="").length)+t}function Sl(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 Ml(t,e,n,i){t=fi(t);var o=t[Tl(n)](),r=t[Cl(n)]()+1,a=Math.floor((r-1)/3)+1,s=t[kl(n)](),l=t["get"+(n?"UTC":"")+"Day"](),u=t[Dl(n)](),c=(u-1)%12+1,h=t[Al(n)](),d=t[Ll(n)](),p=(t=t[Pl(n)](),n=12<=u?"pm":"am",n.toUpperCase()),f=(i=(i instanceof el?i:dl(i||cl)||ul[sl]).getModel("time"),i.get("month")),g=i.get("monthAbbr"),y=i.get("dayOfWeek");i=i.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,n+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,wl(o%100+"",2)).replace(/{Q}/g,a+"").replace(/{MMMM}/g,f[r-1]).replace(/{MMM}/g,g[r-1]).replace(/{MM}/g,wl(r,2)).replace(/{M}/g,r+"").replace(/{dd}/g,wl(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,y[l]).replace(/{ee}/g,i[l]).replace(/{e}/g,l+"").replace(/{HH}/g,wl(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,wl(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,wl(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,wl(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,wl(t,3)).replace(/{S}/g,t+"")}function Il(t,e){t=fi(t);var n=t[Cl(e)]()+1,i=t[kl(e)](),o=t[Dl(e)](),r=t[Al(e)](),a=t[Ll(e)]();t=0===t[Pl(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 Ol(t,e,n){var i=l.z(t)?fi(t):t;switch(e=e||Il(t,n)){case"year":return i[Tl(n)]();case"half-year":return 6<=i[Cl(n)]()?1:0;case"quarter":return Math.floor((i[Cl(n)]()+1)/4);case"month":return i[Cl(n)]();case"day":return i[kl(n)]();case"half-day":return i[Dl(n)]()/24;case"hour":return i[Dl(n)]();case"minute":return i[Al(n)]();case"second":return i[Ll(n)]();case"millisecond":return i[Pl(n)]()}}function Tl(t){return t?"getUTCFullYear":"getFullYear"}function Cl(t){return t?"getUTCMonth":"getMonth"}function kl(t){return t?"getUTCDate":"getDate"}function Dl(t){return t?"getUTCHours":"getHours"}function Al(t){return t?"getUTCMinutes":"getMinutes"}function Ll(t){return t?"getUTCSeconds":"getSeconds"}function Pl(t){return t?"getUTCMilliseconds":"getMilliseconds"}function jl(t){return t?"setUTCMonth":"setMonth"}function Rl(t){return t?"setUTCDate":"setDate"}function Nl(t){return t?"setUTCHours":"setHours"}function El(t){return t?"setUTCMinutes":"setMinutes"}function zl(t){return t?"setUTCSeconds":"setSeconds"}function Vl(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Bl(t){var e;return _i(t)?(e=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<e.length?"."+e[1]:""):l.C(t)?t:"-"}function Fl(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 Gl=l.M;function Hl(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){r=r?fi(t):t;if(!isNaN(+r))return Ml(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+"":"-":o(r=xi(t))?Bl(r):l.D(t)?i(t):"boolean"==typeof t?t+"":"-"}function Wl(t,e){return"{"+t+(null==e?"":e)+"}"}var Yl=["a","b","c","d","e","f","g"];function Xl(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=Yl[r];t=t.replace(Wl(a),Wl(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(Wl(Yl[u],s),n?G(c):c)}return t}function Ul(t,e){return e=e||"transparent",l.C(t)?t:l.A(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Zl(t,e){var n;"_blank"===e||"blank"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}var ql=l.k,Kl=["left","right","top","bottom","width","height"],Ql=[["width","left","right"],["height","top","bottom"]];function $l(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,d,p=l.getBoundingRect();u=e.childAt(u+1),u=u&&u.getBoundingRect();s="horizontal"===t?(h=p.width+(u?-u.x+p.x:0),i<(c=r+h)||l.newline?(r=0,c=h,a+=s+n,p.height):Math.max(s,p.height)):(h=p.height+(u?-u.y+p.y:0),o<(d=a+h)||l.newline?(r+=s+n,a=0,d=h,p.width):Math.max(s,p.width)),l.newline||(l.x=r,l.y=a,l.markRedraw(),"horizontal"===t?r=c+n:a=d+n)}))}var Jl=$l;function tu(t,e,n){n=Gl(n||0);var i=e.width,o=e.height,r=oi(t.left,i),a=oi(t.top,o),s=(e=oi(t.right,i),oi(t.bottom,o)),l=oi(t.width,i),u=oi(t.height,o),c=n[2]+n[0],h=n[1]+n[3],d=t.aspect;switch(isNaN(l)&&(l=i-e-h-r),isNaN(u)&&(u=o-s-c-a),null!=d&&(isNaN(l)&&isNaN(u)&&(i/o<d?l=.8*i:u=.8*o),isNaN(l)&&(l=d*u),isNaN(u))&&(u=l/d),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)),d=new wt(r+n[3],a+n[0],l,u),d.margin=n,d}function eu(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 wt(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=tu(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 nu(t){return t=t.layoutMode||t.constructor.layoutMode,l.A(t)?t:t?{type:t}:null}function iu(t,e,n){var i=n&&n.ignoreSize,o=(n=(l.t(i)||(i=[i,i]),r(Ql[0],0)),r(Ql[1],1));function r(n,o){var r={},l=0,u={},c=0;if(ql(n,(function(e){u[e]=t[e]})),ql(n,(function(t){a(e,t)&&(r[t]=u[t]=e[t]),s(r,t)&&l++,s(u,t)&&c++})),i[o])s(e,n[1])?u[n[2]]=null:s(e,n[2])&&(u[n[1]]=null);else if(2!==c&&l){if(!(2<=l))for(var h=0;h<n.length;h++){var d=n[h];if(!a(r,d)&&a(t,d)){r[d]=t[d];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){ql(t,(function(t){e[t]=n[t]}))}u(Ql[0],t,n),u(Ql[1],t,o)}function ou(t){return ru({},t)}function ru(t,e){return e&&t&&ql(Kl,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}l.h($l,"vertical"),l.h($l,"horizontal");var au,su,lu,uu,cu=zi(),hu=(a(du,au=el),du.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},du.prototype.mergeDefaultAndTheme=function(t,e){var n=nu(this),i=n?ou(t):{};e=e.getTheme();l.I(t,e.get(this.mainType)),l.I(t,this.getDefaultOption()),n&&iu(t,i,n)},du.prototype.mergeOption=function(t,e){l.I(this.option,t,!0);var n=nu(this);n&&iu(this.option,t,n)},du.prototype.optionUpdated=function(t,e){},du.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[Ki])return t.defaultOption;var e=cu(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},du.prototype.getReferringComponents=function(t,e){var n=t+"Id";return Wi(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(n,!0)},e)},du.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")}},du.prototype.getZLevelKey=function(){return""},du.prototype.setZLevel=function(t){this.option.zlevel=t},du.protoInitialize=((Xs=du.prototype).type="component",Xs.id="",Xs.name="",Xs.mainType="",Xs.subType="",void(Xs.componentIndex=0)),du);function du(t,e,n){return t=au.call(this,t,e,n)||this,t.uid=il("ec_cpt_model"),t}function pu(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}Ji(hu,el),no(hu),lu={},(su=hu).registerSubTypeDefaulter=function(t,e){t=Qi(t),lu[t.main]=e},su.determineSubType=function(t,e){var n,i=e.type;return i||(n=Qi(t).main,su.hasSubTypes(t)&&lu[n]&&(i=lu[n](e))),i},uu=function(t){var e=[];return l.k(hu.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=l.H(e,(function(t){return Qi(t).main})),"dataset"!==t&&l.r(e,"dataset")<=0&&e.unshift("dataset"),e},hu.topologicalTravel=function(t,e,n,i){if(t.length){o=e,r={},a=[],l.k(o,(function(t){var e,n,i=pu(r,t),s=i.originalDeps=uu(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=pu(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(),d=s[h],p=!!c[h];p&&(n.call(i,h,d.originalDeps.slice()),delete c[h]),l.k(d.successor,p?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 fu=hu,gu=(Ks="",ro=("undefined"!=typeof navigator&&(Ks=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:ro,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ro,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ro,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ro,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ro,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ro,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Ks.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}),yu=Object(l.f)(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),mu="original",vu="arrayRows",xu="objectRows",_u="keyedColumns",bu="typedArray",wu="unknown",Su="column",Mu="row",Iu={Must:1,Might:2,Not:3},Ou=zi();function Tu(t,e,n){var i,o,r,a,s,u={},c=ku(e);return c&&t&&(i=[],o=[],e=e.ecModel,e=Ou(e).datasetMap,c=c.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=d(e)),u[e.name]=[]})),s=e.get(c)||e.set(c,{categoryWayDim:a,valueWayDim:0}),Object(l.k)(t,(function(t,e){var n,a=t.name;t=d(t);null==r?(n=s.valueWayDim,h(u[a],n,t),h(o,n,t),s.valueWayDim+=t):r===e?(h(u[a],0,t),h(i,0,t)):(n=s.categoryWayDim,h(u[a],n,t),h(o,n,t),s.categoryWayDim+=t)})),i.length&&(u.itemName=i),o.length)&&(u.seriesName=o),u;function h(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function d(t){return t=t.dimsDef,t?t.length:1}}function Cu(t,e,n){var i,o,r,a={};return ku(t)&&(i=e.sourceFormat,o=e.dimensionsDefine,i!==xu&&i!==_u||Object(l.k)(o,(function(t,e){"name"===(Object(l.A)(t)?t.name:t)&&(r=e)})),t=(()=>{for(var t={},a={},s=[],l=0,u=Math.min(5,n);l<u;l++){var c=Au(e.data,i,e.seriesLayoutBy,o,e.startIndex,l),h=(s.push(c),c===Iu.Not);if(h&&null==t.v&&l!==r&&(t.v=l),null!=t.n&&t.n!==t.v&&(h||s[t.n]!==Iu.Not)||(t.n=l),d(t)&&s[t.n]!==Iu.Not)return t;h||(c===Iu.Might&&null==a.v&&l!==r&&(a.v=l),null!=a.n&&a.n!==a.v)||(a.n=l)}function d(t){return null!=t.v&&null!=t.n}return d(t)?t:d(a)?a:null})())&&(a.value=[t.v],t=null!=r?r:t.n,a.itemName=[t],a.seriesName=[t]),a}function ku(t){if(!t.get("data",!0))return Wi(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Gi).models[0]}function Du(t,e){return Au(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Au(t,e,n,i,o,r){var a,s,u;if(!Object(l.E)(t)){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?Iu.Must:Iu.Not;if(e===vu){var c=t;if(n===Mu){for(var h=c[r],d=0;d<(h||[]).length&&d<5;d++)if(null!=(a=v(h[o+d])))return a}else for(d=0;d<c.length&&d<5;d++){var p=c[o+d];if(p&&null!=(a=v(p[r])))return a}}else if(e===xu){var f=t;if(!s)return Iu.Not;for(d=0;d<f.length&&d<5;d++)if((y=f[d])&&null!=(a=v(y[s])))return a}else if(e===_u){if(!s)return Iu.Not;if(!(h=t[s])||Object(l.E)(h))return Iu.Not;for(d=0;d<h.length&&d<5;d++)if(null!=(a=v(h[d])))return a}else if(e===mu){var g=t;for(d=0;d<g.length&&d<5;d++){var y,m=ki(y=g[d]);if(!Object(l.t)(m))return Iu.Not;if(null!=(a=v(m[r])))return a}}}return Iu.Not;function v(t){var e=Object(l.C)(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?Iu.Might:Iu.Not:e&&"-"!==t?Iu.Must:void 0}}var Lu,Pu,ju,Ru=Object(l.f)(),Nu=zi(),Eu=zi(),zu=(Vu.prototype.getColorFromPalette=function(t,e,n){var i=Oi(this.get("color",!0)),o=this.get("colorLayer",!0);return Fu(this,Nu,i,o,t,e,n)},Vu.prototype.clearColorPalette=function(){var t,e;(e=Nu)(t=this).paletteIdx=0,e(t).paletteNameMap={}},Vu);function Vu(){}function Bu(t,e,n,i){var o=Oi(t.get(["aria","decal","decals"]));return Fu(t,Eu,o,null,e,n,i)}function Fu(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=(i=null!=a&&i?((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.length?(a=i[t],o&&(r[o]=a),e.paletteIdx=(t+1)%i.length,a):void 0}function Gu(t){throw new Error(t)}var Hu="\0_ec_inner";a(Yu,Wu=el),Yu.prototype.init=function(t,e,n,i,o,r){i=i||{},this.option=null,this._theme=new el(i),this._locale=new el(o),this._optionManager=r},Yu.prototype.setOption=function(t,e,n){e=Zu(e),this._optionManager.setOption(t,n,e),this._resetOption(null,e)},Yu.prototype.resetOption=function(t,e){return this._resetOption(t,Zu(e))},Yu.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)):ju(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},Yu.prototype.mergeOption=function(t){this._mergeOption(t,null)},Yu.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,o=this._componentsCount,r=[],a=Object(l.f)(),s=e&&e.replaceMergeMainTypeMap;Ou(this).datasetMap=Object(l.f)(),Object(l.k)(t,(function(t,e){null!=t&&(fu.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){fu.hasClass(e)&&!a.get(e)&&(r.push(e),a.set(e,!0))})),fu.topologicalTravel(r,fu.getAllClassMainTypes(),(function(e){var r,a=((t,e,n)=>(e=(e=Ru.get(e))&&e(t))?n.concat(e):n)(this,e,Oi(t[e])),u=i.get(e),c=u?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",h=(u=Di(u,a,c),Ni(u,e,fu),n[e]=null,i.set(e,null),o.set(e,0),[]),d=[],p=0;Object(l.k)(u,(function(t,n){var i=t.existing,o=t.newOption;if(o){var a=fu.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),d.push(i),p++):(h.push(void 0),d.push(void 0))}),this),n[e]=h,i.set(e,d),o.set(e,p),"series"===e&&Lu(this)}),this),this._seriesIndices||Lu(this)},Yu.prototype.getOption=function(){var t=Object(l.d)(this.option);return Object(l.k)(t,(function(e,n){if(fu.hasClass(n)){for(var i=Oi(e),o=i.length,r=!1,a=o-1;0<=a;a--)i[a]&&!Ri(i[a])?r=!0:(i[a]=null,r||o--);i.length=o,t[n]=i}})),delete t[Hu],t},Yu.prototype.getTheme=function(){return this._theme},Yu.prototype.getLocaleModel=function(){return this._locale},Yu.prototype.setUpdatePayload=function(t){this._payload=t},Yu.prototype.getUpdatePayload=function(){return this._payload},Yu.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]}},Yu.prototype.queryComponents=function(t){var e,n,i,o,r,a=t.mainType;return a&&(e=t.index,n=t.id,i=t.name,o=this._componentsMap.get(a))&&o.length?(null!=e?(r=[],Object(l.k)(Oi(e),(function(t){o[t]&&r.push(o[t])}))):r=null!=n?Xu("id",n,o):null!=i?Xu("name",i,o):Object(l.n)(o,(function(t){return!!t})),Uu(r,t)):[]},Yu.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=Uu(r,t),t.filter?Object(l.n)(n,t.filter):n},Yu.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)}},Yu.prototype.getSeriesByName=function(t){var e=Pi(t,null);return Object(l.n)(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},Yu.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},Yu.prototype.getSeriesByType=function(t){return Object(l.n)(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},Yu.prototype.getSeries=function(){return Object(l.n)(this._componentsMap.get("series"),(function(t){return!!t}))},Yu.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},Yu.prototype.eachSeries=function(t,e){Pu(this),Object(l.k)(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)}),this)},Yu.prototype.eachRawSeries=function(t,e){Object(l.k)(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},Yu.prototype.eachSeriesByType=function(t,e,n){Pu(this),Object(l.k)(this._seriesIndices,(function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&e.call(n,o,i)}),this)},Yu.prototype.eachRawSeriesByType=function(t,e,n){return Object(l.k)(this.getSeriesByType(t),e,n)},Yu.prototype.isSeriesFiltered=function(t){return Pu(this),null==this._seriesIndicesMap.get(t.componentIndex)},Yu.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},Yu.prototype.filterSeries=function(t,e){Pu(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)},Yu.prototype.restoreData=function(t){Lu(this);var e=this._componentsMap,n=[];e.each((function(t,e){fu.hasClass(e)&&n.push(e)})),fu.topologicalTravel(n,fu.getAllClassMainTypes(),(function(n){Object(l.k)(e.get(n),(function(e){!e||"series"===n&&((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()}))}))},Yu.internalField=(Lu=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)},Pu=function(t){},void(ju=function(t,e){t.option={},t.option[Hu]=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||fu.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,gu,!1),t._mergeOption(e,null)}));var Wu;n=Yu;function Yu(){return null!==Wu&&Wu.apply(this,arguments)||this}function Xu(t,e,n){var i,o;return Object(l.t)(e)?(i=Object(l.f)(),Object(l.k)(e,(function(t){null!=t&&null!=Pi(t,null)&&i.set(t,!0)})),Object(l.n)(n,(function(e){return e&&i.get(e[t])}))):(o=Pi(e,null),Object(l.n)(n,(function(e){return e&&null!=o&&e[t]===o})))}function Uu(t,e){return e.hasOwnProperty("subType")?Object(l.n)(t,(function(t){return t&&t.subType===e.subType})):t}function Zu(t){var e=Object(l.f)();return t&&Object(l.k)(Oi(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}function qu(t){l.k(Qu,(function(e){this[e]=l.c(t[e],t)}),this)}Object(l.K)(n,zu);var Ku=n,Qu=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],$u={};function Ju(){this._coordinateSystems=[]}Ju.prototype.create=function(t,e){var n=[];l.k($u,(function(i,o){i=i.create(t,e),n=n.concat(i||[])})),this._coordinateSystems=n},Ju.prototype.update=function(t,e){l.k(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},Ju.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},Ju.register=function(t,e){$u[t]=e},Ju.get=function(t){return $u[t]};var tc=Ju,ec=/^(min|max)?(.+)$/;function nc(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}nc.prototype.setOption=function(t,e,n){t&&(Object(l.k)(Oi(t.series),(function(t){t&&t.data&&Object(l.E)(t.data)&&Object(l.R)(t.data)})),Object(l.k)(Oi(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=((t,e,n)=>{var i,o,r=[],a=t.baseOption,s=t.timeline,u=t.options,c=t.media,h=!!t.media,d=!!(u||s||a&&a.timeline);function p(t){Object(l.k)(e,(function(e){e(t,n)}))}return a?(o=a).timeline||(o.timeline=s):((d||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)})),p(o),Object(l.k)(u,p),Object(l.k)(r,(function(t){return p(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},nc.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)},nc.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;return n.length&&(t=t.getComponent("timeline"))?Object(l.d)(n[t.getCurrentIndex()]):e},nc.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){for(var s,u,c=0,h=i.length;c<h;c++)((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(ec);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);(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}return a};var ic=nc,oc=l.k,rc=l.A,ac=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function sc(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=ac.length;n<i;n++){var o=ac[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 lc(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 uc(t){lc(t,"itemStyle"),lc(t,"lineStyle"),lc(t,"areaStyle"),lc(t,"label"),lc(t,"labelLine"),lc(t,"upperLabel"),lc(t,"edgeLabel")}function cc(t,e){var n=rc(t)&&t[e],i=rc(n)&&n.textStyle;if(i)for(var o=0,r=Ci.length;o<r;o++){var a=Ci[o];i.hasOwnProperty(a)&&(n[a]=i[a])}}function hc(t){t&&(uc(t),cc(t,"label"),t.emphasis)&&cc(t.emphasis,"label")}function dc(t){return l.t(t)?t:t?[t]:[]}function pc(t){return(l.t(t)?t[0]:t)||{}}function fc(t,e){oc(dc(t.series),(function(t){if(rc(t)&&rc(t)){sc(t),uc(t),cc(t,"label"),cc(t,"upperLabel"),cc(t,"edgeLabel"),t.emphasis&&(cc(t.emphasis,"label"),cc(t.emphasis,"upperLabel"),cc(t.emphasis,"edgeLabel"));var e=t.markPoint,n=(e&&(sc(e),hc(e)),t.markLine),i=(n&&(sc(n),hc(n)),t.markArea),o=(i&&hc(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++)hc(r[a]);l.k(t.categories,(function(t){uc(t)}))}if(o&&!l.E(o))for(a=0;a<o.length;a++)hc(o[a]);if((e=t.markPoint)&&e.data){var s=e.data;for(a=0;a<s.length;a++)hc(s[a])}if((n=t.markLine)&&n.data){var u=n.data;for(a=0;a<u.length;a++)l.t(u[a])?(hc(u[a][0]),hc(u[a][1])):hc(u[a])}"gauge"===t.type?(cc(t,"axisLabel"),cc(t,"title"),cc(t,"detail")):"treemap"===t.type?(lc(t.breadcrumb,"itemStyle"),l.k(t.levels,(function(t){uc(t)}))):"tree"===t.type&&uc(t.leaves)}}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),oc(n,(function(e){oc(dc(t[e]),(function(t){t&&(cc(t,"axisLabel"),cc(t.axisPointer,"label"))}))})),oc(dc(t.parallel),(function(t){t=t&&t.parallelAxisDefault,cc(t,"axisLabel"),cc(t&&t.axisPointer,"label")})),oc(dc(t.calendar),(function(t){lc(t,"itemStyle"),cc(t,"dayLabel"),cc(t,"monthLabel"),cc(t,"yearLabel")})),oc(dc(t.radar),(function(t){cc(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)})),oc(dc(t.geo),(function(t){rc(t)&&(hc(t),oc(dc(t.regions),(function(t){hc(t)})))})),oc(dc(t.timeline),(function(t){hc(t),lc(t,"label"),lc(t,"itemStyle"),lc(t,"controlStyle",!0),t=t.data,l.t(t)&&l.k(t,(function(t){l.A(t)&&(lc(t,"label"),lc(t,"itemStyle"))}))})),oc(dc(t.toolbox),(function(t){lc(t,"iconStyle"),oc(t.feature,(function(t){lc(t,"iconStyle")}))})),cc(pc(t.axisPointer),"label"),cc(pc(t.tooltip).axisPointer,"label")}function gc(t){t&&Object(l.k)(yc,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var yc=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],mc=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],vc=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function xc(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<vc.length;n++){var i=vc[n][1],o=vc[n][0];null!=e[i]&&(e[o]=e[i])}}function _c(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function bc(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function wc(t,e){fc(t,e),t.series=Oi(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),_c(t.label),(e=t.data)&&!Object(l.E)(e))for(var i=0;i<e.length;i++)_c(e[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset)}else if("gauge"===n){var o=((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,d=0;d<c.length-1;d++)null==h[r=c[d]]&&(h[r]={}),h=h[r];!u&&null!=h[c[d]]||(h[c[d]]=o)}}else if("bar"===n){if(xc(t),xc(t.backgroundStyle),xc(t.emphasis),(e=t.data)&&!Object(l.E)(e))for(i=0;i<e.length;i++)"object"==typeof e[i]&&(xc(e[i]),xc(e[i]&&e[i].emphasis))}else"sunburst"===n?((s=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),bc(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,bc)):"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),gc(t)}})),t.dataRange&&(t.visualMap=t.dataRange),Object(l.k)(mc,(function(e){e=t[e],e&&(Object(l.t)(e)||(e=[e]),Object(l.k)(e,(function(t){gc(t)})))}))}function Sc(t){Object(l.k)(t,(function(e,n){var i=[],o=[NaN,NaN],r=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(r,(function(r,u,c){var h,d,p=a.get(e.stackedDimension,c);if(isNaN(p))return o;s?d=a.getRawIndex(c):h=a.get(e.stackedByDimension,c);for(var f,g,y,m=NaN,v=n-1;0<=v;v--){var x=t[v];if(0<=(d=s?d:x.data.rawIndexOf(x.stackedByDimension,h))&&(x=x.data.getByRawIndex(x.stackResultDimension,d),"all"===l||"positive"===l&&0<x||"negative"===l&&x<0||"samesign"===l&&0<=p&&0<x||"samesign"===l&&p<=0&&x<0)){f=p,g=x,y=void 0,y=Math.max(si(f),si(g)),f+=g,p=ni<y?f:ri(f,y),m=x;break}}return i[0]=p,i[1]=m,i}))}))}var Mc,Ic,Oc=function(t){this.data=t.data||(t.sourceFormat===_u?{}:[]),this.sourceFormat=t.sourceFormat||wu,this.seriesLayoutBy=t.seriesLayoutBy||Su,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&&Du(this,n)===Iu.Must&&(i.type="ordinal")}};function Tc(t){return t instanceof Oc}function Cc(t,e,n){n=n||Dc(t);var i=e.seriesLayoutBy,o=((t,e,n,i,o)=>{var r,a;return t?(e===vu?(a=t,"auto"===i||null==i?Lc((function(t){null!=t&&"-"!==t&&(Object(l.C)(t)?null==r&&(r=1):r=0)}),n,a,10):r=Object(l.z)(i)?i:i?1:0,o||1!==r||(o=[],Lc((function(t,e){o[e]=null!=t?t+"":""}),n,a,1/0)),a=o?o.length:n===Mu?a.length:a[0]?a[0].length:null):e===xu?o=o||(t=>{for(var e,n=0;n<t.length&&!(e=t[n++]););if(e)return Object(l.F)(e)})(t):e===_u?o||(o=[],Object(l.k)(t,(function(t,e){o.push(e)}))):e===mu&&(i=ki(t[0]),a=Object(l.t)(i)&&i.length||1),{startIndex:r,dimensionsDefine:Ac(o),dimensionsDetectedCount:a}):{dimensionsDefine:Ac(o),startIndex:r,dimensionsDetectedCount:a}})(t,n,i,e.sourceHeader,e.dimensions);return new Oc({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:Object(l.d)(e)})}function kc(t){return new Oc({data:t,sourceFormat:Object(l.E)(t)?bu:mu})}function Dc(t){var e=wu;if(Object(l.E)(t))e=bu;else if(Object(l.t)(t)){0===t.length&&(e=vu);for(var n=0,i=t.length;n<i;n++){var o=t[n];if(null!=o){if(Object(l.t)(o)||Object(l.E)(o)){e=vu;break}if(Object(l.A)(o)){e=xu;break}}}}else if(Object(l.A)(t))for(var r in t)if(Object(l.q)(t,r)&&Object(l.u)(t[r])){e=_u;break}return e}function Ac(t){var e;if(t)return e=Object(l.f)(),Object(l.H)(t,(function(t,n){var i;t={name:(t=Object(l.A)(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};return null!=t.name&&(t.name+="",null==t.displayName&&(t.displayName=t.name),(i=e.get(t.name))?t.name+="-"+i.count++:e.set(t.name,{count:1})),t}))}function Lc(t,e,n,i){if(e===Mu)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 Pc(t){return t=t.sourceFormat,t===xu||t===_u}zc.prototype.getSource=function(){return this._source},zc.prototype.count=function(){return 0},zc.prototype.getItem=function(t,e){},zc.prototype.appendData=function(t){},zc.prototype.clean=function(){},zc.protoInitialize=((Js=zc.prototype).pure=!1,void(Js.persistent=!0)),zc.internalField=(Ic=function(t,e,n){var i=n.sourceFormat,o=n.seriesLayoutBy,r=n.startIndex,a=(n=n.dimensionsDefine,Mc[qc(i,o)]);Object(l.m)(t,a),i===bu?(t.getItem=jc,t.count=Nc,t.fillStorage=Rc):(a=Gc(i,o),t.getItem=Object(l.c)(a,null,e,r,n),a=Yc(i,o),t.count=Object(l.c)(a,null,e,r,n))},jc=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},Rc=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],d=0;d<c;d++){var p=o[d*r+a];(h[t+d]=p)<l&&(l=p),u<p&&(u=p)}s[0]=l,s[1]=u}},Nc=function(){return this._data?this._data.length/this._dimSize:0},(Js={})[vu+"_"+Su]={pure:!0,appendData:Vc},Js[vu+"_"+Mu]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},Js[xu]={pure:!0,appendData:Vc},Js[_u]={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])}))}},Js[mu]={appendData:Vc},Js[bu]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},void(Mc=Js));var jc,Rc,Nc,Ec=zc;function zc(t,e){t=Tc(t)?t:kc(t);var n=(this._source=t,this._data=t.data);t.sourceFormat===bu&&(this._offset=0,this._dimSize=e,this._data=n),Ic(this,n,t)}function Vc(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function Bc(t,e,n,i){return t[i]}(vl={})[vu+"_"+Su]=function(t,e,n,i){return t[i+e]},vl[vu+"_"+Mu]=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},vl[xu]=Bc,vl[_u]=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},vl[mu]=Bc;var Fc=vl;function Gc(t,e){return Fc[qc(t,e)]}function Hc(t,e,n){return t.length}(Xs={})[vu+"_"+Su]=function(t,e,n){return Math.max(0,t.length-e)},Xs[vu+"_"+Mu]=function(t,e,n){return t=t[0],t?Math.max(0,t.length-e):0},Xs[xu]=Hc,Xs[_u]=function(t,e,n){return t=t[n[0].name],t?t.length:0},Xs[mu]=Hc;var Wc=Xs;function Yc(t,e){return Wc[qc(t,e)]}function Xc(t,e,n){return t[e]}(ro={})[vu]=Xc,ro[xu]=function(t,e,n){return t[n]},ro[_u]=Xc,ro[mu]=function(t,e,n){return t=ki(t),t instanceof Array?t[e]:t},ro[bu]=Xc;var Uc=ro;function Zc(t){return Uc[t]}function qc(t,e){return t===vu?t+"_"+e:t}function Kc(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),Zc(i)(e,t,n)):(o=e,i===mu?ki(e):o)}}var Qc=/\{@(.+?)\}/g,$c=(Jc.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"]}},Jc.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)?Xl(o,n).replace(Qc,(function(e,n){var i=n.length;"["===n.charAt(0)&&"]"===n.charAt(i-1)&&(n=+n.slice(1,i-1)),i=Kc(a,t,n);return null!=(i=r&&l.t(r.interpolatedValue)&&0<=(n=a.getDimensionIndex(n))?r.interpolatedValue[n]:i)?i+"":""})):void 0},Jc.prototype.getRawValue=function(t,e){return Kc(this.getData(e),t)},Jc.prototype.formatTooltip=function(t,e,n){},Jc);function Jc(){}function th(t){var e,n;return l.A(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function eh(t){return new nh(t)}ih.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,d=Math.min(null!=r?this._dueIndex+r:1/0,this._dueEnd);if(!o&&(n||h<d)){var p=this._progress;if(Object(l.t)(p))for(var f=0;f<p.length;f++)this._doProgress(p[f],h,d,s,u);else this._doProgress(p,h,d,s,u)}this._dueIndex=d,a=null!=this._settedOutputEnd?this._settedOutputEnd:d,this._outputDueEnd=a}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},ih.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},ih.prototype._doProgress=function(t,e,n,i,o){ch.reset(e,n,i,o),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:ch.next},this.context)},ih.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},ih.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},ih.prototype.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},ih.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},ih.prototype.getUpstream=function(){return this._upstream},ih.prototype.getDownstream=function(){return this._downstream},ih.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var nh=ih;function ih(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}var oh,rh,ah,sh,lh,uh,ch=uh={reset:function(t,e,n,i){rh=t,oh=e,ah=n,sh=i,lh=Math.ceil(sh/ah),uh.next=1<ah&&0<sh?dh:hh}};function hh(){return rh<oh?rh++:null}function dh(){var t=rh%lh*ah+Math.ceil(rh/lh);t=oh<=rh?null:t<sh?t:rh;return rh++,t}function ph(t,e){return e=e&&e.type,"ordinal"===e?t:null==(t="time"!==e||Object(l.z)(t)||null==t||"-"===t?t:+fi(t))||""===t?NaN:Number(t)}var fh=Object(l.f)({number:function(t){return parseFloat(t)},time:function(t){return+fi(t)},trim:function(t){return Object(l.C)(t)?Object(l.T)(t):t}});function gh(t){return fh.get(t)}var yh={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}},mh=(vh.prototype.evaluate=function(t){return Object(l.z)(t)?this._opFn(t,this._rvalFloat):this._opFn(xi(t),this._rvalFloat)},vh);function vh(t,e){Object(l.z)(e)||Gu(""),this._opFn=yh[t],this._rvalFloat=xi(e)}_h.prototype.evaluate=function(t,e){var n=Object(l.z)(t)?t:xi(t),i=Object(l.z)(e)?e:xi(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 xh=_h;function _h(t,e){t="desc"===t,this._resultLT=t?1:-1,this._incomparable="min"===(e=null==e?t?"min":"max":e)?-1/0:1/0}wh.prototype.evaluate=function(t){var e,n=t===this._rval;return n||(e=typeof t)===this._rvalTypeof||"number"!=e&&"number"!==this._rvalTypeof||(n=xi(t)===this._rvalFloat),this._isEQ?n:!n};var bh=wh;function wh(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=xi(e)}Mh.prototype.getRawData=function(){throw new Error("not supported")},Mh.prototype.getRawDataItem=function(t){throw new Error("not supported")},Mh.prototype.cloneRawData=function(){},Mh.prototype.getDimensionInfo=function(t){},Mh.prototype.cloneAllDimensionInfo=function(){},Mh.prototype.count=function(){},Mh.prototype.retrieveValue=function(t,e){},Mh.prototype.retrieveValueFromItem=function(t,e){},Mh.prototype.convertValue=ph;var Sh=Mh;function Mh(){}function Ih(t){return Ah(t.sourceFormat)||Gu(""),t.data}function Oh(t){var e=t.sourceFormat,n=t.data;if(Ah(e)||Gu(""),e===vu){for(var i=[],o=0,r=n.length;o<r;o++)i.push(n[o].slice());return i}if(e===xu){for(i=[],o=0,r=n.length;o<r;o++)i.push(Object(l.m)({},n[o]));return i}}function Th(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 Ch(t){return Object(l.d)(t)}var kh=Object(l.f)();function Dh(t,e){var n=Oi(t);t=n.length;t||Gu("");for(var i=0,o=t;i<o;i++)e=((t,e)=>{e.length||Gu(""),Object(l.A)(t)||Gu("");var n=t.type,i=kh.get(n);return i||Gu(""),n=Object(l.H)(e,(function(t){var e=t,n=(t=i,new Sh),o=e.data,r=n.sourceFormat=e.sourceFormat,a=e.startIndex,s=(e.seriesLayoutBy!==Su&&Gu(""),[]),u={};if(d=e.dimensionsDefine)Object(l.k)(d,(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)&&Gu(""),u[n]=e)}));else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var h=Gc(r,Su),d=(t.__isBuiltIn&&(n.getRawDataItem=function(t){return h(o,a,s,t)},n.getRawData=Object(l.c)(Ih,null,e)),n.cloneRawData=Object(l.c)(Oh,null,e),Yc(r,Su)),p=(n.count=Object(l.c)(d,null,o,a,s),Zc(r)),f=(n.retrieveValue=function(t,e){return t=h(o,a,s,t),f(t,e)},n.retrieveValueFromItem=function(t,e){var n;return null!=t&&(n=s[e])?p(t,e,n.name):void 0});return n.getDimensionInfo=Object(l.c)(Th,null,s,u),n.cloneAllDimensionInfo=Object(l.c)(Ch,null,s),n})),n=Oi(i.transform({upstream:n[0],upstreamList:n,config:Object(l.d)(t.config)})),Object(l.H)(n,(function(t,n){Object(l.A)(t)||Gu(""),t.data||Gu(""),Ah(Dc(t.data))||Gu("");var i=e[0];n=i&&0===n&&!t.dimensions?((n=i.startIndex)&&(t.data=i.data.slice(0,n).concat(t.data)),{seriesLayoutBy:Su,sourceHeader:n,dimensions:i.metaRawOption.dimensions}):{seriesLayoutBy:Su,sourceHeader:0,dimensions:t.dimensions};return Cc(t.data,n,null)}))})(n[i],e),i!==o-1&&(e.length=Math.max(e.length,1));return e}function Ah(t){return t===vu||t===xu}Ks="undefined";var Lh,Ph=typeof Uint32Array==Ks?Array:Uint32Array,jh=typeof Uint16Array==Ks?Array:Uint16Array,Rh=typeof Int32Array==Ks?Array:Int32Array,Nh=(n=typeof Float64Array==Ks?Array:Float64Array,{float:n,int:Rh,ordinal:Array,number:Array,time:n});function Eh(t){return 65535<t?Ph:jh}function zh(){return[1/0,-1/0]}function Vh(t,e,n,i,o){if(n=Nh[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 Bh(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Object(l.f)()}function Fh(t,e,n,i){return ph(t[i],this._dimensions[i])}Bh.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=Lh[i.sourceFormat];this._dimValueGetter=n||o,this._rawExtent=[],Pc(i),this._dimensions=Object(l.H)(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},Bh.prototype.getProvider=function(){return this._provider},Bh.prototype.getSource=function(){return this._provider.getSource()},Bh.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 Nh[e||"float"](this._rawCount),this._rawExtent[o]=zh(),o},Bh.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]=zh()),o[t]),l=r;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},Bh.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},Bh.prototype.getDimensionProperty=function(t){return t=this._dimensions[t],t&&t.property},Bh.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]},Bh.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++)Vh(n,l,(p=i[l]).type,s,!0);for(var u=[],c=a;c<s;c++)for(var h=c-a,d=0;d<o;d++){var p=i[d],f=Lh.arrayRows.call(this,t[h]||u,p.property,h,d),g=(n[d][c]=f,r[d]);f<g[0]&&(g[0]=f),g[1]<f&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},Bh.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]=zh()),Vh(o,c,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,o,s);else for(var d=[],p=t;p<e;p++){d=i.getItem(p,d);for(var f=0;f<a;f++){var g=o[f],y=this._dimValueGetter(d,u[f],p,f);g=(g[p]=y,s[f]);y<g[0]&&(g[0]=y),g[1]<y&&(g[1]=y)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},Bh.prototype.count=function(){return this._count},Bh.prototype.get=function(t,e){return 0<=e&&e<this._count&&(t=this._chunks[t])?t[this.getRawIndex(e)]:NaN},Bh.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},Bh.prototype.getByRawIndex=function(t,e){return 0<=e&&e<this._rawCount&&(t=this._chunks[t])?t[e]:NaN},Bh.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},Bh.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},Bh.prototype.indexOfRawIndex=function(t){if(!(t>=this._rawCount||t<0)){if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,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},Bh.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],o=[];if(i){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)}o.length=s}return o},Bh.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=Eh(this._rawCount))(this.count()),o=0;o<i.length;o++)i[o]=o;return i},Bh.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),o=new(Eh(n._rawCount))(i),r=[],a=t.length,s=0,l=t[0],u=n._chunks,c=0;c<i;c++){var h=void 0,d=n.getRawIndex(c);if(0===a)h=e(c);else if(1===a)h=e(u[l][d],c);else{for(var p=0;p<a;p++)r[p]=u[t[p]][d];r[p]=c,h=e.apply(null,r)}h&&(o[s++]=d)}return s<i&&(n._indices=o),n._count=s,n._extent=[],n._updateGetRawIdx(),n},Bh.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(Eh(e._rawCount))(r),s=0,u=i[0],c=t[u][0],h=t[u][1],d=e._chunks;u=!1;if(!e._indices){var p=0;if(1===o){for(var f=d[i[0]],g=0;g<n;g++)(c<=(x=f[g])&&x<=h||isNaN(x))&&(a[s++]=p),p++;u=!0}else if(2===o){f=d[i[0]];var y=d[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++]=p),p++}u=!0}}if(!u)if(1===o)for(g=0;g<r;g++){var b=e.getRawIndex(g);(c<=(x=d[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=d[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},Bh.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},Bh.prototype.modify=function(t,e){this._updateDims(this,t,e)},Bh.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]]=zh();for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),d=0;d<r;d++)s[d]=i[e[d]][h];s[r]=c;var p=n&&n.apply(null,s);if(null!=p)for("object"!=typeof p&&(o[0]=p,p=o),u=0;u<p.length;u++){var f=e[u],g=p[u],y=l[f];f=i[f];f&&(f[h]=g),g<y[0]&&(y[0]=g),y[1]<g&&(y[1]=g)}}},Bh.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(Eh(this._rawCount))(Math.min(2*(Math.ceil(r/s)+2),r));u[a++]=l;for(var c=1;c<r-1;c+=s){for(var h=Math.min(c+s,r-1),d=Math.min(c+2*s,r),p=(d+h)/2,f=0,g=h;g<d;g++){var y=o[M=this.getRawIndex(g)];isNaN(y)||(f+=y)}f/=d-h;h=c;var m=Math.min(c+s,r),v=c-1,x=o[l],_=-1,b=h,w=-1,S=0;for(g=h;g<m;g++){var M;y=o[M=this.getRawIndex(g)];isNaN(y)?(S++,w<0&&(w=M)):_<(n=Math.abs((v-p)*(y-x)-(v-g)*(f-x)))&&(_=n,b=M)}0<S&&S<m-h&&(u[a++]=Math.min(w,b),b=Math.max(w,b)),l=u[a++]=b}return u[a++]=this.getRawIndex(r-1),i._count=a,i._indices=u,i.getRawIndex=this._getRawIdx,i},Bh.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),i=n._chunks,o=Math.floor(1/e),r=i[t],a=this.count(),s=new(Eh(this._rawCount))(2*Math.ceil(a/o)),l=0,u=0;u<a;u+=o){var c=u,h=r[this.getRawIndex(c)],d=u,p=r[this.getRawIndex(d)],f=o;a<u+o&&(f=a-u);for(var g=0;g<f;g++){var y=r[this.getRawIndex(u+g)];y<h&&(h=y,c=u+g),p<y&&(p=y,d=u+g)}var m=this.getRawIndex(c),v=this.getRawIndex(d);c<d?(s[l++]=m,s[l++]=v):(s[l++]=v,s[l++]=m)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},Bh.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]=zh(),h=new(Eh(this._rawCount))(Math.ceil(u/s)),d=0,p=0;p<u;p+=s){u-p<s&&(a.length=s=u-p);for(var f=0;f<s;f++){var g=this.getRawIndex(p+f);a[f]=l[g]}var y=n(a),m=this.getRawIndex(Math.min(p+i(a,y)||0,u-1));(l[m]=y)<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),h[d++]=m}return o._count=d,o._indices=h,o._updateGetRawIdx(),o},Bh.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)}}},Bh.prototype.getDataExtent=function(t){var e=this._chunks[t],n=zh();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]},Bh.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},Bh.prototype.clone=function(t,e){var n,i,o=new Bh,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},Bh.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)},Bh.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},Bh.prototype._getRawIdxIdentity=function(t){return t},Bh.prototype._getRawIdx=function(t){return t<this._count&&0<=t?this._indices[t]:-1},Bh.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},Bh.internalField=void(Lh={arrayRows:Fh,objectRows:function(t,e,n,i){return ph(t[e],this._dimensions[i])},keyedColumns:Fh,original:function(t,e,n,i){return t=t&&(null==t.value?t:t.value),ph(t instanceof Array?t[i]:t,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}});var Gh=Bh,Hh=(Wh.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},Wh.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,9e10<this._versionSignBase&&(this._versionSignBase=0)},Wh.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},Wh.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},Wh.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n,i,o,r,a,s=this._sourceHost,u=this._getUpstreamSourceManagers(),c=!!u.length;Xh(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)?bu:mu,[]),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?[Cc(r,{seriesLayoutBy:a,sourceHeader:n,dimensions:i},t)]:[]):(r=s,e=c?(o=(a=this._applyTransform(u)).sourceList,a.upstreamSignList):(o=[Cc(r.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(o,e)},Wh.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&&Uh(""),[]),a=[];return Object(l.k)(t,(function(t){t.prepareSource();var e=t.getSource(o||0);null==o||e||Uh(""),r.push(e),a.push(t._getVersionSign())})),i?e=Dh(i,r,n.componentIndex):null!=o&&(e=[new Oc({data:(t=r[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Object(l.d)(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:e,upstreamSignList:a}},Wh.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}},Wh.prototype.getSource=function(t){var e=this._sourceList[t=t||0];return e||(e=this._getUpstreamSourceManagers())[0]&&e[0].getSource(t)},Wh.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},Wh.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],Xh(this._sourceHost)&&i?o=i._innerGetDataStore(t,e,n):(o=new Gh).initData(new Ec(e,t.length),t),r[n]=o),o},Wh.prototype._getUpstreamSourceManagers=function(){var t,e=this._sourceHost;return Xh(e)?(t=ku(e))?[t.getSourceManager()]:[]:Object(l.H)((t=e).get("transform",!0)||t.get("fromTransformResult",!0)?Wi(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Gi).models:[],(function(t){return t.getSourceManager()}))},Wh.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;return Xh(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}},Wh);function Wh(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}function Yh(t){t.option.transform&&Object(l.R)(t.option.transform)}function Xh(t){return"series"===t.mainType}function Uh(t){throw new Error(t)}var Zh="line-height:1";function qh(t){return t=t.lineHeight,null==t?Zh:"line-height:"+G(t+"")+"px"}function Kh(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:"+G(i+"")+"px;color:"+G(n)+";font-weight:"+G(o+""),valueStyle:"font-size:"+G(a+"")+"px;color:"+G(r)+";font-weight:"+G(t+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:o},valueStyle:{fontSize:a,fill:r,fontWeight:t}}}var Qh=[0,10,20,30],$h=["","\n","\n\n","\n\n\n"];function Jh(t,e){return e.type=t,e}function td(t){return"section"===t.type}function ed(t){return td(t)?nd:id}function nd(t,e,n,i){var o,r=e.noHeader,a=(u=function t(e){var n,i,o;return td(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||td(e)&&!e.noHeader)))})),n):0}(e),{html:Qh[u],richText:$h[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 xh(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=ed(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):rd(i,s.join(""),r?n:a.html));return r?h:(c=Hl(e.header,"ordinal",t.useUTC),u=Kh(i,t.renderMode).nameStyle,r=qh(i),"richText"===t.renderMode?ad(t,c,u)+a.richText+h:rd(i,'<div style="'+u+";"+r+';">'+G(c)+"</div>"+h,n))}function id(t,e,n,i){var o,r,a,s,u,c=t.renderMode,h=e.noName,d=e.noValue,p=!e.markerType,f=e.name,g=t.useUTC,y=e.valueFormatter||t.valueFormatter||function(t){return t=Object(l.t)(t)?t:[t],Object(l.H)(t,(function(t,e){return Hl(t,Object(l.t)(r)?r[e]:r,g)}))};if(!h||!d)return o=p?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",c),f=h?"":Hl(f,"ordinal",g),r=e.valueType,y=d?[]:y(e.value,e.dataIndex),e=!p||!h,a=!p&&h,u=Kh(i,c),s=u.nameStyle,u=u.valueStyle,"richText"===c?(p?"":o)+(h?"":ad(t,f,s))+(d?"":((t,e,n,i,o)=>(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,y,e,a,u)):rd(i,(p?"":o)+(h?"":'<span style="'+s+";"+(p?"":"margin-left:2px")+'">'+G(f)+"</span>")+(d?"":((t,e,n,i)=>(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,G).join(" ")+"</span>"))(y,e,a,u)),n)}function od(t,e,n,i,o,r){if(t)return ed(t)({useUTC:o,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,r)}function rd(t,e,n){return'<div style="margin: '+n+"px 0 0;"+qh(t)+';">'+e+'<div style="clear:both"></div></div>'}function ad(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function sd(t,e){return Ul(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function ld(t,e){return t=t.get("padding"),null!=t?t:"richText"===e?[8,10]:10}cd.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},cd.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:'+G(t)+";"+(r||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+G(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)},cd.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 ud=cd;function cd(){this.richTextStyles={},this._nextStyleNameId=bi()}function hd(t){var e,n,i,o,r,a,s,u,c,h,d,p=t.series,f=t.dataIndex,g=(t=t.multipleSeries,p.getData()),y=g.mapDimensionsAll("defaultedTooltip"),m=y.length,v=p.getRawValue(f),x=Object(l.t)(v),_=sd(p,f);function b(t,e){e=s.getDimensionInfo(e),e&&!1!==e.otherDims.tooltip&&(u?d.push(Jh("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=p.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=[],d=[],r.length?Object(l.k)(r,(function(t){b(Kc(s,o,t),t)})):Object(l.k)(i,b),i=(r={inlineValues:c,inlineValueTypes:h,blocks:d}).inlineValueTypes,e=r.blocks,n=(r=r.inlineValues)[0]):m?(m=g.getDimensionInfo(y[0]),n=r=Kc(g,f,y[0]),i=m.type):n=r=x?v[0]:v,y=ji(p),m=y&&p.name||"",x=g.getName(f),v=t?m:x,Jh("section",{header:m,noHeader:t||!y,sortParam:n,blocks:[Jh("nameValue",{markerType:"item",markerColor:_,name:v,noName:!Object(l.T)(v),value:r,valueType:i,dataIndex:f})].concat(e||[])})}var dd=zi();function pd(t,e){return t.getName(e)||t.getId(e)}var fd,gd="__universalTransitionEnabled";a(yd,fd=fu),yd.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=eh({count:vd,reset:xd}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(dd(this).sourceManager=new Hh(this)).prepareSource(),t=this.getInitialData(t,n),bd(t,this),this.dataTask.context.data=t,dd(this).dataBeforeProcessed=t,md(this),this._initSelectedMapFromData(t)},yd.prototype.mergeDefaultAndTheme=function(t,e){var n=nu(this),i=n?ou(t):{},o=this.subType;fu.hasClass(o),l.I(t,e.getTheme().get(this.subType)),l.I(t,this.getDefaultOption()),Ti(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&iu(t,i,n)},yd.prototype.mergeOption=function(t,e){t=l.I(this.option,t,!0),this.fillDataTextStyle(t.data);var n=nu(this);n&&iu(this.option,t,n),n=dd(this).sourceManager,n.dirty(),n.prepareSource(),n=this.getInitialData(t,e);bd(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,dd(this).dataBeforeProcessed=n,md(this),this._initSelectedMapFromData(n)},yd.prototype.fillDataTextStyle=function(t){if(t&&!l.E(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Ti(t[n],"label",e)},yd.prototype.getInitialData=function(t,e){},yd.prototype.appendData=function(t){this.getRawData().appendData(t.data)},yd.prototype.getData=function(t){var e=Sd(this);return e?(e=e.context.data,null!=t&&e.getLinkedData?e.getLinkedData(t):e):dd(this).data},yd.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},yd.prototype.setData=function(t){var e,n=Sd(this);n&&((e=n.context).outputData=t,n!==this.dataTask)&&(e.data=t),dd(this).data=t},yd.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return l.f(t)},yd.prototype.getSourceManager=function(){return dd(this).sourceManager},yd.prototype.getSource=function(){return this.getSourceManager().getSource()},yd.prototype.getRawData=function(){return dd(this).dataBeforeProcessed},yd.prototype.getColorBy=function(){return this.get("colorBy")||"series"},yd.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},yd.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},yd.prototype.formatTooltip=function(t,e,n){return hd({series:this,dataIndex:t,multipleSeries:e})},yd.prototype.isAnimationEnabled=function(){var t=this.ecModel;return!!(!s.a.node||t&&t.ssr)&&!!(t=!((t=this.getShallow("animation"))&&this.getData().count()>this.getShallow("animationThreshold"))&&t)},yd.prototype.restoreData=function(){this.dataTask.dirty()},yd.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return zu.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},yd.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},yd.prototype.getProgressive=function(){return this.get("progressive")},yd.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},yd.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},yd.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)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var r=0;r<t.length;r++){var a=pd(o,t[r]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},yd.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)},yd.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},yd.prototype.isSelected=function(t,e){var n=this.option.selectedMap;return!!n&&(e=this.getData(e),"all"===n||n[pd(e,t)])&&!e.getItemModel(t).get(["select","disabled"])},yd.prototype.isUniversalTransitionEnabled=function(){var t;return!!this[gd]||!!(t=this.option.universalTransition)&&(!0===t||t&&t.enabled)},yd.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=pd(t,u)]=!0,this._selectedDataIndicesMap[s]=t.getRawIndex(u)}}else"single"!==i&&!0!==i||(s=pd(t,i=e[o-1]),n.selectedMap=((n={})[s]=!0,n),this._selectedDataIndicesMap=((n={})[s]=t.getRawIndex(i),n))},yd.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))},yd.registerClass=function(t){return fu.registerClass(t)},yd.protoInitialize=((Js=yd.prototype).type="series.__base__",Js.seriesIndex=0,Js.ignoreStyleOnData=!1,Js.hasSymbolVisual=!1,Js.defaultSymbol="circle",Js.visualStyleAccessPath="itemStyle",void(Js.visualDrawType="fill")),vl=yd;function yd(){var t=null!==fd&&fd.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function md(t){var e,n,i=t.name;ji(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 vd(t){return t.model.getRawData().count()}function xd(t){return t=t.model,t.setData(t.getRawData().cloneShallow()),_d}function _d(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function bd(t,e){l.k(l.e(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,l.h(wd,e))}))}function wd(t,e){return t=Sd(t),t&&t.setOutputEnd((e||this).count()),e}function Sd(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(vl,$c),l.K(vl,zu),Ji(vl,fu);var Md=vl;Id.prototype.init=function(t,e){},Id.prototype.render=function(t,e,n,i){},Id.prototype.dispose=function(t,e){},Id.prototype.updateView=function(t,e,n,i){},Id.prototype.updateLayout=function(t,e,n,i){},Id.prototype.updateVisual=function(t,e,n,i){},Id.prototype.toggleBlurSeries=function(t,e,n){},Id.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},Xs=Id;function Id(){this.group=new qn,this.uid=il("viewComponent")}$i(Xs),no(Xs);var Od=Xs;function Td(){var t=zi();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 Cd=cr.CMD,kd=[[],[],[]],Dd=Math.sqrt,Ad=Math.atan2;function Ld(t,e){if(e){for(var n,i,o,r,a=t.data,s=t.len(),l=Cd.M,u=Cd.C,c=Cd.L,h=Cd.R,d=Cd.A,p=Cd.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 p:i=2;break;case d:var y=e[4],m=e[5],v=Dd(e[0]*e[0]+e[1]*e[1]),x=Dd(e[2]*e[2]+e[3]*e[3]),_=Ad(-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=kd[o];b[0]=a[f++],b[1]=a[f++],I(b,b,e),a[g++]=b[0],a[g++]=b[1]}}t.increaseVersion()}}var Pd=Math.sqrt,jd=Math.sin,Rd=Math.cos,Nd=Math.PI;function Ed(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function zd(t,e){return(t[0]*e[0]+t[1]*e[1])/(Ed(t)*Ed(e))}function Vd(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(zd(t,e))}function Bd(t,e,n,i,o,r,a,s,l,u,c){l*=Nd/180;var h=Rd(l)*(t-n)/2+jd(l)*(e-i)/2,d=-1*jd(l)*(t-n)/2+Rd(l)*(e-i)/2,p=h*h/(a*a)+d*d/(s*s);1<p&&(a*=Pd(p),s*=Pd(p)),p=(o===r?-1:1)*Pd((a*a*(s*s)-a*a*(d*d)-s*s*(h*h))/(a*a*(d*d)+s*s*(h*h)))||0,o=p*a*d/s,p=p*-s*h/a,t=(t+n)/2+Rd(l)*o-jd(l)*p,n=(e+i)/2+jd(l)*o+Rd(l)*p,e=Vd([1,0],[(h-o)/a,(d-p)/s]),i=[(h-o)/a,(d-p)/s],h=[(-1*h-o)/a,(-1*d-p)/s],o=Vd(i,h);zd(i,h)<=-1&&(o=Nd),(o=1<=zd(i,h)?0:o)<0&&(d=Math.round(o/Nd*1e6)/1e6,o=2*Nd+d%2*Nd),c.addData(u,t,n,a,s,e,o,l,r)}var Fd=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Gd=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;c(Yd,Hd=Ar),Yd.prototype.applyTransform=function(t){};var Hd,Wd=Yd;function Yd(){return null!==Hd&&Hd.apply(this,arguments)||this}function Xd(t){return null!=t.setData}function Ud(t,e){var n=(t=>{var e=new cr;if(t){var n,i=0,o=0,r=i,a=o,s=cr.CMD,l=t.match(Fd);if(l){for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),d=void 0,p=c.match(Gd)||[],f=p.length,g=0;g<f;g++)p[g]=parseFloat(p[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+=p[y++],o+=p[y++],d=s.L,e.addData(d,i,o);break;case"L":i=p[y++],o=p[y++],d=s.L,e.addData(d,i,o);break;case"m":i+=p[y++],o+=p[y++],d=s.M,e.addData(d,i,o),r=i,a=o,h="l";break;case"M":i=p[y++],o=p[y++],d=s.M,e.addData(d,i,o),r=i,a=o,h="L";break;case"h":i+=p[y++],d=s.L,e.addData(d,i,o);break;case"H":i=p[y++],d=s.L,e.addData(d,i,o);break;case"v":o+=p[y++],d=s.L,e.addData(d,i,o);break;case"V":o=p[y++],d=s.L,e.addData(d,i,o);break;case"C":d=s.C,e.addData(d,p[y++],p[y++],p[y++],p[y++],p[y++],p[y++]),i=p[y-2],o=p[y-1];break;case"c":d=s.C,e.addData(d,p[y++]+i,p[y++]+o,p[y++]+i,p[y++]+o,p[y++]+i,p[y++]+o),i+=p[y-2],o+=p[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]),d=s.C,M=p[y++],I=p[y++],i=p[y++],o=p[y++],e.addData(d,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]),d=s.C,M=i+p[y++],I=o+p[y++],i+=p[y++],o+=p[y++],e.addData(d,m,v,M,I,i,o);break;case"Q":M=p[y++],I=p[y++],i=p[y++],o=p[y++],d=s.Q,e.addData(d,M,I,i,o);break;case"q":M=p[y++]+i,I=p[y++]+o,i+=p[y++],o+=p[y++],d=s.Q,e.addData(d,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=p[y++],o=p[y++],d=s.Q,e.addData(d,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+=p[y++],o+=p[y++],d=s.Q,e.addData(d,m,v,i,o);break;case"A":x=p[y++],_=p[y++],b=p[y++],w=p[y++],S=p[y++],Bd(M=i,I=o,i=p[y++],o=p[y++],w,S,x,_,b,d=s.A,e);break;case"a":x=p[y++],_=p[y++],b=p[y++],w=p[y++],S=p[y++],Bd(M=i,I=o,i+=p[y++],o+=p[y++],w,S,x,_,b,d=s.A,e)}}"z"!==h&&"Z"!==h||(d=s.Z,e.addData(d),i=r,o=a),n=d}e.toStatic()}}return e})(t);t=Object(l.m)({},e);return t.buildPath=function(t){var e;Xd(t)?(t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)):n.rebuildPath(e=t,1)},t.applyTransform=function(t){Ld(n,t),this.dirtyShape()},t}function Zd(t,e){return new Wd(Ud(t,e))}function qd(t,e){e=e||{};var n=new Ar;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?Ld(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 Kd,Qd=function(){this.cx=0,this.cy=0,this.r=0};c($d,Kd=Ar),$d.prototype.getDefaultShape=function(){return new Qd},$d.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},ro=$d;function $d(t){return Kd.call(this,t)||this}ro.prototype.type="circle";var Jd,tp=ro,ep=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0};c(np,Jd=Ar),np.prototype.getDefaultShape=function(){return new ep},np.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()},Ks=np;function np(t){return Jd.call(this,t)||this}Ks.prototype.type="ellipse";var ip=Ks,op=Math.PI,rp=2*op,ap=Math.sin,sp=Math.cos,lp=Math.acos,up=Math.atan2,cp=Math.abs,hp=Math.sqrt,dp=Math.max,pp=Math.min,fp=1e-4;function gp(t,e,n,i,o,r,a){var s=t-n,l=e-i,u=(a=(a?r:-r)/hp(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,d=c*c+h*h,p=(r=o-r,s=s*n-e*t,n=(h<0?-1:1)*hp(dp(0,r*r*d-s*s)),e=(s*h-c*n)/d,t=(-s*c-h*n)/d,(s*h+c*n)/d);s=(-s*c+h*n)/d,c=e-i,h=t-u,n=p-i,d=s-u;return n*n+d*d<c*c+h*h&&(e=p,t=s),{cx:e,cy:t,x0:-l,y0:-a,x1:e*(o/r-1),y1:t*(o/r-1)}}function yp(t,e){var n,i,o,r,a,s,u,c,h,d,p,f,g,y,m,v,x,_,b,w,S,M,I,O,T,C,k,D,A,L,P=dp(e.r,0),j=dp(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=cp(n-R),fp<(a=rp<v&&v%rp)&&(v=a),fp<P?rp-fp<v?(t.moveTo(i+P*sp(R),o+P*ap(R)),t.arc(i,o,P,R,n,!r),fp<j&&(t.moveTo(i+j*sp(n),o+j*ap(n)),t.arc(i,o,j,n,R,r))):(M=S=w=b=_=x=d=h=C=T=O=I=c=u=s=a=void 0,p=P*sp(R),f=P*ap(R),g=j*sp(n),y=j*ap(n),(m=fp<v)&&((e=e.cornerRadius)&&(a=(e=(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=cp(P-j)/2,I=pp(e,u),O=pp(e,c),T=pp(e,a),C=pp(e,s),x=h=dp(I,O),_=d=dp(T,C),fp<h||fp<d)&&(b=P*sp(n),w=P*ap(n),S=j*sp(R),M=j*ap(R),v<op)&&(e=((t,e,n,i,o,r,a,s)=>{var l=(s-=r)*(n-=t)-(a-=o)*(i-=e);if(!(l*l<fp))return[t+(l=(a*(e-r)-s*(t-o))/l)*n,e+l*i]})(p,f,S,M,b,w,g,y))&&(I=p-e[0],O=f-e[1],T=b-e[0],C=w-e[1],v=1/ap(lp((I*T+O*C)/(hp(I*I+O*O)*hp(T*T+C*C)))/2),I=hp(e[0]*e[0]+e[1]*e[1]),x=pp(h,(P-I)/(1+v)),_=pp(d,(j-I)/(v-1))),m?fp<x?(k=pp(u,x),D=pp(c,x),A=gp(S,M,p,f,P,k,r),L=gp(b,w,g,y,P,D,r),t.moveTo(i+A.cx+A.x0,o+A.cy+A.y0),x<h&&k===D?t.arc(i+A.cx,o+A.cy,x,up(A.y0,A.x0),up(L.y0,L.x0),!r):(0<k&&t.arc(i+A.cx,o+A.cy,k,up(A.y0,A.x0),up(A.y1,A.x1),!r),t.arc(i,o,P,up(A.cy+A.y1,A.cx+A.x1),up(L.cy+L.y1,L.cx+L.x1),!r),0<D&&t.arc(i+L.cx,o+L.cy,D,up(L.y1,L.x1),up(L.y0,L.x0),!r))):(t.moveTo(i+p,o+f),t.arc(i,o,P,R,n,!r)):t.moveTo(i+p,o+f),fp<j&&m?fp<_?(k=pp(a,_),A=gp(g,y,b,w,j,-(D=pp(s,_)),r),L=gp(p,f,S,M,j,-k,r),t.lineTo(i+A.cx+A.x0,o+A.cy+A.y0),_<d&&k===D?t.arc(i+A.cx,o+A.cy,_,up(A.y0,A.x0),up(L.y0,L.x0),!r):(0<D&&t.arc(i+A.cx,o+A.cy,D,up(A.y0,A.x0),up(A.y1,A.x1),!r),t.arc(i,o,j,up(A.cy+A.y1,A.cx+A.x1),up(L.cy+L.y1,L.cx+L.x1),r),0<k&&t.arc(i+L.cx,o+L.cy,k,up(L.y1,L.x1),up(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 mp,vp=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(xp,mp=Ar),xp.prototype.getDefaultShape=function(){return new vp},xp.prototype.buildPath=function(t,e){yp(t,e)},xp.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},n=xp;function xp(t){return mp.call(this,t)||this}n.prototype.type="sector";var _p,bp=n,wp=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0};c(Sp,_p=Ar),Sp.prototype.getDefaultShape=function(){return new wp},Sp.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)},Js=Sp;function Sp(t){return _p.call(this,t)||this}Js.prototype.type="ring";var Mp=Js;function Ip(t,e,n){var i=e.smooth,o=e.points;if(o&&2<=o.length){if(i)for(var r=((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],d=0,g=t.length;d<g;d++)O(c,c,t[d]),T(h,h,t[d]);O(c,c,i[0]),T(h,h,i[1])}for(d=0,g=t.length;d<g;d++){var m=t[d];if(n)o=t[d?d-1:g-1],r=t[(d+1)%g];else{if(0===d||d===g-1){a.push(p(t[d]));continue}o=t[d-1],r=t[d+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 Op,Tp=function(){this.points=null,this.smooth=0,this.smoothConstraint=null};c(Cp,Op=Ar),Cp.prototype.getDefaultShape=function(){return new Tp},Cp.prototype.buildPath=function(t,e){Ip(t,e,!0)},vl=Cp;function Cp(t){return Op.call(this,t)||this}vl.prototype.type="polygon";var kp,Dp=vl,Ap=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null};c(Lp,kp=Ar),Lp.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Lp.prototype.getDefaultShape=function(){return new Ap},Lp.prototype.buildPath=function(t,e){Ip(t,e,!1)},Xs=Lp;function Lp(t){return kp.call(this,t)||this}Xs.prototype.type="polyline";var Pp,jp=Xs,Rp={},Np=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};c(Ep,Pp=Ar),Ep.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Ep.prototype.getDefaultShape=function(){return new Np},Ep.prototype.buildPath=function(t,e){r=(this.subPixelOptimize?(n=(r=Fr(Rp,e,this.style)).x1,i=r.y1,o=r.x2,r):(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))},Ep.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},ro=Ep;function Ep(t){return Pp.call(this,t)||this}ro.prototype.type="line";var zp=ro,Vp=[],Bp=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Fp(t,e,n){return null!=t.cpx2||null!=t.cpy2?[(n?de:he)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?de:he)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?ve:me)(t.x1,t.cpx1,t.x2,e),(n?ve:me)(t.y1,t.cpy1,t.y2,e)]}c(Hp,Gp=Ar),Hp.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Hp.prototype.getDefaultShape=function(){return new Bp},Hp.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&&(_e(n,a,o,e,Vp),a=Vp[1],o=Vp[2],_e(i,s,r,e,Vp),s=Vp[1],r=Vp[2]),t.quadraticCurveTo(a,s,o,r)):(e<1&&(ge(n,a,l,o,e,Vp),a=Vp[1],l=Vp[2],o=Vp[3],ge(i,s,u,r,e,Vp),s=Vp[1],u=Vp[2],r=Vp[3]),t.bezierCurveTo(a,s,l,u,o,r)))},Hp.prototype.pointAt=function(t){return Fp(this.shape,t,!1)},Hp.prototype.tangentAt=function(t){return t=Fp(this.shape,t,!0),_(t,t)};var Gp;Ks=Hp;function Hp(t){return Gp.call(this,t)||this}Ks.prototype.type="bezier-curve";var Wp,Yp=Ks,Xp=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0};c(Up,Wp=Ar),Up.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Up.prototype.getDefaultShape=function(){return new Xp},Up.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)},n=Up;function Up(t){return Wp.call(this,t)||this}n.prototype.type="arc";var Zp,qp=n;function Kp(){var t=null!==Zp&&Zp.apply(this,arguments)||this;return t.type="compound",t}c(Kp,Zp=Ar),Kp.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()},Kp.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)},Kp.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},Kp.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},Kp.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ar.prototype.getBoundingRect.call(this)};var Qp=Kp;function $p(t){this.colorStops=t||[]}$p.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})};var Jp;Js=$p;function tf(t,e,n,i,o,r){return o=Jp.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(tf,Jp=Js);var ef,nf=tf;function of(t,e,n,i,o){return i=ef.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(of,ef=Js);var rf=of,af=[0,0],sf=[0,0],lf=new dt,uf=new dt;function cf(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new dt;for(n=0;n<2;n++)this._axes[n]=new dt;t&&this.fromBoundingRect(t,e)}cf.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(dt.sub(i[0],n[1],n[0]),dt.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])},cf.prototype.intersect=function(t,e){var n=!0,i=!e;return lf.set(1/0,1/0),uf.set(0,0),!this._intersectCheckOneSide(this,t,lf,uf,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,lf,uf,i,-1)&&(n=!1,i)||i||dt.copy(e,n?lf:uf),n},cf.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,af),this._getProjMinMaxOnAxis(s,e._corners,sf),af[1]<sf[0]||sf[1]<af[0]){if(a=!1,o)return a;var u=Math.abs(sf[0]-af[1]),c=Math.abs(af[0]-sf[1]);Math.min(u,c)>i.len()&&(u<c?dt.scale(i,l,-u*r):dt.scale(i,l,c*r))}else n&&(u=Math.abs(sf[0]-af[1]),c=Math.abs(af[0]-sf[1]),Math.min(u,c)<n.len())&&(u<c?dt.scale(n,l,u*r):dt.scale(n,l,-c*r))}return a},cf.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 hf,df=cf,pf=[];function ff(){var t=null!==hf&&hf.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}c(ff,hf=Lo),ff.prototype.traverse=function(t,e){t.call(e,this)},ff.prototype.useStyle=function(){this.style={}},ff.prototype.getCursor=function(){return this._cursor},ff.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},ff.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},ff.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},ff.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},ff.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},ff.prototype.getDisplayables=function(){return this._displayables},ff.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},ff.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])},ff.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},ff.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new wt(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(pf)),t.union(i)}this._rect=t}return this._rect},ff.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 gf=ff,yf=Math.max,mf=Math.min,vf={};function xf(t){return Ar.extend(t)}var _f=function(t,e){var n,i=Ud(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=Wd),o};function bf(t,e){return _f(t,e)}function wf(t,e){vf[t]=e}function Sf(t){if(vf.hasOwnProperty(t))return vf[t]}function Mf(t,e,n,i){return t=Zd(t,e),n&&("center"===i&&(n=Of(n,t.getBoundingRect())),Cf(t,n)),t}function If(t,e,n){var i=new Vr({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(Of(e,t)))}});return i}function Of(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 Tf=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 Ar(e)).createPathProxy(),e.buildPath=function(t){var e;Xd(t)&&(t.appendPath(n),e=t.getContext())&&t.rebuildPath(e,1)},e};function Cf(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}function kf(t,e){return Fr(t,t,{lineWidth:e}),t}function Df(t){return Gr(t.shape,t.shape,t.style),t}var Af=Hr;function Lf(t,e){for(var n=ot([]);t&&t!==e;)at(n,t.getLocalTransform(),n),t=t.parent;return n}function Pf(t,e,n){return e&&!Object(l.u)(e)&&(e=In.getLocalTransform(e)),I([],t,e=n?ct([],e):e)}function jf(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=Pf(["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 Rf(t){return!t.isGroup}function Nf(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){Rf(t)&&t.anid&&(o[t.anid]=t)})),i=o,e.traverse((function(t){var e,o;Rf(t)&&t.anid&&(e=i[t.anid])&&(o=r(t),t.attr(r(e)),vs(t,o,n,fa(t).dataIndex))})))}function Ef(t,e){return Object(l.H)(t,(function(t){var n=t[0];n=yf(n,e.x),n=mf(n,e.x+e.width),t=t[1],t=yf(t,e.y);return[n,mf(t,e.y+e.height)]}))}function zf(t,e){var n=yf(t.x,e.x),i=mf(t.x+t.width,e.x+e.width),o=yf(t.y,e.y);t=mf(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 Vf(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 Vr(e)):Mf(t.replace("path://",""),e,n,"center")}function Bf(t,e,n,i,o){for(var r=0,a=o[o.length-1];r<o.length;r++){var s=o[r];if(Ff(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function Ff(t,e,n,i,o,r,a,s){n-=t,i-=e,a-=o,s-=r;var l,u=a*i-n*s;return!((l=u)<=1e-6&&-1e-6<=l||(o=((l=t-o)*i-n*(t=e-r))/u)<0||1<o||(i=(l*s-a*t)/u)<0||1<i)}function Gf(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=fa(t.el);t.componentMainType=o,t.componentIndex=n,t.tooltipConfig={name:i,option:Object(l.i)({content:i,encodeHTMLContent:!0,formatterParams:r},e)}}function Hf(t,e){var n;(n=t.isGroup?e(t):n)||t.traverse(e)}function Wf(t,e){if(t)if(Object(l.t)(t))for(var n=0;n<t.length;n++)Hf(t[n],e);else Hf(t,e)}wf("circle",tp),wf("ellipse",ip),wf("sector",bp),wf("ring",Mp),wf("polygon",Dp),wf("polyline",jp),wf("rect",qr),wf("line",zp),wf("bezierCurve",Yp),wf("arc",qp);var Yf=zi(),Xf=Td();Uf.prototype.init=function(t,e){},Uf.prototype.render=function(t,e,n,i){},Uf.prototype.highlight=function(t,e,n,i){t=t.getData(i&&i.dataType),t&&qf(t,i,"emphasis")},Uf.prototype.downplay=function(t,e,n,i){t=t.getData(i&&i.dataType),t&&qf(t,i,"normal")},Uf.prototype.remove=function(t,e){this.group.removeAll()},Uf.prototype.dispose=function(t,e){},Uf.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},Uf.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},Uf.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},Uf.prototype.eachRendered=function(t){Wf(this.group,t)},Uf.markUpdateMethod=function(t,e){Yf(t).updateMethod=e},Uf.protoInitialize=void(Uf.prototype.type="chart"),vl=Uf;function Uf(){this.group=new qn,this.uid=il("viewChart"),this.renderTask=eh({plan:Kf,reset:Qf}),this.renderTask.context={view:this}}function Zf(t,e,n){t&&ds(t)&&("emphasis"===e?Ua:Za)(t,n)}function qf(t,e,n){var i,o=Ei(t,e),r=e&&null!=e.highlightKey?(e=e.highlightKey,i=null==(i=ya[e])&&ga<=32?ya[e]=ga++:i):null;null!=o?Object(l.k)(Oi(o),(function(e){Zf(t.getItemGraphicEl(e),n,r)})):t.eachItemGraphicEl((function(t){Zf(t,n,r)}))}function Kf(t){return Xf(t.model)}function Qf(t){var e=t.model,n=t.ecModel,i=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,a=(t=t.view,o&&Yf(o).updateMethod);r=r?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==r&&t[r](e,n,i,o),$f[r]}$i(vl),no(vl);var $f={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)}}},Jf=vl,tg="\0__throttleOriginMethod",eg="\0__throttleRate",ng="\0__throttleType";function ig(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 d(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];i=(new Date).getTime(),r=this,a=t;var p=s||e,f=s||n;s=null,o=i-(f?l:u)-p,clearTimeout(c),f?c=setTimeout(h,p):0<=o?h():c=setTimeout(h,-o),l=i}return e=e||0,d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function og(t,e,n,i){var o=t[e];if(o){var r=o[tg]||o;if(o[eg]!==n||o[ng]!==i){if(null==n||!i)return t[e]=r;(o=t[e]=ig(r,n,"debounce"===i))[tg]=r,o[ng]=i,o[eg]=n}return o}}function rg(t,e){var n=t[e];n&&n[tg]&&(n.clear&&n.clear(),t[e]=n[tg])}var ag=zi(),sg={itemStyle:io(Zs,!0),lineStyle:io(Ws,!0)},lg={lineStyle:"stroke",itemStyle:"fill"};function ug(t,e){return t=t.visualStyleMapper||sg[e],t||sg.itemStyle}function cg(t,e){return t=t.visualDrawType||lg[e],t||"fill"}Xs={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",o=t.getModel(i),r=ug(t,i)(o),a=(o=o.getShallow("decal"),o&&(n.setVisual("decal",o),o.dirty=!0),cg(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 hg=new el,dg=(ro={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=ug(t,n),o=e.getVisual("drawType"),{dataEach:e.hasItemOption?function(t,e){var r,a=t.getRawDataItem(e);a&&a[n]&&(hg.option=a[n],a=i(hg),r=t.ensureUniqueItemVisual(e,"style"),Object(l.m)(r,a),hg.option.decal&&(t.setItemVisual(e,"decal",hg.option.decal),hg.option.decal.dirty=!0),o in a)&&t.setItemVisual(e,"colorFromPalette",!1)}:null}}},Ks={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={}),ag(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=ag(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=cg(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 pg(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 fg(t){t.overallReset(t.ecModel,t.api,t.payload)}function gg(t){return t.overallProgress&&yg}function yg(){this.agent.dirty(),this.getDownstream().dirty()}function mg(){this.agent&&this.agent.dirty()}function vg(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function xg(t){return t.useClearVisual&&t.data.clearAllVisual(),t=t.resetDefines=Oi(t.reset(t.model,t.ecModel,t.api,t.payload)),1<t.length?Object(l.H)(t,(function(t,e){return bg(e)})):_g}pg.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){t=t.overallTask,t&&t.dirty()}))},pg.prototype.getPerformArgs=function(t,e){var n,i;if(t.__pipeline)return i=(n=this._pipelineMap.get(t.__pipeline.id)).context,{step:e=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,modBy:null!=(t=i&&i.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},pg.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},pg.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}},pg.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)}))},pg.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)},pg.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)},pg.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},pg.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},pg.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,d;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),d=r.getPerformArgs(u,i.block),h.each((function(t){t.perform(d)})),u.perform(d)&&(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},pg.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},pg.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())}))},pg.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},pg.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)||eh({plan:vg,reset:xg,count:wg}));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)},pg.prototype._createOverallStageTask=function(t,e,n,i){var o=this,r=e.overallTask=e.overallTask||eh({reset:fg}),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 d(t){var e=t.uid;e=s.set(e,a&&a.get(e)||(h=!0,eh({reset:gg,onDirty:mg})));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,d):u?u(n,i).each(d):(c=!1,Object(l.k)(n.getSeries(),d)),h&&r.dirty()},pg.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},pg.wrapStageHandler=function(t,e){return(t=Object(l.w)(t)?{overallReset:t,seriesType:(t=>{Sg=null;try{t(Mg,Ig)}catch(t){}return Sg})(t)}:t).uid=il("stageHandler"),e&&(t.visualType=e),t},n=pg;var _g=bg(0);function bg(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 wg(t){return t.data.count()}var Sg,Mg={},Ig={};function Og(t,e){for(var n in e.prototype)t[n]=l.L}function Tg(){return{axisLine:{lineStyle:{color:kg}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}}Og(Mg,Ku),Og(Ig,qu),Mg.eachSeriesByType=Mg.eachRawSeriesByType=function(t){Sg=t};var Cg=n,kg=(Js=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],vl={color:Js,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Js]},"#B9B8CE"),Dg=(Zs="#100C2A",Ws=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],n={darkMode:!0,color:Ws,backgroundColor:Zs,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:kg},pageTextStyle:{color:kg}},textStyle:{color:kg},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:kg}},dataZoom:{borderColor:"#71708A",textStyle:{color:kg},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:kg}},timeline:{lineStyle:{color:kg},label:{color:kg},controlStyle:{color:kg,borderColor:kg}},calendar:{itemStyle:{color:Zs},dayLabel:{color:kg},monthLabel:{color:kg},yearLabel:{color:kg}},timeAxis:Tg(),logAxis:Tg(),valueAxis:Tg(),categoryAxis:Tg(),line:{symbol:"circle"},graph:{color:Ws},gauge:{title:{color:kg},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:kg},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}},Js=(n.categoryAxis.splitLine.show=!(Mg.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Sg=t.subType)}),n),Ag.prototype.normalizeQuery=function(t){var e,n,i,o={},r={},a={};return l.C(t)?(e=Qi(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}},Ag.prototype.filter=function(t,e){var n,i,o,r,a,s=this.eventInfo;return!s||(n=s.targetEl,i=s.packedEvent,o=s.view,!(s=s.model))||!o||(r=e.cptQuery,a=e.dataQuery,l(r,s,"mainType")&&l(r,s,"subType")&&l(r,s,"index","componentIndex")&&l(r,s,"name")&&l(r,s,"id")&&l(a,i,"name")&&l(a,i,"dataIndex")&&l(a,i,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(t,e.otherQuery,n,i)));function l(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},Ag.prototype.afterTrigger=function(){this.eventInfo=null},Ag);function Ag(){}var Lg=["symbol","symbolSize","symbolRotate","symbolOffset"],Pg=Lg.concat(["symbolKeepAspect"]);Zs={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<Lg.length;s++){var u=Lg[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}}}},Ws={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<Pg.length;i++){var o=Pg[i],r=n.getShallow(o,!0);null!=r&&t.setItemVisual(e,o,r)}}:null}}};function jg(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 Rg(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 Ng(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 Eg(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 zg(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=Ei(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 Vg(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var Bg=Math.round(9*Math.random()),Fg="function"==typeof Object.defineProperty;function Gg(){this._id="__ec_inner_"+Bg++}Gg.prototype.get=function(t){return this._guard(t)[this._id]},Gg.prototype.set=function(t,e){return t=this._guard(t),Fg?Object.defineProperty(t,this._id,{value:e,enumerable:!1,configurable:!0}):t[this._id]=e,this},Gg.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},Gg.prototype.has=function(t){return!!this._guard(t)[this._id]},Gg.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t};n=Gg;var Hg=Ar.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()}}),Wg=Ar.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()}}),Yg=Ar.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()}}),Xg=Ar.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.x,o=e.y;e=e.width/3*2;t.moveTo(i,o),t.lineTo(i+e,o+n),t.lineTo(i,o+n/4*3),t.lineTo(i-e,o+n),t.lineTo(i,o),t.closePath()}}),Ug=(Wg={line:zp,rect:qr,roundRect:qr,square:qr,circle:tp,diamond:Wg,pin:Yg,arrow:Xg,triangle:Hg},{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}}),Zg={},qg=(Object(l.k)(Wg,(function(t,e){Zg[e]=new t})),Ar.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){t=Nn(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=Zg[o])||Zg[o="rect"],Ug[o](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n))}}));function Kg(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 Qg(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://")?If(t.slice(8),new wt(e,n,i,o),a?"center":"cover"):0===t.indexOf("path://")?Mf(t.slice(7),{},new wt(e,n,i,o),a?"center":"cover"):new qg({shape:{symbolType:t,x:e,y:n,width:i,height:o}})).__isEmptyBrush=s,a.setColor=Kg,r&&a.setColor(r),a}function $g(t){return[(t=Object(l.t)(t)?t:[+t,+t])[0]||0,t[1]||0]}function Jg(t,e){if(null!=t)return[oi((t=Object(l.t)(t)?t:[t,t])[0],e[0])||0,oi(Object(l.P)(t[1],t[0]),e[1])||0]}function ty(t){return isFinite(t)}function ey(t,e,n){for(var i,o,r,a,s,l,u,c,h,d="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),u=ty(u)?u:.5,c=ty(c)?c:.5,h=0<=h&&ty(h)?h:.5,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=ty(r)?r:0,l=ty(l)?l:1,i=ty(i)?i:0,u=ty(u)?u:0,o.createLinearGradient(r,i,l,u)),p=e.colorStops,f=0;f<p.length;f++)d.addColorStop(p[f].offset,p[f].color);return d}function ny(t){return parseInt(t,10)}function iy(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]||ny(n[i])||ny(t.style[i]))-(ny(n[r])||0)-(ny(n[e])||0)|0)}function oy(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 ry=new cr(!0);function ay(t){var e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))}function sy(t){return"string"==typeof t&&"none"!==t}function ly(t){return t=t.fill,null!=t&&"none"!==t}function uy(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 cy(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 hy(t,e,n){n=lo(e.image,e.__image,n);if(co(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 dy=["shadowBlur","shadowOffsetX","shadowOffsetY"],py=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function fy(t,e,n,i,o){var r,a=!1;if(!i&&e===(n=n||{}))return!1;!i&&e.opacity===n.opacity||(by(t,o),a=!0,r=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(r)?Io.opacity:r),!i&&e.blend===n.blend||(a||(by(t,o),a=!0),t.globalCompositeOperation=e.blend||Io.blend);for(var s=0;s<dy.length;s++){var l=dy[s];!i&&e[l]===n[l]||(a||(by(t,o),a=!0),t[l]=t.dpr*(e[l]||0))}return!i&&e.shadowColor===n.shadowColor||(a||(by(t,o),a=!0),t.shadowColor=e.shadowColor||Io.shadowColor),a}function gy(t,e,n,i,o){var r=wy(e,o.inHover),a=i?null:n&&wy(n,o.inHover)||{};if(r!==a){var s=fy(t,r,a,i,o);(i||r.fill!==a.fill)&&(s||(by(t,o),s=!0),sy(r.fill))&&(t.fillStyle=r.fill),(i||r.stroke!==a.stroke)&&(s||(by(t,o),s=!0),sy(r.stroke))&&(t.strokeStyle=r.stroke),!i&&r.opacity===a.opacity||(s||(by(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||(by(t,o),s=!0),t.lineWidth=n);for(var l=0;l<py.length;l++){var u=py[l],c=u[0];!i&&r[c]===a[c]||(s||(by(t,o),s=!0),t[c]=r[c]||u[1])}}}function yy(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 my=1,vy=2,xy=3,_y=4;function by(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function wy(t,e){return e&&t.__hoverStyle||t.style}function Sy(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)){var r=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(!a||((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&&(by(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),r&&r.length){by(t,n),t.save();for(var u=r,c=t,h=(a=n,!1),d=0;d<u.length;d++){var p=u[d];h=h||p.isZeroArea();yy(c,p),c.beginPath(),p.buildPath(c,p.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,k,D,A,L,P,j,R,N,E=(a||(l=s=!0),e instanceof Ar&&e.autoBatch&&(r=e.style,E=ly(r),f=ay(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)?(by(t,n),yy(t,e)):E||by(t,n),wy(e,n.inHover));if(e instanceof Ar)n.lastDrawType!==my&&(l=!0,n.lastDrawType=my),gy(t,e,a,l,n),E&&(n.batchFill||n.batchStroke)||t.beginPath(),o=t,r=e,G=E,C=ay(m=s),k=ly(m),D=m.strokePercent,A=D<1,L=!r.path,r.silent&&!A||!L||r.createPathProxy(),P=r.path||ry,j=r.__dirty,G||(v=m.fill,N=m.stroke,x=k&&!!v.colorStops,_=C&&!!N.colorStops,b=k&&!!v.image,w=C&&!!N.image,R=O=I=M=S=void 0,(x||_)&&(R=r.getBoundingRect()),x&&(S=j?ey(o,v,R):r.__canvasFillGradient,r.__canvasFillGradient=S),_&&(M=j?ey(o,N,R):r.__canvasStrokeGradient,r.__canvasStrokeGradient=M),b&&(I=j||!r.__canvasFillPattern?hy(o,v,r):r.__canvasFillPattern,r.__canvasFillPattern=I),w&&(O=j||!r.__canvasStrokePattern?hy(o,N,r):r.__canvasStrokePattern,r.__canvasStrokePattern=I),x?o.fillStyle=S:b&&(I?o.fillStyle=I:k=!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=oy(r))[0],F=v[1]),N=!0,(L||j&Xt)&&(P.setDPR(o.dpr),A?P.setContext(null):(P.setContext(o),N=!1),P.reset(),r.buildPath(P,r.shape,G),P.toStatic(),r.pathUpdated()),N&&P.rebuildPath(o,A?D:1),T&&(o.setLineDash(T),o.lineDashOffset=F),G||(m.strokeFirst?(C&&cy(o,m),k&&uy(o,m)):(k&&uy(o,m),C&&cy(o,m))),T&&o.setLineDash([]),E&&(n.batchFill=s.fill||"",n.batchStroke=s.stroke||"");else if(e instanceof jr)n.lastDrawType!==xy&&(l=!0,n.lastDrawType=xy),gy(t,e,a,l,n),x=t,S=e,null!=(I=(b=s).text)&&(I+=""),I&&(x.font=b.font||Tn.a,x.textAlign=b.textAlign,x.textBaseline=b.textBaseline,M=_=void 0,x.setLineDash&&b.lineDash&&(_=(S=oy(S))[0],M=S[1]),_&&(x.setLineDash(_),x.lineDashOffset=M),b.strokeFirst?(ay(b)&&x.strokeText(I,b.x,b.y),ly(b)&&x.fillText(I,b.x,b.y)):(ly(b)&&x.fillText(I,b.x,b.y),ay(b)&&x.strokeText(I,b.x,b.y)),_)&&x.setLineDash([]);else if(e instanceof Vr)n.lastDrawType!==vy&&(l=!0,n.lastDrawType=vy),w=a,O=l,fy(t,wy(e,(R=n).inHover),w&&wy(w,R.inHover),O,R),v=t,L=s,(r=(j=e).__image=lo(L.image,j.__image,j,j.onload))&&co(r)&&(N=L.x||0,P=L.y||0,A=j.getWidth(),j=j.getHeight(),D=r.width/r.height,null==A&&null!=j?A=j*D:null==j&&null!=A?j=A/D:null==A&&null==j&&(A=r.width,j=r.height),L.sWidth&&L.sHeight?(g=L.sx||0,v.drawImage(r,g,y=L.sy||0,L.sWidth,L.sHeight,N,P,A,j)):L.sx&&L.sy?(g=L.sx,v.drawImage(r,g,y=L.sy,A-g,j-y,N,P,A,j)):v.drawImage(r,N,P,A,j));else if(e.getTemporalDisplayables){n.lastDrawType!==_y&&(l=!0,n.lastDrawType=_y);var z,V,B=t,F=e,G=n,H=F.getDisplayables(),W=F.getTemporalDisplayables(),Y=(B.save(),{prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:G.viewWidth,viewHeight:G.viewHeight,inHover:G.inHover});for(z=F.getCursor(),V=H.length;z<V;z++)(X=H[z]).beforeBrush&&X.beforeBrush(),X.innerBeforeBrush(),My(B,X,Y,z===V-1),X.innerAfterBrush(),X.afterBrush&&X.afterBrush(),Y.prevEl=X;for(var X,U=0,Z=W.length;U<Z;U++)(X=W[U]).beforeBrush&&X.beforeBrush(),X.innerBeforeBrush(),My(B,X,Y,U===Z-1),X.innerAfterBrush(),X.afterBrush&&X.afterBrush(),Y.prevEl=X;F.clearTemporalDisplayables(),F.notClear=!0,B.restore()}E&&i&&by(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(n.prevEl=e).__dirty=0,e.__isRendered=!0}}else e.__dirty&=~Yt,e.__isRendered=!1}var Iy=new n,Oy=new On.a(100),Ty=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Cy(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),o="svg"===i.painter.type;t.dirty&&Iy.delete(t),e=Iy.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<Ty.length;++h){var d=a[Ty[h]];if(null!=d&&!Object(l.t)(d)&&!Object(l.C)(d)&&!Object(l.z)(d)&&"boolean"!=typeof d){c=!1;break}u.push(d)}c&&(r=u.join(",")+(o?"-svg":""),x=Oy.get(r))&&(o?s.svgElement=x:s.image=x);var p,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=(t=>{var e;return!t||"object"==typeof t&&0===t.length?[0,0]:Object(l.z)(t)?[e=Math.ceil(t),e]:(e=Object(l.H)(t,(function(t){return Math.ceil(t)})),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=(t=>Object(l.H)(t,ky))(f),v=ky(g),x=!o&&Tn.d.createCanvas(),_=o&&{tag:"g",attrs:{},key:"dcl",children:[]},b=(()=>{for(var t=1,e=0,n=m.length;e<n;++e)t=wi(t,m[e]);var i=1;for(e=0,n=y.length;e<n;++e)i=wi(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,p=x.getContext("2d")),p&&(p.clearRect(0,0,x.width,x.height),a.backgroundColor)&&(p.fillStyle=a.backgroundColor,p.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,k=0,D=0,A=0;k<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;D%2==0&&(P=.5*(1-a.symbolSize),L=k+f[T][D]*P,P=M+g[I]*P,j=f[T][D]*a.symbolSize,R=g[I]*a.symbolSize,N=A/2%y[C].length,((t,e,r,s,l)=>{var u=o?1:n;l=Qg(l,t*u,e*u,r*u,s*u,a.color,a.symbolKeepAspect);o?(t=i.painter.renderOneToVNode(l))&&_.children.push(t):Sy(p,l)})(L,P,j,R,y[C][N])),k+=f[T][D],++A,++D===f[T].length&&(D=0)}++T===f.length&&(T=0)}M+=g[I],++O,++I===g.length&&(I=0)}return c&&Oy.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,Iy.set(t,e),t.dirty=!1,e}function ky(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var Dy=new L,Ay={},Ly=(Yg={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"),Py="__pendingUpdate",jy="__needsUpdateStatus",Ry=/^[a-zA-Z0-9_]+$/,Ny="__connectUpdateStatus";function Ey(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return Vy(this,t,e);ym(this.id)}}function zy(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Vy(this,t,e)}}function Vy(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),L.prototype[e].apply(t,n)}a(Gy,By=L);var By,Fy=Gy;function Gy(){return null!==By&&By.apply(this,arguments)||this}Xg=Fy.prototype;var Hy,Wy,Yy,Xy,Uy,Zy,qy,Ky,Qy,$y,Jy,tm,em,nm,im,om,rm,am,sm,lm=(Xg.on=zy("on"),Xg.off=zy("off"),a(um,sm=L),um.prototype._onframe=function(){if(!this._disposed){am(this);var t=this._scheduler;if(this[Py]){var e=this[Py].silent;this[Ly]=!0;try{Hy(this),Xy.update.call(this,null,this[Py].updateParams)}catch(t){throw this[Ly]=!1,this[Py]=null,t}this._zr.flush(),this[Ly]=!1,this[Py]=null,Ky.call(this,e),Qy.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),Zy(this,i),t.performVisualTasks(i),nm(this,this._model,o,"remain",{}),0<(n-=+new Date-r)&&t.unfinished);t.unfinished||this._zr.flush()}}},um.prototype.getDom=function(){return this._dom},um.prototype.getId=function(){return this.id},um.prototype.getZr=function(){return this._zr},um.prototype.isSSR=function(){return this._ssr},um.prototype.setOption=function(t,e,n){if(!this[Ly])if(this._disposed)ym(this.id);else{Object(l.A)(e)&&(n=e.lazyUpdate,i=e.silent,o=e.replaceMerge,r=e.transition,e=e.notMerge),this[Ly]=!0,this._model&&!e||(e=new ic(this._api),a=this._theme,(s=this._model=new Ku).scheduler=this._scheduler,s.ssr=this._ssr,s.init(null,null,null,a,this._locale,e)),this._model.setOption(t,{replaceMerge:o},_m);var i,o,r,a,s={seriesTransition:r,optionChanged:!0};if(n)this[Py]={silent:i,updateParams:s},this[Ly]=!1,this.getZr().wakeUp();else{try{Hy(this),Xy.update.call(this,null,s)}catch(t){throw this[Py]=null,this[Ly]=!1,t}this._ssr||this._zr.flush(),this[Py]=null,this[Ly]=!1,Ky.call(this,i),Qy.call(this,i)}}},um.prototype.setTheme=function(){},um.prototype.getModel=function(){return this._model},um.prototype.getOption=function(){return this._model&&this._model.getOption()},um.prototype.getWidth=function(){return this._zr.getWidth()},um.prototype.getHeight=function(){return this._zr.getHeight()},um.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||s.a.hasGlobalWindow&&window.devicePixelRatio||1},um.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},um.prototype.renderToCanvas=function(t){return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},um.prototype.renderToSVGString=function(t){return this._zr.painter.renderToString({useViewBox:(t=t||{}).useViewBox})},um.prototype.getSvgDataURL=function(){var t,e;if(s.a.svgSupported)return e=(t=this._zr).storage.getDisplayList(),Object(l.k)(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()},um.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;ym(this.id)},um.prototype.getConnectedDataURL=function(t){var e,n,i,o,r,a,s,u,c,h,d,p,f,g,y;if(!this._disposed)return e="svg"===t.type,n=this.group,i=Math.min,o=Math.max,Im[n]?(a=r=1/0,u=s=-1/0,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio(),Object(l.k)(Mm,(function(h,d){var p;h.group===n&&(p=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:p,left:h.left,top:h.top}))})),d=(s*=h)-(r*=h),p=(u*=h)-(a*=h),f=Tn.d.createCanvas(),(g=ei(f,{renderer:e?"svg":"canvas"})).resize({width:d,height:p}),e?(y="",Object(l.k)(c,(function(t){var e=t.left-r;y+='<g transform="translate('+e+","+(t.top-a)+')">'+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 qr({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),Object(l.k)(c,(function(t){t=new Vr({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);ym(this.id)},um.prototype.convertToPixel=function(t,e){return Uy(this,"convertToPixel",t,e)},um.prototype.convertFromPixel=function(t,e){return Uy(this,"convertFromPixel",t,e)},um.prototype.containPixel=function(t,e){var n;if(!this._disposed)return t=Bi(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;ym(this.id)},um.prototype.getVisual=function(t,e){t=Bi(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?jg(n,t,e):Rg(n,e)},um.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},um.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},um.prototype._initEvents=function(){var t,e,n,i=this;Object(l.k)(gm,(function(t){function e(e){var n,o,r,a=i.getModel(),s=e.target;"globalout"===t?n={}:s&&Vg(s,(function(t){var e;t=fa(t);return t&&null!=t.dataIndex?(e=t.dataModel||a.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType,s)||{},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)(vm,(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?(zg("map","selectchanged",e,i,t),zg("pie","selectchanged",e,i,t)):"select"===t.fromAction?(zg("map","selected",e,i,t),zg("pie","selected",e,i,t)):"unselect"===t.fromAction&&(zg("map","unselected",e,i,t),zg("pie","unselected",e,i,t))}))},um.prototype.isDisposed=function(){return this._disposed},um.prototype.clear=function(){this._disposed?ym(this.id):this.setOption({series:[]},!0)},um.prototype.dispose=function(){var t,e,n;this._disposed?ym(this.id):(this._disposed=!0,this.getDom()&&Yi(this.getDom(),Tm,""),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 Mm[t.id])},um.prototype.resize=function(t){if(!this[Ly])if(this._disposed)ym(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[Py]&&(null==n&&(n=this[Py].silent),e=!0,this[Py]=null),this[Ly]=!0;try{e&&Hy(this),Xy.update.call(this,{type:"resize",animation:Object(l.m)({duration:0},t&&t.animation)})}catch(t){throw this[Ly]=!1,t}this[Ly]=!1,Ky.call(this,n),Qy.call(this,n)}}},um.prototype.showLoading=function(t,e){this._disposed?ym(this.id):(Object(l.A)(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Sm[t]&&(t=Sm[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},um.prototype.hideLoading=function(){this._disposed?ym(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},um.prototype.makeActionFromEvent=function(t){var e=Object(l.m)({},t);return e.type=vm[t.type],e},um.prototype.dispatchAction=function(t,e){var n;this._disposed?ym(this.id):(Object(l.A)(e)||(e={silent:!!e}),mm[t.type]&&this._model&&(this[Ly]?this._pendingActions.push(t):(n=e.silent,qy.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&s.a.browser.weChat&&this._throttledZrFlush(),Ky.call(this,n),Qy.call(this,n))))},um.prototype.updateLabelLayout=function(){Dy.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},um.prototype.appendData=function(t){var e;this._disposed?ym(this.id):(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},um.internalField=(Hy=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Wy(t,!0),Wy(t,!1),e.plan()},Wy=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=Qi(t.type),(u=new(e?Od.getClass(l.main,l.sub):Jf.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)}},Yy=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)(Oi(o),(function(t){t=Pi(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(fs(n))if(e instanceof Md){if(n.type===Oa&&!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=Ei(h,s),s=(Object(l.t)(s)?s[0]:s)||0;var d=h.getItemGraphicEl(s);if(!d)for(var p=h.count(),f=0;!d&&f<p;)d=h.getItemGraphicEl(f++);d?es(c,(s=fa(d)).focus,s.blurScope,u):(s=r.get(["emphasis","focus"]),r=r.get(["emphasis","blurScope"]),null!=s&&es(c,s,r,u))}}}else c=is(e.mainType,e.componentIndex,n.name,t._api),s=c.focusSelf,r=c.dispatchers,n.type===Oa&&s&&!n.notBlur&&ns(e.mainType,e.componentIndex,t._api),r&&Object(l.k)(r,(function(t){(n.type===Oa?Ua:Za)(t)}));else ps(n)&&e instanceof Md&&(u=e,r=n,t._api,ps(r)&&(i=r.dataType,o=Ei(u.getData(i),r),Object(l.t)(o)||(o=[o]),u[r.type===Da?"toggleSelect":r.type===Ca?"select":"unselect"](o,i)),os(e),rm(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)},Xy={prepareAndUpdate:function(t){Hy(this),Xy.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),Zy(this,n),r.update(n,i),cm(n),a.performVisualTasks(n,t),tm(this,n,i,t,e),r=n.get("backgroundColor")||"transparent",a=n.get("darkMode"),o.setBackgroundColor(r),null!=a&&"auto"!==a&&o.setDarkMode(a),Dy.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)})),cm(o),this._scheduler.performVisualTasks(o,t,{setDirty:!0,dirtyMap:n}),nm(this,o,r,t,{},n),Dy.trigger("afterupdate",o,r))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),Jf.markUpdateMethod(t,"updateView"),cm(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),tm(this,e,this._api,t,{}),Dy.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()})),Jf.markUpdateMethod(t,"updateVisual"),cm(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)})),Dy.trigger("afterupdate",n,this._api))},updateLayout:function(t){Xy.update.call(this,t)}},Uy=function(t,e,n,i){if(t._disposed)ym(t.id);else for(var o=t._model,r=t._coordSysMgr.getCoordinateSystems(),a=Bi(o,n),s=0;s<r.length;s++){var l=r[s];if(l[e]&&null!=(l=l[e](o,a,i)))return l}},Zy=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries((function(t){i.updateStreamModes(t,n[t.__viewId])}))},qy=function(t,e){var n,i,o=this,r=this.getModel(),a=t.type,s=t.escapeConnect,u=mm[a],c=u.actionInfo,h=(c.update||"update").split(":"),d=h.pop(),p=null!=h[0]&&Qi(h[0]),f=(h=(this[Ly]=!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=ps(t),m=fs(t);if(m&&ts(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=Fi(t)).queryOptionMap,r=r.mainTypeSpecified?i.keys()[0]:"series",Yy(o,d,e,r),rm(o)):y?(Yy(o,d,e,"series"),rm(o)):p&&Yy(o,d,e,p.main,p.sub)})),"none"!==d&&!m&&!y&&!p)try{this[Py]?(Hy(this),Xy.update.call(this,t),this[Py]=null):Xy[d].call(this,t)}catch(e){throw this[Ly]=!1,e}n=f?{type:c.event||a,escapeConnect:s,batch:g}:g[0],this[Ly]=!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)))},Ky=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();qy.call(this,n,t)}},Qy=function(t){t||this.trigger("updated")},$y=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[Py]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},Jy=function(t,e){t.on("mouseover",(function(t){var n,i,o,r,a=Vg(t.target,ds);a&&(a=a,n=t,t=e._api,i=fa(a),o=is(i.componentMainType,i.componentIndex,i.componentHighDownName,t),(r=o.dispatchers)?(o.focusSelf&&ns(i.componentMainType,i.componentIndex,t),Object(l.k)(r,(function(t){return Ya(t,n)}))):(es(i.seriesIndex,i.focus,i.blurScope,t),"self"===i.focus&&ns(i.componentMainType,i.componentIndex,t),Ya(a,n)),rm(e))})).on("mouseout",(function(t){var n,i,o=Vg(t.target,ds);o&&(o=o,n=t,ts(t=e._api),(i=is((i=fa(o)).componentMainType,i.componentIndex,i.componentHighDownName,t).dispatchers)?Object(l.k)(i,(function(t){return Xa(t,n)})):Xa(o,n),rm(e))})).on("click",(function(t){var n;t=Vg(t.target,(function(t){return null!=fa(t).dataIndex}),!0);t&&(n=t.selected?"unselect":"select",t=fa(t),e._api.dispatchAction({type:n,dataType:t.dataType,dataIndexInside:t.dataIndex,seriesIndex:t.seriesIndex,isFromClick:!0}))}))},tm=function(t,e,n,i,o){var r,a,s,u,c,h,d;c=[],d=!(h=[]),(r=e).eachComponent((function(t,e){var n=e.get("zlevel")||0,i=e.get("z")||0,o=e.getZLevelKey();d=d||!!o,("series"===t?h:c).push({zlevel:n,z:i,idx:e.componentIndex,type:t,key:o})})),d&&(Wt(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)}))),em(t,e,n,i,o),Object(l.k)(t._chartsViews,(function(t){t.__alive=!1})),nm(t,e,n,i,o),Object(l.k)(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))},em=function(t,e,n,i,o,r){Object(l.k)(r||t._componentsViews,(function(t){var o=t.__model;pm(0,t),t.render(o,e,n,i),dm(o,t),fm(o,t)}))},nm=function(t,e,n,i,o,r){var a,u,c,h,d=t._scheduler,p=(o=Object(l.m)(o||{},{updatedSeries:e.getSeries()}),Dy.trigger("series:beforeupdate",e,n,o),!1);e.eachSeries((function(e){var n,o=t._chartsMap[e.__viewId],a=(o.__alive=!0,o.renderTask);d.updatePayload(a,i),pm(0,o),r&&r.get(e.uid)&&a.dirty(),a.perform(d.getPerformArgs(a))&&(p=!0),o.group.silent=!!e.get("silent"),a=o,n=e.get("blendMode")||null,a.eachRendered((function(t){t.isGroup||(t.style.blend=n)})),os(e)})),d.unfinished=p||d.unfinished,Dy.trigger("series:layoutlabels",e,n,o),Dy.trigger("series:transition",e,n,o),e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];dm(e,n),fm(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)}))})),Dy.trigger("series:afterupdate",e,n,o)},rm=function(t){t[jy]=!0,t.getZr().wakeUp()},am=function(t){t[jy]&&(t.getZr().storage.traverse((function(t){_s(t)||hm(t)})),t[jy]=!1)},im=function(t){return a(e,n=qu),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){Ua(e,n),rm(t)},e.prototype.leaveEmphasis=function(e,n){Za(e,n),rm(t)},e.prototype.enterBlur=function(e){qa(e),rm(t)},e.prototype.leaveBlur=function(e){Ka(e),rm(t)},e.prototype.enterSelect=function(e){Qa(e),rm(t)},e.prototype.leaveSelect=function(e){$a(e),rm(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(om=function(t){function e(t,e){for(var n=0;n<t.length;n++)t[n][Ny]=e}Object(l.k)(vm,(function(n,i){t._messageCenter.on(i,(function(n){var i,o;!Im[t.group]||0===t[Ny]||n&&n.escapeConnect||(i=t.makeActionFromEvent(n),o=[],Object(l.k)(Mm,(function(e){e!==t&&e.group===t.group&&o.push(e)})),e(o,0),Object(l.k)(o,(function(t){1!==t[Ny]&&t.dispatchAction(i)})),e(o,2))}))}))})),um);function um(t,e,n){var i=sm.call(this,new Dg)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},Object(l.C)(e)&&(e=wm[e]),i._dom=t,n.ssr&&($n=function(t){t=fa(t);var e,n=t.dataIndex;if(null!=n)return(e=Object(l.f)()).set("series_index",t.seriesIndex),e.set("data_index",n),t.ssrType&&e.set("ssr_type",t.ssrType),e}),t=i._zr=ei(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:Object(l.P)(n.useDirtyRect,!1),useCoarsePointer:Object(l.P)(n.useCoarsePointer,"auto"),pointerSize:n.pointerSize}),i._ssr=n.ssr,i._throttledZrFlush=ig(Object(l.c)(t.flush,t),17),(e=Object(l.d)(e))&&wc(e,!0),i._theme=e,i._locale=(e=n.locale||cl,Object(l.C)(e)?(n=ll[e.toUpperCase()]||{},e===rl||e===al?Object(l.d)(n):Object(l.I)(Object(l.d)(n),Object(l.d)(ll[sl]),!1)):Object(l.I)(Object(l.d)(e),Object(l.d)(ll[sl]),!1)),i._coordSysMgr=new tc,n=i._api=im(i);function o(t,e){return t.__prio-e.__prio}return Wt(bm,o),Wt(xm,o),i._scheduler=new Cg(i,n,xm,bm),i._messageCenter=new Fy,i._initEvents(),i.resize=Object(l.c)(i.resize,i),t.animation.on("frame",i._onframe,i),$y(t,i),Jy(t,i),Object(l.R)(i),i}function cm(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function hm(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===ba&&t.states.emphasis?e.push("emphasis"):t.hoverState===_a&&t.states.blur&&e.push("blur"),t.useStates(e)}function dm(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 pm(t,e){e.eachRendered((function(t){var e,n;_s(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 fm(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&&(_s(t)||(t instanceof Ar&&((r=ma(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&&hm(t)))}))}Hg=lm.prototype;var gm=(Hg.on=Ey("on"),Hg.off=Ey("off"),Hg.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 ym(){}var mm={},vm={},xm=[],_m=[],bm=[],wm={},Sm={},Mm={},Im={},Om=+new Date,Tm=(new Date,"_echarts_instance_");function Cm(t,e,n){var i=!(n&&n.ssr);if(i){var o=km(t);if(o)return o}return o=new lm(t,e,n),o.id="ec_"+Om++,Mm[o.id]=o,i&&Yi(t,Tm,o.id),om(o),Dy.trigger("afterinit",o),o}function km(t){return Mm[(e=Tm,(t=t).getAttribute?t.getAttribute(e):t[e])];var e}function Dm(t,e){wm[t]=e}function Am(t){Object(l.r)(_m,t)<0&&_m.push(t)}function Lm(t,e){Em(xm,t,e,2e3)}function Pm(t,e){Dy.on(t,e)}function jm(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,vm[e]||(Object(l.b)(Ry.test(i)&&Ry.test(e)),mm[i]||(mm[i]={action:n,actionInfo:t}),vm[e]=i)}function Rm(t,e){Em(bm,t,e,3e3,"visual")}var Nm=[];function Em(t,e,n,i,o){(Object(l.w)(e)||Object(l.A)(e))&&(n=e,e=i),0<=Object(l.r)(Nm,n)||(Nm.push(n),(i=Cg.wrapStageHandler(n,o)).__prio=e,i.__raw=n,t.push(i))}function zm(t,e){Sm[t]=e}function Vm(t){var e=(t=Object(l.d)(t)).type,n=(e||Gu(""),e.split(":")),i=(2!==n.length&&Gu(""),!1);"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,kh.set(e,t)}Rm(2e3,Xs),Rm(4500,ro),Rm(4500,Ks),Rm(2e3,Zs),Rm(4500,Ws),Rm(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=Cy(n,e))})),n=i.getVisual("decal"))&&(i.getVisual("style").decal=Cy(n,e))}))})),Am(wc),Lm(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(Sc)})),zm("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 qn,o=new qr({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),r=(i.add(o),new pa({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 qr({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return i.add(a),e.showSpinner&&((n=new qp({shape:{startAngle:-dg/2,endAngle:-dg/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*dg/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*dg/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})),jm({type:Oa,event:Oa,update:Oa},l.L),jm({type:Ta,event:Ta,update:Ta},l.L),jm({type:Ca,event:Ca,update:Ca},l.L),jm({type:ka,event:ka,update:ka},l.L),jm({type:Da,event:Da,update:Da},l.L),Dm("light",vl),Dm("dark",Js);var Bm=[],Fm={registerPreprocessor:Am,registerProcessor:Lm,registerPostInit:function(t){Pm("afterinit",t)},registerPostUpdate:function(t){Pm("afterupdate",t)},registerUpdateLifecycle:Pm,registerAction:jm,registerCoordinateSystem:function(t,e){tc.register(t,e)},registerLayout:function(t,e){Em(bm,t,e,1e3,"layout")},registerVisual:Rm,registerTransform:Vm,registerLoading:zm,registerMap:function(t,e,n){var i=Ay.registerMap;i&&i(t,e,n)},registerImpl:function(t,e){Ay[t]=e},PRIORITY:Yg,ComponentModel:fu,ComponentView:Od,SeriesModel:Md,ChartView:Jf,registerComponentModel:function(t){fu.registerClass(t)},registerComponentView:function(t){Od.registerClass(t)},registerSeriesModel:function(t){Md.registerClass(t)},registerChartView:function(t){Jf.registerClass(t)},registerSubTypeDefaulter:function(t,e){fu.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Kn[t]=e}};function Gm(t){Object(l.t)(t)?Object(l.k)(t,(function(t){Gm(t)})):0<=Object(l.r)(Bm,t)||(Bm.push(t),(t=Object(l.w)(t)?{install:t}:t).install(Fm))}var Hm=2*Math.PI,Wm=cr.CMD,Ym=["top","right","bottom","left"];function Xm(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 Um(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 Zm=[];function qm(t,e,n){for(var i,o,r,a,s,l,u,c,h,d=0,p=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=d=m[_],g=p=m[_+1]),y);switch(b){case Wm.M:d=f=m[_++],p=g=m[_++];break;case Wm.L:w=Xm(d,p,m[_],m[_+1],v,x,Zm,!0),d=m[_++],p=m[_++];break;case Wm.C:w=ye(d,p,m[_++],m[_++],m[_++],m[_++],m[_],m[_+1],v,x,Zm),d=m[_++],p=m[_++];break;case Wm.Q:w=be(d,p,m[_++],m[_++],m[_],m[_+1],v,x,Zm),d=m[_++],p=m[_++];break;case Wm.A:var S=m[_++],M=m[_++],I=m[_++],O=m[_++],T=m[_++],C=m[_++],k=(_+=1,!!(1-m[_++])),D=Math.cos(T)*I+S,A=Math.sin(T)*O+M;_<=1&&(f=D,g=A),A=(D=T)+C,k=k,a=(v-S)*(r=O)/I+S,s=x,l=Zm,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(D-A)%Hm<1e-4||((A=k?(k=D,D=fr(A),fr(k)):(D=fr(D),fr(A)))<D&&(A+=Hm),(k=Math.atan2(s,a))<0&&(k+=Hm),D<=k&&k<=A)||D<=k+Hm&&k+Hm<=A?(l[0]=c,l[1]=h,u-r):(h=((k=r*Math.cos(D)+i)-a)*(k-a)+((c=r*Math.sin(D)+o)-s)*(c-s))<(i=((u=r*Math.cos(A)+i)-a)*(u-a)+((D=r*Math.sin(A)+o)-s)*(D-s))?(l[0]=k,l[1]=c,Math.sqrt(h)):(l[0]=u,l[1]=D,Math.sqrt(i)),d=Math.cos(T+C)*I+S,p=Math.sin(T+C)*O+M;break;case Wm.R:w=Um(f=d=m[_++],g=p=m[_++],m[_++],m[_++],v,x,Zm);break;case Wm.Z:w=Xm(d,p,f,g,v,x,Zm,!0),d=f,p=g}w<y&&(y=w,n.set(Zm[0],Zm[1]))}return y}var Km=new dt,Qm=new dt,$m=new dt,Jm=new dt,tv=new dt;function ev(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||Ym,s=i.getBoundingRect().clone(),l=(s.applyTransform(i.getComputedTransform()),1/0),u=o.anchor,c=t.getComputedTransform(),h=c&&ct([],c),d=e.get("length2")||0;u&&$m.copy(u);for(var p,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=Km,_=Jm,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)}dt.scaleAndAdd(Qm,Km,Jm,d),Qm.transform(h),g=t.getBoundingRect(),g=u?u.distance(Qm):t instanceof Ar?qm(Qm,t.path,$m):(y=$m,p=Um((p=g).x,g.y,g.width,g.height,Qm.x,Qm.y,Zm),y.set(Zm[0],Zm[1]),p),g<l&&(l=g,Qm.transform(c),$m.transform(c),$m.toArray(r[0]),Qm.toArray(r[1]),Km.toArray(r[2]))}ov(r,e.get("minTurnAngle")),n.setShape({points:r})}}}var nv=[],iv=new dt;function ov(t,e){var n,i;e<=180&&0<e&&(e=e/180*Math.PI,Km.fromArray(t[0]),Qm.fromArray(t[1]),$m.fromArray(t[2]),dt.sub(Jm,Km,Qm),dt.sub(tv,$m,Qm),i=Jm.len(),n=tv.len(),i<.001||n<.001||(Jm.scale(1/i),tv.scale(1/n),i=Jm.dot(tv),Math.cos(e)<i&&(n=Xm(Qm.x,Qm.y,$m.x,$m.y,Km.x,Km.y,nv,!1),iv.fromArray(nv),iv.scaleAndAdd(tv,n/Math.tan(Math.PI-e)),i=$m.x!==Qm.x?(iv.x-Qm.x)/($m.x-Qm.x):(iv.y-Qm.y)/($m.y-Qm.y),isNaN(i)||(i<0?dt.copy(iv,Qm):1<i&&dt.copy(iv,$m),iv.toArray(t[1])))))}function rv(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 av(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]);e&&o?(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])):(t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]))}else for(var r=1;r<i.length;r++)t.lineTo(i[r][0],i[r][1])}function sv(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<Sa.length;u++){var c,h=Sa[u],d=e[h],p="normal"===h;d&&(c=d.get("show"),(p?s:Object(l.P)(o.states[h]&&o.states[h].ignore,s))||!Object(l.P)(c,a)?((c=p?i:i&&i.states[h])&&(c.ignore=!0),i&&rv(i,!0,h,d)):(i||(i=new jp,t.setTextGuideLine(i),p||!s&&a||rv(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),rv(i,!1,h,d)))}i&&(Object(l.i)(i.style,n),i.style.fill=null,n=r.get("showAbove"),(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=n||!1,i.buildPath=av)}else i&&t.removeTextGuideLine()}function lv(t,e){for(var n={normal:t.getModel(e=e||"labelLine")},i=0;i<wa.length;i++){var o=wa[i];n[o]=t.getModel([o,e])}return n}function uv(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 df(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 cv(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 d,p=t[h],f=p.rect;p=((d=f[e]-s)<0&&(f[e]-=d,p.label[e]-=d,l=!0),Math.max(-d,0));u.push(p),c+=p,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 hv(t,e,n,i){return cv(t,"y","height",e,n,i)}function dv(t){var e=[],n=(t.sort((function(t,e){return e.priority-t.priority})),new wt(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),d=!1,p=0;p<e.length;p++){var f=e[p];if(n.intersect(f.rect)){if(a&&f.axisAligned){d=!0;break}if(f.obb||(f.obb=new df(f.localRect,f.transform)),(h=h||new df(s,l)).intersect(f.obb)){d=!0;break}}}d?(i(u),c&&i(c)):(u.attr("ignore",r.defaultAttr.ignore),c&&c.attr("ignore",r.defaultAttr.labelGuideIgnore),e.push(r))}}function pv(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:(t=>{if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}})(e&&e.shape.points)}}var fv=["align","verticalAlign","width","height","fontSize"],gv=new In,yv=zi(),mv=zi();function vv(t,e,n){for(var i=0;i<n.length;i++){var o=n[i];null!=e[o]&&(t[o]=e[o])}}var xv=["x","y","rotation"];function _v(){this._labelList=[],this._chartViewList=[]}_v.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},_v.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=(wt.applyTransform(u,u,l),l?gv.setLocalTransform(l):(gv.x=gv.y=gv.rotation=gv.originX=gv.originY=0,gv.scaleX=gv.scaleY=1),gv.rotation=fr(gv.rotation),i.__hostTarget),l&&(r=l.getBoundingRect().plain(),c=l.getComputedTransform(),wt.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:gv.x,y:gv.y,scaleX:gv.scaleX,scaleY:gv.scaleY,rotation:gv.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}})},_v.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=fa(t);o&&!o.disableLabelLayout&&e._addLabel(t.dataIndex,t.dataType,n,o,i)}))},_v.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(pv(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=oi(u.x,e),r.setStyle("x",0),h=!0):(r.x=s.x,r.setStyle("x",s.style.x)),null!=u.y?(r.y=oi(u.y,n),r.setStyle("y",0),h=!0):(r.y=s.y,r.setStyle("y",s.style.y)),u.labelLinePoints&&(d=a.getTextGuideLine())&&(d.setShape({points:u.labelLinePoints}),h=!1),yv(r).needsUpdateLabelLine=h,r.rotation=null!=u.rotate?u.rotate*c:s.rotation,r.scaleX=s.scaleX,r.scaleY=s.scaleY;for(var d,p=0;p<fv.length;p++){var f=fv[p];r.setStyle(f,(null!=u[f]?u:s.style)[f])}u.draggable?(r.draggable=!0,r.cursor="move",a&&(d=o.seriesModel,null!=o.dataIndex&&(d=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex)),r.on("drag",((t,e)=>function(){ev(t,e)})(a,d.getModel("labelLine"))))):(r.off("drag"),r.cursor=s.cursor)}},_v.prototype.layout=function(t){var e,n=t.getWidth(),i=(t=t.getHeight(),uv(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}));cv(o,"x","width",0,n,e),hv(r,0,t),dv(Object(l.n)(i,(function(t){return t.layoutOption.hideOverlap})))},_v.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?yv(a).needsUpdateLabelLine:r)&&t._updateLabelLine(e,n),o&&t._animateLabels(e,n)}))}))},_v.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=fa(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"),sv(t,lv(e),i),ev(t,o))},_v.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||_s(t))||(r=(o=yv(s)).oldLayout,n=(i=fa(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),vs(s,a,e,n)):(s.attr(a),Es(s).valueAnimation||(t=Object(l.P)(s.style.opacity,1),s.style.opacity=0,xs(s,{style:{opacity:t}},e,n))),o.oldLayout=a,s.states.select&&(vv(t=o.oldLayoutSelect={},a,xv),vv(t,s.states.select,xv)),s.states.emphasis&&(vv(t=o.oldLayoutEmphasis={},a,xv),vv(t,s.states.emphasis,xv)),Vs(s,n,i,e,e)),!u||u.ignore||u.invisible||(r=(o=mv(u)).oldLayout,a={points:u.shape.points},r?(u.attr({shape:r}),vs(u,{shape:a},e)):(u.setShape(a),u.style.strokePercent=0,xs(u,{style:{strokePercent:1}},e)),o.oldLayout=a)};var bv,wv=_v,Sv=zi();function Mv(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){(Sv(e).labelManager||(Sv(e).labelManager=new wv)).clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var i=Sv(e).labelManager;n.updatedSeries.forEach((function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()}))}function Iv(t,e,n){var i=Tn.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 Ov(t,e,n){var i,o=bv.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||pn,"string"==typeof t?i=Iv(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}Gm(Mv),c(Ov,bv=L),Ov.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},Ov.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},Ov.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},Ov.prototype.setUnpainted=function(){this.__firstTimePaint=!0},Ov.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Iv("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},Ov.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],r=this.maxRepaintRectCount,a=!1,s=new wt(0,0,0,0);function l(t){if(t.isFinite()&&!t.isZero())if(0===o.length)(e=new wt(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 wt(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 wt(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])&&(p=h.shouldBePainted(n,i,!0,!0),(d=h.__isRendered&&(h.__dirty&Yt||!p)?h.getPrevPaintRect():null)&&l(d),u=p&&(h.__dirty&Yt||!h.__isRendered)?h.getPaintRect():null)&&l(u);for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h,d,p=(h=e[c])&&h.shouldBePainted(n,i,!0,!0);!h||p&&h.__zr||!h.__isRendered||(d=h.getPrevPaintRect())&&l(d)}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},Ov.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},Ov.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)},Ov.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,d=(s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,r/c,a/c)),this.domBack);function p(t,n,i,r){var a;o.clearRect(t,n,i,r),e&&"transparent"!==e&&(a=void 0,l.x(e)?(a=(e.global||e.__width===i&&e.__height===r)&&e.__canvasGradient||ey(o,e,{x:0,y:0,width:i,height:r}),e.__canvasGradient=a,e.__width=i,e.__height=r):l.y(e)&&(e.scaleX=e.scaleX||c,e.scaleY=e.scaleY||c,a=hy(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(d,t,n,i,r),o.restore())}!n||s?p(0,0,r,a):n.length&&l.k(n,(function(t){p(t.x*c,t.y*c,t.width*c,t.height*c)}))};var Tv=Ov,Cv=314159;function kv(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||pn,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 Tv(o,this,this.dpr)).__builtin__=!0,r.initContext(),(s[Cv]=r).zlevel=Cv,e.push(Cv),this._domRoot=t):(this._width=iy(t,0,n),this._height=iy(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))}kv.prototype.getType=function(){return"canvas"},kv.prototype.isSingleCanvas=function(){return this._singleCanvas},kv.prototype.getViewportRoot=function(){return this._domRoot},kv.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},kv.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},kv.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},kv.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()}},kv.prototype.getHoverLayer=function(){return this.getLayer(1e5)},kv.prototype.paintOne=function(t,e){Sy(t,e)},kv.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,Qt((function(){a._paintList(t,e,n,i)}))))},kv.prototype._compositeManually=function(){var t=this.getLayer(Cv).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)}))},kv.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,d=function(a){function s(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(u=y;u<d.__endIndex;u++){var o=t[u];if(o.__inHover&&(h=!0),i._doPaintEl(o,d,r,e,n,u===d.__endIndex-1),m&&15<Date.now()-v)break}n.prevElClipPaths&&f.restore()}var l,u,d=o[a],f=d.ctx,g=r&&d.createRepaintRects(t,e,p._width,p._height),y=n?d.__startIndex:d.__drawIndex,m=!n&&d.incremental&&Date.now,v=m&&Date.now();a=d.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(d.__startIndex!==d.__endIndex&&(y!==d.__startIndex||(l=t[y]).incremental&&l.notClear&&!n)||d.clear(!1,a,g),-1===y&&(y=d.__startIndex),g)if(0===g.length)u=d.__endIndex;else for(var x=p.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();d.__drawIndex=u,d.__drawIndex<d.__endIndex&&(c=!1)},p=this,f=0;f<o.length;f++)d(f);return s.a.wxa&&l.k(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:c,needsRefreshHover:h}},kv.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)},kv.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Cv);var n=this._layers[t];return n||((n=new Tv("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},kv.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||(e.painter=this)}},kv.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)}},kv.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)}},kv.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)}},kv.prototype.getLayers=function(){return this._layers},kv.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&Yt&&!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)}))},kv.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},kv.prototype._clearLayer=function(t){t.clear()},kv.prototype.setBackgroundColor=function(t){this._backgroundColor=t,l.k(this._layers,(function(t){t.setUnpainted()}))},kv.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))}}},kv.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))},kv.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=iy(o,0,i),e=iy(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(Cv).resize(t,e)}return this},kv.prototype.clearLayer=function(t){t=this._layers[t],t&&t.clear()},kv.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},kv.prototype.getRenderedCanvas=function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[Cv].dom;var e=new Tv("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},kv.prototype.getWidth=function(){return this._width},kv.prototype.getHeight=function(){return this._height};var Dv=kv,Av=Math.sin,Lv=Math.cos,Pv=Math.PI,jv=2*Math.PI,Rv=180/Pv;function Nv(){}Nv.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},Nv.prototype.moveTo=function(t,e){this._add("M",t,e)},Nv.prototype.lineTo=function(t,e){this._add("L",t,e)},Nv.prototype.bezierCurveTo=function(t,e,n,i,o,r){this._add("C",t,e,n,i,o,r)},Nv.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},Nv.prototype.arc=function(t,e,n,i,o,r){this.ellipse(t,e,n,n,0,i,o,r)},Nv.prototype.ellipse=function(t,e,n,i,o,r,a,s){var l,u=a-r,c=(s=!s,Math.abs(u)),h=Object(Te.j)(c-jv)||(s?jv<=u:jv<=-u),d=(u=0<u?u%jv:u%jv+jv,!1);d=!!h||!Object(Te.j)(c)&&Pv<=u==!!s,c=t+n*Lv(r),u=e+i*Av(r),this._start&&this._add("M",c,u),o=Math.round(o*Rv);h?(h=1/this._p,this._add("A",n,i,o,1,+s,t+n*Lv(r+(l=(s?1:-1)*(jv-h))),e+i*Av(r+l)),.01<h&&this._add("A",n,i,o,0,+s,c,u)):(r=t+n*Lv(a),l=e+i*Av(a),this._add("A",n,i,o,+d,+s,r,l))},Nv.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")},Nv.prototype.closePath=function(){0<this._d.length&&this._add("Z")},Nv.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 d=arguments[h];if(isNaN(d))return void(this._invalid=!0);u.push(Math.round(d*c)/c)}this._d.push(t+u.join(" ")),this._start="Z"===t},Nv.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},Nv.prototype.getStr=function(){return this._str};var Ev=Nv,zv="none",Vv=Math.round,Bv=["lineCap","miterLimit","lineJoin"],Fv=Object(l.H)(Bv,(function(t){return"stroke-"+t.toLowerCase()}));function Gv(t,e,n,i){var o=null==e.opacity?1:e.opacity;if(n instanceof Vr)t("opacity",o);else if(null!=(r=(r=e).fill)&&r!==zv?(t("fill",(r=Object(Te.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",zv),null!=(r=(r=e).stroke)&&r!==zv){var r=Object(Te.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=oy(n))[0],r=a[1],o&&(r=Vv(r||0),t("stroke-dasharray",o.join(",")),r||i)&&t("stroke-dashoffset",r)):i&&t("stroke-dasharray",zv);for(var s=0;s<Bv.length;s++){var l=Bv[s];(i||e[l]!==Or[l])&&(l=e[l]||Or[l])&&t(Fv[s],l)}}else i&&t("stroke",zv)}var Hv="http://www.w3.org/2000/svg",Wv="http://www.w3.org/1999/xlink",Yv="http://www.w3.org/2000/xmlns/",Xv="http://www.w3.org/XML/1998/namespace",Uv="ecmeta_";function Zv(t){return document.createElementNS(Hv,t)}function qv(t,e,n,i,o){return{tag:t,attrs:n||{},children:i,text:o,key:e}}function Kv(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var i=e.children,o=e.tag,r=e.text;return((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)+("style"!==o?G(r):r||"")+(i?n+Object(l.H)(i,t).join(n)+n:"")+"</"+o+">"}(t)}function Qv(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function $v(t,e,n,i){return qv("svg","root",{width:t,height:e,xmlns:Hv,"xmlns:xlink":Wv,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var Jv=0,tx={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"},ex="transform-origin",nx={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function ix(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function ox(t){return Object(l.C)(t)?tx[t]?"cubic-bezier("+tx[t]+")":Se(t)?t:"":""}function rx(t,e,n,i){var o=t.animators,r=o.length,a=[];if(t instanceof Qp){if(u=((t,e,n)=>{t=t.shape.paths;var i,o,r={};if(Object(l.k)(t,(function(t){var e=Qv(n.zrId),a=(t=(e.animation=!0,rx(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 d=h[u];r[u]=r[u]||{d:""},r[u].d+=d.d||""}for(c in a){var p=a[c].animation;0<=p.indexOf(o)&&(i=p)}}})),i)return e.d=!1,t=ix(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={},d=0;d<r;d++){var p=o[d],f=[p.getMaxTime()/1e3+"s"],g=ox(p.getClip().easing),y=p.getDelay();g=(f.push(g||"linear"),y&&f.push(y/1e3+"s"),p.getLoop()&&f.push("infinite"),f.join(" "));h[g]=h[g]||[g,[]],h[g][1].push(p)}function m(o){var r=o[1],a=r.length,s={},u={},c={},h="animation-timing-function";function d(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 d=s[c],p=Math.round(d.time/o*100)+"%",f=ox(d.easing),g=d.rawValue;(Object(l.C)(g)||Object(l.z)(g))&&(e[p]=e[p]||{},e[p][u]=d.rawValue,f)&&(e[p][h]=f)}}}}for(var p,f,g=0;g<a;g++)(C=(T=r[g]).targetName)?"shape"===C&&d(T,u):i||d(T,s);for(O in s){var y={},m=(Mn(y,t),Object(l.m)(y,s[O]),Object(Te.g)(y)),v=s[O][h];c[O]=m?{transform:m}:{},m=c[O],p=void 0,p=(y=y).originX,y=y.originY,(p||y)&&(m[ex]=p+"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 cr: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 Ev).reset(Object(Te.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)&&d(T,c,(function(t){return nx[t]}))}var k,D=Object(l.F)(c),A=!0;for(g=1;g<D.length;g++){var L=D[g-1],P=D[g];if(c[L][ex]!==c[P][ex]){A=!1;break}k=c[L][ex]}if(A&&k){for(var O in c)c[O][ex]&&delete c[O][ex];e[ex]=k}if(Object(l.n)(D,(function(t){return 0<Object(l.F)(c[t]).length})).length)return ix(c,n)+" "+o[0]+" both"}for(s in h)(u=m(h[s]))&&a.push(u);a.length&&(c=n.zrId+"-cls-"+Jv++,n.cssNodes["."+c]={animation:a.join(",")},e.class=c)}function ax(t,e,n,i){var o=JSON.stringify(t),r=n.cssStyleCache[o];r||(r=n.zrId+"-cls-"+Jv++,n.cssStyleCache[o]=r,n.cssNodes["."+r+(i?":hover":"")]=t),e.class=e.class?e.class+" "+r:r}var sx=Math.round;function lx(t){return t&&Object(l.C)(t.src)}function ux(t){return t&&Object(l.w)(t.toDataURL)}function cx(t,e,n,i){Gv((function(o,r){var a="fill"===o||"stroke"===o;a&&Object(Te.k)(r)?_x(e,t,o,i):a&&Object(Te.n)(r)?bx(n,t,o,i):t[o]=r,a&&i.ssr&&"none"===r&&(t["pointer-events"]="visible")}),e,n,!1);var o=t,r=i,a=(c=n).style;if(Object(Te.i)(a)){var s=Object(Te.h)(c),l=r.shadowCache,u=l[s];if(!u){var c=c.getGlobalScale(),h=c[0];c=c[1];if(!h||!c)return;var d=a.shadowOffsetX||0,p=a.shadowOffsetY||0,f=a.shadowBlur,g=(a=Object(Te.p)(a.shadowColor),a.opacity);a=a.color,f=f/2/h+" "+f/2/c;u=r.zrId+"-s"+r.shadowIdx++,r.defs[u]=qv("filter",u,{id:u,x:"-100%",y:"-100%",width:"300%",height:"300%"},[qv("feDropShadow","",{dx:d/h,dy:p/c,stdDeviation:f,"flood-color":a,"flood-opacity":g})]),l[s]=u}o.filter=Object(Te.d)(u)}}function hx(t,e){var n=(t=>{if("function"==typeof $n)return $n(t)})(e);n&&(n.each((function(e,n){null!=e&&(t[(Uv+n).toLowerCase()]=e+"")})),e.isSilent())&&(t[Uv+"silent"]="true")}function dx(t){return Object(Te.j)(t[0]-1)&&Object(Te.j)(t[1])&&Object(Te.j)(t[2])&&Object(Te.j)(t[3]-1)}function px(t,e,n){var i;!e||(i=e,Object(Te.j)(i[4])&&Object(Te.j)(i[5])&&dx(e))||(i=n?10:1e4,t.transform=dx(e)?"translate("+sx(e[4]*i)/i+" "+sx(e[5]*i)/i+")":Object(Te.e)(e))}function fx(t,e,n){for(var i=t.points,o=[],r=0;r<i.length;r++)o.push(sx(i[r][0]*n)/n),o.push(sx(i[r][1]*n)/n);e.points=o.join(" ")}function gx(t){return!t.smooth}var yx,mx={circle:[(Wg=["cx","cy","r"],yx=Object(l.H)(Wg,(function(t){return"string"==typeof t?[t,t]:t})),function(t,e,n){for(var i=0;i<yx.length;i++){var o=yx[i],r=t[o[0]];null!=r&&(e[o[1]]=sx(r*n)/n)}})],polyline:[fx,gx],polygon:[fx,gx]};function vx(t,e){var n,i,o,r,a,s=t.style,l=t.shape,u=mx[t.type],c={},h=e.animation,d="path",p=t.style.strokePercent,f=e.compress&&Object(Te.f)(t)||4;return!u||e.willUpdate||u[1]&&!u[1](l)||h&&(t=>{for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return 1})(t)||p<1?(h=!t.path||t.shapeChanged(),t.path||t.createPathProxy(),n=t.path,h&&(n.beginPath(),t.buildPath(n,t.shape),t.pathUpdated()),h=n.getVersion(),o=(i=t).__svgPathBuilder,i.__svgPathVersion===h&&o&&p===i.__svgPathStrokePercent||((o=o||(i.__svgPathBuilder=new Ev)).reset(f),n.rebuildPath(o,p),o.generateStr(),i.__svgPathVersion=h,i.__svgPathStrokePercent=p),c.d=o.getStr()):(d=t.type,n=Math.pow(10,f),u[0](l,c,n)),px(c,t.transform),cx(c,s,t,e),hx(c,t),e.animation&&rx(t,c,e),e.emphasis&&(h=c,i=e,(p=t).ignore||(p.isSilent()?ax(a={"pointer-events":"none"},h,i,!0):(!(f=(o=p.states.emphasis&&p.states.emphasis.style?p.states.emphasis.style:{}).fill)&&(r=p.style&&p.style.fill,u=p.states.select&&p.states.select.style&&p.states.select.style.fill,u=0<=p.currentStates.indexOf("select")&&u||r)&&(f=Object(Oe.d)(u)),(r=o.lineWidth)&&(r/=!o.strokeNoScale&&p.transform?p.transform[0]:1),a={cursor:"pointer"},f&&(a.fill=f),o.stroke&&(a.stroke=o.stroke),r&&(a["stroke-width"]=r),ax(a,h,i,!0)))),qv(d,t.id+"",c)}function xx(t,e){if(t instanceof Ar)return vx(t,e);if(t instanceof Vr){var n=t,i=e,o=n.style,r=o.image;if(r&&!Object(l.C)(r)&&(lx(r)?r=r.src:ux(r)&&(r=r.toDataURL())),r)return s=o.y||0,r={href:r,width:o.width,height:o.height},(a=o.x||0)&&(r.x=a),s&&(r.y=s),px(r,n.transform),cx(r,o,n,i),hx(r,n),i.animation&&rx(n,r,i),qv("image",n.id+"",r)}else if(t instanceof jr){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||Tn.a,r=o.x||0,t=Object(Te.b)(o.y||0,jn(n),o.textBaseline),e={"dominant-baseline":"central","text-anchor":Te.a[o.textAlign]||o.textAlign},ra(o)){var u="",c=o.fontStyle,h=ia(o.fontSize);if(!parseFloat(h))return;var d=o.fontFamily||Tn.b,p=o.fontWeight;u+="font-size:"+h+";font-family:"+d+";",c&&"normal"!==c&&(u+="font-style:"+c+";"),p&&"normal"!==p&&(u+="font-weight:"+p+";"),e.style=u}else e.style="font: "+n;return i.match(/\s/)&&(e["xml:space"]="preserve"),r&&(e.x=r),t&&(e.y=t),px(e,a.transform),cx(e,o,a,s),hx(e,a),s.animation&&rx(a,e,s),qv("text",a.id+"",e,void 0,i)}}}function _x(t,e,n,i){t=t[n];var o,r={gradientUnits:t.global?"userSpaceOnUse":"objectBoundingBox"};if(Object(Te.m)(t))o="linearGradient",r.x1=t.x,r.y1=t.y,r.x2=t.x2,r.y2=t.y2;else{if(!Object(Te.o)(t))return;o="radialGradient",r.cx=Object(l.P)(t.x,.5),r.cy=Object(l.P)(t.y,.5),r.r=Object(l.P)(t.r,.5)}for(var a=t.colorStops,s=[],u=0,c=a.length;u<c;++u){var h=100*Object(Te.q)(a[u].offset)+"%",d=a[u].color,p=(d=Object(Te.p)(d),d.color);d=d.opacity,h={offset:h};h["stop-color"]=p,d<1&&(h["stop-opacity"]=d),s.push(qv("stop",u+"",h))}t=Kv(qv(o,"",r,s));var f=i.gradientCache,g=f[t];g||(g=i.zrId+"-g"+i.gradientIdx++,f[t]=g,r.id=g,i.defs[g]=qv(o,g,r,s)),e[n]=Object(Te.d)(g)}function bx(t,e,n,i){var o,r,a,s,u,c,h,d,p=t.style[n],f=t.getBoundingRect(),g={},y=p.repeat,m="no-repeat"===y,v="repeat-x"===y,x="repeat-y"===y;Object(Te.l)(p)?(r=p.imageWidth,a=p.imageHeight,y=void 0,h=p.image,Object(l.C)(h)?y=h:lx(h)?y=h.src:ux(h)&&(y=h.toDataURL()),"undefined"==typeof Image?(h="Image width/height must been given explictly in svg-ssr renderer.",Object(l.b)(r,h),Object(l.b)(a,h)):null!=r&&null!=a||(s=function(t,e){var n,i;t&&(n=t.elm,i=r||e.width,e=a||e.height,"pattern"===t.tag&&(v?(e=1,i/=f.width):x&&(i=1,e/=f.height)),t.attrs.width=i,t.attrs.height=e,n)&&(n.setAttribute("width",i),n.setAttribute("height",e))},(h=lo(y,null,t,(function(t){m||s(c,t),s(o,t)})))&&h.width&&h.height&&(r=r||h.width,a=a||h.height)),o=qv("image","img",{href:y,width:r,height:a}),g.width=r,g.height=a):p.svgElement&&(o=Object(l.d)(p.svgElement),g.width=p.svgWidth,g.height=p.svgHeight),o&&(m?d=u=1:v?(u=1,d=g.width/f.width):x?(d=1,u=g.height/f.height):g.patternUnits="userSpaceOnUse",null==d||isNaN(d)||(g.width=d),null==u||isNaN(u)||(g.height=u),(t=Object(Te.g)(p))&&(g.patternTransform=t),h=Kv(c=qv("pattern","",g,[o])),(d=(y=i.patternCache)[h])||(d=i.zrId+"-p"+i.patternIdx++,y[h]=d,g.id=d,c=i.defs[d]=qv("pattern",d,g,[o])),e[n]=Object(Te.d)(d))}function wx(t){return document.createTextNode(t)}function Sx(t,e,n){t.insertBefore(e,n)}function Mx(t,e){t.removeChild(e)}function Ix(t,e){t.appendChild(e)}function Ox(t){return t.parentNode}function Tx(t){return t.nextSibling}function Cx(t,e){t.textContent=e}var kx=58,Dx=120,Ax=qv("","");function Lx(t){return void 0===t}function Px(t){return void 0!==t}function jx(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function Rx(t){var e,n=t.children,i=t.tag;if(Px(i)){var o=t.elm=Zv(i);if(zx(Ax,t),Object(l.t)(n))for(e=0;e<n.length;++e){var r=n[e];null!=r&&Ix(o,Rx(r))}else Px(t.text)&&!Object(l.A)(t.text)&&Ix(o,wx(t.text))}else t.elm=wx(t.text);return t.elm}function Nx(t,e,n,i,o){for(;i<=o;++i){var r=n[i];null!=r&&Sx(t,Rx(r),e)}}function Ex(t,e,n,i){for(;n<=i;++n){var o=e[n];null!=o&&(Px(o.tag)?Mx(Ox(o.elm),o.elm):Mx(t,o.elm))}}function zx(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):"style"===n?i.style.cssText=a:n.charCodeAt(0)!==Dx?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS(Yv,n,a):n.charCodeAt(3)===kx?i.setAttributeNS(Xv,n,a):n.charCodeAt(5)===kx?i.setAttributeNS(Wv,n,a):i.setAttribute(n,a))}for(n in o)n in r||i.removeAttribute(n)}}function Vx(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,d=n[0],p=n[h];a<=l&&s<=h;)null==u?u=e[++a]:null==c?c=e[--l]:null==d?d=n[++s]:null==p?p=n[--h]:jx(u,d)?(Bx(u,d),u=e[++a],d=n[++s]):jx(c,p)?(Bx(c,p),c=e[--l],p=n[--h]):jx(u,p)?(Bx(u,p),Sx(t,u.elm,Tx(c.elm)),u=e[++a],p=n[--h]):(jx(c,d)?(Bx(c,d),Sx(t,c.elm,u.elm),c=e[--l]):(Lx(i)&&(i=((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)),Lx(o=i[d.key])||(r=e[o]).tag!==d.tag?Sx(t,Rx(d),u.elm):(Bx(r,d),e[o]=void 0,Sx(t,r.elm,u.elm))),d=n[++s]);(a<=l||s<=h)&&(l<a?Nx(t,null==n[h+1]?null:n[h+1].elm,n,s,h):Ex(t,e,a,l))}function Bx(t,e){var n=e.elm=t.elm,i=t.children,o=e.children;t!==e&&(zx(t,e),Lx(e.text)?Px(i)&&Px(o)?i!==o&&Vx(n,i,o):Px(o)?(Px(t.text)&&Cx(n,""),Nx(n,null,o,0,o.length-1)):Px(i)?Ex(n,i,0,i.length-1):Px(t.text)&&Cx(n,""):t.text!==e.text&&(Px(i)&&Ex(n,i,0,i.length-1),Cx(n,e.text)))}var Fx=0;function Gx(t,e,n){var i;this.type="svg",this.refreshHover=Hx(),this.configLayer=Hx(),this.storage=e,this._opts=n=Object(l.m)({},n),this.root=t,this._id="zr"+Fx++,this._oldVNode=$v(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=Zv("svg"),zx(null,this._oldVNode),e.appendChild(i),t.appendChild(e)),this.resize(n.width,n.height)}function Hx(){return function(){}}Gx.prototype.getType=function(){return this.type},Gx.prototype.getViewportRoot=function(){return this._viewport},Gx.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},Gx.prototype.getSvgDom=function(){return this._svgDom},Gx.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",jx(e=this._oldVNode,n=t)?Bx(e,n):(o=Ox(i=e.elm),Rx(n),null!==o&&(Sx(o,n.elm,Tx(i)),Ex(o,[e],0,0))),this._oldVNode=t)},Gx.prototype.renderOneToVNode=function(t){return xx(t,Qv(this._id))},Gx.prototype.renderToVNode=function(t){t=t||{};var e,n,i,o,r,a=this.storage.getDisplayList(!0),s=this._width,u=this._height,c=Qv(this._id),h=(c.animation=t.animation,c.willUpdate=t.willUpdate,c.compress=t.compress,c.emphasis=t.emphasis,c.ssr=this._opts.ssr,[]),d=this._bgVNode=((t,e,n,i)=>{var o;return n&&"none"!==n&&(o=qv("rect","bg",{width:t,height:e,x:"0",y:"0"}),Object(Te.k)(n)?_x({fill:n},o.attrs,"fill",i):Object(Te.n)(n)?bx({style:{fill:n},dirty:l.L,getBoundingRect:function(){return{width:t,height:e}}},o.attrs,"fill",i):(i=Object(Te.p)(n),n=i.color,i=i.opacity,o.attrs.fill=n,i<1&&(o.attrs["fill-opacity"]=i))),o})(s,u,this._backgroundColor,c);d&&h.push(d),d=t.compress?null:this._mainVNode=qv("g","main",{},[]),this._paintList(a,c,d?d.children:h),d&&h.push(d),a=Object(l.H)(Object(l.F)(c.defs),(function(t){return c.defs[t]}));return a.length&&h.push(qv("defs","defs",{},a)),t.animation&&(e=c.cssNodes,n=c.cssAnims,i=(d=(d={newline:!0})||{}).newline?"\n":"",o=" {"+i,r=i+"}",d=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),a=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),d=d||a?["<![CDATA[",d,a,"]]>"].join(i):"")&&h.push(qv("style","stl",{},[],d)),$v(s,u,h,t.useViewBox)},Gx.prototype.renderToString=function(t){return t=t||{},Kv(this.renderToVNode({animation:Object(l.P)(t.cssAnimation,!0),emphasis:Object(l.P)(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Object(l.P)(t.useViewBox,!0)}),{newline:!0})},Gx.prototype.setBackgroundColor=function(t){this._backgroundColor=t},Gx.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},Gx.prototype._paintList=function(t,e,n){for(var i,o,r,a,s,l,u,c=t.length,h=[],d=0,p=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[--d-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]=qv("clipPath",u,s,[vx(o,a)])),r["clip-path"]=Object(Te.d)(u),qv("g","clip-g-"+p++,w,[]));(i?i.children:n).push(S),i=h[d++]=S}var M=y;v=xx(g,e);v&&(i?i.children:n).push(v)}}},Gx.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=iy(i,0,n),e=iy(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"),Object(Te.n)(this._backgroundColor)?this.refresh():((n=this._svgDom)&&(n.setAttribute("width",t),n.setAttribute("height",e)),(o=this._bgVNode&&this._bgVNode.elm)&&(o.setAttribute("width",t),o.setAttribute("height",e))))},Gx.prototype.getWidth=function(){return this._width},Gx.prototype.getHeight=function(){return this._height},Gx.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},Gx.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},Gx.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=Object(Te.c)(e))&&n+"base64,"+e:n+"charset=UTF-8,"+encodeURIComponent(e)};var Wx=Gx;function Yx(t){return null==t?0:t.length||1}function Xx(t){return t}function Ux(t,e,n,i,o,r){this._old=t,this._new=e,this._oldKeyGetter=n||Xx,this._newKeyGetter=i||Xx,this.context=o,this._diffModeMultiple="multiple"===r}Ux.prototype.add=function(t){return this._add=t,this},Ux.prototype.update=function(t){return this._update=t,this},Ux.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},Ux.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},Ux.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},Ux.prototype.remove=function(t){return this._remove=t,this},Ux.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},Ux.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=Yx(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)},Ux.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=Yx(l),h=Yx(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 d=0;d<c;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(r,i)},Ux.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],o=e[i],r=Yx(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}},Ux.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=Yx(a=e[l]))?(e[l]=r,o&&n.push(l)):1===s?e[l]=[a,r]:a.push(r))}};var Zx=Ux,qx=(Kx.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},Kx.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},Kx);function Kx(t,e){this._encode=t,this._schema=e}function Qx(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,$x(i,c)[n]=e,u.isExtraCoord||(o.set(c,1),"ordinal"!==(l=u.type)&&"time"!==l&&(r[0]=e),$x(s,c)[n]=t.getDimensionIndex(u.name)),u.defaultTooltip)&&a.push(e),yu.each((function(t,e){var n=$x(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 qx(s,e),n}function $x(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Jx(t){return"category"===t?"ordinal":"time"===t?"time":"float"}var t_=function(t){this.otherDims={},null!=t&&l.m(this,t)},e_=zi(),n_={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},i_=(o_.prototype.isDimensionOmitted=function(){return this._dimOmitted},o_.prototype._updateDimOmitted=function(t){(this._dimOmitted=t)&&!this._dimNameMap&&(this._dimNameMap=s_(this.source))},o_.prototype.getSourceDimensionIndex=function(t){return Object(l.P)(this._dimNameMap.get(t),-1)},o_.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},o_.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Pc(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+"$"+(n_[u]||"f"),c&&(i+=c.uid),i+="$"}var d=this.source;return{dimensions:o,hash:[d.seriesLayoutBy,d.startIndex,i].join("$$")}},o_.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},o_.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},o_);function o_(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}function r_(t){return t instanceof i_}function a_(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 s_(t){var e=e_(t);return e.dimNameMap||(e.dimNameMap=a_(t.dimensionsDefine))}var l_,u_,c_,h_,d_,p_,f_,g_=l.A,y_=l.H,m_="undefined"==typeof Int32Array?Array:Int32Array,v_=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],x_=["_approximateExtent"];function __(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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"];for(var n,i,o=!(this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"]),r=(r_(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 d=n[h],p=(d=l.C(d)?new t_({name:d}):d instanceof t_?d:new t_(d),d.name),f=(d.type=d.type||"float",d.coordDim||(d.coordDim=p,d.coordDimIndex=0),d.otherDims=d.otherDims||{});a.push(p),null!=c[p]&&(u=!0),(r[p]=d).createInvertedIndices&&(s[p]=[]),0===f.itemName&&(this._nameDimIdx=h),0===f.itemId&&(this._idDimIdx=h),o&&(d.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)})))}__.prototype.getDimension=function(t){var e;return null==(e=this._recognizeDimIndex(t))?t:(e=t,this._dimOmitted?null!=(t=this._dimIdxToName.get(e))?t:(t=this._schema.getSourceDimension(e))?t.name:void 0:this.dimensions[e])},__.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);return null!=e?e:null==t?-1:(e=this._getDimInfo(t))?e.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},__.prototype._recognizeDimIndex=function(t){if(l.z(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},__.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},__.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},__.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]}},__.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},__.prototype.mapDimension=function(t,e){var n=this._dimSummary;return null==e?n.encodeFirstDimNotExtra[t]:(n=n.encode[t])?n[e]:null},__.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},__.prototype.getStore=function(){return this._store},__.prototype.initData=function(t,e,n){var i,o,r=this;(i=t instanceof Gh?t:i)||(o=this.dimensions,t=Tc(t)||l.u(t)?new Ec(t,o.length):t,i=new Gh,o=y_(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=Qx(this,this._schema),this.userOutput=this._dimSummary.userOutput},__.prototype.appendData=function(t){t=this._store.appendData(t),this._doInit(t[0],t[1])},__.prototype.appendValues=function(t,e){t=this._store.appendValues(t,e&&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&&f_(this,r)},__.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)}},__.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==bu&&!t.fillStorage},__.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===mu&&!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]=Pi(s,null)),u=u.id,null==o[a])&&null!=u&&(o[a]=Pi(u,null))}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)f_(this,a);l_(this)}},__.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},__.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},__.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},__.prototype.setCalculationInfo=function(t,e){g_(t)?l.m(this._calculationInfo,t):this._calculationInfo[t]=e},__.prototype.getName=function(t){t=this.getRawIndex(t);var e=this._nameList[t];return null==(e=null==e&&null!=this._nameDimIdx?c_(this,this._nameDimIdx,t):e)?"":e},__.prototype._getCategory=function(t,e){return e=this._store.get(t,e),t=this._store.getOrdinalMeta(t),t?t.categories[e]:e},__.prototype.getId=function(t){return u_(this,this.getRawIndex(t))},__.prototype.count=function(){return this._store.count()},__.prototype.get=function(t,e){var n=this._store;t=this._dimInfos[t];if(t)return n.get(t.storeDimIndex,e)},__.prototype.getByRawIndex=function(t,e){var n=this._store;t=this._dimInfos[t];if(t)return n.getByRawIndex(t.storeDimIndex,e)},__.prototype.getIndices=function(){return this._store.getIndices()},__.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},__.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},__.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},__.prototype.getValues=function(t,e){var n=this,i=this._store;return l.t(t)?i.getValues(y_(t,(function(t){return n._getStoreDimIndex(t)})),e):i.getValues(t)},__.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},__.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},__.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},__.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},__.prototype.rawIndexOf=function(t,e){return t=t&&this._invertedIndicesMap[t],t=t&&t[e],null==t||isNaN(t)?-1:t},__.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},__.prototype.each=function(t,e,n){l.w(t)&&(n=e,e=t,t=[]),n=n||this,t=y_(h_(t),this._getStoreDimIndex,this),this._store.each(t,n?l.c(e,n):e)},__.prototype.filterSelf=function(t,e,n){return l.w(t)&&(n=e,e=t,t=[]),n=n||this,t=y_(h_(t),this._getStoreDimIndex,this),this._store=this._store.filter(t,n?l.c(e,n):e),this},__.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},__.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},__.prototype.map=function(t,e,n,i){return n=n||i||this,i=y_(h_(t),this._getStoreDimIndex,this),t=p_(this),t._store=this._store.map(i,n?l.c(e,n):e),t},__.prototype.modify=function(t,e,n,i){n=n||i||this,i=y_(h_(t),this._getStoreDimIndex,this),this._store.modify(i,n?l.c(e,n):e)},__.prototype.downSample=function(t,e,n,i){var o=p_(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),o},__.prototype.minmaxDownSample=function(t,e){var n=p_(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},__.prototype.lttbDownSample=function(t,e){var n=p_(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},__.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},__.prototype.getItemModel=function(t){var e=this.hostModel;t=this.getRawDataItem(t);return new el(t,e,e&&e.ecModel)},__.prototype.diff=function(t){var e=this;return new Zx(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return u_(t,e)}),(function(t){return u_(e,t)}))},__.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},__.prototype.setVisual=function(t,e){this._visual=this._visual||{},g_(t)?l.m(this._visual,t):this._visual[t]=e},__.prototype.getItemVisual=function(t,e){return t=this._itemVisuals[t],t=t&&t[e],null==t?this.getVisual(e):t},__.prototype.hasItemVisual=function(){return 0<this._itemVisuals.length},__.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():g_(n)&&(n=l.m({},n)),i[e]=n),n},__.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,g_(e)?l.m(i,e):i[e]=n},__.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},__.prototype.setLayout=function(t,e){g_(t)?l.m(this._layout,t):this._layout[t]=e},__.prototype.getLayout=function(t){return this._layout[t]},__.prototype.getItemLayout=function(t){return this._itemLayouts[t]},__.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?l.m(this._itemLayouts[t]||{},e):e},__.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},__.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;da(n,this.dataType,t,e),this._graphicEls[t]=e},__.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},__.prototype.eachItemGraphicEl=function(t,e){l.k(this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},__.prototype.cloneShallow=function(t){return t=t||new __(this._schema||y_(this.dimensions,this._getDimInfo,this),this.hostModel),d_(t,this),t._store=this._store,t},__.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)))})},__.internalField=(l_=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 m_(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}}))},c_=function(t,e,n){return Pi(t._getCategory(e,n),null)},u_=function(t,e){var n=t._idList[e];return null==(n=null==n&&null!=t._idDimIdx?c_(t,t._idDimIdx,e):n)?"e\0\0"+e:n},h_=function(t){return l.t(t)?t:null!=t?[t]:[]},p_=function(t){var e=new __(t._schema||y_(t.dimensions,t._getDimInfo,t),t.hostModel);return d_(e,t),e},d_=function(t,e){l.k(v_.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,l.k(x_,(function(n){t[n]=l.d(e[n])})),t._calculationInfo=l.m({},e._calculationInfo)},void(f_=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=c_(t,o,e)),null==s&&null!=r&&(i[e]=s=c_(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 b_=__;function w_(t,e){Tc(t)||(t=kc(t));for(var n,i,o=(e=e||{}).coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],a=Object(l.f)(),s=[],u=(c=t,n=o,p=e.dimensionsCount,i=Math.max(c.dimensionsDetectedCount||1,n.length,r.length,p||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,d=h?s_(t):a_(r),p=e.encodeDefine,f=(!p&&e.encodeDefaulter&&(p=e.encodeDefaulter(t,u)),Object(l.f)(p)),g=new Rh(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 t_,null!=(i=e.name)&&null!=d.get(i)&&(n.name=n.displayName=i),null!=e.type&&(n.type=e.type),null!=e.displayName&&(n.displayName=e.displayName),g[t]=s.length,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=Oi(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)?d.get(t):t,null!=t&&t<u&&x(m(n[i]=t),e,i)})))}));var v=0;function x(t,e,n){null!=yu.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=Oi(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=((t,e,n)=>{if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t})(S,a,b),O.coordDimIndex=0,(!_||w<=0)&&(O.isExtraCoord=!0),w--),M(O),null!=O.type||Du(t,I)!==Iu.Must&&(!O.isExtraCoord||null==O.otherDims.itemName&&null==O.otherDims.seriesName)||(O.type="ordinal")}for(var T=s,C=Object(l.f)(),k=0;k<T.length;k++){var D=T[k],A=D.name,L=C.get(A)||0;0<L&&(D.name=A+(L-1)),L++,C.set(A,L)}return new i_({source:t,dimensions:s,fullDimensionCount:u,dimensionOmitted:c})}var S_=function(t){this.coordSysDims=[],this.axisMap=Object(l.f)(),this.categoryAxisMap=Object(l.f)(),this.coordSysName=t},M_={cartesian2d:function(t,e,n,i){var o=t.getReferringComponents("xAxis",Gi).models[0];t=t.getReferringComponents("yAxis",Gi).models[0];e.coordSysDims=["x","y"],n.set("x",o),n.set("y",t),I_(o)&&(i.set("x",o),e.firstCategoryDimIndex=0),I_(t)&&(i.set("y",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){t=t.getReferringComponents("singleAxis",Gi).models[0],e.coordSysDims=["single"],n.set("single",t),I_(t)&&(i.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){t=t.getReferringComponents("polar",Gi).models[0];var o=t.findAxisModel("radiusAxis");t=t.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",t),I_(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),I_(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),I_(t)&&(i.set(s,t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=a)}))}};function I_(t){return"category"===t.get("type")}function O_(t,e,n){var i,o,r,a,s,u,c,h,d,p=(n=n||{}).byIndex,f=n.stackedCoordDimension,g=(r_(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&&(p||a||!t.ordinalMeta||(a=t),s||"ordinal"===t.type||"time"===t.type||f&&f!==t.coordDim||(s=t))})),!s||p||a||(p=!0),s&&(u="__\0ecstackresult_"+t.id,c="__\0ecstackedover_"+t.id,a&&(a.createInvertedIndices=!0),h=s.coordDim,n=s.type,d=0,Object(l.k)(i,(function(t){t.coordDim===h&&d++})),e={name:u,coordDim:h,coordDimIndex:d,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},t={name:c,coordDim:c,coordDimIndex:d+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:p,stackedOverDimension:c,stackResultDimension:u}}function T_(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function C_(t,e){return T_(t,e)?t.getCalculationInfo("stackResultDimension"):e}var k_,D_=function(t,e,n){n=n||{};var i,o,r,a,s,u,c=e.getSourceManager(),h=!1,d=(t=(t?(h=!0,i=kc(t)):h=(i=c.getSource()).sourceFormat===mu,(t=>{var e=t.get("coordinateSystem"),n=new S_(e);if(e=M_[e])return e(t,n,n.axisMap,n.categoryAxisMap),n})(e)),o=t,d=(d=e).get("coordinateSystem"),d=tc.get(d),p=(p=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=Jx(t)),e})):p)||d&&(d.getDimensionsInfo?d.getDimensionsInfo():d.dimensions.slice())||["x","y"]),p=n.useEncodeDefaulter,f=(p=l.w(p)?p:p?l.h(Tu,d,e):null,d=w_(i,{coordDimensions:d,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:p,canOmitUnusedDimensions:!h}),p=d.dimensions,r=n.createInvertedIndices,(a=t)&&l.k(p,(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||(p[s].otherDims.itemName=0),s);n=h?null:c.getSharedDataStore(d),t=O_(e,{schema:d,store:n}),(p=new b_(d,e)).setCalculationInfo(t),c=null!=f&&(t=>{if(t.sourceFormat===mu)return t=(t=>{for(var e=0;e<t.length&&null==t[e];)e++;return t[e]})(t.data||[]),!l.t(ki(t))})(i)?function(t,e,n,i){return i===f?n:this.defaultDimValueGetter(t,e,n,i)}:null;return p.hasItemOption=!1,p.initData(h?i:n,null,c),p};function A_(){var t=null!==k_&&k_.apply(this,arguments)||this;return t.type=A_.type,t.hasSymbolVisual=!0,t}a(A_,k_=Md),A_.prototype.getInitialData=function(t){return D_(null,this,{useEncodeDefaulter:!0})},A_.prototype.getLegendIcon=function(t){var e=new qn,n=Qg("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=Qg(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},A_.type="series.line",A_.dependencies=["grid","polar"],A_.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 L_,P_=A_;function j_(t,e){var n,i=t.mapDimensionsAll("defaultedLabel"),o=i.length;if(1===o)return null!=(n=Kc(t,e,i[0]))?n+"":null;if(o){for(var r=[],a=0;a<i.length;a++)r.push(Kc(t,e,i[a]));return r.join(" ")}}function R_(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 N_(t,e,n,i){var o=L_.call(this)||this;return o.updateData(t,e,n,i),o}function E_(t,e){this.parent.drift(t,e)}a(N_,L_=qn),N_.prototype._createSymbol=function(t,e,n,i,o){this.removeAll(),o=Qg(t,-1,-1,2,2,null,o),o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=E_,this._symbolType=t,this.add(o)},N_.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},N_.prototype.getSymbolType=function(){return this._symbolType},N_.prototype.getSymbolPath=function(){return this.childAt(0)},N_.prototype.highlight=function(){Ua(this.childAt(0))},N_.prototype.downplay=function(){Za(this.childAt(0))},N_.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},N_.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},N_.prototype.updateData=function(t,e,n,i){this.silent=!1;var o,r,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,u=N_.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):vs(r,a,l,e),Ms(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,xs(r,a,l,e))),h&&this.childAt(0).stopAnimation("leave")},N_.prototype._updateCommon=function(t,e,n,i,o){var r,a,s,u,c,h,d,p,f=this.childAt(0),g=t.hostModel,y=(i&&(r=i.emphasisItemStyle,s=i.blurItemStyle,a=i.selectItemStyle,u=i.focus,c=i.blurScope,d=i.labelStatesModels,p=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"),d=ks(i),p=y.getShallow("scale"),m=i.getShallow("cursor")),t.getItemVisual(e,"symbolRotate")),m=(i=(f.attr("rotation",(y||0)*Math.PI/180||0),Jg(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 Vr?(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);Cs(f,d,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return x?t.getName(e):j_(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,v=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&0<p?+p:1,m.scaleX=this._sizeX*v,m.scaleY=this._sizeY*v,this.setSymbolScale(1),as(this,u,c,h)},N_.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},N_.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),o=fa(this).dataIndex,r=n&&n.animation;this.silent=i.silent=!0,n&&n.fadeLabel?(n=i.getTextContent())&&bs(n,{style:{opacity:0}},e,{dataIndex:o,removeOpt:r,cb:function(){i.removeTextContent()}}):i.removeTextContent(),bs(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:o,cb:t,removeOpt:r})},N_.getSymbolSize=function(t,e){return $g(t.getItemVisual(e,"symbolSize"))};var z_=N_;function V_(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 B_(t){return(t=null==t||Object(l.A)(t)?t:{isIgnore:t})||{}}function F_(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:ks(t),cursorStyle:t.get("cursor")}}function G_(t){this.group=new qn,this._SymbolCtor=t||z_}G_.prototype.updateData=function(t,e){this._progressiveEls=null,e=B_(e);var n=this.group,i=t.hostModel,o=this._data,r=this._SymbolCtor,a=e.disableAnimation,s=F_(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);V_(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 d,p,f=u(c);V_(t,f,c,e)?(d=t.getItemVisual(c,"symbol")||"circle",p=h&&h.getSymbolType&&h.getSymbolType(),!h||p&&p!==d?(n.remove(h),(h=new r(t,c,s,l)).setPosition(f)):(h.updateData(t,c,s,l),p={x:f[0],y:f[1]},a?h.attr(p):vs(h,p,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)}),i)})).execute(),this._getSymbolPoint=u,this._data=t},G_.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){n=t._getSymbolPoint(n),e.setPosition(n),e.markRedraw()}))},G_.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=F_(t),this._data=null,this.group.removeAll()},G_.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=B_(n);for(var o=t.start;o<t.end;o++){var r,a=e.getItemLayout(o);V_(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))}},G_.prototype.eachRendered=function(t){Wf(this._progressiveEls||this.group,t)},G_.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}),n.hostModel)})):e.removeAll()};var H_=G_;function W_(t,e,n){var i=t.getBaseAxis(),o=t.getOtherAxis(i),r=(n=((t,e)=>{var n=0;t=t.scale.getExtent();return"start"===e?n=t[0]:"end"===e?n=t[1]:Object(l.z)(e)&&!isNaN(e)?n=e: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 T_(e,t[0])&&(u=!0,t[0]=c),T_(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 Y_(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 X_="undefined"!=typeof Float32Array,U_=X_?Float32Array:Array;function Z_(t){return Object(l.t)(t)?X_?new Float32Array(t):t:new U_(t)}var q_=Math.min,K_=Math.max;function Q_(t,e){return isNaN(t)||isNaN(e)}function $_(t,e,n,i,o,r,a,s,l){for(var u,c,h,d,p=n,f=0;f<i;f++){var g=e[2*p],y=e[2*p+1];if(o<=p||p<0)break;if(Q_(g,y)){if(l){p+=r;continue}break}if(p===n)t[0<r?"moveTo":"lineTo"](g,y),h=g,d=y;else{var m=g-u,v=y-c;if(m*m+v*v<.5){p+=r;continue}if(0<a){for(var x=p+r,_=e[2*x],b=e[2*x+1];_===g&&b===y&&f<i;)f++,p+=r,_=e[2*(x+=r)],b=e[2*x+1],g=e[2*p],y=e[2*p+1];var w=f+1;if(l)for(;Q_(_,b)&&w<i;)w++,_=e[2*(x+=r)],b=e[2*x+1];m=0,v=0;var S,M,I,O,T,C,k,D,A,L=void 0,P=void 0;i<=w||Q_(_,b)?(k=g,D=y):(m=_-u,v=b-c,S=g-u,M=_-g,I=y-c,O=b-y,C=T=void 0,P="x"===s?(k=g-(A=0<m?1:-1)*(T=Math.abs(S))*a,D=y,L=g+A*(C=Math.abs(M))*a,y):"y"===s?(D=y-(A=0<v?1:-1)*(T=Math.abs(I))*a,L=k=g,y+A*(C=Math.abs(O))*a):(T=Math.sqrt(S*S+I*I),k=g-m*a*(1-(S=(C=Math.sqrt(M*M+O*O))/(C+T))),D=y-v*a*(1-S),P=y+v*a*S,L=q_(L=g+m*a*S,K_(_,g)),P=q_(P,K_(b,y)),L=K_(L,q_(_,g)),D=y-(v=(P=K_(P,q_(b,y)))-y)*T/C,k=q_(k=g-(m=L-g)*T/C,K_(u,g)),D=q_(D,K_(c,y)),L=g+(m=g-(k=K_(k,q_(u,g))))*C/T,y+(v=y-(D=K_(D,q_(c,y))))*C/T)),t.bezierCurveTo(h,d,k,D,g,y),h=L,d=P}else t.lineTo(g,y)}u=g,c=y,p+=r}return f}var J_,tb=function(){this.smooth=0,this.smoothConstraint=!0},eb=(a(nb,J_=Ar),nb.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},nb.prototype.getDefaultShape=function(){return new tb},nb.prototype.buildPath=function(t,e){var n=e.points,i=0,o=n.length/2;if(e.connectNulls){for(;0<o&&Q_(n[2*o-2],n[2*o-1]);o--);for(;i<o&&Q_(n[2*i],n[2*i+1]);i++);}for(;i<o;)i+=$_(t,n,i,o,o,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},nb.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,o=this.path.data,r=cr.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 d=o[l++],p=o[l++],f=o[l++],g=o[l++],y=a?pe(n,u,d,f,t,s):pe(i,c,p,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?he(i,c,p,g,x):he(n,u,d,f,x),a?[t,v]:[v,t]}n=f,i=g}}},nb);function nb(t){return t=J_.call(this,t)||this,t.type="ec-polyline",t}a(rb,ib=tb);var ib,ob=rb;function rb(){return null!==ib&&ib.apply(this,arguments)||this}a(ub,ab=Ar),ub.prototype.getDefaultShape=function(){return new ob},ub.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&&Q_(n[2*r-2],n[2*r-1]);r--);for(;o<r&&Q_(n[2*o],n[2*o+1]);o++);}for(;o<r;){var s=$_(t,n,o,r,r,1,e.smooth,a,e.connectNulls);$_(t,i,o+s-1,s,r,-1,e.stackedOnSmooth,a,e.connectNulls),o+=s+1,t.closePath()}};var ab,sb,lb=ub;function ub(t){return t=ab.call(this,t)||this,t.type="ec-polygon",t}function cb(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"])||0),h=(a-=c/2,s-=c/2,u+=c,r+=c,u=Math.ceil(u),a!==Math.floor(a)&&(a=Math.floor(a),u++),new qr({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,xs(h,{shape:{width:u,height:r,x:a,y:s}},n,null,i,c)),h}function hb(t,e,n){var i=t.getArea(),o=ri(i.r0,1),r=ri(i.r,1),a=new bp({shape:{cx:ri(t.cx,1),cy:ri(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,xs(a,{shape:{endAngle:i.endAngle,r:r}},n)),a}function db(t,e,n,i,o){return t?"polar"===t.type?hb(t,e,n):"cartesian2d"===t.type?cb(t,e,n,i,o):null:null}function pb(t,e){return t.type===e}function fb(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return 1}}function gb(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 yb(t,e){t=gb(t);var n=t[0],i=(t=t[1],e=gb(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 mb(t){return l.z(t)?t:t?.5:0}function vb(t,e,n,i,o){n=n.getBaseAxis();var r="x"===n.dim||"radius"===n.dim?0:1,a=[],s=0,l=[],u=[],c=[],h=[];if(o){for(s=0;s<t.length;s+=2){var d=e||t;isNaN(d[s])||isNaN(d[s+1])||h.push(t[s],t[s+1])}t=h}for(s=0;s<t.length-2;s+=2)switch(c[0]=t[s+2],c[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],a.push(u[0],u[1]),i){case"end":l[r]=c[r],l[1-r]=u[1-r],a.push(l[0],l[1]);break;case"middle":var p=[];l[r]=p[r]=(u[r]+c[r])/2,l[1-r]=u[1-r],p[1-r]=c[1-r],a.push(l[0],l[1]),a.push(p[0],p[1]);break;default:l[r]=u[r],l[1-r]=c[1-r],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function xb(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(),d=(n=(c&&e[0].coord>e[c-1].coord&&(e.reverse(),h.reverse()),((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(Oe.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(!d&&c)return e[0].coord<0?h[1]||e[c-1].color:h[0]||e[0].color;var p=n[0].coord-10,f=(c=n[d-1].coord+10,c-p);return f<.001?"transparent":(l.k(n,(function(t){t.offset=(t.coord-p)/f})),n.push({offset:d?n[d-1].offset:.5,color:h[1]||"transparent"}),n.unshift({offset:d?n[0].offset:.5,color:h[0]||"transparent"}),e=new nf(0,0,0,0,n,!0),e[a]=p,e[a+"2"]=c,e)}}}function _b(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||!((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*z_.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 bb(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 wb(t,e){return[t[2*e],t[2*e+1]]}function Sb(t){if(t.get(["endLabel","show"]))return 1;for(var e=0;e<wa.length;e++)if(t.get([wa[e],"endLabel","show"]))return 1}function Mb(t,e,n,i){var o,r,a,s,l,u,c,h,d;return pb(e,"cartesian2d")?(o=i.getModel("endLabel"),r=o.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=Sb(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,r,o,e)}:null,u=e.getBaseAxis().isHorizontal(),c=cb(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,d=Math.max(h.width,h.height),u?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)),l&&l(1,c),c):hb(e,n,i)}function Ib(){return null!==sb&&sb.apply(this,arguments)||this}a(Ib,sb=Jf),Ib.prototype.init=function(){var t=new qn,e=new H_;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t,this._changePolyState=l.c(this._changePolyState,this)},Ib.prototype.render=function(t,e,n){var i,o=t.coordinateSystem,r=this.group,a=t.getData(),s=t.getModel("lineStyle"),u=t.getModel("areaStyle"),c=a.getLayout("points")||[],h="polar"===o.type,d=this._coordSys,p=this._symbolDraw,f=this._polyline,g=this._polygon,y=this._lineGroup,m=(e=!e.ssr&&t.get("animation"),!u.isEmpty()),v=u.get("origin"),x=W_(o,a,v),_=(x=m&&((t,e,n)=>{if(!n.valueDim)return[];for(var i=e.count(),o=Z_(2*i),r=0;r<i;r++){var a=Y_(n,t,e,r);o[2*r]=a[0],o[2*r+1]=a[1]}return o})(o,a,x),t.get("showSymbol")),b=t.get("connectNulls"),w=_&&!h&&_b(t,a,o),S=this._data,M=(S&&S.eachItemGraphicEl((function(t,e){t.__temp&&(r.remove(t),S.setItemGraphicEl(e,null))})),_||p.remove(),r.add(y),!h&&t.get("step")),I=(o&&o.getArea&&t.get("clip",!0)&&(null!=(i=o.getArea()).width?(i.x-=.1,i.y-=.1,i.width+=.2,i.height+=.2):i.r0&&(i.r0-=.5,i.r+=.5)),this._clipShapeForSymbol=i,xb(a,o,n)||a.getVisual("style")[a.getVisual("drawType")]),O=(d=(f&&d.type===o.type&&M===this._step?(m&&!g?g=this._newPolygon(c,x):g&&!m&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(t,o,Ul(I)),(d=y.getClipPath())?xs(d,{shape:Mb(this,o,!1,t).shape},t):y.setClipPath(Mb(this,o,!0,t)),_&&p.updateData(a,{isIgnore:w,clipShape:i,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),fb(this._stackedOnPoints,x)&&fb(this._points,c)||(e?this._doUpdateAnimation(a,x,o,n,M,v,b):(M&&(x=x&&vb(x,c,o,M,b),c=vb(c,null,o,M,b)),f.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:x})))):(_&&p.updateData(a,{isIgnore:w,clipShape:i,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),e&&this._initSymbolLabelAnimation(a,o,i),M&&(x=x&&vb(x,c,o,M,b),c=vb(c,null,o,M,b)),f=this._newPolyline(c),m?g=this._newPolygon(c,x):g&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(t,o,Ul(I)),y.setClipPath(Mb(this,o,!0,t))),t.getModel("emphasis")),n=d.get("focus"),_=d.get("blurScope"),p=d.get("disabled"),w=(f.useStyle(l.i(s.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),cs(f,t,"lineStyle"),0<f.style.lineWidth&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(f.getState("emphasis").style.lineWidth=+f.style.lineWidth+1),fa(f).seriesIndex=t.seriesIndex,as(f,n,_,p),mb(t.get("smooth"))),e=t.get("smoothMonotone"),f.setShape({smooth:w,smoothMonotone:e,connectNulls:b}),g&&(i=a.getCalculationInfo("stackedOnSeries"),m=0,g.useStyle(l.i(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),i&&(m=mb(i.get("smooth"))),g.setShape({smooth:w,stackedOnSmooth:m,smoothMonotone:e,connectNulls:b}),cs(g,t,"areaStyle"),fa(g).seriesIndex=t.seriesIndex,as(g,n,_,p)),this._changePolyState);a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=O)})),this._polyline.onHoverStateChange=O,this._data=a,this._coordSys=o,this._stackedOnPoints=x,this._points=c,this._step=M,this._valueOrigin=v,t.get("triggerLineEvent")&&(this.packEventData(t,f),g)&&this.packEventData(t,g)},Ib.prototype.packEventData=function(t,e){fa(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},Ib.prototype.highlight=function(t,e,n,i){var o=t.getData(),r=Ei(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")||0,c=t.get("z")||0;s=((l=new z_(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 Jf.prototype.highlight.call(this,t,e,n,i)},Ib.prototype.downplay=function(t,e,n,i){var o,r=t.getData(),a=Ei(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()):Jf.prototype.downplay.call(this,t,e,n,i)},Ib.prototype._changePolyState=function(t){var e=this._polygon;Fa(this._polyline,t),e&&Fa(e,t)},Ib.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new eb({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e},Ib.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new lb({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n},Ib.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,d,p,f,g,y=t;y&&(f=[t.x,t.y],g=d=h=void 0,n&&(g=o?(p=n,f=e.pointToCoord(f),i?(h=p.startAngle,d=p.endAngle,-f[1]/180*Math.PI):(h=p.r0,d=p.r,f[0])):i?(h=n.x,d=n.x+n.width,t.x):(h=n.y+n.height,d=n.y,t.y)),p=d===h?0:(g-h)/(d-h),a&&(p=1-p),f=l.w(u)?u(r):s*p+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)}))},Ib.prototype._initOrUpdateEndLabel=function(t,e,n){var i,o,r,a=t.getModel("endLabel");Sb(t)?(i=t.getData(),o=this._polyline,(r=i.getLayout("points"))?(this._endLabel||((this._endLabel=new pa({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0),0<=(r=bb(r))&&(Cs(o,ks(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:r,defaultText:function(t,e,n){return null!=n?R_(i,n):j_(i,t)},enableTextSetter:!0},(n=a,r=(t=(t=e).getBaseAxis()).isHorizontal(),t=t.inverse,a=r?t?"right":"left":"center",r=r?"middle":t?"top":"bottom",{normal:{align:n.get("align")||a,verticalAlign:n.get("verticalAlign")||r}})),o.textConfig.position=null)):(o.removeTextContent(),this._endLabel=null)):this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},Ib.prototype._endLabelOnDuring=function(t,e,n,i,o,r,a){var s,l,u,c,h,d,p,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),p=void 0,1<=(f=(d=(h=((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){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]-d[0])?(1<f&&!g?(y=wb(s,d[0]),m.attr({x:y[0]+c,y:y[1]+r}),o&&(p=l.getRawValue(d[0]))):((y=v.getPointOn(a,e))&&m.attr({x:y[0]+c,y:y[1]+r}),f=l.getRawValue(d[0]),g=l.getRawValue(d[1]),o&&(p=Ui(n,u,f,g,h.t))),i.lastFrameIndex=d[0]):(y=wb(s,v=1===t||0<i.lastFrameIndex?d[0]:0),o&&(p=l.getRawValue(v)),m.attr({x:y[0]+c,y:y[1]+r})),o)&&"function"==typeof(a=Es(m)).setLabelText&&a.setLabelText(p)},Ib.prototype._doUpdateAnimation=function(t,e,n,i,o,r,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=(e=((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=[],d=[],p=[],f=[],g=W_(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=Y_(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}_&&(d.push(x),p.push(p.length))}p.sort((function(t,e){return f[t]-f[e]}));var T=Z_(r=l.length),C=Z_(r),k=Z_(r),D=Z_(r),A=[];for(v=0;v<p.length;v++){var L=p[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],k[P]=c[j],k[1+P]=c[1+j],D[P]=h[j],D[1+P]=h[1+j],A[v]=d[L]}return{current:T,next:C,stackedOnCurrent:k,stackedOnNext:D,status:A}})(this._data,t,this._stackedOnPoints,e,this._coordSys,this._valueOrigin),e.current),h=e.stackedOnCurrent,d=e.next,p=e.stackedOnNext;if(o&&(h=vb(e.stackedOnCurrent,e.current,n,o,a),c=vb(e.current,null,n,o,a),p=vb(e.stackedOnNext,e.next,n,o,a),d=vb(e.next,null,n,o,a)),3e3<yb(c,d)||l&&3e3<yb(h,p))s.stopAnimation(),s.setShape({points:d}),l&&(l.stopAnimation(),l.setShape({points:d,stackedOnPoints:p}));else{s.shape.__points=e.current,s.shape.points=c;n={shape:{points:d}};for(var f,g=(e.current!==c&&(n.shape.__points=e.next),s.stopAnimation(),vs(s,n,u),l&&(l.setShape({points:c,stackedOnPoints:h}),l.stopAnimation(),vs(l,{shape:{stackedOnPoints:p}},u),s.shape.points!==l.shape.points)&&(l.shape.points=s.shape.points),[]),y=e.status,m=0;m<y.length;m++)"="===y[m].cmd&&(f=t.getItemGraphicEl(y[m].idx1))&&g.push({el:f,ptIdx:m});s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<g.length;e++){var n=g[e].el,i=2*g[e].ptIdx;n.x=t[i],n.y=t[1+i],n.markRedraw()}}))}},Ib.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},Ib.type="line";var Ob=Ib;function Tb(t,e){return{seriesType:t,plan:Td(),reset:function(t){var n,i,o,r,a,s=t.getData(),u=t.coordinateSystem,c=e||t.pipelineContext.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"),T_(s,t[0])&&(t[0]=i),T_(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&&Z_(i*n),l=[],h=[],d=t.start,p=0;d<t.end;d++){var f,g=void 0;g=1===n?(f=o.get(r,d),u.dataToPoint(f,null,h)):(l[0]=o.get(r,d),l[1]=o.get(a,d),u.dataToPoint(l,null,h)),c?(s[p++]=g[0],s[p++]=g[1]):e.setItemLayout(d,g.slice())}c&&e.setLayout("points",s)}}}}}var Cb={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++)e<t[n]&&(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]}},kb=function(t){return Math.round(t.length/2)};function Db(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),n=Math.round(s/i),isFinite(n))&&1<n&&("lttb"===r?t.setData(o.lttbDownSample(o.mapDimension(a.dim),1/n)):"minmax"===r&&t.setData(o.minmaxDownSample(o.mapDimension(a.dim),1/n)),s=void 0,Object(l.C)(r)?s=Cb[r]:Object(l.w)(r)&&(s=r),s)&&t.setData(o.downSample(o.mapDimension(a.dim),1/n,s,kb))}}}var Ab="__ec_stack_";function Lb(t){return t.get("stack")||Ab+t.seriesIndex}function Pb(t){return t.dim+t.index}function jb(t,e){var n=[];return e.eachSeriesByType(t,(function(t){Vb(t)&&n.push(t)})),n}function Rb(t){var e=(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()),oi(t.get("barWidth"),i)),s=(r=oi(t.get("barMaxWidth"),i),oi(t.get("barMinWidth")||(Bb(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:Pb(o),stackId:Lb(t)})})),Nb(n)}function Nb(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)+"%"),oi(a,r)),u=oi(t.gap,1),c=t.remainedWidth,h=t.autoWidthCount,d=(c-s)/(h+(h-1)*u),p=(d=Math.max(d,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)),c-=(t.width=e)+u*e,h--):(e=d,n&&n<e&&(e=Math.min(n,c)),(e=i&&e<i?i:e)!==d&&(t.width=e,c-=e+u*e,h--))})),d=(c-s)/(h+(h-1)*u),d=Math.max(d,0),0),f=(Object(l.k)(o,(function(t,e){t.width||(t.width=d),p+=(i=t).width*(1+u)})),i&&(p-=i.width*u),-p/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 Eb(t,e){t=jb(t,e);var n=Rb(t);Object(l.k)(t,(function(t){var e=t.getData(),i=t.coordinateSystem.getBaseAxis();t=Lb(t),i=n[Pb(i)][t],t=i.offset;e.setLayout({bandWidth:i.bandWidth,offset:t,size:i.width})}))}function zb(t){return{seriesType:t,plan:Td(),reset:function(t){var e,n,i,o,r,a,s,l,u,c,h,d,p,f,g,y;if(Vb(t))return e=t.getData(),s=(n=t.coordinateSystem).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=T_(e,s)&&!!e.getCalculationInfo("stackedOnSeries"),c=i.isHorizontal(),h=(t=>{var e=t.model.get("startValue");return e=e||0,t.toGlobalCoord(t.dataToCoord("log"!==t.type||0<e?e:1))})(i),d=Bb(t),p=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=d&&Z_(3*s),m=d&&a&&Z_(3*s),v=d&&Z_(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))),k=void 0,D=void 0,A=void 0;c?(S=n.dataToPoint([M,I]),C=O=u?n.dataToPoint([T,I])[0]:O,k=S[1]+y,D=S[0]-O,A=g,Math.abs(D)<p&&(D=(D<0?-1:1)*p)):(S=n.dataToPoint([I,M]),u&&(O=n.dataToPoint([I,T])[1]),C=S[0]+y,k=O,D=g,A=S[1]-O,Math.abs(A)<p&&(A=(A<=0?-1:1)*p)),d?(l[w]=C,l[w+1]=k,l[w+2]=c?D:A,m&&(m[w]=c?x.x:C,m[w+1]=c?k:x.y,m[w+2]=_),v[i]=i):e.setItemLayout(i,{x:C,y:k,width:D,height:A}),w+=3}d&&e.setLayout({largePoints:l,largeDataIndices:v,largeBackgroundPoints:m,valueAxisHorizontal:c})}}}}}function Vb(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function Bb(t){return t.pipelineContext&&t.pipelineContext.large}a(Gb,Fb=Md),Gb.prototype.getInitialData=function(t,e){return D_(null,this,{useEncodeDefaulter:!0})},Gb.prototype.getMarkerPosition=function(t,e,n){var i,o,r=this.coordinateSystem;return r&&r.clampData?(i=r.clampData(t),o=r.dataToPoint(i),n?Object(l.k)(r.getAxes(),(function(t,n){if("category"===t.type&&null!=e){var r=t.getTicksCoords(),a=t.getTickModel().get("alignWithLabel"),s=i[n],l="x1"===e[n]||"y1"===e[n];if(l&&!a&&(s+=1),!(r.length<2))if(2===r.length)o[n]=t.toGlobalCoord(t.getExtent()[l?1:0]);else{for(var u=void 0,c=void 0,h=1,d=0;d<r.length;d++){var p=r[d].coord,f=d===r.length-1?r[d-1].tickValue+h:r[d].tickValue;if(f===s){c=p;break}if(f<s)u=p;else if(null!=u&&s<f){c=(p+u)/2;break}1===d&&(h=f-r[0].tickValue)}null==c&&(c=(u?r[r.length-1]:r[0]).coord),o[n]=t.toGlobalCoord(c)}}})):(n=(t=this.getData()).getLayout("offset"),t=t.getLayout("size"),r=r.getBaseAxis().isHorizontal()?0:1,o[r]+=n+t/2),o):[NaN,NaN]},Gb.type="series.__base_bar__",Gb.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"};var Fb;n=Gb;function Gb(){var t=null!==Fb&&Fb.apply(this,arguments)||this;return t.type=Gb.type,t}Md.registerClass(n);var Hb;Xg=n;function Wb(){var t=null!==Hb&&Hb.apply(this,arguments)||this;return t.type=Wb.type,t}a(Wb,Hb=Xg),Wb.prototype.getInitialData=function(){return D_(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},Wb.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},Wb.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return t<e?e:t},Wb.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},Wb.type="series.bar",Wb.dependencies=["grid","polar"],Wb.defaultOption=ol(Xg.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 Yb,Xb=Wb,Ub=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 Zb(t){return t=Yb.call(this,t)||this,t.type="sausage",t}a(Zb,Yb=Ar),Zb.prototype.getDefaultShape=function(){return new Ub},Zb.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,d=(c=Math.cos(l=h?l:u-(e?c:-c)),Math.sin(l)),p=Math.cos(u),f=Math.sin(u);h?(t.moveTo(c*o+n,d*o+i),t.arc(c*s+n,d*s+i,a,-Math.PI+l,l,!e)):t.moveTo(c*r+n,d*r+i),t.arc(n,i,r,l,u,!e),t.arc(p*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 qb=Zb;function Kb(t,e,n){return e*Math.sin(t)*(n?-1:1)}function Qb(t,e,n){return e*Math.cos(t)*(n?1:-1)}function $b(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 Rn(t,i)}))}}var Jb=Math.max,tw=Math.min;a(nw,ew=Jf),nw.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))},nw.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},nw.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},nw.prototype.eachRendered=function(t){Wf(this._progressiveEls||this.group,t)},nw.prototype._updateDrawMode=function(t){t=t.pipelineContext.large,null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},nw.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(),d=("cartesian2d"===c.type?o=h.isHorizontal():"polar"===c.type&&(o="angle"===h.dim),t.isAnimationEnabled()?t:null),p=((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=(p&&this._enableRealtimeSort(p,l,n),t.get("clip",!0)||p),g=(n=l,a=(r=c).getArea&&r.getArea(),!pb(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=cw[c.type](l,t),n=(n=o,new("polar"===c.type?bp:qr)({shape:xw(n,e,c),silent:!0,z2:0}));return n.useStyle(v.getItemStyle()),"cartesian2d"===c.type?n.setShape("r",x):n.setShape("cornerRadius",x),_[t]=n}l.diff(u).add((function(e){var n,i,r=l.getItemModel(e),a=cw[c.type](l,e,r);m&&M(e),l.hasValue(e)&&uw[c.type](a)&&(n=!1,f&&(n=iw[c.type](g,a)),i=ow[c.type](t,l,e,a,o,d,h.model,!1,y),p&&(i.forceLabelAnimation=!0),dw(i,l,e,r,a,t,o,"polar"===c.type),w?i.attr({shape:a}):p?rw(p,d,i,a,e,o,!1,!1):xs(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=cw[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):I.setShape("cornerRadius",x),_[e]=I),i=cw[c.type](l,e),vs(I,{shape:xw(o,i,c)},d,e)),u.getItemGraphicEl(n));l.hasValue(e)&&uw[c.type](a)?(i=!1,f&&(i=iw[c.type](g,a))&&s.remove(I),I?Ms(I):I=ow[c.type](t,l,e,a,o,d,h.model,!!I,y),p&&(I.forceLabelAnimation=!0),S?(n=I.getTextContent())&&null!=(n=Es(n)).prevValue&&(n.prevValue=n.value):dw(I,l,e,r,a,t,o,"polar"===c.type),w?I.attr({shape:a}):p?rw(p,d,I,a,e,o,!0,S):vs(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&&Ss(n,t,e)})).execute();var I=this._backgroundGroup||(this._backgroundGroup=new qn);I.removeAll();for(var O=0;O<_.length;++O)I.add(_[O]);s.add(I),this._backgroundEls=_,this._data=l},nw.prototype._renderLarge=function(t,e,n){this._clear(),mw(t,this.group),this._updateLargeClip(t)},nw.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),mw(e,this.group,this._progressiveEls,!0)},nw.prototype._updateLargeClip=function(t){t=t.get("clip",!0)&&db(t.coordinateSystem,!1,t);var e=this.group;t?e.setClipPath(t):e.removeClipPath()},nw.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)))},nw.prototype._dataSort=function(t,e,n){var i=[];return t.each(t.mapDimension(e.dim),(function(t,e){var o=n(e);i.push({dataIndex:e,mappedValue:null==o?NaN:o,ordinalNumber:t})})),i.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:Object(l.H)(i,(function(t){return t.ordinalNumber}))}},nw.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},nw.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},nw.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}))},nw.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})},nw.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},nw.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},nw.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},nw.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){Ss(e,t,fa(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},nw.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},nw.type="bar";var ew;Hg=nw;function nw(){var t=ew.call(this)||this;return t.type=nw.type,t._isFirstFrame=!0,t}var iw={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=Jb(e.x,t.x),s=tw(e.x+e.width,o),l=(t=Jb(e.y,t.y),tw(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),tw(e.r,t.r));t=Jb(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}},ow={cartesian2d:function(t,e,n,i,o,r,a,s,u){return i=new qr({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?qb:bp;var u,c,h=new l({shape:i,z2:1}),d=(h.name="item",hw(o));return h.calculateTextPosition=(u=d,c=({isRoundCap:l===qb}||{}).isRoundCap,function(t,e,n){var i=e.position;if(!i||i instanceof Array)return Nn(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,d=(l+h)/2,p=r.startAngle,f=r.endAngle,g=(p+f)/2,y=c?Math.abs(l-h)/2:0,m=Math.cos,v=Math.sin,x=a+l*m(p),_=s+l*v(p),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+d*m(p)+Kb(p,o+y,!1),_=s+d*v(p)+Qb(p,o+y,!1),b="right",w="middle";break;case"insideStartAngle":x=a+d*m(p)+Kb(p,y-o,!1),_=s+d*v(p)+Qb(p,y-o,!1),b="left",w="middle";break;case"middle":x=a+d*m(g),_=s+d*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+d*m(f)+Kb(f,o+y,!0),_=s+d*v(f)+Qb(f,o+y,!0),b="left",w="middle";break;case"insideEndAngle":x=a+d*m(f)+Kb(f,y-o,!0),_=s+d*v(f)+Qb(f,y-o,!0),b="right",w="middle";break;default:return Nn(t,e,n)}return(t=t||{}).x=x,t.y=_,t.align=b,t.verticalAlign=w,t}),r&&(d={},h.shape[l=o?"r":"endAngle"]=o?i.r0:i.startAngle,d[l]=i[l],(s?vs:xs)(h,{shape:d},r)),h}};function rw(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?vs:xs)(n,{shape:r},e,o,null),(a?vs:xs)(n,{shape:l},e?t.baseAxis.model:null,o)}function aw(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return 1}var sw=["x","y","width","height"],lw=["cx","cy","r","startAngle","endAngle"],uw={cartesian2d:function(t){return!aw(t,sw)},polar:function(t){return!aw(t,lw)}},cw={cartesian2d:function(t,e,n){t=t.getItemLayout(e);var i=n&&(e=t,i=(n=n).get(["itemStyle","borderColor"]))&&"none"!==i?(i=n.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),e=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height),Math.min(i,n,e)):0;n=0<t.width?1:-1,e=0<t.height?1:-1;return{x:t.x+n*i/2,y:t.y+e*i/2,width:t.width-n*i,height:t.height-e*i}},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 hw(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 dw(t,e,n,i,o,r,a,s){var u=e.getItemVisual(n,"style"),c=(s?r.get("roundCap")||(c=t.shape,h=$b(i.getModel("itemStyle"),c,!0),Object(l.m)(c,h),t.setShape(c)):(h=i.get(["itemStyle","borderRadius"])||0,t.setShape("r",h)),t.useStyle(u),i.getShallow("cursor")),h=(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");c=ks(i),Cs(t,c,{labelFetcher:r,labelDataIndex:n,defaultText:j_(r.getData(),n),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:h}),u=t.getTextContent(),s&&u&&(s=i.get(["label","position"]),t.textConfig.inside="middle"===s||null,((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?h:s,hw(a),i.get(["label","rotate"]))),zs(u,c,r.getRawValue(n),(function(t){return R_(e,t)})),h=i.getModel(["emphasis"]);as(t,h.get("focus"),h.get("blurScope"),h.get("disabled")),cs(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 pw,fw=function(){},gw=(a(yw,pw=Ar),yw.prototype.getDefaultShape=function(){return new fw},yw.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])},yw);function yw(t){return t=pw.call(this,t)||this,t.type="largeBar",t}function mw(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 gw({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 gw({shape:{points:o.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});l.baseDimIdx=r,l.largeDataIndices=a,l.barWidth=s,e.add(l),l.useStyle(o.getVisual("style")),l.style.stroke=null,fa(l).seriesIndex=t.seriesIndex,t.get("silent")||(l.on("mousedown",vw),l.on("mousemove",vw)),n&&n.push(l)}var vw=ig((function(t){t=((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 d=3*c;if(l[i]=u,l[o]=r[2+d],s[i]=r[d+i],s[o]=r[d+o],l[o]<0&&(s[o]+=l[o],l[o]=-l[o]),s[0]<=e&&e<=s[0]+l[0]&&s[1]<=n&&n<=s[1]+l[1])return a[c]}return-1})(this,t.offsetX,t.offsetY),fa(this).dataIndex=0<=t?t:null}),30,!1);function xw(t,e,n){var i,o;return pb(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 _w=Hg,bw=2*Math.PI,ww=Math.PI/180;function Sw(t,e){return tu(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Mw(t,e){var n,i=Sw(t,e),o=t.get("center"),r=t.get("radius"),a=(l.t(r)||(r=[0,r]),oi(i.width,e.getWidth())),s=(e=oi(i.height,e.getHeight()),Math.min(a,e)),u=oi(r[0],s/2);r=oi(r[1],s/2),s=t.coordinateSystem;return s=s?(n=(t=s.dataToPoint(o))[0]||0,t[1]||0):(n=oi((o=l.t(o)?o:[o,o])[0],a)+i.x,oi(o[1],e)+i.y),{cx:n,cy:s,r0:u,r:r}}function Iw(t,e,n){e.eachSeriesByType(t,(function(t){var e,i=t.getData(),o=i.mapDimension("value"),r=Sw(t,n),a=Mw(t,n),s=a.cx,l=a.cy,u=a.r,c=a.r0,h=-t.get("startAngle")*ww,d=(a=t.get("endAngle"),t.get("padAngle")*ww),p=(a="auto"===a?h-bw:-a*ww,t.get("minAngle")*ww+d),f=0,g=(i.each(o,(function(t){isNaN(t)||f++})),i.getSum(o)),y=Math.PI/(g||f)*2,m=t.get("clockwise"),v=t.get("roseType"),x=t.get("stillShowZeroSum"),_=i.getDataExtent(o),b=(_[0]=0,m?1:-1),w=[h,a],S=b*d/2,M=(w=(lr(w,!m),h=w[0],a=w[1],Ow(t)),w.startAngle=h,w.endAngle=a,w.clockwise=m,Math.abs(a-h)),I=M,O=0,T=h;i.setLayout({viewRect:r,r:u}),i.each(o,(function(t,e){var n,o,r,a;isNaN(t)?i.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:s,cy:l,r0:c,r:v?NaN:u}):((n="area"!==v?0===g&&x?y:t*y:M/f)<p?I-=n=p:O+=t,o=T+b*n,a=r=0,a=n<d?r=T+b*n/2:(r=T+S,o-S),i.setItemLayout(e,{angle:n,startAngle:r,endAngle:a,clockwise:m,cx:s,cy:l,r0:c,r:v?ii(t,_,[c,u]):u}),T=o)})),I<bw&&f&&(I<=.001?(e=M/f,i.each(o,(function(t,n){var o,r;isNaN(t)||(r=t=0,r=((o=i.getItemLayout(n)).angle=e)<d?t=h+b*(n+.5)*e:(t=h+b*n*e+S,h+b*(n+1)*e-S),o.startAngle=t,o.endAngle=r)}))):(y=I/O,T=h,i.each(o,(function(t,e){var n,o;isNaN(t)||(o=n=0,o=(t=(e=i.getItemLayout(e)).angle===p?p:t*y)<d?n=T+b*t/2:(n=T+S,T+b*t-S),e.startAngle=n,e.endAngle=o,T+=b*t)}))))}))}var Ow=zi();function Tw(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 Cw=Math.PI/180;function kw(t,e,n,i,o,r,a,s,l,u){if(!(t.length<2)){for(var c,h=t.length,d=0;d<h;d++)"outer"===t[d].position&&"labelLine"===t[d].labelAlignTo&&(c=t[d].label.x-u,t[d].linePoints[1][0]+=c,t[d].label.x=u);if(hv(t,l,l+a)){for(var p,f,g,y,m,v=t,x={list:[],maxY:0},_={list:[],maxY:0},b=0;b<v.length;b++)"none"===v[b].labelAlignTo&&(f=(p=v[b]).label.y>n?_:x,(g=Math.abs(p.label.y-n))>=f.maxY&&(m=p.label.x-e-p.len2*o,y=i+p.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(p));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;u=Math.sqrt(Math.abs(c*c*(1-u*u/a))),c=e+(u+l.len2)*o,u=c-l.label.x;Dw(l,l.targetTextWidth-u*o,!0),l.label.x=c}}}function Dw(t,e,n){var i,o,r,a,s,l,u;void 0===n&&(n=!1),null==t.labelStyleWidth&&(l=(s=(i=t.label).style).backgroundColor,u=(u=s.padding)?u[1]+u[3]:0,s=s.overflow,e<(r=(o=t.rect).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 Aw(t){return"center"===t.position}function Lw(t){var e,n,i=t.getData(),o=[],r=!1,a=(t.get("minShowLabelAngle")||0)*Cw,s=i.getLayout("viewRect"),u=i.getLayout("r"),c=s.width,h=s.x,d=s.y;s=s.height;function p(t){t.ignore=!0}if(i.each((function(t){var s,d,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"),k=O.get("alignTo"),D=oi(O.get("edgeDistance"),c),A=O.get("bleedMargin"),L=(t=t.getModel("labelLine"),oi(t.get("length"),c)),P=oi(t.get("length2"),c);Math.abs(S.endAngle-S.startAngle)<a?(Object(l.k)(M.states,p),M.ignore=!0,I&&(Object(l.k)(I.states,p),I.ignore=!0)):(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),d=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*d:S.r*d)+n)+3*d,f||(m=v+s*(L+u-S.r),S=x+d*(L+u-S.r),_=m+(s<0?-1:1)*P,g="edge"===k?s<0?h+D:h+c-D:_+(s<0?-C:C),m=[[v,x],[m,y=S],[_,S]]),f?"center":"edge"===k?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,d))<0&&(O=2*x+O),_=(O=0<d?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 dt(s,d),linePoints:m,textAlign:v,labelDistance:C,labelAlignTo:k,edgeDistance:D,bleedMargin:A,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;Aw(f[S])||(M.x<g?(b=Math.min(b,M.x),x):(w=Math.max(w,M.x),_)).push(f[S])}var I;for(S=0;S<f.length;S++)!Aw(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,Dw(O,I));kw(_,g,t,y,1,0,s,0,d,w),kw(x,g,t,y,-1,0,s,0,d,b);var O,T,C,k,D;for(S=0;S<f.length;S++)!Aw(O=f[S])&&O.linePoints&&(M=O.label,T=O.linePoints,C="edge"===O.labelAlignTo,k=(k=M.style.padding)?k[1]+k[3]:0,k=M.style.backgroundColor?0:k,k=O.rect.width+k,D=T[1][0]-T[2][0],C?M.x<g?T[2][0]=v+O.edgeDistance+k+O.labelDistance:T[2][0]=v+m-O.edgeDistance-k-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]+D),T[1][1]=T[2][1]=M.y)}for(var A=0;A<o.length;A++){var L,P=o[A],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,p),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,p),R.ignore=!0):(ov(L,P.minTurnAngle),((t,e,n)=>{if(n<=180&&0<n){n=n/180*Math.PI,Km.fromArray(t[0]),Qm.fromArray(t[1]),$m.fromArray(t[2]),dt.sub(Jm,Qm,Km),dt.sub(tv,$m,Qm);var i=Jm.len(),o=tv.len();if(!(i<.001||o<.001)&&(Jm.scale(1/i),tv.scale(1/o),Jm.dot(e)<Math.cos(n))){if(i=Xm(Qm.x,Qm.y,$m.x,$m.y,Km.x,Km.y,nv,!1),iv.fromArray(nv),o=Math.PI/2,e=o+Math.acos(tv.dot(e))-n,o<=e)dt.copy(iv,$m);else{if(iv.scaleAndAdd(tv,i/Math.tan(Math.PI/2-e)),n=$m.x!==Qm.x?(iv.x-Qm.x)/($m.x-Qm.x):(iv.y-Qm.y)/($m.y-Qm.y),isNaN(n))return;n<0?dt.copy(iv,Qm):1<n&&dt.copy(iv,$m)}iv.toArray(t[1])}}})(L,P.surfaceNormal,P.maxSurfaceAngle),R.setShape({points:L}),j.__hostTarget.textGuideLineConfig={anchor:new dt(L[0][0],L[0][1])}))}}a(Nw,Pw=bp),Nw.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)($b(a.getModel("itemStyle"),u,!0),u);isNaN(c.startAngle)?o.setShape(c):(i?(o.setShape(c),i=r.getShallow("animationType"),r.ecModel.ssr?(xs(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,xs(o,{shape:{r:u.r}},r,e)):null!=n?(o.setShape({startAngle:n,endAngle:n}),xs(o,{shape:{startAngle:u.startAngle,endAngle:u.endAngle}},r,e)):(o.shape.endAngle=u.startAngle,vs(o,{shape:{endAngle:u.endAngle}},r,e))):(Ms(o),vs(o,{shape:c},r,e)),o.useStyle(t.getItemVisual(e,"style")),cs(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)},$b(s.getModel("itemStyle"),u)),Object(l.m)(o.ensureState("select"),{x:c,y:i,shape:$b(a.getModel(["select","itemStyle"]),u)}),Object(l.m)(o.ensureState("blur"),{shape:$b(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}),as(this,s.get("focus"),s.get("blurScope"),s.get("disabled")))},Nw.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,Cs(this,ks(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 jp,this.setTextGuideLine(e)),sv(this,lv(i),{stroke:a,opacity:Object(l.Q)(o.get(["lineStyle","opacity"]),r,1)}))};var Pw,jw,Rw=Nw;function Nw(t,e,n){var i=Pw.call(this)||this,o=(i.z2=2,new pa);return i.setTextContent(o),i.updateData(t,e,n,!0),i}function Ew(){var t=null!==jw&&jw.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}a(Ew,jw=Jf),Ew.prototype.render=function(t,e,n,i){var o,r,a=t.getData(),s=this._data,u=this.group;if(!s&&0<a.count()){for(var c=a.getItemLayout(0),h=1;isNaN(c&&c.startAngle)&&h<a.count();++h)c=a.getItemLayout(h);c&&(o=c.startAngle)}this._emptyCircleSector&&u.remove(this._emptyCircleSector),0===a.count()&&t.get("showEmptyCircle")&&(r=Ow(t),(n=new bp({shape:Object(l.m)(Mw(t,n),r)})).useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=n,u.add(n)),a.diff(s).add((function(t){var e=new Rw(a,t,o);a.setItemGraphicEl(t,e),u.add(e)})).update((function(t,e){e=s.getItemGraphicEl(e),e.updateData(a,t,o),e.off("click"),u.add(e),a.setItemGraphicEl(t,e)})).remove((function(e){Ss(s.getItemGraphicEl(e),t,e)})).execute(),Lw(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=a)},Ew.prototype.dispose=function(){},Ew.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},Ew.type="pie";var zw=Ew;function Vw(t,e,n){e=Object(l.t)(e)?{coordDimensions:e}:Object(l.m)({encodeDefine:t.getEncode()},e);var i=t.getSource();e=w_(i,e).dimensions,e=new b_(e,t);return e.initData(i,n),e}function Bw(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}Bw.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},Bw.prototype.containName=function(t){return 0<=this._getRawData().indexOfName(t)},Bw.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},Bw.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)};var Fw,Gw=Bw,Hw=zi();function Ww(){return null!==Fw&&Fw.apply(this,arguments)||this}a(Ww,Fw=Md),Ww.prototype.init=function(t){Fw.prototype.init.apply(this,arguments),this.legendVisualProvider=new Gw(l.c(this.getData,this),l.c(this.getRawData,this)),this._defaultLabelLine(t)},Ww.prototype.mergeOption=function(){Fw.prototype.mergeOption.apply(this,arguments)},Ww.prototype.getInitialData=function(){return Vw(this,{coordDimensions:["value"],encodeDefaulter:l.h(Cu,this)})},Ww.prototype.getDataParams=function(t){var e,n=this.getData(),i=Hw(n),o=i.seats;o||(e=[],n.each(n.mapDimension("value"),(function(t){e.push(t)})),o=i.seats=ui(e,n.hostModel.get("percentPrecision"))),i=Fw.prototype.getDataParams.call(this,t);return i.percent=o[t]||0,i.$vars.push("percent"),i},Ww.prototype._defaultLabelLine=function(t){Ti(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},Ww.type="series.pie",Ww.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,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 Yw,Xw=Ww;function Uw(){var t=null!==Yw&&Yw.apply(this,arguments)||this;return t.type=Uw.type,t.hasSymbolVisual=!0,t}a(Uw,Yw=Md),Uw.prototype.getInitialData=function(t,e){return D_(null,this,{useEncodeDefaulter:!0})},Uw.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},Uw.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},Uw.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},Uw.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},Uw.type="series.scatter",Uw.dependencies=["grid","polar","geo","singleAxis","calendar"],Uw.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 Zw,qw=Uw,Kw=function(){},Qw=(a($w,Zw=Ar),$w.prototype.getDefaultShape=function(){return new Kw},$w.prototype.reset=function(){this.notClear=!1,this._off=0},$w.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)}},$w.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)}},$w.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},$w.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)},$w.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 wt(o-i/2,r-e/2,a-o+i,s-r+e)}return t},$w);function $w(t){return t=Zw.call(this,t)||this,t._off=0,t.hoverDataIdx=-1,t}function Jw(){this.group=new qn}Jw.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},Jw.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild((function(t){var n;null!=t.startIndex&&(n=2*(t.endIndex-t.startIndex),e=new Float32Array(e.buffer,4*t.startIndex*2,n)),t.setShape("points",e),t.reset()}))},Jw.prototype.incrementalPrepareUpdate=function(t){this._clear()},Jw.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))},Jw.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},Jw.prototype._create=function(){var t=new Qw({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},Jw.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=Qg(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),fa(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))}))},Jw.prototype.remove=function(){this._clear()},Jw.prototype._clear=function(){this._newAdded=[],this.group.removeAll()};var tS,eS=Jw;function nS(){var t=null!==tS&&tS.apply(this,arguments)||this;return t.type=nS.type,t}a(nS,tS=Jf),nS.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},nS.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},nS.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},nS.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||1e4<i.count())return{update:!0};t=Tb("").reset(t,e,n),t.progress&&t.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},nS.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},nS.prototype._getClipShape=function(t){if(t.get("clip",!0))return(t=t.coordinateSystem)&&t.getArea&&t.getArea(.1)},nS.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?eS:H_),this._isLargeDraw=e,this.group.removeAll()),this.group.add(n.group),n},nS.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},nS.prototype.dispose=function(){},nS.type="scatter";var iS,oS=nS;function rS(){return null!==iS&&iS.apply(this,arguments)||this}a(rS,iS=fu),rS.type="grid",rS.dependencies=["xAxis","yAxis"],rS.layoutMode="box",rS.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 aS=rS,sS=(lS.prototype.getNeedCrossZero=function(){return!this.option.scale},lS.prototype.getCoordSysModel=function(){},lS);function lS(){}a(hS,uS=fu),hS.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Gi).models[0]},hS.type="cartesian2dAxis";var uS,cS=hS;function hS(){return null!==uS&&uS.apply(this,arguments)||this}l.K(cS,sS);Xs={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,showMinLine:!0,showMaxLine:!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)"]}}},ro=l.I({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Xs),Ks=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}}},Xs);var dS={category:ro,value:Ks,time:l.I({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Ks),log:l.i({logBase:10},Ks)},pS=0;function fS(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++pS}function gS(t){return Object(l.A)(t)&&null!=t.value?t.value:t+""}fS.createByAxisModel=function(t){t=t.option;var e=t.data;e=e&&Object(l.H)(e,gS);return new fS({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},fS.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},fS.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return Object(l.C)(t)||i?(i&&!this._deduplication?(n=this.categories.length,this.categories[n]=t):null==(n=(e=this._getOrCreateMap()).get(t))&&(i?(n=this.categories.length,this.categories[n]=t,e.set(t,n)):n=NaN),n):t},fS.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(l.f)(this.categories))};var yS=fS,mS={value:1,category:1,time:1,log:1};function vS(t,e,n,i){Object(l.k)(mS,(function(o,r){var s,u=Object(l.I)(Object(l.I)({},dS[r],!0),i,!0);a(c,s=n),c.prototype.mergeDefaultAndTheme=function(t,e){var n=nu(this),i=n?ou(t):{};e=e.getTheme();Object(l.I)(t,e.get(r+"Axis")),Object(l.I)(t,this.getDefaultOption()),t.type=xS(t),n&&iu(t,i,n)},c.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=yS.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",xS)}function xS(t){return t.type||(t.data?"category":"value")}function _S(t){this._setting=t||{},this._extent=[1/0,-1/0]}_S.prototype.getSetting=function(t){return this._setting[t]},_S.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),e[1]<t[1]&&(e[1]=t[1])},_S.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},_S.prototype.getExtent=function(){return this._extent.slice()},_S.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},_S.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},_S.prototype.isBlank=function(){return this._isBlank},_S.prototype.setBlank=function(t){this._isBlank=t},Zs=_S,no(Zs);var bS=Zs;function wS(t){return"interval"===t.type||"log"===t.type}function SS(t,e,n,i){var o={},r=t[1]-t[0];r=o.interval=yi(r/e,!0),null!=n&&r<n&&(r=o.interval=n),null!=i&&i<r&&(r=o.interval=i),e=o.intervalPrecision=IS(r),n=o.niceTickExtent=[ri(Math.ceil(t[0]/r)*r,e),ri(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]),OS(i,0,r),OS(i,1,r),i[0]>i[1]&&(i[0]=i[1]),o}function MS(t){var e=Math.pow(10,gi(t));t/=e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,ri(t*e)}function IS(t){return si(t)+2}function OS(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function TS(t,e){return t>=e[0]&&t<=e[1]}function CS(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function kS(t,e){return t*(e[1]-e[0])+e[0]}a(AS,DS=bS),AS.prototype.parse=function(t){return null==t?NaN:Object(l.C)(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},AS.prototype.contain=function(t){return TS(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},AS.prototype.normalize=function(t){return CS(t=this._getTickNumber(this.parse(t)),this._extent)},AS.prototype.scale=function(t){return t=Math.round(kS(t,this._extent)),this.getRawOrdinalNumber(t)},AS.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},AS.prototype.getMinorTicks=function(t){},AS.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}}},AS.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&0<=t&&t<e.length?e[t]:t},AS.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&0<=t&&t<e.length?e[t]:t},AS.prototype.getLabel=function(t){if(!this.isBlank())return t=this.getRawOrdinalNumber(t.value),null==(t=this._ordinalMeta.categories[t])?"":t+""},AS.prototype.count=function(){return this._extent[1]-this._extent[0]+1},AS.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},AS.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},AS.prototype.getOrdinalMeta=function(){return this._ordinalMeta},AS.prototype.calcNiceTicks=function(){},AS.prototype.calcNiceExtent=function(){},AS.type="ordinal";var DS;Ws=AS;function AS(t){t=DS.call(this,t)||this,t.type="ordinal";var e=(e=t.getSetting("ordinalMeta"))||new yS({});return Object(l.t)(e)&&(e=new yS({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}bS.registerClass(Ws);var LS,PS=Ws,jS=ri;a(RS,LS=bS),RS.prototype.parse=function(t){return t},RS.prototype.contain=function(t){return TS(t,this._extent)},RS.prototype.normalize=function(t){return CS(t,this._extent)},RS.prototype.scale=function(t){return kS(t,this._extent)},RS.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},RS.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),e[1]<t[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},RS.prototype.getInterval=function(){return this._interval},RS.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=IS(t)},RS.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,r=[];if(e){n[0]<i[0]&&r.push(t?{value:jS(i[0]-e,o)}:{value:n[0]});for(var a=i[0];a<=i[1]&&(r.push({value:a}),(a=jS(a+e,o))!==r[r.length-1].value);)if(1e4<r.length)return[];var s=r.length?r[r.length-1].value:i[1];s<n[1]&&r.push(t?{value:jS(s+e,o)}:{value:n[1]})}return r},RS.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=jS(a.value+(s+1)*u);c>i[0]&&c<i[1]&&l.push(c),s++}n.push(l)}return n},RS.prototype.getLabel=function(t,e){return null==t?"":(null==(e=e&&e.precision)?e=si(t.value)||0:"auto"===e&&(e=this._intervalPrecision),Bl(jS(t.value,e,!0)))},RS.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=SS(i,t,e,n),this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent)},RS.prototype.calcNiceExtent=function(t){var e=this._extent;e[0]===e[1]&&(0!==e[0]?(n=Math.abs(e[0]),t.fixMax||(e[1]+=n/2),e[0]-=n/2):e[1]=1),isFinite(e[1]-e[0])||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var n=this._interval;t.fixMin||(e[0]=jS(Math.floor(e[0]/n)*n)),t.fixMax||(e[1]=jS(Math.ceil(e[1]/n)*n))},RS.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},RS.type="interval",vl=RS;function RS(){var t=null!==LS&&LS.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}bS.registerClass(vl);var NS,ES=vl;a(zS,NS=ES),zS.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Ml(t.value,xl[(t=>{switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}})(Sl(this._minLevelUnit))]||xl.second,e,this.getSetting("locale"))},zS.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({},ml);if(0<t.level)for(var s=0;s<_l.length;++s)a[_l[s]]="{primary|"+a[_l[s]]+"}";var u=n?!1===n.inherit?n:l.i(n,a):a,c=Il(t.value,i);if(u[c])r=u[c];else if(u.inherit){for(s=bl.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 Ml(new Date(t.value),r,i,o)},zS.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=((t,e,n,i)=>{var o=bl,r=0;function a(t,o,r){var a=[],s=!o.length;if(!((t,e,n,i)=>{function o(t){return Ol(h,t,i)===Ol(d,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=fi(e),d=fi(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")}})(Sl(t),i[0],i[1],n)){s&&(o=[{value:((t,e,n)=>{var i=new Date(t);switch(Sl(e)){case"year":case"month":i[jl(n)](0);case"day":i[Rl(n)](1);case"hour":i[Nl(n)](0);case"minute":i[El(n)](0);case"second":i[zl(n)](0),i[Vl(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,d=o[c+1].value;if(h!==d){var p=void 0,f=void 0,g=void 0;switch(t){case"year":p=Math.max(1,Math.round(e/yl/365)),f=Tl(n),g=n?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":u=e,p=6<(u/=30*yl)?6:3<u?3:2<u?2:1,f=Cl(n),g=jl(n);break;case"week":case"half-week":case"day":u=e,p=16<(u/=yl)?16:7.5<u?7:3.5<u?4:1.5<u?2:1,f=kl(n),g=Rl(n);break;case"half-day":case"quarter-day":case"hour":l=e,p=12<(l/=gl)?12:6<l?6:3.5<l?4:2<l?2:1,f=Dl(n),g=Nl(n);break;case"minute":p=BS(e,!0),f=Al(n),g=El(n);break;case"second":p=BS(e,!1),f=Ll(n),g=zl(n);break;case"millisecond":p=yi(e,!0),f=Pl(n),g=Vl(n)}M=S=w=b=_=x=v=m=y=void 0;for(var y=p,m=h,v=d,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-p})}}for(c=0;c<a.length;c++)r.push(a[c])}}for(var s=[],u=[],c=0,h=0,d=0;d<o.length&&r++<1e4;++d){var p=Sl(o[d]);if((t=>t===Sl(t))(o[d])){a(o[d],s[s.length-1]||[],u);var f=o[d+1]?Sl(o[d+1]):null;if(p!==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(p=(i[1]-i[0])/e,1.5*p<c&&p/1.5<h)break;if(s.push(g),p<c||t===o[d])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(d=0;d<v.length;++d)for(var b=v[d],w=0;w<b.length;++w)x.push({value:b[w].value,level:_-d});x.sort((function(t,e){return t.value-e.value}));var S=[];for(d=0;d<x.length;++d)0!==d&&x[d].value===x[d-1].value||S.push(x[d]);return S})(this._minLevelUnit,this._approxInterval,t,e),(n=n.concat(t)).push({value:e[1],level:0})),n},zS.prototype.calcNiceExtent=function(t){var e,n=this._extent;n[0]===n[1]&&(n[0]-=yl,n[1]+=yl),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]-yl),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},zS.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=VS.length,t=Math.min(((t,e,n,i)=>{for(;n<i;){var o=n+i>>>1;t[o][1]<e?n=1+o:i=o}return n})(VS,this._approxInterval,0,i),i-1);this._interval=VS[t][1],this._minLevelUnit=VS[Math.max(t-1,0)][0]},zS.prototype.parse=function(t){return Object(l.z)(t)?t:+fi(t)},zS.prototype.contain=function(t){return TS(this.parse(t),this._extent)},zS.prototype.normalize=function(t){return CS(this.parse(t),this._extent)},zS.prototype.scale=function(t){return kS(t,this._extent)},zS.type="time",Js=zS;function zS(t){return t=NS.call(this,t)||this,t.type="time",t}var VS=[["second",pl],["minute",fl],["hour",gl],["quarter-day",6*gl],["half-day",12*gl],["day",1.2*yl],["half-week",3.5*yl],["week",7*yl],["month",31*yl],["quarter",95*yl],["half-year",e/2],["year",e]];function BS(t,e){return 30<(t/=e?fl:pl)?30:20<t?20:15<t?15:10<t?10:5<t?5:2<t?2:1}bS.registerClass(Js);var FS,GS=Js,HS=bS.prototype,WS=ES.prototype,YS=ri,XS=Math.floor,US=Math.ceil,ZS=Math.pow,qS=Math.log;a(KS,FS=bS),KS.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();e=WS.getTicks.call(this,t);return l.H(e,(function(t){t=t.value;var e=ri(ZS(this.base,t));e=t===n[0]&&this._fixMin?QS(e,i[0]):e;return{value:t===n[1]&&this._fixMax?QS(e,i[1]):e}}),this)},KS.prototype.setExtent=function(t,e){var n=qS(this.base);t=qS(Math.max(0,t))/n,e=qS(Math.max(0,e))/n,WS.setExtent.call(this,t,e)},KS.prototype.getExtent=function(){var t=this.base,e=HS.getExtent.call(this);return e[0]=ZS(t,e[0]),e[1]=ZS(t,e[1]),t=this._originalScale.getExtent(),this._fixMin&&(e[0]=QS(e[0],t[0])),this._fixMax&&(e[1]=QS(e[1],t[1])),e},KS.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=qS(t[0])/qS(e),t[1]=qS(t[1])/qS(e),HS.unionExtent.call(this,t)},KS.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},KS.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,gi(n));for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&0<Math.abs(i);)i*=10;t=[ri(US(e[0]/i)*i),ri(XS(e[1]/i)*i)],this._interval=i,this._niceExtent=t}},KS.prototype.calcNiceExtent=function(t){WS.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},KS.prototype.parse=function(t){return t},KS.prototype.contain=function(t){return TS(t=qS(t)/qS(this.base),this._extent)},KS.prototype.normalize=function(t){return CS(t=qS(t)/qS(this.base),this._extent)},KS.prototype.scale=function(t){return t=kS(t,this._extent),ZS(this.base,t)},KS.type="log",Yg=KS;function KS(){var t=null!==FS&&FS.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new ES,t._interval=0,t}function QS(t,e){return YS(t,si(e))}Wg=Yg.prototype,Wg.getMinorTicks=WS.getMinorTicks,Wg.getLabel=WS.getLabel,bS.registerClass(Yg);var $S=Yg,JS=(tM.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(),e.get("min",!0));null==o&&(o=e.get("startValue",!0)),o=this._modelMinRaw=o,Object(l.w)(o)?this._modelMinNum=oM(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=oM(t,o)),o=this._modelMaxRaw=e.get("max",!0);Object(l.w)(o)?this._modelMaxNum=oM(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=oM(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=[Rn(t[0],1),Rn(t[1],1)])},tM.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}},tM.prototype.modifyDataMinMax=function(t,e){this[nM[t]]=e},tM.prototype.setDeterminedMinMax=function(t,e){this[eM[t]]=e},tM.prototype.freeze=function(){this.frozen=!0},tM);function tM(t,e,n){this._prepareParams(t,e,n)}var eM={min:"_determinedMin",max:"_determinedMax"},nM={min:"_dataMin",max:"_dataMax"};function iM(t,e,n){var i=t.rawExtentInfo;return i||(i=new JS(t,e,n),t.rawExtentInfo=i),i}function oM(t,e){return null==e?null:Object(l.l)(e)?NaN:t.parse(e)}function rM(t,e){var n,i,o,r,a,s,u=t.type,c=iM(t,e,t.getExtent()).calculate(),h=(t=(t.setBlank(c.isBlank),c.min),c.max),d=e.ecModel;return d&&"time"===u&&(u=jb("bar",d),n=!1,l.k(u,(function(t){n=n||t.getBaseAxis()===e.axis})),n)&&(d=Rb(u),u=t,i=h,d=d,s=(o=e).axis.getExtent(),s=Math.abs(s[1]-s[0]),void 0!==(d=((t,e,n)=>{if(t&&e)return null!=(t=t[Pb(e)])&&null!=n?t[Lb(n)]:t})(d,o.axis))&&(r=1/0,l.k(d,(function(t){r=Math.min(t.offset,r)})),a=-1/0,l.k(d,(function(t){a=Math.max(t.offset+t.width,a)})),r=Math.abs(r),a=Math.abs(a),i+=a/(o=r+a)*(s=(d=i-u)/(1-(r+a)/s)-d),u-=r/o*s),t=(d={min:u,max:i}).min,h=d.max),{extent:[t,h],fixMin:c.minFixed,fixMax:c.maxFixed}}function aM(t,e){var n=rM(t,e),i=n.extent,o=e.get("splitNumber"),r=(t instanceof $S&&(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 sM(t,e){if(e=e||t.get("type"))switch(e){case"category":return new PS({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new GS({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(bS.getClass(e)||ES)}}function lM(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(uM(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function uM(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function cM(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,o,r=n.getExtent(),a=n instanceof PS?n.count():(i=n.getTicks()).length,s=t.getLabelModel(),l=lM(t),u=1;40<a&&(u=Math.ceil(a/40));for(var c,h,d,p=0;p<a;p+=u){var f=l(i?i[p]:{value:r[0]+p},p),g=(f=s.getTextRect(f),f=f,c=s.get("rotate")||0,h=d=g=h=void 0,c=c*Math.PI/180,h=f.width,g=f.height,d=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 wt(f.x,f.y,d,h));o?o.union(g):o=g}return o}}function hM(t){return t=t.get("interval"),null==t?"auto":t}function dM(t){return"category"===t.type&&0===hM(t.getLabelModel())}function pM(t,e){var n={};return l.k(t.mapDimensionsAll(e),(function(e){n[C_(t,e)]=!0})),l.F(n)}function fM(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}fM.prototype.getAxis=function(t){return this._axes[t]},fM.prototype.getAxes=function(){return l.H(this._dimList,(function(t){return this._axes[t]}),this)},fM.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),l.n(this.getAxes(),(function(e){return e.scale.type===t}))},fM.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)};var gM,yM=["x","y"];function mM(t){return"interval"===t.type||"time"===t.type}function vM(){var t=null!==gM&&gM.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=yM,t}a(vM,gM=fM),vM.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,n,i,o=this.getAxis("x").scale,r=this.getAxis("y").scale;mM(o)&&mM(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=ct([],i))},vM.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},vM.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]))},vM.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},vM.prototype.containZone=function(t,e){t=this.dataToPoint(t),e=this.dataToPoint(e);var n=this.getArea();e=new wt(t[0],t[1],e[0]-t[0],e[1]-t[1]);return n.intersect(e)},vM.prototype.dataToPoint=function(t,e,n){n=n||[];var i,o=t[0],r=t[1];return this._transform&&null!=o&&isFinite(o)&&null!=r&&isFinite(r)?I(n,t,this._transform):(t=this.getAxis("x"),i=this.getAxis("y"),n[0]=t.toGlobalCoord(t.dataToCoord(o,e)),n[1]=i.toGlobalCoord(i.dataToCoord(r,e)),n)},vM.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},vM.prototype.pointToData=function(t,e){var n,i,o=[];return this._invTransform?I(o,t,this._invTransform):(n=this.getAxis("x"),i=this.getAxis("y"),o[0]=n.coordToData(n.toLocalCoord(t[0]),e),o[1]=i.coordToData(i.toLocalCoord(t[1]),e),o)},vM.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},vM.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,o=Math.min(n[0],n[1])-t;e=Math.max(e[0],e[1])-i+t,n=Math.max(n[0],n[1])-o+t;return new wt(i,o,e,n)};var xM=vM,_M=zi();function bM(t,e){return e=l.H(e,(function(e){return t.scale.parse(e)})),"time"===t.type&&0<e.length&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function wM(t){var e,n,i,o,r,a,s=t.getLabelModel().get("customValues");return s?(e=lM(t),n=t.scale.getExtent(),s=bM(t,s),s=l.n(s,(function(t){return t>=n[0]&&t<=n[1]})),{labels:l.H(s,(function(n){var i={value:n};return{formattedLabel:e(i),rawLabel:t.scale.getLabel(i),tickValue:n}}))}):"category"===t.type?(r=(s=t).getLabelModel(),a=MM(s,r),!r.get("show")||s.scale.isBlank()?{labels:[],labelCategoryInterval:a.labelCategoryInterval}:a):(r=(i=t).scale.getTicks(),o=lM(i),{labels:l.H(r,(function(t,e){return{level:t.level,formattedLabel:o(t,e),rawLabel:i.scale.getLabel(t),tickValue:t.value}}))})}function SM(t,e){var n,i,o,r,a,s,u=t.getTickModel().get("customValues");return u?(n=t.scale.getExtent(),u=bM(t,u),{ticks:l.n(u,(function(t){return t>=n[0]&&t<=n[1]}))}):"category"===t.type?(u=e,r=IM(e=t,"ticks"),a=hM(u),(s=OM(r,a))||(u.get("show")&&!e.scale.isBlank()||(i=[]),i=l.w(a)?kM(e,a,!0):"auto"===a?(s=MM(e,e.getLabelModel()),o=s.labelCategoryInterval,l.H(s.labels,(function(t){return t.tickValue}))):CM(e,o=a,!0),TM(r,a,{ticks:i,tickCategoryInterval:o}))):{ticks:l.H(t.scale.getTicks(),(function(t){return t.value}))}}function MM(t,e){var n,i=IM(t,"labels"),o=(e=hM(e),OM(i,e));return o||TM(i,e,{labels:l.w(e)?kM(t,e):CM(t,n="auto"===e?null!=(i=_M(o=t).autoInterval)?i:_M(o).autoInterval=o.calculateCategoryInterval():e),labelCategoryInterval:n})}function IM(t,e){return _M(t)[e]||(_M(t)[e]=[])}function OM(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function TM(t,e,n){return t.push({key:e,value:n}),n}function CM(t,e,n){for(var i=lM(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)),dM(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 kM(t,e,n){var i=t.scale,o=lM(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 DM=[0,1];function AM(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}function LM(t,e){e=(t[1]-t[0])/e/2,t[0]+=e,t[1]-=e}AM.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},AM.prototype.containData=function(t){return this.scale.contain(t)},AM.prototype.getExtent=function(){return this._extent.slice()},AM.prototype.getPixelPrecision=function(t){return li(t||this.scale.getExtent(),this._extent)},AM.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},AM.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&LM(n=n.slice(),i.count()),ii(t,DM,n,e)},AM.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&LM(n=n.slice(),i.count()),i=ii(t,n,DM,e);return this.scale.scale(i)},AM.prototype.pointToData=function(t,e){},AM.prototype.getTicksCoords=function(t){var e,n,i,o,r,a,s,u=(t=t||{}).tickModel||this.getTickModel(),c=SM(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=ri(t),e=ri(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[1],tickValue:n[0].tickValue}):(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,tickValue:r[1]+1},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},AM.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),t=this.scale.getMinorTicks(t=0<t&&t<100?t:5),Object(l.H)(t,(function(t){return Object(l.H)(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this))},AM.prototype.getViewLabels=function(){return wM(this).labels},AM.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},AM.prototype.getTickModel=function(){return this.model.getModel("axisTick")},AM.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},AM.prototype.calculateCategoryInterval=function(){o=(n=p=this).getLabelModel();var t={axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:o.get("rotate")||0,font:o.getFont()},e=lM(p),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=(o=p.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=p.dataToCoord(a+1)-p.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*(d=An(e({value:a}),t.font,"center","top")).width,d=1.3*d.height;u=Math.max(u,h,7),c=Math.max(c,d,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=_M(p.model),l=p.getExtent();var p=n.lastAutoInterval,f=n.lastTickCount;return null!=p&&null!=f&&Math.abs(p-s)<=1&&Math.abs(f-o)<=1&&s<p&&n.axisExtent0===l[0]&&n.axisExtent1===l[1]?s=p:(n.lastTickCount=o,n.lastAutoInterval=s,n.axisExtent0=l[0],n.axisExtent1=l[1]),s};var PM;n=AM;function jM(t,e,n,i,o){return t=PM.call(this,t,e,n)||this,t.index=0,t.type=i||"value",t.position=o||"bottom",t}a(jM,PM=n),jM.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},jM.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},jM.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},jM.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var RM=jM;function NM(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 EM(t){return"cartesian2d"===t.get("coordinateSystem")}function zM(t){var e={xAxisModel:null,yAxisModel:null};return l.k(e,(function(n,i){var o=i.replace(/Model$/,"");o=t.getReferringComponents(o,Gi).models[0];e[i]=o})),e}var VM=Math.log;function BM(t,e,n){var i=ES.prototype,o=i.getTicks.call(n),r=i.getTicks.call(n,!0),a=o.length-1,s=(n=i.getInterval.call(n),e=rM(t,e),e.extent),l=e.fixMin,u=(e=e.fixMax,"log"===t.type&&(u=VM(t.base),s=[VM(s[0])/u,VM(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],d=s[1];if(l&&e)c=(d-h)/a;else if(l)for(d=s[0]+c*a;d<s[1]&&isFinite(d)&&isFinite(s[1]);)c=MS(c),d=s[0]+c*a;else if(e)for(h=s[1]-c*a;h>s[0]&&isFinite(h)&&isFinite(s[0]);)c=MS(c),h=s[1]-c*a;else u=(c=a<t.getTicks().length-1?MS(c):c)*a,(h=ri((d=Math.ceil(s[1]/c)*c)-u))<0&&0<=s[0]?(h=0,d=ri(u)):0<d&&s[1]<=0&&(d=0,h=-ri(u));l=(o[0].value-r[0].value)/n,e=(o[a].value-r[a].value)/n,i.setExtent.call(t,h+c*l,d+c*e),i.setInterval.call(t,c),(l||e)&&i.setNiceExtent.call(t,h+c,d-c)}function FM(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=yM,this._initCartesian(t,e,n),this.model=t}function GM(t,e){return t.getCoordSysModel()===e}function HM(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)WM(r[n])&&(o=r[n]);else for(var a in r)if(r.hasOwnProperty(a)&&WM(r[a])&&!i[s(r[a])]){o=r[a];break}o&&(i[s(o)]=!0)}function s(t){return t.dim+"_"+t.index}}function WM(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}FM.prototype.getRect=function(){return this._rect},FM.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;wS(u)&&s.get("alignTicks")&&null==s.get("interval")?o.push(a):(aM(u,s),wS(u)&&(e=a))}o.length&&(e||aM((e=o.pop()).scale,e.model),Object(l.k)(o,(function(t){BM(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){HM(n,"y",t,o)})),Object(l.k)(n.y,(function(t){HM(n,"x",t,o)})),this.resize(this.model,e)},FM.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),o=(n=!n&&t.get("containLabel"),tu(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=cM(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()}))},FM.prototype.getAxis=function(t,e){if(t=this._axesMap[t],null!=t)return t[e||0]},FM.prototype.getAxes=function(){return this._axesList.slice()},FM.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]},FM.prototype.getCartesians=function(){return this._coordsList.slice()},FM.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},FM.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},FM.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,o=t.xAxisModel||i&&i.getReferringComponents("xAxis",Gi).models[0],r=t.yAxisModel||i&&i.getReferringComponents("yAxis",Gi).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}},FM.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},FM.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};function u(e){return function(n,i){var l,u;GM(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 RM(e,sM(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]++)}}e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),s.x&&s.y?(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 xM(r);a.master=i,a.model=t,i._coordsMap[r]=a,i._coordsList.push(a),a.addAxis(e),a.addAxis(o)}))}))):(this._axesMap={},this._axesList=[])},FM.prototype._updateScale=function(t,e){function n(t,e){Object(l.k)(pM(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;EM(t)&&(o=(i=zM(t)).xAxisModel,i=i.yAxisModel,GM(o,e))&&GM(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)},FM.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}},FM.create=function(t,e){var n=[];return t.eachComponent("grid",(function(i,o){var r=new FM(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;EM(t)&&(e=(n=zM(t)).xAxisModel,n=n.yAxisModel,i=e.getCoordSysModel().coordinateSystem,t.coordinateSystem=i.getCartesian(e.componentIndex,n.componentIndex))})),n},FM.dimensions=yM;var YM=FM,XM=Math.PI,UM=(ZM.prototype.hasBuilder=function(t){return!!qM[t]},ZM.prototype.add=function(t){qM[t](this.opt,this.axisModel,this.group,this._transformGroup)},ZM.prototype.getGroup=function(){return this.group},ZM.innerTextLayout=function(t,e,n){var i;e=hi(e-t),t=di(e)?(i=0<n?"top":"bottom","center"):di(e-XM)?(i=0<n?"bottom":"top","center"):(i="middle",0<e&&e<XM?0<n?"right":"left":0<n?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:i}},ZM.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},ZM.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},ZM);function ZM(t,e){this.group=new qn,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 qn({x:e.position[0],y:e.position[1],rotation:e.rotation}),t.updateTransform(),this._transformGroup=t}var qM={axisLine:function(t,e,n,i){var o,r,a,s,u,c,h,d=e.get(["axisLine","show"]);(d="auto"===d&&t.handleAutoShown?t.handleAutoShown("axisLine"):d)&&(d=e.axis.getExtent(),i=i.transform,o=[d[0],0],a=(r=[d[1],0])[0]<o[0],i&&(I(o,o,i),I(r,r,i)),s=Object(l.m)({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),kf((d=new zp({shape:{x1:o[0],y1:o[1],x2:r[0],y2:r[1]},style:s,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})).shape,d.style.lineWidth),d.anid="line",n.add(d),null!=(u=e.get(["axisLine","symbol"])))&&(i=e.get(["axisLine","symbolSize"]),Object(l.C)(u)&&(u=[u,u]),(Object(l.C)(i)||Object(l.z)(i))&&(i=[i,i]),d=Jg(e.get(["axisLine","symbolOffset"])||0,i),c=i[0],h=i[1],Object(l.k)([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((o[0]-r[0])*(o[0]-r[0])+(o[1]-r[1])*(o[1]-r[1]))}],(function(e,i){var l;"none"!==u[i]&&null!=u[i]&&(i=Qg(u[i],-c/2,-h/2,c,h,s.stroke,!0),l=e.r+e.offset,i.attr({rotation:e.rotate,x:(e=a?r:o)[0]+l*Math.cos(t.rotation),y:e[1]-l*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i))})))},axisTickLabel:function(t,e,n,i){var o,r,a,s,u,c=((t,e,n,i)=>{var o=n.axis,r=n.getModel("axisTick"),a=r.get("show");if((a="auto"===a&&i.handleAutoShown?i.handleAutoShown("axisTick"):a)&&!o.scale.isBlank()){a=r.getModel("lineStyle"),i=i.tickDirection*r.get("length");for(var s=JM(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=((t,e,n,i)=>{var o,r,a,s,u,c,h,d,p=n.axis,f=Object(l.O)(i.axisLabelShow,n.get(["axisLabel","show"]));if(f&&!p.scale.isBlank())return o=n.getModel("axisLabel"),r=o.get("margin"),a=p.getViewLabels(),f=(Object(l.O)(i.labelRotate,o.get("rotate"))||0)*XM/180,s=UM.innerTextLayout(i.rotation,f,i.labelDirection),u=n.getCategories&&n.getCategories(!0),c=[],h=UM.isLabelSilent(n),d=n.get("triggerEvent"),Object(l.k)(a,(function(f,g){var y="ordinal"===p.scale.type?p.scale.getRawOrdinalNumber(f.tickValue):f.tickValue,m=f.formattedLabel,v=f.rawLabel,x=o,_=(x=u&&u[y]&&(_=u[y],Object(l.A)(_))&&_.textStyle?new el(_.textStyle,o,n.ecModel):x).getTextColor()||n.get(["axisLine","lineStyle","color"]),b=p.dataToCoord(y),w=x.getShallow("align",!0)||s.textAlign,S=Object(l.P)(x.getShallow("alignMinLabel",!0),w),M=Object(l.P)(x.getShallow("alignMaxLabel",!0),w),I=x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||s.textVerticalAlign,O=Object(l.P)(x.getShallow("verticalAlignMinLabel",!0),I),T=Object(l.P)(x.getShallow("verticalAlignMaxLabel",!0),I),C=new pa({x:b,y:i.labelOffset+i.labelDirection*r,rotation:s.rotation,silent:h,z2:10+(f.level||0),style:Ds(x,{text:m,align:0===g?S:g===a.length-1?M:w,verticalAlign:0===g?O:g===a.length-1?T:I,fill:Object(l.w)(_)?_("category"===p.type?v:"value"===p.type?y+"":y,g):_})});C.anid="label_"+y,Gf({el:C,componentModel:n,itemName:m,formatterParamsExtra:{isTruncated:function(){return C.isTruncated},value:v,tickIndex:g}}),d&&((b=UM.makeAxisEventDataBase(n)).targetType="axisLabel",b.value=v,b.tickIndex=g,"category"===p.type&&(b.dataIndex=y),fa(C).eventData=b),e.add(C),C.updateTransform(),c.push(C),t.add(C),C.decomposeTransform()})),c})(n,i,e,t),d=(r=h,c=c,dM((o=e).axis)||(f=o.get(["axisLabel","showMinLabel"]),o=o.get(["axisLabel","showMaxLabel"]),m=(r=r||[])[0],g=r[1],a=r[r.length-1],r=r[r.length-2],s=(c=c||[])[0],y=c[1],u=c[c.length-1],c=c[c.length-2],!1===f?(KM(m),KM(s)):QM(m,g)&&(f?(KM(g),KM(y)):(KM(m),KM(s))),!1===o?(KM(a),KM(u)):QM(r,a)&&(o?(KM(r),KM(c)):(KM(a),KM(u)))),n),p=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=JM(v[b],p.transform,x,_,"minorticks_"+b),S=0;S<w.length;S++)d.add(w[S])}}e.get(["axisLabel","hideOverlap"])&&dv(uv(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,d,p=Object(l.O)(t.axisName,e.get("name"));p&&(d=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"===d?h[0]-r*c:"end"===d?h[1]+r*c:(h[0]+h[1])/2,$M(d)?t.labelOffset+u*c:0],null!=(c=e.get("nameRotate"))&&(c=c*XM/180),$M(d)?a=UM.innerTextLayout(t.rotation,null!=c?c:t.rotation,u):(a=((t,e,n,i)=>{var o;n=hi(n-t),t=i[0]>i[1],i="start"===e&&!t||"start"!==e&&t;return e=di(n-XM/2)?(o=i?"bottom":"top","center"):di(n-1.5*XM)?(o=i?"top":"bottom","center"):(o="middle",n<1.5*XM&&XM/2<n?i?"left":"right":i?"right":"left"),{rotation:n,textAlign:e,textVerticalAlign:o}})(t.rotation,d,c||0,h),null!=(s=t.axisNameAvailableWidth)&&(s=Math.abs(s/Math.sin(a.rotation)),isFinite(s)||(s=null))),u=o.getFont(),c=(d=e.get("nameTruncate",!0)||{}).ellipsis,h=Object(l.O)(t.nameTruncateMaxWidth,d.maxWidth,s),Gf({el:t=new pa({x:r[0],y:r[1],rotation:a.rotation,silent:UM.isLabelSilent(e),style:Ds(o,{text:p,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:p}),t.__fullText=p,t.anid="name",e.get("triggerEvent")&&((d=UM.makeAxisEventDataBase(e)).targetType="axisName",d.name=p,fa(t).eventData=d),i.add(t),t.updateTransform(),n.add(t),t.decomposeTransform())}};function KM(t){t&&(t.ignore=!0)}function QM(t,e){var n,i=t&&t.getBoundingRect().clone(),o=e&&e.getBoundingRect().clone();if(i&&o)return lt(n=ot([]),n,-t.rotation),i.applyTransform(at([],n,t.getLocalTransform())),o.applyTransform(at([],n,e.getLocalTransform())),i.intersect(o)}function $M(t){return"middle"===t||"center"===t}function JM(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 zp({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0}));kf(u.shape,u.style.lineWidth),u.anid=o+"_"+t[l].tickValue,r.push(u)}return r}var tI=UM;function eI(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,d;function p(o,c,h){var d,p,f=h.model.getModel("axisPointer",r),g=f.get("show");g&&("auto"!==g||o||oI(f))&&(null==c&&(c=f.get("triggerTooltip")),g=(f=o?((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"),null==(e=s.label||(s.label={})).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 el(s,n,i))})(h,u,r,i,o,c):f).get("snap"),o=f.get("triggerEmphasis"),d=rI(h.model),p=c||g||"category"===h.type,c=n.axesInfo[d]={key:d,axis:h,coordSys:t,axisPointerModel:f,triggerTooltip:c,triggerEmphasis:o,involveSeries:p,snap:g,useHandle:oI(f),seriesModels:[],linkGroup:null},e[d]=c,n.seriesInvolved=n.seriesInvolved||p,null!=(o=((t,e)=>{for(var n=e.model,i=e.dim,o=0;o<t.length;o++){var r=t[o]||{};if(nI(r[i+"AxisId"],n.id)||nI(r[i+"AxisIndex"],n.componentIndex)||nI(r[i+"AxisName"],n.name))return o}})(a,h)))&&((g=s[o]||(s[o]={axesInfo:{}})).axesInfo[d]=c,g.mapper=a[o].mapper,c.linkGroup=g)}t.axisPointerEnabled&&(c=rI(t.model),e=n.coordSysAxesInfo[c]={},u=(n.coordSysMap[c]=t).model.getModel("tooltip",o),Object(l.k)(t.getAxes(),Object(l.h)(p,!1,null)),t.getTooltipAxes)&&o&&u.get("show")&&(c="axis"===u.get("trigger"),h="cross"===u.get(["axisPointer","type"]),d=t.getTooltipAxes(u.get(["axisPointer","axis"])),(c||h)&&Object(l.k)(d.baseAxes,Object(l.h)(p,!h||"cross",c)),h)&&Object(l.k)(d.otherAxes,Object(l.h)(p,"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[rI(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 nI(t,e){return"all"===t||Object(l.t)(t)&&0<=Object(l.r)(t,e)||t===e}function iI(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[rI(t)]}function oI(t){return!!t.get(["handle","show"])}function rI(t){return t.type+"||"+t.id}var aI,sI={};function lI(){var t=null!==aI&&aI.apply(this,arguments)||this;return t.type=lI.type,t}a(lI,aI=Od),lI.prototype.render=function(t,e,n,i){var o,r,a,s,l,u;this.axisPointerClass&&(o=iI(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=oI(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"),aI.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},lI.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},lI.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},lI.prototype.dispose=function(t,e){this._disposeAxisPointer(e),aI.prototype.dispose.apply(this,arguments)},lI.prototype._doUpdateAxisPointerClass=function(t,e,n){var i,o=lI.getAxisPointerClass(this.axisPointerClass);o&&((i=(i=iI(i=t))&&i.axisPointerModel)?(this._axisPointer||(this._axisPointer=new o)).render(t,i,e,n):this._disposeAxisPointer(e))},lI.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},lI.registerAxisPointerClass=function(t,e){sI[t]=e},lI.getAxisPointerClass=function(t){return t&&sI[t]},lI.type="axis";var uI=lI,cI=zi();function hI(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=cI(t).splitAreaColors,d=l.f(),p=0;if(h)for(var f=0;f<u.length;f++){var g=h.get(u[f].tickValue);if(null!=g){p=(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&&d.set(v,p),e.add(new qr({anid:null!=v?"area_"+v:null,shape:{x:x,y:_,width:b,height:w},style:l.i({fill:a[p]},m),autoBatch:!0,silent:!0})),p=(p+1)%c}cI(t).splitAreaColors=d}}}function dI(t){cI(t).splitAreaColors=null}var pI,fI=["axisLine","axisTickLabel","axisName"],gI=["splitArea","splitLine","minorSplitLine"];a(yI,pI=uI),yI.prototype.render=function(t,e,n,i){this.group.removeAll();var o,r,a=this._axisGroup;this._axisGroup=new qn,this.group.add(this._axisGroup),t.get("show")&&(r=NM(o=t.getCoordSysModel(),t),r=new tI(t,l.m({handleAutoShown:function(e){for(var n=o.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(wS(n[i].getOtherAxis(t.axis).scale))return!0;return!1}},r)),l.k(fI,r.add,r),this._axisGroup.add(r.getGroup()),l.k(gI,(function(e){t.get([e,"show"])&&vI[e](this,this._axisGroup,t,o)}),this),i&&"changeAxisOrder"===i.type&&i.isInitSort||Nf(a,this._axisGroup,t),pI.prototype.render.call(this,t,e,n,i))},yI.prototype.remove=function(){dI(this)},yI.type="cartesianAxis",Hg=yI;function yI(){var t=null!==pI&&pI.apply(this,arguments)||this;return t.type=yI.type,t.axisPointerClass="CartesianAxisPointer",t}var mI,vI={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=!1!==n.get("showMinLine"),u=!1!==n.get("showMaxLine"),c=(a=l.t(a)?a:[a],i.coordinateSystem.getRect()),h=o.isHorizontal(),d=0,p=o.getTicksCoords({tickModel:n}),f=[],g=[],y=r.getLineStyle(),m=0;m<p.length;m++){var v,x=o.toGlobalCoord(p[m].coord);0===m&&!s||m===p.length-1&&!u||(v=p[m].tickValue,h?(f[0]=x,f[1]=c.y,g[0]=x,g[1]=c.y+c.height):(f[0]=c.x,f[1]=x,g[0]=c.x+c.width,g[1]=x),x=d++%a.length,kf((v=new zp({anid:null!=v?"line_"+v:null,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},style:l.i({stroke:a[x]},y),silent:!0})).shape,y.lineWidth),e.add(v))}}},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 d=0;d<s[h].length;d++){var p=o.toGlobalCoord(s[h][d].coord);p=(a?(l[0]=p,l[1]=r.y,u[0]=p,u[1]=r.y+r.height):(l[0]=r.x,l[1]=p,u[0]=r.x+r.width,u[1]=p),new zp({anid:"minor_line_"+s[h][d].tickValue,autoBatch:!0,shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:c,silent:!0}));kf(p.shape,c.lineWidth),e.add(p)}},splitArea:function(t,e,n,i){hI(t,e,n,i)}},xI=(a(_I,mI=Hg),_I.type="xAxis",_I);function _I(){var t=null!==mI&&mI.apply(this,arguments)||this;return t.type=_I.type,t}a(SI,bI=Hg),SI.type="yAxis";var bI,wI=SI;function SI(){var t=null!==bI&&bI.apply(this,arguments)||this;return t.type=xI.type,t}a(OI,MI=Od),OI.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new qr({shape:t.coordinateSystem.getRect(),style:Object(l.i)({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},OI.type="grid";var MI,II=OI;function OI(){var t=null!==MI&&MI.apply(this,arguments)||this;return t.type="grid",t}var TI,CI={offset:0};function kI(t){t.registerComponentView(II),t.registerComponentModel(aS),t.registerCoordinateSystem("cartesian2d",YM),vS(t,"x",cS,CI),vS(t,"y",cS,CI),t.registerComponentView(xI),t.registerComponentView(wI),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function DI(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]=AI(t)?t:LI(o)}))})),n.each((function(t){var e=l.o(i[t],AI)||LI(o);i[t].push(e.slice()),n.setItemLayout(t,i[t])})))}))}function AI(t){return!isNaN(t[0])&&!isNaN(t[1])}function LI(t){return[t.cx,t.cy]}function PI(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):e).push(n)})),t.polar=e),l.k(t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}function jI(){var t=null!==TI&&TI.apply(this,arguments)||this;return t.type=jI.type,t}a(jI,TI=Jf),jI.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=((t,e)=>{var n,i=t.getItemVisual(e,"symbol")||"circle";if("none"!==i)return n=$g(t.getItemVisual(e,"symbolSize")),i=Qg(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 Dp,i=new jp,o={shape:{points:s}},n.shape.points=c(s),i.shape.points=c(s),xs(n,o,t,e),xs(i,o,t,e),o=new qn,r=new qn,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),Ms(o),Ms(i),vs(i,l,t),vs(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})),cs(i,n,"lineStyle"),cs(o,n,"areaStyle"),n.getModel("areaStyle")),i.isEmpty()&&i.parentModel.isEmpty()),d=(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 Vr?(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(d);var i=a.getStore().get(a.getDimensionIndex(t.__dimIdx),e);null!=i&&!isNaN(i)||(i=""),Cs(t,ks(n),{labelFetcher:a.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:i,inheritColor:c,defaultOpacity:u.opacity})})),as(t,i.get("focus"),i.get("blurScope"),i.get("disabled"))})),this._data=a},jI.prototype.remove=function(){this.group.removeAll(),this._data=null},jI.type="radar";var RI,NI=jI;function EI(){var t=null!==RI&&RI.apply(this,arguments)||this;return t.type=EI.type,t.hasSymbolVisual=!0,t}a(EI,RI=Md),EI.prototype.init=function(t){RI.prototype.init.apply(this,arguments),this.legendVisualProvider=new Gw(l.c(this.getData,this),l.c(this.getRawData,this))},EI.prototype.getInitialData=function(t,e){return Vw(this,{generateCoord:"indicator_",generateCoordCount:1/0})},EI.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,sd(this,t));return Jh("section",{header:r,sortBlocks:!0,blocks:l.H(o,(function(e){var n=i.get(i.mapDimension(e.dim),t);return Jh("nameValue",{markerType:"subItem",markerColor:a,name:e.name,value:n,sortParam:n})}))})},EI.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)},EI.type="series.radar",EI.dependencies=["radar"],EI.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8};var zI,VI=EI;Xs=dS.value;function BI(t,e){return l.i({show:e},t)}function FI(){var t=null!==zI&&zI.apply(this,arguments)||this;return t.type=FI.type,t}a(FI,zI=fu),FI.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"),d=l.H(this.get("indicator")||[],(function(d){null!=d.max&&0<d.max&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var p=a;null!=d.color&&(p=l.i({color:d.color},a)),d=l.I(l.d(d),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:o,axisLabel:r,name:d.text,showName:s,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:h},!1),l.C(u)?(p=d.name,d.name=u.replace("{value}",null!=p?p:"")):l.w(u)&&(d.name=u(d.name,d)),p=new el(d,null,this.ecModel);return l.K(p,sS.prototype),p.mainType="radar",p.componentIndex=this.componentIndex,p}),this);this._indicatorModels=d},FI.prototype.getIndicatorModels=function(){return this._indicatorModels},FI.type="radar",FI.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"}},Xs.axisLine),axisLabel:BI(Xs.axisLabel,!1),axisTick:BI(Xs.axisTick,!1),splitLine:BI(Xs.splitLine,!0),splitArea:BI(Xs.splitArea,!0),indicator:[]};var GI,HI=FI,WI=["axisLine","axisTickLabel","axisName"];function YI(){var t=null!==GI&&GI.apply(this,arguments)||this;return t.type=YI.type,t}a(YI,GI=Od),YI.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},YI.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 tI(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(WI,t.add,t),this.group.add(t.getGroup())}),this)},YI.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],d=[],p=[];if("circle"===i)for(var f=n[0].getTicksCoords(),g=e.cx,y=e.cy,m=0;m<f.length;m++)s&&d[I(d,c,m)].push(new tp({shape:{cx:g,cy:y,r:f[m].coord}})),u&&m<f.length-1&&p[I(p,h,m)].push(new Mp({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&&d[I(d,c,m)].push(new jp({shape:{points:b}})),u&&_&&p[I(p,h,m-1)].push(new Dp({shape:{points:b.concat(_)}})),_=b.slice().reverse()}}var S=r.getLineStyle(),M=a.getAreaStyle();l.k(p,(function(t,e){this.group.add(Tf(t,{style:l.i({stroke:"none",fill:h[e%h.length]},M),silent:!0}))}),this),l.k(d,(function(t,e){this.group.add(Tf(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}},YI.type="radar";var XI,UI=YI;function ZI(t,e,n){return t=XI.call(this,t,e,n)||this,t.type="value",t.angle=0,t.name="",t}a(ZI,XI=n);var qI=ZI;function KI(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=Object(l.H)(t.getIndicatorModels(),(function(t,e){e="indicator_"+e;var n=new qI(e,new ES);return n.name=t.get("name"),(n.model=t).axis=n,this.dimensions.push(e),n}),this),this.resize(t,n)}KI.prototype.getIndicatorAxes=function(){return this._indicatorAxes},KI.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},KI.prototype.coordToPoint=function(t,e){return e=this._indicatorAxes[e].angle,[this.cx+t*Math.cos(e),this.cy-t*Math.sin(e)]},KI.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))]},KI.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),o=(e=e.getHeight(),Math.min(i,e)/2);this.cx=oi(n[0],i),this.cy=oi(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=oi(i[0],o),this.r=oi(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)},KI.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 ES;r.setExtent(0,o),r.setInterval(1),Object(l.k)(n,(function(t,e){BM(t.scale,t.model,r)}))},KI.prototype.convertToPixel=function(t,e,n){return null},KI.prototype.convertFromPixel=function(t,e,n){return null},KI.prototype.containPoint=function(t){return!1},KI.create=function(t,e){var n=[];return t.eachComponent("radar",(function(t){var i=new KI(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},KI.dimensions=[];var QI=KI;function $I(t){t.registerCoordinateSystem("radar",QI),t.registerComponentModel(HI),t.registerComponentView(UI),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 JI,tO="\0_ec_interaction_mutex";function eO(t,e){return nO(t)[e]}function nO(t){return t[tO]||(t[tO]={})}function iO(t){var e=JI.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 oO(t,e,n,i,o){t.pointerChecker&&t.pointerChecker(i,o.originX,o.originY)&&(Q(i.event),rO(t,e,n,i,o))}function rO(t,e,n,i,o){o.isAvailableBehavior=Object(l.c)(aO,null,n,i),t.trigger(e,o)}function aO(t,e,n){return n=n[t],!t||n&&(!Object(l.C)(n)||e.event[n+"Key"])}jm({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},l.L),a(iO,JI=L),iO.prototype.isDragging=function(){return this._dragging},iO.prototype.isPinching=function(){return this._pinching},iO.prototype.setPointerChecker=function(t){this.pointerChecker=t},iO.prototype.dispose=function(){this.disable()},iO.prototype._mousedownHandler=function(t){if(!$(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},iO.prototype._mousemoveHandler=function(t){var e,n,i,o,r,a;this._dragging&&aO("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!eO(this._zr,"globalPan")&&(r=(e=t.offsetX)-(i=this._x),a=(n=t.offsetY)-(o=this._y),this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&Q(t.event),rO(this,"pan","moveOnMouseMove",t,{dx:r,dy:a,oldX:i,oldY:o,newX:e,newY:n,isAvailableBehavior:null}))},iO.prototype._mouseupHandler=function(t){$(t)||(this._dragging=!1)},iO.prototype._mousewheelHandler=function(t){var e=aO("zoomOnMouseWheel",t,this._opt),n=aO("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,oO(this,"zoom","zoomOnMouseWheel",t,{scale:0<i?e:1/e,originX:r,originY:a,isAvailableBehavior:null})),n)&&oO(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})},iO.prototype._pinchHandler=function(t){eO(this._zr,"globalPan")||oO(this,"zoom",null,t,{scale:1<t.pinchScale?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})};var sO=iO;function lO(t,e,n){t=t.target,t.x+=e,t.y+=n,t.dirty()}function uO(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 cO,hO={axisPointer:1,tooltip:1,brush:1};function dO(t,e,n){return e=e.getComponentByElement(t.topTarget),t=e&&e.coordinateSystem,e&&e!==n&&!hO.hasOwnProperty(e.mainType)&&t&&t.model!==n}function pO(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 fO={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"},gO=Object(l.F)(fO),yO={"alignment-baseline":"textBaseline","stop-color":"stopColor"},mO=Object(l.F)(yO),vO=(xO.prototype.parse=function(t,e){e=e||{};t=pO(t);for(var n,i,o=(this._defsUsePending=[],new qn),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),IO(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,d=0;d<h.length;d++){var p=h[d];p[0].style[p[1]]=c[p[2]]}return this._defsUsePending=[],(n=a&&4<=(t=kO(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=jO(n,{x:0,y:0,width:s,height:l}),e.ignoreViewBox||(a=o,(o=new qn).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 qr({shape:{x:0,y:0,width:s,height:l}})),{root:o,width:s,height:l,viewBoxRect:n,viewBoxTransform:i,named:r}},xO.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=cO[u])&&Object(l.q)(cO,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=_O[u])&&Object(l.q)(_O,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},xO.prototype._parseText=function(t,e){var n=new jr({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0}),i=(t=(SO(e,n),IO(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},xO.internalField=void(cO={g:function(t,e){var n=new qn;return SO(e,n),IO(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new qr;return SO(e,n),IO(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 tp;return SO(e,n),IO(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 zp;return SO(e,n),IO(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 ip;return SO(e,n),IO(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=MO(i)),i=new Dp({shape:{points:n||[]},silent:!0});return SO(e,i),IO(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=MO(i)),i=new jp({shape:{points:n||[]},silent:!0});return SO(e,i),IO(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new Vr;return SO(e,n),IO(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 qn;return SO(e,n),IO(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 qn);return SO(e,o),IO(t,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(i),o},path:function(t,e){var n=Zd(t.getAttribute("d")||"");return SO(e,n),IO(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),xO);function xO(){this._defs={},this._root=null}var _O={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 nf(e,n,i,o);return bO(t,e),wO(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 rf(e,n,i);return bO(t,e),wO(t,e),e}};function bO(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function wO(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,PO(o,i={},i),i=i.stopColor||o.getAttribute("stop-color")||"#000000",e.colorStops.push({offset:n,color:i})),o=o.nextSibling}function SO(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Object(l.i)(e.__inheritedStyle,t.__inheritedStyle))}function MO(t){for(var e=kO(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 IO(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(DO,(function(t,e,n){return c.push(e,n),""}));for(var d=c.length-1;0<d;d-=2){var p=c[d-1],f=kO(c[d]);switch(h=h||it(),p){case"translate":st(h,h,[parseFloat(f[0]),parseFloat(f[1]||"0")]);break;case"scale":ut(h,h,[parseFloat(f[0]),parseFloat(f[1]||f[0])]);break;case"rotate":lt(h,h,-parseFloat(f[0])*AO,[parseFloat(f[1]||"0"),parseFloat(f[2]||"0")]);break;case"skewX":var g=Math.tan(parseFloat(f[0])*AO);at(h,[1,0,g,1,0,0],h);break;case"skewY":g=Math.tan(parseFloat(f[0])*AO),at(h,[1,g,0,1,0,0],h);break;case"matrix":h[0]=parseFloat(f[0]),h[1]=parseFloat(f[1]),h[2]=parseFloat(f[2]),h[3]=parseFloat(f[3]),h[4]=parseFloat(f[4]),h[5]=parseFloat(f[5])}}e.setLocalTransform(h)}if(PO(t,a,s),!i){for(var y=t,m=a,v=s,x=0;x<gO.length;x++){var _=gO[x];null!=(b=y.getAttribute(_))&&(m[fO[_]]=b)}for(x=0;x<mO.length;x++){var b;_=mO[x];null!=(b=y.getAttribute(_))&&(v[yO[_]]=b)}}}r.style=r.style||{},null!=a.fill&&(r.style.fill=TO(r,"fill",a.fill,n)),null!=a.stroke&&(r.style.stroke=TO(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)(kO(a.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(r.invisible=!0),"none"===a.display&&(r.ignore=!0)}var OO=/^url\(\s*#(.*?)\)/;function TO(t,e,n,i){var o=n&&n.match(OO);if(!o)return"none"===n?null:n;n=Object(l.T)(o[1]),i.push([t,e,n])}var CO=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function kO(t){return t.match(CO)||[]}var DO=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,AO=Math.PI/180,LO=/([^\s:;]+)\s*:\s*([^:;]+)/g;function PO(t,e,n){var i,o=t.getAttribute("style");if(o)for(LO.lastIndex=0;null!=(i=LO.exec(o));){var r=i[1],a=Object(l.q)(fO,r)?fO[r]:null;a=(a&&(e[a]=i[2]),Object(l.q)(yO,r)?yO[r]:null);a&&(n[a]=i[2])}}function jO(t,e){var n=e.width/t.width;n=Math.min(n,e.height/t.height);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 RO=1e-8;function NO(t,e){return Math.abs(t-e)<RO}function EO(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+=yr(o[0],o[1],a[0],a[1],e,n),o=a}var s=t[0];return NO(o[0],s[0])&&NO(o[1],s[1])||(i+=yr(o[0],o[1],s[0],s[1],e,n)),0!==i}var zO=[];function VO(t,e){for(var n=0;n<t.length;n++)I(t[n],t[n],e)}function BO(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 FO(t){this.name=t}FO.prototype.setCenter=function(t){this._center=t},FO.prototype.getCenter=function(){return this._center||(this._center=this.calcCenter())},ro=FO;var GO,HO=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},WO=function(t){this.type="linestring",this.points=t},YO=(a(XO,GO=ro),XO.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],d=a[c-1][1],p=0;p<c;p++){var f=a[p][0],g=a[p][1],y=h*g-f*d;s+=y,l+=(h+f)*y,u+=(d+g)*y,h=f,d=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]},XO.prototype.getBoundingRect=function(t){var e,n,i,o=this._rect;return o&&!t||(e=[1/0,1/0],n=[-1/0,-1/0],i=this.geometries,Object(l.k)(i,(function(i){"polygon"===i.type?BO(i.exterior,e,n,t):Object(l.k)(i.points,(function(i){BO(i,e,n,t)}))})),isFinite(e[0])&&isFinite(e[1])&&isFinite(n[0])&&isFinite(n[1])||(e[0]=e[1]=n[0]=n[1]=0),o=new wt(e[0],e[1],n[0]-e[0],n[1]-e[1]),t)||(this._rect=o),o},XO.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(e.contain(t[0],t[1]))t:for(var i=0,o=n.length;i<o;i++){var r=n[i];if("polygon"===r.type){var a=r.interiors;if(EO(r.exterior,t[0],t[1])){for(var s=0;s<(a?a.length:0);s++)if(EO(a[s],t[0],t[1]))continue t;return!0}}}return!1},XO.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 wt(t,e,n,i)),o.calculateTransform(r)),s=this.geometries,u=0;u<s.length;u++){var c=s[u];"polygon"===c.type?(VO(c.exterior,a),Object(l.k)(c.interiors,(function(t){VO(t,a)}))):Object(l.k)(c.points,(function(t){VO(t,a)}))}(o=this._rect).copy(r),this._center=[o.x+o.width/2,o.y+o.height/2]},XO.prototype.cloneShallow=function(t){return t=new XO(t=null==t?this.name:t,this.geometries,this._center),t._rect=this._rect,t.transformTo=null,t},XO);function XO(t,e,n){return t=GO.call(this,t)||this,t.type="geoJSON",t.geometries=e,t._center=n&&[n[0],n[1]],t}a(qO,UO=ro),qO.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=(e=[e.x+e.width/2,e.y+e.height/2],ot(zO)),i=t;i&&!i.isGeoSVGGraphicRoot;)at(n,i.getLocalTransform(),n),i=i.parent;return ct(n,n),I(e,e,n),e};var UO,ZO=qO;function qO(t,e){return t=UO.call(this,t)||this,t.type="geoSVG",t._elOnlyForCalculate=e,t}var KO=Object(l.f)(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),QO=($O.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 ZO(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}},$O.prototype._buildGraphic=function(t){var e,n,i,o;try{n=(e=t&&(i=t,o={ignoreViewBox:!0,ignoreRootClip:!0},(new vO).parse(i,o))||{}).root,Object(l.b)(null!=n)}catch(t){throw new Error("Invalid svg format\n"+t.message)}t=new qn;var r,a,s,u,c=(t.add(n),t.isGeoSVGGraphicRoot=!0,e.width),h=e.height,d=e.viewBoxRect,p=this._boundingRect,f=(p||(u=s=a=r=void 0,null!=c?(r=0,s=c):d&&(r=d.x,s=d.width),null!=h?(a=0,u=h):d&&(a=d.y,u=d.height),null!=r&&null!=a||(c=n.getBoundingRect(),null==r&&(r=c.x,s=c.width),null==a&&(a=c.y,u=c.height)),p=this._boundingRect=new wt(r,a,s,u)),d&&(h=jO(d,p),n.scaleX=n.scaleY=h.scale,n.x=h.x,n.y=h.y),t.setClipPath(new qr({shape:p.plain()})),[]);return Object(l.k)(e.named,(function(t){null!=KO.get(t.svgNodeTagLower)&&(f.push(t),(t=t.el).silent=!1,t.isGroup)&&t.traverse((function(t){t.silent=!1}))})),{root:t,boundingRect:p,named:f}},$O.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},$O.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},$O);function $O(t,e){this.type="geoSVG",this._usedGraphicMap=Object(l.f)(),this._freedGraphics=[],this._mapName=t,this._parsedXML=pO(e)}function JO(t,e,n){for(var i=0;i<t.length;i++)t[i]=tT(t[i],e[i],n)}function tT(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);i.push([(o=s+=o)/n,(r=l+=r)/n])}return i}function eT(t,e){var n,i,o;return t=(n=t).UTF8Encoding?(null==(o=(i=n).UTF8Scale)&&(o=1024),l.k(i.features,(function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=tT(i,n,o);break;case"Polygon":case"MultiLineString":JO(i,n,o);break;case"MultiPolygon":l.k(i,(function(t,e){return JO(t,n[e],o)}))}})),i.UTF8Encoding=!1,i):n,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 HO(r[0],r.slice(1)));break;case"MultiPolygon":l.k(i.coordinates,(function(t){t[0]&&o.push(new HO(t[0],t.slice(1)))}));break;case"LineString":o.push(new WO([i.coordinates]));break;case"MultiLineString":o.push(new WO(i.coordinates))}return t=new YO(n[e||"name"],o,n.cp),t.properties=n,t}))}for(var nT=[126,25],iT=[[[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]]],oT=0;oT<iT.length;oT++)for(var rT=0;rT<iT[oT].length;rT++)iT[oT][rT][0]/=10.5,iT[oT][rT][1]/=-14,iT[oT][rT][0]+=nT[0],iT[oT][rT][1]+=nT[1];var aT={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]},sT=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];uT.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:(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 wt(0,0,0,0),regionsMap:o}},uT.prototype._parseToRegions=function(t){var e,n=this._mapName,i=this._geoJSON;try{e=i?eT(i,t):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return((t,e)=>{if("china"===t){for(var n=0;n<e.length;n++)if("南海诸岛"===e[n].name)return;e.push(new YO("南海诸岛",l.H(iT,(function(t){return{type:"polygon",exterior:t}})),nT))}})(n,e),Object(l.k)(e,(function(t){var e,i,o=t.name,r=(r=t,"china"===(i=n)&&(i=aT[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:sT[0]}),this._specialAreas&&this._specialAreas[o]);r&&t.transformTo(r.left,r.top,r.width,r.height)}),this),e},uT.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}};var lT=uT;function uT(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 cT=Object(l.f)(),hT={registerMap:function(t,e,n){var i;e=e.svg?new QO(t,e.svg):((i=e.geoJson||e.geoJSON)&&!e.features?n=e.specialAreas:i=e,new lT(t,i,n)),cT.set(t,e)},getGeoResource:function(t){return cT.get(t)},getMapForUser:function(t){return t=cT.get(t),t&&"geoJSON"===t.type&&t.getMapForUser()},load:function(t,e,n){if(t=cT.get(t),t)return t.load(e,n)}},dT=(Ks=["rect","circle","line","ellipse","polygon","polyline","path"],l.f(Ks)),pT=l.f(Ks.concat(["g"])),fT=l.f(Ks.concat(["g"])),gT=zi();function yT(t){var e=t.getItemStyle();t=t.get("areaColor");return null!=t&&(e.fill=t),e}function mT(t){t=t.style,t&&(t.stroke=t.stroke||t.fill,t.fill=null)}function vT(t){var e=new qn;this.uid=il("ec_map_draw"),this._controller=new sO(t.getZr()),this._controllerHost={target:e},(this.group=e).add(this._regionsGroup=new qn),e.add(this._svgGroup=new qn)}function xT(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=yT(r),a=yT(a),i=yT(i),s=yT(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=Cy(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,Wa(e)}function _T(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,Cs(e,ks(i),{labelFetcher:u,labelDataIndex:l,defaultText:n},t),(s=e.getTextContent())&&(gT(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 bT(t,e,n,i,o,r){t.data?t.data.setItemGraphicEl(r,e):fa(e).eventData={componentType:"geo",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:n,region:i&&i.option||{}}}function wT(t,e,n,i,o){t.data||Gf({el:e,componentModel:o,itemName:n,itemTooltipOption:i.get("tooltip")})}function ST(t,e,n,i,o){e.highDownSilentOnTouch=!!o.get("selectedMode");i=i.getModel("emphasis");var r=i.get("focus");return as(e,r,i.get("blurScope"),i.get("disabled")),t.isGeo&&(i=o,t=n,(o=fa(o=e)).componentMainType=i.mainType,o.componentIndex=i.componentIndex,o.componentHighDownName=t),r}function MT(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}vT.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()):vs(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)},vT.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:(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 d=o.name,p=e.get(d),f=n.get(d)||{},g=f.dataIdx,y=f.regionModel,m=(p||(p=e.set(d,new qn),i.add(p),g=a?a.indexOfName(d):null,null!=(f=(y=t.isGeo?r.getRegionModel(d):a?a.getItemModel(g):null).get("silent",!0))&&(p.silent=f),n.set(d,{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=MT(e,u)),l.k(e,(function(t){m.push(new Dp(h(t)))}))):(e=t.points,u&&(e=MT(e,u,!0)),l.k(e,(function(t){v.push(new jp(h(t)))})))})),c(o.getCenter(),s&&s.project));function _(e,n){e.length&&(e=new Qp({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}}),p.add(e),xT(t,e,g,y),_T(t,e,d,y,r,g,x),n)&&(mT(e),l.k(e.states,mT))}_(m),_(v,!0)})),e.each((function(e,i){var o=n.get(i),a=o.dataIdx;o=o.regionModel;bT(t,e,i,o,r,a),wT(t,e,i,o,r),ST(t,e,i,o,r)}),this)},vT.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)),c=(null!=dT.get(s)&&l instanceof Lo&&xT(t,l,a,u),l instanceof Lo&&(l.culling=!0),u.get("silent",!0));null!=c&&(l.silent=c),l.z2EmphasisLift=0,e.namedFrom||(null!=fT.get(s)&&_T(t,l,n,u,r,a,null),bT(t,l,n,u,r,a),wT(t,l,n,u,r),null!=pT.get(s)&&("self"===ST(t,l,n,u,r)&&(o=!0),(i.get(n)||i.set(n,[])).push(l)))}),this),this._enableBlurEntireSVG(o,t)},vT.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||(Wa(t),null==(e=t.ensureState("blur").style||{}).opacity&&null!=n&&(e.opacity=n),t.ensureState("emphasis"))})))},vT.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},vT.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)||[]},vT.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},vT.prototype._useSVG=function(t){var e=hT.getGeoResource(t);e&&"geoSVG"===e.type&&(e=e.useGraphic(this.uid),this._svgGroup.add(e.root),this._svgGraphicRecord=e,this._svgMapName=t)},vT.prototype._freeSVG=function(){var t=this._svgMapName;null!=t&&((t=hT.getGeoResource(t))&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null)},vT.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,lO(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,uO(r,t.scale,t.originX,t.originY),n.dispatchAction(l.m(s(),{totalZoom:r.zoom,zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this),o.setPointerChecker((function(e,o,r){return i.containPoint([o,r])&&!dO(e,n,t)}))},vT.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){t=t.getTextContent(),t&&(t.ignore=gT(t).ignore)}))},vT.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 IT,OT=vT;function TT(){var t=null!==IT&&IT.apply(this,arguments)||this;return t.type=TT.type,t}a(TT,IT=Jf),TT.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 OT(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))},TT.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},TT.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},TT.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 tp({style:{fill:t.getData().getVisual("style").fill},shape:{cx:l[0]+9*e,cy:l[1],r:3},silent:!0,z2:8+(e?0:Ma+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),Cs(r,ks(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){Fa(r,t)}),o.add(r))}))},TT.type="map";var CT,kT=TT;function DT(){var t=null!==CT&&CT.apply(this,arguments)||this;return t.type=DT.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(DT,CT=Md),DT.prototype.getInitialData=function(t){for(var e=Vw(this,{coordDimensions:["value"],encodeDefaulter:l.h(Cu,this)}),n=l.f(),i=[],o=0,r=e.count();o<r;o++){var a=e.getName(o);n.set(a,o)}var s=hT.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return l.k(s.regions,(function(t){var o,r=t.name,a=n.get(r);t=t.properties&&t.properties.echartsStyle;null==a?i.push(o={name:r}):o=e.getRawDataItem(a),t&&l.I(o,t)})),e.appendData(i),e},DT.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},DT.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},DT.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},DT.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},DT.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 Jh("section",{header:s.join(", "),noHeader:!s.length,blocks:[Jh("nameValue",{name:r,value:o})]})},DT.prototype.setZoom=function(t){this.option.zoom=t},DT.prototype.setCenter=function(t){this.option.center=t},DT.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=Qg(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},DT.type="series.map",DT.dependencies=["geo"],DT.layoutMode="box",DT.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 AT=DT;function LT(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 PT(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 jT,RT=I;function NT(t){var e=jT.call(this)||this;return e.type="view",e.dimensions=["x","y"],e._roamTransformable=new In,e._rawTransformable=new In,e.name=t,e}function ET(t){return t=t.seriesModel,t?t.coordinateSystem:null}a(NT,jT=In),NT.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new wt(t,e,n,i),this._rect},NT.prototype.getBoundingRect=function(){return this._rect},NT.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new wt(t,e,n,i)},NT.prototype._transformTo=function(t,e,n,i){var o=this.getBoundingRect(),r=this._rawTransformable;r.transform=o.calculateTransform(new wt(t,e,n,i)),o=r.parent;r.parent=null,r.decomposeTransform(),r.parent=o,this._updateTransform()},NT.prototype.setCenter=function(t,e){t&&(this._center=[oi(t[0],e.getWidth()),oi(t[1],e.getHeight())],this._updateCenterAndZoom())},NT.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()},NT.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},NT.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},NT.prototype.getZoom=function(){return this._zoom||1},NT.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},NT.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()},NT.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;(e.parent=t).updateTransform(),e.updateTransform(),rt(this.transform||(this.transform=[]),e.transform||it()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],ct(this.invTransform,this.transform),this.decomposeTransform()},NT.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new In;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}}},NT.prototype.getViewRect=function(){return this._viewRect},NT.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},NT.prototype.dataToPoint=function(t,e,n){return e=e?this._rawTransform:this.transform,n=n||[],e?RT(n,t,e):d(n,t)},NT.prototype.pointToData=function(t){var e=this.invTransform;return e?RT([],t,e):[t[0],t[1]]},NT.prototype.convertToPixel=function(t,e,n){return e=ET(e),e===this?e.dataToPoint(n):null},NT.prototype.convertFromPixel=function(t,e,n){return e=ET(e),e===this?e.pointToData(n):null},NT.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},NT.dimensions=["x","y"];var zT,VT=NT,BT={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},FT=["lng","lat"];a(GT,zT=VT),GT.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 wt(t,e,n,i)),o=a.parent;a.parent=null,a.decomposeTransform(),a.parent=o,r&&(a.scaleY=-a.scaleY),this._updateTransform()},GT.prototype.getRegion=function(t){return this._regionsMap.get(t)},GT.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]}},GT.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},GT.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},GT.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,e,n)},GT.prototype.pointToData=function(t){var e=this.projection;return(t=e?e.unproject(t):t)&&this.pointToProjected(t)},GT.prototype.pointToProjected=function(t){return zT.prototype.pointToData.call(this,t)},GT.prototype.projectedToPoint=function(t,e,n){return zT.prototype.dataToPoint.call(this,t,e,n)},GT.prototype.convertToPixel=function(t,e,n){return e=HT(e),e===this?e.dataToPoint(n):null},GT.prototype.convertFromPixel=function(t,e,n){return e=HT(e),e===this?e.pointToData(n):null},Zs=GT;function GT(t,e,n){t=zT.call(this,t)||this;var i=(t.dimensions=FT,t.type="geo",t._nameCoordMap=l.f(),t.map=e,n.projection),o=hT.load(e,n.nameMap,n.nameProperty),r=(e=hT.getGeoResource(e),t.resourceType=e?e.type:null,t.regions=o.regions);e=BT[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 HT(t){var e=t.geoModel;t=t.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",Gi).models[0]||{}).coordinateSystem:null}l.K(Zs,VT);var WT=Zs;function YT(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],d=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,d,h,d),u(h,d,h,c),u(h,c,l,c),u(l,c,h,d)),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(),d=e.getHeight(),p=(u=u.width/u.height*this.aspectScale,!1);l&&c&&(r=[oi(l[0],h),oi(l[1],d)],a=oi(c,Math.min(h,d)),isNaN(r[0])||isNaN(r[1])||isNaN(a)||(p=!0)),p?(s={},1<u?(s.width=a,s.height=a/u):(s.height=a,s.width=a*u),s.y=r[1]-s.height/2,s.x=r[0]-s.width/2):((l=t.getBoxLayoutParams()).aspect=u,s=tu(l,{width:h,height:d})),this.setViewRect(s.x,s.y,s.width,s.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function XT(){this.dimensions=FT}XT.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 WT(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=YT,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 WT(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=YT,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},XT.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=hT.load(e,n,i),l.k(t.regions,(function(t){var e=t.name,n=r.get(e);t=t.properties&&t.properties.echartsStyle;n||o.push(n={name:e}),t&&l.I(n,t)})),o};var UT,ZT=new XT;function qT(){var t=null!==UT&&UT.apply(this,arguments)||this;return t.type=qT.type,t}a(qT,UT=fu),qT.prototype.init=function(t,e,n){var i=hT.getGeoResource(t.map);!i||"geoJSON"!==i.type||"color"in(i=t.itemStyle=t.itemStyle||{})||(i.color="#eee"),this.mergeDefaultAndTheme(t,n),Ti(t,"label",["show"])},qT.prototype.optionUpdated=function(){var t=this,e=this.option,n=(e.regions=ZT.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 el(i,t,t.ecModel)),i.selected)&&(n[o]=!0),e}),l.f()),e.selectedMap||(e.selectedMap=n)},qT.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new el(null,this,this.ecModel)},qT.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},qT.prototype.setZoom=function(t){this.option.zoom=t},qT.prototype.setCenter=function(t){this.option.center=t},qT.prototype.select=function(t){var e=this.option,n=e.selectedMode;n&&("multiple"!==n&&(e.selectedMap=null),(e.selectedMap||(e.selectedMap={}))[t]=!0)},qT.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},qT.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},qT.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},qT.type="geo",qT.layoutMode="box",qT.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 KT,QT=qT;function $T(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function JT(t,e,n,i){var o,r=t.getZoom(),a=t.getCenter(),s=e.zoom;a=t.projectedToPoint?t.projectedToPoint(a):t.dataToPoint(a);return null!=e.dx&&null!=e.dy&&(a[0]-=e.dx,a[1]-=e.dy,t.setCenter($T(t,a),i)),null!=s&&(n&&(o=n.min||0,s=Math.max(Math.min(r*s,n.max||1/0),o)/r),t.scaleX*=s,t.scaleY*=s,n=(e.originX-t.x)*(s-1),o=(e.originY-t.y)*(s-1),t.x-=n,t.y-=o,t.updateTransform(),t.setCenter($T(t,a),i),t.setZoom(s*r)),{center:t.getCenter(),zoom:t.getZoom()}}function tC(){var t=null!==KT&&KT.apply(this,arguments)||this;return t.type=tC.type,t.focusBlurEnabled=!0,t}a(tC,KT=Od),tC.prototype.init=function(t,e){this._api=e},tC.prototype.render=function(t,e,n,i){var o;(this._model=t).get("show")?(this._mapDraw||(this._mapDraw=new OT(n)),(o=this._mapDraw).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)):(this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null)},tC.prototype._handleRegionClick=function(t){var e;Vg(t.target,(function(t){return null!=(e=fa(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},tC.prototype.updateSelectStatus=function(t,e,n){var i=this;this._mapDraw.group.traverse((function(t){var e=fa(t).eventData;if(e)return i._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0}))},tC.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},tC.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},tC.type="geo";var eC=tC;function nC(t,e,n){hT.registerMap(t,e,n)}function iC(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",ZT),t.registerComponentModel(QT),t.registerComponentView(eC),t.registerImpl("registerMap",nC),t.registerImpl("getMap",(function(t){return hT.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,n){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},(function(e){var o,r=e.coordinateSystem;"geo"===r.type&&(o=JT(r,t,e.get("scaleLimit"),n),e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom),"series"===i)&&Object(l.k)(e.seriesGroup,(function(t){t.setCenter(o.center),t.setZoom(o.zoom)}))}))}))}function oC(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=((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=lC(s),r=uC(r),s&&r;){o=lC(o),a=uC(a),o.hierNode.ancestor=t;var d=s.hierNode.prelim+h-r.hierNode.prelim-u+i(s,r);0<d&&(((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})(((t,e,n)=>t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n)(s,t,n),t,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=r.hierNode.modifier,l+=o.hierNode.modifier,c+=a.hierNode.modifier}s&&!lC(o)&&(o.hierNode.thread=s,o.hierNode.modifier+=h-l),r&&!uC(a)&&(a.hierNode.thread=r,a.hierNode.modifier+=u-c,n=t)}return n})(t,o,t.parentNode.hierNode.defaultAncestor||i[0],e)}function rC(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function aC(t){return arguments.length?t:cC}function sC(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function lC(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function uC(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function cC(t,e){return t.parentNode===e.parentNode?1:2}var hC,dC,pC=function(){this.parentPoint=[],this.childPoints=[]},fC=(a(gC,hC=Ar),gC.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},gC.prototype.getDefaultShape=function(){return new pC},gC.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)t.moveTo(o[0],o[1]),t.lineTo(r[0],r[1]);else{var s=e.orient,l="TB"===s||"BT"===s?0:1,u=(s=1-l,e=oi(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])}}},gC);function gC(t){return hC.call(this,t)||this}function yC(){var t=null!==dC&&dC.apply(this,arguments)||this;return t.type=yC.type,t._mainGroup=new qn,t}function mC(t,e){return t=t.getItemLayout(e),t&&!isNaN(t.x)&&!isNaN(t.y)}function vC(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,d=t.getItemGraphicEl(h.dataIndex),p=(h=h.getLayout(),d=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:h,a.getLayout()),f=(r=(r?((n=new z_(t,e,null,{symbolInnerColor:u,useNameLabel:!0})).x=d.x,n.y=d.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=p.rawX,n.__radialRawY=p.rawY,i.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,vs(n,{x:p.x,y:p.y},o),n.getSymbolPath()),r=("radial"===o.get("layout")&&(e=(u=c.children[0]).getLayout(),f=u.children.length,m=y=void 0,p.x===e.x&&!0===a.isExpand&&u.children.length?(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(p.y-e.y,p.x-e.x))<0&&(y=2*Math.PI+y),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(m=p.x<e.x)&&(y-=Math.PI):(m=p.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="relative"===r?l.e(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===r?a.getAncestorsIndices():"descendant"===r?a.getDescendantIndices():null,u&&(fa(n).focus=u),o),g=a,y=c,m=(e=n,d),v=(s=h,r=p,u=i,o=g.getModel(),c=f.get("edgeShape"),d=f.get("layout"),h=f.getOrient(),p=f.get(["lineStyle","curveness"]),i=f.get("edgeForkPosition"),o.getModel("lineStyle").getLineStyle()),x=e.__edge;if("curve"===c)g.parentNode&&g.parentNode!==y&&vs(x=x||(e.__edge=new Yp({shape:wC(d,h,p,m,m)})),{shape:wC(d,h,p,s,r)},f);else if("polyline"===c&&"orthogonal"===d&&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])}vs(x=x||(e.__edge=new fC({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&&("polyline"!==c||g.isExpand)&&(x.useStyle(l.i({strokeNoScale:!0,fill:null},v)),cs(x,o,"lineStyle"),Wa(x),u.add(x)),n.__edge&&(n.onHoverStateChange=function(e){var i;"blur"===e||(i=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex))&&i.hoverState===_a||Fa(n.__edge,e)})}function xC(t,e,n,i,o){var r,a,s=_C(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?bs(r,{shape:wC(l,e,a,s,s),style:{opacity:0}},i,{cb:function(){n.remove(r)},removeOpt:o}):"polyline"===t&&"orthogonal"===i.get("layout")&&bs(r,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){n.remove(r)},removeOpt:o}))}function _C(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 bC(t,e,n,i,o){var r=t.tree.getNodeByDataIndex(e),a=_C(t.tree.root,r).sourceLayout,s={duration:o.get("animationDurationUpdate"),easing:o.get("animationEasingUpdate")};bs(n,{x:a.x+1,y:a.y+1},o,{cb:function(){i.remove(n),t.setItemGraphicEl(e,null)},removeOpt:s}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:s}),r.children.forEach((function(e){xC(e,t,i,o,s)})),xC(r,t,i,o,s)}function wC(t,e,n,i,o){var r,a,s,l,u,c,h,d,p,f,g;return"radial"===t?(u=i.rawX,h=o.rawX,d=o.rawY,t=sC(u,c=i.rawY),p=sC(u,c+(d-c)*n),f=sC(h,d+(c-d)*n),g=sC(h,d),{x1:t.x||0,y1:t.y||0,x2:g.x||0,y2:g.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:f.x||0,cpy2:f.y||0}):(u=i.x,c=i.y,h=o.x,d=o.y,"LR"!==e&&"RL"!==e||(r=u+(h-u)*n,a=c,s=h+(u-h)*n,l=d),"TB"!==e&&"BT"!==e||(r=u,a=c+(d-c)*n,s=h,l=d+(c-d)*n),{x1:u,y1:c,x2:h,y2:d,cpx1:r,cpy1:a,cpx2:s,cpy2:l})}a(yC,dC=Jf),yC.prototype.init=function(t,e){this._controller=new sO(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},yC.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,n),this._updateController(t,e,n),this._data);i.diff(a).add((function(e){mC(i,e)&&vC(i,e,null,r,t)})).update((function(e,n){var o=a.getItemGraphicEl(n);mC(i,e)?vC(i,e,o,r,t):o&&bC(a,n,o,r,t)})).remove((function(e){var n=a.getItemGraphicEl(e);n&&bC(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},yC.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),i=[],o=(n.each((function(t){t=n.getItemLayout(t),!t||isNaN(t.x)||isNaN(t.y)||i.push([+t.x,+t.y])})),[]),r=[],a=(Fo(i,o,r),this._min),s=this._max;r[0]-o[0]==0&&(o[0]=a?a[0]:o[0]-1,r[0]=s?s[0]:r[0]+1),r[1]-o[1]==0&&(o[1]=a?a[1]:o[1]-1,r[1]=s?s[1]:r[1]+1),a=t.coordinateSystem=new VT;a.zoomLimit=t.get("scaleLimit"),a.setBoundingRect(o[0],o[1],r[0]-o[0],r[1]-o[1]),a.setCenter(t.get("center"),e),a.setZoom(t.get("zoom")),this.group.attr({x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY}),this._min=o,this._max=r},yC.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)&&!dO(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){lO(r,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){uO(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()}))},yC.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},yC.prototype._getNodeGlobalScale=function(t){var e,n;t=t.coordinateSystem;return"view"!==t.type?1:(e=this._nodeScaleRatio,n=t.scaleX||1,((t.getZoom()-1)*e+1)/n)},yC.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},yC.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},yC.type="tree";var SC=yC,MC=zi();function IC(t,e){var n;return MC(n=this).mainData===n?DC((n=Object(l.m)({},MC(this).datas))[this.dataType]=e,n,t):AC(e,this.dataType,MC(this).mainData,t),e}function OC(t,e){return t.struct&&t.struct.update(),e}function TC(t,e){return Object(l.k)(MC(e).datas,(function(n,i){n!==e&&AC(n.cloneShallow(),i,e,t)})),e}function CC(t){var e=MC(this).mainData;return null==t||null==e?e:MC(e).datas[t]}function kC(){var t=MC(this).mainData;return null==t?[{data:t}]:Object(l.H)(Object(l.F)(MC(t).datas),(function(e){return{type:e,data:MC(t).datas[e]}}))}function DC(t,e,n){MC(t).datas={},Object(l.k)(e,(function(e,i){AC(e,i,t,n)}))}function AC(t,e,n,i){MC(n).datas[e]=t,MC(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=CC,t.getLinkedDataAll=kC}var LC=function(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,DC(e,n,t),Object(l.k)(n,(function(n){Object(l.k)(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,Object(l.h)(IC,t))}))})),e.wrapMethod("cloneShallow",Object(l.h)(TC,t)),Object(l.k)(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,Object(l.h)(OC,t))})),Object(l.b)(n[e.dataType]===e)},PC=(jC.prototype.isRemoved=function(){return this.dataIndex<0},jC.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)},jC.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},jC.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}},jC.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}},jC.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},jC.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},jC.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},jC.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},jC.prototype.setLayout=function(t,e){0<=this.dataIndex&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},jC.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},jC.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},jC.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},jC.prototype.setVisual=function(t,e){0<=this.dataIndex&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},jC.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},jC.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},jC.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},jC.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},jC.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},jC.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},jC);function jC(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 RC(t){this.type="tree",this._nodes=[],this.hostModel=t}function NC(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}RC.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},RC.prototype.getNodeByDataIndex=function(t){return t=this.data.getRawIndex(t),this._nodes[t]},RC.prototype.getNodeById=function(t){return this.root.getNodeById(t)},RC.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},RC.prototype.clearLayouts=function(){this.data.clearItemLayouts()},RC.createTree=function(t,e,n){var i=new RC(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 PC(Pi(e.name,""),i);n?NC(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=w_(o,{coordDimensions:["value"],dimensionsCount:r}).dimensions,t=new b_(t,e),t.initData(o),n&&n(t),LC({mainData:t,struct:i,structAttr:"tree"}),i.update(),i};var EC,zC=RC;function VC(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)||null!=(t=t.targetNodeId)&&(n=e.getNodeById(t))?{node:n}:void 0}function BC(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function FC(t,e){return t=BC(t),0<=l.r(t,e)}function GC(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 HC(){var t=null!==EC&&EC.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}a(HC,EC=Md),HC.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=new el(t.leaves||{},this,this.ecModel),i=zC.createTree(e,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){return e=i.getNodeByDataIndex(e),e&&e.children.length&&e.isExpand||(t.parentModel=n),t}))})),o=0;i.eachNode("preorder",(function(t){t.depth>o&&(o=t.depth)}));var r=t.expandAndCollapse&&0<=t.initialTreeDepth?t.initialTreeDepth:o;return i.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=r})),i.data},HC.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},HC.prototype.setZoom=function(t){this.option.zoom=t},HC.prototype.setCenter=function(t){this.option.center=t},HC.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 Jh("nameValue",{name:a,value:i,noValue:isNaN(i)||null==i})},HC.prototype.getDataParams=function(t){var e=EC.prototype.getDataParams.apply(this,arguments);t=this.getData().tree.getNodeByDataIndex(t);return e.treeAncestors=GC(t,this),e.collapsed=!t.isExpand,e},HC.type="series.tree",HC.layoutMode="box",HC.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 WC=HC;function YC(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 XC(t,e){t.eachSeriesByType("tree",(function(t){var n=((t,e)=>tu(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,aC((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(o=n.width,r=n.height,aC());var s,l,u,c,h,d,p,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=oC,I=a,O=[y],T=[];S=O.pop();)if(T.push(S),S.isExpand){var C=S.children;if(C.length)for(var k=0;k<C.length;k++)O.push(C[k])}for(;S=T.pop();)M(S,I);n.hierNode.modifier=-y.hierNode.prelim,YC(y,rC),YC(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=p=d=h=0,"radial"===i?(h=o/(l.getLayout().x+n+c),d=r/(u.depth-1||1),YC(y,(function(t){p=(t.getLayout().x+c)*h,f=(t.depth-1)*d;var e=sC(p,f);t.setLayout({x:e.x,y:e.y,rawX:p,rawY:f},!0)}))):"RL"===(g=t.getOrient())||"LR"===g?(d=r/(l.getLayout().x+n+c),h=o/(u.depth-1||1),YC(y,(function(t){f=(t.getLayout().x+c)*d,p="LR"===g?(t.depth-1)*h:o-(t.depth-1)*h,t.setLayout({x:p,y:f},!0)}))):"TB"!==g&&"BT"!==g||(h=o/(l.getLayout().x+n+c),d=r/(u.depth-1||1),YC(y,(function(t){p=(t.getLayout().x+c)*h,f="TB"===g?(t.depth-1)*d:r-(t.depth-1)*d,t.setLayout({x:p,y:f},!0)})))}}))}function UC(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 ZC,qC=["treemapZoomToNode","treemapRender","treemapMove"];function KC(t){for(var e=0;e<qC.length;e++)t.registerAction({type:qC[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=VC(t,["treemapZoomToNode","treemapRootToNode"],e);o&&((i=e.getViewRoot())&&(t.direction=FC(i,o.node)?"rollUp":"drillDown"),e.resetViewRoot(o.node))}))}))}function QC(t){var e=t.getData().tree,n={};e.eachNode((function(e){for(var i=e;i&&1<i.depth;)i=i.parentNode;var o=Bu(t.ecModel,i.name||i.dataIndex+"",n);e.setVisual("decal",o)}))}function $C(){var t=null!==ZC&&ZC.apply(this,arguments)||this;return t.type=$C.type,t.preventUsingHoverLayer=!0,t}a($C,ZC=Md),$C.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 el({itemStyle:o},this,e),a=(i=t.levels=((t,e)=>{var n,i,o,r=Oi(e.get("color"));e=Oi(e.get(["aria","decal","decals"]));if(r)return t=t||[],l.k(t,(function(t){t=new el(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 el(t,r,e)}),this)),s=zC.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},$C.prototype.optionUpdated=function(){this.resetViewRoot()},$C.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.getRawValue(t);return Jh("nameValue",{name:i.getName(t),value:o})},$C.prototype.getDataParams=function(t){var e=ZC.prototype.getDataParams.apply(this,arguments);t=this.getData().tree.getNodeByDataIndex(t);return e.treeAncestors=GC(t,this),e.treePathInfo=e.treeAncestors,e},$C.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},l.m(this.layoutInfo,t)},$C.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},$C.prototype.getViewRoot=function(){return this._viewRoot},$C.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)},$C.prototype.enableAriaDecal=function(){QC(this)},$C.type="series.treemap",$C.layoutMode="box",$C.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,scaleLimit:null,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"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},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 JC=$C;function tk(t){this.group=new qn,t.add(this.group)}tk.prototype.render=function(t,e,n,i){var o,r,a,s,l=t.getModel("breadcrumb"),u=this.group;u.removeAll(),l.get("show")&&n&&(o=l.getModel("itemStyle"),r=l.getModel("emphasis"),a=o.getModel("textStyle"),s=r.getModel(["itemStyle","textStyle"]),e={pos:{left:l.get("left"),right:l.get("right"),top:l.get("top"),bottom:l.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:l.get("emptyItemWidth"),totalWidth:0,renderList:[]},this._prepare(n,e,a),this._renderContent(t,e,o,r,a,s,i),eu(u,e.pos,e.box))},tk.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var o=Pi(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})}},tk.prototype._renderContent=function(t,e,n,i,o,r,a){for(var s,u,c,h,d,p,f,g,y,m,v,x,_,b=0,w=e.emptyItemWidth,S=t.get(["breadcrumb","height"]),M=(s=e.pos,h=(u=e.box).width,u=u.height,d=oi(s.left,h),p=oi(s.top,u),f=oi(s.right,h),g=oi(s.bottom,u),(isNaN(d)||isNaN(parseFloat(s.left)))&&(d=0),(isNaN(f)||isNaN(parseFloat(s.right)))&&(f=h),(isNaN(p)||isNaN(parseFloat(s.top)))&&(p=0),(isNaN(g)||isNaN(parseFloat(s.bottom)))&&(g=u),c=Gl(c||0),{width:Math.max(f-d-c[1]-c[3],0),height:Math.max(g-p-c[0]-c[2],0)}),I=e.totalWidth,O=e.renderList,T=i.getModel("itemStyle").getItemStyle(),C=O.length-1;0<=C;C--){var k=O[C],D=k.node,A=k.width,L=(k=k.text,M.width<I&&(I-=A-w,A=w,k=null),new Dp({shape:{points:(y=b,m=0,L=A,v=S,x=C===O.length-1,_=void 0,_=[[x?y:y-5,m],[y+L,m],[y+L,m+v],[x?y:y-5,m+v]],0===C||_.splice(2,0,[y+L+5,m+v/2]),x||_.push([y,m+v/2]),_)},style:Object(l.i)(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new pa({style:Ds(o,{text:k})}),textConfig:{position:"inside"},z2:1e4*Ma,onclick:Object(l.h)(a,D)}));L.disableLabelAnimation=!0,L.getTextContent().ensureState("emphasis").style=Ds(r,{text:k}),L.ensureState("emphasis").style=T,as(L,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(L),x=t,y=D,fa(L).eventData={componentType:"series",componentSubType:"treemap",componentIndex:x.componentIndex,seriesIndex:x.seriesIndex,seriesName:x.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:y&&y.dataIndex,name:y&&y.name},treePathInfo:y&&GC(y,x)},b+=A+8}},tk.prototype.remove=function(){this.group.removeAll()};var ek=tk,nk=(ik.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)},ik.prototype.finished=function(t){return this._finishedCallback=t,this},ik.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},ik);function ik(){this._storage=[],this._elExistsMap={}}var ok,rk=qn,ak=qr,sk="label",lk="upperLabel",uk=10*Ma,ck=2*Ma,hk=3*Ma,dk=io([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),pk=function(t){return t=dk(t),t.stroke=t.fill=t.lineWidth=null,t},fk=zi();function gk(){var t=null!==ok&&ok.apply(this,arguments)||this;return t.type=gk.type,t._state="ready",t._storage=yk(),t}function yk(){return{nodeGroup:[],background:[],content:[]}}a(gk,ok=Jf),gk.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=VC(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))},gk.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new rk,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},gk.prototype._doRender=function(t,e,n){var i=e.getData().tree,o=this._oldTree,r=yk(),a=yk(),s=this._storage,u=[];function c(t,i,o,c){var h=e,d=a,p=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 _,b,w,S=v.width,M=v.height,I=v.borderWidth,O=v.invisible,T=m.getRawIndex(),C=t&&t.getRawIndex(),k=(t=m.viewChildren,v.upperHeight),D=(t=t&&t.length,x.getModel("itemStyle")),A=x.getModel(["emphasis","itemStyle"]),L=x.getModel(["blur","itemStyle"]),P=x.getModel(["select","itemStyle"]),j=D.get("borderRadius")||0,R=V("nodeGroup",rk);if(R)return i.add(R),R.x=v.x||0,R.y=v.y||0,R.markRedraw(),fk(R).nodeWidth=S,fk(R).nodeHeight=M,v.isAboveViewRoot||((i=V("background",ak,o,ck))&&((t,e,n)=>{var i,o,r,a,s,l=fa(e);l.dataIndex=m.dataIndex,l.seriesIndex=h.seriesIndex,e.setShape({x:0,y:0,width:S,height:M,r:j}),(O?N:(e.invisible=!1,l=m.getVisual("style"),i=l.stroke,(o=pk(D)).fill=i,(r=dk(A)).fill=A.get("borderColor"),(a=dk(L)).fill=L.get("borderColor"),(s=dk(P)).fill=P.get("borderColor"),n?(n=S-2*I,E(e,i,l.opacity,{x:I,y:0,width:n,height:k})):e.removeTextContent(),e.setStyle(o),e.ensureState("emphasis").style=r,e.ensureState("blur").style=a,e.ensureState("select").style=s,Wa))(e),t.add(e)})(R,i,t&&v.upperLabelHeight),b=x.getModel("emphasis"),w=b.get("focus"),_=b.get("blurScope"),b=b.get("disabled"),w="ancestor"===w?m.getAncestorsIndices():"descendant"===w?m.getDescendantIndices():w,t?(ds(R)&&hs(R,!1),i&&(hs(i,!b),c.setItemGraphicEl(m.dataIndex,i),ss(i,w,_))):((t=V("content",ak,o,hk))&&((t,e)=>{(a=fa(e)).dataIndex=m.dataIndex,a.seriesIndex=h.seriesIndex;var n,i,o,r,a=Math.max(S-2*I,0),s=Math.max(M-2*I,0);e.culling=!0,e.setShape({x:I,y:I,width:a,height:s,r:j}),(O?N:(e.invisible=!1,a=m.getVisual("style"),s=a.fill,(n=pk(D)).fill=s,n.decal=a.decal,i=dk(A),o=dk(L),r=dk(P),E(e,s,a.opacity,null),e.setStyle(n),e.ensureState("emphasis").style=i,e.ensureState("blur").style=o,e.ensureState("select").style=r,Wa))(e),t.add(e)})(R,t),i.disableMorphing=!0,i&&ds(i)&&hs(i,!1),hs(R,!b),c.setItemGraphicEl(m.dataIndex,R),(o=x.getShallow("cursor"))&&t.attr("cursor",o),ss(R,w,_))),R}}function N(t){t.invisible||y.push(t)}function E(t,e,n,i){var o,r,a=x.getModel(i?lk:sk),s=Pi(x.get("name"),null),u=(a=a.getShallow("show"),Cs(t,ks(x,i?lk:sk),{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 V(t,e,n,i){var o,r,a=null!=C&&p[t][C],s=g[t];return a?(p[t][C]=null,o=a,r=(r=s)[T]={},o instanceof rk?(r.oldX=o.x,r.oldY=o.y):r.oldShape=Object(l.m)({},o.shape)):O||((a=new e)instanceof Lo&&(a.z2=n*uk+i),r=a,o=(o=s)[T]={},e=m.parentNode,r=r instanceof qn,!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),d[t][T]=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 Zx(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=yk(),(t=s)&&Object(l.k)(t,(function(t,e){var n=h[e];Object(l.k)(t,(function(t){t&&(n.push(t),fk(t).willDelete=!0)}))}));var h,d=h;return this._oldTree=i,this._storage=a,this._controllerHost&&(o=this.seriesModel.layoutInfo,(t=i.root.getLayout()).width===o.width)&&t.height===o.height&&(this._controllerHost.zoom=1),{lastsForAnimation:r,willDeleteEls:d,renderFinally:function(){Object(l.k)(d,(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()}))}}},gk.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 nk;Object(l.k)(e.willDeleteEls,(function(t,e){Object(l.k)(t,(function(t,n){var o,l,u;!t.invisible&&(u=fk(o=t.parent),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 qn?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()},gk.prototype._resetController=function(t){var e=this._controller,n=this._controllerHost,i=(n||(this._controllerHost={target:this.group},n=this._controllerHost),e||((e=this._controller=new sO(t.getZr())).enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),e.on("pan",Object(l.c)(this._onPan,this)),e.on("zoom",Object(l.c)(this._onZoom,this))),new wt(0,0,t.getWidth(),t.getHeight()));e.setPointerChecker((function(t,e,n){return i.contain(e,n)}))},gk.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&t.dispose()},gk.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}})},gk.prototype._onZoom=function(t){var e,n,i,o,r=t.originX,a=t.originY;t=t.scale;"animating"!==this._state&&(e=this.seriesModel.getData().tree.root)&&(e=e.getLayout())&&(e=new wt(e.x,e.y,e.width,e.height),i=null,i=(o=this._controllerHost).zoomLimit,n=o.zoom=o.zoom||1,n*=t,i&&(t=i.min||0,i=i.max||1/0,n=Math.max(Math.min(i,n),t)),i=n/o.zoom,o.zoom=n,st(t=it(),t,[-(r-=(o=this.seriesModel.layoutInfo).x),-(a-=o.y)]),ut(t,t,[i,i]),st(t,t,[r,a]),e.applyTransform(t),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}}))},gk.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){var n,i;"ready"===e._state&&(i=e.seriesModel.get("nodeClick",!0))&&(n=e.findTarget(t.offsetX,t.offsetY))&&((t=n.node).getLayout().isLeafRoot?e._rootToNode(n):"zoomToNode"===i?e._zoomToNode(n):"link"===i&&(i=(n=t.hostTree.data.getItemModel(t.dataIndex)).get("link",!0),t=n.get("target",!0)||"blank",i)&&Zl(i,t))}),this)},gk.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 ek(this.group))).render(t,e,n.node,(function(e){"animating"!==i._state&&(FC(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))}))},gk.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=yk(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},gk.prototype.dispose=function(){this._clearController()},gk.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},gk.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},gk.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},gk.type="treemap";var mk=gk,vk=l.k,xk=l.A,_k=-1,bk=(wk.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},wk.prototype.getNormalizer=function(){return l.c(this._normalizeData,this)},wk.listVisualTypes=function(){return l.F(wk.visualHandlers)},wk.isValidType=function(t){return wk.visualHandlers.hasOwnProperty(t)},wk.eachVisual=function(t,e,n){l.A(t)?l.k(t,e,n):e.call(n,t)},wk.mapVisual=function(t,e,n){var i,o=l.t(t)?[]:l.A(t)?{}:(i=!0,null);return wk.eachVisual(t,(function(t,r){t=e.call(n,t,r),i?o=t:o[r]=t})),o},wk.retrieveVisuals=function(t){var e,n={};return t&&vk(wk.visualHandlers,(function(i,o){t.hasOwnProperty(o)&&(n[o]=t[o],e=!0)})),e?n:null},wk.prepareVisualTypes=function(t){if(l.t(t))t=t.slice();else{if(!xk(t))return[];var e=[];vk(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},wk.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},wk.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(Pk(u[1],t,c[1]))return r}else if(c[1]===1/0){if(Pk(u[0],c[0],t))return r}else if(Pk(u[0],c[0],t)&&Pk(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)}},wk.visualHandlers={color:{applyVisual:Ok("color"),getColorMapper:function(){var t=this.option;return l.c("category"===t.mappingMethod?function(t,e){return e||(t=this._normalizeData(t)),Tk.call(this,t)}:function(e,n,i){var o=!!i;return n||(e=this._normalizeData(e)),i=Oe.a(e,t.parsedVisual,i),o?i:Oe.i(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Oe.i(Oe.a(t,this.option.parsedVisual),"rgba")},category:Tk,piecewise:function(t,e){return e=Dk.call(this,e),null==e?Oe.i(Oe.a(t,this.option.parsedVisual),"rgba"):e},fixed:Ck}},colorHue:Mk((function(t,e){return Oe.g(t,e)})),colorSaturation:Mk((function(t,e){return Oe.g(t,null,e)})),colorLightness:Mk((function(t,e){return Oe.g(t,null,null,e)})),colorAlpha:Mk((function(t,e){return Oe.f(t,e)})),decal:{applyVisual:Ok("decal"),_normalizedToVisual:{linear:null,category:Tk,piecewise:null,fixed:null}},opacity:{applyVisual:Ok("opacity"),_normalizedToVisual:kk([0,1])},liftZ:{applyVisual:Ok("liftZ"),_normalizedToVisual:{linear:Ck,category:Ck,piecewise:Ck,fixed:Ck}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:Ik,category:Tk,piecewise:function(t,e){return e=Dk.call(this,e),null==e?Ik.call(this,t):e},fixed:Ck}},symbolSize:{applyVisual:Ok("symbolSize"),_normalizedToVisual:kk([0,1])}},wk);function wk(t){var e,n=t.mappingMethod,i=t.type;t=this.option=l.d(t),this.type=i,this.mappingMethod=n,this._normalizeData=Lk[n],i=wk.visualHandlers[i];if(this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[n],"piecewise"===n)Sk(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;vk(r,(function(t,e){a[t]=e})),l.t(s)||(o=[],l.A(s)?vk(s,(function(t,e){e=a[e],o[null!=e?e:_k]=t})):o[_k]=s,s=Ak(i,o));for(var u=r.length-1;0<=u;u--)null==s[u]&&(delete a[r[u]],r.pop())}else Sk(t,!0);else l.b("linear"!==n||t.dataExtent),Sk(t)}function Sk(t,e){var n=t.visual,i=[];l.A(n)?vk(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]),Ak(t,i)}function Mk(t){return{applyVisual:function(e,n,i){e=this.mapValueToVisual(e),i("color",t(n("color"),e))},_normalizedToVisual:kk([0,1])}}function Ik(t){var e=this.option.visual;return e[Math.round(ii(t,[0,1],[0,e.length-1],!0))]||{}}function Ok(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function Tk(t){var e=this.option.visual;return e[this.option.loop&&t!==_k?t%e.length:t]}function Ck(){return this.option.visual[0]}function kk(t){return{linear:function(e){return ii(e,t,this.option.visual,!0)},category:Tk,piecewise:function(e,n){return n=Dk.call(this,n),null==n?ii(e,t,this.option.visual,!0):n},fixed:Ck}}function Dk(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual&&(e=n[bk.findPieceIndex(t,n)],e&&e.visual))return e.visual[this.type]}function Ak(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=l.H(e,(function(t){return t=Oe.h(t),t||[0,0,0,1]}))),e}var Lk={linear:function(t){return ii(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList;t=bk.findPieceIndex(t,e,!0);if(null!=t)return ii(t,[0,e.length-1],[0,1],!0)},category:function(t){return t=this.option.categories?this.option.categoryMap[t]:t,null==t?_k:t},fixed:l.L};function Pk(t,e,n){return t?e<=n:e<n}var jk=bk,Rk="itemStyle",Nk=zi(),Ek={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(Rk),c=zk(u,n,o);n=s.ensureUniqueItemVisual(e.dataIndex,"style"),s=u.get("borderColor");var h,d,p=u.get("borderColorSaturation");null!=p&&(h=Vk(c),s=Bk(p,h)),n.stroke=s,p=e.viewChildren,p&&p.length?(d=Gk(0,r,a,0,c,p),Object(l.k)(p,(function(e,n){(e.depth>=i.length||e===i[e.depth])&&(n=Wk(r,c,e,n,d,o),t(e,n,i,o))}))):(h=Vk(c),n.fill=h)}}(e,{},t.getViewRoot().getAncestors(),t)}};function zk(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 Vk(t){var e,n=Fk(t,"color");if(n)return e=Fk(t,"colorAlpha"),(t=Fk(t,"colorSaturation"))&&(n=Object(Oe.g)(n,null,null,t)),e?Object(Oe.f)(n,e):n}function Bk(t,e){return null!=e?Object(Oe.g)(e,null,null,t):null}function Fk(t,e){if(t=t[e],null!=t&&"none"!==t)return t}function Gk(t,e,n,i,o,r){if(r&&r.length){var a;r=Hk(e,"color")||null!=o.color&&"none"!==o.color&&(Hk(e,"colorAlpha")||Hk(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 jk(a),Nk(e).drColorMappingBy=o,e}}function Hk(t,e){return t=t.get(e),Object(l.t)(t)&&t.length?{name:e,range:t}:null}function Wk(t,e,n,i,o,r){var a,s;e=Object(l.m)({},e);return o&&(i="index"===(s="color"===(a=o.type)&&Nk(o).drColorMappingBy)?i:"id"===s?r.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension")),e[a]=o.mapValueToVisual(i)),e}var Yk=Math.max,Xk=Math.min,Uk=l.O,Zk=l.k,qk=["itemStyle","borderWidth"],Kk=["itemStyle","gapWidth"],Qk=["upperLabel","show"],$k=["upperLabel","height"],Jk={seriesType:"treemap",reset:function(t,e,n,i){var o,r=n.getWidth(),a=n.getHeight(),s=t.option,u=(n=tu(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),s.size||[]),c=oi(Uk(n.width,u[0]),r),h=(u=oi(Uk(n.height,u[1]),a),i&&i.type),d=VC(i,["treemapZoomToNode","treemapRootToNode"],t),p=(i="treemapRender"===h||"treemapMove"===h?i.rootRect:null,t.getViewRoot()),f=BC(p);"treemapMove"!==h&&(h="treemapZoomToNode"===h?((t,e,n,i,o)=>{var r,a=(e||{}).node,s=[i,o];if(!a||a===n)return s;for(var l=(e=i*o)*t.option.zoomToNodeRatio;r=a.parentNode;){for(var u=0,c=r.children,h=0,d=c.length;h<d;h++)u+=c[h].getValue();var p=a.getValue();if(0===p)return s;l*=u/p;p=r.getModel();var f=p.get(qk);p=Math.max(f,iD(p));l+=4*f*f+(3*f+p)*Math.pow(l,.5),ci<l&&(l=ci),a=r}return l<e&&(l=e),n=Math.pow(l/e,.5),[i*n,o*n]})(t,d,p,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},p.hostTree.clearLayouts(),o={x:0,y:0,width:h[0],height:h[1],area:h[0]*h[1]},p.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(qk),u=s.get(Kk)/2,c=iD(s),h=Math.max(l,c),d=l-u,p=h-u;e.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0),r=Yk(r-2*d,0),a=Yk(a-d-p,0),l=r*a;var f=tD(e,s,l,n,i,o);if(f.length){var g={x:d,y:p,width:r,height:a},y=Xk(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,eD(v,y,n.squareRatio));m=b<=m?(x++,b):(v.area-=v.pop().getLayout().area,nD(v,y,g,u,!1),y=Xk(g.width,g.height),1/(v.length=v.area=0))}for(v.length&&nD(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)}}}(p,u,!1,0),o=p.getLayout(),Zk(f,(function(t,e){e=(f[e+1]||p).getValue(),t.setLayout(l.m({dataExtent:[e,e],borderWidth:0,upperHeight:0},o))}))),c=t.getData().tree.root;c.setLayout(((t,e,n)=>{if(e)return{x:e.x,y:e.y};if(e={x:0,y:0},!n)return e;var i=(n=n.node).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,d),!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 wt(n.x-a.x,n.y-a.y,n.width,n.height);Zk(e.viewChildren||[],(function(e){t(e,u,i,o,r+1)}))}}(c,new wt(-n.x,-n.y,r,a),f,p,0)}};function tD(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=((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],Zk(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=((t,e,n,i,o)=>{if(i){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)}"asc"===i?o.splice(0,a-s):o.splice(s,a-s)}return n})(e,n,c.sum,u,s),0===c.sum)return t.viewChildren=[];for(var h=0,d=s.length;h<d;h++){var p=s[h].getValue()/c.sum*n;s[h].setLayout({area:p})}return i&&(s.length&&t.setLayout({isLeafRoot:!0},!0),s.length=0),t.viewChildren=s,t.setLayout({dataExtent:c.dataExtent},!0),s}function eD(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?Yk(e*o/l,l/(e*r)):1/0}function nD(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,d=t.length;h<d;h++){var p=t[h],f={},g=c?p.getLayout().area/c:0,y=f[l[a]]=Yk(c-2*i,0),m=n[s[r]]+n[l[r]]-u;m=h===d-1||m<g?m:g,g=f[l[r]]=Yk(m-2*i,0);f[s[a]]=n[s[a]]+Xk(i,y/2),f[s[r]]=u+Xk(i,g/2),u+=m,p.setLayout(f,!0)}n[s[a]]+=c,n[l[a]]-=c}function iD(t){return t.get(Qk)?t.get($k):0}function oD(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 rD(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 aD(t){return t instanceof Array?t:[t,t]}function sD(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),n=t.getEdgeData(),i=aD(t.get("edgeSymbol")),o=aD(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=aD(i.getShallow("symbol",!0)),a=aD(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])}))}))}var lD="--\x3e",uD=function(t){return t.get("autoCurveness")||null},cD=function(t,e){var n=uD(t),i=20,o=[];if(l.z(n))i=n;else if(l.t(n))return void(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},hD=function(t,e,n){return t=[t.id,t.dataIndex].join("."),e=[e.id,e.dataIndex].join("."),[n.uid,t,e].join(lD)},dD=function(t){return t=t.split(lD),[t[0],t[2],t[1]].join(lD)},pD=function(t,e){return t=hD(t.node1,t.node2,e),e.__edgeMap[t]},fD=function(t,e){return gD(hD(t.node1,t.node2,e),e)+gD(hD(t.node2,t.node1,e),e)},gD=function(t,e){return e=e.__edgeMap,e[t]?e[t].length:0};function yD(t,e,n,i){var o=uD(e),r=l.t(o);if(!o)return null;var a=pD(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=fD(t,e),h=(t=(cD(e,c),t.lineStyle=t.lineStyle||{},hD(t.node1,t.node2,e)),e.__curvenessList);c=r||c%2?0:1;return a.isForward?h[c+s]:(t=dD(t),e=h[s+(t=gD(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 mD(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")])})),vD(e,t))}function vD(t,e){t.eachEdge((function(t,n){n=l.Q(t.getModel().get(["lineStyle","curveness"]),-yD(t,e,n,!0),0);var i=p(t.node1.getLayout()),o=p(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 xD(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])}vD(i.graph,t)}else e&&"none"!==e||mD(t)}))}function _D(t){var e,n=t.coordinateSystem;return"view"!==n.type?1:(t=t.option.nodeScaleRatio,e=n.scaleX,((n.getZoom()-1)*t+1)/e)}function bD(t){return t=t.getVisual("symbolSize"),+(t=t instanceof Array?(t[0]+t[1])/2:t)}var wD=Math.PI,SD=[];function MD(t,e,n,i){var o,r,a,s,u,c,h=t.coordinateSystem;h&&"view"!==h.type||(u=h.getBoundingRect(),r=(o=t.getData()).graph,a=u.width/2+u.x,s=u.height/2+u.y,u=Math.min(u.width,u.height)/2,c=o.count(),o.setLayout({cx:a,cy:s}),c&&(n&&(_(i=[(h=h.pointToData(i))[0]-a,h[1]-s],i),x(i,i,u),n.setLayout([a+i[0],s+i[1]],!0),OD(n,t.get(["circular","rotateLabel"]),a,s)),ID[e](t,r,o,u,a,s,c),r.eachEdge((function(e,n){n=l.Q(e.getModel().get(["lineStyle","curveness"]),yD(e,t,n),0);var i,o=p(e.node1.getLayout()),r=p(e.node2.getLayout()),u=(o[0]+r[0])/2,c=(o[1]+r[1])/2;+n&&(i=[a*(n*=3)+u*(1-n),s*n+c*(1-n)]),e.setLayout([o,r,i])}))))}var ID={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=(SD.length=a,_D(t)),u=(e.eachNode((function(t){var e=bD(t);(e=isNaN(e)?2:e)<0&&(e=0),e*=l,e=Math.asin(e/2/i);isNaN(e)&&(e=wD/2),SD[t.dataIndex]=e,s+=2*e})),(2*wD-s)/a/2),c=0;e.eachNode((function(t){var e=u+SD[t.dataIndex];c+=e,t.getLayout()&&t.getLayout().fixed||t.setLayout([i*Math.cos(c)+o,i*Math.sin(c)+r]),c+=e}))}};function OD(t,e,n,i){var o,r=t.getGraphicEl();r&&(o=t.getModel().get(["label","rotate"])||0,r=r.getSymbolPath(),e?(e=t.getLayout(),(t=Math.atan2(e[1]-i,e[0]-n))<0&&(t=2*Math.PI+t),(i=e[0]<n)&&(t-=Math.PI),r.setTextConfig({rotation:-t,position:e=i?"left":"right",origin:"center"}),n=r.ensureState("emphasis"),l.m(n.textConfig||(n.textConfig={}),{position:e})):r.setTextConfig({rotation:o*=Math.PI/180}))}function TD(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&MD(t,"symbolSize")}))}var CD=g;function kD(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=p(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||(y(e,(h=a.n2).p,(p=a.n1).p),b=m(e)-a.d,a=h.w/(p.w+h.w),isNaN(a)&&(a=0),_(e,e),p.fixed||CD(p.p,p.p,e,a*b*x),h.fixed)||CD(h.p,h.p,e,-(1-a)*b*x)}for(r=0;r<n;r++)(S=i[r]).fixed||(y(e,s,S.p),CD(S.p,S.p,e,l*x));var u,c;for(r=0;r<n;r++)for(var h,p=i[r],v=r+1;v<n;v++){y(e,(h=i[v]).p,p.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=(p.rep+h.rep)/b/b;p.fixed||CD(p.pp,p.pp,e,w),h.fixed||CD(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),CD(S.p,S.p,M,x),d(S.pp,S.p));var I=(x*=.992)<.01;g&&g(i,o,I),t&&t(I)}}}function DD(t){t.eachSeriesByType("graph",(function(t){var e,n,i,o,r,a,s,u,c,h,p,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&&MD(t,"value"):mD(t),r=i.getDataExtent("value"),a=f.getDataExtent("value"),h=o.get("repulsion"),p=o.get("edgeLength"),s=l.t(h)?h:[h,h],u=[(u=l.t(p)?p:[p,p])[1],u[0]],c=i.mapArray("value",(function(t,e){var n=i.getItemLayout(e);t=ii(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=ii(e,a,u),isNaN(e)&&(e=(u[0]+u[1])/2),o.getModel());i=l.Q(o.getModel().get(["lineStyle","curveness"]),-yD(o,t,i,!0),0);return{n1:c[o.node1.dataIndex],n2:c[o.node2.dataIndex],d:e,curveness:i,ignoreForceLayout:r.get("ignoreForceLayout")}})),p=g.getBoundingRect(),(f=kD(c,h,{rect:p,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&&d(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,p=u.getLayout();(p=p?p.slice():[])[0]=p[0]||[],p[1]=p[1]||[],d(p[0],c),d(p[1],h),+l.curveness&&(p[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(p)}})),t.forceLayout=f,t.preservedPoints=e,f.step()):t.forceLayout=null)}))}function AD(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=[],Fo((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]),s=t,u=e,c=o=(r[0]-h[0])/(r[1]-h[1]),s=tu(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 VT).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"),e),a.setZoom(t.get("zoom")),n.push(a))})),n}var LD,PD,jD=zp.prototype,RD=Yp.prototype,ND=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function ED(){return null!==LD&&LD.apply(this,arguments)||this}function zD(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}function VD(t){return t=PD.call(this,t)||this,t.type="ec-line",t}a(ED,LD=ND),a(VD,PD=Ar),VD.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},VD.prototype.getDefaultShape=function(){return new ND},VD.prototype.buildPath=function(t,e){(zD(e)?jD:RD).buildPath.call(this,t,e)},VD.prototype.pointAt=function(t){return(zD(this.shape)?jD:RD).pointAt.call(this,t)},VD.prototype.tangentAt=function(t){var e=this.shape;e=zD(e)?[e.x2-e.x1,e.y2-e.y1]:RD.tangentAt.call(this,t);return _(e,e)};var BD,FD=VD,GD=["fromSymbol","toSymbol"];function HD(t){return"_"+t+"Type"}function WD(t,e,n){var i,o,r,a=e.getItemVisual(n,t);return a&&"none"!==a?(i=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),r=e.getItemVisual(n,t+"Offset"),e=e.getItemVisual(n,t+"KeepAspect"),a+(n=$g(i))+Jg(r||0,n)+(o||"")+(e||"")):a}function YD(t,e,n){var i,o,r,a=e.getItemVisual(n,t);if(a&&"none"!==a)return r=e.getItemVisual(n,t+"Size"),i=e.getItemVisual(n,t+"Rotate"),o=e.getItemVisual(n,t+"Offset"),e=e.getItemVisual(n,t+"KeepAspect"),o=Jg(o||0,n=$g(r)),(r=Qg(a,-n[0]/2+o[0],-n[1]/2+o[1],n[0],n[1],null,e)).__specifiedRotation=null==i||isNaN(i)?void 0:+i*Math.PI/180||0,r.name=t,r}function XD(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 UD(t,e,n){var i=BD.call(this)||this;return i._createLine(t,e,n),i}a(UD,BD=qn),UD.prototype._createLine=function(t,e,n){var i,o=t.hostModel,r=t.getItemLayout(e);r=r,XD((i=new FD({name:"line",subPixelOptimize:!0})).shape,r),r=i;r.shape.percent=0,xs(r,{shape:{percent:1}},o,e),this.add(r),Object(l.k)(GD,(function(n){var i=YD(n,t,e);this.add(i),this[HD(n)]=WD(n,t,e)}),this),this._updateCommonStl(t,e,n)},UD.prototype.updateData=function(t,e,n){var i=t.hostModel,o=this.childOfName("line"),r=t.getItemLayout(e),a={shape:{}};XD(a.shape,r),vs(o,a,i,e),Object(l.k)(GD,(function(n){var i=WD(n,t,e),o=HD(n);this[o]!==i&&(this.remove(this.childOfName(n)),n=YD(n,t,e),this.add(n)),this[o]=i}),this),this._updateCommonStl(t,e,n)},UD.prototype.getLinePath=function(){return this.childAt(0)},UD.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,d=n&&n.blurScope,p=(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"),d=g.get("blurScope"),u=ks(n)),t.getItemVisual(e,"style")),f=p.stroke,g=(o.useStyle(p),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)(GD,(function(t){var e=this.childOfName(t);if(e){e.setColor(f),e.style.opacity=p.opacity;for(var n=0;n<wa.length;n++){var i=wa[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));Cs(this,u,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return i.getFormattedLabel(e,n,t.dataType)}},inheritColor:f||"#000",defaultOpacity:p.opacity,defaultText:(null==g?t.getName(e):isFinite(g)?ri(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}),as(this,h,d,c)},UD.prototype.highlight=function(){Ua(this)},UD.prototype.downplay=function(){Za(this)},UD.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},UD.prototype.setLinePoints=function(t){var e=this.childOfName("line");XD(e.shape,t),e.dirty()},UD.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,d=(t=n.__labelDistance,t[0]*i),p=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=-p,h="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":v=p,h="top";break;default:v=0,h="middle"}switch(n.__position){case"end":n.x=u[0]*d+l[0],n.y=u[1]*p+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]*d+s[0],n.y=-u[1]*p+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=d*m+s[0],n.y=s[1]+v,c=f[0]<0?"right":"left",n.originX=-d*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=-d*m+l[0],n.y=l[1]+v,c=0<=f[0]?"right":"left",n.originX=d*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 ZD=UD;function qD(t){this.group=new qn,this._LineCtor=t||ZD}function KD(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:ks(t)}}function QD(t){return isNaN(t[0])||isNaN(t[1])}function $D(t){return t&&!QD(t[0])&&!QD(t[1])}qD.prototype.updateData=function(t){var e=this,n=(this._progressiveEls=null,this.group),i=this._lineData,o=(this._lineData=t,i||n.removeAll(),KD(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()},qD.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},qD.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=KD(t),this._lineData=null,this.group.removeAll()},qD.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++)$D(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))},qD.prototype.remove=function(){this.group.removeAll()},qD.prototype.eachRendered=function(t){Wf(this._progressiveEls||this.group,t)},qD.prototype._doAdd=function(t,e,n){$D(t.getItemLayout(e))&&(n=new this._LineCtor(t,e,n),t.setItemGraphicEl(e,n),this.group.add(n))},qD.prototype._doUpdate=function(t,e,n,i,o){t=t.getItemGraphicEl(n),$D(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 JD,tA=qD,eA=[],nA=[],iA=[],oA=me,rA=S,aA=Math.abs;function sA(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)eA[0]=oA(o[0],r[0],a[0],c),eA[1]=oA(o[1],r[1],a[1],c),(p=aA(rA(eA,e)-l))<s&&(s=p,i=c);for(var h=0;h<32;h++){var d=i+u,p=(nA[0]=oA(o[0],r[0],a[0],i),nA[1]=oA(o[1],r[1],a[1],i),iA[0]=oA(o[0],r[0],a[0],d),iA[1]=oA(o[1],r[1],a[1],d),rA(nA,e)-l);if(aA(p)<.01)break;d=rA(iA,e)-l,u/=2,p<0?0<=d?i+=u:i-=u:0<=d?i-=u:i+=u}return i}function lA(t,e){var n=[],i=_e,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=[p(c[0]),p(c[1])],c[2]&&c.__original.push(p(c[2]))),c.__original);null!=c[2]?(d(o[0],m[0]),d(o[1],m[2]),d(o[2],m[1]),h&&"none"!==h&&(u=bD(t.node1),l=sA(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=bD(t.node2),l=sA(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]),d(c[0],o[0]),d(c[1],o[2]),d(c[2],o[1])):(d(r[0],m[0]),d(r[1],m[1]),y(a,r[1],r[0]),_(a,a),h&&"none"!==h&&(u=bD(t.node1),g(r[0],r[0],a,u*e)),f&&"none"!==f&&(u=bD(t.node2),g(r[1],r[1],a,-u*e)),d(c[0],r[0]),d(c[1],r[1]))}))}function uA(t){return"view"===t.type}function cA(){var t=null!==JD&&JD.apply(this,arguments)||this;return t.type=cA.type,t}a(cA,JD=Jf),cA.prototype.init=function(t,e){var n=new H_,i=new tA,o=this.group;this._controller=new sO(e.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},cA.prototype.render=function(t,e,n){var i=this,o=t.coordinateSystem,r=(this._model=t,this._symbolDraw),a=this._lineDraw,s=this.group,l=(uA(o)&&(o={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY},this._firstRender?s.attr(o):vs(s,o,t)),lA(t.getGraph(),_D(t)),t.getData()),u=(s=(r.updateData(l),t.getEdgeData()),a.updateData(s),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout),t.forceLayout),c=t.get(["force","layoutAnimation"]),h=(u&&this._startForceLayoutIteration(u,c),t.get("layout")),d=(l.graph.eachNode((function(e){var n,o=e.dataIndex,r=e.getGraphicEl(),a=e.getModel();r&&(r.off("drag").off("dragend"),(n=a.get("draggable"))&&r.on("drag",(function(n){switch(h){case"force":u.warmUp(),i._layouting||i._startForceLayoutIteration(u,c),u.setFixed(o),l.setItemLayout(o,[r.x,r.y]);break;case"circular":l.setItemLayout(o,[r.x,r.y]),e.setLayout({fixed:!0},!0),MD(t,"symbolSize",e,[n.offsetX,n.offsetY]),i.updateLayout(t);break;default:l.setItemLayout(o,[r.x,r.y]),vD(t.getGraph(),t),i.updateLayout(t)}})).on("dragend",(function(){u&&u.setUnfixed(o)})),r.setDraggable(n,!!a.get("cursor")),"adjacency"===a.get(["emphasis","focus"]))&&(fa(r).focus=e.getAdjacentDataIndices())})),l.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(fa(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})})),"circular"===t.get("layout")&&t.get(["circular","rotateLabel"])),p=l.getLayout("cx"),f=l.getLayout("cy");l.graph.eachNode((function(t){OD(t,d,p,f)})),this._firstRender=!1},cA.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},cA.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())}))}()},cA.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)&&!dO(e,n,t)})),uA(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){lO(r,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){uO(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(),lA(t.getGraph(),_D(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):o.disable()},cA.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=_D(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},cA.prototype.updateLayout=function(t){lA(t.getGraph(),_D(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},cA.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},cA.type="graph";var hA=cA;function dA(t){return"_EC_"+t}function pA(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}pA.prototype.isDirected=function(){return this._directed},pA.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[dA(t)])return((e=new fA(t,e)).hostGraph=this).nodes.push(e),n[dA(t)]=e},pA.prototype.getNodeByIndex=function(t){return t=this.data.getRawIndex(t),this.nodes[t]},pA.prototype.getNodeById=function(t){return this._nodesMap[dA(t)]},pA.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 fA||(t=i[dA(t)]),e instanceof fA||(e=i[dA(e)]),t&&e)return i=t.id+"-"+e.id,((n=new yA(t,e,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},pA.prototype.getEdgeByIndex=function(t){return t=this.edgeData.getRawIndex(t),this.edges[t]},pA.prototype.getEdge=function(t,e){t instanceof fA&&(t=t.id),e instanceof fA&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},pA.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)},pA.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)},pA.prototype.breadthFirstTraverse=function(t,e,n,i){if(e=e instanceof fA?e:this._nodesMap[dA(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}}}}},pA.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},pA.prototype.clone=function(){for(var t=new pA(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},Ws=pA,gA.prototype.degree=function(){return this.edges.length},gA.prototype.inDegree=function(){return this.inEdges.length},gA.prototype.outDegree=function(){return this.outEdges.length},gA.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)},gA.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},gA.prototype.getTrajectoryDataIndices=function(){for(var t=l.f(),e=l.f(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var o=[i.node1],r=[i.node2],a=0;a<o.length;){var s=o[a];a++,e.set(s.dataIndex,!0);for(var u=0;u<s.inEdges.length;u++)t.set(s.inEdges[u].dataIndex,!0),o.push(s.inEdges[u].node1)}for(a=0;a<r.length;){var c=r[a];for(a++,e.set(c.dataIndex,!0),u=0;u<c.outEdges.length;u++)t.set(c.outEdges[u].dataIndex,!0),r.push(c.outEdges[u].node2)}}}return{edge:t.keys(),node:e.keys()}};var fA=gA;function gA(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}mA.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)},mA.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},mA.prototype.getTrajectoryDataIndices=function(){for(var t=l.f(),e=l.f(),n=(t.set(this.dataIndex,!0),[this.node1]),i=[this.node2],o=0;o<n.length;){var r=n[o];o++,e.set(r.dataIndex,!0);for(var a=0;a<r.inEdges.length;a++)t.set(r.inEdges[a].dataIndex,!0),n.push(r.inEdges[a].node1)}for(o=0;o<i.length;){var s=i[o];for(o++,e.set(s.dataIndex,!0),a=0;a<s.outEdges.length;a++)t.set(s.outEdges[a].dataIndex,!0),i.push(s.outEdges[a].node2)}return{edge:t.keys(),node:e.keys()}};var yA=mA;function mA(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}function vA(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(fA,vA("hostGraph","data")),l.K(yA,vA("hostGraph","edgeData"));var xA,_A=Ws;function bA(t,e,n,i,o){for(var r=new _A(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],d=h.source,p=h.target;r.addEdge(d,p,c)&&(u.push(h),s.push(l.O(Pi(h.id,null),d+" > "+p)),c++)}var f;i=n.get("coordinateSystem"),"cartesian2d"===i||"polar"===i?f=D_(t,n):(i=(i=tc.get(i))&&i.dimensions||[],l.r(i,"value")<0&&i.concat(["value"]),i=w_(t,{coordDimensions:i,encodeDefine:n.getEncode()}).dimensions,(f=new b_(i,n)).initData(t)),i=new b_(["value"],n);return i.initData(u,s),o&&o(f,i),LC({mainData:f,struct:r,structAttr:"graph",datas:{node:f,edge:i},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r}function wA(){var t=null!==xA&&xA.apply(this,arguments)||this;return t.type=wA.type,t.hasSymbolVisual=!0,t}a(wA,xA=Md),wA.prototype.init=function(t){xA.prototype.init.apply(this,arguments);var e=this;function n(){return e._categoriesData}this.legendVisualProvider=new Gw(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},wA.prototype.mergeOption=function(t){xA.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},wA.prototype.mergeDefaultAndTheme=function(t){xA.prototype.mergeDefaultAndTheme.apply(this,arguments),Ti(t,"edgeLabel",["show"])},wA.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],o=(t=t.data||t.nodes||[],this);if(t&&i)return uD(n=this)&&(n.__curvenessList=[],n.__edgeMap={},cD(n)),n=bA(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=el.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,t=t.dataIndex,uD(i=this)&&(e=hD(e,n,i),i=(n=i.__edgeMap)[dD(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},wA.prototype.getGraph=function(){return this.getData().graph},wA.prototype.getEdgeData=function(){return this.getGraph().edgeData},wA.prototype.getCategoriesData=function(){return this._categoriesData},wA.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),Jh("nameValue",{name:r.join(" > "),value:n.value,noValue:null==n.value})):hd({series:this,dataIndex:t,multipleSeries:e})},wA.prototype._updateCategoriesData=function(){var t=l.H(this.option.categories||[],(function(t){return null!=t.value?t:l.m({value:0},t)})),e=new b_(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},wA.prototype.setZoom=function(t){this.option.zoom=t},wA.prototype.setCenter=function(t){this.option.center=t},wA.prototype.isAnimationEnabled=function(){return xA.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},wA.type="series.graph",wA.dependencies=["grid","polar","geo","singleAxis","calendar"],wA.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 SA,MA=wA,IA={type:"graphRoam",event:"graphRoam",update:"none"},OA=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0};function TA(t){return t=SA.call(this,t)||this,t.type="pointer",t}a(TA,SA=Ar),TA.prototype.getDefaultShape=function(){return new OA},TA.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,o=e.r,r=e.width,a=e.x-n(l=e.angle)*r*(o/3<=r?1:2),s=e.y-i(l)*r*(o/3<=r?1:2),l=e.angle-Math.PI/2;t.moveTo(a,s),t.lineTo(e.x+n(l)*r,e.y+i(l)*r),t.lineTo(e.x+n(e.angle)*o,e.y+i(e.angle)*o),t.lineTo(e.x-n(l)*r,e.y-i(l)*r),t.lineTo(a,s)};var CA,kA=TA;function DA(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}function AA(){var t=null!==CA&&CA.apply(this,arguments)||this;return t.type=AA.type,t}a(AA,CA=Jf),AA.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:oi(r[0],o.getWidth()),cy:oi(r[1],o.getHeight()),r:oi(i.get("radius"),a/2)});this._renderMain(t,e,n,s,l),this._data=t.getData()},AA.prototype.dispose=function(){},AA.prototype._renderMain=function(t,e,n,i,o){for(var r=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,u=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),h=c.get("roundCap")?qb:bp,d=c.get("show"),p=c.getModel("lineStyle"),f=p.get("width"),g=(c=[s,u],lr(c,!a),(u=c[1])-(s=c[0])),y=s,m=[],v=0;d&&v<i.length;v++){var x=new h({shape:{startAngle:y,endAngle:u=s+g*Math.min(Math.max(i[v][0],0),1),cx:o.cx,cy:o.cy,clockwise:a,r0:o.r-f,r:o.r},silent:!0});x.setStyle({fill:i[v][1]}),x.setStyle(p.getLineStyle(["color","width"])),m.push(x),y=u}function _(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]}m.reverse(),Object(l.k)(m,(function(t){return r.add(t)})),this._renderTicks(t,e,n,_,o,s,u,a,f),this._renderTitleAndDetail(t,e,n,_,o),this._renderAnchor(t,o),this._renderPointer(t,e,n,_,o,s,u,a,f)},AA.prototype._renderTicks=function(t,e,n,i,o,r,a,s,u){for(var c,h,d,p,f,g,y,m=this.group,v=o.cx,x=o.cy,_=o.r,b=+t.get("min"),w=+t.get("max"),S=t.getModel("splitLine"),M=t.getModel("axisTick"),I=t.getModel("axisLabel"),O=t.get("splitNumber"),T=M.get("splitNumber"),C=oi(S.get("length"),_),k=oi(M.get("length"),_),D=r,A=(a-r)/O,L=A/T,P=S.getModel("lineStyle").getLineStyle(),j=M.getModel("lineStyle").getLineStyle(),R=S.get("distance"),N=0;N<=O;N++)if(z=Math.cos(D),V=Math.sin(D),S.get("show")&&(c=new zp({shape:{x1:z*(_-(y=R?R+u:u))+v,y1:V*(_-y)+x,x2:z*(_-C-y)+v,y2:V*(_-C-y)+x},style:P,silent:!0}),"auto"===P.stroke&&c.setStyle({stroke:i(N/O)}),m.add(c)),I.get("show")&&(y=I.get("distance")+R,c=DA(ri(N/O*(w-b)+b),I.get("formatter")),h=i(N/O),d=z*(_-C-y)+v,p=V*(_-C-y)+x,g=0,"radial"===(f=I.get("rotate"))?(g=-D+2*Math.PI,Math.PI/2<g&&(g+=Math.PI)):"tangential"===f?g=-D-Math.PI/2:Object(l.z)(f)&&(g=f*Math.PI/180),0===g?m.add(new pa({style:Ds(I,{text:c,x:d,y:p,verticalAlign:V<-.8?"top":.8<V?"bottom":"middle",align:z<-.4?"left":.4<z?"right":"center"},{inheritColor:h}),silent:!0})):m.add(new pa({style:Ds(I,{text:c,x:d,y:p,verticalAlign:"middle",align:"center"},{inheritColor:h}),silent:!0,originX:d,originY:p,rotation:g}))),M.get("show")&&N!==O){y=(y=M.get("distance"))?y+u:u;for(var E=0;E<=T;E++){var z=Math.cos(D),V=Math.sin(D),B=new zp({shape:{x1:z*(_-y)+v,y1:V*(_-y)+x,x2:z*(_-k-y)+v,y2:V*(_-k-y)+x},silent:!0,style:j});"auto"===j.stroke&&B.setStyle({stroke:i((N+E/T)/O)}),m.add(B),D+=L}D-=L}else D+=A},AA.prototype._renderPointer=function(t,e,n,i,o,r,a,s,u){var c=this.group,h=this._data,d=this._progressEls,p=[],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=oi(e.get("width"),o.r),r=oi(e.get("length"),o.r),a=t.get(["pointer","icon"]),s=e.get("offsetCenter"),l=oi(s[0],o.r);s=oi(s[1],o.r),e=e.get("keepAspect"),a=a?Qg(a,l-i/2,s-r,i,r,null,e):new kA({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")?qb:bp,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=ii(m.get(v,t),[x,_],[100,0],!0)),n}(y||f)&&(m.diff(h).add((function(e){var n,i,o=m.get(v,e);f&&(xs(n=S(e,r),{rotation:-((isNaN(+o)?w[0]:ii(o,b,w,!0))+Math.PI/2)},t),c.add(n),m.setItemGraphicEl(e,n)),y&&(n=M(e,r),i=g.get("clip"),xs(n,{shape:{endAngle:ii(o,b,w,i)}},t),c.add(n),da(t.seriesIndex,m.dataType,e,n),p[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,vs(o,{rotation:-((isNaN(+a)?w[0]:ii(a,b,w,!0))+Math.PI/2)},t),c.add(o),m.setItemGraphicEl(e,o)),y&&(o=M(e,(i=d[n])?i.shape.endAngle:r),n=g.get("clip"),vs(o,{shape:{endAngle:ii(a,b,w,n)}},t),c.add(o),da(t.seriesIndex,m.dataType,e,o),p[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 Vr?(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(ii(m.get(v,t),b,[0,1],!0))),e.z2EmphasisLift=0,cs(e,a),as(e,u,c,s)),y&&((r=p[t]).useStyle(m.getItemVisual(t,"style")),r.setStyle(a.getModel(["progress","itemStyle"]).getItemStyle()),r.z2EmphasisLift=0,cs(r,a),as(r,u,c,s))})),this._progressEls=p)},AA.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=Qg(r,e.cx-n/2+oi(i[0],e.r),e.cy-n/2+oi(i[1],e.r),n,n,null,o)).z2=t.get("showAbove")?1:0,r.setStyle(t.getModel("itemStyle").getItemStyle()),this.group.add(r))},AA.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 qn,h=[],d=[],p=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){h[t]=new pa({silent:!0}),d[t]=new pa({silent:!0})})).update((function(t,e){h[t]=r._titleEls[e],d[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 qn,b=i(ii(x,[l,u],[0,1],!0)),w=v.getModel("title");w.get("show")&&(n=w.get("offsetCenter"),r=o.cx+oi(n[0],o.r),n=o.cy+oi(n[1],o.r),(y=h[e]).attr({z2:f?0:2,style:Ds(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+oi(r[0],o.r),v=o.cy+oi(r[1],o.r),r=oi(w.get("width"),o.r),g=oi(w.get("height"),o.r),b=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:b,y=d[e],m=w.get("formatter"),y.attr({z2:f?0:2,style:Ds(w,{x:n,y:v,text:DA(x,m),width:isNaN(r)?null:r,height:isNaN(g)?null:g,align:"center",verticalAlign:"middle"},{inheritColor:b})}),zs(y,{normal:w},x,(function(t){return DA(t,m)})),p&&Vs(y,e,a,t,{getFormattedLabel:function(t,e,n,i,o,r){return DA(r?r.interpolatedValue:x,m)}}),_.add(y)),c.add(_)})),this.group.add(c),this._titleEls=h,this._detailEls=d},AA.type="gauge";var LA,PA=AA;function jA(){var t=null!==LA&&LA.apply(this,arguments)||this;return t.type=jA.type,t.visualStyleAccessPath="itemStyle",t}a(jA,LA=Md),jA.prototype.getInitialData=function(t,e){return Vw(this,["value"])},jA.type="series.gauge",jA.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,rotate:0},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 RA,NA,EA=jA,zA=["itemStyle","opacity"],VA=(a(BA,RA=Dp),BA.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(zA))?1:s;n||Ms(this),this.useStyle(t.getItemVisual(e,"style")),this.style.lineJoin="round",n?(this.setShape({points:r.points}),this.style.opacity=0,xs(this,{style:{opacity:s}},i,e)):vs(this,{style:{opacity:s},shape:{points:r.points}},i,e),cs(this,o),this._updateLabel(t,e),as(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))},BA.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;Cs(i,ks(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 dt(s[0][0],s[0][1]):null},vs(i,{style:{x:a.x,y:a.y}},o,e),i.attr({rotation:a.rotation,originX:a.x,originY:a.y,z2:10}),sv(this,lv(r),{stroke:l})},BA);function BA(t,e){var n=RA.call(this)||this,i=n,o=new jp,r=new pa;return i.setTextContent(r),n.setTextGuideLine(o),n.updateData(t,e,!0),n}function FA(){var t=null!==NA&&NA.apply(this,arguments)||this;return t.type=FA.type,t.ignoreLabelLineUpdate=!0,t}a(FA,NA=Jf),FA.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 VA(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){Ss(o.getItemGraphicEl(e),t,e)})).execute(),this._data=i},FA.prototype.remove=function(){this.group.removeAll(),this._data=null},FA.prototype.dispose=function(){},FA.type="funnel";var GA,HA=FA;function WA(){var t=null!==GA&&GA.apply(this,arguments)||this;return t.type=WA.type,t}a(WA,GA=Md),WA.prototype.init=function(t){GA.prototype.init.apply(this,arguments),this.legendVisualProvider=new Gw(l.c(this.getData,this),l.c(this.getRawData,this)),this._defaultLabelLine(t)},WA.prototype.getInitialData=function(t,e){return Vw(this,{coordDimensions:["value"],encodeDefaulter:l.h(Cu,this)})},WA.prototype._defaultLabelLine=function(t){Ti(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},WA.prototype.getDataParams=function(t){var e=this.getData(),n=GA.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},WA.type="series.funnel",WA.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 YA,XA=WA;function UA(t,e){t.eachSeriesByType("funnel",(function(t){function n(t,e){if("horizontal"===s){var n=ii(i.get(o,t)||0,[g,y],f,!0),r=void 0;switch(m){case"top":r=p;break;case"center":r=p+(c-n)/2;break;case"bottom":r=p+(c-n)}return[[e,r],[e,r+n]]}var a,l=ii(i.get(o,t)||0,[g,y],f,!0);switch(m){case"left":a=d;break;case"center":a=d+(u-l)/2;break;case"right":a=d+u-l}return[[a,e],[a+l,e]]}var i=t.getData(),o=i.mapDimension("value"),r=t.get("sort"),a=(a=e,tu(t.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})),s=t.get("orient"),u=a.width,c=a.height,h=((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),d=a.x,p=a.y,f="horizontal"===s?[oi(t.get("minSize"),c),oi(t.get("maxSize"),c)]:[oi(t.get("minSize"),u),oi(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?d+=u:p+=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=oi(S,u),"ascending"===r&&(S=-S)),M=n(O,d),I=n(T,d+S),d+=S+v):(null==(S=C.get(["itemStyle","height"]))?S=x:(S=oi(S,c),"ascending"===r&&(S=-S)),M=n(O,p),I=n(T,p+S),p+=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 ZA(){var t=null!==YA&&YA.apply(this,arguments)||this;return t.type=ZA.type,t._dataGroup=new qn,t._initialized=!1,t}function qA(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 KA(t,e,n,i,o){return i=qA(t,n,i,o),o=new jp({shape:{points:i},z2:10}),e.add(o),t.setItemGraphicEl(n,o),o}function QA(t){return t=xi(t=!0===(t=t.get("smooth",!0))?.3:t),{smooth:t=Object(l.l)(t)?0:t}}function $A(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"),cs(t,i,"lineStyle"),as(t,e.get("focus"),e.get("blurScope"),e.get("disabled"))}a(ZA,YA=Jf),ZA.prototype.init=function(){this.group.add(this._dataGroup)},ZA.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,d=t.coordinateSystem,p=d.dimensions,f=QA(t);c.diff(h).add((function(t){$A(KA(c,u,t,p,d),c,t,f)})).update((function(e,n){n=h.getItemGraphicEl(n);var i=qA(c,e,p,d);c.setItemGraphicEl(e,n),vs(n,{shape:{points:i}},t,e),Ms(n),$A(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=d).model,o=o.getRect(),l=new qr({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),s="horizontal"===s.get("layout")?"width":"height",l.setShape(s,0),xs(l,{shape:{width:o.width,height:o.height}},r,a),s=l,u.setClipPath(s)),this._data=c},ZA.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},ZA.prototype.incrementalRender=function(t,e,n){for(var i=e.getData(),o=e.coordinateSystem,r=o.dimensions,a=QA(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=KA(i,this._dataGroup,l,r,o);u.incremental=!0,$A(u,i,l,a),s.push(u)}},ZA.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},ZA.type="parallel";var JA,tL=ZA;function eL(){var t=null!==JA&&JA.apply(this,arguments)||this;return t.type=eL.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}function nL(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(eL,JA=Md),eL.prototype.getInitialData=function(t,e){return D_(null,this,{useEncodeDefaulter:Object(l.c)(nL,null,this)})},eL.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},eL.type="series.parallel",eL.dependencies=["parallel"],eL.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 iL,oL=eL,rL=["lineStyle","opacity"],aL={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(rL,!0))&&(o=t),e.ensureUniqueItemVisual(n,"style").opacity=o}),t.start,t.end)}}}};function sL(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=Oi((n=t).parallelAxis),l.k(i,(function(t){var e;l.A(t)&&(e=t.parallelIndex||0,e=Oi(n.parallel)[e])&&e.parallelAxisDefault&&l.I(t,e.parallelAxisDefault,!1)}))}function lL(){var t=null!==iL&&iL.apply(this,arguments)||this;return t.type=lL.type,t}a(lL,iL=Od),lL.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},Object(l.k)(uL,(function(t,e){n.getZr().on(e,this._handlers[e]=Object(l.c)(t,this))}),this)),og(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},lL.prototype.dispose=function(t,e){rg(this,"_throttledDispatchExpand"),Object(l.k)(this._handlers,(function(t,n){e.getZr().off(n,t)})),this._handlers=null},lL.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},lL.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(Object(l.m)({type:"parallelAxisExpand"},t))},lL.type="parallel";var uL={mousedown:function(t){cL(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(cL(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&&cL(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 cL(t,e){return t=t._model,t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var hL,dL=lL;function pL(){var t=null!==hL&&hL.apply(this,arguments)||this;return t.type=pL.type,t}a(pL,hL=fu),pL.prototype.init=function(){hL.prototype.init.apply(this,arguments),this.mergeOption({})},pL.prototype.mergeOption=function(t){var e=this.option;t&&l.I(e,t,!0),this._initDimensions()},pL.prototype.contains=function(t,e){return t=t.get("parallelIndex"),null!=t&&e.getComponent("parallel",t)===this},pL.prototype.setAxisExpand=function(t){l.k(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},pL.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)}))},pL.type="parallel",pL.dependencies=["parallelAxis"],pL.layoutMode="box",pL.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 fL,gL=pL;function yL(t,e,n,i,o){return t=fL.call(this,t,e,n)||this,t.type=i||"value",t.axisIndex=o,t}a(yL,fL=n),yL.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")};var mL=yL;function vL(t,e,n,i,o,r){t=t||0;var a=n[1]-n[0],s=(a=(null!=o&&(o=_L(o,[0,a])),null!=r&&(r=Math.max(r,null!=o?o:0)),"all"===i&&(s=_L(s=Math.abs(e[1]-e[0]),[0,a]),o=r=_L(s,[o,r]),i=0),e[0]=_L(e[0],n),e[1]=_L(e[1],n),xL(e,i)),e[i]+=t,o||0);t=n.slice();return a.sign<0?t[0]+=s:t[1]-=s,e[i]=_L(e[i],t),n=xL(e,i),null!=o&&(n.sign!==a.sign||n.span<o)&&(e[1-i]=e[i]+a.sign*o),n=xL(e,i),null!=r&&n.span>r&&(e[1-i]=e[i]+n.sign*r),e}function xL(t,e){return t=t[e]-t[1-e],{span:Math.abs(t),sign:0<t||!(t<0)&&e?-1:1}}function _L(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var bL=l.k,wL=Math.min,SL=Math.max,ML=Math.floor,IL=Math.ceil,OL=ri,TL=Math.PI;function CL(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 kL(t,e){return wL(SL(t,e[0]),e[1])}CL.prototype._init=function(t,e,n){var i=t.dimensions,o=t.parallelAxisIndex;bL(i,(function(t,n){n=o[n];var i=e.getComponent("parallelAxis",n);t=this._axesMap.set(t,new mL(t,sM(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)},CL.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},CL.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},CL.prototype.getModel=function(){return this._model},CL.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){var i;t.contains(n,e)&&(i=n.getData(),bL(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),aM(e.scale,e.model)}),this))}),this)},CL.prototype.resize=function(t,e){this._rect=tu(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},CL.prototype.getRect=function(){return this._rect},CL.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=kL(t.get("axisExpandWidth"),s),c=kL(t.get("axisExpandCount")||0,[0,l]),h=t.get("axisExpandable")&&3<l&&c<l&&1<c&&0<u&&0<a,d=t.get("axisExpandWindow"),p=(s=(d?(p=kL(d[1]-d[0],s),d[1]=d[0]+p):(p=kL(u*(c-1),s),(d=[u*(t.get("axisExpandCenter")||ML(l/2))-p/2])[1]=d[0]+p),(a-p)/(l-c)),t=(s<3&&(s=0),[ML(OL(d[0]/u,1))+1,IL(OL(d[1]/u,1))-1]),s/u*d[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:d,axisCount:l,winInnerIndices:t,axisExpandWindow0Pos:p}},CL.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])})),bL(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:TL/2,vertical:0}[o]),s=it();lt(s,s,a),st(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)},CL.prototype.getAxis=function(t){return this._axesMap.get(t)},CL.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},CL.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 d=t.getValues(a,c),p=0,f=r.length;p<f;p++)if("inactive"===s[p].getActiveState(d[p])){h="inactive";break}}else h="normal";e(h,c)}},CL.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},CL.prototype.axisCoordToPoint=function(t,e){return Pf([t,0],this._axesLayout[e].transform)},CL.prototype.getAxisLayout=function(t){return l.d(this._axesLayout[t])},CL.prototype.getSlidedAxisExpandWindow=function(t){var e,n,i,o,r=this._makeLayoutInfo(),a=r.pixelDimIndex,s=r.axisExpandWindow.slice(),l=s[1]-s[0],u=[0,r.axisExpandWidth*(r.axisCount-1)];return this.containPoint(t)?(t=t[a]-r.layoutBase-r.axisExpandWindow0Pos,a="slide",n=r.axisCollapseWidth,o=null!=(i=this._model.get("axisExpandSlideTriggerArea"))[0],n?(o&&n&&t<l*i[0]?(a="jump",e=t-l*i[2]):o&&n&&t>l*(1-i[0])?(a="jump",e=t-l*(1-i[2])):0<=(e=t-l*i[1])&&(e=t-l*(1-i[1]))<=0&&(e=0),(e*=r.axisExpandWidth/n)?vL(e,s,u,"all"):a="none"):(o=s[1]-s[0],(s=[SL(0,u[1]*t/o-o/2)])[1]=wL(u[1],s[0]+o),s[0]=s[1]-o),{axisExpandWindow:s,behavior:a}):{behavior:"none",axisExpandWindow:s}};var DL,AL=CL,LL={create:function(t,e){var n=[];return t.eachComponent("parallel",(function(i,o){var r=new AL(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",Gi).models[0],t.coordinateSystem=e.coordinateSystem)})),n}};a(PL,DL=fu),PL.prototype.getAreaSelectStyle=function(){return io([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},PL.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=l.d(t);if(e)for(var n=e.length-1;0<=n;n--)ai(e[n])},PL.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null!=t&&!isNaN(+t))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"},vl=PL;function PL(){var t=null!==DL&&DL.apply(this,arguments)||this;return t.type=PL.type,t.activeIntervals=[],t}l.K(vl,sS);var jL,RL=vl,NL=!0,EL=Math.min,zL=Math.max,VL=Math.pow,BL=1e4,FL=6,GL=6,HL="globalPan",WL={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},YL={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},XL={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},UL=0;function ZL(t){var e=jL.call(this)||this;return e._track=[],e._covers=[],e._handlers={},e._zr=t,e.group=new qn,e._uid="brushController_"+UL++,Object(l.k)(wP,(function(t,e){this._handlers[e]=Object(l.c)(t,this)}),e),e}function qL(t,e){var n=MP[e.brushType].createCover(t,e);return n.__brushOption=e,$L(n,e),t.group.add(n),n}function KL(t,e){var n=tP(e);return n.endCreating&&(n.endCreating(t,e),$L(e,e.__brushOption)),e}function QL(t,e){var n=e.__brushOption;tP(e).updateCoverShape(t,e,n.range,n)}function $L(t,e){var n=e.z;null==n&&(n=BL),t.traverse((function(t){t.z=n,t.z2=n}))}function JL(t,e){tP(e).updateCommon(t,e),QL(t,e)}function tP(t){return MP[t.__brushOption.brushType]}function eP(t,e,n){var i,o,r=t._panels;return r?(o=t._transform,Object(l.k)(r,(function(t){t.isTargetByCursor(e,n,o)&&(i=t)})),i):NL}function nP(t,e){return t=t._panels,t&&null!=(e=e.__brushOption.panelId)?t[e]:NL}function iP(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 oP(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 rP(t){var e=t.length-1;return[t[0],t[e=e<0?0:e]]}function aP(t,e,n,i){var o=new qn;return o.add(new qr({name:"main",style:cP(n),silent:!0,draggable:!0,cursor:"move",drift:Object(l.h)(pP,t,e,o,["n","s","w","e"]),ondragend:Object(l.h)(oP,e,{isEnd:!0})})),Object(l.k)(i,(function(n){o.add(new qr({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(l.h)(pP,t,e,o,n),ondragend:Object(l.h)(oP,e,{isEnd:!0})}))})),o}function sP(t,e,n,i){var o=i.brushStyle.lineWidth||0,r=zL(o,GL),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),d=n-r+o/2,p=(c=c-a,n=n-s,c+o);o=n+o;uP(t,e,"main",a,s,c,n),i.transformable&&(uP(t,e,"w",l,u,r,o),uP(t,e,"e",h,u,r,o),uP(t,e,"n",l,u,p,r),uP(t,e,"s",l,d,p,r),uP(t,e,"nw",l,u,r,r),uP(t,e,"ne",h,u,r,r),uP(t,e,"sw",l,d,r,r),uP(t,e,"se",h,d,r,r))}function lP(t,e){var n=e.__brushOption,i=n.transformable,o=e.childAt(0);o.useStyle(cP(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?dP(t,n[0]):((t,e)=>("e"!==(t=[dP(t,e[0]),dP(t,e[1])])[0]&&"w"!==t[0]||t.reverse(),t.join("")))(t,n);o&&o.attr({silent:!i,invisible:!i,cursor:i?YL[n]+"-resize":null})}))}function uP(t,e,n,i,o,r,a){n=e.childOfName(n);n&&n.setShape((n=yP(t,e,[[i,o],[i+r,o+a]]),t=EL(n[0][0],n[1][0]),e=EL(n[0][1],n[1][1]),i=zL(n[0][0],n[1][0]),n=zL(n[0][1],n[1][1]),{x:t,y:e,width:i-t,height:n-e}))}function cP(t){return Object(l.i)({strokeNoScale:!0},t.brushStyle)}function hP(t,e,n,i){var o=[EL(t,n),EL(e,i)];t=[zL(t,n),zL(e,i)];return[[o[0],t[0]],[o[1],t[1]]]}function dP(t,e){return{left:"w",right:"e",top:"n",bottom:"s"}[jf({w:"left",e:"right",n:"top",s:"bottom"}[e],Lf(t.group))]}function pP(t,e,n,i,o,r){var a=n.__brushOption,s=t.toRectRange(a.range),u=gP(e,o,r);Object(l.k)(i,(function(t){t=WL[t],s[t[0]][t[1]]+=u[t[0]]})),a.range=t.fromRectRange(hP(s[0][0],s[1][0],s[0][1],s[1][1])),JL(e,n),oP(e,{isEnd:!1})}function fP(t,e,n,i){var o=e.__brushOption.range,r=gP(t,n,i);Object(l.k)(o,(function(t){t[0]+=r[0],t[1]+=r[1]})),JL(t,e),oP(t,{isEnd:!1})}function gP(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 yP(t,e,n){return e=nP(t,e),e&&e!==NL?e.clipPath(n,t._transform):Object(l.d)(n)}function mP(t,e,n){if(t._brushType&&!((t,e,n)=>(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=eP(t,e,n);if(!t._dragging)for(var a=0;a<o.length;a++){var s=o[a].__brushOption;if(r&&(r===NL||s.panelId===r.panelId)&&MP[s.brushType].contain(o[a],n[0],n[1]))return}r&&i.setCursorStyle("crosshair")}}function vP(t){t=t.event,t.preventDefault&&t.preventDefault()}function xP(t,e,n){return t.childOfName("main").contain(e,n)}function _P(t,e,n,i){var o,r,a=t._creatingCover,s=t._creatingPanel,u=t._brushOption;return t._track.push(n.slice()),(t=>{var e,n;return(t=t._track).length&&(e=(n=t[t.length-1])[0]-(t=t[0])[0],n=VL(e*e+(e=n[1]-t[1])*e,.5),FL<n)})(t)||a?(s&&!a&&("single"===u.brushMode&&iP(t),(r=Object(l.d)(u)).brushType=bP(r.brushType,s),r.panelId=s===NL?null:s.panelId,a=t._creatingCover=qL(t,r),t._covers.push(a)),a&&(r=MP[bP(t._brushType,s)],a.__brushOption.range=r.getCreatingRange(yP(t,a,t._track)),i&&(KL(t,a),r.updateCommon(t,a)),QL(t,a),o={isEnd:i})):i&&"single"===u.brushMode&&u.removeOnClick&&eP(t,e,n)&&iP(t)&&(o={isEnd:i,removeOnClick:!0}),o}function bP(t,e){return"auto"===t?e.defaultBrushType:t}a(ZL,jL=L),ZL.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},ZL.prototype._doEnableBrush=function(t){var e,n,i=this._zr;this._enableGlobalPan||(e=HL,n=this._uid,nO(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)(XL),t,!0)},ZL.prototype._doDisableBrush=function(){var t,e,n,i=this._zr;t=i,e=HL,n=this._uid,(t=nO(t))[e]===n&&(t[e]=null),Object(l.k)(this._handlers,(function(t,e){i.off(e,t)})),this._brushType=this._brushOption=null},ZL.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},ZL.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},ZL.prototype.updateCovers=function(t){t=Object(l.H)(t,(function(t){return Object(l.I)(Object(l.d)(XL),t,!0)}));var e="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,r=this._creatingCover;return new Zx(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]):KL(o,qL(o,s)),JL(o,e))}},ZL.prototype.unmount=function(){return this.enableBrush(!1),iP(this),this._zr.remove(this.group),this},ZL.prototype.dispose=function(){this.unmount(),this.off()};var wP={mousedown:function(t){var e;this._dragging?SP(this,t):t.target&&t.target.draggable||(vP(t),e=this.group.transformCoordToLocal(t.offsetX,t.offsetY),this._creatingCover=null,(this._creatingPanel=eP(this,t,e))&&(this._dragging=!0,this._track=[e.slice()]))},mousemove:function(t){var e=t.offsetX;e=this.group.transformCoordToLocal(e,t.offsetY);mP(this,t,e),this._dragging&&(vP(t),t=_P(this,t,e,!1))&&oP(this,t)},mouseup:function(t){SP(this,t)}};function SP(t,e){var n;t._dragging&&(vP(e),n=e.offsetX,n=t.group.transformCoordToLocal(n,e.offsetY),e=_P(t,e,n,!0),t._dragging=!1,t._track=[],t._creatingCover=null,e)&&oP(t,e)}var MP={lineX:IP(0),lineY:IP(1),rect:{createCover:function(t,e){function n(t){return t}return aP({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){return t=rP(t),hP(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(t,e,n,i){sP(t,e,n,i)},updateCommon:lP,contain:xP},polygon:{createCover:function(t,e){var n=new qn;return n.add(new jp({name:"main",style:cP(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Dp({name:"main",draggable:!0,drift:Object(l.h)(fP,t,e),ondragend:Object(l.h)(oP,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:yP(t,e,n)})},updateCommon:lP,contain:xP}};function IP(t){return{createCover:function(e,n){return aP({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=rP(e),[EL(e[0][t],e[1][t]),zL(e[0][t],e[1][t])]},updateCoverShape:function(e,n,i,o){var r=nP(e,n);r=[i,r!==NL&&r.getLinearBrushOtherExtent?r.getLinearBrushOtherExtent(t):[0,[(i=e._zr).getWidth(),i.getHeight()][1-t]]];t&&r.reverse(),sP(e,n,r,o)},updateCommon:lP,contain:xP}}var OP=ZL;function TP(t){return t=DP(t),function(e){return Ef(e,t)}}function CP(t,e){return t=DP(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 kP(t,e,n){var i=DP(t);return function(t,o){return i.contain(o[0],o[1])&&!dO(t,e,n)}}function DP(t){return wt.create(t)}var AP,LP=["axisLine","axisTickLabel","axisName"];function PP(){var t=null!==AP&&AP.apply(this,arguments)||this;return t.type=PP.type,t}a(PP,AP=Od),PP.prototype.init=function(t,e){AP.prototype.init.apply(this,arguments),(this._brushController=new OP(e.getZr())).on("brush",l.c(this._onBrush,this))},PP.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 qn,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 tI(t,a),l.k(LP,s.add,s),this._axisGroup.add(s.getGroup()),this._refreshBrushController(a,e,t,i,r,n),Nf(o,this._axisGroup,t)))},PP.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=wt.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:TP(s),isTargetByCursor:kP(s,r,i),getLinearBrushOtherExtent:CP(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)]}}))))},PP.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})},PP.prototype.dispose=function(){this._brushController.dispose()},PP.type="parallelAxis";var jP=PP,RP={type:"axisAreaSelect",event:"axisAreaSelected"},NP={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function EP(t){t.registerComponentView(dL),t.registerComponentModel(gL),t.registerCoordinateSystem("parallel",LL),t.registerPreprocessor(sL),t.registerComponentModel(RL),t.registerComponentView(jP),vS(t,"parallel",RL,NP),(t=t).registerAction(RP,(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 zP,VP,BP=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},FP=(a(GP,zP=Ar),GP.prototype.getDefaultShape=function(){return new BP},GP.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()},GP.prototype.highlight=function(){Ua(this)},GP.prototype.downplay=function(){Za(this)},GP);function GP(t){return zP.call(this,t)||this}function HP(){var t=null!==VP&&VP.apply(this,arguments)||this;return t.type=HP.type,t._focusAdjacencyDisabled=!1,t}function WP(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),o=n.node2.getVisual("color");Object(l.C)(i)&&Object(l.C)(o)&&(t.fill=new nf(0,0,+("horizontal"===e),+("vertical"===e),[{color:i,offset:0},{color:o,offset:1}]))}}a(HP,VP=Jf),HP.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,d=t.getData(),p=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,d,g=new FP,y=fa(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()),O=(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,d=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,d=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:d,cpy2:b}),g.useStyle(m.getItemStyle()),WP(g.style,f,e),""+y.get("value")),T=ks(y,"edgeLabel");Cs(g,T,{labelFetcher:{getFormattedLabel:function(e,n,i,o,r,a){return t.getFormattedLabel(e,n,"edge",o,Object(l.Q)(r,T.normal&&T.normal.get("formatter"),O),a)}},labelDataIndex:e.dataIndex,defaultText:O}),g.setTextConfig({position:"inside"}),_=y.getModel("emphasis"),cs(g,y,"lineStyle",(function(t){return t=t.getItemStyle(),WP(t,f,e),t})),s.add(g),p.setItemGraphicEl(e.dataIndex,g),x=_.get("focus");as(g,"adjacency"===x?e.getAdjacentDataIndices():"trajectory"===x?e.getTrajectoryDataIndices():x,_.get("blurScope"),_.get("disabled"))})),a.eachNode((function(e){var n=e.getLayout(),i=e.getModel(),o=i.get("localX"),r=i.get("localY"),a=i.getModel("emphasis"),l=i.get(["itemStyle","borderRadius"])||0;o=new qr({shape:{x:null!=o?o*c:n.x,y:null!=r?r*h:n.y,width:n.dx,height:n.dy,r:l},style:i.getModel("itemStyle").getItemStyle(),z2:10}),Cs(o,ks(i),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(e,n,"node")}},labelDataIndex:e.dataIndex,defaultText:e.id}),o.disableLabelAnimation=!0,o.setStyle("fill",e.getVisual("color")),o.setStyle("decal",e.getVisual("style").decal),cs(o,i),s.add(o),d.setItemGraphicEl(e.dataIndex,o),fa(o).dataType="node",r=a.get("focus");as(o,"adjacency"===r?e.getAdjacentDataIndices():"trajectory"===r?e.getTrajectoryDataIndices():r,a.get("blurScope"),a.get("disabled"))})),d.eachItemGraphicEl((function(e,i){d.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:d.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()},xs(o=new qr({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()},HP.prototype.dispose=function(){},HP.type="sankey";var YP,XP=HP;function UP(){var t=null!==YP&&YP.apply(this,arguments)||this;return t.type=UP.type,t}a(UP,YP=Md),UP.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 el(o[a],this,e));return bA(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},UP.prototype.setNodePosition=function(t,e){t=(this.option.data||this.option.nodes)[t],t.localX=e[0],t.localY=e[1]},UP.prototype.getGraph=function(){return this.getData().graph},UP.prototype.getEdgeData=function(){return this.getGraph().edgeData},UP.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}var o,r;return"edge"===n?Jh("nameValue",{name:(r=(o=this.getDataParams(t,n)).data).source+" -- "+r.target,value:r=o.value,noValue:i(r)}):(o=this.getGraph().getNodeByIndex(t).getLayout().value,Jh("nameValue",{name:null!=(r=this.getDataParams(t,n).data.name)?r+"":null,value:o,noValue:i(o)}))},UP.prototype.optionUpdated=function(){},UP.prototype.getDataParams=function(t,e){var n=YP.prototype.getDataParams.call(this,t,e);return null==n.value&&"node"===e&&(e=this.getGraph().getNodeByIndex(t).getLayout().value,n.value=e),n},UP.type="series.sankey",UP.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},edgeLabel:{show:!1,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 ZP=UP;function qP(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),o=(o=e,tu(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=oj(t.outEdges,ij),n=oj(t.inEdges,ij),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),d=a,p=n,f=(r=n=r,o),g=c,y=[],m=[],v=[],x=[],_=0,b=0;b<d.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:p},!0):M.setLayout({dx:p},!0);for(var T=0;T<M.outEdges.length;T++){var C=M.outEdges[T],k=d.indexOf(C);k=(y[k]=0,C.node2),C=h.indexOf(k);0==--m[C]&&x.indexOf(k)<0&&x.push(k)}}++_,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 D=_-1<w?w:_-1;if(t&&"left"!==t){var A=h,L=D;if("right"===t){for(var P=[],j=A,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 V=E.inEdges[z];P.indexOf(V.node1)<0&&P.push(V.node1)}}j=P,P=[],++R}l.k(A,(function(t){KP(t)||t.setLayout({depth:Math.max(0,L-t.getLayout().skNodeHeight)},!0)}))}else if("justify"===t){t=A;var B=L;l.k(t,(function(t){KP(t)||t.outEdges.length||t.setLayout({depth:B},!0)}))}}t=h;var F="vertical"===g?(f-p)/D:(r-p)/D,G=g;l.k(t,(function(t){var e=t.getLayout().depth*F;"vertical"===G?t.setLayout({y:e},!0):t.setLayout({x:e},!0)}));A=a;var H=o,W=n,Y=i,X=u,U=c,Z=((t,e)=>{var n=[],i="vertical"===e?"y":"x",o=Xi(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})(f=s,U),q=(f=Z,H),K=W,Q=Y,$=U,J=1/0;l.k(f,(function(t){var e=t.length,n=0;l.k(t,(function(t){n+=t.getLayout().value})),t="vertical"===$?(K-(e-1)*Q)/n:(q-(e-1)*Q)/n;t<J&&(J=t)})),l.k(f,(function(t){l.k(t,(function(t,e){var n=t.getLayout().value*J;"vertical"===$?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),l.k(A,(function(t){var e=+t.getValue()*J;t.setLayout({dy:e},!0)})),QP(Z,Y,H,W,U);for(var tt=1;0<X;X--)((t,e,n)=>{l.k(t.slice().reverse(),(function(t){l.k(t,(function(t){var i,o;t.outEdges.length&&(i=oj(t.outEdges,$P,n)/oj(t.outEdges,ij),isNaN(i)&&(i=(o=t.outEdges.length)?oj(t.outEdges,JP,n)/o:0),"vertical"===n?(o=t.getLayout().x+(i-nj(t,n))*e,t.setLayout({x:o},!0)):(o=t.getLayout().y+(i-nj(t,n))*e,t.setLayout({y:o},!0)))}))}))})(Z,tt*=.99,U),QP(Z,Y,H,W,U),((t,e,n)=>{l.k(t,(function(t){l.k(t,(function(t){var i,o;t.inEdges.length&&(i=oj(t.inEdges,tj,n)/oj(t.inEdges,ij),isNaN(i)&&(i=(o=t.inEdges.length)?oj(t.inEdges,ej,n)/o:0),"vertical"===n?(o=t.getLayout().x+(i-nj(t,n))*e,t.setLayout({x:o},!0)):(o=t.getLayout().y+(i-nj(t,n))*e,t.setLayout({y:o},!0)))}))}))})(Z,tt,U),QP(Z,Y,H,W,U);r=s;var et="vertical"===c?"x":"y";l.k(r,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[et]-e.node2.getLayout()[et]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[et]-e.node1.getLayout()[et]}))})),l.k(r,(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 KP(t){return t=t.hostGraph.data.getRawDataItem(t.dataIndex),null!=t.depth&&0<=t.depth}function QP(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",d=0;d<c;d++)0<(l=u-(s=t[d]).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,d=c-2;0<=d;--d)0<(l=(s=t[d]).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 $P(t,e){return nj(t.node2,e)*t.getValue()}function JP(t,e){return nj(t.node2,e)}function tj(t,e){return nj(t.node1,e)*t.getValue()}function ej(t,e){return nj(t.node1,e)}function nj(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function ij(t){return t.getValue()}function oj(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 rj(t){t.eachSeriesByType("sankey",(function(t){var e,n,i=t.getGraph(),o=i.nodes;i=i.edges;o.length&&(e=1/0,n=-1/0,l.k(o,(function(t){t=t.getLayout().value,t<e&&(e=t),n<t&&(n=t)})),l.k(o,(function(i){var o=new jk({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}))}))),i.length&&l.k(i,(function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)}))}))}function aj(){}aj.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&null!=e.get(t)},aj.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=!this._hasEncodeRule("x")):"category"===a?(t.layout="vertical",n=e.getOrdinalMeta(),u=!this._hasEncodeRule("y")):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:Jx(e),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:r,type:Jx(o),dimsDef:u.slice()}];return Vw(this,{coordDimensions:a,dimensionsCount:u.length+1,encodeDefaulter:l.h(Tu,a,this)})},aj.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e=aj,a(lj,sj=Md),lj.type="series.boxplot",lj.dependencies=["xAxis","yAxis","grid"],lj.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 sj;Js=lj;function lj(){var t=null!==sj&&sj.apply(this,arguments)||this;return t.type=lj.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)(Js,e,!0);var uj,cj=Js;a(hj,uj=Jf),hj.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=yj(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?(Ms(e),mj(n,e,i,t)):e=yj(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},hj.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},hj.type="boxplot",Wg=hj;function hj(){var t=null!==uj&&uj.apply(this,arguments)||this;return t.type=hj.type,t}var dj,pj=function(){},fj=(a(gj,dj=Ar),gj.prototype.getDefaultShape=function(){return new pj},gj.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])},gj);function gj(t){return t=dj.call(this,t)||this,t.type="boxplotBoxPath",t}function yj(t,e,n,i,o){var r,a,s=t.ends;i=new fj({shape:{points:o?(r=i,a=t,l.H(s,(function(t){return(t=t.slice())[r]=a.initBaseline,t}))):s}});return mj(t,i,e,n,o),i}function mj(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");cs(e,r),as(e,t.get("focus"),t.get("blurScope"),t.get("disabled"))}var vj=Wg,xj=l.k;function _j(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)})),xj(e,(function(t){var e,n,i,o,r,a,s,u,c,h,d,p,f=t.seriesModels;f.length&&(o=(e=t).axis,a=(r=e.seriesModels).length,s=e.boxWidthList=[],u=e.boxOffsetList=[],c=[],n="category"===o.type?o.getBandWidth():(i=0,xj(r,(function(t){i=Math.max(i,t.getData().count())})),e=o.getExtent(),Math.abs(e[1]-e[0])/i),xj(r,(function(t){t=t.get("boxWidth"),l.t(t)||(t=[t,t]),c.push([oi(t[0],n)||0,oi(t[1],n)||0])})),h=(o=.8*n-2)/a*.3,p=(d=(o-h*(a-1))/a)/2-o/2,xj(r,(function(t,e){u.push(p),p+=h+d,s.push(Math.min(Math.max(d,c[e][0]),c[e][1]))})),xj(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 d=r.get(u,h),p=v(d,c[2],h),f=v(d,c[0],h),g=v(d,c[1],h),y=v(d,c[3],h),m=(d=v(d,c[4],h),[]);x(m,g,!1),x(m,y,!0),m.push(f,g,d,y),_(m,f),_(m,d),_(m,p),r.setItemLayout(h,{initBaseline:p[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 bj={type:"echarts:boxplot",transform:function(t){var e=t.upstream;e.sourceFormat!==vu&&Gu(""),e=((t,e)=>{for(var n=[],i=[],o=(e=e||{}).boundIQR,r="none"===o||0===o,a=0;a<t.length;a++){var s=ai(t[a].slice()),u=mi(s,.25),c=mi(s,.5),h=mi(s,.75),d=s[0],p=s[s.length-1],f=(null==o?1.5:o)*(h-u),g=r?d:Math.max(d,u-f),y=r?p:Math.min(p,h+f),m=(d=e.itemNameFormatter,Object(l.w)(d)?d({value:a}):Object(l.C)(d)?d.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}]}},wj=["itemStyle","borderColor"],Sj=["itemStyle","borderColor0"],Mj=["itemStyle","borderColorDoji"],Ij=["itemStyle","color"],Oj=["itemStyle","color0"];function Tj(t,e){return e.get(0<t?Ij:Oj)}function Cj(t,e){return e.get(0===t?Mj:0<t?wj:Sj)}var kj,Dj={seriesType:"candlestick",plan:Td(),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();o=(r.fill=Tj(o,i),r.stroke=Cj(o,i)||r.fill,e.ensureUniqueItemVisual(n,"style"));Object(l.m)(o,r)}}}}},Aj=["color","borderColor"];a(Lj,kj=Jf),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){Wf(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&&zj(s,a)||(xs(l=Ej(a,0,!0),{shape:{points:a.ends}},t,n),Vj(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&&zj(s,u))?i.remove(l):(l?(vs(l,{shape:{points:u.ends}},t,a),Ms(l)):l=Ej(u),Vj(l,e,a,o),i.add(l),e.setItemGraphicEl(a,l))})).remove((function(t){t=n.getItemGraphicEl(t),t&&i.remove(t)})).execute(),this._data=e},Lj.prototype._renderLarge=function(t){this._clear(),Wj(t,this.group),t=t.get("clip",!0)?db(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=Ej(i.getItemLayout(n));Vj(r,i,n,o),r.incremental=!0,this.group.add(r),this._progressiveEls.push(r)}},Lj.prototype._incrementalRenderLarge=function(t,e){Wj(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",Yg=Lj;function Lj(){var t=null!==kj&&kj.apply(this,arguments)||this;return t.type=Lj.type,t}var Pj,jj=function(){},Rj=(a(Nj,Pj=Ar),Nj.prototype.getDefaultShape=function(){return new jj},Nj.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]))},Nj);function Nj(t){return t=Pj.call(this,t)||this,t.type="normalCandlestickBox",t}function Ej(t,e,n){var i,o=t.ends;return new Rj({shape:{points:n?(i=t,l.H(o,(function(t){return(t=t.slice())[1]=i.initBaseline,t}))):o},z2:100})}function zj(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 Vj(t,e,n,i){var o=e.getItemModel(n),r=(t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=i,cs(t,o),e.getItemLayout(n).sign);l.k(t.states,(function(t,e){e=o.getModel(e);var n=Tj(r,e);e=Cj(r,e)||n,t=t.style||(t.style={});n&&(t.fill=n),e&&(t.stroke=e)})),i=o.getModel("emphasis");as(t,i.get("focus"),i.get("blurScope"),i.get("disabled"))}var Bj,Fj=function(){},Gj=(a(Hj,Bj=Ar),Hj.prototype.getDefaultShape=function(){return new Fj},Hj.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},Hj);function Hj(t){return t=Bj.call(this,t)||this,t.type="largeCandlestickBox",t}function Wj(t,e,n,i){var o=t.getData(),r=o.getLayout("largePoints"),a=new Gj({shape:{points:r},__sign:1,ignoreCoarsePointer:!0}),s=(e.add(a),new Gj({shape:{points:r},__sign:-1,ignoreCoarsePointer:!0}));e.add(s),r=new Gj({shape:{points:r},__sign:0,ignoreCoarsePointer:!0});e.add(r),Yj(1,a,t),Yj(-1,s,t),Yj(0,r,t),i&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function Yj(t,e,n){t=Cj(t,n)||Tj(t,n),n=n.getModel("itemStyle").getItemStyle(Aj),e.useStyle(n),e.style.fill=null,e.style.stroke=t}var Xj,Uj=Yg;a(Zj,Xj=Md),Zj.prototype.getShadowDim=function(){return"open"},Zj.prototype.brushSelector=function(t,e,n){return e=e.getItemLayout(t),e&&n.rect(e.brushRect)},Zj.type="series.candlestick",Zj.dependencies=["xAxis","yAxis","grid"],Zj.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},Hg=Zj;function Zj(){var t=null!==Xj&&Xj.apply(this,arguments)||this;return t.type=Zj.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}Object(l.K)(Hg,e,!0);var qj=Hg;function Kj(t){t&&l.t(t.series)&&l.k(t.series,(function(t){l.A(t)&&"k"===t.type&&(t.type="candlestick")}))}function Qj(t,e,n,i,o,r){return n=i<n?-1:n<i?1:r?0:!(0<e)||t.get(o,e-1)<=i?1:-1,n}var $j,Jj={seriesType:"candlestick",plan:Td(),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=oi(Object(l.P)(a.get("barMaxWidth"),u),u),n=oi(Object(l.P)(a.get("barMinWidth"),1),u),null!=(a=a.get("barWidth"))?oi(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],d=u[2],p=u[3];if(o.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(s<0||u.length<4))return{progress:t.pipelineContext.large?function(e,n){for(var o,r=Z_(4*e.count),a=0,l=[],u=[],f=n.getStore(),g=!!t.get(["itemStyle","borderColorDoji"]);null!=(o=e.next());){var y=f.get(s,o),m=f.get(c,o),v=f.get(h,o),x=f.get(d,o),_=f.get(p,o);isNaN(y)||isNaN(x)||isNaN(_)?(r[a++]=NaN,a+=3):(r[a++]=Qj(f,o,m,v,h,g),l[0]=y,l[1]=x,o=i.dataToPoint(l,null,u),r[a++]=o?o[0]:NaN,r[a++]=o?o[1]:NaN,l[1]=_,o=i.dataToPoint(l,null,u),r[a++]=o?o[1]:NaN)}n.setLayout("largePoints",r)}: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(d,n),g=o.get(p,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)),x=!!e.getItemModel(n).get(["itemStyle","borderColorDoji"]),e.setItemLayout(n,{sign:Qj(o,n,l,u,h,x),initBaseline:(u<l?m:y)[1],ends:_,brushRect:((t,e,n)=>(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]=Af(i[0]+r/2,1,!1),e[0]=Af(e[0]-r/2,1,!0),n?t.push(i,e):t.push(e,i)}function S(t){return t[0]=Af(t[0],1),t}}}}};function tR(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 eR(t,e){var n=$j.call(this)||this,i=new z_(t,e),o=new qn;return n.add(i),n.add(o),n.updateData(t,e),n}a(eR,$j=qn),eR.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},eR.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=Qg(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)}tR(o,t)},eR.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)}tR(n,t)},eR.prototype.highlight=function(){Ua(this)},eR.prototype.downplay=function(){Za(this)},eR.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},eR.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=$g(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)})),Jg(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,as(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},eR.prototype.fadeOut=function(t){t&&t()};var nR,iR=eR;function oR(){var t=null!==nR&&nR.apply(this,arguments)||this;return t.type=oR.type,t}a(oR,nR=Jf),oR.prototype.init=function(){this._symbolDraw=new H_(iR)},oR.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)},oR.prototype._getClipShape=function(t){var e=t.coordinateSystem;e=e&&e.getArea&&e.getArea();return t.get("clip",!0)?e:null},oR.prototype.updateTransform=function(t,e,n){var i=t.getData();this.group.dirty(),t=Tb("").reset(t,e,n);t.progress&&t.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},oR.prototype._updateGroupTransform=function(t){var e;t=t.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=(t=t.getRoamTransform(),rt(e=it(),t),e),this.group.decomposeTransform())},oR.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},oR.type="effectScatter";var rR,aR=oR;function sR(){var t=null!==rR&&rR.apply(this,arguments)||this;return t.type=sR.type,t.hasSymbolVisual=!0,t}a(sR,rR=Md),sR.prototype.getInitialData=function(t,e){return D_(null,this,{useEncodeDefaulter:!0})},sR.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},sR.type="series.effectScatter",sR.dependencies=["grid","polar"],sR.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 lR,uR=sR;function cR(t,e,n){var i=lR.call(this)||this;return i.add(i.createLine(t,e,n)),i._updateEffectSymbol(t,e),i}a(cR,lR=qn),cR.prototype.createLine=function(t,e,n){return new ZD(t,e,n)},cR.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=Qg(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))},cR.prototype._updateEffectAnimation=function(t,e,n){var i,o,r,a,s,u=this.childAt(1);u&&(s=t.getItemLayout(n),i=1e3*e.get("period"),o=e.get("loop"),r=e.get("roundTrip"),a=e.get("constantSpeed"),e=l.O(e.get("delay"),(function(e){return e/t.count()*i/3})),u.ignore=!0,this._updateAnimationPoints(u,s),(i=0<a?this._getLineLength(u)/a*1e3:i)===this._period&&o===this._loop&&r===this._roundTrip||(u.stopAnimation(),s=void 0,s=l.w(e)?e(n):e,0<u.__t&&(s=-i*u.__t),this._animateSymbol(u,i,s,o,r)),this._period=i,this._loop=o,this._roundTrip=r)},cR.prototype._animateSymbol=function(t,e,n,i,o){var r;0<e&&(t.__t=0,r=this,e=t.animate("",i).when(o?2*e:e,{__t:o?2:1}).delay(n).during((function(){r._updateSymbolPosition(t)})),i||e.done((function(){r.remove(t)})),e.start())},cR.prototype._getLineLength=function(t){return w(t.__p1,t.__cp1)+w(t.__cp1,t.__p2)},cR.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]},cR.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},cR.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,r=[t.x,t.y],a=r.slice(),s=me,l=ve;r[0]=s(e[0],i[0],n[0],o),r[1]=s(e[1],i[1],n[1],o),s=t.__t<1?l(e[0],i[0],n[0],o):l(n[0],i[0],e[0],1-o),l=t.__t<1?l(e[1],i[1],n[1],o):l(n[1],i[1],e[1],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]},cR.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)};var hR,dR=cR;function pR(t,e,n){var i=hR.call(this)||this;return i._createPolyline(t,e,n),i}a(pR,hR=qn),pR.prototype._createPolyline=function(t,e,n){var i=t.getItemLayout(e);i=new jp({shape:{points:i}});this.add(i),this._updateCommonStl(t,e,n)},pR.prototype.updateData=function(t,e,n){var i=t.hostModel;vs(this.childAt(0),{shape:{points:t.getItemLayout(e)}},i,e),this._updateCommonStl(t,e,n)},pR.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,as(this,a,s,l)},pR.prototype.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))};var fR,gR=pR;function yR(){var t=null!==fR&&fR.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}a(yR,fR=dR),yR.prototype.createLine=function(t,e,n){return new gR(t,e,n)},yR.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,o=1;o<e.length;o++)i+=w(e[o-1],e[o]),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}},yR.prototype._getLineLength=function(){return this._length},yR.prototype._updateSymbolPosition=function(t){var e=t.__t<1?t.__t:2-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],t.__t<1?n[0]-s[0]:s[0]-n[0]),s=t.__t<1?n[1]-s[1]:s[1]-n[1];t.rotation=-Math.atan2(s,r)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=e,t.ignore=!1}};var mR,vR=yR,xR=function(){this.polyline=!1,this.curveness=0,this.segs=[]},_R=(a(bR,mR=Ar),bR.prototype.reset=function(){this.notClear=!1,this._off=0},bR.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},bR.prototype.getDefaultShape=function(){return new xR},bR.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)},bR.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(hr(u,c,d=i[s++],p=i[s++],r,t,e))return a;a++}else for(a=0,s=0;s<i.length;){u=i[s++],c=i[s++];var d=i[s++],p=i[s++];if(0<o){if(dr(u,c,(u+d)/2-(c-p)*o,(c+p)/2-(d-u)*o,d,p,r,t,e))return a}else if(hr(u,c,d,p,r,t,e))return a;a++}return-1},bR.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)},bR.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 wt(n,i,o,r)}return t},bR);function bR(t){return t=mR.call(this,t)||this,t._off=0,t.hoverDataIdx=-1,t}function wR(){this.group=new qn}wR.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},wR.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},wR.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)},wR.prototype.remove=function(){this._clear()},wR.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},wR.prototype._create=function(){var t=new _R({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},wR.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),fa(t));o.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){o.dataIndex=null;var n=t.hoverDataIdx;0<n&&(o.dataIndex=n+t.__startIndex)}))},wR.prototype._clear=function(){this._newAdded=[],this.group.removeAll()};var SR,MR=wR,IR={seriesType:"lines",plan:Td(),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,d=[];for(c=o.start;c<o.end;c++){var p=t.getLineCoords(c,a);e&&(s[h++]=p);for(var f=0;f<p;f++)d=i.dataToPoint(a[f],!1,d),s[h++]=d[0],s[h++]=d[1]}r.setLayout("linesPoints",s)}else for(c=o.start;c<o.end;c++){var g=r.getItemModel(c),y=(p=t.getLineCoords(c,a),[]);if(e)for(var m=0;m<p;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 OR(){var t=null!==SR&&SR.apply(this,arguments)||this;return t.type=OR.type,t}a(OR,SR=Jf),OR.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)&&db(t.coordinateSystem,!1,t);s?this.group.setClipPath(s):this.group.removeClipPath(),this._lastZlevel=r,this._finished=!0},OR.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},OR.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},OR.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},OR.prototype.updateTransform=function(t,e,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};o=IR.reset(t,e,n),o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},OR.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 MR:new tA(o?i?vR:gR:i?dR:ZD),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=e),this.group.add(n.group),n},OR.prototype._showEffect=function(t){return!!t.get(["effect","show"])},OR.prototype._clearLayer=function(t){t=t.getZr(),"svg"!==t.painter.getType()&&null!=this._lastZlevel&&t.painter.getLayer(this._lastZlevel).clear(!0)},OR.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},OR.prototype.dispose=function(t,e){this.remove(t,e)},OR.type="lines";var TR,CR=OR,kR="undefined"==typeof Uint32Array?Array:Uint32Array,DR="undefined"==typeof Float64Array?Array:Float64Array;function AR(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 LR(){var t=null!==TR&&TR.apply(this,arguments)||this;return t.type=LR.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}a(LR,TR=Md),LR.prototype.init=function(t){t.data=t.data||[],AR(t);var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count)),TR.prototype.init.apply(this,arguments)},LR.prototype.mergeOption=function(t){var e;AR(t),t.data&&(e=this._processFlatCoordsArray(t.data),this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords)&&(t.data=new Float32Array(e.count)),TR.prototype.mergeOption.apply(this,arguments)},LR.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)},LR.prototype._getCoordsFromItemModel=function(t){return t=this.getData().getItemModel(t),t.option instanceof Array?t.option:t.getShallow("coords")},LR.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},LR.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},LR.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 kR(n),o=new DR(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 d=t[u++],p=t[u++];o[r++]=d,o[r++]=p}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:o,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},LR.prototype.getInitialData=function(t,e){var n=new b_(["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},LR.prototype.formatTooltip=function(t,e,n){t=this.getData().getItemModel(t);var i,o=t.get("name");return o||(o=t.get("fromName"),t=t.get("toName"),i=[],null!=o&&i.push(o),null!=t&&i.push(t),Jh("nameValue",{name:i.join(" > ")}))},LR.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},LR.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},LR.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},LR.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+"":""},LR.type="series.lines",LR.dependencies=["grid","polar","geo","calendar"],LR.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 PR=LR;function jR(t){return t instanceof Array?t:[t,t]}var RR={seriesType:"lines",reset:function(t){var e=jR(t.get("symbol")),n=jR(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=jR((i=t.getItemModel(e)).getShallow("symbol",!0)),i=jR(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 NR(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Tn.d.createCanvas();this.canvas=t}NR.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 d=0;d<h;++d){var p=t[d],f=p[0],g=p[1],y=i(p[2]);c.globalAlpha=y,c.drawImage(a,f-u,g-u)}if(o.width&&o.height){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}c.putImageData(e,0,0)}return o},NR.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Tn.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},NR.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 ER,zR=NR;function VR(t){return t=t.dimensions,"lng"===t[0]&&"lat"===t[1]}function BR(){var t=null!==ER&&ER.apply(this,arguments)||this;return t.type=BR.type,t}a(BR,ER=Jf),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()):VR(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&&(VR(o)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},BR.prototype.eachRendered=function(t){Wf(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=pb(c,"cartesian2d"),d=(h&&(x=c.getAxis("x"),r=c.getAxis("y"),a=x.getBandWidth()+.5,s=r.getBandWidth()+.5,l=x.scale.getExtent(),u=r.scale.getExtent()),this.group),p=t.getData(),f=t.getModel(["emphasis","itemStyle"]).getItemStyle(),g=t.getModel(["blur","itemStyle"]).getItemStyle(),y=t.getModel(["select","itemStyle"]).getItemStyle(),m=t.get(["itemStyle","borderRadius"]),v=ks(t),x=t.getModel("emphasis"),_=x.get("focus"),b=x.get("blurScope"),w=x.get("disabled"),S=h?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],M=n;M<i;M++){var I=void 0,O=p.getItemVisual(M,"style");if(h){var T=p.get(S[0],M),C=p.get(S[1],M);if(isNaN(p.get(S[2],M))||isNaN(T)||isNaN(C)||T<l[0]||T>l[1]||C<u[0]||C>u[1])continue;T=c.dataToPoint([T,C]),I=new qr({shape:{x:T[0]-a/2,y:T[1]-s/2,width:a,height:s},style:O})}else{if(isNaN(p.get(S[1],M)))continue;I=new qr({z2:1,shape:c.dataToRect([p.get(S[0],M)]).contentShape,style:O})}p.hasItemOption&&(f=(T=(C=p.getItemModel(M)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),g=C.getModel(["blur","itemStyle"]).getItemStyle(),y=C.getModel(["select","itemStyle"]).getItemStyle(),m=C.get(["itemStyle","borderRadius"]),_=T.get("focus"),b=T.get("blurScope"),w=T.get("disabled"),v=ks(C)),I.shape.r=m;var k=t.getRawValue(M),D="-";k&&null!=k[2]&&(D=k[2]+""),Cs(I,v,{labelFetcher:t,labelDataIndex:M,defaultOpacity:O.opacity,defaultText:D}),I.ensureState("emphasis").style=f,I.ensureState("blur").style=g,I.ensureState("select").style=y,as(I,_,b,w),(I.incremental=o)&&(I.states.emphasis.hoverLayer=!0),d.add(I),p.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},BR.prototype._renderOnGeo=function(t,e,n,i){var o,r,a,s,u,c,h,d=n.targetVisuals.inRange,p=n.targetVisuals.outOfRange,f=e.getData(),g=this._hmLayer||new zR,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,d.color.getNormalizer(),{inRange:d.color.getColorMapper(),outOfRange:p.color.getColorMapper()},x),e=new Vr({style:{width:i,height:y,x:m,y:v,image:g.canvas},silent:!0});this.group.add(e)},BR.type="heatmap";var FR,GR=BR;function HR(){var t=null!==FR&&FR.apply(this,arguments)||this;return t.type=HR.type,t}a(HR,FR=Md),HR.prototype.getInitialData=function(t,e){return D_(null,this,{generateCoord:"value"})},HR.prototype.preventIncremental=function(){var t=tc.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},HR.type="series.heatmap",HR.dependencies=["grid","geo","calendar"],HR.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}};var WR,YR=HR,XR=["itemStyle","borderWidth"],UR=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],ZR=new tp;function qR(){var t=null!==WR&&WR.apply(this,arguments)||this;return t.type=qR.type,t}function KR(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(),d=(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),p=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-(p[y.wh]<=0),_=(x=(_=l.t(h)?((_=[QR(m,h[0])-v,QR(m,h[1])-v])[1]<_[0]&&_.reverse(),_[x]):null!=h?QR(m,h)-v:d?f.coordSysExtent[y.index][x]-v:p[y.wh],g.boundingLength=_,d&&(g.repeatCutLength=p[y.wh]),h="x"===y.xy,f=m.inverse,g.pxSign=h&&!f||!h&&f?0<=_?1:-1:0<_?1:-1,t),v=e,d=o,p=r,y=a.boundingLength,m=a.pxSign,g=c,h=i,f=a,h.valueDim),b=(t=h.categoryDim,d=Math.abs(d[t.wh]),x=x.getItemVisual(v,"symbolSize"),e=((v=l.t(x)?x.slice():null==x?["100%","100%"]:[x,x])[t.index]=oi(v[t.index],d),v[_.index]=oi(v[_.index],p?d:Math.abs(y)),f.symbolSize=v,(f.symbolScale=[v[0]/g,v[1]/g])[_.index]*=(h.isHorizontal?-1:1)*m,n),c=a.symbolScale,x=u,t=i,p=a,d=((e=e.get(XR)||0)&&(ZR.attr({scaleX:c[0],scaleY:c[1],rotation:x}),ZR.updateTransform(),e=(e/=ZR.getLineScale())*c[t.valueDim.index]),p.valueLineWidth=e||0,a.symbolSize),y=Jg(n.get("symbolOffset"),d),f=n,v=d,g=o,h=r,m=y,u=s,x=a.valueLineWidth,c=a.boundingLength,t=a.repeatCutLength,p=i,e=a,n=p.categoryDim,d=p.valueDim,o=e.pxSign,r=x=Math.max(v[d.index]+x,0),h&&(b=Math.abs(c),f=l.O(f.get("symbolMargin"),"15%")+"",w=!1,f.lastIndexOf("!")===f.length-1&&(w=!0,f=f.slice(0,f.length-1)),f=oi(f,v[d.index]),v=Math.max(x+2*f,0),y=w?0:2*f,S=_i(h),s=S?h:dN((b+y)/v),f=(b-s*x)/2/(w?s:Math.max(s-1,1)),v=x+2*f,y=w?0:2*f,S||"fixed"===h||(s=t?dN((Math.abs(t)+y)/v):0),r=s*v-y,e.repeatTimes=s,e.symbolMargin=f),o*(r/2)),w=((x=e.pathPosition=[])[n.index]=g[n.wh]/2,x[d.index]="start"===u?b:"end"===u?c-b:c/2,m&&(x[0]+=m[0],x[1]+=m[1]),e.bundlePosition=[]),S=(w[n.index]=g[n.xy],w[d.index]=g[d.xy],e.barRectShape=l.m({},g));return S[d.wh]=o*Math.max(Math.abs(g[d.wh]),Math.abs(x[d.index]+b)),S[n.wh]=g[n.wh],(h=e.clipShape={})[n.xy]=-g[n.xy],h[n.wh]=p.ecSize[n.wh],h[d.xy]=0,h[d.wh]=g[d.wh],a}function QR(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function $R(t){var e=t.symbolPatternSize;t=Qg(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.pathPosition,s=e.valueDim,l=n.repeatTimes||0,u=0,c=r[e.valueDim.index]+n.valueLineWidth+2*n.symbolMargin;for(uN(t,(function(t){(t.__pictorialAnimationIndex=u)<(t.__pictorialRepeatTimes=l)?cN(t,null,p(u),n,i):cN(t,null,{scaleX:0,scaleY:0},n,i,(function(){o.remove(t)})),u++}));u<l;u++){var h=$R(n),d=(h.__pictorialAnimationIndex=u,h.__pictorialRepeatTimes=l,o.add(h),p(u));cN(h,{x:d.x,y:d.y,scaleX:0,scaleY:0},{scaleX:d.scaleX,scaleY:d.scaleY,rotation:d.rotation},n,i)}function p(t){var e=a.slice(),i=n.pxSign;i=("start"===n.symbolRepeatDirection?0<i:i<0)?l-1-t:t;return e[s.index]=c*(i-l/2+.5)+a[s.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function tN(t,e,n,i){var o=t.__pictorialBundle,r=t.__pictorialMainPath;r?cN(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=$R(n),o.add(r),cN(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 eN(t,e,n){var i=l.m({},e.barRectShape),o=t.__pictorialBarRect;o?cN(o,null,{shape:i},e,n):((o=t.__pictorialBarRect=new qr({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(o))}function nN(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?vs(r,{shape:u},a,s):(u[e.wh]=0,r=new qr({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 iN(t,e){return t=t.getItemModel(e),t.getAnimationDelayParams=oN,t.isAnimationEnabled=rN,t}function oN(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function rN(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function aN(t,e,n,i){var o=new qn,r=new qn;return o.add(r),(o.__pictorialBundle=r).x=n.bundlePosition[0],r.y=n.bundlePosition[1],n.symbolRepeat?JR(o,e,n):tN(o,0,n),eN(o,n,i),nN(o,e,n,i),o.__pictorialShapeStr=lN(t,n),o.__pictorialSymbolMeta=n,o}function sN(t,e,n,i){var o=i.__pictorialBarRect,r=(o&&o.removeTextContent(),[]);uN(i,(function(t){r.push(t)})),i.__pictorialMainPath&&r.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),l.k(r,(function(t){bs(t,{scaleX:0,scaleY:0},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function lN(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function uN(t,e,n){l.k(t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function cN(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 hN(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"),d=r.get("blurScope"),p=r.get("scale"),f=(uN(t,(function(t){t instanceof Vr?(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,p&&(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)]),g=t.__pictorialBarRect;g.ignoreClip=!0,Cs(g,ks(o),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:j_(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:f}),as(t,h,d,r.get("disabled"))}function dN(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}a(qR,WR=Jf),qR.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:UR[+s],categoryDim:UR[1-+s]};o.diff(r).add((function(t){var e,n;o.hasValue(t)&&(e=iN(o,t),e=KR(o,t,e,u),n=aN(o,u,e),o.setItemGraphicEl(t,n),i.add(n),hN(n,u,e))})).update((function(t,e){var n,a,s,l,c,h;e=r.getItemGraphicEl(e);o.hasValue(t)?(n=iN(o,t),n=KR(o,t,n,u),a=lN(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,vs(a.__pictorialBundle,{x:l.bundlePosition[0],y:l.bundlePosition[1]},c,h),(l.symbolRepeat?JR:tN)(a,s,l,!0),eN(a,l,!0),nN(a,s,l,!0)):e=aN(o,u,n,!0),o.setItemGraphicEl(t,e),e.__pictorialSymbolMeta=n,i.add(e),hN(e,u,n)):i.remove(e)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&sN(r,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),n=t.get("clip",!0)?db(t.coordinateSystem,!1,t):null;return n?i.setClipPath(n):i.removeClipPath(),this._data=o,this.group},qR.prototype.remove=function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl((function(e){sN(i,fa(e).dataIndex,t,e)})):n.removeAll()},qR.type="pictorialBar";var pN,fN=qR;function gN(){var t=null!==pN&&pN.apply(this,arguments)||this;return t.type=gN.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}a(gN,pN=Xg),gN.prototype.getInitialData=function(t){return t.stack=null,pN.prototype.getInitialData.apply(this,arguments)},gN.type="series.pictorialBar",gN.dependencies=["grid"],gN.defaultOption=ol(Xg.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%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}});var yN,mN=gN;function vN(){var t=null!==yN&&yN.apply(this,arguments)||this;return t.type=vN.type,t._layers=[],t}a(vN,yN=Jf),vN.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 Zx(this._layersSeries||[],a,c,c);var h=[];function d(e,n,s){var l=o._layers;if("remove"===e)r.remove(l[n]);else{for(var u,c=[],d=[],p=a[n].indices,f=0;f<p.length;f++){var g=i.getItemLayout(p[f]),y=g.x,m=g.y0;g=g.y;c.push(y,m),d.push(y,m+g),u=i.getItemVisual(p[f],"style")}var v,x,_,b,w,S=i.getItemLayout(p[0]),M=t.getModel("label").get("margin"),I=t.getModel("emphasis");e=("add"===e?(x=h[n]=new qn,v=new lb({shape:{points:c,stackedOnPoints:d,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()},xs(w=new qr({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,vs(v,{shape:{points:c,stackedOnPoints:d}},t),Ms(v)),Cs(v,ks(t),{labelDataIndex:p[f-1],defaultText:i.getName(p[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),cs(v,t),as(v,I.get("focus"),I.get("blurScope"),I.get("disabled"))}}u.add(Object(l.c)(d,this,"add")).update(Object(l.c)(d,this,"update")).remove(Object(l.c)(d,this,"remove")).execute(),this._layersSeries=a,this._layers=h},vN.type="themeRiver";var xN,_N=vN;function bN(){var t=null!==xN&&xN.apply(this,arguments)||this;return t.type=bN.type,t}a(bN,xN=Md),bN.prototype.init=function(t){xN.prototype.init.apply(this,arguments),this.legendVisualProvider=new Gw(l.c(this.getData,this),l.c(this.getRawData,this))},bN.prototype.fixData=function(t){for(var e=t.length,n={},i=Xi(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},bN.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",Gi).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=w_(i,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Jx(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,n=new b_(t,this),n.initData(i),n},bN.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=Xi(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},bN.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,d=r[u].indices.length,p=0;p<d;++p){var f=o.get(t[0],r[u].indices[p]),g=Math.abs(f-e);g<=c&&(i=f,c=g,h=r[u].indices[p])}a.push(h)}return{dataIndices:a,nestestValue:i}},bN.prototype.formatTooltip=function(t,e,n){var i=this.getData();return Jh("nameValue",{name:i.getName(t),value:i.get(i.mapDimension("value"),t)})},bN.type="series.themeRiver",bN.dependencies=["singleAxis"],bN.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 wN,SN=bN;function MN(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]=oi(r[0],o.height),r[1]=oi(r[1],o.height),IN(e,t,o.height-r[0]-r[1])):(r[0]=oi(r[0],o.width),r[1]=oi(r[1],o.width),IN(e,t,o.width-r[0]-r[1])),e.setLayout("layoutInfo",i)}))}function IN(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=(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,d=r.length,p=r[0].indices.length,f=0;f<p;++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<d;++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 ON(t,e,n,i){var o=wN.call(this)||this,r=(o.z2=2,o.textConfig={inside:!0},fa(o).seriesIndex=e.seriesIndex,new pa({z2:4,silent:t.getModel().get(["label","silent"])}));return o.setTextContent(r),o.updateData(!0,t,e,n,i),o}a(ON,wN=bp),ON.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=(fa(r).dataIndex=e.dataIndex,e.getModel()),s=a.getModel("emphasis"),u=e.getLayout(),c=l.m({},u),h=(c.label=null,e.getVisual("style")),d=(h.lineJoin="bevel",e.getVisual("decal"));d&&(h.decal=Cy(d,o)),d=$b(a.getModel("itemStyle"),c,!0),l.m(c,d),l.k(wa,(function(t){var e=r.ensureState(t);t=a.getModel([t,"itemStyle"]),e.style=t.getItemStyle(),t=$b(t,c);t&&(e.shape=t)})),t?(r.setShape(c),r.shape.r=u.r0,xs(r,{shape:{r:u.r}},n,e.dataIndex)):(vs(r,{shape:c},n),Ms(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,d=s.get("focus");as(this,"relative"===d?l.e(e.getAncestorsIndices(),e.getDescendantIndices()):"ancestor"===d?e.getAncestorsIndices():"descendant"===d?e.getDescendantIndices():d,s.get("blurScope"),s.get("disabled"))},ON.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(),d=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI;p=i.get("show")&&!(null!=p&&Math.abs(r)<p);function f(t,e){return t=t.get(e),null==t?i.get(e):t}h.ignore=!p,l.k(Sa,(function(i){var p,g="normal"===i?n.getModel("label"):n.getModel([i,"label"]),y="normal"===i,m=y?h:h.ensureState(i),v=t.getFormattedLabel(d,i),x=(v=(y&&(v=v||e.node.name),m.style=Ds(g,{},null,"normal"!==i,!0),v&&(m.style.text=v),g.get("show")),v=(null==v||y||(m.ignore=!v),f(g,"position")),y=y?c:c.states[i],i=y.style.fill,y=(y.textConfig={outsideFill:"inherit"===g.get("color")?i:null,inside:"outside"!==v},f(g,"distance")||0),i=f(g,"align"),f(g,"rotate")),_=.5*Math.PI,b=fr("tangential"===x?Math.PI/2-a:a);_=_<b&&!di(b-_)&&b<1.5*Math.PI,"outside"===v?(p=o.r+y,i=_?"right":"left"):i&&"center"!==i?"left"===i?(p=o.r0+y,i=_?"right":"left"):"right"===i&&(p=o.r-y,i=_?"left":"right"):(p=r==2*Math.PI&&0===o.r0?0:(o.r+o.r0)/2,i="center"),m.style.align=i,m.style.verticalAlign=f(g,"verticalAlign")||"middle",m.x=p*s+o.cx,m.y=p*u+o.cy,b=0;"radial"===x?b=fr(-a)+(_?Math.PI:0):"tangential"===x?b=fr(Math.PI/2-a)+(_?Math.PI:0):l.z(x)&&(b=x*Math.PI/180),m.rotation=fr(b)})),h.dirtyStyle()};var TN,CN=ON,kN="sunburstRootToNode",DN="sunburstHighlight",AN="sunburstUnhighlight";function LN(t){t.registerAction({type:kN,update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,n){var i,o=VC(t,[kN],e);o&&((i=e.getViewRoot())&&(t.direction=FC(i,o.node)?"rollUp":"drillDown"),e.resetViewRoot(o.node))}))})),t.registerAction({type:DN,update:"none"},(function(t,e,n){t=Object(l.m)({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e){e=VC(t,[DN],e),e&&(t.dataIndex=e.node.dataIndex)})),n.dispatchAction(Object(l.m)(t,{type:"highlight"}))})),t.registerAction({type:AN,update:"updateView"},(function(t,e,n){t=Object(l.m)({},t),n.dispatchAction(Object(l.m)(t,{type:"downplay"}))}))}function PN(){var t=null!==TN&&TN.apply(this,arguments)||this;return t.type=PN.type,t}a(PN,TN=Jf),PN.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(),d=this.group,p=t.get("renderLabelForZeroData"),f=[],g=(h.eachNode((function(t){f.push(t)})),this._oldChildren||[]);function y(t){return t.getId()}function m(i,a){var s;i=null==i?null:o[i],a=null==a?null:r[a];(i=p||!i||i.getValue()?i:null)!==c&&a!==c&&(a&&a.piece?i?(a.piece.updateData(!1,i,t,e,n),u.setItemGraphicEl(i.dataIndex,a.piece)):(s=a)&&s.piece&&(d.remove(s.piece),s.piece=null):i&&(a=new CN(i,t,e,n),d.add(a),u.setItemGraphicEl(i.dataIndex,a)))}r=g,0===(o=f).length&&0===r.length||new Zx(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 CN(g,t,e,n),d.add(s.virtualPiece)),a.piece.off("click"),s.virtualPiece.on("click",(function(t){s._rootToNode(a.parentNode)}))):s.virtualPiece&&(d.remove(s.virtualPiece),s.virtualPiece=null),this._initEvents(),this._oldChildren=f},PN.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"))&&Zl(i,o.get("target",!0)||"_blank"),n=!0)}))}))},PN.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:kN,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},PN.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},PN.type="sunburst";var jN,RN=PN;function NN(){var t=null!==jN&&jN.apply(this,arguments)||this;return t.type=NN.type,t.ignoreStyleOnData=!0,t}a(NN,jN=Md),NN.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 el(t,this,e)}),this)),o=zC.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},NN.prototype.optionUpdated=function(){this.resetViewRoot()},NN.prototype.getDataParams=function(t){var e=jN.prototype.getDataParams.apply(this,arguments);t=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=GC(t,this),e},NN.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},NN.prototype.getViewRoot=function(){return this._viewRoot},NN.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)},NN.prototype.enableAriaDecal=function(){QC(this)},NN.type="series.sunburst",NN.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 EN=NN,zN=Math.PI/180;function VN(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=oi(e[0],o),u=oi(e[1],r),c=oi(i[0],a/2),h=(o=oi(i[1],a/2),e=-t.get("startAngle")*zN,t.get("minAngle")*zN),d=t.getData().tree.root,p=(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!==d&&(o=e.getValue(),i=n+b*(o=(o=0===g&&_?y:o*y)<h?h:o),f=e.depth-p-(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=oi(S,a/2)),null!=M)&&(f=oi(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,d.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 FN(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=((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(Oe.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 GN,HN={color:"fill",borderColor:"stroke"},WN={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},YN=zi();function XN(){var t=null!==GN&&GN.apply(this,arguments)||this;return t.type=XN.type,t}a(XN,GN=Md),XN.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},XN.prototype.getInitialData=function(t,e){return D_(null,this)},XN.prototype.getDataParams=function(t,e,n){return t=GN.prototype.getDataParams.call(this,t,e),n&&(t.info=YN(n).info),t},XN.type="series.custom",XN.dependencies=["grid","polar","geo","singleAxis","calendar"],XN.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1};var UN=XN;function ZN(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 qN(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 KN(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 QN(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 $N(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)),tE(i,t),Object(l.k)(i.rich,(function(t){tE(t,t)})),{textConfig:r,textContent:o}}function tE(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 eE(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=(nE(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){nE(t,t)})),i}function nE(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 iE={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},oE=Object(l.F)(iE),rE=(Object(l.N)(Sn,(function(t,e){return t[e]=1,t}),{}),Sn.join(", "),["","style","shape","extra"]),aE=zi();function sE(t,e,n,i,o){var r=t+"Animation";i=ys(t,i,o)||{},o=aE(e).userDuring;return 0<i.duration&&(i.during=o?Object(l.c)(fE,{el:e,userDuring:o}):null,i.setToFinal=!0,i.scope=t),Object(l.m)(i,n[r]),i}function lE(t,e,n,i){for(var o,r=(i=i||{}).dataIndex,a=i.isInit,s=(i=i.clearStyle,n.isAnimationEnabled()),u=aE(t),c=e.style,h=(u=(u.userDuring=e.during,{}),{}),d=e,p=h,f=0;f<oE.length;f++){var g=oE[f],y=iE[g];g=d[g];g&&(p[y[0]]=g[0],p[y[1]]=g[1])}for(f=0;f<Sn.length;f++){var m=Sn[f];null!=d[m]&&(p[m]=d[m])}if(yE("shape",e,h),yE("extra",e,h),!a&&s){for(var v=t,x=e,_=u,b=hE(x=e.transition)?Sn:Oi(x||[]),w=0;w<b.length;w++){var S,M=b[w];"style"!==M&&"shape"!==M&&"extra"!==M&&(S=v[M],_[M]=S)}gE("shape",t,e,u),gE("extra",t,e,u);x=t;var I=e,O=c,T=u;if(O){var C,k=x.style;if(k){var D=O.transition;I=I.transition;if(D&&!hE(D)){var A=Oi(D);C=C||(T.style={});for(var L=0;L<A.length;L++){var P=A[L],j=k[P];C[P]=j}}else if(x.getAnimationStyleProps&&(hE(I)||hE(D)||0<=Object(l.r)(I,"style"))){D=x.getAnimationStyleProps();var R=D?D.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=k[P],C[P]=j)}}}}}h.style=c;var E=t;I=h,x=i,D=I.style;if(!E.isGroup&&D){if(x){E.useStyle({});for(var z=E.animators,V=0;V<z.length;V++){var B=z[V];"style"===B.targetName&&B.changeTarget(E.style)}}E.setStyle(D)}I&&(I.style=null,I&&E.attr(I),I.style=D),T=t,O=e,Object(l.q)(O,"silent")&&(T.silent=O.silent),Object(l.q)(O,"ignore")&&(T.ignore=O.ignore),T instanceof Lo&&Object(l.q)(O,"invisible")&&(T.invisible=O.invisible),T instanceof Ar&&Object(l.q)(O,"autoBatch")&&(T.autoBatch=O.autoBatch),s&&(a?(o={},Object(l.k)(rE,(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=sE("enter",t,e,n,r)).duration&&t.animateFrom(o,h)):(i=t,s=e,a=r||0,h=n,(r=u)&&0<(s=sE("update",i,s,h,a)).duration&&i.animateFrom(r,s))),uE(t,e),c?t.dirty():t.markRedraw()}function uE(t,e){for(var n=aE(t).leaveToProps,i=0;i<rE.length;i++){var o=rE[i],r=o?e[o]:e;r&&r.leaveTo&&(n=n||(aE(t).leaveToProps={}),o&&(n[o]=n[o]||{}),Object(l.m)(o?n[o]:n,r.leaveTo))}}function cE(t,e,n,i){var o,r;t&&(o=t.parent,(r=aE(t).leaveToProps)?((e=sE("update",t,e,n,0)).done=function(){o.remove(t),i&&i()},t.animateTo(r,e)):(o.remove(t),i&&i()))}function hE(t){return"all"===t}var dE={},pE={setTransform:function(t,e){return dE.el[t]=e,this},getTransform:function(t){return dE.el[t]},setShape:function(t,e){var n=dE.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=dE.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=dE.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle)&&n.dirtyStyle(),this},getStyle:function(t){var e=dE.el.style;if(e)return e[t]},setExtra:function(t,e){return(dE.el.extra||(dE.el.extra={}))[t]=e,this},getExtra:function(t){var e=dE.el.extra;if(e)return e[t]}};function fE(){var t,e=this.el;e&&(aE(e).userDuring!==(t=this.userDuring)?this.el=this.userDuring=null:(dE.el=e,t(pE)))}function gE(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(d=d||(i[t]={}),hE(n))Object(l.m)(d,s);else for(var u=Oi(n),c=0;c<u.length;c++){var h=s[f=u[c]];d[f]=h}else if(hE(e)||0<=Object(l.r)(e,t)){var d=d||(i[t]={}),p=Object(l.F)(s);for(c=0;c<p.length;c++){var f;h=s[f=p[c]];r=o[f],a=h,(Object(l.u)(r)?r!==a:null!=r&&isFinite(r))&&(d[f]=h)}}}}function yE(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]=Pe(i[s])}}var mE=zi(),vE=["percent","easing","shape","style","extra"];function xE(t){t.stopAnimation("keyframe"),t.attr(mE(t))}function _E(t,e,n){var i,o,r,a;n.isAnimationEnabled()&&e&&(Object(l.t)(e)?Object(l.k)(e,(function(e){_E(t,e,n)})):(i=e.keyframes,r=e.duration,n&&null==r&&(o=ys("enter",n,0),r=o&&o.duration),i&&r&&(a=mE(t),Object(l.k)(rE,(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)(vE,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 d=n?a[n]:a;Object(l.k)(c,(function(e){d[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 bE,wE="emphasis",SE="normal",ME=(Xs="blur",ro="select",[SE,wE,Xs,ro]),IE={normal:["itemStyle"],emphasis:[wE,"itemStyle"],blur:[Xs,"itemStyle"],select:[ro,"itemStyle"]},OE={normal:["label"],emphasis:[wE,"label"],blur:[Xs,"label"],select:[ro,"label"]},TE=["x","y"],CE="e\0\0",kE={normal:{},emphasis:{},blur:{},select:{}},DE={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(ZN,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(qN,t)}}},single: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)(KN,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(QN,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 AE(t){return t instanceof Ar}function LE(t){return t instanceof Lo}function PE(){var t=null!==bE&&bE.apply(this,arguments)||this;return t.type=PE.type,t}a(PE,bE=Jf),PE.prototype.render=function(t,e,n,i){this._progressiveEls=null;var o=this._data,r=t.getData(),a=this.group,s=VE(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),e&&cE(e,YN(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)?db(t.coordinateSystem,!1,t):null;e?a.setClipPath(e):a.removeClipPath(),this._data=r},PE.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},PE.prototype.incrementalRender=function(t,e,n,i,o){var r=e.getData(),a=VE(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))}},PE.prototype.eachRendered=function(t){Wf(this._progressiveEls||this.group,t)},PE.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},PE.type="custom";var jE=PE;function RE(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=qE(n);i=Mf(o,null,i,n.layout||"center");YN(i).customPathData=o}else if("image"===e)i=new Vr({}),YN(i).customImagePath=t.style.image;else if("text"===e)i=new pa({});else if("group"===e)i=new qn;else{if("compoundPath"===e)throw new Error('"compoundPath" is not supported yet.');n=Sf(e),n||Gu(""),i=new n}return YN(i).customGraphicType=e,i.name=t.name,i.z2EmphasisLift=1,i.z2SelectLift=1,i}function NE(t,e,n,i,o,r,a){xE(e);var s,u;o=o&&o.normal.cfg,o&&e.setTextConfig(o),i&&null==i.transition&&(i.transition=TE),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=AE(e)?o.decal:null,t&&s&&(s.dirty=!0,u=Cy(s,t)),o.__decalPattern=u),LE(e)&&o&&(u=o.__decalPattern)&&(o.decal=u),lE(e,i,r,{dataIndex:n,isInit:a,clearStyle:!0}),_E(e,i.keyframeAnimation,r)}function EE(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),Wa(e))}function zE(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<ME.length;l++)o=i,r=e,a=ME[l],s=void 0,null!=(r=(r=(s=a===SE)?r:WE(r,a))?r.z2:null)&&((s?o:o.ensureState(a)).z2=r||0)}}function VE(t,e,n,i){for(var o,r,a,s,u=t.get("renderItem"),c=t.coordinateSystem,h={},d=(c&&(h=c.prepareCustoms?c.prepareCustoms(c):DE[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,SE).getItemStyle()),u=(o=(null!=r&&(s.fill=r),null!=o&&(s.opacity=o),{inheritColor:Object(l.C)(r)?r:"#000"}),r=w(i,SE),Ds(r,null,o,!1,!0));u.text=r.getShallow("show")?Object(l.P)(t.getFormattedLabel(i,SE),j_(e,i)):null,i=As(r,o,!1);return M(n,s),s=eE(s,u,i),n&&S(s,n),s.legacy=!0,s},ordinalRawValue:function(t,n){null==n&&(n=a),t=t||0;var i,o=e.getDimensionInfo(t);return o?(i=e.get(o.name,n),(o=o&&o.ordinalMeta)?o.categories[i]:i):0<=(o=e.getDimensionIndex(t))?e.getStore().get(o,n):void 0},styleEmphasis:function(n,i){var o=b(i=null==i?a:i,wE).getItemStyle(),r=w(i,wE),s=Ds(r,null,null,!0,!0);s.text=r.getShallow("show")?Object(l.Q)(t.getFormattedLabel(i,wE),t.getFormattedLabel(i,SE),j_(e,i)):null,i=As(r,null,!0);return M(n,o),o=eE(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)(HN,t)?(i=e.getItemVisual(n,"style"))?i[HN[t]]:null:Object(l.q)(WN,t)?e.getItemVisual(n,t):void 0},barLayout:function(t){var e;if("cartesian2d"===c.type)return e=c.getBaseAxis(),(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:Ab+o},t));var r=Nb(e),a=[];for(o=0;o<t.count;o++){var s=r.axis0[Ab+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 Ns(t,n)}},h.api||{})),p={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<ME.length;v++){var x=ME[v];y[x]=t.getModel(IE[x]),m[x]=t.getModel(OE[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(IE[n])):_(t).getModel(IE[n]):y[n]}function w(t,n){return e.hasItemOption?t===a?g[n]||(g[n]=_(t).getModel(OE[n])):_(t).getModel(OE[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},p),d)};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=FE(t,e,n,i,o,r))&&a.setItemGraphicEl(n,t),t&&as(t,i.focus,i.blurScope,i.emphasisDisabled),t;r.remove(e)}function FE(t,e,n,i,o,r){var a=-1,s=e,u=(e&&GE(e,i,o)&&(a=Object(l.r)(r.childrenRef(),e),e=null),!e),c=e,h=(s=(c?c.clearStates():(c=RE(i),s&&(e=s,(s=c).copyTransform(e),LE(s))&&LE(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,AE(s))&&AE(e)&&s.setShape(e.shape)),!1===i.morph?c.disableMorphing=!0:c.disableMorphing&&(c.disableMorphing=!1),kE.normal.cfg=kE.normal.conOpt=kE.emphasis.cfg=kE.emphasis.conOpt=kE.blur.cfg=kE.blur.conOpt=kE.select.cfg=kE.select.conOpt=null,kE.isLegacy=!1,c),e=n,i),d=o,p=u,f=kE;if(!s.isGroup){HE(h,null,f),HE(h,wE,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=RE(g),s.setTextContent(v)),NE(null,v,e,g,null,d,p);h=g&&g.style;for(var x=0;x<ME.length;x++){var _,b=ME[x];b!==SE&&(_=f[b].conOpt,EE(b,v,0,YE(g,_,b),null))}h?v.dirty():v.markRedraw()}}}m=c,y=n,s=i,e=o,d=u,!1===(s=s.clipPath)?m&&m.getClipPath()&&m.removeClipPath():s&&((p=(p=m.getClipPath())&&GE(p,s,e)?null:p)||(p=RE(s),m.setClipPath(p)),NE(null,p,y,s,null,e,d)),NE(t,c,n,i,kE,o,u),Object(l.q)(i,"info")&&(YN(c).info=i.info);for(var w=0;w<ME.length;w++){var S,M=ME[w];M!==SE&&(S=YE(i,WE(i,M),M),EE(M,c,0,S,kE))}if(zE(c,i,o),"group"===i.type){var I=t,O=c,T=n,C=o,k=(h=i).children,D=k?k.length:0;h="byName"===(p=h.$mergeChildren)||h.diffChildrenByName,p=!1===p;if(D||h||p)if(h)h={api:I,oldChildren:O.children()||[],newChildren:k||[],dataIndex:T,seriesModel:C,group:O},new Zx(h.oldChildren,h.newChildren,XE,XE,h).add(UE).update(UE).remove(ZE).execute();else{p&&O.removeAll();for(var A=0;A<D;A++){var L=k[A],P=O.childAt(A);L?(null==L.ignore&&(L.ignore=!1),FE(I,P,T,L,C,O)):P.ignore=!0}for(var j=O.childCount()-1;A<=j;j--){var R=O.childAt(j);((t,e,n)=>{e&&cE(e,YN(t).option,n)})(O,R,C)}}}return 0<=a?r.replaceAt(c,a):r.add(c),c}function GE(t,e,n){t=YN(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"))&&qE(o)!==t.customPathData||"image"===i&&Object(l.q)(e,"image")&&e.image!==t.customImagePath}function HE(t,e,n){var i=e?WE(t,e):t,o=e?YE(t,i,wE):t.style,r=t.type;i=i?i.textConfig:null,t=t.textContent,t=t?e?WE(t,e):t:null,o&&(n.isLegacy||$N(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 WE(t,e){return e?t?t[e]:null:t}function YE(t,e,n){return e=e&&e.style,null==e&&n===wE&&t?t.styleEmphasis:e}function XE(t,e){return t=t&&t.name,null!=t?t:CE+e}function UE(t,e){var n=this.context;t=null!=t?n.newChildren[t]:null,e=null!=e?n.oldChildren[e]:null;FE(n.api,e,n.dataIndex,t,n.seriesModel,n.group)}function ZE(t){var e=this.context;t=e.oldChildren[t];t&&cE(t,YN(t).option,e.seriesModel)}function qE(t){return t&&(t.pathData||t.d)}var KE=zi(),QE=l.d,$E=l.c;function JE(){this._dragging=!1,this.animationThreshold=15}function tz(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}(KE(n).lastProp,i)&&(KE(n).lastProp=i,e?vs(n,i,t):(n.stopAnimation(),n.attr(i)))}function ez(t,e){t[e.get(["label","show"])?"show":"hide"]()}function nz(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function iz(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,r,a=e.get("value"),s=e.get("status");this._axisModel=t,this._axisPointerModel=e,this._api=n,!i&&this._lastValue===a&&this._lastStatus===s||(this._lastValue=a,this._lastStatus=s,i=this._group,o=this._handle,s&&"hide"!==s?(i&&i.show(),o&&o.show(),this.makeElOption(s={},a,t,e,n),(r=s.graphicKey)!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=r,r=this._moveAnimation=this.determineAnimation(t,e),i?(r=l.h(tz,e,r),this.updatePointerEl(i,s,r),this.updateLabelEl(i,s,r,e)):(i=this._group=new qn,this.createPointerEl(i,s,t,e),this.createLabelEl(i,s,t,e),n.getZr().add(i)),iz(i,e,!0),this._renderHandle(a)):(i&&i.hide(),o&&o.hide()))},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=iI(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=KE(t).pointerEl=new i[r.type](QE(e.pointer)),t.add(r))},JE.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=KE(t).labelEl=new pa(QE(e.label)),t.add(e),ez(e,i))},JE.prototype.updatePointerEl=function(t,e,n){t=KE(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=KE(t).labelEl,t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),ez(t,i))},JE.prototype._renderHandle=function(t){var e,n,i,o,r,a;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,o=e.getModel("handle"),a=e.get("status"),o.get("show")&&a&&"hide"!==a?(this._handle||(r=!0,i=this._handle=Vf(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Q(t.event)},onmousedown:$E(this._onHandleDragMove,this,0,0),drift:$E(this._onHandleDragMove,this),ondragend:$E(this._onHandleDragEnd,this)}),n.add(i)),iz(i,e,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),a=o.get("size"),l.t(a)||(a=[a,a]),i.scaleX=a[0]/2,i.scaleY=a[1]/2,og(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,r)):(i&&n.remove(i),this._handle=null))},JE.prototype._moveHandleToValue=function(t,e){tz(this._axisPointerModel,!e&&this._moveAnimation,this._handle,nz(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},JE.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(nz(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(nz(t)),KE(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),rg(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 oz;Ks=JE;function rz(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 az(t,e,n,i,o){var r=sz(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"),Gl(n.get("padding")||0)),s=n.getFont(),l=An(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:Ds(n,{text:r,font:s,fill:n.getTextColor(),padding:a,backgroundColor:i}),z2:10}}function sz(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:uM(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 lz(t,e,n){var i=it();return lt(i,i,n.rotation),st(i,i,n.position),Pf([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function uz(t,e,n,i,o,r){var a=tI.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),az(e,i,o,r,{position:lz(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function cz(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function hz(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function dz(t,e,n,i,o,r){return{cx:t,cy:e,r0:n,r:i,startAngle:o,endAngle:r,clockwise:!0}}function pz(){return null!==oz&&oz.apply(this,arguments)||this}function fz(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}a(pz,oz=Ks),pz.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=a.grid,l=i.get("type"),u=fz(s,a).getOtherAxis(a).getGlobalExtent(),c=a.toGlobalCoord(a.dataToCoord(e,!0));l&&"none"!==l&&(r=rz(i),(l=gz[l](a,c,u)).style=r,t.graphicKey=l.type,t.pointer=l),a=NM(s.model,n);uz(e,t,a,n,i,o)},pz.prototype.getHandleTransform=function(t,e,n){var i=NM(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]),n=lz(e.axis,t,i);return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},pz.prototype.updateHandleTransform=function(t,e,n,i){n=n.axis;var o=n.grid,r=n.getGlobalExtent(!0),a=(o=fz(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 gz={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:cz([e,n[0]],[e,n[1]],yz(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:hz([e-i/2,n[0]],[i,o],yz(t))}}};function yz(t){return"x"===t.dim?0:1}var mz,vz=pz;function xz(){var t=null!==mz&&mz.apply(this,arguments)||this;return t.type=xz.type,t}a(xz,mz=fu),xz.type="axisPointer",xz.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}};var _z,bz=xz,wz=zi(),Sz=l.k;function Mz(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))}Sz(wz(o).records,(function(n){n&&e(n,t,a.dispatchAction)}));var l,u=a.pendings,c=r,h=u.showTip.length,d=u.hideTip.length;h?l=u.showTip[h-1]:d&&(l=u.hideTip[d-1]),l&&(l.dispatchAction=null,c.dispatchAction(l))}))}s.a.node||(i=e.getZr(),wz(i).records||(wz(i).records={}),r=e,wz(o=i).initialized||(wz(o).initialized=!0,a("click",l.h(Oz,"click")),a("mousemove",l.h(Oz,"mousemove")),a("globalout",Iz)),(wz(i).records[t]||(wz(i).records[t]={})).handler=n)}function Iz(t,e,n){t.handler("leave",null,n)}function Oz(t,e,n,i){e.handler(t,n,i)}function Tz(t,e){s.a.node||(e=e.getZr(),(wz(e).records||{})[t]&&(wz(e).records[t]=null))}function Cz(){var t=null!==_z&&_z.apply(this,arguments)||this;return t.type=Cz.type,t}a(Cz,_z=Od),Cz.prototype.render=function(t,e,n){e=e.getComponent("tooltip");var i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";Mz("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})}))},Cz.prototype.remove=function(t,e){Tz("axisPointer",e)},Cz.prototype.dispose=function(t,e){Tz("axisPointer",e)},Cz.type="axisPointer";var kz=Cz;function Dz(t,e){var n,i,o,r,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=Ei(n=e.getData(),t))||s<0||l.t(s)?{point:[]}:(i=n.getItemGraphicEl(s),o=e.coordinateSystem,e.getTooltipPosition?a=e.getTooltipPosition(s)||[]:o&&o.dataToPoint?a=t.isStacked?(e=o.getBaseAxis(),t=o.getOtherAxis(e).dim,e=e.dim,t="x"===t||"radius"===t?1:0,e=n.mapDimension(e),(r=[])[t]=n.get(e,s),r[1-t]=n.get(n.getCalculationInfo("stackResultDimension"),s),o.dataToPoint(r)||[]):o.dataToPoint(n.getValues(l.H(o.dimensions,(function(t){return n.mapDimension(t)})),s))||[]:i&&((e=i.getBoundingRect().clone()).applyTransform(i.transform),a=[e.x+e.width/2,e.y+e.height/2]),{point:a,el:i})}var Az,Lz=zi();function Pz(t,e,n){var i,o,r,a,s,u,c,h,d,p,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 zz(x)&&(x=Dz({seriesIndex:_.seriesIndex,dataIndex:_.dataIndex},e).point),i=zz(x),o=_.axesInfo,r=w.axesInfo,a="leave"===v||zz(x),s={},u={},e={list:[],map:{}},c={showPointer:Object(l.h)(Rz,u),showTooltip:Object(l.h)(Nz,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=((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))&&jz(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,Ez(e),Ez(t)))),h[t.key]=i)}))})),Object(l.k)(h,(function(t,e){jz(r[e],t,c,!0,s)})),d=u,_=r,p=s.axesInfo=[],Object(l.k)(_,(function(t,e){var n=t.axisPointerModel.option;e=d[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&p.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})})),v=e,_=t,e=b,zz(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=Lz(_)[b]||{},g=Lz(_)[b]={},Object(l.k)(e,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&Object(l.k)(n.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 jz(t,e,n,i,o){var r,a,s,u,c,h,d,p,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=[],d=Number.MAX_VALUE,p=-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))<=d)&&((n<d||0<=i&&p<0)&&(d=n,p=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 Rz(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function Nz(t,e,n,i){n=n.payloadBatch;var o,r,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&n.length&&(o=rI(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 Ez(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 zz(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Vz(t){uI.registerAxisPointerClass("CartesianAxisPointer",vz),t.registerComponentModel(bz),t.registerComponentView(kz),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=eI(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Pz)}function Bz(){return null!==Az&&Az.apply(this,arguments)||this}a(Bz,Az=Ks),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=rz(i),(c=Gz[c](a,s,u,l)).style=r,t.graphicKey=c.type,t.pointer=c),a=i.get(["label","margin"]);az(t,n,i,o,((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?(lt(s=it(),s,a),st(s,s,[n.cx,n.cy]),o=Pf([t,-i],s),s=e.getModel("axisLabel").get("rotate")||0,e=tI.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 Fz,Gz={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:cz(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:dz(e.cx,e.cy,i[0],i[1],(-n-o/2)*r,(o/2-n)*r)}:{type:"Sector",shape:dz(e.cx,e.cy,n-o/2,n+o/2,0,2*Math.PI)}}},Hz=Bz;function Wz(){var t=null!==Fz&&Fz.apply(this,arguments)||this;return t.type=Wz.type,t}a(Wz,Fz=fu),Wz.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},Wz.type="polar",Wz.dependencies=["radiusAxis","angleAxis"],Wz.defaultOption={z:0,center:["50%","50%"],radius:"80%"};var Yz,Xz=Wz;a(Uz,Yz=fu),Uz.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Gi).models[0]},Uz.type="polarAxis",Zs=Uz;function Uz(){return null!==Yz&&Yz.apply(this,arguments)||this}l.K(Zs,sS),a(Kz,Zz=Zs),Kz.type="angleAxis";var Zz,qz=Kz;function Kz(){var t=null!==Zz&&Zz.apply(this,arguments)||this;return t.type=Kz.type,t}a(Jz,Qz=Zs),Jz.type="radiusAxis";var Qz,$z=Jz;function Jz(){var t=null!==Qz&&Qz.apply(this,arguments)||this;return t.type=Jz.type,t}a(eV,tV=n),eV.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]};var tV;Ws=eV;function eV(t,e){return tV.call(this,"radius",t,e)||this}Ws.prototype.dataToRadius=n.prototype.dataToCoord,Ws.prototype.radiusToData=n.prototype.coordToData;var nV,iV=Ws,oV=zi();a(rV,nV=n),rV.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},rV.prototype.calculateCategoryInterval=function(){var t,e,n=this.getLabelModel(),i=this.scale,o=i.getExtent();i=i.count();return o[1]-o[0]<1?0:(o=o[0],t=this.dataToCoord(o+1)-this.dataToCoord(o),t=Math.abs(t),o=An(null==o?"":o+"",n.getFont(),"center","top"),n=Math.max(o.height,7)/t,isNaN(n)&&(n=1/0),o=Math.max(0,Math.floor(n)),n=(t=oV(this.model)).lastAutoInterval,e=t.lastTickCount,null!=n&&null!=e&&Math.abs(n-o)<=1&&Math.abs(e-i)<=1&&o<n?o=n:(t.lastTickCount=i,t.lastAutoInterval=o),o)},vl=rV;function rV(t,e){return nV.call(this,"angle",t,e||[0,360])||this}vl.prototype.dataToAngle=n.prototype.dataToCoord,vl.prototype.angleToData=n.prototype.coordToData;var aV=vl,sV=["radius","angle"];function lV(t){this.dimensions=sV,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new iV,this._angleAxis=new aV,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}function uV(t){var e=t.seriesModel;t=t.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}lV.prototype.containPoint=function(t){return t=this.pointToCoord(t),this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},lV.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},lV.prototype.getAxis=function(t){return this["_"+t+"Axis"]},lV.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},lV.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},lV.prototype.getAngleAxis=function(){return this._angleAxis},lV.prototype.getRadiusAxis=function(){return this._radiusAxis},lV.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},lV.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},lV.prototype.getTooltipAxes=function(t){return t=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis(),{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},lV.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},lV.prototype.pointToData=function(t,e){return t=this.pointToCoord(t),[this._radiusAxis.radiusToData(t[0],e),this._angleAxis.angleToData(t[1],e)]},lV.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]},lV.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]},lV.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,e=this.r;var n=this.r0;return e!==n&&t-1e-4<=e*e&&n*n<=1e-4+t}}},lV.prototype.convertToPixel=function(t,e,n){return uV(e)===this?this.dataToPoint(n):null},lV.prototype.convertFromPixel=function(t,e,n){return uV(e)===this?this.pointToData(n):null};var cV=lV;function hV(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(pM(e,"radius"),(function(t){r.scale.unionExtentFromData(e,t)})),l.k(pM(e,"angle"),(function(t){o.scale.unionExtentFromData(e,t)})))})),aM(o.scale,o.model),aM(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 dV(t,e){var n,i;t.type=e.get("type"),t.scale=sM(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"),i=null!=(i=e.get("endAngle"))?i:n+(t.inverse?-360:360),t.setExtent(n,i)),(e.axis=t).model=e}var pV,fV={dimensions:sV,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){i=new cV(i+"");var o,r=(i.update=hV,i.getRadiusAxis()),a=i.getAngleAxis(),s=t.findAxisModel("radiusAxis"),u=t.findAxisModel("angleAxis");dV(r,s),dV(a,u),r=i,s=e,u=(a=t).get("center"),o=s.getWidth(),s=s.getHeight(),r.cx=oi(u[0],o),r.cy=oi(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=[oi(o[0],r),oi(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",Gi).models[0],t.coordinateSystem=e.coordinateSystem)})),n}},gV=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function yV(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 mV(t){return t.getRadiusAxis().inverse?0:1}function vV(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 xV(){var t=null!==pV&&pV.apply(this,arguments)||this;return t.type=xV.type,t.axisPointerClass="PolarAxisPointer",t}a(xV,pV=uI),xV.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(),vV(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}))),vV(r),l.k(gV,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||bV[e](this.group,t,i,r,a,o,s)}),this))},xV.type="angleAxis";var _V,bV={axisLine:function(t,e,n,o,r,a){e=e.getModel(["axisLine","lineStyle"]);var s=n.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=mV(n),h=c?0:1,d=360===Math.abs(u[1]-u[0])?"Circle":"Arc";d=0===a[h]?new i[d]({shape:{cx:n.cx,cy:n.cy,r:a[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:e.getLineStyle(),z2:1,silent:!0}):new Mp({shape:{cx:n.cx,cy:n.cy,r:a[c],r0:a[h]},style:e.getLineStyle(),z2:1,silent:!0});d.style.fill=null,t.add(d)},axisTick:function(t,e,n,i,o,r){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),u=r[mV(n)];r=l.H(i,(function(t){return new zp({shape:yV(n,[u,u+s],t.coord)})}));t.add(Tf(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[mV(n)],h=[],d=0;d<o.length;d++)for(var p=0;p<o[d].length;p++)h.push(new zp({shape:yV(n,[c,c+u],o[d][p].coord)}));t.add(Tf(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,d=i.tickValue,p=r[mV(n)],f=n.coordToPoint([p+c,i.coord]),g=n.cx,y=n.cy;g=Math.abs(f[0]-g)/p<.3?"center":f[0]>g?"left":"right",p=Math.abs(f[1]-y)/p<.3?"middle":f[1]>y?"top":"bottom",s&&s[d]&&(y=s[d],l.A(y))&&y.textStyle&&(a=new el(y.textStyle,u,u.ecModel)),d=new pa({silent:tI.isLabelSilent(e),style:Ds(a,{x:f[0],y:f[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:g,verticalAlign:p})});t.add(d),h&&((y=tI.makeAxisEventDataBase(e)).targetType="axisLabel",y.value=i.rawLabel,fa(d).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 d=s++%u.length;c[d]=c[d]||[],c[d].push(new zp({shape:yV(n,r,i[h].coord)}))}for(h=0;h<c.length;h++)t.add(Tf(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 zp({shape:yV(n,r,o[l][u].coord)}));t.add(Tf(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,d=-i[0].coord*h,p=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 bp({shape:{cx:n.cx,cy:n.cy,r0:p,r:f,startAngle:d,endAngle:-v*h,clockwise:g},silent:!0})),d=-v*h}for(y=0;y<c.length;y++)t.add(Tf(c[y],{style:l.i({fill:u[y%u.length]},a.getAreaStyle()),silent:!0}))}}},wV=xV,SV=["axisLine","axisTickLabel","axisName"],MV=["splitLine","splitArea","minorSplitLine"];function IV(){var t=null!==_V&&_V.apply(this,arguments)||this;return t.type=IV.type,t.axisPointerClass="PolarAxisPointer",t}a(IV,_V=uI),IV.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 qn,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 tI(t,h),l.k(SV,h.add,h),i.add(h.getGroup()),Nf(n,i,t),l.k(MV,(function(e){t.get([e,"show"])&&!o.scale.isBlank()&&OV[e](this.group,t,r,u,c,a,s)}),this))},IV.type="radiusAxis";var OV={splitLine:function(t,e,n,o,r,a){for(var s=e.getModel("splitLine").getModel("lineStyle"),u=s.get("color"),c=0,h=n.getAngleAxis(),d=Math.PI/180,p=h.getExtent(),f=360===Math.abs(p[1]-p[0])?"Circle":"Arc",g=(u=u instanceof Array?u:[u],[]),y=0;y<a.length;y++){var m=c++%u.length;g[m]=g[m]||[],g[m].push(new i[f]({shape:{cx:n.cx,cy:n.cy,r:Math.max(a[y].coord,0),startAngle:-p[0]*d,endAngle:-p[1]*d,clockwise:h.inverse}}))}for(y=0;y<g.length;y++)t.add(Tf(g[y],{style:l.i({stroke:u[y%u.length],fill:null},s.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 tp({shape:{cx:n.cx,cy:n.cy,r:a[u][c].coord}}));t.add(Tf(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,d=1;d<r.length;d++){var p=s++%u.length;c[p]=c[p]||[],c[p].push(new bp({shape:{cx:n.cx,cy:n.cy,r0:h,r:r[d].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=r[d].coord}for(d=0;d<c.length;d++)t.add(Tf(c[d],{style:l.i({fill:u[d%u.length]},a.getAreaStyle()),silent:!0}))}}},TV=IV;function CV(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function kV(t,e){return e.dim+t.model.componentIndex}function DV(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=kV(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,CV(t)),n[i]||a.autoWidthCount++,n[i]=n[i]||{width:0,maxWidth:0},oi(t.get("barWidth"),r)),l=(r=oi(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=oi(t.categoryGap,t.bandWidth),a=oi(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),d=(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:d,width:t.width},d+=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=kV(n,i),r=CV(t),l=(o=s[o][r],o.offset),u=o.width,c=n.getOtherAxis(i),h=t.coordinateSystem.cx,d=t.coordinateSystem.cy,p=t.get("barMinHeight")||0,f=t.get("barMinAngle")||0,g=(a[r]=a[r]||[],e.mapDimension(c.dim)),y=e.mapDimension(i.dim),m=T_(e,g),v="radius"!==i.dim||!t.get("roundCap",!0),x=(o=c.model.get("startValue"),c.dataToCoord(o||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])),k=void 0,D=void 0,A=void 0;"radius"===c.dim?(S=c.dataToCoord(M)-x,w=i.dataToCoord(I),k=(C=T)+(S=Math.abs(S)<p?(S<0?-1:1)*p:S),A=(D=w-l)-u,m&&(a[r][I][O]=k)):(S=c.dataToCoord(M,v)-x,k=(C=i.dataToCoord(I)+l)+u,A=(D=T)+(S=Math.abs(S)<f?(S<0?-1:1)*f:S),m&&(a[r][I][O]=A)),e.setItemLayout(_,{cx:h,cy:d,r0:C,r:k,startAngle:-D*Math.PI/180,endAngle:-A*Math.PI/180,clockwise:A<=D})}}))}var AV,LV={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},PV={splitNumber:5},jV=(a(RV,AV=Od),RV.type="polar",RV);function RV(){var t=null!==AV&&AV.apply(this,arguments)||this;return t.type=RV.type,t}function NV(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 EV,zV=["axisLine","axisTickLabel","axisName"],VV=["splitArea","splitLine"];function BV(){var t=null!==EV&&EV.apply(this,arguments)||this;return t.type=BV.type,t.axisPointerClass="SingleAxisPointer",t}a(BV,EV=uI),BV.prototype.render=function(t,e,n,i){var o=this.group,r=(o.removeAll(),this._axisGroup),a=(this._axisGroup=new qn,NV(t));a=new tI(t,a);l.k(zV,a.add,a),o.add(this._axisGroup),o.add(a.getGroup()),l.k(VV,(function(e){t.get([e,"show"])&&GV[e](this,this.group,this._axisGroup,t)}),this),Nf(r,this._axisGroup,t),EV.prototype.render.call(this,t,e,n,i)},BV.prototype.remove=function(){dI(this)},BV.type="singleAxis";var FV,GV={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=a.get("width"),c=i.coordinateSystem.getRect(),h=o.isHorizontal(),d=[],p=0,f=o.getTicksCoords({tickModel:r}),g=[],y=[],m=0;m<f.length;++m){var v=o.toGlobalCoord(f[m].coord),x=(v=(h?(g[0]=v,g[1]=c.y,y[0]=v,y[1]=c.y+c.height):(g[0]=c.x,g[1]=v,y[0]=c.x+c.width,y[1]=v),new zp({shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},silent:!0})),kf(v.shape,u),p++%s.length);d[x]=d[x]||[],d[x].push(v)}var _=a.getLineStyle(["color"]);for(m=0;m<d.length;++m)e.add(Tf(d[m],{style:l.i({stroke:s[m%s.length]},_),silent:!0}))}},splitArea:function(t,e,n,i){hI(t,n,i,i)}},HV=BV;a(WV,FV=fu),WV.prototype.getCoordSysModel=function(){return this},WV.type="singleAxis",WV.layoutMode="box",WV.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}}},Js=WV;function WV(){var t=null!==FV&&FV.apply(this,arguments)||this;return t.type=WV.type,t}Object(l.K)(Js,sS.prototype);var YV,XV=Js;function UV(t,e,n,i,o){return t=YV.call(this,t,e,n)||this,t.type=i||"value",t.position=o||"bottom",t}a(UV,YV=n),UV.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},UV.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]};var ZV=UV,qV=["single"];function KV(t,e,n){this.type="single",this.dimension="single",this.dimensions=qV,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}function QV(t){var e=t.seriesModel;t=t.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}KV.prototype._init=function(t,e,n){var i=this.dimension,o=(i=new ZV(i,sM(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},KV.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),aM(this._axis.scale,this._axis.model))}),this)},KV.prototype.resize=function(t,e){this._rect=tu({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()},KV.prototype.getRect=function(){return this._rect},KV.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],o=e.inverse?1:0;e.setExtent(i[o],i[1-o]),this._updateAxisTransform(e,n?t.x:t.y)},KV.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}},KV.prototype.getAxis=function(){return this._axis},KV.prototype.getBaseAxis=function(){return this._axis},KV.prototype.getAxes=function(){return[this._axis]},KV.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},KV.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},KV.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},KV.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},KV.prototype.convertToPixel=function(t,e,n){return QV(e)===this?this.dataToPoint(n):null},KV.prototype.convertFromPixel=function(t,e,n){return QV(e)===this?this.pointToData(n):null};var $V,JV=KV,tB={create:function(t,e){var n=[];return t.eachComponent("singleAxis",(function(i,o){var r=new JV(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",Gi).models[0],t.coordinateSystem=e&&e.coordinateSystem)})),n},dimensions:qV},eB=["x","y"],nB=["width","height"];function iB(){return null!==$V&&$V.apply(this,arguments)||this}a(iB,$V=Ks),iB.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=a.coordinateSystem,l=aB(s,1-rB(a)),u=(s=s.dataToPoint(e)[0],i.get("type"));u&&"none"!==u&&(r=rz(i),(u=oB[u](a,s,l)).style=r,t.graphicKey=u.type,t.pointer=u),a=NV(n);uz(e,t,a,n,i,o)},iB.prototype.getHandleTransform=function(t,e,n){var i=NV(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]),n=lz(e.axis,t,i);return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},iB.prototype.updateHandleTransform=function(t,e,n,i){n=n.axis;var o=n.coordinateSystem,r=(n=rB(n),aB(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=aB(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 oB={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:cz([e,n[0]],[e,n[1]],rB(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),o=n[1]-n[0];return{type:"Rect",shape:hz([e-i/2,n[0]],[i,o],rB(t))}}};function rB(t){return t.isHorizontal()?0:1}function aB(t,e){return t=t.getRect(),[t[eB[e]],t[eB[e]]+t[nB[e]]]}var sB,lB,uB=iB,cB=(a(hB,sB=Od),hB.type="single",hB);function hB(){var t=null!==sB&&sB.apply(this,arguments)||this;return t.type=hB.type,t}function dB(){var t=null!==lB&&lB.apply(this,arguments)||this;return t.type=dB.type,t}function pB(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)[Ql[o=t][0]]||null!=n[Ql[o][1]]&&null!=n[Ql[o][2]])&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]}));iu(t,e,{type:"box",ignoreSize:n})}a(dB,lB=fu),dB.prototype.init=function(t,e,n){var i=ou(t);lB.prototype.init.apply(this,arguments),pB(t,i)},dB.prototype.mergeOption=function(t){lB.prototype.mergeOption.apply(this,arguments),pB(this.option,t)},dB.prototype.getCellSize=function(){return this.option.cellSize},dB.type="calendar",dB.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 fB,gB=dB;function yB(){var t=null!==fB&&fB.apply(this,arguments)||this;return t.type=yB.type,t}a(yB,fB=Od),yB.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)},yB.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 qr({shape:{x:l[0],y:l[1],width:r,height:a},cursor:"default",style:o});n.add(l)}},yB.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++){d(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 d(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)}d(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)},yB.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},yB.prototype._drawSplitline=function(t,e,n){t=new jp({z2:20,shape:{points:t},style:e}),n.add(t)},yB.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},yB.prototype._formatterLabel=function(t,e){var n,i;return Object(l.C)(t)&&t?(n=t,l.k(e,(function(t,e){n=n.replace("{"+e+"}",i?G(t):t)})),n):Object(l.w)(t)?t(e):e.nameMap},yB.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]}}},yB.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 pa({z2:30,style:Ds(t,{text:e}),silent:t.get("silent")})).attr(this._yearTextPositionControl(u,a[r],n,r,o)),i.add(u))},yB.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}},yB.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&&dl(r)||e).get(["time","monthAbbr"])||[]),"start"===s?0:1),h="horizontal"===n?0:1,d=(a="start"===s?-a:a,"center"===t),p=o.get("silent"),f=0;f<u[c].length-1;f++){var g=u[c][f].slice(),y=this._firstDayOfMonth[f],m=(d&&(m=this._firstDayPoints[f],g[h]=(m[h]+u[0][f+1][h])/2),o.get("formatter")),v=r[+y.m-1];y={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:v},v=this._formatterLabel(m,y),y=new pa({z2:30,style:Object(l.m)(Ds(o,{text:v}),this._monthTextPositionControl(g,d,n,s,a)),silent:p});i.add(y)}},yB.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}},yB.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(),d=(u&&!Object(l.C)(u)||(u=(e=u&&dl(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),p=[a.getCellWidth(),a.getCellHeight()];c=oi(c,Math.min(p[1],p[0]));"start"===s&&(d=a.getNextNDay(n.start.time,-(7+n.fweek)).time,c=-c);for(var f=r.get("silent"),g=0;g<7;g++){var y=a.getNextNDay(d,g),m=(y=a.dataToRect([y.time],!1).center,Math.abs((g+h)%7));m=new pa({z2:30,style:Object(l.m)(Ds(r,{text:u[m]}),this._weekTextPositionControl(y,i,s,c,p)),silent:f});o.add(m)}}},yB.type="calendar";var mB=yB;function vB(t,e,n){this.type="calendar",this.dimensions=vB.dimensions,this.getDimensionsInfo=vB.getDimensionsInfo,this._model=t}function xB(t){var e=t.calendarModel;t=t.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem:null}vB.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},vB.prototype.getRangeInfo=function(){return this._rangeInfo},vB.prototype.getModel=function(){return this._model},vB.prototype.getRect=function(){return this._rect},vB.prototype.getCellWidth=function(){return this._sw},vB.prototype.getCellHeight=function(){return this._sh},vB.prototype.getOrient=function(){return this._orient},vB.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},vB.prototype.getDateInfo=function(t){var e=(t=fi(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}},vB.prototype.getNextNDay=function(t,e){return 0!==(e=e||0)&&(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},vB.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=tu(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]},vB.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]},vB.prototype.pointToData=function(t){return t=this.pointToDate(t),t&&t.time},vB.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]}},vB.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)},vB.prototype.convertToPixel=function(t,e,n){return e=xB(e),e===this?e.dataToPoint(n):null},vB.prototype.convertFromPixel=function(t,e,n){return e=xB(e),e===this?e.pointToData(n):null},vB.prototype.containPoint=function(t){return!1},vB.prototype._initRangeOption=function(){var t,e,n,i,o=this._model.get("range");return l.t(o)&&1===o.length&&(o=o[0]),l.t(o)?n=o:(t=o.toString(),/^\d{4}$/.test(t)&&(n=[t+"-01-01",t+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(t)&&((e=(i=this.getDateInfo(t)).date).setMonth(e.getMonth()+1),e=this.getNextNDay(e,-1),n=[i.formatedDate,e.formatedDate]),/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(t)&&(n=[t,t])),n?((i=this._getRangeInfo(n)).start.time>i.end.time&&n.reverse(),n):o},vB.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}},vB.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)).setDate(+n.start.d+t),this.getDateInfo(e))},vB.create=function(t,e){var n=[];return t.eachComponent("calendar",(function(t){var e=new vB(t);n.push(e),t.coordinateSystem=e})),t.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])})),n},vB.dimensions=["time","value"];var _B=vB;function bB(t,e){var n;return l.k(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}var wB=["transition","enterFrom","leaveTo"],SB=wB.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function MB(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?wB:SB,o=0;o<i.length;o++){var r=i[o];null==t[r]&&null!=e[r]&&(t[r]=e[r])}}a(TB,IB=fu),TB.prototype.mergeOption=function(t,e){var n=this.option.elements;this.option.elements=null,IB.prototype.mergeOption.call(this,t,e),this.option.elements=n},TB.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),Di(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),iu(r,u,{ignoreSize:!0}),ru(s,r),MB(s,r),MB(s,r,"shape"),MB(s,r,"style"),MB(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=[bB(u,["left","right"]),bB(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}))},TB.prototype._flatten=function(t,e,n){l.k(t,(function(t){var i;t&&(n&&(t.parentOption=n),e.push(t),(i=t.children)&&i.length&&this._flatten(i,e,t),delete t.children)}),this)},TB.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},TB.type="graphic",TB.defaultOption={elements:[]};var IB,OB=TB;function TB(){var t=null!==IB&&IB.apply(this,arguments)||this;return t.type=TB.type,t.preventAutoZ=!0,t}var CB,kB={path:null,compoundPath:null,group:qn,image:Vr,text:pa},DB=zi(),AB=(a(LB,CB=Od),LB.prototype.init=function(){this._elMap=l.f()},LB.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},LB.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=Pi(r.id,null),h=null!=c?e.get(c):null,d=Pi(r.parentId,null),p=(d=null!=d?e.get(d):n,r.type),f=r.style,g=("text"===p&&f&&r.hv&&r.hv[1]&&(f.textVerticalAlign=f.textBaseline=f.verticalAlign=f.align=null),r.textContent),y=r.textConfig,m=(p=(f&&$N(f,p,!!y,!!g)&&(f=JN(f,p,!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(Kl),(function(t){delete a[t]})),a),f=r.$action||"merge","merge"===f),v="replace"===f;m?((u=!(s=h))?s=jB(c,d,r.type,e):(s&&(DB(s).isNew=!1),xE(s)),s&&(lE(s,p,t,{isInit:u}),NB(s,r,i,o))):v?(RB(h,r,e,t),(s=jB(c,d,r.type,e))&&(lE(s,p,t,{isInit:!0}),NB(s,r,i,o))):"remove"===f&&(uE(h,r),RB(h,r,e,t)),d=e.get(c);d&&g&&(m?(p=d.getTextContent())?p.attr(g):d.setTextContent(new pa(g)):v&&d.setTextContent(new pa(g))),d&&((s=r.clipPath)&&(f=s.type,h=void 0,u=!1,m?h=(u=!(c=d.getClipPath())||DB(c).type!==f)?PB(f):c:v&&(u=!0,h=PB(f)),d.setClipPath(h),lE(h,s,t,{isInit:u}),_E(h,s.keyframeAnimation,t)),p=DB(d),d.setTextConfig(y),p.option=r,g=t,m=r,v=fa(c=d).eventData,(v=c.silent||c.ignore?v:v||(fa(c).eventData={componentType:"graphic",componentIndex:g.componentIndex,name:c.name}))&&(v.info=m.info),Gf({el:d,componentModel:t,itemName:d.name,itemTooltipOption:r.tooltip}),_E(d,r.keyframeAnimation,t))})))},LB.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!=(p=Pi((d=o[h]).id,null))?a.get(p):null)&&f.isGroup&&(n=(g=f.parent)===r,i=DB(f),y=DB(g),i.width=oi(i.option.width,n?s:y.width)||0,i.height=oi(i.option.height,n?u:y.height)||0);var d,p,f;for(h=o.length-1;0<=h;h--)if(f=null!=(p=Pi((d=o[h]).id,null))?a.get(p):null){var g=f.parent,y=DB(g),m={},v=eu(f,d,g===r?{width:s,height:u}:{width:y.width,height:y.height},null,{hv:d.hv,boundingMode:d.bounding},m);if(!DB(f).isNew&&v){for(var x=d.transition,_={},b=0;b<c.length;b++){var w=c[b],S=m[w];x&&(hE(x)||0<=l.r(x,w))?_[w]=S:f[w]=S}vs(f,_,t,0)}else f.attr(m)}},LB.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){RB(n,DB(n).option,e,t._lastGraphicModel)})),this._elMap=l.f()},LB.prototype.dispose=function(){this._clear()},LB.type="graphic",LB);function LB(){var t=null!==CB&&CB.apply(this,arguments)||this;return t.type=LB.type,t}function PB(t){var e=new(l.q(kB,t)?kB[t]:Sf(t))({});return DB(e).type=t,e}function jB(t,e,n,i){return n=PB(n),e.add(n),i.set(t,n),DB(n).id=t,DB(n).isNew=!0,n}function RB(t,e,n,i){t&&t.parent&&("group"===t.type&&t.traverse((function(t){RB(t,e,n,i)})),cE(t,e,i),n.removeKey(DB(t).id))}function NB(t,e,n,i){t.isGroup||l.k([["cursor",Lo.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];l.q(e,i)?t[i]=l.P(e[i],n[1]):null==t[i]&&(t[i]=n[1])})),l.k(l.F(e),(function(n){var i;0===n.indexOf("on")&&(i=e[n],t[n]=l.w(i)?i:null)})),l.q(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}var EB=["x","y","radius","angle","single"],zB=["cartesian2d","polar","singleAxis"];function VB(t){return t+"Axis"}function BB(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 FB(t){var e=t.ecModel,n={infoList:[],infoMap:Object(l.f)()};return t.eachTargetAxis((function(t,i){var o,r;t=e.getComponent(VB(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}WB.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)};var GB,HB=WB;function WB(){this.indexList=[],this.indexMap=[]}function YB(){var t=null!==GB&&GB.apply(this,arguments)||this;return t.type=YB.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}function XB(t){var e={};return Object(l.k)(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}a(YB,GB=fu),YB.prototype.init=function(t,e,n){var i=XB(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},YB.prototype.mergeOption=function(t){var e=XB(t);Object(l.I)(this.option,t,!0),Object(l.I)(this.settledOption,e,!0),this._doInit(e)},YB.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()},YB.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)},YB.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return Object(l.k)(EB,(function(n){var i,o=this.getReferringComponents(VB(n),Hi);o.specified&&(e=!0,i=new HB,Object(l.k)(o.models,(function(t){i.add(t.componentIndex)})),t.set(n,i))}),this),e},YB.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 HB).add(a.componentIndex),t.set(n,i),o=!1,"x"!==n&&"y"!==n||(r=a.getReferringComponents("grid",Gi).models[0])&&Object(l.k)(e,(function(t){a.componentIndex!==t.componentIndex&&r===t.getReferringComponents("grid",Gi).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)(EB,(function(e){var n,r;o&&(n=i.findComponents({mainType:VB(e),filter:function(t){return"category"===t.get("type",!0)}}))[0]&&((r=new HB).add(n[0].componentIndex),t.set(e,r),o=!1)}),this)},YB.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){t=t||e}),this),"y"===t?"vertical":"horizontal"},YB.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)},YB.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")}))},YB.prototype.noTarget=function(){return this._noTarget},YB.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(VB(e),n))}),this),t},YB.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,i){Object(l.k)(n.indexList,(function(n){t.call(e,i,n)}))}))},YB.prototype.getAxisProxy=function(t,e){if(t=this.getAxisModel(t,e),t)return t.__dzAxisProxy},YB.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(VB(t),e)},YB.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)},YB.prototype.setCalculatedRange=function(t){var e=this.option;Object(l.k)(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},YB.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},YB.prototype.getValueRange=function(t,e){return null!=t||null!=e?this.getAxisProxy(t,e).getDataValueWindow():(t=this.findRepresentativeAxisProxy())?t.getDataValueWindow():void 0},YB.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},YB.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},YB.prototype.getOrient=function(){return this._orient},YB.type="dataZoom",YB.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],YB.defaultOption={z:4,filterMode:"filter",start:0,end:100};var UB;Wg=YB;function ZB(){var t=null!==UB&&UB.apply(this,arguments)||this;return t.type=ZB.type,t}a(ZB,UB=Wg),ZB.type="dataZoom.select";var qB,KB=ZB;function QB(){var t=null!==qB&&qB.apply(this,arguments)||this;return t.type=QB.type,t}a(QB,qB=Od),QB.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},QB.type="dataZoom";var $B;Yg=QB;function JB(){var t=null!==$B&&$B.apply(this,arguments)||this;return t.type=JB.type,t}a(JB,$B=Yg),JB.type="dataZoom.select";var tF=JB,eF=l.k,nF=ai;function iF(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}iF.prototype.hostedBy=function(t){return this._dataZoomModel===t},iF.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},iF.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},iF.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){var n;n=(n=e).get("coordinateSystem"),0<=Object(l.r)(zB,n)&&(n=VB(this._dimName),n=e.getReferringComponents(n,Gi).models[0])&&this._axisIndex===n.componentIndex&&t.push(e)}),this),t},iF.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},iF.prototype.getMinMaxSpan=function(){return l.d(this._minMaxSpan)},iF.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,o=this._dataZoomModel.getRangePropMode(),r=[0,100],a=[],s=[],l=(eF(["start","end"],(function(l,u){var c=t[l];l=t[l+"Value"];"percent"===o[u]?l=i.parse(ii(c=null==c?r[u]:c,r,n)):(e=!0,c=ii(l=null==l?n[u]:i.parse(l),n,r)),s[u]=null==l||isNaN(l)?n[u]:l,a[u]=null==c||isNaN(c)?r[u]:c})),nF(s),nF(a),this._minMaxSpan);function u(t,e,n,o,r){var a=r?"Span":"ValueSpan";vL(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=ii(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}},iF.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],eF(o=o,(function(t){var e,o;e=i,o=t.getData(),t=n,o&&l.k(pM(o,t),(function(t){t=o.getApproximateExtent(t),t[0]<e[0]&&(e[0]=t[0]),e[1]<t[1]&&(e[1]=t[1])}))})),[(e=iM((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())},iF.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)&&eF(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}))):eF(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))})),eF(s,(function(t){a.setApproximateExtent(r,t)})))}))},iF.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;eF(["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=ii(n[0]+r,n,[0,100],!0):null!=o&&(r=ii(o,[0,100],n,!0)-n[0]),t[i+"Span"]=o,t[i+"ValueSpan"]=r}),this)},iF.prototype._setAxisModel=function(){var t,e=this.getAxisModel(),n=this._percentWindow,i=this._valueWindow;n&&(t=li(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 oF=iF,rF={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,o){var r=t.getComponent(VB(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 oF(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]}))}))}},aF=!1;function sF(t){aF||(aF=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,rF),t.registerAction("dataZoom",(function(t,e){e=BB(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 lF(t){t.registerComponentModel(KB),t.registerComponentView(tF),sF(t)}function uF(){}var cF,hF={};function dF(t,e){hF[t]=e}function pF(t){return hF[t]}function fF(){var t=null!==cF&&cF.apply(this,arguments)||this;return t.type=fF.type,t}a(fF,cF=fu),fF.prototype.optionUpdated=function(){cF.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;l.k(this.option.feature,(function(e,n){n=pF(n),n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(t)),l.I(e,n.defaultOption))}))},fF.type="toolbox",fF.layoutMode={type:"box",ignoreSize:!0},fF.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 gF,yF=fF;function mF(t,e){var n=Gl(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),new qr({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 vF(){return null!==gF&&gF.apply(this,arguments)||this}a(vF,gF=Od),vF.prototype.render=function(t,e,n,i){var o,r,a,s,u,c,h,d,p,f,g,y=this.group;function m(c,h){c=u[c],h=u[h];var d,p=a[c],f=new el(p,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===c&&(p.title=i.newTitle),c&&!h){if(0===c.indexOf("my"))d={onclick:f.option.onclick,featureName:c};else{if(p=pF(c),!p)return;d=new p}s[c]=d}else if(!(d=s[h]))return;d.uid=il("toolbox-feature"),d.model=f,d.ecModel=e,d.api=n;var g,m,v,x,_,b,w;p=d instanceof uF;!c&&h?p&&d.dispose&&d.dispose(e,n):!f.get("show")||p&&d.unusable?p&&d.remove&&d.remove(e,n):(m=d,h=c,_=(g=f).getModel("iconStyle"),b=g.getModel(["emphasis","iconStyle"]),p=m instanceof uF&&m.getIcons?m.getIcons():g.get("icon"),c=g.get("title")||{},l.C(p)?(v={})[h]=p:v=p,l.C(c)?(x={})[h]=c:x=c,w=g.iconPaths={},l.k(v,(function(i,a){var s=Vf(i,{},{x:-o/2,y:-o/2,width:o,height:o});s.setStyle(_.getItemStyle()),s.ensureState("emphasis").style=b.getItemStyle();var u=new pa({style:{text:x[a],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null,font:Ns({fontStyle:b.get("textFontStyle"),fontFamily:b.get("textFontFamily"),fontSize:b.get("textFontSize"),fontWeight:b.get("textFontWeight")},e)},ignore:!0});s.setTextContent(u),Gf({el:s,componentModel:t,itemName:a,formatterParamsExtra:{title:x[a]}}),s.__title=x[a],s.on("mouseover",(function(){var e=b.getItemStyle(),i=r?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";u.setStyle({fill:b.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),s.setTextConfig({position:b.get("textPosition")||i}),u.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==g.get(["iconStatus",a])&&n.leaveEmphasis(this),u.hide()})),("emphasis"===g.get(["iconStatus",a])?Ua:Za)(s),y.add(s),s.on("click",l.c(m.onclick,m,e,n,a)),w[a]=s})),f.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?Ua:Za)(i[t])},d instanceof uF&&d.render&&d.render(f,e,n,i))}y.removeAll(),t.get("show")&&(o=+t.get("itemSize"),r="vertical"===t.get("orient"),a=t.get("feature")||{},s=this._features||(this._features={}),u=[],l.k(a,(function(t,e){u.push(e)})),new Zx(this._featureNames||[],u).add(m).update(m).remove(l.h(m,null)).execute(),this._featureNames=u,c=y,d=n,p=(h=t).getBoxLayoutParams(),f=h.get("padding"),d={width:d.getWidth(),height:d.getHeight()},g=tu(p,d,f),Jl(h.get("orient"),c,h.get("itemGap"),g.width,g.height),eu(c,p,d,f),y.add(mF(y.getBoundingRect(),t)),r||y.eachChild((function(t){var e,i,r=t.__title,a=t.ensureState("emphasis"),s=(a=a.textConfig||(a.textConfig={}),t.getTextContent());s=s&&s.ensureState("emphasis");s&&!l.w(s)&&r&&(s=s.style||(s.style={}),r=An(r,pa.makeFont(s)),e=t.x+y.x,i=!1,t.y+y.y+o+r.height>n.getHeight()&&(a.position="top",i=!0),t=i?-5-r.height:o+10,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"))})))},vF.prototype.updateView=function(t,e,n,i){l.k(this._features,(function(t){t instanceof uF&&t.updateView&&t.updateView(t.model,e,n,i)}))},vF.prototype.remove=function(t,e){l.k(this._features,(function(n){n instanceof uF&&n.remove&&n.remove(t,e)})),this.group.removeAll()},vF.prototype.dispose=function(t,e){l.k(this._features,(function(n){n instanceof uF&&n.dispose&&n.dispose(t,e)}))},vF.type="toolbox";var xF,_F=vF;function bF(){return null!==xF&&xF.apply(this,arguments)||this}a(bF,xF=uF),bF.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("function"!=typeof MouseEvent||!t.newEdge&&(t.ie||t.edge))if(window.navigator.msSaveOrOpenBlob||o){t=e.split(",");var a=-1<t[0].indexOf("base64"),l=o?decodeURIComponent(t[1]):t[1];o=(a&&(l=window.atob(l)),i+"."+r);if(window.navigator.msSaveOrOpenBlob){for(var u=l.length,c=new Uint8Array(u);u--;)c[u]=l.charCodeAt(u);t=new Blob([c]),window.navigator.msSaveOrOpenBlob(t,o)}else{a=document.createElement("iframe"),t=(document.body.appendChild(a),a.contentWindow);var h=t.document;h.open("image/svg+xml","replace"),h.write(l),h.close(),t.focus(),h.execCommand("SaveAs",!0,o),document.body.removeChild(a)}}else t=n.get("lang"),h='<body style="margin:0;"><img src="'+e+'" style="max-width:100%;" title="'+(t&&t[0]||"")+'" /></body>',o=window.open(),o.document.write(h),o.document.title=i;else a=document.createElement("a"),a.download=i+"."+r,a.target="_blank",a.href=e,n=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1}),a.dispatchEvent(n)},bF.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 wF,SF=bF,MF="__ec_magicType_stack__",IF=[["line","bar"],["stack"]];a(OF,wF=uF),OF.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},OF.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:{}}},OF.prototype.onclick=function(t,e,n){var i,o,r=this.model,a=r.get(["seriesIndex",n]);TF[n]&&(i={series:[]},l.k(IF,(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;e=TF[n](e,t.id,t,r),e&&(l.i(e,t.option),i.series.push(e)),e=t.coordinateSystem;if(e&&"cartesian2d"===e.type&&("line"===n||"bar"===n)&&(e=e.getAxesByScale("ordinal")[0],e)){var o=e.dim+"Axis",a=t.getReferringComponents(o,Gi).models[0].componentIndex;i[o]=i[o]||[];for(var s=0;s<=a;s++)i[o][a]=i[o][a]||{};i[o][a].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=OF;function OF(){return null!==wF&&wF.apply(this,arguments)||this}var TF={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")===MF,"line"===t||"bar"===t)return i.setIconStatus("stack",n?"normal":"emphasis"),l.I({id:e,stack:n?"":MF},i.get(["option","stack"])||{},!0)}},CF=(jm({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)})),e),kF=new Array(60).join("-"),DF="\t";function AF(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:(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(DF)]),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(DF))}r.push(s.join("\n"))})),r.join("\n\n"+kF+"\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+DF:"")+i.join(DF))})),n.join("\n")})).join("\n\n"+kF+"\n\n"))],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+kF+"\n\n"),meta:t.meta}}function LF(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var PF=new RegExp("["+DF+"]+","g");function jF(t,e){t=t.split(new RegExp("\n*"+kF+"\n*","g"));var n={series:[]};return l.k(t,(function(t,i){var o,r;0<=t.slice(0,t.indexOf("\n")).indexOf(DF)?(r=(t=>{for(var e=t.split(/\n+/g),n=(t=LF(e.shift()).split(PF),[]),i=l.H(t,(function(t){return{name:t,data:[]}})),o=0;o<e.length;o++){var r=LF(e[o]).split(PF);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=(t=>{for(var e=t.split(/\n+/g),n=(t=LF(e.shift()),[]),i=0;i<e.length;i++){var o=LF(e[i]);if(o){for(var r,a=o.split(PF),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(NF,RF=uF),NF.prototype.onclick=function(t,e){setTimeout((function(){e.dispatchAction({type:"hideTip"})}));var n=e.getDom(),i=this.model,o=(this._dom&&n.removeChild(this._dom),document.createElement("div")),r=(o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding: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="overflow:auto",i.get("optionToContent")),h=i.get("contentToOption"),d=(t=AF(t),l.w(c)?(p=c(e.getOption()),l.C(p)?s.innerHTML=p:l.v(p)&&s.appendChild(p)):(u.readOnly=i.get("readOnly"),(p=u.style).cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),u.value=t.value,s.appendChild(u)),t.meta),p=document.createElement("div"),f=(t=(p.style.cssText="position:absolute;bottom:5px;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}K(f,"click",m),K(g,"click",(function(){if(!(null==h&&null!=c||null!=h&&null==c)){var t;try{t=l.w(h)?h(s,e.getOption()):jF(u.value,d)}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=f.style.cssText=t,i.get("readOnly")||p.appendChild(g),p.appendChild(f),o.appendChild(r),o.appendChild(s),o.appendChild(p),s.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},NF.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},NF.prototype.dispose=function(t,e){this.remove(t,e)},NF.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 RF;Hg=NF;function NF(){return null!==RF&&RF.apply(this,arguments)||this}jm({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 EF=Hg,zF=l.k,VF=zi();function BF(t){return t=VF(t),t.snapshots||(t.snapshots=[{}]),t.snapshots}a(GF,FF=uF),GF.prototype.onclick=function(t,e){VF(t).snapshots=null,e.dispatchAction({type:"restore",from:this.uid})},GF.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 FF;Xg=GF;function GF(){return null!==FF&&FF.apply(this,arguments)||this}jm({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var HF=Xg,WF=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];YF.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=QF[t.brushType](0,n,e),t.__rangeOffset={offset:JF[t.brushType](n.values,t.range,[1,1]),xyMinMax:n.xyMinMax})})),t},YF.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=QF[t.brushType](1,i,t.range,!0);n(t,o.values,i,e)}))}),this)},YF.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=QF[t.brushType](0,i.coordSys,t.coordRange),n=t.__rangeOffset,t.range=n?JF[t.brushType](i.values,n.offset,((t,e)=>(t=eG(t),e=eG(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)},YF.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:TP(i),isTargetByCursor:kP(i,t,n.coordSysModel),getLinearBrushOtherExtent:CP(i)}}))},YF.prototype.controlSeries=function(t,e,n){return t=this.findTargetInfo(t,n),!0===t||t&&0<=Object(l.r)(t.coordSyses,e.coordinateSystem)},YF.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=UF(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<qF.length;s++)if(qF[s](i,r))return r}return!0},Xs=YF;function YF(t,e,n){var i=this,o=(this._targetInfoList=[],UF(e,t));Object(l.k)(ZF,(function(t,e){n&&n.include&&!(0<=Object(l.r)(n.include,e))||t(o,i._targetInfoList)}))}function XF(t){return t[0]>t[1]&&t.reverse(),t}function UF(t,e){return Bi(t,e,{includeMainTypes:WF})}var ZF={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:KF.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:KF.geo})}))}},qF=[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}],KF={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Lf(t)),e}},QF={lineX:Object(l.h)($F,0),lineY:Object(l.h)($F,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=[XF([o[0],t[0]]),XF([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 $F(t,e,n,i){var o=n.getAxis(["x","y"][t]),r=(n=XF(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)(tG,0),lineY:Object(l.h)(tG,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 tG(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function eG(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var nG,iG=Xs,oG=l.k,rG=Ii+"toolbox-dataZoom_";a(aG,nG=uF),aG.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new OP(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 iG(lG(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<(t=>BF(t).length)(e)?"emphasis":"normal")},aG.prototype.onclick=function(t,e,n){sG[n].call(this)},aG.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},aG.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},aG.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=vL(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 iG(lG(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),zF(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))},aG.prototype._dispatchZoomAction=function(t){var e=[];oG(t,(function(t,n){e.push(l.d(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},aG.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)"}}},ro=aG;function aG(){return null!==nG&&nG.apply(this,arguments)||this}var sG={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={},zF(t,(function(t,i){for(var o=e.length-1;0<=o;o--)if(t=e[o][i]){n[i]=t;break}})),n))}};function lG(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}Zs="dataZoom",Ws=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=Bi(t,lG(e)),oG(i.xAxisModels,(function(t){return r(t,"xAxis","xAxisIndex")})),oG(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:rG+i+t},i[o]=t,n.push(i)}},Object(l.b)(null==Ru.get(Zs)&&Ws),Ru.set(Zs,Ws);var uG,cG=ro;function hG(){var t=null!==uG&&uG.apply(this,arguments)||this;return t.type=hG.type,t}a(hG,uG=fu),hG.type="tooltip",hG.dependencies=["axisPointer"],hG.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 dG=hG;function pG(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}function fG(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 gG=fG(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function yG(t,e){if(!t)return e;e=Fl(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var mG=yG(fG(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),vG=yG(gG,"transform"),xG="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(s.a.transform3dSupported?"will-change:transform;":"");function _G(t,e,n){var i;t=t.toFixed(0)+"px",e=e.toFixed(0)+"px";return s.a.transformSupported?(i="translate"+((i=s.a.transform3dSupported)?"3d":"")+"("+t+","+e+(i?",0":"")+")",n?"top:0;left:0;"+vG+":"+i+";":[["top",0],["left",0],[gG,i]]):n?"top:"+e+";left:"+t+";":[["top",e],["left",t]]}function bG(t,e,n){var i,o,r=[],a=t.get("transitionDuration"),u=t.get("backgroundColor"),c=t.get("shadowBlur"),h=t.get("shadowColor"),d=t.get("shadowOffsetX"),p=t.get("shadowOffsetY"),f=t.getModel("textStyle"),g=ld(t,"html");return r.push("box-shadow:"+d+"px "+p+"px "+c+"px "+h),e&&a&&r.push((h="opacity"+(c=" "+(d=a)/2+"s "+(p="cubic-bezier(0.23,1,0.32,1)"))+",visibility"+c,n||(c=" "+d+"s "+p,h+=s.a.transformSupported?","+vG+c:",left"+c+",top"+c),mG+":"+h)),u&&r.push("background-color:"+u),Object(l.k)(["width","color","radius"],(function(e){var n="border-"+e,i=Fl(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()),a=Object(l.P)(i.get("lineHeight"),Math.round(3*e/2)),e&&o.push("line-height:"+a+"px"),e=i.get("textShadowColor"),a=i.get("textShadowBlur")||0,n=i.get("textShadowOffsetX")||0,d=i.get("textShadowOffsetY")||0,e&&a&&o.push("text-shadow:"+n+"px "+d+"px "+a+"px "+e),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:"+Gl(g).join("px ")+"px"),r.join(";")+";"}function wG(t,e,n,i,o){var r,a,s=e&&e.painter;n?(r=s&&s.getViewportRoot())&&(a=t,n=n,z(E,r,i,o,!0))&&z(a,n,E[0],E[1]):(t[0]=i,t[1]=o,(r=s&&s.getViewportRootOffset())&&(t[0]+=r.offsetLeft,t[1]+=r.offsetTop)),t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function SG(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,s.a.wxa)return null;var n=document.createElement("div"),i=(n.domBelongToZr=!0,this.el=n,this._zr=t.getZr()),o=(e=e.appendTo,e=e&&(Object(l.C)(e)?document.querySelector(e):Object(l.v)(e)?e:Object(l.w)(e)&&e(t.getDom())),wG(this._styleCoord,i,e,t.getWidth()/2,t.getHeight()/2),(e||t.getDom()).appendChild(n),this._api=t,this._container=e,this);n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(t){var e;t=t||window.event,o._enterable||(e=i.handler,q(i.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t))},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}SG.prototype.update=function(t){this._container||(i=this._api.getDom(),n="position",n=(e=(e=i).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e))?n?e[n]:e:null,"absolute"!==(e=i.style).position&&"absolute"!==n&&(e.position="relative"));var e,n,i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},SG.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=xG+bG(t,!this._firstShow,this._longHide)+_G(o[0],o[1],!0)+"border-color:"+Ul(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},SG.prototype.setContent=function(t,e,n,i,o){var r=this.el;if(null==t)r.innerHTML="";else{var a,s,u,c,h,d="";if(Object(l.C)(o)&&"item"===n.get("trigger")&&!pG(n)&&(n=n,i=i,o=o,d=Object(l.C)(o)&&"inside"!==o?(a=n.get("backgroundColor"),n=n.get("borderWidth"),i=Ul(i),o=o="left"===(o=o)?"right":"right"===o?"left":"top"===o?"bottom":"top",p=Math.max(1.5*Math.round(n),6),s="",u=vG+":",-1<Object(l.r)(["left","right"],o)?(s+="top:50%",u+="translateY(-50%) rotate("+(h="left"==o?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(h="top"==o?225:45)+"deg)"),h=h*Math.PI/180,h=(c=p+n)*Math.abs(Math.cos(h))+c*Math.abs(Math.sin(h)),i=i+" solid "+n+"px;",'<div style="'+["position:absolute;width:"+p+"px;height:"+p+"px;z-index:-1;",(s+=";"+o+":-"+Math.round(100*((h-Math.SQRT2*n)/2+Math.SQRT2*n-(h-c)/2))/100+"px")+";"+u+";","border-bottom:"+i,"border-right:"+i,"background-color:"+a+";"].join("")+'"></div>'):""),Object(l.C)(t))r.innerHTML=t+d;else if(t){r.innerHTML="",Object(l.t)(t)||(t=[t]);for(var p,f=0;f<t.length;f++)Object(l.v)(t[f])&&t[f].parentNode!==r&&r.appendChild(t[f]);d&&r.childNodes.length&&((p=document.createElement("div")).innerHTML=d,r.appendChild(p))}}},SG.prototype.setEnterable=function(t){this._enterable=t},SG.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},SG.prototype.moveTo=function(t,e){var n,i;this.el&&(wG(n=this._styleCoord,this._zr,this._container,t,e),null!=n[0])&&null!=n[1]&&(i=this.el.style,t=_G(n[0],n[1]),Object(l.k)(t,(function(t){i[t[0]]=t[1]})))},SG.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},SG.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)},SG.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Object(l.c)(this.hide,this),t)):this.hide())},SG.prototype.isShow=function(){return this._show},SG.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null};var MG=SG;function IG(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),CG(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}function OG(t){return Math.max(0,t)}function TG(t){var e=OG(t.shadowBlur||0),n=OG(t.shadowOffsetX||0);t=OG(t.shadowOffsetY||0);return{left:OG(e-n),right:OG(e+n),top:OG(e-t),bottom:OG(e+t)}}function CG(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}IG.prototype.update=function(t){t=t.get("alwaysShowContent"),t&&this._moveIfResized(),this._alwaysShowContent=t},IG.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},IG.prototype.setContent=function(t,e,n,i,o){var r=this,a=(l.A(t)&&Gu(""),this.el&&this._zr.remove(this.el),n.getModel("textStyle")),s=(this.el=new pa({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:ld(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}))},IG.prototype.setEnterable=function(t){this._enterable=t},IG.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect();t=TG(t.style);return[e.width+t.left+t.right,e.height+t.top+t.bottom]},IG.prototype.moveTo=function(t,e){var n,i,o=this.el;o&&(CG(i=this._styleCoord,this._zr,t,e),t=i[0],e=i[1],n=OG((i=o.style).borderWidth||0),i=TG(i),o.x=t+n+i.left,o.y=e+n+i.top,o.markRedraw())},IG.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},IG.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},IG.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(l.c(this.hide,this),t)):this.hide())},IG.prototype.isShow=function(){return this._show},IG.prototype.dispose=function(){this._zr.remove(this.el)};var kG,DG=IG,AG=new qr({shape:{x:-1,y:-1,width:2,height:2}});function LG(){var t=null!==kG&&kG.apply(this,arguments)||this;return t.type=LG.type,t}function PG(t,e,n){for(var i=e.ecModel,o=n?(o=new el(n,i,i),new el(e.option,o,i)):e,r=t.length-1;0<=r;r--){var a=t[r];a&&(a instanceof el&&(a=a.get("tooltip",!0)),a=Object(l.C)(a)?{formatter:a}:a)&&(o=new el(a,o,i))}return o}function jG(t,e){return t.dispatchAction||Object(l.c)(e.dispatchAction,e)}function RG(t){return"center"===t||"middle"===t}a(LG,kG=Od),LG.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 DG(e):new MG(e,{appendTo:t.get("appendToBody",!0)?"body":t.get("appendTo",!0)}))},LG.prototype.render=function(t,e,n){!s.a.node&&n.getDom()&&(this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,(e=this._tooltipContent).update(t),e.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?og(this,"_updatePosition",50,"fixRate"):rg(this,"_updatePosition"))},LG.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");Mz("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))},LG.prototype._keepShow=function(){var t,e=this._tooltipModel,n=this._ecModel,i=this._api,o=e.get("triggerOn");null!=this._lastX&&null!=this._lastY&&"none"!==o&&"click"!==o&&(t=this,clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){i.isDisposed()||t.manuallyShowTip(e,n,i,{x:t._lastX,y:t._lastY,dataByCoordSys:t._lastDataByCoordSys})})))},LG.prototype.manuallyShowTip=function(t,e,n,i){var o,r,a,l;i.from!==this.uid&&!s.a.node&&n.getDom()&&(o=jG(i,n),this._ticket="",l=i.dataByCoordSys,(r=((t,e,n)=>{var i=Fi(t).queryOptionMap,o=i.keys()[0];if(o&&"series"!==o){var r;e=Wi(e,o,i.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(e&&(n.getViewOfComponentModel(e).group.traverse((function(e){var n=fa(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=AG).x=i.x,a.y=i.y,a.update(),fa(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=Dz(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)))},LG.prototype.manuallyHideTip=function(t,e,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(jG(i,n))},LG.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=PG([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},LG.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?"legend"!==fa(r).ssrType&&(Vg(r,(function(t){return null!=fa(t).dataIndex?(i=t,1):null!=fa(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)))},LG.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()},LG.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,o=[e.offsetX,e.offsetY],r=PG([e.tooltipOption],i),a=this._renderMode,s=[],u=Jh("section",{blocks:[],noHeader:!0}),c=[],h=new ud,d=(Object(l.k)(t,(function(t){Object(l.k)(t.dataByAxis,(function(t){var e,o,r=n.getComponent(t.axisDim+"Axis",t.axisIndex),d=t.value;r&&null!=d&&(e=sz(d,r.axis,n,t.seriesDataIndices,t.valueLabelOpt),o=Jh("section",{header:e,noHeader:!Object(l.T)(e),sortBlocks:!0,blocks:[]}),u.blocks.push(o),Object(l.k)(t.seriesDataIndices,(function(u){var p,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=uM(r.axis,{value:d}),g.axisValueLabel=e,g.marker=h.makeTooltipMarker("item",Ul(g.color),a),(p=(u=th(f.formatTooltip(u,!0,null))).frag)&&(f=PG([f],i).get("valueFormatter"),o.blocks.push(f?Object(l.m)({valueFormatter:f},p):p)),u.text&&c.push(u.text),s.push(g))})))}))})),u.blocks.reverse(),c.reverse(),e.position),p=(e=r.get("order"),e=od(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,d,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(r,p,s,Math.random()+"",o[0],o[1],d,null,h)}))},LG.prototype._showSeriesItemTooltip=function(t,e,n){var i,o,r,a,s,u=this._ecModel,c=(e=fa(e),e.seriesIndex),h=u.getSeriesByIndex(c),d=e.dataModel||h,p=e.dataIndex,f=(e=e.dataType,d.getData(e)),g=this._renderMode,y=t.positionDefault,m=PG([f.getItemModel(p),d,h&&(h.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null);h=m.get("trigger");null!=h&&"item"!==h||(i=d.getDataParams(p,e),o=new ud,i.marker=o.makeTooltipMarker("item",Ul(i.color),g),y=th(d.formatTooltip(p,!1,e)),h=m.get("order"),e=m.get("valueFormatter"),r=y.frag,a=r?od(e?Object(l.m)({valueFormatter:e},r):r,o,g,h,u.get("useUTC"),m.get("textStyle")):y.text,s="item_"+d.name+"_"+p,this._showOrMove(m,(function(){this._showTooltipContent(m,a,i,s,t.offsetX,t.offsetY,t.position,t.target,o)})),n({type:"showTip",dataIndexInside:p,dataIndex:f.getRawIndex(p),seriesIndex:c,from:this.uid}))},LG.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,o=fa(e),r=o.tooltipConfig.option||{},a=r.encodeHTMLContent,s=(a=(Object(l.C)(r)&&(r={content:r,formatter:r},a=!0),a&&i&&r.content&&((r=Object(l.d)(r)).content=G(r.content)),[r]),i=this._ecModel.getComponent(o.componentMainType,o.componentIndex),o=(i&&a.push(i),a.push({formatter:r.content}),t.positionDefault),PG(a,this._tooltipModel,o?{position:o}:null)),u=s.get("content"),c=Math.random()+"",h=new ud;this._showOrMove(s,(function(){var n=Object(l.d)(s.get("formatterParams")||{});this._showTooltipContent(s,u,n,c,t.offsetX,t.offsetY,t.position,e,h)})),n({type:"showTip",from:this.uid})},LG.prototype._showTooltipContent=function(t,e,n,i,o,r,a,s,u){var c,h,d,p,f;this._ticket="",t.get("showContent")&&t.get("show")&&((c=this._tooltipContent).setEnterable(t.get("enterable")),h=t.get("formatter"),a=a||t.get("position"),e=e,d=this._getNearestPoint([o,r],n,t.get("trigger"),t.get("borderColor")).color,h&&(e=Object(l.C)(h)?(p=t.ecModel.get("useUTC"),e=h,Xl(e=(f=Object(l.t)(n)?n[0]:n)&&f.axisType&&0<=f.axisType.indexOf("time")?Ml(f.axisValue,e,p):e,n,!0)):Object(l.w)(h)?(f=Object(l.c)((function(e,i){e===this._ticket&&(c.setContent(i,u,t,d,a),this._updatePosition(t,a,o,r,c,n,s))}),this),this._ticket=i,h(n,i,f)):h),c.setContent(e,u,t,d,a),c.show(t,d),this._updatePosition(t,a,o,r,c,n,s))},LG.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}},LG.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()),d=t.get("align"),p=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=oi(e[0],u),i=oi(e[1],c)):Object(l.A)(e)?((r=e).width=h[0],r.height=h[1],n=(r=tu(r,{width:u,height:c})).x,i=r.y,p=d=null):(n=(s=Object(l.C)(e)&&a?((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")):((t,e,n,i,o,r,a)=>{var s=(n=n.getSize())[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,d?null:20,p?null:20))[0],i=s[1]),d&&(n-=RG(d)?h[0]/2:"right"===d?h[0]:0),p&&(i-=RG(p)?h[1]/2:"bottom"===p?h[1]:0),pG(t)&&(r=n,a=i,e=u,f=c,d=(d=o).getSize(),p=d[0],d=d[1],r=Math.min(r+p,e)-p,a=Math.min(a+d,f)-d,r=Math.max(r,0),a=Math.max(a,0),n=(s=[r,a])[0],i=s[1]),o.moveTo(n,i)},LG.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},LG.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},LG.prototype.dispose=function(t,e){!s.a.node&&e.getDom()&&(rg(this,"_updatePosition"),this._tooltipContent.dispose(),Tz("itemTooltip",e))},LG.type="tooltip";var NG=LG,EG=["rect","polygon","keep","clear"];function zG(t,e){var n,i,o,r=Oi(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,EG)}var VG=l.k;function BG(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return 1}function FG(t,e,n){var i={};return VG(e,(function(e){var o=i[e]=(r.prototype.__hidden=r.prototype,new r);function r(){}VG(t[e],(function(t,i){jk.isValidType(i)&&(t={type:i,visual:t},n&&n(t,e),o[i]=new jk(t),"opacity"===i)&&((t=l.d(t)).type="colorAlpha",o.__hidden.__alphaForOpacity=new jk(t))}))})),i}function GG(t,e,n){var i;l.k(n,(function(t){e.hasOwnProperty(t)&&BG(e[t])&&(i=!0)})),i&&l.k(n,(function(n){e.hasOwnProperty(n)&&BG(e[n])?t[n]=l.d(e[n]):delete t[n]}))}var HG={lineX:WG(0),lineY:WG(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])&&EO(n.range,t[0],t[1])},rect:function(t,e,n){var i,o,r,a,s;n=n.range;return!(!t||n.length<=1)&&(i=t.x,r=t.width,a=t.height,s=n[0],!!(EO(n,i,o=t.y)||EO(n,i+r,o)||EO(n,i,o+a)||EO(n,i+r,o+a)||wt.create(t).contain(s[0],s[1])||Bf(i,o,i+r,o,n)||Bf(i,o,i,o+a,n)||Bf(i+r,o,i+r,o+a,n)||Bf(i,o+a,i+r,o+a,n))||void 0)}}};function WG(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e)return i=i.range,YG(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(),YG(i[0],r)||YG(i[1],r)||YG(r[0],i)||YG(r[1],i)}}}function YG(t,e){return e[0]<=t&&t<=e[1]}var XG=["inBrush","outOfBrush"],UG="__ecBrushSelect",ZG="__ecInBrushSelectEvent";function qG(t){t.eachComponent({mainType:"brush"},(function(e){(e.brushTargetManager=new iG(e.option,t)).setInputRanges(e.areas,t)}))}function KG(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})})),qG(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=[],d=[],p=!1,f=(n||(i=a.throttleType,o=a.throttleDelay),l.H(e.areas,(function(t){var e,n,i,o=tH[t.brushType];o=l.i({boundingRect:o?o(t):void 0},t);return o.selectors=(n=(e=o).brushType,i={point:function(t){return HG[n].point(t,i,e)},rect:function(t){return HG[n].rect(t,i,e)}}),o}))),g=FG(e.option,XG,(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=d[i]=[];"parallel"===n.subType?(u=i,c=(s=n).coordinateSystem,p=p||c.hasAxisBrushed(),y(u)&&c.eachActiveState(s.getData(),(function(t,e){"active"===t&&(h[e]=1)}))):(u=i,r=g,(o=n).brushSelector&&!((t,e)=>null!=(t=t.option.seriesIndex)&&"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),p=p||m(r)})),y(u))&&m(r)&&(a=o.getData()).each((function(t){$G(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),d[e]),x=t.getData(),_=y(e)?function(t){return h[t]?(f.dataIndex.push(x.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return $G(t,v,x,e)?(f.dataIndex.push(x.getRawIndex(e)),"inBrush"):"outOfBrush"};function b(t){return jg(i,u,t)}function w(t,e){Ng(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,d=l.length;h<d;h++){var p=l[h];r[p]&&r[p].applyVisual(t,b,w)}}}(y(e)?p:m(v))&&(n=g,i=x,o=_,c={},l.k(XG,(function(t){var e=jk.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())[ZG]&&(u[UG]||(u[UG]=QG),og(u,UG,a,r)(e,s))}function QG(t,e){var n;t.isDisposed()||((n=t.getZr())[ZG]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[ZG]=!1)}function $G(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 JG,tH={rect:function(t){return eH(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&&eH(o)}};function eH(t){return new wt(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}function nH(){var t=null!==JG&&JG.apply(this,arguments)||this;return t.type=nH.type,t}a(nH,JG=Od),nH.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new OP(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){qG(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 iH,oH=nH;function rH(){var t=null!==iH&&iH.apply(this,arguments)||this;return t.type=rH.type,t.areas=[],t.brushOption={},t}function aH(t,e){return l.I({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new el(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}a(rH,iH=fu),rH.prototype.optionUpdated=function(t,e){var n=this.option;e||GG(n,t,["inBrush","outOfBrush"]),e=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},e.hasOwnProperty("liftZ")||(e.liftZ=5)},rH.prototype.setAreas=function(t){t&&(this.areas=l.H(t,(function(t){return aH(this.option,t)}),this))},rH.prototype.setBrushOption=function(t){this.brushOption=aH(this.option,t),this.brushType=this.brushOption.brushType},rH.type="brush",rH.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],rH.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 sH,lH=rH,uH=["rect","polygon","lineX","lineY","keep","clear"];function cH(){return null!==sH&&sH.apply(this,arguments)||this}a(cH,sH=uF),cH.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")}))},cH.prototype.updateView=function(t,e,n){this.render(t,e,n)},cH.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},cH.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}})},cH.getDefaultOption=function(t){return{show:!0,type:uH.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 hH=cH;a(fH,dH=fu),fH.type="title",fH.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 dH,pH=fH;function fH(){var t=null!==dH&&dH.apply(this,arguments)||this;return t.type=fH.type,t.layoutMode={type:"box",ignoreSize:!0},t}a(vH,gH=Od),vH.prototype.render=function(t,e,n){var i,o,r,a,s,u,c,h,d;this.group.removeAll(),t.get("show")&&(i=this.group,c=t.getModel("textStyle"),o=t.getModel("subtextStyle"),h=t.get("textAlign"),d=l.P(t.get("textBaseline"),t.get("textVerticalAlign")),s=(c=new pa({style:Ds(c,{text:t.get("text"),fill:c.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),u=t.get("subtext"),o=new pa({style:Ds(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(){Zl(r,"_"+t.get("target"))})),a&&o.on("click",(function(){Zl(a,"_"+t.get("subtarget"))})),fa(c).eventData=fa(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=tu(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)),d||("bottom"===(d="center"===(d=t.get("top")||t.get("bottom"))?"middle":d)?u.y+=u.height:"middle"===d&&(u.y+=u.height/2),d=d||"top"),i.x=u.x,i.y=u.y,i.markRedraw(),c.setStyle(n={align:h,verticalAlign:d}),o.setStyle(n),s=i.getBoundingRect(),c=u.margin,(h=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),d=new qr({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(d))},vH.type="title";var gH,yH,mH=vH;function vH(){var t=null!==gH&&gH.apply(this,arguments)||this;return t.type=vH.type,t}function xH(){var t=null!==yH&&yH.apply(this,arguments)||this;return t.type=xH.type,t.layoutMode="box",t}a(xH,yH=fu),xH.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},xH.prototype.mergeOption=function(t){yH.prototype.mergeOption.apply(this,arguments),this._initData()},xH.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},xH.prototype.getCurrentIndex=function(){return this.option.currentIndex},xH.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},xH.prototype.setPlayState=function(t){this.option.autoPlay=!!t},xH.prototype.getPlayState=function(){return!!this.option.autoPlay},xH.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=Pi(ki(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 b_([{name:"value",type:n}],this)).initData(t,i)},xH.prototype.getData=function(){return this._data},xH.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},xH.type="timeline",xH.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 _H;vl=xH,a(bH,_H=vl),bH.type="timeline.slider",bH.defaultOption=ol(vl.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:[]}),Js=bH;function bH(){var t=null!==_H&&_H.apply(this,arguments)||this;return t.type=bH.type,t}Object(l.K)(Js,$c.prototype);var wH,SH=Js;function MH(){var t=null!==wH&&wH.apply(this,arguments)||this;return t.type=MH.type,t}a(MH,wH=Od),MH.type="timeline";var IH;Ks=MH;function OH(t,e,n,i){return t=IH.call(this,t,e,n)||this,t.type=i||"value",t}a(OH,IH=n),OH.prototype.getLabelModel=function(){return this.model.getModel("label")},OH.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")};var TH,CH=OH,kH=Math.PI,DH=zi();function AH(){var t=null!==TH&&TH.apply(this,arguments)||this;return t.type=AH.type,t}function LH(t,e,n,i,o,r){var a=e.get("color");o?(o.setColor(a),n.add(o),r&&r.onUpdate(o)):((o=Qg(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=$g(t.get("symbolSize")),i.scaleX=n[0]/2,i.scaleY=n[1]/2,r=Jg(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 PH(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(AH,TH=Ks),AH.prototype.init=function(t,e){this.api=e},AH.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 Jh("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()},AH.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},AH.prototype.dispose=function(){this._clearTimer()},AH.prototype._layout=function(t,e){var n,i,o,r=t.get(["label","position"]),a=t.get("orient"),s=(s=e,tu((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:kH/2}),h="vertical"===a?s.height:s.width,d=t.getModel("controlStyle"),p=d.get("show",!0),f=p?d.get("itemSize"):0,g=p?d.get("itemGap"):0,y=f+g,m=(t.get(["label","rotate"])||0)*kH/180,v=d.get("position",!0),x=p&&d.get("showPlayBtn",!0),_=p&&d.get("showPrevBtn",!0),b=(p=p&&d.get("showNextBtn",!0),d=0,h);"left"===v||"bottom"===v?(x&&(n=[0,0],d+=y),_&&(i=[d,0],d+=y)):(x&&(n=[b-f,0],b-=y),_&&(i=[0,0],d+=y)),p&&(o=[b-f,0],b-=y),v=[d,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}},AH.prototype._position=function(t,e){var n,i=this._mainGroup,o=this._labelGroup,r=t.viewRect,a=("vertical"===t.orient&&(st(c=it(),c,[-(s=r.x),-(u=r.y+r.height)]),lt(c,c,-kH/2),st(c,c,[s,u]),(r=r.clone()).applyTransform(c)),p(r)),s=p(i.getBoundingRect()),u=p(o.getBoundingRect()),c=[i.x,i.y],h=(r=[o.x,o.y],r[0]=c[0]=a[0][0],t.labelPosOpt);function d(t){t.originX=a[0][0]-t.x,t.originY=a[1][0]-t.y}function p(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,d(i),d(o)},AH.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),o=((t,e)=>{if(e=e||t.get("type"))switch(e){case"category":return new PS({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new GS({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new ES}})(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 CH("value",o,t.axisExtent,i);return r.model=e,r},AH.prototype._createGroup=function(t){return t=this[t]=new qn,this.group.add(t),t},AH.prototype._renderAxisLine=function(t,e,n,i){var o;n=n.getExtent();i.get(["lineStyle","show"])&&(o=new zp({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 zp({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))},AH.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=LH(s,u,e,a),u.ensureState("emphasis").style=c.getItemStyle(),u.ensureState("progress").style=h.getItemStyle(),rs(u),a=fa(u);s.get("tooltip")?(a.dataIndex=t.value,a.dataModel=i):a.dataIndex=a.dataModel=null,o._tickSymbols.push(u)}))},AH.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 pa({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:Object(l.c)(r._changeTimeline,r,a),silent:!1,style:Ds(u,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});h.ensureState("emphasis").style=Ds(c),h.ensureState("progress").style=Ds(s),e.add(h),rs(h),DH(h).dataIndex=a,r._tickLabels.push(h)})))},AH.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=Rn(Object(l.P)(i.get(["controlStyle",n+"BtnSize"]),o),o),(n=((t,e,n,i)=>{var o=i.style;t=Vf(t.get(["controlStyle",e]),i||{},new wt(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),rs(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)},AH.prototype._renderCurrentPointer=function(t,e,n,i){var o=i.getData(),r=i.getCurrentIndex(),a=(o=o.getItemModel(r).getModel("checkpointStyle"),this);this._currentPointer=LH(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),PH(t,a._progressLine,r,n,i,!0)},onUpdate:function(t){PH(t,a._progressLine,r,n,i)}})},AH.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},AH.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},AH.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},AH.prototype._pointerChangeTimeline=function(t,e){t=this._toAxisCoord(t)[0];var n=ai(this._axis.getExtent().slice());(t=t>n[1]?n[1]:t)<n[0]&&(t=n[0]),this._currentPointer.x=t,this._currentPointer.markRedraw(),n=this._progressLine,n&&(n.shape.x2=t,n.dirty()),n=this._findNearestTick(t),t=this.model;(e||n!==t.getCurrentIndex()&&t.get("realtime"))&&this._changeTimeline(n)},AH.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")))},AH.prototype._toAxisCoord=function(t){return Pf(t,this._mainGroup.getLocalTransform(),!0)},AH.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},AH.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},AH.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})},AH.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",DH(n[i]).dataIndex<=t)},AH.type="timeline.slider";var jH=AH;function RH(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),NH(t),EH(t,"controlPosition")&&(EH(n=t.controlStyle||(t.controlStyle={}),"position")||(n.position=t.controlPosition),"none"!==n.position||EH(n,"show")||(n.show=!1,delete n.position),delete t.controlPosition),l.k(t.data||[],(function(t){l.A(t)&&!l.t(t)&&(!EH(t,"value")&&EH(t,"name")&&(t.value=t.name),NH(t))})))}))}function NH(t){var e=t.itemStyle||(t.itemStyle={}),n=(e=e.emphasis||(e.emphasis={}),t=t.label||{},t.normal||(t.normal={})),i={normal:1,emphasis:1};l.k(t,(function(t,e){i[e]||EH(n,e)||(n[e]=t)})),e.label&&!EH(t,"emphasis")&&(t.emphasis=e.label,delete e.label)}function EH(t,e){return t.hasOwnProperty(e)}function zH(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 VH(t){Ti(t,"label",["show"])}var BH,FH=zi();a(GH,BH=fu),GH.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},GH.prototype.isAnimationEnabled=function(){var t;return!s.a.node&&(t=this.__hostSeries,this.getShallow("animation"))&&t&&t.isAnimationEnabled()},GH.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},GH.prototype._mergeOption=function(t,e,n,i){var o=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),r=FH(t)[o];n&&n.data?(r?r._mergeOption(n,e,!0):(i&&VH(n),l.k(n.data,(function(t){t instanceof Array?(VH(t[0]),VH(t[1])):VH(t)})),r=this.createMarkerModelFromSeries(n,this,e),l.m(r,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),r.__hostSeries=t),FH(t)[o]=r):FH(t)[o]=null}),this)},GH.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.getRawValue(t);i=i.getName(t);return Jh("section",{header:this.name,blocks:[Jh("nameValue",{name:i,value:o,noName:!i,noValue:null==o})]})},GH.prototype.getData=function(){return this._data},GH.prototype.setData=function(t){this._data=t},GH.prototype.getDataParams=function(t,e){return t=$c.prototype.getDataParams.call(this,t,e),e=this.__hostSeries,e&&(t.seriesId=e.id,t.seriesName=e.name,t.seriesType=e.subType),t},GH.getMarkerModelFromSeries=function(t,e){return FH(t)[e]},GH.type="marker",GH.dependencies=["series","grid","polar","geo"],e=GH;function GH(){var t=null!==BH&&BH.apply(this,arguments)||this;return t.type=GH.type,t.createdBySelf=!1,t}l.K(e,$c.prototype);var HH,WH=e;function YH(){var t=null!==HH&&HH.apply(this,arguments)||this;return t.type=YH.type,t}a(YH,HH=WH),YH.prototype.createMarkerModelFromSeries=function(t,e,n){return new YH(t,e,n)},YH.type="markPoint",YH.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}};var XH=YH;function UH(t){return!isNaN(parseFloat(t.x))||!isNaN(parseFloat(t.y))}function ZH(t,e,n,i,o,r){var a=[],s=T_(e,i)?e.getCalculationInfo("stackResultDimension"):i;t=tW(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=si(e.get(i,t));return 0<=(n=Math.min(n,20))&&(a[r]=+a[r].toFixed(n)),[a,o]}var qH={min:Object(l.h)(ZH,"min"),max:Object(l.h)(ZH,"max"),average:Object(l.h)(ZH,"average"),median:Object(l.h)(ZH,"median")};function KH(t,e){if(e){var n,i=t.getData(),o=t.coordinateSystem,r=o&&o.dimensions;if(n=e,(isNaN(parseFloat(n.x))||isNaN(parseFloat(n.y)))&&!Object(l.t)(e.coord)&&Object(l.t)(r)&&(n=QH(e,i,o,t),(e=Object(l.d)(e)).type&&qH[e.type]&&n.baseAxis&&n.valueAxis?(o=Object(l.r)(r,n.baseAxis.dim),t=Object(l.r)(r,n.valueAxis.dim),n=qH[e.type](i,n.baseDataDim,n.valueDataDim,o,t),e.coord=n[0],e.value=n[1]):e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]),null!=e.coord&&Object(l.t)(r))for(var a=e.coord,s=0;s<2;s++)qH[a[s]]&&(a[s]=tW(i,i.mapDimension(r[s]),a[s]));else e.coord=[];return e}}function QH(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(((t,e)=>(t=t.getData().getDimensionInfo(e))&&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 $H(t,e){return!(t&&t.containData&&e.coord&&!UH(e))||t.containData(e.coord)}function JH(t,e){return t?function(t,n,i,o){return ph(o<2?t.coord&&t.coord[o]:t.value,e[o])}:function(t,n,i,o){return ph(t.value,e[o])}}function tW(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 eW,nW=zi();function iW(){var t=null!==eW&&eW.apply(this,arguments)||this;return t.type=iW.type,t}a(iW,eW=Od),iW.prototype.init=function(){this.markerGroupMap=Object(l.f)()},iW.prototype.render=function(t,e,n){var i=this,o=this.markerGroupMap;o.each((function(t){nW(t).keep=!1})),e.eachSeries((function(t){var o=WH.getMarkerModelFromSeries(t,i.type);o&&i.renderSeries(t,o,e,n)})),o.each((function(t){nW(t).keep||i.group.remove(t.group)}))},iW.prototype.markKeep=function(t){nW(t).keep=!0},iW.prototype.toggleBlurSeries=function(t,e){var n=this;Object(l.k)(t,(function(t){t=WH.getMarkerModelFromSeries(t,n.type),t&&t.getData().eachItemGraphicEl((function(t){t&&(e?qa:Ka)(t)}))}))},iW.type="marker";var oW;Hg=iW;function rW(t,e,n){var i=e.coordinateSystem;t.each((function(o){var r,a,s,l=t.getItemModel(o),u=oi(l.get("x"),n.getWidth());l=oi(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 aW(){var t=null!==oW&&oW.apply(this,arguments)||this;return t.type=aW.type,t}a(aW,oW=Hg),aW.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=WH.getMarkerModelFromSeries(t,"markPoint");e&&(rW(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},aW.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 H_),((t,e,n)=>{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 i,o=new b_(i,n);n=Object(l.H)(n.get("data"),Object(l.h)(KH,e));return t&&(n=Object(l.n)(n,Object(l.h)($H,t))),t=JH(!!t,i),o.initData(n,null,t),o})(o,t,e));e.setData(u),rW(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),d=e.getDataParams(t),Object(l.w)(i)&&(i=i(h,d)),Object(l.w)(o)&&(o=o(h,d)),Object(l.w)(r)&&(r=r(h,d)),Object(l.w)(s))&&(s=s(h,d)),n.getModel("itemStyle").getItemStyle()),d=Rg(a,"color");h.fill||(h.fill=d),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){fa(t).dataModel=e}))})),this.markKeep(s),s.group.silent=e.get("silent")||t.get("silent")},aW.type="markPoint";var sW,lW=aW;function uW(){var t=null!==sW&&sW.apply(this,arguments)||this;return t.type=uW.type,t}function cW(t,e,n,i){var o,r,a,s,u=t.getData();return(e=[KH(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=QH(i,u,e,t)).valueAxis,tW(u,C_(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]),KH(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(uW,sW=WH),uW.prototype.createMarkerModelFromSeries=function(t,e,n){return new uW(t,e,n)},uW.type="markLine",uW.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 hW,dW=uW,pW=zi();function fW(t){return!isNaN(t)&&!isFinite(t)}function gW(t,e,n,i){var o=1-t,r=i.dimensions[t];return fW(e[o])&&fW(n[o])&&e[t]===n[t]&&i.getAxis(r).containData(e[t])}function yW(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(gW(1,n,i,t)||gW(0,n,i,t)))return!0}return $H(t,e[0])&&$H(t,e[1])}function mW(t,e,n,i,o){var r,a,s=i.coordinateSystem,l=t.getItemModel(e),u=oi(l.get("x"),o.getWidth());l=oi(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])),pb(s,"cartesian2d")&&(o=s.getAxis("x"),i=s.getAxis("y"),a=s.dimensions,fW(t.get(a[0],e))?r[0]=o.toGlobalCoord(o.getExtent()[n?0:1]):fW(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 vW(){var t=null!==hW&&hW.apply(this,arguments)||this;return t.type=vW.type,t}a(vW,hW=Hg),vW.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e,i,o,r=WH.getMarkerModelFromSeries(t,"markLine");r&&(e=r.getData(),i=pW(r).from,o=pW(r).to,i.each((function(e){mW(i,e,!0,t,n),mW(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)},vW.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 tA),r=(this.group.add(s.group),((t,e,n)=>{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 i,o=new b_(i,n),r=new b_(i,n),a=new b_([],n);n=Object(l.H)(n.get("data"),Object(l.h)(cW,e,t,n));return t&&(n=Object(l.n)(n,Object(l.h)(yW,t))),t=JH(!!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,d=(pW(e).from=u,pW(e).to=c,e.setData(h),e.get("symbol")),p=e.get("symbolSize"),f=e.get("symbolRotate"),g=e.get("symbolOffset");function y(e,n,o){var r=e.getItemModel(n),s=(mW(e,n,o,t,i),r.getModel("itemStyle").getItemStyle());null==s.fill&&(s.fill=Rg(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"),p[o?0:1]),symbol:Object(l.P)(r.get("symbol",!0),d[o?0:1]),style:s})}Object(l.t)(d)||(d=[d,d]),Object(l.t)(p)||(p=[p,p]),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){fa(t).dataModel=e,t.traverse((function(t){fa(t).dataModel=e}))})),this.markKeep(s),s.group.silent=e.get("silent")||t.get("silent")},vW.type="markLine";var xW,_W=vW;function bW(){var t=null!==xW&&xW.apply(this,arguments)||this;return t.type=bW.type,t}function wW(t,e,n,i){var o,r=i[0];i=i[1];if(r&&i)return r=KH(t,r),t=KH(t,i),i=r.coord,o=t.coord,i[0]=Object(l.O)(i[0],-1/0),i[1]=Object(l.O)(i[1],-1/0),o[0]=Object(l.O)(o[0],1/0),o[1]=Object(l.O)(o[1],1/0),(i=Object(l.J)([{},r,t])).coord=[r.coord,t.coord],i.x0=r.x,i.y0=r.y,i.x1=t.x,i.y1=t.y,i}a(bW,xW=WH),bW.prototype.createMarkerModelFromSeries=function(t,e,n){return new bW(t,e,n)},bW.type="markArea",bW.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}};var SW=bW,MW=zi();function IW(t){return!isNaN(t)&&!isFinite(t)}function OW(t,e,n){return t=1-t,IW(e[t])&&IW(n[t])}function TW(t,e){var n,i,o,r=e.coord[0],a=e.coord[1],s={coord:r,x:e.x0,y:e.y0};e={coord:a,x:e.x1,y:e.y1};return pb(t,"cartesian2d")?!((!r||!a||!OW(1,r,a)&&!OW(0,r,a))&&(i=s,o=e,n=t)&&n.containZone&&i.coord&&o.coord&&!UH(i)&&!UH(o))||n.containZone(i.coord,o.coord):$H(t,s)||$H(t,e)}function CW(t,e,n,i,o){var r,a,s,l,u,c,h=i.coordinateSystem,d=t.getItemModel(e),p=oi(d.get(n[0]),o.getWidth());d=oi(d.get(n[1]),o.getHeight());return isNaN(p)||isNaN(d)?(c=i.getMarkerPosition?(o=t.getValues(["x0","y0"],e),s=t.getValues(["x1","y1"],e),a=h.clampData(o),c=h.clampData(s),r=[],"x0"===n[0]?r[0]=(a[0]>c[0]?s:o)[0]:r[0]=(a[0]>c[0]?o:s)[0],r[1]=("y0"===n[1]?a[1]>c[1]?s:o:a[1]>c[1]?o:s)[1],i.getMarkerPosition(r,n,!0)):(a=[l=t.get(n[0],e),u=t.get(n[1],e)],h.clampData&&h.clampData(a,a),h.dataToPoint(a,!0)),pb(h,"cartesian2d")&&(o=h.getAxis("x"),s=h.getAxis("y"),l=t.get(n[0],e),u=t.get(n[1],e),IW(l)?c[0]=o.toGlobalCoord(o.getExtent()["x0"===n[0]?0:1]):IW(u)&&(c[1]=s.toGlobalCoord(s.getExtent()["y0"===n[1]?0:1]))),isNaN(p)||(c[0]=p),isNaN(d)||(c[1]=d)):c=[p,d],c}var kW,DW=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];function AW(){var t=null!==kW&&kW.apply(this,arguments)||this;return t.type=AW.type,t}a(AW,kW=Hg),AW.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e,i=WH.getMarkerModelFromSeries(t,"markArea");i&&(e=i.getData()).each((function(i){var o=Object(l.H)(DW,(function(o){return CW(e,i,o,t,n)}));e.setItemLayout(i,o),e.getItemGraphicEl(i).setShape("points",o)}))}),this)},AW.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 qn}),c=(this.group.add(u.group),this.markKeep(u),((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 b_(o,n)):new b_(o=[{name:"value",type:"float"}],n),n=Object(l.H)(n.get("data"),Object(l.h)(wW,e,t,n)),t&&(n=Object(l.n)(n,Object(l.h)(TW,t))),t=t?function(t,e,n,i){return ph(t.coord[Math.floor(i/2)][i%2],o[i])}:function(t,e,n,i){return ph(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)(DW,(function(n){return CW(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))],ai(r),ai(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=Rg(a,"color");r.fill||(r.fill=h,Object(l.C)(r.fill)&&(r.fill=Oe.f(r.fill,.4))),r.stroke||(r.stroke=h),c.setItemVisual(e,"style",r)})),c.diff(MW(u).data).add((function(t){var e=c.getItemLayout(t);e.allClipped||(e=new Dp({shape:{points:e.points}}),c.setItemGraphicEl(t,e),u.group.add(e))})).update((function(t,n){n=MW(u).data.getItemGraphicEl(n);var i=c.getItemLayout(t);i.allClipped?n&&u.group.remove(n):(n?vs(n,{shape:{points:i.points}},e,t):n=new Dp({shape:{points:i.points}}),c.setItemGraphicEl(t,n),u.group.add(n))})).remove((function(t){t=MW(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")),Cs(t,ks(i),{labelFetcher:e,labelDataIndex:n,defaultText:c.getName(n)||"",inheritColor:Object(l.C)(o.fill)?Oe.f(o.fill,1):"#000"}),cs(t,i),as(t,null,null,i.get(["emphasis","disabled"])),fa(t).dataModel=e})),MW(u).data=c,u.group.silent=e.get("silent")||t.get("silent")},AW.type="markArea";var LW,PW=AW;function jW(){var t=null!==LW&&LW.apply(this,arguments)||this;return t.type=jW.type,t.layoutMode={type:"box",ignoreSize:!0},t}a(jW,LW=fu),jW.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},jW.prototype.mergeOption=function(t,e){LW.prototype.mergeOption.call(this,t,e),this._updateSelector(t)},jW.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))}))},jW.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"))}},jW.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&&ji(i)&&e.push(i.name)})),this._availableNames=n,this.get("data")||e),o=l.f();i=l.H(i,(function(t){return(l.C(t)||l.z(t))&&(t={name:t}),o.get(t.name)?null:(o.set(t.name,!0),new el(t,this,this.ecModel))}),this);this._data=l.n(i,(function(t){return!!t}))},jW.prototype.getData=function(){return this._data},jW.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},jW.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},jW.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},jW.prototype.allSelect=function(){var t=this._data,e=this.option.selected;l.k(t,(function(t){e[t.get("name",!0)]=!0}))},jW.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]}))},jW.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&0<=l.r(this._availableNames,t)},jW.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},jW.type="legend.plain",jW.dependencies=["series"],jW.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 RW,NW=jW,EW=l.h,zW=l.k,VW=qn;function BW(){var t=null!==RW&&RW.apply(this,arguments)||this;return t.type=BW.type,t.newlineDisabled=!1,t}function FW(t,e,n,i){WW(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),HW(t,e,n,i)}function GW(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 HW(t,e,n,i){GW(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function WW(t,e,n,i){GW(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}a(BW,RW=Od),BW.prototype.init=function(){this.group.add(this._contentGroup=new VW),this.group.add(this._selectorGroup=new VW),this._isFirstRender=!0},BW.prototype.getContentGroup=function(){return this._contentGroup},BW.prototype.getSelectorGroup=function(){return this._selectorGroup},BW.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=tu(e=t.getBoxLayoutParams(),r={width:n.getWidth(),height:n.getHeight()},n=t.get("padding")),a=this.layoutInner(t,a,s,u,i,o),s=tu(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=mF(a,t)))},BW.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},BW.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)})),zW(e.getData(),(function(o,r){var a,d,p,f,g=o.get("name");this.newlineDisabled||""!==g&&"\n"!==g?(a=n.getSeriesByName(g)[0],u.get(g)||(a?(f=(p=a.getData()).getVisual("legendLineStyle")||{},d=p.getVisual("legendIcon"),p=p.getVisual("style"),(f=this._createItem(a,g,r,o,e,t,f,p,d,c,i)).on("click",EW(FW,g,null,i,h)).on("mouseover",EW(HW,a.name,null,i,h)).on("mouseout",EW(WW,a.name,null,i,h)),n.ssr&&f.eachChild((function(t){t=fa(t),t.seriesIndex=a.seriesIndex,t.dataIndex=r,t.ssrType="legend"})),u.set(g,!0)):n.eachRawSeries((function(a){var s,d,p;u.get(g)||a.legendVisualProvider&&(d=a.legendVisualProvider).containName(g)&&(p=d.indexOfName(g),s=d.getItemVisual(p,"style"),d=d.getItemVisual(p,"legendIcon"),(p=Object(Oe.h)(s.fill))&&0===p[3]&&(p[3]=.2,s=l.m(l.m({},s),{fill:Object(Oe.i)(p,"rgba")})),(p=this._createItem(a,g,r,o,e,t,{},s,d,c,i)).on("click",EW(FW,null,g,i,h)).on("mouseover",EW(HW,null,g,i,h)).on("mouseout",EW(WW,null,g,i,h)),n.ssr&&p.eachChild((function(t){t=fa(t),t.seriesIndex=a.seriesIndex,t.dataIndex=r,t.ssrType="legend"})),u.set(g,!0))}),this))):((p=new VW).newline=!0,s.add(p))}),this),o&&this._createSelector(o,e,i,r,a)},BW.prototype._createSelector=function(t,e,n,i,o){var r=this.getSelectorGroup();zW(t,(function(t){var i=t.type,o=new pa({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect",legendId:e.id})}});r.add(o),Cs(o,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),rs(o)}))},BW.prototype._createItem=function(t,e,n,i,o,r,a,s,u,c,h){var d=t.visualDrawType,p=o.get("itemWidth"),f=o.get("itemHeight"),g=o.isSelected(e),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),v=i.get("icon");a=((t,e,n,i,o,r,a)=>{function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=0<e.lineWidth?2:0),zW(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var l=(u=e.getModel("itemStyle")).getItemStyle(),u=(t=0===t.lastIndexOf("empty",0)?"fill":"stroke",u.getShallow("decal"));return l.decal=u&&"inherit"!==u?Cy(u,a):i.decal,"inherit"===l.fill&&(l.fill=i[o]),"inherit"===l.stroke&&(l.stroke=i[t]),"inherit"===l.opacity&&(l.opacity=("fill"===o?i:n).opacity),s(l,i),u=e.getModel("lineStyle"),s(a=u.getLineStyle(),n),"auto"===l.fill&&(l.fill=i.fill),"auto"===l.stroke&&(l.stroke=i.fill),"auto"===a.stroke&&(a.stroke=i.fill),r||(o=e.get("inactiveBorderWidth"),n=l[t],l.lineWidth="auto"===o?0<i.lineWidth&&n?2:0:l.lineWidth,l.fill=e.get("inactiveColor"),l.stroke=e.get("inactiveBorderColor"),a.stroke=u.get("inactiveColor"),a.lineWidth=u.get("inactiveWidth")),{itemStyle:l,lineStyle:a}})(u=v||u||"roundRect",i,a,s,d,g,h),s=new VW,d=i.getModel("textStyle"),!l.w(t.getLegendIcon)||v&&"inherit"!==v?(h="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===y?t.getData().getVisual("symbolRotate"):y:0,s.add((t=>{var e=t.icon||"roundRect",n=Qg(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:f,icon:u,iconRotate:h,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:m}))):s.add(t.getLegendIcon({itemWidth:p,itemHeight:f,icon:u,iconRotate:y,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:m})),v="left"===r?p+5:-5,h=r,t=o.get("formatter"),u=e,l.C(t)&&t?u=t.replace("{name}",null!=e?e:""):l.w(t)&&(u=t(e)),y=g?d.getTextColor():i.get("inactiveColor"),s.add(new pa({style:Ds(d,{text:u,x:v,y:f/2,fill:y,align:h,verticalAlign:"middle"},{inheritColor:y})})),a=new qr({shape:s.getBoundingRect(),style:{fill:"transparent"}}),m=i.getModel("tooltip");return m.get("show")&&Gf({el:a,componentModel:o,itemName:e,itemTooltipOption:m.option}),s.add(a),s.eachChild((function(t){t.silent=!0})),a.silent=!c,this.getContentGroup().add(s),rs(s),s.__legendDataIndex=n,s},BW.prototype.layoutInner=function(t,e,n,i,o,r){var a,s,l,u,c,h=this.getContentGroup(),d=this.getSelectorGroup(),p=(n=(Jl(t.get("orient"),h,t.get("itemGap"),n.width,n.height),h.getBoundingRect()),[-n.x,-n.y]);return d.markRedraw(),h.markRedraw(),o?(Jl("horizontal",d,t.get("selectorItemGap",!0)),a=[-(o=d.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:p[t]+=o[l]+s,a[1-t]+=n[u]/2-o[u]/2,d.x=a[0],d.y=a[1],h.x=p[0],h.y=p[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=p[0],h.y=p[1],this.group.getBoundingRect())},BW.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},BW.type="legend.plain";var YW,XW=BW;function UW(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 ZW(t,e,n){var i="allSelect"===t||"inverseSelect"===t,o={},r=[],a=(n.eachComponent({mainType:"legend",query:e},(function(n){i?n[t]():n[t](e.name),qW(n,o),r.push(n.componentIndex)})),{});return n.eachComponent("legend",(function(t){Object(l.k)(o,(function(e,n){t[e?"select":"unSelect"](n)})),qW(t,a)})),i?{selected:a,legendIndex:r}:{name:e.name,selected:a}}function qW(t,e){var n=e||{};Object(l.k)(t.getData(),(function(e){var i;e=e.get("name");"\n"!==e&&""!==e&&(i=t.isSelected(e),Object(l.q)(n,e)?n[e]=n[e]&&i:n[e]=i)}))}function KW(t){t.registerComponentModel(NW),t.registerComponentView(XW),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,UW),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),(t=t).registerAction("legendToggleSelect","legendselectchanged",Object(l.h)(ZW,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Object(l.h)(ZW,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Object(l.h)(ZW,"inverseSelect")),t.registerAction("legendSelect","legendselected",Object(l.h)(ZW,"select")),t.registerAction("legendUnSelect","legendunselected",Object(l.h)(ZW,"unSelect"))}function QW(){var t=null!==YW&&YW.apply(this,arguments)||this;return t.type=QW.type,t}function $W(t,e,n){var i=[1,1];i[t.getOrient().index]=0,iu(e,n,{type:"box",ignoreSize:!!i})}a(QW,YW=NW),QW.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},QW.prototype.init=function(t,e,n){var i=ou(t);YW.prototype.init.call(this,t,e,n),$W(this,t,i)},QW.prototype.mergeOption=function(t,e){YW.prototype.mergeOption.call(this,t,e),$W(this,this.option,t)},QW.type="legend.scroll",QW.defaultOption=ol(NW.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 JW,tY=QW,eY=qn,nY=["width","height"],iY=["x","y"];function oY(){var t=null!==JW&&JW.apply(this,arguments)||this;return t.type=oY.type,t.newlineDisabled=!0,t._currentIndex=0,t}a(oY,JW=XW),oY.prototype.init=function(){JW.prototype.init.call(this),this.group.add(this._containerGroup=new eY),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new eY)},oY.prototype.resetInner=function(){JW.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},oY.prototype.renderInner=function(t,e,n,i,o,r,a){var s=this,u=(JW.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=Vf(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 pa({name:"pageText",style:{text:"xx/xx",fill:n.getTextColor(),font:n.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1)},oY.prototype.layoutInner=function(t,e,n,i,o,r){var a=this.getSelectorGroup(),s=t.getOrient().index,u=nY[s],c=iY[s],h=nY[1-s],d=iY[1-s],p=(o&&Jl("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]-p),n=this._layoutContentAndController(t,i,y,s,u,h,d,c);return o&&("end"===r?g[s]+=n[u]+p:(t=f[u]+p,g[s]-=t,n[c]-=t),n[u]+=f[u]+p,g[1-s]+=n[d]+n[h]/2-f[h]/2,n[h]=Math.max(n[h],f[h]),n[d]=Math.min(n[d],f[d]+g[1-s]),a.x=g[0],a.y=g[1],a.markRedraw()),n},oY.prototype._layoutContentAndController=function(t,e,n,i,o,r,a,s){var u=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup,d=(Jl(t.get("orient"),u,t.get("itemGap"),i?n.width:null,i?null:n.height),Jl("horizontal",h,t.get("pageButtonItemGap",!0)),u.getBoundingRect()),p=h.getBoundingRect(),f=this._showController=d[o]>n[o],g=[-d.x,-d.y],y=(e=(e||(g[i]=u[s]),[0,0]),s=[-p.x,-p.y],l.P(t.get("pageButtonGap",!0),t.get("itemGap",!0)));f&&("end"===t.get("pageButtonPosition",!0)?s[i]+=n[o]-p[o]:e[i]+=p[o]+y),s[1-i]+=d[r]/2-p[r]/2,u.setPosition(g),c.setPosition(e),h.setPosition(s),g={x:0,y:0},g[o]=(f?n:d)[o],g[r]=Math.max(d[r],p[r]),g[a]=Math.min(0,p[a]+s[1-i]),c.__rectSize=n[o],f?((e={x:0,y:0})[o]=Math.max(n[o]-p[o]-y,0),e[r]=g[r],c.setClipPath(new qr({shape:e})),c.__rectSize=e[o]):h.eachChild((function(t){t.attr({invisible:!0,silent:!0})})),d=this._getPageInfo(t);return null!=d.pageIndex&&vs(u,{x:d.contentPosition[0],y:d.contentPosition[1]},f?t:null),this._updatePageInfoView(t,d),g},oY.prototype._pageGo=function(t,e,n){t=this._getPageInfo(e)[t],null!=t&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},oY.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}))},oY.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=(t=t.getOrient().index,nY[t]),r=iY[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){n=g(s),c.contentPosition[t]=-n.s;for(var h=e+1,d=n,p=n,f=null;h<=l;++h)(!(f=g(a[h]))&&p.e>d.s+i||f&&!y(f,d.s))&&(d=p.i>d.i?p:f)&&(null==c.pageNextDataIndex&&(c.pageNextDataIndex=d.i),++c.pageCount),p=f;for(h=e-1,d=n,p=n,f=null;-1<=h;--h)(f=g(a[h]))&&y(p,f.s)||!(d.i<p.i)||(p=d,null==c.pagePrevDataIndex&&(c.pagePrevDataIndex=d.i),++c.pageCount,++c.pageIndex),d=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}},oY.prototype._findTargetItemIndex=function(t){var e,n;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},oY.type="legend.scroll";var rY,aY=oY;function sY(t){Gm(KW),t.registerComponentModel(tY),t.registerComponentView(aY),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 lY(){var t=null!==rY&&rY.apply(this,arguments)||this;return t.type=lY.type,t}a(lY,rY=Wg),lY.type="dataZoom.inside",lY.defaultOption=ol(Wg.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0});var uY,cY=lY,hY=zi();function dY(t,e){e&&(t.removeKey(e.model.uid),t=e.controller)&&t.dispose()}function pY(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function fY(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function gY(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=hY(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=FB(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)(fY,s),dispatchAction:Object(l.h)(pY,a),dataZoomInfoMap:null,controller:null},r=o.controller=new sO(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;(e=l&&null!=(n=l.keys()[0])?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),og(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")):dY(i,t)}))}))}function yY(){var t=null!==uY&&uY.apply(this,arguments)||this;return t.type="dataZoom.inside",t}a(yY,uY=Yg),yY.prototype.render=function(t,e,n){var i,o;uY.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),n=n,i=t,o={pan:Object(l.c)(mY.pan,this),zoom:Object(l.c)(mY.zoom,this),scrollMove:Object(l.c)(mY.scrollMove,this)},hY(n).coordSysRecordMap.each((function(t){t=t.dataZoomInfoMap.get(i.uid),t&&(t.getRange=o)})))},yY.prototype.dispose=function(){this._clear(),uY.prototype.dispose.apply(this,arguments)},yY.prototype._clear=function(){for(var t=this.api,e=this.dataZoomModel,n=hY(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||dY(n,a))}this.range=null},yY.type="dataZoom.inside";var mY={zoom:function(t,e,n,i){var o=this.range,r=o.slice(),a=t.axisModels[0];if(a)return a=(0<(e=_Y[e](null,[i.originX,i.originY],a,n,t)).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,vL(0,r,[0,100],0,(t=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan()).minSpan,t.maxSpan),this.range=r,o[0]!==r[0]||o[1]!==r[1]?r:void 0},pan:vY((function(t,e,n,i,o,r){return i=_Y[i]([r.oldX,r.oldY],[r.newX,r.newY],e,o,n),i.signal*(t[1]-t[0])*i.pixel/i.pixelLength})),scrollMove:vY((function(t,e,n,i,o,r){return _Y[i]([0,0],[r.scrollDelta,r.scrollDelta],e,o,n).signal*(t[1]-t[0])*r.scrollDelta}))};function vY(t){return function(e,n,i,o){var r=this.range,a=r.slice(),s=e.axisModels[0];if(s)return vL(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 xY,_Y={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}},bY=yY;function wY(t){sF(t),t.registerComponentModel(cY),t.registerComponentView(bY),gY(t)}function SY(){var t=null!==xY&&xY.apply(this,arguments)||this;return t.type=SY.type,t}a(SY,xY=Wg),SY.type="dataZoom.slider",SY.layoutMode="box",SY.defaultOption=ol(Wg.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:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}});var MY,IY=SY,OY=qr,TY="horizontal",CY="vertical",kY=["line","bar","candlestick","scatter"],DY={easing:"cubicOut",duration:100,delay:0};function AY(){var t=null!==MY&&MY.apply(this,arguments)||this;return t.type=AY.type,t._displayables={},t}function LY(t){return"vertical"===t?"ns-resize":"ew-resize"}a(AY,MY=Yg),AY.prototype.init=function(t,e){this.api=e,this._onBrush=Object(l.c)(this._onBrush,this),this._onBrushEnd=Object(l.c)(this._onBrushEnd,this)},AY.prototype.render=function(t,e,n,i){MY.prototype.render.apply(this,arguments),og(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1===t.get("show")?this.group.removeAll():t.noTarget()?(this._clear(),this.group.removeAll()):(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView())},AY.prototype.dispose=function(){this._clear(),MY.prototype.dispose.apply(this,arguments)},AY.prototype._clear=function(){rg(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},AY.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 qn);this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},AY.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===TY?{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=ou(t.option);Object(l.k)(["right","top","width","height"],(function(t){"ph"===r[t]&&(r[t]=o[t])})),n=tu(r,e);this._location={x:n.x,y:n.y},this._size=[n.width,n.height],this._orient===CY&&this._size.reverse()},AY.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!==TY||i?n===TY&&i?{scaleY:r?1:-1,scaleX:-1}:n!==CY||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()},AY.prototype._getViewExtent=function(){return[0,this._size[0]]},AY.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)},AY.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(),r=i.getShadowDim&&i.getShadowDim();r=r&&o.getDimensionInfo(r)?i.getShadowDim():t.otherDim;if(null!=r)for(var a,s,l,u,c,h,d,p,f,g,y=this._shadowPolygonPts,m=this._shadowPolylinePts,v=(o===this._shadowData&&r===this._shadowDim&&e[0]===n[0]&&e[1]===n[1]||(i=.3*((a=o.getDataExtent(r))[1]-a[0]),a=[a[0]-i,a[1]+i],s=[0,e[1]],t=[0,e[0]],l=[[e[0],0],[0,0]],u=[],c=t[1]/(o.count()-1),h=0,d=Math.round(o.count()/e[0]),o.each([r],(function(t,e){var n;0<d&&e%d?h+=c:(t=(n=null==t||isNaN(t)||""===t)?0:ii(t,a,s,!0),n&&!p&&e?(l.push([l[l.length-1][0],0]),u.push([u[u.length-1][0],0])):!n&&p&&(l.push([h,0]),u.push([h,0])),l.push([h,t]),u.push([h,t]),h+=c,p=n)})),y=this._shadowPolygonPts=l,m=this._shadowPolylinePts=u),this._shadowData=o,this._shadowDim=r,this._shadowSize=[e[0],e[1]],this.dataZoomModel),x=0;x<3;x++){f=1===x,_=g=void 0,f=v.getModel(f?"selectedDataBackground":"dataBackground"),g=new qn,_=new Dp({shape:{points:y},segmentIgnoreThreshold:1,style:f.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),f=new jp({shape:{points:m},segmentIgnoreThreshold:1,style:f.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),g.add(_),g.add(f);var _=g;this._displayables.sliderGroup.add(_),this._displayables.dataShadowSegs.push(_)}}},AY.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)(kY,n.get("type"))<0||(a=e.getComponent(VB(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},AY.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,d=u.get("brushSelect"),p=i.filler=new OY({silent:d,style:{fill:u.get("fillerColor")},textConfig:{position:"inside"}});a.add(p),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=Qg(e=!Zg[e]&&e.indexOf("path://")<0&&e.indexOf("image://")<0?"path://"+e:e,-1,0,2,2,null,!0),e.attr({cursor:LY(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=oi(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(),rs(e),s=u.get("handleColor"),null!=s&&(e.style.fill=s),a.add(o[t]=e),i=u.getModel("textStyle"),s=(u.get("handleLabel")||{}).show||!1;n.add(r[t]=new pa({silent:!0,invisible:!s,style:Ds(i,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:i.getTextColor(),font:i.getFont()}),z2:10}))}),this),h=p;d&&(p=oi(u.get("moveHandleSize"),s[1]),t=i.moveHandle=new qr({style:u.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),d=.8*p,(d=i.moveHandleIcon=Qg(u.get("moveHandleIcon"),-d/2,-d/2,d,d,"#fff",!0)).silent=!0,d.y=s[1]+p/2-.5,t.ensureState("emphasis").style=u.getModel(["emphasis","moveHandleStyle"]).getItemStyle(),e=Math.min(s[1]/2,Math.max(p,10)),(h=i.moveZone=new qr({invisible:!0,shape:{y:s[1]-e,height:p+e}})).on("mouseover",(function(){c.enterEmphasis(t)})).on("mouseout",(function(){c.leaveEmphasis(t)})),a.add(t),a.add(d),a.add(h)),h.attr({draggable:!0,cursor:LY(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)})},AY.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[ii(t[0],[0,100],e,!0),ii(t[1],[0,100],e,!0)]},AY.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),r=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];vL(e,i,o,n.get("zoomLock")?"all":t,null!=r.minSpan?ii(r.minSpan,a,o,!0):null,null!=r.maxSpan?ii(r.maxSpan,a,o,!0):null),e=this._range,n=this._range=ai([ii(i[0],o,a,!0),ii(i[1],o,a,!0)]);return!e||e[0]!==n[0]||e[1]!==n[1]},AY.prototype._updateView=function(t){for(var e=this._displayables,n=this._handleEnds,i=ai(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 qr,c.setClipPath(h)),h.setShape({x:s[u],y:0,width:s[u+1]-s[u],height:o[1]})}this._updateDataInfo(t)},AY.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)]),ai(this._handleEnds.slice()));function u(t){var e=Lf(o.handles[t].parent,this.group),n=jf(0===t?"right":"left",e),i=this._handleWidth/2+5;i=Pf([l[t]+(0===t?-i:i),this._size[1]/2],e);r[t].setStyle({x:i[0],y:i[1],verticalAlign:a===TY?"middle":n,align:a===TY?n:"center",text:s[t]})}u.call(this,0),u.call(this,1)},AY.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},AY.prototype._showDataInfo=function(t){var e=(this.dataZoomModel.get("handleLabel")||{}).show||!1,n=this.dataZoomModel.getModel(["emphasis","handleLabel"]).get("show")||!1;t=t||this._dragging?n:e,n=this._displayables,e=n.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t),n.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},AY.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,Q(i.event),i=Pf([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)},AY.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),this.dataZoomModel.get("realtime")||this._dispatchZoomAction(!1)},AY.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))},AY.prototype._onBrushStart=function(t){var e=t.offsetX;this._brushStart=new dt(e,t.offsetY),this._brushing=!0,this._brushStartTime=+new Date},AY.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=ai([ii(e.x,n,i=[0,100],!0),ii(e.x+e.width,n,i,!0)]),this._handleEnds=[e.x,e.x+e.width],this._updateView(),this._dispatchZoomAction(!1)))},AY.prototype._onBrush=function(t){this._brushing&&(Q(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},AY.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]})},AY.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?DY:null,start:e[0],end:e[1]})},AY.prototype._findCoordRect=function(){var t,e,n=FB(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}},AY.type="dataZoom.slider";var PY=AY;function jY(t){t.registerComponentModel(IY),t.registerComponentView(PY),sF(t)}var RY,NY={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]}},EY={get:function(t,e,n){return t=l.d((NY[t]||{})[e]),n&&l.t(t)?t[t.length-1]:t}},zY=jk.mapVisual,VY=jk.eachVisual,BY=l.t,FY=l.k,GY=ai,HY=ii;function WY(){var t=null!==RY&&RY.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,RY=fu),WY.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},WY.prototype.optionUpdated=function(t,e){var n=this.option;e||GG(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=FG(this.option.controller,e,t),this.targetVisuals=FG(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=Oi(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=GY([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){BY(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]={},FY(e,(function(t,e){var n;jk.isValidType(e)&&null!=(n=EY.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";FY(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=zY(c.symbol,(function(t){return"none"===t?o:t})),a=c.symbolSize;null!=a&&(s=-1/0,VY(a,(function(t){s<t&&(s=t)})),c.symbolSize=zY(a,(function(t){return HY(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"}};Xg=WY;var YY,XY=[20,140];function UY(){var t=null!==YY&&YY.apply(this,arguments)||this;return t.type=UY.type,t}function ZY(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(UY,YY=Xg),UY.prototype.optionUpdated=function(t,e){YY.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},UY.prototype.resetItemSize=function(){YY.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;null!=t[0]&&!isNaN(t[0])||(t[0]=XY[0]),null!=t[1]&&!isNaN(t[1])||(t[1]=XY[1])},UY.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]))},UY.prototype.completeVisualOption=function(){YY.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)},UY.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},UY.prototype.getSelected=function(){var t=this.getExtent(),e=ai((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},UY.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"},UY.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},UY.prototype.getVisualMeta=function(t){var e=ZY(0,0,this.getExtent()),n=ZY(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"]}},UY.type="visualMap.continuous",UY.defaultOption=ol(Xg.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 qY,KY=UY;function QY(){var t=null!==qY&&qY.apply(this,arguments)||this;return t.type=QY.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}a(QY,qY=Od),QY.prototype.init=function(t,e){this.ecModel=t,this.api=e},QY.prototype.render=function(t,e,n,i){!1===(this.visualMapModel=t).get("show")?this.group.removeAll():this.doRender(t,e,n,i)},QY.prototype.renderBackground=function(t){var e=this.visualMapModel,n=Gl(e.get("padding")||0),i=t.getBoundingRect();t.add(new qr({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")}}))},QY.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=jk.prepareVisualTypes(u);return l.k(c,(function(i){var o=u[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",o=u.__alphaForOpacity),jk.dependsOn(i,e)&&o&&o.applyVisual(t,a,s)})),r[e]},QY.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;eu(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},QY.prototype.doRender=function(t,e,n,i){},QY.type="visualMap";Xs=QY;var $Y=[["left","right","width"],["top","bottom","height"]];function JY(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=$Y[o],a=[0,null,10],s={},l=0;l<3;l++)s[$Y[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=tu(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 tX(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 eX,nX=ii,iX=l.k,oX=Math.min,rX=Math.max;function aX(){var t=null!==eX&&eX.apply(this,arguments)||this;return t.type=aX.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}function sX(t,e,n,i){return new Dp({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){Q(t.event)},ondragend:i})}function lX(t){var e=t.get("hoverLinkOnHandle");return null==e?t.get("realtime"):e}function uX(t){return"vertical"===t?"ns-resize":"ew-resize"}a(aX,eX=Xs),aX.prototype.init=function(t,e){eX.prototype.init.call(this,t,e),this._hoverLinkFromSeriesMouseOver=l.c(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=l.c(this._hideIndicator,this)},aX.prototype.doRender=function(t,e,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},aX.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)},aX.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 pa({style:Ds(r,{x:i[0],y:i[1],verticalAlign:"horizontal"===n?"middle":o,align:"horizontal"===n?o:"center",text:e})})))},aX.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,o=this._orient,r=this._useHandle,a=JY(e,this.api,i),s=(a=n.mainGroup=this._createBarGroup(a),new qn);a.add(s),s.add(n.outOfRange=sX()),s.add(n.inRange=sX(null,r?uX(this._orient):null,l.c(this._dragHandle,this,"all",!1),l.c(this._dragHandle,this,"all",!0))),s.setClipPath(new qr({shape:{x:0,y:0,width:i[0],height:i[1],r:3}})),s=e.textStyleModel.getTextRect("国"),s=rX(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)},aX.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=Rn(t.get("handleSize"),i[0]),c=Qg(t.get("handleIcon"),-u/2,-u/2,u,u,null,!0),h=uX(this._orient);c.attr({cursor:h,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){Q(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(),hs(c,!0),e.add(c),i=this.visualMapModel.textStyleModel,t=new pa({cursor:h,draggable:!0,drift:a,onmousemove:function(t){Q(t.event)},ondragend:s,style:Ds(i,{x:0,y:0,text:""})}),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},aX.prototype._createIndicator=function(t,e,n,i,o){var r=Rn(t.get("indicatorSize"),n[0]),a=(r=Qg(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 Vr?(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 pa({silent:!0,invisible:!0,style:Ds(a,{x:0,y:0,text:""})}),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},aX.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():lX(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1))},aX.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent();t=[0,t.itemSize[1]];this._handleEnds=[nX(e[0],n,t,!0),nX(e[1],n,t,!0)]},aX.prototype._updateInterval=function(t,e){var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];vL(e=e||0,i,o,t,0),e=n.getExtent();this._dataInterval=[nX(i[0],o,e,!0),nX(i[1],o,e,!0)]},aX.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)},aX.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 nf(0,0,0,1,o),barPoints:i,handlesColor:[o[0].color,o[o.length-1].color]}},aX.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(t[1]<r)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},aX.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]]]},aX.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new qn("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})},aX.prototype._updateHandle=function(t,e){var n,i,o,r,a,s,l;this._useHandle&&(n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,r=n.handleLabels,a=i.itemSize,s=i.getExtent(),l=this._applyTransform("left",n.mainGroup),iX([0,1],(function(u){var c=o[u],h=(c.setStyle("fill",e.handlesColor[u]),c.y=t[u],nX(t[u],[0,a[1]],s,!0));h=this.getControllerVisual(h,"symbolSize"),c.scaleX=c.scaleY=h/a[0],c.x=a[0]-h/2,c=Pf(n.handleLabelPoints[u],Lf(c,this.group));"horizontal"===this._orient&&(h="left"===l||"top"===l?(a[0]-h)/2:(a[0]-h)/-2,c[1]+=h),r[u].setStyle({x:c[0],y:c[1],text:i.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this))},aX.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"),d=(t=nX(t,r,s,!0),r=a[0]-h/2,s={x:u.x,y:u.y},a=(u.y=t,u.x=r,Pf(l.indicatorLabelPoint,Lf(u,this.group))),h=l.indicatorLabel,l=(h.attr("invisible",!1),this._applyTransform("left",l.mainGroup)),"horizontal"===this._orient),p=(n=(h.setStyle({text:(n||"")+o.formatValueText(e),verticalAlign:d?l:"middle",align:d?"center":l}),{x:r,y:t,style:{fill:c}}),e={style:{x:a[0],y:a[1]}},o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator?(d={duration:100,easing:"cubicInOut",additive:!0},u.x=s.x,u.y=s.y,u.animateTo(n,d),h.animateTo(e,d)):(u.attr(n),h.attr(e)),this._firstShowIndicator=!1,this._shapes.handleLabels);if(p)for(var f=0;f<p.length;f++)this.api.enterBlur(p[f])}},aX.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]=oX(rX(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()}))},aX.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()},aX.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=Pi(t[i].seriesId,null);if(null==r)return;for(var a=Oi(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=oX(rX(a[0],t),a[1]))-(o=((t,e,n)=>{var i=6;t=t.get("hoverLinkDataSize");return t?nX(t,e,n,!0)/2:i})(r,i,a)),t+o],t=nX(t,a,i,!0),i=[nX(n[0],a,i,!0),nX(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||lX(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",tX(i[0],r)),this._dispatchHighDown("highlight",tX(i[1],r)))},aX.prototype._hoverLinkFromSeriesMouseOver=function(t){var e,n;Vg(t.target,(function(t){return t=fa(t),null!=t.dataIndex&&(e=t,1)}),!0),e&&(t=this.ecModel.getSeriesByIndex(e.seriesIndex),(n=this.visualMapModel).isTargetSeries(t))&&(n=(t=t.getData(e.dataType)).getStore().get(n.getDataDimensionIndex(t),e.dataIndex),isNaN(n)||this._showIndicator(n,n))},aX.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])},aX.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",tX(t,this.visualMapModel)),t.length=0},aX.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},aX.prototype._applyTransform=function(t,e,n,i){return e=Lf(e,i?null:this.group),(l.t(t)?Pf:jf)(t,e,n)},aX.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},aX.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},aX.type="visualMap.continuous";var cX=aX,hX={type:"selectDataRange",event:"dataRangeSelected",update:"update"},dX=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},pX=[{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=jk.prepareVisualTypes(i[t]);a[t]=e})),{progress:function(t,e){var n,s;function l(t){return jg(e,s,t)}function u(t,n){Ng(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 d=null!=r?c.get(n,s):s,p=(h=o(d),i[h]),f=a[h],g=0,y=f.length;g<y;g++){var m=f[g];p[m]&&p[m].applyVisual(d,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(fX,null,t,e))||{stops:[],outerColors:[]},0<=(e=e.getDataDimensionIndex(n)))&&(o.dimension=e,i.push(o))})),t.getData().setVisual("visualMeta",i)}}];function fX(t,e,n,i){for(var o=e.targetVisuals[i],r=jk.prepareVisualTypes(o),a={color:Rg(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 gX=l.k;function yX(t){t=t&&t.visualMap,l.t(t)||(t=t?[t]:[]),gX(t,(function(t){t&&(mX(t,"splitList")&&!mX(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList),t=t.pieces)&&l.t(t)&&gX(t,(function(t){l.A(t)&&(mX(t,"start")&&!mX(t,"min")&&(t.min=t.start),mX(t,"end"))&&!mX(t,"max")&&(t.max=t.end)}))}))}function mX(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var vX,xX=!1;function _X(t){xX||(xX=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?0<t.pieces.length:0<t.splitNumber)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(hX,dX),Object(l.k)(pX,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(yX))}function bX(t){t.registerComponentModel(KY),t.registerComponentView(cX),_X(t)}function wX(){var t=null!==vX&&vX.apply(this,arguments)||this;return t.type=wX.type,t._pieceList=[],t}a(wX,vX=Xg),wX.prototype.optionUpdated=function(t,e){vX.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode(),i=(this._pieceList=[],SX[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})))}))},wX.prototype.completeVisualOption=function(){var t=this.option,e={},n=jk.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]=EY.get(n,"inRange"===e?"active":"inactive",i)}))}),this),vX.prototype.completeVisualOption.apply(this,arguments)},wX.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))},wX.prototype.getItemSymbol=function(){return this.get("itemSymbol")},wX.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},wX.prototype.getPieceList=function(){return this._pieceList},wX.prototype._determineMode=function(){var t=this.option;return t.pieces&&0<t.pieces.length?"pieces":this.option.categories?"categories":"splitNumber"},wX.prototype.setSelected=function(t){this.option.selected=l.d(t)},wX.prototype.getValueState=function(t){return t=jk.findPieceIndex(t,this._pieceList),null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},wX.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){jk.findPieceIndex(e,n)===t&&o.push(i)}),this),e.push({seriesId:i.id,dataIndex:o})}),this),e},wX.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},wX.prototype.getVisualMeta=function(t){var e,n,i,o,r,a;if(!this.isCategory())return e=[],n=["",""],(o=(i=this)._pieceList.slice()).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})}},wX.type="visualMap.piecewise",wX.defaultOption=ol(Xg.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 SX={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]}),vi(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),MX(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],d=0;d<3&&null==o[c];d++)o[c]=e[h[d]],r[c]=a[d],u[c]=2===d;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=jk.retrieveVisuals(e),t.push(n)}),this),MX(e,t),vi(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 MX(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var IX,OX=wX;function TX(){var t=null!==IX&&IX.apply(this,arguments)||this;return t.type=TX.type,t}a(TX,IX=Xs),TX.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),h=!e.get("selectedMode");u&&this._renderEndsText(t,u[0],s,c,a),l.k(i.viewPieceList,(function(i){var u=i.piece,d=new qn;d.onclick=l.c(this._onItemClick,this,u),this._enableHoverLink(d,i.indexInModelPieceList),i=e.getRepresentValue(u);this._createItemSymbol(d,i,[0,0,s[0],s[1]],h),c&&(i=this.visualMapModel.getValueState(i),d.add(new pa({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},silent:h}))),t.add(d)}),this),u&&this._renderEndsText(t,u[1],s,c,a),Jl(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},TX.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:tX(i.findTargetDataIndices(e),i)})})},TX.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;return"vertical"===e.orient?JY(t,this.api,t.itemSize):(t=e.align)&&"auto"!==t?t:"left"},TX.prototype._renderEndsText=function(t,e,n,i,o){var r,a;e&&(r=new qn,a=this.visualMapModel.textStyleModel,r.add(new pa({style:Ds(a,{x:i?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:e})})),t.add(r))},TX.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}},TX.prototype._createItemSymbol=function(t,e,n,i){n=Qg(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")),n.silent=i,t.add(n)},TX.prototype._onItemClick=function(t){var e,n,i=this.visualMapModel,o=i.option,r=o.selectedMode;r&&(e=l.d(o.selected),n=i.getSelectedMapKey(t),"single"===r||!0===r?(e[n]=!0,l.k(e,(function(t,i){e[i]=i===n}))):e[n]=!e[n],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:e}))},TX.type="visualMap.piecewise";var CX=TX;function kX(t){t.registerComponentModel(OX),t.registerComponentView(CX),_X(t)}var DX={label:{enabled:!0},decal:{show:!1}},AX=zi(),LX={};function PX(t,e){var n,i,o,r,a,s,u,c,h=t.getModel("aria");function d(t,e){var n;return l.C(t)?(n=t,l.k(e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n):t}h.get("enabled")&&(c=l.d(DX),l.I(c.label,t.getLocaleModel().get("aria"),!1),l.I(h.option,c,!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={}),AX(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=Bu(e.ecModel,e.name,LX,t.getSeriesCount()),o=n.getVisual("decal"),n.setVisual("decal",c(o,i))):(r=e.getRawData(),a={},s=AX(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=Bu(e.ecModel,t,s,u),n.getItemVisual(i,"decal"));n.setItemVisual(i,"decal",c(o,t))})))))}))),c=e.getZr().dom)&&(e=t.getLocaleModel().get("aria"),(i=h.getModel("label")).option=l.i(i.option,e),i.get("enabled"))&&(c.setAttribute("role","img"),i.get("description")?c.setAttribute("aria-label",i.get("description")):(o=t.getSeriesCount(),r=i.get(["data","maxCount"])||10,e=i.get(["series","maxCount"])||10,a=Math.min(o,e),o<1||(e=(e=(()=>{var e=t.get("title");return(e=e&&e.length?e[0]:e)&&e.text})())?d(i.get(["general","withTitle"]),{title:e}):i.get(["general","withoutTitle"]),s=[],h=1<o?i.get(["series","multiple","prefix"]):i.get(["series","single","prefix"]),e+=d(h,{seriesCount:o}),t.eachSeries((function(e,n){if(n<a){n=void 0;var u=e.get("name")?"withName":"withoutName";n=d(n=1<o?i.get(["series","multiple",u]):i.get(["series","single",u]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(u=e.subType,(x=t.getLocaleModel().get(["series","typeNames"]))[u]||x.chart)});for(var c,h,p,f=e.getData(),g=(f.count()>r?n+=d(i.get(["data","partialData"]),{displayCnt:r}):n+=i.get(["data","allData"]),i.get(["data","separator","middle"])),y=(u=i.get(["data","separator","end"]),i.get(["data","excludeDimensionId"])),m=[],v=0;v<f.count();v++)v<r&&(c=f.getName(v),h=y?l.n(f.getValues(v),(function(t,e){return-1===l.r(y,e)})):f.getValues(v),p=i.get(["data",c?"withName":"withoutName"]),m.push(d(p,{name:c,value:h.join(g)})));n+=m.join(g)+u,s.push(n)}var x})),h=i.getModel(["series","multiple","separator"]),u=h.get("middle"),h=h.get("end"),e+=s.join(u)+h,c.setAttribute("aria-label",e))))}function jX(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 RX={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},NX=(EX.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+"")},EX);function EX(t){null==(this._condVal=Object(l.C)(t)?new RegExp(t):Object(l.B)(t)?t:null)&&Gu("")}VX.prototype.evaluate=function(){return this.value};var zX=VX;function VX(){}FX.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0};var BX=FX;function FX(){}HX.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1};var GX=HX;function HX(){}YX.prototype.evaluate=function(){return!this.child.evaluate()};var WX=YX;function YX(){}UX.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 XX=UX;function UX(){}function ZX(t,e){if(!0===t||!1===t)return(n=new zX).value=t,n;var n;if(KX(t)||Gu(""),t.and)return qX("and",t,e);if(t.or)return qX("or",t,e);if(t.not)return n=e,KX(r=(r=t).not)||Gu(""),(u=new WX).child=ZX(r,n),u.child||Gu(""),u;for(var i=t,o=e,r=o.prepareGetValue(i),a=[],s=Object(l.F)(i),u=i.parser,c=u?gh(u):null,h=0;h<s.length;h++){var d,p=s[h];"parser"===p||o.valueGetterAttrMap.get(p)||(d=Object(l.q)(RX,p)?RX[p]:p,p=i[p],p=c?c(p):p,(d=((t,e)=>"eq"===t||"ne"===t?new bh("eq"===t,e):Object(l.q)(yh,t)?new mh(t,e):null)(d,p)||"reg"===d&&new NX(p))||Gu(""),a.push(d))}return a.length||Gu(""),(u=new XX).valueGetterParam=r,u.valueParser=c,u.getValue=o.getValue,u.subCondList=a,u}function qX(t,e,n){return e=e[t],Object(l.t)(e)||Gu(""),e.length||Gu(""),t=new("and"===t?BX:GX),t.children=Object(l.H)(e,(function(t){return ZX(t,n)})),t.children.length||Gu(""),t}function KX(t){return Object(l.A)(t)&&!Object(l.u)(t)}$X.prototype.evaluate=function(){return this._cond.evaluate()};var QX=$X;function $X(t,e){this._cond=ZX(t,e)}var JX={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")||Gu(""),t=i.getDimensionInfo(e);return t||Gu(""),{dimIdx:t.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}},new QX(t,n)),r=[],a=0,s=i.count();a<s;a++)e=i.getRawDataItem(a),o.evaluate()&&r.push(e);return{data:r}}},tU={type:"echarts:sort",transform:function(t){for(var e=t.upstream,n=(t=Oi(t.config),t.length||Gu(""),[]),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&&Gu(""),"asc"!==o&&"desc"!==o&&Gu(""),t&&"min"!==t&&"max"!==t&&Gu(""),"asc"!==o&&"desc"!==o&&Gu(""),e.getDimensionInfo(i)),i||Gu(""),r?gh(r):null);r&&!a&&Gu(""),n.push({dimIdx:i.index,parser:a,comparator:new xh(o,t)})})),e.sourceFormat),t!==vu&&t!==xu&&Gu(""),[]),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(iU,eU=fu),iU.prototype.init=function(t,e,n){eU.prototype.init.call(this,t,e,n),this._sourceManager=new Hh(this),Yh(this)},iU.prototype.mergeOption=function(t,e){eU.prototype.mergeOption.call(this,t,e),Yh(this)},iU.prototype.optionUpdated=function(){this._sourceManager.dirty()},iU.prototype.getSourceManager=function(){return this._sourceManager},iU.type="dataset",iU.defaultOption={seriesLayoutBy:Su};var eU,nU=iU;function iU(){var t=null!==eU&&eU.apply(this,arguments)||this;return t.type="dataset",t}a(aU,oU=Od),aU.type="dataset";var oU,rU=aU;function aU(){var t=null!==oU&&oU.apply(this,arguments)||this;return t.type="dataset",t}var sU=cr.CMD;function lU(t,e){return Math.abs(t-e)<1e-5}function uU(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){lU(t,i)&&lU(n,o)||e.push(t,n,i,o,i,o)}for(var d,p,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!==sU.L&&I!==sU.C&&I!==sU.Q||(e=[l,u])),I){case sU.M:a=l=i[M++],s=u=i[M++],c(l,u);break;case sU.L:h(a,s,j=i[M++],R=i[M++]),a=j,s=R;break;case sU.C:e.push(i[M++],i[M++],i[M++],i[M++],a=i[M++],s=i[M++]);break;case sU.Q:j=i[M++],R=i[M++],A=i[M++],n=i[M++],e.push(a+2/3*(j-a),s+2/3*(R-s),A+2/3*(j-A),n+2/3*(R-n),A,n),a=A,s=n;break;case sU.A:var T=i[M++],C=i[M++],k=i[M++],D=i[M++],A=i[M++],L=i[M++]+A,P=(M+=1,!i[M++]),j=Math.cos(A)*k+T,R=Math.sin(A)*D+C;O?c(l=j,u=R):h(a,s,j,R);a=Math.cos(L)*k+T,s=Math.sin(L)*D+C;for(var N=(P?-1:1)*Math.PI/2,E=A;P?L<E:E<L;E+=N){var z=P?Math.max(E+N,L):Math.min(E+N,L);d=E,z=z,p=T,f=C,g=k,y=D,m=S=w=b=_=x=v=m=void 0,m=Math.abs(z-d),m=4*Math.tan(m/4)/3,v=z<d?-1:1,x=Math.cos(d),d=Math.sin(d),_=Math.cos(z),z=Math.sin(z),b=_*g+p,w=z*y+f,S=g*m*v,m=y*m*v,e.push(x*g+p-S*d,d*y+f+m*x,b+S*z,w-m*_,b,w)}break;case sU.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 sU.Z:e&&h(a,s,l,u),a=l,s=u}}return e&&2<e.length&&r.push(e),r}function cU(t,e){var n=uU(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++],d=r[u++],p=r[u++],f=r[u++],g=r[u++];!function t(e,n,i,o,r,a,s,l,u,c){var h,d,p,f,g,y,m,v,x;lU(e,i)&&lU(n,o)&&lU(r,s)&&lU(a,l)||(h=(h=2/c)*h,v=s-e,d=l-n,v/=m=Math.sqrt(v*v+d*d),d/=m,g=(m=r-s)*m+(y=a-l)*y,(x=(p=i-e)*p+(f=o-n)*f)<h&&g<h)||(m=-v*m-d*y,x-(y=v*p+d*f)*y<h&&0<=y&&g-m*m<h&&0<=m)?u.push(s,l):(x=[],ge(e,i,r,s,.5,v=[]),ge(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,d,p,f,g,a,e),s=f,l=g}i.push(a)}return i}function hU(t,e,n){for(var i=t[e],o=(i=Math.abs(i/t[1-e]),Math.ceil(Math.sqrt(i*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 dU(t,e,n){for(var i=t.r0,o=t.r,r=t.startAngle,a=Math.abs(t.endAngle-r),s=a*o,l=o-i,u=s>Math.abs(l),c=hU([s,l],u?0:1,e),h=(u?a:l)/c.length,d=0;d<c.length;d++)for(var p=(u?l:a)/c[d],f=0;f<c[d];f++){var g={};u?(g.startAngle=r+h*d,g.endAngle=r+h*(d+1),g.r0=i+p*f,g.r=i+p*(f+1)):(g.startAngle=r+p*f,g.endAngle=r+p*(f+1),g.r0=i+h*d,g.r=i+h*(d+1)),g.clockwise=t.clockwise,g.cx=t.cx,g.cy=t.cy,n.push(g)}}function pU(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function fU(t,e,n){for(var i,o,r,a,s,l,u=t.length,c=[],h=0;h<u;h++){var d=t[h],p=t[(h+1)%u],f=(i=d[0],d=d[1],o=p[0],p=p[1],r=e.x,a=e.y,s=n.x,l=void 0,l=(s-=r)*(p-=d)-(o-=i)*(f=(f=n.y)-a),Math.abs(l)<1e-6||(r=((i-r)*f-s*(d-a))/l)<0||1<r?null:new dt(r*o+i,r*p+d));f&&c.push({projPt:(s=f,a=e,l=n,o=void 0,o=new dt,dt.sub(o,l,a),o.normalize(),l=new dt,dt.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++)pU(x,t[h].slice());for(pU(x,v),pU(x,m),h=y.idx+1;h<=g.idx+u;h++)pU(_,t[h%u].slice());return pU(_,m),pU(_,v),[{points:x},{points:_}]}function gU(t){t=t.points;var e=[],n=[],i=(n=(Fo(t,e,n),new wt(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 dt),a=new dt;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),fU(t,r,a)}function yU(t,e,n,i){var o;1===n?i.push(e):(o=Math.floor(n/2),e=t(e),yU(t,e[0],o,i),yU(t,e[1],n-o,i))}function mU(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,d=hU([u,c],h?0:1,a),p=h?"width":"height",f=h?"height":"width",g=h?"x":"y",y=h?"y":"x",m=r[p]/d.length,v=0;v<d.length;v++)for(var x=r[f]/d[v],_=0;_<d[v];_++){var b={};b[g]=v*m,b[y]=_*x,b[p]=m,b[f]=x,b.x+=r.x,b.y+=r.y,s.push(b)}n=qr;break;case"sector":dU(o,e,i),n=bp;break;case"circle":dU({r0:0,r:o.r,startAngle:0,endAngle:2*Math.PI,cx:o.cx,cy:o.cy},e,i),n=bp;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)(cU(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)yU(gU,{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=[];Fo(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 k=M===S-1?T:Math.ceil(C.area/I*e);k<0||(yU(gU,{points:C.poly},k,i),T-=k)}}n=Dp}if(!n){for(var D=t,A=e,L=[],P=0;P<A;P++)L.push(qd(D));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 vU(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 xU(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=((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 d=a[h-2],p=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/_;ge(d,f,y,v,w,o),ge(p,g,m,x,w,r),u.push(o[1],r[1],o[2],r[2],d=o[3],p=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=vU(i||s,s),u=s):(u=vU(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 bU(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),[]),d=[],p=0,f=1/0,g=[],y=s.length,m=6*((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,d=0;d<s;d+=2){var p=0===d?c:(c+d-2)%l+2,f=t[p]-n[0];f=e[d]-i[0]-f,p=e[d+1]-i[1]-(t[1+p]-n[1]);h+=f*f+p*p}h<r&&(r=h,a=u)}return a})(s=o?(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],k=l[x+1]-c[1],D=C*M-k*S;C=C*S+k*M,k=(g[x]=D)-O,D=(g[x+1]=C)-T;I+=k*k+D*D}if(I<f){f=I,p=w;for(var A=0;A<g.length;A++)d[A]=g[A]}}else for(var L=0;L<y;L+=2)d[L]=l[L]-c[0],d[L+1]=l[L+1]-c[1];r.push({from:h,to:d,fromCp:u,toCp:c,rotation:-p})}return r}function wU(t){return t.__isCombineMorphing}var SU="__mOriginal_";function MU(t,e,n){var i=SU+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 IU(t,e){var n=SU+e;t[n]&&(t[e]=t[n],t[n]=null)}function OU(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 TU(t,e){var n=t.getUpdatedPathProxy(),i=e.getUpdatedPathProxy(),o=(n=xU(uU(n),uU(i)),i=n[0],n=n[1],t=t.getComputedTransform(),e.getComputedTransform());t&&OU(i,t),o&&OU(n,o),MU(e,"updateTransform",{replace:function(){this.transform=null}}),e.transform=null;var r=bU(i,n,10,Math.PI),a=[];MU(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,d=l.fromCp,p=(l=l.toCp,Math.sin(h)),f=Math.cos(h);M(o,d,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*p+o[0],a[g+1]=y*p+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 CU(t,e,n){var i,o;t&&e&&(i=n.done,o=n.during,TU(t,e),e.__morphT=0,e.animateTo({__morphT:1},Object(l.i)({during:function(t){e.dirtyShape(),o&&o(t)},done:function(){IU(e,"buildPath"),IU(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape(),i&&i()}},n)))}function kU(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:((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 DU(t){return mU(t.path,t.count)}function AU(){return{fromIndividuals:[],toIndividuals:[],count:0}}function LU(t,e,n){var i=[];!function t(e){for(var n=0;n<e.length;n++){var o=e[n];wU(o)?t(o.childrenRef()):o instanceof Ar&&i.push(o)}}(t);var o=i.length;if(!o)return AU();var r=n.dividePath||DU;if((a=r({path:e,count:o})).length!==o)return AU();i=kU(i);for(var a=kU(a),s=n.done,u=n.during,c=n.individualDelay,h=new In,d=0;d<o;d++){var p=i[d],f=a[d];f.parent=e,f.copyTransform(h),c||TU(p,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,IU(e,"addSelfToZr"),IU(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return a},MU(e,"addSelfToZr",{after:function(t){g(t)}}),MU(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(d=0;d<m;d++){var _=c?Object(l.i)({delay:(n.delay||0)+c(d,m,i[d],a[d]),done:x},n):n;CU(i[d],a[d],_)}}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++)IU(t[e],"updateTransform");s&&s()}},n));return e.__zr&&g(e.__zr),{fromIndividuals:i,toIndividuals:a,count:m}}function PU(t,e,n){var i=e.length,o=[],r=n.dividePath||DU;if(wU(t)){!function t(e){for(var n=0;n<e.length;n++){var i=e[n];wU(i)?t(i.childrenRef()):i instanceof Ar&&o.push(i)}}(t.childrenRef());var a=o.length;if(a<i)for(var s=0,u=a;u<i;u++)o.push(qd(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 AU()}o=kU(o),e=kU(e);var h=n.individualDelay;for(u=0;u<i;u++){var d=h?Object(l.i)({delay:(n.delay||0)+h(u,i,o[u],e[u])},n):n;CU(o[u],e[u],d)}return{fromIndividuals:o,toIndividuals:e,count:e.length}}function jU(t){return Object(l.t)(t[0])}function RU(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 NU={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=qd(t.path);o.setStyle("opacity",n),e.push(o)}return e},split:null};function EU(t,e,n,i,o,r){if(t.length&&e.length&&(o=ys("update",i,o),o&&0<o.duration)){for(var a,s,u=i.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},o),h=(jU(t)&&(a=t,s=e),jU(e)&&(a=e,s=t),a?a===t:t.length>e.length),d=a?RU(s,a):RU(h?e:t,[h?t:e]),p=0,f=0;f<d.length;f++)p+=d[f].many.length;var g=0;for(f=0;f<d.length;f++)!function t(e,i,o,a,s){var h=e.many,d=e.one;if(1!==h.length||s){s=Object(l.i)({dividePath:NU[n],individualDelay:u&&function(t,e,n,i){return u(t+o,a)}},c),s=i?LU(h,d,s):PU(d,h,s);for(var p=s.fromIndividuals,f=s.toIndividuals,g=p.length,y=0;y<g;y++)m=u?Object(l.i)({delay:u(y,g)},c):c,r(p[y],f[y],i?h[y]:e.one,i?e.one:h[y],m)}else{var m;s=i?h[0]:d,d=i?d:h[0];wU(s)?t({many:[s],one:d},!0,o,a,!0):(CU(s,d,m=u?Object(l.i)({delay:u(o,a)},c):c),r(s,d,s,d,m))}}(d[f],h,g,p),g+=d[f].many.length}}function zU(t){if(!t)return[];if(Object(l.t)(t)){for(var e=[],n=0;n<t.length;n++)e.push(zU(t[n]));return e}var i=[];return t.traverse((function(t){t instanceof Ar&&!t.disableMorphing&&!t.invisible&&!t.ignore&&i.push(t)})),i}var VU=1e4,BU=0,FU=1,GU=2,HU=zi();function WU(t,e,n,i){var o,r,a,s=((t,e)=>{for(var n=t.dimensions,i=0;i<n.length;i++){var o=t.getDimensionInfo(n[i]);if(o&&0===o.otherDims[e])return n[i]}})(t,i?"itemChildGroupId":"itemGroupId");return s?(a=e,s=s,r=(s=(o=t).getDimensionInfo(s))&&s.ordinalMeta,s?(o=o.get(s.name,a),r&&r.categories[o]||o+""):void 0):(s=i?"childGroupId":"groupId",(a=t.getRawDataItem(e))&&a[s]?a[s]+"":i?void 0:n||t.getId(e))}function YU(t){var e=[];return Object(l.k)(t,(function(t){var n=t.data,i=t.dataGroupId;if(!(n.count()>VU))for(var o=n.getIndices(),r=0;r<o.length;r++)e.push({data:n,groupId:WU(n,r,i,!1),childGroupId:WU(n,r,i,!0),divide:t.divide,dataIndex:r})})),e}function XU(t,e,n){t.traverse((function(t){t instanceof Ar&&xs(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})}))}function UU(t){var e;t.parent&&(e=t.getComputedTransform(),t.setLocalTransform(e),t.parent.remove(t))}function ZU(t){t.stopAnimation(),t.isGroup&&t.traverse((function(t){t.stopAnimation()}))}function qU(t,e,n){var i=ys("update",n,e);i&&t.traverse((function(t){var e;t instanceof Lo&&(e=gs(t).oldStyle)&&t.animateFrom({style:e},i)}))}function KU(t,e,n){var i=YU(t),o=YU(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)}var a=!1,s=BU,u=Object(l.f)(),c=Object(l.f)();i.forEach((function(t){t.groupId&&u.set(t.groupId,!0),t.childGroupId&&c.set(t.childGroupId,!0)}));for(var h=0;h<o.length;h++){var d=o[h].groupId;if(c.get(d)){s=FU;break}if(d=o[h].childGroupId,d&&u.get(d)){s=GU;break}}function p(t,e){return function(n){var i=n.data;return e?i.getId(n.dataIndex):t?s===FU?n.childGroupId:n.groupId:s===GU?n.childGroupId:n.groupId}}t=((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 f={};if(!t)for(h=0;h<o.length;h++){var g=o[h];g=g.data.getItemGraphicEl(g.dataIndex);g&&(f[g.id]=!0)}function y(t,e){e=i[e];var n=o[t],s=n.data.hostModel,l=(e=e.data.getItemGraphicEl(e.dataIndex),n.data.getItemGraphicEl(n.dataIndex));e===l?l&&qU(l,n.dataIndex,s):e&&f[e.id]||l&&(ZU(l),e?(ZU(e),UU(e),a=!0,EU(zU(e),zU(l),n.divide,s,t,r)):XU(l,s,t))}new Zx(i,o,p(!0,t),p(!1,t),null,"multiple").update(y).updateManyToOne((function(t,e){var n=o[t],s=n.data,u=s.hostModel,c=s.getItemGraphicEl(n.dataIndex);s=Object(l.n)(Object(l.H)(e,(function(t){return i[t].data.getItemGraphicEl(i[t].dataIndex)})),(function(t){return t&&t!==c&&!f[t.id]}));c&&(ZU(c),s.length?(Object(l.k)(s,(function(t){ZU(t),UU(t)})),a=!0,EU(zU(s),zU(c),n.divide,u,t,r)):XU(c,u,n.dataIndex))})).updateOneToMany((function(t,e){e=i[e];var n,s,u=e.data.getItemGraphicEl(e.dataIndex);u&&f[u.id]||(n=Object(l.n)(Object(l.H)(t,(function(t){return o[t].data.getItemGraphicEl(o[t].dataIndex)})),(function(t){return t&&t!==u})),s=o[t[0]].data.hostModel,n.length&&(Object(l.k)(n,ZU),u?(ZU(u),UU(u),a=!0,EU(zU(u),zU(n),e.divide,s,t[0],r)):Object(l.k)(n,(function(e){return XU(e,s,t[0])}))))})).updateManyToMany((function(t,e){new Zx(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){y(t[n],e[i])})).execute()})).execute(),a&&Object(l.k)(e,(function(t){t=t.data.hostModel;var e=t&&n.getViewOfSeriesModel(t),i=ys("update",t,0);e&&t.isAnimationEnabled()&&i&&0<i.duration&&e.group.traverse((function(t){t instanceof Ar&&!t.animators.length&&t.animateFrom({style:{opacity:0}},i)}))}))}function QU(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function $U(t){return Object(l.t)(t)?t.sort().join(","):t}function JU(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function tZ(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}Gm([function(t){t.registerPainter("canvas",Dv)}]),Gm([function(t){t.registerPainter("svg",Wx)}]),Gm([function(t){t.registerChartView(Ob),t.registerSeriesModel(P_),t.registerLayout(Tb("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,Db("line"))},function(t){t.registerChartView(_w),t.registerSeriesModel(Xb),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,l.h(Eb,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,zb("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Db("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(zw),t.registerSeriesModel(Xw),Eg("pie",t.registerAction),t.registerLayout(Object(l.h)(Iw,"pie")),t.registerProcessor(Tw("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){Gm(kI),t.registerSeriesModel(qw),t.registerChartView(oS),t.registerLayout(Tb("scatter"))},function(t){Gm($I),t.registerChartView(NI),t.registerSeriesModel(VI),t.registerLayout(DI),t.registerProcessor(Tw("radar")),t.registerPreprocessor(PI)},function(t){Gm(iC),t.registerChartView(kT),t.registerSeriesModel(AT),t.registerLayout(PT),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,LT),Eg("map",t.registerAction)},function(t){t.registerChartView(SC),t.registerSeriesModel(WC),t.registerLayout(XC),t.registerVisual(UC),(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,n){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=JT(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))},function(t){t.registerSeriesModel(JC),t.registerChartView(mk),t.registerVisual(Ek),t.registerLayout(Jk),KC(t)},function(t){t.registerChartView(hA),t.registerSeriesModel(MA),t.registerProcessor(oD),t.registerVisual(rD),t.registerVisual(sD),t.registerLayout(xD),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,TD),t.registerLayout(DD),t.registerCoordinateSystem("graphView",{dimensions:VT.dimensions,create:AD}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},l.L),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},l.L),t.registerAction(IA,(function(t,e,n){e.eachComponent({mainType:"series",query:t},(function(e){var i=JT(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))},function(t){t.registerChartView(PA),t.registerSeriesModel(EA)},function(t){t.registerChartView(HA),t.registerSeriesModel(XA),t.registerLayout(UA),t.registerProcessor(Tw("funnel"))},function(t){Gm(EP),t.registerChartView(tL),t.registerSeriesModel(oL),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,aL)},function(t){t.registerChartView(XP),t.registerSeriesModel(ZP),t.registerLayout(qP),t.registerVisual(rj),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(cj),t.registerChartView(vj),t.registerLayout(_j),t.registerTransform(bj)},function(t){t.registerChartView(Uj),t.registerSeriesModel(qj),t.registerPreprocessor(Kj),t.registerVisual(Dj),t.registerLayout(Jj)},function(t){t.registerChartView(aR),t.registerSeriesModel(uR),t.registerLayout(Tb("effectScatter"))},function(t){t.registerChartView(CR),t.registerSeriesModel(PR),t.registerLayout(IR),t.registerVisual(RR)},function(t){t.registerChartView(GR),t.registerSeriesModel(YR)},function(t){t.registerChartView(fN),t.registerSeriesModel(mN),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Object(l.h)(Eb,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,zb("pictorialBar"))},function(t){t.registerChartView(_N),t.registerSeriesModel(SN),t.registerLayout(MN),t.registerProcessor(Tw("themeRiver"))},function(t){t.registerChartView(RN),t.registerSeriesModel(EN),t.registerLayout(Object(l.h)(VN,"sunburst")),t.registerProcessor(Object(l.h)(Tw,"sunburst")),t.registerVisual(FN),LN(t)},function(t){t.registerChartView(jE),t.registerSeriesModel(UN)}]),Gm((function(t){Gm(kI),Gm(Vz)})),Gm((function(t){Gm(Vz),uI.registerAxisPointerClass("PolarAxisPointer",Hz),t.registerCoordinateSystem("polar",fV),t.registerComponentModel(Xz),t.registerComponentView(jV),vS(t,"angle",qz,LV),vS(t,"radius",$z,PV),t.registerComponentView(wV),t.registerComponentView(TV),t.registerLayout(Object(l.h)(DV,"bar"))})),Gm(iC),Gm((function(t){Gm(Vz),uI.registerAxisPointerClass("SingleAxisPointer",uB),t.registerComponentView(cB),t.registerComponentView(HV),t.registerComponentModel(XV),vS(t,"single",XV,XV.defaultOption),t.registerCoordinateSystem("single",tB)})),Gm(EP),Gm((function(t){t.registerComponentModel(gB),t.registerComponentView(mB),t.registerCoordinateSystem("calendar",_B)})),Gm((function(t){t.registerComponentModel(OB),t.registerComponentView(AB),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]}])}))})),Gm((function(t){t.registerComponentModel(yF),t.registerComponentView(_F),dF("saveAsImage",SF),dF("magicType",CF),dF("dataView",EF),dF("dataZoom",cG),dF("restore",HF),Gm(lF)})),Gm((function(t){Gm(Vz),t.registerComponentModel(dG),t.registerComponentView(NG),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},l.L),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},l.L)})),Gm(Vz),Gm((function(t){t.registerComponentView(oH),t.registerComponentModel(lH),t.registerPreprocessor(zG),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,KG),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),dF("brush",hH)})),Gm((function(t){t.registerComponentModel(pH),t.registerComponentView(mH)})),Gm((function(t){var e;t.registerComponentModel(SH),t.registerComponentView(jH),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(RH)})),Gm((function(t){t.registerComponentModel(XH),t.registerComponentView(lW),t.registerPreprocessor((function(t){zH(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))})),Gm((function(t){t.registerComponentModel(dW),t.registerComponentView(_W),t.registerPreprocessor((function(t){zH(t.series,"markLine")&&(t.markLine=t.markLine||{})}))})),Gm((function(t){t.registerComponentModel(SW),t.registerComponentView(PW),t.registerPreprocessor((function(t){zH(t.series,"markArea")&&(t.markArea=t.markArea||{})}))})),Gm((function(t){Gm(KW),Gm(sY)})),Gm((function(t){Gm(wY),Gm(jY)})),Gm(wY),Gm(jY),Gm((function(t){Gm(bX),Gm(kX)})),Gm(bX),Gm(kX),Gm((function(t){t.registerPreprocessor(jX),t.registerVisual(t.PRIORITY.VISUAL.ARIA,PX)})),Gm((function(t){t.registerTransform(JX),t.registerTransform(tU)})),Gm((function(t){t.registerComponentModel(nU),t.registerComponentView(rU)})),Gm((function(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){Object(l.k)(Oi(n.seriesTransition),(function(t){Object(l.k)(Oi(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][gd]=!0)}))}))})),t.registerUpdateLifecycle("series:transition",(function(t,e,n){for(var i,o,r,a,s,u,c=HU(e),h=(c.oldSeries&&n.updatedSeries&&n.optionChanged&&((r=n.seriesTransition)?Object(l.k)(Oi(r),(function(t){var i,o,r,a,s;t=t,i=c,o=n,r=e,a=[],s=[],Object(l.k)(Oi(t.from),(function(t){var e=tZ(i.oldSeries,t);0<=e&&a.push({dataGroupId:i.oldDataGroupIds[e],data:i.oldData[e],divide:JU(i.oldData[e]),groupIdDim:t.dimension})})),Object(l.k)(Oi(t.to),(function(t){var e,n=tZ(o.updatedSeries,t);0<=n&&(e=o.updatedSeries[n].getData(),s.push({dataGroupId:i.oldDataGroupIds[n],data:e,divide:JU(e),groupIdDim:t.dimension}))})),0<a.length&&0<s.length&&KU(a,s,r)})):(o=c,r=n,a=Object(l.f)(),s=Object(l.f)(),u=Object(l.f)(),Object(l.k)(o.oldSeries,(function(t,e){var n=o.oldDataGroupIds[e],i=o.oldData[e],r=(e=QU(t),$U(e));s.set(r,{dataGroupId:n,data:i}),Object(l.t)(e)&&Object(l.k)(e,(function(t){u.set(t,{key:r,dataGroupId:n,data:i})}))})),Object(l.k)(r.updatedSeries,(function(t){var e,n,i,o,r;t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()&&(e=t.get("dataGroupId"),n=t.getData(),r=$U(t=QU(t)),(o=s.get(r))?a.set(r,{oldSeries:[{dataGroupId:o.dataGroupId,divide:JU(o.data),data:o.data}],newSeries:[{dataGroupId:e,divide:JU(n),data:n}]}):Object(l.t)(t)?(i=[],Object(l.k)(t,(function(t){t=s.get(t),t.data&&i.push({dataGroupId:t.dataGroupId,divide:JU(t.data),data:t.data})})),i.length&&a.set(r,{oldSeries:i,newSeries:[{dataGroupId:e,data:n,divide:JU(n)}]})):(o=u.get(t))&&((r=a.get(o.key))||(r={oldSeries:[{dataGroupId:o.dataGroupId,data:o.data,divide:JU(o.data)}],newSeries:[]},a.set(o.key,r)),r.newSeries.push({dataGroupId:e,data:n,divide:JU(n)})))})),i=a,Object(l.k)(i.keys(),(function(t){t=i.get(t),KU(t.oldSeries,t.newSeries,e)}))),Object(l.k)(n.updatedSeries,(function(t){t[gd]&&(t[gd]=!1)}))),t.getSeries()),d=c.oldSeries=[],p=c.oldDataGroupIds=[],f=c.oldData=[],g=0;g<h.length;g++){var y=h[g].getData();y.count()<VU&&(d.push(h[g]),p.push(h[g].get("dataGroupId")),f.push(y))}}))})),Gm(Mv)},3485:function(t,e,n){var i=n("7a23");let o=["id"];var 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:()=>({})}},setup(t){let{mounted:e,chart:n,beforeDestroy:o,activated:a,deactivated:s}=(()=>{let t=Object(i.ref)(),e=Object(i.ref)(),n=()=>{t.value&&t.value.resize()},o=t=>{"width"===t.propertyName&&n()},r=()=>{window.addEventListener("resize",n)},a=()=>{window.removeEventListener("resize",n)},s=()=>{e.value=document.getElementsByClassName("sidebar-container")[0],e.value&&e.value.addEventListener("transitionend",o)},l=()=>{e.value&&e.value.removeEventListener("transitionend",o)};return{chart:t,mounted:()=>{r(),s()},beforeDestroy:()=>{a(),l()},activated:()=>{r(),s()},deactivated:()=>{a(),l()}}})();return Object(i.watch)(t,t=>{t.options&&n.value&&n.value.setOption(t.options)}),Object(i.onMounted)(()=>{e(),Object(i.nextTick)(()=>{var e;(e=Object(r.b)(document.getElementById(t.id))).setOption(t.options),n.value=e})}),Object(i.onBeforeUnmount)(()=>{o()}),Object(i.onActivated)(()=>{a()}),Object(i.onDeactivated)(()=>{s()}),{}}}),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){n.d(e,"h",(function(){return y})),n.d(e,"c",(function(){return v})),n.d(e,"a",(function(){return x})),n.d(e,"b",(function(){return _})),n.d(e,"g",(function(){return b})),n.d(e,"f",(function(){return w})),n.d(e,"i",(function(){return S})),n.d(e,"e",(function(){return M})),n.d(e,"d",(function(){return O}));e=n("d51b");var i=n("6d8b"),o={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 r(t){return(t=Math.round(t))<0?0:255<t?255:t}function a(t){return t<0?0:1<t?1:t}function s(t){return t.length&&"%"===t.charAt(t.length-1)?r(parseFloat(t)/100*255):r(parseInt(t,10))}function l(t){return t.length&&"%"===t.charAt(t.length-1)?a(parseFloat(t)/100):a(parseFloat(t))}function u(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 c(t,e,n){return t+(e-t)*n}function h(t,e,n,i,o){return t[0]=e,t[1]=n,t[2]=i,t[3]=o,t}function d(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),f=null;function g(t,e){f&&d(f,e),f=p.put(t,f||e.slice())}function y(t,e){if(t){e=e||[];var n=p.get(t);if(n)return d(e,n);if(n=(t+="").replace(/ /g,"").toLowerCase(),n in o)return d(e,o[n]),g(t,e),e;var i=n.length;if("#"===n.charAt(0))return 4===i||5===i?0<=(r=parseInt(n.slice(1,4),16))&&r<=4095?(h(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===i?parseInt(n.slice(4),16)/15:1),g(t,e),e):void h(e,0,0,0,1):7===i||9===i?0<=(r=parseInt(n.slice(1,7),16))&&r<=16777215?(h(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===i?parseInt(n.slice(7),16)/255:1),g(t,e),e):void h(e,0,0,0,1):void 0;var r=n.indexOf("("),a=n.indexOf(")");if(-1!==r&&a+1===i){i=n.substr(0,r);var u=n.substr(r+1,a-(r+1)).split(","),c=1;switch(i){case"rgba":if(4!==u.length)return 3===u.length?h(e,+u[0],+u[1],+u[2],1):h(e,0,0,0,1);c=l(u.pop());case"rgb":return 3<=u.length?(h(e,s(u[0]),s(u[1]),s(u[2]),3===u.length?c:l(u[3])),g(t,e),e):void h(e,0,0,0,1);case"hsla":return 4!==u.length?void h(e,0,0,0,1):(u[3]=l(u[3]),m(u,e),g(t,e),e);case"hsl":return 3!==u.length?void h(e,0,0,0,1):(m(u,e),g(t,e),e);default:return}}h(e,0,0,0,1)}}function m(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=l(t[1]),o=l(t[2]);i=o<=.5?o*(i+1):o+i-o*i,o=2*o-i;return h(e=e||[],r(255*u(o,i,n+1/3)),r(255*u(o,i,n)),r(255*u(o,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function v(t,e){var n=y(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 S(n,4===n.length?"rgba":"rgb")}}function x(t,e,n){var i,o,s;if(e&&e.length&&0<=t&&t<=1)return n=n||[],t*=e.length-1,i=Math.floor(t),s=Math.ceil(t),o=e[i],n[0]=r(c(o[0],(e=e[s])[0],s=t-i)),n[1]=r(c(o[1],e[1],s)),n[2]=r(c(o[2],e[2],s)),n[3]=a(c(o[3],e[3],s)),n}function _(t,e,n){var i,o,s,l;if(e&&e.length&&0<=t&&t<=1)return t*=e.length-1,i=Math.floor(t),o=Math.ceil(t),l=y(e[i]),e=y(e[o]),l=S([r(c(l[0],e[0],s=t-i)),r(c(l[1],e[1],s)),r(c(l[2],e[2],s)),a(c(l[3],e[3],s))],"rgba"),n?{color:l,leftIndex:i,rightIndex:o,value:t}:l}function b(t,e,n,i){var o=y(t);if(t)return o=(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),o=((i=Math.max(c,e,n))+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]=l(n)),null!=i&&(o[2]=l(i)),S(m(o),"rgba")}function w(t,e){if(t=y(t),t&&null!=e)return t[3]=a(e),S(t,"rgba")}function S(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 M(t,e){return t=y(t),t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var I=new e.a(100);function O(t){var e;return Object(i.C)(t)?((e=I.get(t))||(e=v(t,-.1),I.put(t,e)),e):Object(i.x)(t)?((e=Object(i.m)({},t)).colorStops=Object(i.H)(t.colorStops,(function(t){return{offset:t.offset,color:v(t.color,-.1)}})),e):t}},"6d8b":function(t,e,n){n.d(e,"p",(function(){return d})),n.d(e,"G",(function(){return p})),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 k})),n.d(e,"h",(function(){return D})),n.d(e,"t",(function(){return A})),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 V})),n.d(e,"x",(function(){return B})),n.d(e,"y",(function(){return F})),n.d(e,"B",(function(){return G})),n.d(e,"l",(function(){return H})),n.d(e,"O",(function(){return W})),n.d(e,"P",(function(){return Y})),n.d(e,"Q",(function(){return X})),n.d(e,"S",(function(){return U})),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 rt})),n.d(e,"e",(function(){return at})),n.d(e,"g",(function(){return st})),n.d(e,"j",(function(){return lt})),n.d(e,"q",(function(){return ut})),n.d(e,"L",(function(){return ct})),n.d(e,"a",(function(){return ht}));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 d(){return h++}function p(){for(var t=0;t<arguments.length;t++);}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)&&!V(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)||A(r)||A(o)||V(r)||V(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,r=i.length;o<r;o++){var a=i[o];(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}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 U(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 U(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 k=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 D(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 A(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 V(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function B(t){return null!=t.colorStops}function F(t){return null!=t.image}function G(t){return"[object RegExp]"===r.call(t)}function H(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 X(t,e,n){return null!=t?t:null!=e?e:n}function U(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return l.apply(t,e)}function Z(t){var e;return"number"==typeof t?[t,t,t,t]:2===(e=t.length)?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function 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.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},et.prototype.has=function(t){return this.data.hasOwnProperty(t)},et.prototype.get=function(t){return this.data[t]},et.prototype.set=function(t,e){return this.data[t]=e,this},et.prototype.keys=function(){return C(this.data)},et.prototype.forEach=function(t){var e,n=this.data;for(e in n)n.hasOwnProperty(e)&&t(n[e],e)};var tt=et;function et(){this.data={}}var nt="function"==typeof Map;ot.prototype.hasKey=function(t){return this.data.has(t)},ot.prototype.get=function(t){return this.data.get(t)},ot.prototype.set=function(t,e){return this.data.set(t,e),e},ot.prototype.each=function(t,e){this.data.forEach((function(n,i){t.call(e,n,i)}))},ot.prototype.keys=function(){var t=this.data.keys();return nt?Array.from(t):t},ot.prototype.removeKey=function(t){this.data.delete(t)};var it=ot;function ot(t){var e=A(t),n=(this.data=new(nt?Map:tt),this);function i(t,i){e?n.set(t,i):n.set(i,t)}t instanceof ot?t.each(i):t&&S(t,i)}function rt(t){return new it(t)}function at(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 st(t,e){var n;t=Object.create?Object.create(t):((n=function(){}).prototype=t,new n);return e&&m(t,e),t}function lt(t){t=t.style,t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function ut(t,e){return t.hasOwnProperty(e)}function ct(){}var ht=180/Math.PI},"726e":function(t,e,n){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=(t=>{var e={};if("undefined"!=typeof JSON)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=/((?:\d+)?\.?\d*)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 d=l[t[h]];c+=null==d?a:d*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){(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 d})),n.d(e,"a",(function(){return p})),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.h)(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 d(t){return"matrix("+c(t[0])+","+c(t[1])+","+c(t[2])+","+c(t[3])+","+h(t[4])+","+h(t[5])+")"}var p={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(encodeURIComponent(t)))}:void 0!==t?function(e){return t.from(e).toString("base64")}:function(t){return null}}).call(this,n("b639").Buffer)},d51b:function(t,e,n){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}}]);
|