(window.webpackJsonp=window.webpackJsonp||[]).push([["home~threejshb"],{"28d5":function(t,e,n){},4066:function(t,e,n){},"539b":function(t,e,n){"use strict";var p={};n.r(p),n.d(p,"updateProps",function(){return Wl}),n.d(p,"initProps",function(){return Ul}),n.d(p,"removeElement",function(){return Xl}),n.d(p,"removeElementWithFadeOut",function(){return jl}),n.d(p,"isElementRemoved",function(){return Yl}),n.d(p,"extendShape",function(){return Py}),n.d(p,"extendPath",function(){return Ry}),n.d(p,"registerShape",function(){return Ny}),n.d(p,"getShapeClass",function(){return zy}),n.d(p,"makePath",function(){return Ey}),n.d(p,"makeImage",function(){return Vy}),n.d(p,"mergePath",function(){return Fy}),n.d(p,"resizePath",function(){return Gy}),n.d(p,"subPixelOptimizeLine",function(){return Hy}),n.d(p,"subPixelOptimizeRect",function(){return Wy}),n.d(p,"subPixelOptimize",function(){return Uy}),n.d(p,"getTransform",function(){return Yy}),n.d(p,"applyTransform",function(){return Xy}),n.d(p,"transformDirection",function(){return Zy}),n.d(p,"groupTransition",function(){return qy}),n.d(p,"clipPointsByRect",function(){return Ky}),n.d(p,"clipRectByRect",function(){return Jy}),n.d(p,"createIcon",function(){return Qy}),n.d(p,"linePolygonIntersect",function(){return $y}),n.d(p,"lineLineIntersect",function(){return tm}),n.d(p,"setTooltipConfig",function(){return em}),n.d(p,"Group",function(){return ro}),n.d(p,"Image",function(){return ys}),n.d(p,"Text",function(){return Fs}),n.d(p,"Circle",function(){return $f}),n.d(p,"Ellipse",function(){return Ig}),n.d(p,"Sector",function(){return Wg}),n.d(p,"Ring",function(){return Xg}),n.d(p,"Polygon",function(){return $g}),n.d(p,"Polyline",function(){return ny}),n.d(p,"Rect",function(){return Ts}),n.d(p,"Line",function(){return Kf}),n.d(p,"BezierCurve",function(){return py}),n.d(p,"Arc",function(){return gf}),n.d(p,"IncrementalDisplayable",function(){return wy}),n.d(p,"CompoundPath",function(){return dy}),n.d(p,"LinearGradient",function(){return fy}),n.d(p,"RadialGradient",function(){return gy}),n.d(p,"BoundingRect",function(){return ki}),n.d(p,"OrientedBoundingRect",function(){return _y}),n.d(p,"Point",function(){return bi}),n.d(p,"Path",function(){return as});var a=n("d4ec"),i=n("bee2"),s=n("257e"),l=n("262e"),u=n("2caf"),h=n("ade3"),o=(n("e9c4"),n("99af"),n("2b0e")),r=n("2fe1"),c=function(t,e){return(c=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 d(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}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var f=function(){return(f=Object.assign||function(t){for(var e,n=1,i=arguments.length;n>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(o)return o(t,n,i),!0}return!1}function Kt(t){return"CANVAS"===t.nodeName.toUpperCase()}var Jt="undefined"!=typeof window&&!!window.addEventListener,Qt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,$t=[];function te(t,e,n,i){return n=n||{},i||!w.canvasSupported?ee(t,e,n):w.browser.firefox&&w.browser.version<"39"&&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):ee(t,e,n),n}function ee(t,e,n){if(w.domSupported&&t.getBoundingClientRect){var i=e.clientX,o=e.clientY;if(Kt(t)){e=t.getBoundingClientRect();return n.zrX=i-e.left,n.zrY=o-e.top,0}if(qt($t,t,i,o))return n.zrX=$t[0],n.zrY=$t[1],0}n.zrX=n.zrY=0}function ne(t){return t||window.event}function ie(t,e,n){if(null!=(e=ne(e)).zrX)return e;var i=e.type;i&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&te(t,i,e,n):(te(t,e,e,n),o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,t=t.deltaY;return null==n||null==t?e:3*(0!==t?Math.abs(t):Math.abs(n))*(0t.getWidth()||n<0||n>t.getHeight()}G(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){me.prototype[a]=function(t){var e,n,i=t.zrX,o=t.zrY,r=_e(this,i,o);if("mouseup"===a&&r||(n=(e=this.findHover(i,o)).target),"mousedown"===a)this._downEl=n,this._downPoint=[t.zrX,t.zrY],this._upEl=n;else if("mouseup"===a)this._upEl=n;else if("click"===a){if(this._downEl!==this._upEl||!this._downPoint||4>>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>>1);0>>1);r(t,e[n+h])<0?l=h:a=h+1}return l}function De(f,g){var r,a,y=Se,s=0,m=(f.length,[]);function e(t){var e=r[t],n=a[t],i=r[t+1],o=a[t+1];a[t]=n+o,t===s-3&&(r[t+1]=r[t+2],a[t+1]=a[t+2]),s--;t=Ce(f[i],f,e,n,0,g);e+=t,0==(n-=t)||0!==(o=Te(f[e+n-1],f,i,o,o-1,g))&&(n<=o?function(t,e,n,i){var o=0;for(o=0;oa[t+1])break;e(t)}},forceMergeRuns:function(){for(;1>=1;return t+e}(o);do{}while((r=Me(t,n,i,e))=this._maxSize&&0>4|(3840&u)>>8,240&u|(240&u)>>4,15&u|(15&u)<<4,5===o?parseInt(i.slice(4),16)/15:1),on(t,e),e):void $e(e,0,0,0,1)}if(7===o||9===o)return 0<=(u=parseInt(i.slice(1,7),16))&&u<=16777215?($e(e,(16711680&u)>>16,(65280&u)>>8,255&u,9===o?parseInt(i.slice(7),16)/255:1),on(t,e),e):void $e(e,0,0,0,1)}}}function an(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Ke(t[1]),o=Ke(t[2]),i=o<=.5?o*(i+1):o+i-o*i,o=2*o-i;return $e(e=e||[],Ze(255*Je(o,i,n+1/3)),Ze(255*Je(o,i,n)),Ze(255*Je(o,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function sn(t,e){var n=rn(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=this.maxTime?this.maxTime=t:this._needsSort=!0;var n=this.keyframes,i=n.length;if(this.interpolable)if(F(e)){var o,r=F((r=e)&&r[0])?2:1;if(0e);u++);u=Math.min(u-1,r-2)}var h,c,p,d,f,g,y,m=o[u+1],v=o[u];v&&m&&(this._lastFrame=u,this._lastFramePercent=e,0!=(g=m.percent-v.percent)&&(h=(e-v.percent)/g,c=n?this._additiveValue:l?Tn:t[a],(0=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},Oi.prototype.clone=function(){return new Oi(this.x,this.y,this.width,this.height)},Oi.prototype.copy=function(t){Oi.copy(this,t)},Oi.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},Oi.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Oi.prototype.isZero=function(){return 0===this.width||0===this.height},Oi.create=function(t){return new Oi(t.x,t.y,t.width,t.height)},Oi.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},Oi.applyTransform=function(t,e,n){if(n){if(n[1]<1e-5&&-1e-5this._sleepAfterStill&&this.animation.stop())},ho.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},ho.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},ho.prototype.addHover=function(t){},ho.prototype.removeHover=function(t){},ho.prototype.clearHover=function(){},ho.prototype.refreshHover=function(){this._needsRefreshHover=!0},ho.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},ho.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},ho.prototype.clearAnimation=function(){this.animation.clear()},ho.prototype.getWidth=function(){return this.painter.getWidth()},ho.prototype.getHeight=function(){return this.painter.getHeight()},ho.prototype.pathToImage=function(t,e){if(this.painter.pathToImage)return this.painter.pathToImage(t,e)},ho.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},ho.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},ho.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},ho.prototype.off=function(t,e){this.handler.off(t,e)},ho.prototype.trigger=function(t,e){this.handler.trigger(t,e)},ho.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e=e.maxIterations){t+=e.ellipsis;break}var a=0===r?function(t,e,n,i){for(var o=0,r=0,a=t.length;rr){0i.width&&(r=e.split("\n"),p=!0),i.accumWidth=s):(s=kr(e,c,i.width,i.breakAll,i.accumWidth),i.accumWidth=s.accumWidth+n,a=s.linesWidths,r=s.lines)):r=e.split("\n");for(var d=0;dthis._ux||i>this._uy;return this.addData(_a.L,t,e),this._ctx&&o&&(this._needsDash?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),o?(this._xi=t,this._yi=e,this._pendingPtDist=0):(i=n*n+i*i)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=i),this},Fa.prototype.bezierCurveTo=function(t,e,n,i,o,r){return this._drawPendingPt(),this.addData(_a.C,t,e,n,i,o,r),this._ctx&&(this._needsDash?this._dashedBezierTo(t,e,n,i,o,r):this._ctx.bezierCurveTo(t,e,n,i,o,r)),this._xi=o,this._yi=r,this},Fa.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(_a.Q,t,e,n,i),this._ctx&&(this._needsDash?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},Fa.prototype.arc=function(t,e,n,i,o,r){return this._drawPendingPt(),za[0]=i,za[1]=o,Va(za,r),i=za[0],o=za[1],this.addData(_a.A,t,e,n,n,i,o-i,0,r?0:1),this._ctx&&this._ctx.arc(t,e,n,i,o,r),this._xi=Aa(o)*n+t,this._yi=ka(o)*n+e,this},Fa.prototype.arcTo=function(t,e,n,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,o),this},Fa.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(_a.R,t,e,n,i),this},Fa.prototype.closePath=function(){this._drawPendingPt(),this.addData(_a.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},Fa.prototype.fill=function(t){t&&t.fill(),this.toStatic()},Fa.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},Fa.prototype.setLineDash=function(t){if(t instanceof Array){this._lineDash=t;for(var e=this._dashIdx=0,n=0;nu.length&&(this._expandData(),u=this.data);for(var h=0;hn||Pa(v)>i||c===e-1)&&(f=Math.sqrt(m*m+v*v),o=g,r=y);break;case _a.C:var x=t[c++],_=t[c++],b=(g=t[c++],y=t[c++],t[c++]),w=t[c++],f=function(t,e,n,i,o,r,a,s,l){for(var u=t,h=e,c=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=Jr(t,n,o,a,f),y=Jr(e,i,r,s,f),m=g-u,f=y-h;c+=Math.sqrt(m*m+f*f),u=g,h=y}return c}(o,r,x,_,g,y,b,w,10),o=b,r=w;break;case _a.Q:f=function(t,e,n,i,o,r,a){for(var s=t,l=e,u=0,h=1/a,c=1;c<=a;c++){var p=c*h,d=ia(t,n,o,p),f=ia(e,i,r,p),g=d-s,p=f-l;u+=Math.sqrt(g*g+p*p),s=d,l=f}return u}(o,r,x=t[c++],_=t[c++],g=t[c++],y=t[c++],10),o=g,r=y;break;case _a.A:var S=t[c++],M=t[c++],I=t[c++],T=t[c++],C=t[c++],b=t[c++],w=b+C;c+=1,t[c++],d&&(a=Aa(C)*I+S,s=ka(C)*T+M),f=Da(I,T)*Ca(Ra,Math.abs(b)),o=Aa(w)*I+S,r=ka(w)*T+M;break;case _a.R:a=o=t[c++],s=r=t[c++];f=2*t[c++]+2*t[c++];break;case _a.Z:m=a-o,v=s-r,f=Math.sqrt(m*m+v*v),o=a,r=s}0<=f&&(u+=l[h++]=f)}return this._pathLen=u},Fa.prototype.rebuildPath=function(t,e){var n,i,o,r,a,s,l,u,h=this.data,c=this._ux,p=this._uy,d=this._len,f=e<1,g=0,y=0,m=0;if(!f||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var v=0;v=Ka[i=0]+t&&a<=Ka[1]+t?l:0}oMath.PI/2&&c<1.5*Math.PI?-l:l))}return u}(y,m,x,_,_+b,w,I,o);u=Math.cos(_+b)*v+y,h=Math.sin(_+b)*x+m;break;case Za.R:c=u=a[d++],p=h=a[d++];if(S=c+a[d++],M=p+a[d++],n){if(Ga(c,p,S,p,e,i,o)||Ga(S,p,S,M,e,i,o)||Ga(S,M,c,M,e,i,o)||Ga(c,M,c,p,e,i,o))return!0}else l+=Xa(S,p,S,M,i,o),l+=Xa(c,M,c,p,i,o);break;case Za.Z:if(n){if(Ga(u,h,c,p,e,i,o))return!0}else l+=Xa(u,h,c,p,i,o);u=c,h=p}}return n||(r=h,t=p,Math.abs(r-t)"'])/g,hh={"&":"&","<":"<",">":">",'"':""","'":"'"};function ch(t){return null==t?"":(t+"").replace(uh,function(t,e){return hh[e]})}function ph(t,e,n){function i(t){return t&&ht(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?Mo(t):t;if(!isNaN(+r))return Uu(r,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return J(t)?i(t):Q(t)&&o(t)?t+"":"-";e=Ao(t);return o(e)?ah(e):J(t)?i(t):"boolean"==typeof t?t+"":"-"}function dh(t,e){return"{"+t+(null==e?"":e)+"}"}var fh=["a","b","c","d","e","f","g"];function gh(t,e,n){var i=(e=!j(e)?[e]:e).length;if(!i)return"";for(var o=e[0].$vars||[],r=0;re)return t[i];return t[n-1]}(i,a):n)||n)&&a.length){n=a[t];return o&&(r[o]=n),e.paletteIdx=(t+1)%a.length,n}}function pc(t){throw new Error(t)}var dc,fc="\0_ec_inner",ur=(d(gc,dc=wu),gc.prototype.init=function(t,e,n,i,o,r){i=i||{},this.option=null,this._theme=new wu(i),this._locale=new wu(o),this._optionManager=r},gc.prototype.setOption=function(t,e,n){e=vc(e);this._optionManager.setOption(t,n,e),this._resetOption(null,e)},gc.prototype.resetOption=function(t,e){return this._resetOption(t,vc(e))},gc.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)):rc(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||(o=o.getMediaOption(this)).length&&G(o,function(t){i=!0,this._mergeOption(t,e)},this),i},gc.prototype.mergeOption=function(t){this._mergeOption(t,null)},gc.prototype._mergeOption=function(i,t){var o=this.option,u=this._componentsMap,h=this._componentsCount,n=[],r=yt(),c=t&&t.replaceMergeMainTypeMap;Kh(this).datasetMap=yt(),G(i,function(t,e){null!=t&&(Vh.hasClass(e)?e&&(n.push(e),r.set(e,!0)):o[e]=null==o[e]?P(t):O(o[e],t,!0))}),c&&c.each(function(t,e){Vh.hasClass(e)&&!r.get(e)&&(n.push(e),r.set(e,!0))}),Vh.topologicalTravel(n,Vh.getAllClassMainTypes(),function(r){var t,e=(e=this,n=No(i[t=r]),(t=nc.get(t))&&(e=t(e))?n.concat(e):n),n=u.get(r);Yo(n=Bo(n,e,n?c&&c.get(r)?"replaceMerge":"normalMerge":"replaceAll"),r,Vh),o[r]=null,u.set(r,null),h.set(r,0);var a=[],s=[],l=0;G(n,function(t,e){var n=t.existing,i=t.newOption;if(i){var o=Vh.getClass(r,t.keyInfo.subType,!("series"===r));if(!o)return;n&&n.constructor===o?(n.name=t.keyInfo.name,n.mergeOption(i,this),n.optionUpdated(i,!1)):(e=N({componentIndex:e},t.keyInfo),N(n=new o(i,this,this,e),e),t.brandNew&&(n.__requireNewView=!0),n.init(i,this,this),n.optionUpdated(null,!0))}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(a.push(n.option),s.push(n),l++):(a.push(void 0),s.push(void 0))},this),o[r]=a,u.set(r,s),h.set(r,l),"series"===r&&ic(this)},this),this._seriesIndices||ic(this)},gc.prototype.getOption=function(){var a=P(this.option);return G(a,function(t,e){if(Vh.hasClass(e)){for(var n=No(t),i=n.length,o=!1,r=i-1;0<=r;r--)n[r]&&!Uo(n[r])?o=!0:(n[r]=null,o||i--);n.length=i,a[e]=n}}),delete a[fc],a},gc.prototype.getTheme=function(){return this._theme},gc.prototype.getLocaleModel=function(){return this._locale},gc.prototype.setUpdatePayload=function(t){this._payload=t},gc.prototype.getUpdatePayload=function(){return this._payload},gc.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){t=n[e||0];if(t)return t;if(null==e)for(var i=0;ig[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},ld.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,o=this._chunks,r=this._dimensions,a=r.length,s=this._rawExtent,l=H(r,function(t){return t.property}),u=0;uf[1]&&(f[1]=g)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},ld.prototype.count=function(){return this._count},ld.prototype.get=function(t,e){if(!(0<=e&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return r;o=r-1}}return-1},ld.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],o=[];if(!i)return o;null==n&&(n=1/0);for(var r=1/0,a=-1,s=0,l=0,u=this.count();lt[S][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(f))}return sy[1]&&(y[1]=g)}}},ld.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(nd(this._rawCount))(Math.ceil(r/s)+2);u[a++]=l;for(var h=1;hh[1]&&(h[1]=y),c[p++]=m}return o._count=p,o._indices=c,o._updateGetRawIdx(),o},ld.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,o=0,r=this.count();o'+ch(e)+""+a,n)}},nameValue:{planLayout:function(t){t.__gapLevelBetweenSubBlocks=0},build:function(t,e,n,i){var o=t.renderMode,r=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=e.value,h=t.useUTC;if(!r||!a){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",o),p=r?"":ph(l,"ordinal",h),d=e.valueType,f=a?[]:j(u)?H(u,function(t,e){return ph(t,j(d)?d[e]:d,h)}):[ph(u,j(d)?d[0]:d,h)],l=!s||!r,e=!s&&r,u=fd(i,o),i=u.nameStyle,u=u.valueStyle;return"richText"===o?(s?"":c)+(r?"":Sd(t,p,i))+(a?"":function(t,e,n,i,o){o=[o],i=i?10:20;return n&&o.push({padding:[0,0,0,i],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(e.join(" "),o)}(t,f,l,e,u)):wd((s?"":c)+(r?"":''+ch(p)+"")+(a?"":function(t,e,n,i){n=n?"10px":"20px";return''+H(t,ch).join("  ")+""}(f,l,e,u)),n)}}}};function _d(t,e,n,i,o,r){if(t){var a=vd(t);return a.planLayout(t),a.build({useUTC:o,renderMode:n,orderMode:i,markupStyleCreator:e},t,0,r)}}function bd(t){t=t.__gapLevelBetweenSubBlocks;return{html:gd[t],richText:yd[t]}}function wd(t,e){return'
'+t+'
'}function Sd(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Md(t,e){return yh(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function Id(t,e){t=t.get("padding");return null!=t?t:"richText"===e?[8,10]:10}var Td=(Cd.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},Cd.prototype.makeTooltipMarker=function(t,e,n){var i,o,r="richText"===n?this._generateStyleName():null,t=(e=K(i={color:e,type:t,renderMode:n,markerId:r})?{color:i,extraCssText:o}:i||{},t=e.color,n=e.type,o=e.extraCssText,i=e.renderMode||"html",t?"html"===i?"subItem"===n?'':'':{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 K(t)?t:(this.richTextStyles[r]=t.style,t.content)},Cd.prototype.wrapRichTextStyle=function(t,e){var n={};j(e)?G(e,function(t){return N(n,t)}):N(n,e);e=this._generateStyleName();return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"},Cd);function Cd(){this.richTextStyles={},this._nextStyleNameId=Lo()}function Dd(t){var e,n,i,o,r,a,s,l,u,h,c,p=t.series,d=t.dataIndex,f=t.multipleSeries,g=p.getData(),y=g.mapDimensionsAll("defaultedTooltip"),m=y.length,v=p.getRawValue(d),x=j(v),t=Md(p,d);function _(t,e){e=s.getDimensionInfo(e);e&&!1!==e.otherDims.tooltip&&(l?c.push(md("nameValue",{markerType:"subItem",markerColor:a,name:e.displayName,value:t,valueType:e.type})):(u.push(t),h.push(e.type)))}1this.getShallow("animationThreshold")?!1:t)},Od.prototype.restoreData=function(){this.dataTask.dirty()},Od.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return lc.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},Od.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},Od.prototype.getProgressive=function(){return this.get("progressive")},Od.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},Od.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},Od.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n)for(var i=this.getData(e),o=0;oe.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Vd(e,n){G(mt(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,Z(Bd,n))})}function Bd(t,e){t=Fd(t);return t&&t.setOutputEnd((e||this).count()),e}function Fd(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){e=n.currentTask;return!e||(n=e.agentStubMap)&&(e=n.get(t.uid)),e}}B(Jn,fu),B(Jn,lc),lr(Jn,Vh);var Gd=Jn,fs=(Hd.prototype.init=function(t,e){},Hd.prototype.render=function(t,e,n,i){},Hd.prototype.dispose=function(t,e){},Hd.prototype.updateView=function(t,e,n,i){},Hd.prototype.updateLayout=function(t,e,n,i){},Hd.prototype.updateVisual=function(t,e,n,i){},Hd.prototype.blurSeries=function(t,e){},Hd);function Hd(){this.group=new ro,this.uid=Mu("viewComponent")}sr(fs),pr(fs);var Wd=fs;function Ud(){var r=Zo();return function(t){var e=r(t),n=t.pipelineContext,i=!!e.large,o=!!e.progressiveRender,t=e.large=!(!n||!n.large),n=e.progressiveRender=!(!n||!n.progressiveRender);return!(i==t&&o==n)&&"reset"}}var Yd=Zo(),Xd=Ud(),ur=(Zd.prototype.init=function(t,e){},Zd.prototype.render=function(t,e,n,i){},Zd.prototype.highlight=function(t,e,n,i){qd(t.getData(),i,"emphasis")},Zd.prototype.downplay=function(t,e,n,i){qd(t.getData(),i,"normal")},Zd.prototype.remove=function(t,e){this.group.removeAll()},Zd.prototype.dispose=function(t,e){},Zd.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},Zd.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},Zd.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},Zd.markUpdateMethod=function(t,e){Yd(t).updateMethod=e},Zd.protoInitialize=void(Zd.prototype.type="chart"),Zd);function Zd(){this.group=new ro,this.uid=Mu("viewChart"),this.renderTask=_p({plan:Kd,reset:Jd}),this.renderTask.context={view:this}}function jd(t,e,n){t&&("emphasis"===e?xl:_l)(t,n)}function qd(e,t,n){var i,o=Xo(e,t),r=t&&null!=t.highlightKey?(i=t.highlightKey,t=null==(t=Ws[i])&&Hs<=32?Ws[i]=Hs++:t):null;null!=o?G(No(o),function(t){jd(e.getItemGraphicEl(t),n,r)}):e.eachItemGraphicEl(function(t){jd(t,n,r)})}function Kd(t){return Xd(t.model)}function Jd(t){var e=t.model,n=t.ecModel,i=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,a=t.view,t=o&&Yd(o).updateMethod,t=r?"incrementalPrepareRender":t&&a[t]?t:"render";return"render"!==t&&a[t](e,n,i,o),Qd[t]}sr(ur),pr(ur);var Qd={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)}}},$d=ur,tf="\0__throttleOriginMethod",ef="\0__throttleRate",nf="\0__throttleType";function of(t,o,r){var a,s,l,u,h,c=0,p=0,d=null;function f(){p=(new Date).getTime(),d=null,t.apply(l,u||[])}o=o||0;function e(){for(var t=[],e=0;en.blockIndex?n.step:null,i=i&&i.modDataCount;return{step:n,modBy:null!=i?Math.ceil(i/n):null,modDataCount:i}}},mf.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},mf.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,e=t.get("large")&&i>=t.get("largeThreshold"),i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:i,large:e}},mf.prototype.restorePipelines=function(t){var i=this,o=i._pipelineMap=yt();t.eachSeries(function(t){var e=t.getProgressive(),n=t.uid;o.set(n,{id:n,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:e&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(e||700),count:0}),i._pipe(t,t.dataTask)})},mf.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),o=this.api;G(this._allHandlers,function(t){var e=n.get(t.uid)||n.set(t.uid,{});ut(!(t.reset&&t.overallReset),""),t.reset&&this._createSeriesStageTask(t,e,i,o),t.overallReset&&this._createOverallStageTask(t,e,i,o)},this)},mf.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)},mf.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},mf.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},mf.prototype._performStageTasks=function(t,s,l,u){u=u||{};var h=!1,c=this;function p(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}G(t,function(i,t){var e,n,o,r,a;u.visualType&&u.visualType!==i.visualType||(e=(r=c._stageTaskMap.get(i.uid)).seriesTaskMap,(n=r.overallTask)?((r=n.agentStubMap).each(function(t){p(u,t)&&(t.dirty(),o=!0)}),o&&n.dirty(),c.updatePayload(n,l),a=c.getPerformArgs(n,u.block),r.each(function(t){t.perform(a)}),n.perform(a)&&(h=!0)):e&&e.each(function(t,e){p(u,t)&&t.dirty();var n=c.getPerformArgs(t,u.block);n.skip=!i.performRawSeries&&s.isSeriesFiltered(t.context.model),c.updatePayload(t,l),t.perform(n)&&(h=!0)}))}),this.unfinished=h||this.unfinished},mf.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},mf.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())})},mf.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},mf.prototype._createSeriesStageTask=function(n,t,i,o){var r=this,a=t.seriesTaskMap,s=t.seriesTaskMap=yt(),e=n.seriesType,t=n.getTargetSeries;function l(t){var e=t.uid,e=s.set(e,a&&a.get(e)||_p({plan:wf,reset:Sf,count:Tf}));e.context={model:t,ecModel:i,api:o,useClearVisual:n.isVisual&&!n.isLayout,plan:n.plan,reset:n.reset,scheduler:r},r._pipe(t,e)}n.createOnAllSeries?i.eachRawSeries(l):e?i.eachRawSeriesByType(e,l):t&&t(i,o).each(l)},mf.prototype._createOverallStageTask=function(t,e,n,i){var o=this,r=e.overallTask=e.overallTask||_p({reset:vf});r.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o};var a=r.agentStubMap,s=r.agentStubMap=yt(),l=t.seriesType,e=t.getTargetSeries,u=!0,h=!1;function c(t){var e=t.uid,e=s.set(e,a&&a.get(e)||(h=!0,_p({reset:xf,onDirty:bf})));e.context={model:t,overallProgress:u},e.agent=r,e.__block=u,o._pipe(t,e)}ut(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,c):e?e(n,i).each(c):(u=!1,G(n.getSeries(),c)),h&&r.dirty()},mf.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},mf.wrapStageHandler=function(t,e){return(t=q(t)?{overallReset:t,seriesType:function(t){Cf=null;try{t(Df,Af)}catch(t){}return Cf}(t)}:t).uid=Mu("stageHandler"),e&&(t.visualType=e),t},mu=mf;function mf(t,e,n,i){this._stageTaskMap=yt(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function vf(t){t.overallReset(t.ecModel,t.api,t.payload)}function xf(t){return t.overallProgress&&_f}function _f(){this.agent.dirty(),this.getDownstream().dirty()}function bf(){this.agent&&this.agent.dirty()}function wf(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Sf(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=No(t.reset(t.model,t.ecModel,t.api,t.payload));return 1i.len()&&(uMath.abs(o[1])?0>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);s+=o,l+=r,i.push([(o=s)/n,(r=l)/n])}return i}function b0(t,o){return H(U((t=function(t){if(!t.UTF8Encoding)return t;var e=(t=t).UTF8Scale;null==e&&(e=1024);for(var n=t.features,i=0;i'+t.dom+""}),f.painter.getSvgRoot().innerHTML=g,i.connectedBackgroundColor&&f.painter.setBackgroundColor(i.connectedBackgroundColor),f.refreshImmediately(),f.painter.toDataURL()}return i.connectedBackgroundColor&&f.add(new Ts({shape:{x:0,y:0,width:t,height:n},style:{fill:i.connectedBackgroundColor}})),G(p,function(t){t=new ys({style:{x:t.left*e-l,y:t.top*e-u,image:t.dom}});f.add(t)}),f.refreshImmediately(),d.toDataURL("image/"+(i&&i.type||"png"))}return this.getDataURL(i)}},gv.prototype.convertToPixel=function(t,e){return q0(this,"convertToPixel",t,e)},gv.prototype.convertFromPixel=function(t,e){return q0(this,"convertFromPixel",t,e)},gv.prototype.containPixel=function(t,i){var o;if(!this._disposed)return G(qo(this._model,t),function(t,n){0<=n.indexOf("Models")&&G(t,function(t){var e=t.coordinateSystem;e&&e.containPoint?o=o||!!e.containPoint(i):"seriesModels"!==n||(e=this._chartsMap[t.__viewId])&&e.containPoint&&(o=o||e.containPoint(i,t))},this)},this),!!o;bv(this.id)},gv.prototype.getVisual=function(t,e){var n=qo(this._model,t,{defaultMainType:"series"}),t=n.seriesModel.getData(),n=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?t.indexOfRawIndex(n.dataIndex):null;return null!=n?zf(t,n,e):Ef(t,e)},gv.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},gv.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},gv.prototype._initEvents=function(){var t,n,i,s=this;G(_v,function(a){function t(t){var n,e,i,o=s.getModel(),r=t.target;"globalout"===a?n={}:r&&Gf(r,function(t){var e=Gs(t);if(e&&null!=e.dataIndex){t=e.dataModel||o.getSeriesByIndex(e.seriesIndex);return n=t&&t.getDataParams(e.dataIndex,e.dataType)||{},1}return e.eventData&&(n=N({},e.eventData),1)},!0),n&&(e=n.componentType,i=n.componentIndex,"markLine"!==e&&"markPoint"!==e&&"markArea"!==e||(e="series",i=n.seriesIndex),i=(e=e&&null!=i&&o.getComponent(e,i))&&s["series"===e.mainType?"_chartsMap":"_componentsMap"][e.__viewId],n.event=t,n.type=a,s._$eventProcessor.eventInfo={targetEl:r,packedEvent:n,model:e,view:i},s.trigger(a,n))}t.zrEventfulCallAtLast=!0,s._zr.on(a,t,s)}),G(Sv,function(t,e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),G(["selectchanged"],function(e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),t=this._messageCenter,i=(n=this)._api,t.on("selectchanged",function(t){var e=i.getModel();t.isFromClick?(Ff("map","selectchanged",n,e,t),Ff("pie","selectchanged",n,e,t)):"select"===t.fromAction?(Ff("map","selected",n,e,t),Ff("pie","selected",n,e,t)):"unselect"===t.fromAction&&(Ff("map","unselected",n,e,t),Ff("pie","unselected",n,e,t))})},gv.prototype.isDisposed=function(){return this._disposed},gv.prototype.clear=function(){this._disposed?bv(this.id):this.setOption({series:[]},!0)},gv.prototype.dispose=function(){var t,e,n;this._disposed?bv(this.id):(this._disposed=!0,tr(this.getDom(),Pv,""),e=(t=this)._api,n=t._model,G(t._componentsViews,function(t){t.dispose(n,e)}),G(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 Av[t.id])},gv.prototype.resize=function(t){var e,n;this._disposed?bv(this.id):(this._zr.resize(t),n=this._model,this._loadingFX&&this._loadingFX.resize(),n&&(e=n.resetOption("media"),n=t&&t.silent,this[V0]&&(null==n&&(n=this[V0].silent),e=!0,this[V0]=null),this[E0]=!0,e&&Y0(this),j0.update.call(this,{type:"resize",animation:N({duration:0},t&&t.animation)}),this[E0]=!1,Q0.call(this,n),$0.call(this,n)))},gv.prototype.showLoading=function(t,e){this._disposed?bv(this.id):($(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Dv[t]&&(t=Dv[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},gv.prototype.hideLoading=function(){this._disposed?bv(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},gv.prototype.makeActionFromEvent=function(t){var e=N({},t);return e.type=Sv[t.type],e},gv.prototype.dispatchAction=function(t,e){var n;this._disposed?bv(this.id):($(e)||(e={silent:!!e}),wv[t.type]&&this._model&&(this[E0]?this._pendingActions.push(t):(n=e.silent,J0.call(this,t,n),(e=e.flush)?this._zr.flush():!1!==e&&w.browser.weChat&&this._throttledZrFlush(),Q0.call(this,n),$0.call(this,n))))},gv.prototype.updateLabelLayout=function(){N0.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},gv.prototype.appendData=function(t){var e;this._disposed?bv(this.id):(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},gv.internalField=(Y0=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),X0(t,!0),X0(t,!1),e.plan()},X0=function(t,o){for(var r=t._model,a=t._scheduler,s=o?t._componentsViews:t._chartsViews,l=o?t._componentsMap:t._chartsMap,u=t._zr,h=t._api,e=0;el.get("hoverLayerThreshold")&&!w.node&&!w.worker&&l.eachSeries(function(t){t.preventUsingHoverLayer||(t=i._chartsMap[t.__viewId]).__alive&&t.group.traverse(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}),N0.trigger("series:afterupdate",t,e,n)},lv=function(t){t[B0]=!0,t.getZr().wakeUp()},uv=function(t){t[B0]&&(t.getZr().storage.traverse(function(t){Yl(t)||yv(t)}),t[B0]=!1)},av=function(n){return d(t,e=xc),t.prototype.getCoordinateSystems=function(){return n._coordSysMgr.getCoordinateSystems()},t.prototype.getComponentByElement=function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return n._model.getComponent(e.mainType,e.index);t=t.parent}},t.prototype.enterEmphasis=function(t,e){xl(t,e),lv(n)},t.prototype.leaveEmphasis=function(t,e){_l(t,e),lv(n)},t.prototype.enterBlur=function(t){bl(t),lv(n)},t.prototype.leaveBlur=function(t){wl(t),lv(n)},t.prototype.enterSelect=function(t){Sl(t),lv(n)},t.prototype.leaveSelect=function(t){Ml(t),lv(n)},t.prototype.getModel=function(){return n.getModel()},t.prototype.getViewOfComponentModel=function(t){return n.getViewOfComponentModel(t)},t.prototype.getViewOfSeriesModel=function(t){return n.getViewOfSeriesModel(t)},new t(n);function t(){return null!==e&&e.apply(this,arguments)||this}var e},void(sv=function(i){function o(t,e){for(var n=0;n=u}}for(var a=this.__startIndex;ao[0]){for(l=0;lt);l++);s=i[o[l]]}o.splice(l+1,0,t),(i[t]=e).virtual||(s?(s=s.dom).nextSibling?a.insertBefore(e.dom,s.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.__painter=this}else L("Layer of zlevel "+t+" is not valid")},z1.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i=h&&c<=e+1){for(var n=[],i=0;i=h&&c<=o+1)return function(t){for(var e=0,n=t.length,i=0,o=0;e\n\r<"))},Ox);function zx(t){return null==t?0:t.length||1}function Ex(t){return t}var Vx=(Gx.prototype.add=function(t){return this._add=t,this},Gx.prototype.update=function(t){return this._update=t,this},Gx.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},Gx.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},Gx.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},Gx.prototype.remove=function(t){return this._remove=t,this},Gx.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},Gx.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;ri)return!1;return!0}(o,e))){var r=e.mapDimension(o.dim),a={};return G(o.getViewLabels(),function(t){t=o.scale.getRawOrdinalNumber(t.tickValue);a[t]=1}),function(t){return!a.hasOwnProperty(e.get(r,t))}}}}function cb(t){for(var e,n,i=t.length/2;0u[h-1].coord&&(u.reverse(),c.reverse());e=ub(u,"x"===a?n.getWidth():n.getHeight()),n=e.length;if(!n&&h)return u[0].coord<0?c[1]||u[h-1].color:c[0]||u[0].color;var p=e[0].coord-10,u=e[n-1].coord+10,d=u-p;if(d<.001)return"transparent";G(e,function(t){t.offset=(t.coord-p)/d}),e.push({offset:n?e[n-1].offset:.5,color:c[1]||"transparent"}),e.unshift({offset:n?e[0].offset:.5,color:c[0]||"transparent"});e=new fy(0,0,0,0,e,!0);return e[a]=p,e[a+"2"]=u,e}}}(a,o,n)||a.getVisual("style")[a.getVisual("drawType")];d&&c.type===o.type&&M===this._step?(m&&!f?f=this._newPolygon(u,_):f&&!m&&(g.remove(f),f=this._polygon=null),h||this._initOrUpdateEndLabel(t,o,yh(x)),(c=g.getClipPath())?Ul(c,{shape:fb(this,o,!1,t).shape},t):g.setClipPath(fb(this,o,!0,t)),b&&p.updateData(a,{isIgnore:w,clipShape:I,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),ob(this._stackedOnPoints,_)&&ob(this._points,u)||(y?this._doUpdateAnimation(a,_,o,n,M,v):(M&&(u=lb(u,o,M),_=_&&lb(_,o,M)),d.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:_})))):(b&&p.updateData(a,{isIgnore:w,clipShape:I,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),y&&this._initSymbolLabelAnimation(a,o,I),M&&(u=lb(u,o,M),_=_&&lb(_,o,M)),d=this._newPolyline(u),m&&(f=this._newPolygon(u,_)),h||this._initOrUpdateEndLabel(t,o,yh(x)),g.setClipPath(fb(this,o,!0,t)));w=t.get(["emphasis","focus"]),y=t.get(["emphasis","blurScope"]);d.useStyle(z(s.getLineStyle(),{fill:"none",stroke:x,lineJoin:"bevel"})),Nl(d,t,"lineStyle"),0e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":a?0<=o.height?"bottom":"top":0<=o.width?"right":"left",u=tu(i);$l(t,u,{labelFetcher:r,labelDataIndex:n,defaultText:I_(r.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});l=t.getTextContent();s&&l&&(s=i.get(["label","position"]),t.textConfig.inside="middle"===s||null,function(t,e,n,i){if("number"!=typeof i)if(j(e))t.setTextConfig({rotation:0});else{var o,r=t.shape,a=r.clockwise?r.startAngle:r.endAngle,s=r.clockwise?r.endAngle:r.startAngle,l=(a+s)/2,n=n(e);switch(n){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":o=l;break;case"startAngle":case"insideStartAngle":o=a;break;case"endAngle":case"insideEndAngle":o=s;break;default:return t.setTextConfig({rotation:0})}e=1.5*Math.PI-o;"middle"===n&&e>Math.PI/2&&e<1.5*Math.PI&&(e-=Math.PI),t.setTextConfig({rotation:e})}else t.setTextConfig({rotation:i})}(t,"outside"===s?h:s,rw(a),i.get(["label","rotate"]))),uu(l,u,r.getRawValue(n),function(t){return T_(e,t)});n=i.getModel(["emphasis"]);Ll(t,n.get("focus"),n.get("blurScope")),Nl(t,i),null!=(o=o).startAngle&&null!=o.endAngle&&o.startAngle===o.endAngle&&(t.style.fill="none",t.style.stroke="none",G(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var sw,lw=function(){},uw=(d(hw,sw=as),hw.prototype.getDefaultShape=function(){return new lw},hw.prototype.buildPath=function(t,e){for(var n=e.points,i=this.__startPoint,o=this.__baseDimIdx,r=0;rh?n:e,(a=Math.abs(o.label.y-h))>r.maxY&&(s=o.label.x-u-o.len2*p,l=c+o.len,l=Math.abs(s)Math.PI/2&&(h-=Math.PI):h=0),k=!!h,f.x=r,f.y=a,f.rotation=h,f.setStyle({verticalAlign:"middle"}),i?(f.setStyle({align:l}),(c=f.states.select)&&(c.x+=f.x,c.y+=f.y)):((h=f.getBoundingRect().clone()).applyTransform(f.getComputedTransform()),c=(f.style.margin||0)+2.1,h.y-=c/2,h.height+=c,A.push({label:f,labelLine:g,position:v,len:M,len2:I,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new bi(e,n),linePoints:s,textAlign:l,labelDistance:x,labelAlignTo:_,edgeDistance:b,bleedMargin:w,rect:h})),p.setTextConfig({inside:i}))}),!k&&t.get("avoidLabelOverlap")&&function(t,e,n,i,o,r,a,s){for(var l=[],u=[],h=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;p=n.r0}},kw.type="pie",kw);function kw(){var t=null!==Tw&&Tw.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}function Lw(t,e,n){var i=Cw.call(this)||this;i.z2=2;var o=new Fs;return i.setTextContent(o),i.updateData(t,e,n,!0),i}function Pw(t,e,n){e=j(e)?{coordDimensions:e}:N({encodeDefine:t.getEncode()},e);var i=t.getSource(),e=d_(i,e).dimensions,t=new c_(e,t);return t.initData(i,n),t}var Ow,Rw=(Ew.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},Ew.prototype.containName=function(t){return 0<=this._getRawData().indexOfName(t)},Ew.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},Ew.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},Ew),Nw=(d(zw,Ow=Gd),zw.prototype.init=function(t){Ow.prototype.init.apply(this,arguments),this.legendVisualProvider=new Rw(X(this.getData,this),X(this.getRawData,this)),this._defaultLabelLine(t)},zw.prototype.mergeOption=function(){Ow.prototype.mergeOption.apply(this,arguments)},zw.prototype.getInitialData=function(){return Pw(this,{coordDimensions:["value"],encodeDefaulter:Z(Qh,this)})},zw.prototype.getDataParams=function(t){var e=this.getData(),n=Ow.prototype.getDataParams.call(this,t),i=[];return e.each(e.mapDimension("value"),function(t){i.push(t)}),n.percent=function(t,e,n){if(!t[e])return 0;var i=W(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var o=Math.pow(10,n),t=H(t,function(t){return(isNaN(t)?0:t)/i*o*100}),r=100*o,a=H(t,function(t){return Math.floor(t)}),s=W(a,function(t,e){return t+e},0),l=H(t,function(t,e){return t-a[e]});su&&(u=l[c],h=c);++a[h],l[h]=0,++s}return a[e]/o}(i,t,e.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},zw.prototype._defaultLabelLine=function(t){zo(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},zw.type="series.pie",zw.defaultOption={zlevel:0,z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},zw);function zw(){return null!==Ow&&Ow.apply(this,arguments)||this}function Ew(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}var Vw,Bw,Fw,Gw,Hw,Ww=(d(iS,Hw=Gd),iS.prototype.getInitialData=function(t,e){return w_(null,this,{useEncodeDefaulter:!0})},iS.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},iS.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},iS.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},iS.type="series.scatter",iS.dependencies=["grid","polar","geo","singleAxis","calendar"],iS.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,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"}},iS),Uw=function(){},Yw=(d(nS,Gw=as),nS.prototype.getDefaultShape=function(){return new Uw},nS.prototype.buildPath=function(t,e){var n=e.points,i=e.size,o=this.symbolProxy,r=o.shape,e=t.getContext?t.getContext():t;if(e&&i[0]<4)this._ctx=e;else{this._ctx=null;for(var a=0;ae[1]&&(e[1]=t[1])},pS.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},pS.prototype.getExtent=function(){return this._extent.slice()},pS.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},pS.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},pS.prototype.isBlank=function(){return this._isBlank},pS.prototype.setBlank=function(t){this._isBlank=t},Jn=pS;function pS(t){this._setting=t||{},this._extent=[1/0,-1/0]}pr(Jn);var dS=Jn,fS=yo;function gS(t,e,n,i){var o={},r=t[1]-t[0],e=o.interval=To(r/e,!0);null!=n&&ei[1]&&(i[0]=i[1]),o}function yS(t){return vo(t)+2}function mS(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function vS(t,e){return t>=e[0]&&t<=e[1]}function xS(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function _S(t,e){return t*(e[1]-e[0])+e[0]}var bS,mu=(d(wS,bS=dS),wS.prototype.parse=function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},wS.prototype.contain=function(t){return vS(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},wS.prototype.normalize=function(t){return xS(t=this._getTickNumber(this.parse(t)),this._extent)},wS.prototype.scale=function(t){return t=Math.round(_S(t,this._extent)),this.getRawOrdinalNumber(t)},wS.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},wS.prototype.getMinorTicks=function(t){},wS.prototype.setSortInfo=function(t){if(null!=t){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=t},wS.prototype.getOrdinalMeta=function(){return this._ordinalMeta},wS.prototype.niceTicks=function(){},wS.prototype.niceExtent=function(){},wS.type="ordinal",wS);function wS(t){var e=bS.call(this,t)||this;e.type="ordinal";var t=e.getSetting("ordinalMeta");return j(t=t||new lS({}))&&(t=new lS({categories:H(t,function(t){return $(t)?t.value:t})})),e._ordinalMeta=t,e._extent=e.getSetting("extent")||[0,t.categories.length-1],e}dS.registerClass(mu);var SS,MS=mu,IS=yo,gr=(d(TS,SS=dS),TS.prototype.parse=function(t){return t},TS.prototype.contain=function(t){return vS(t,this._extent)},TS.prototype.normalize=function(t){return xS(t,this._extent)},TS.prototype.scale=function(t){return _S(t,this._extent)},TS.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},TS.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},TS.prototype.getInterval=function(){return this._interval},TS.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=yS(t)},TS.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,r=[];if(!e)return r;n[0]s&&(t?r.push({value:IS(s+e,o)}):r.push({value:n[1]})),r},TS.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),o=1;oi[0]&&h=g[0]&&y<=g[1]&&a++)}h=(g[1]-g[0])/d;if(1.5*h=g[0]&&t.value<=g[1]&&!t.notAdd})}),function(t){return 0n&&(this._approxInterval=n);n=AS.length,n=Math.min(function(t,e,n,i){for(;n>>1;t[o][1]a[1],u(e[0].coord,a[0])&&(i?e[0].coord=a[0]:e.shift()),i&&u(a[0],e[0].coord)&&e.unshift({coord:a[0]}),u(a[1],r.coord)&&(i?r.coord=a[1]:e.pop()),i&&u(r.coord,a[1])&&e.push({coord:a[1]}))}function u(t,e){return t=yo(t),e=yo(e),l?ee[1]&&e.reverse(),e},IM.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},IM.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},IM);function IM(t,e,n,i,o){n=SM.call(this,t,e,n)||this;return n.index=0,n.type=i||"value",n.position=o||"bottom",n}function TM(t,e,n){n=n||{};var i=t.coordinateSystem,o=e.axis,r={},a=o.getAxesOnZeroOf()[0],s=o.position,l=a?"onZero":s,u=o.dim,h=i.getRect(),t=[h.x,h.x+h.width,h.y,h.y+h.height],o={left:0,right:1,top:0,bottom:1,onZero:2},i=e.get("offset")||0,h="x"===u?[t[2]-i,t[3]+i]:[t[0]-i,t[1]+i];a&&(i=a.toGlobalCoord(a.dataToCoord(0)),h[o.onZero]=Math.max(Math.min(i,h[1]),h[0])),r.position=["y"===u?h[o[l]]:t[0],"x"===u?h[o[l]]:t[3]],r.rotation=Math.PI/2*("x"===u?0:1);r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],r.labelOffset=a?h[o[s]]-h[o.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),ot(n.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);e=e.get(["axisLabel","rotate"]);return r.labelRotate="top"===l?-e:e,r.z2=1,r}function CM(t){return"cartesian2d"===t.get("coordinateSystem")}function DM(i){var o={xAxisModel:null,yAxisModel:null};return G(o,function(t,e){var n=e.replace(/Model$/,""),n=i.getReferringComponents(n,Jo).models[0];o[e]=n}),o}function AM(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=rM,this._initCartesian(t,e,n),this.model=t}function kM(t,e){return t.getCoordSysModel()===e}function LM(t,e,n,i){n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,r=t[e],e=n.model,n=e.get(["axisLine","onZero"]),e=e.get(["axisLine","onZeroAxisIndex"]);if(n){if(null!=e)PM(r[e])&&(o=r[e]);else for(var a in r)if(r.hasOwnProperty(a)&&PM(r[a])&&!i[s(r[a])]){o=r[a];break}o&&(i[s(o)]=!0)}function s(t){return t.dim+"_"+t.index}}function PM(t){return t&&"category"!==t.type&&"time"!==t.type&&(e=(t=(e=t).scale.getExtent())[0],t=t[1],!(0s[1]?-1:1,l=["start"===o?s[0]-l*u:"end"===o?s[1]+l*u:(s[0]+s[1])/2,FM(o)?t.labelOffset+r*u:0],null!=(u=e.get("nameRotate"))&&(u=u*RM/180),FM(o)?h=NM.innerTextLayout(t.rotation,null!=u?u:t.rotation,r):(c=t.rotation,p=o,d=s,c=bo((u||0)-c),d=d[0]>d[1],d="start"===p&&!d||"start"!==p&&d,d=wo(c-RM/2)?(f=d?"bottom":"top","center"):wo(c-1.5*RM)?(f=d?"top":"bottom","center"):(f="middle",c<1.5*RM&&RM/2l[1]&&l.reverse(),(o=null==o||o>l[1]?l[1]:o)n[0]&&isFinite(u)&&isFinite(n[0]););else{i=o.getTicks().length-1;hp.x)||(u-=Math.PI)),r=t?"left":"right",p=(m=(y=s.getModel("label")).get("rotate"))*(Math.PI/180),(t=l.getTextContent())&&(l.setTextConfig({position:y.get("position")||r,rotation:null==m?-u:p,origin:"center"}),t.setStyle("verticalAlign","middle")));s=s.get(["emphasis","focus"]),s="ancestor"===s?a.getAncestorsIndices():"descendant"===s?a.getDescendantIndices():null;s&&(Gs(i).focus=s),function(t,e,n,i,o,r,a,s){var l=e.getModel(),u=t.get("edgeShape"),h=t.get("layout"),c=t.getOrient(),p=t.get(["lineStyle","curveness"]),d=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&Wl(g=g||(i.__edge=new py({shape:aT(h,c,p,o,o)})),{shape:aT(h,c,p,r,a)},t);else if("polyline"===u&&"orthogonal"===h&&e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var y=e.children,m=[],v=0;ve&&(e=i.height)}this.height=e+1},xT.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;er&&(r=t.depth)});var a=t.expandAndCollapse&&0<=t.initialTreeDepth?t.initialTreeDepth:r;return o.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a}),o.data},CT.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},CT.prototype.setZoom=function(t){this.option.zoom=t},CT.prototype.setCenter=function(t){this.option.center=t},CT.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,o=i.root.children[0],r=i.getNodeByDataIndex(t),t=r.getValue(),a=r.name;r&&r!==o;)a=r.parentNode.name+"."+a,r=r.parentNode;return md("nameValue",{name:a,value:t,noValue:isNaN(t)||null==t})},CT.prototype.getDataParams=function(t){var e=IT.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(t);return e.treeAncestors=MT(t,this),e},CT.type="series.tree",CT.layoutMode="box",CT.defaultOption={zlevel:0,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},CT);function CT(){var t=null!==IT&&IT.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}function DT(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 AT(t,e){t.eachSeriesByType("tree",function(t){!function(t,e){var n=function(t,e){return Sh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=n;var i=t.get("layout"),o=0,r=0,a=null;a="radial"===i?(o=2*Math.PI,r=Math.min(n.height,n.width)/2,U2(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(o=n.width,r=n.height,U2());e=t.getData().tree.root,n=e.children[0];{var s,l,u,h,c,p,d,f,g;n&&(function(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e,n,i=[t];e=i.pop();)if(n=e.children,e.isExpand&&n.length)for(var o=n.length-1;0<=o;o--){var r=n[o];r.hierNode={defaultAncestor:null,ancestor:r,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(r)}}(e),function(t,e,n){for(var i,o=[t],r=[];i=o.pop();)if(r.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;sl.getLayout().x&&(l=t),t.depth>u.depth&&(u=t)}),a=s===l?1:a(s,l)/2,h=a-s.getLayout().x,f=d=p=c=0,"radial"===i?(c=o/(l.getLayout().x+a+h),p=r/(u.depth-1||1),DT(n,function(t){d=(t.getLayout().x+h)*c,f=(t.depth-1)*p;var e=Y2(d,f);t.setLayout({x:e.x,y:e.y,rawX:d,rawY:f},!0)})):"RL"===(g=t.getOrient())||"LR"===g?(p=r/(l.getLayout().x+a+h),c=o/(u.depth-1||1),DT(n,function(t){f=(t.getLayout().x+h)*p,d="LR"===g?(t.depth-1)*c:o-(t.depth-1)*c,t.setLayout({x:d,y:f},!0)})):"TB"!==g&&"BT"!==g||(c=o/(l.getLayout().x+a+h),p=r/(u.depth-1||1),DT(n,function(t){d=(t.getLayout().x+h)*c,f="TB"===g?(t.depth-1)*p:r-(t.depth-1)*p,t.setLayout({x:d,y:f},!0)})))}}(t,e)})}function kT(t){t.eachSeriesByType("tree",function(t){var n=t.getData();n.tree.eachNode(function(t){var e=t.getModel().getModel("itemStyle").getItemStyle();N(n.ensureUniqueItemVisual(t.dataIndex,"style"),e)})})}var LT,PT=function(){},OT=["treemapZoomToNode","treemapRender","treemapMove"];function RT(t){for(var e=0;e=i.length||t===i[t.depth])&&(e=DC(r,h,t,e,p,o),n(t,e,i,o))})):(l=SC(h),c.fill=l))}}(e,{},t.getViewRoot().getAncestors(),t)}};function wC(n,i,t){var o=N({},i),r=t.designatedVisualItemStyle;return G(["color","colorAlpha","colorSaturation"],function(t){r[t]=i[t];var e=n.get(t);(r[t]=null)!=e&&(o[t]=e)}),o}function SC(t){var e=IC(t,"color");if(e){var n=IC(t,"colorAlpha"),t=IC(t,"colorSaturation");return t&&(e=hn(e,null,null,t)),e=n?cn(e,n):e}}function MC(t,e){return null!=e?hn(e,null,null,t):null}function IC(t,e){e=t[e];if(null!=e&&"none"!==e)return e}function TC(t,e,n,i,o,r){if(r&&r.length){var a=CC(e,"color")||null!=o.color&&"none"!==o.color&&(CC(e,"colorAlpha")||CC(e,"colorSaturation"));if(a){r=e.get("visualMin"),o=e.get("visualMax"),n=n.dataExtent.slice();null!=r&&rn[1]&&(n[1]=o);e=e.get("colorMappingBy"),a={type:a.name,dataExtent:n,visual:a.range};"color"!==a.type||"index"!==e&&"id"!==e?a.mappingMethod="linear":(a.mappingMethod="category",a.loop=!0);a=new vC(a);return _C(a).drColorMappingBy=e,a}}}function CC(t,e){t=t.get(e);return j(t)&&t.length?{name:e,range:t}:null}function DC(t,e,n,i,o,r){var a,s=N({},e);return o&&(t="index"===(e="color"===(a=o.type)&&_C(o).drColorMappingBy)?i:"id"===e?r.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension")),s[a]=o.mapValueToVisual(t)),s}var AC=Math.max,kC=Math.min,LC=ot,PC=G,OC=["itemStyle","borderWidth"],RC=["itemStyle","gapWidth"],NC=["upperLabel","show"],zC=["upperLabel","height"],EC={seriesType:"treemap",reset:function(t,e,n,i){var o,r=n.getWidth(),a=n.getHeight(),s=t.option,l=Sh(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),u=s.size||[],h=go(LC(l.width,u[0]),r),c=go(LC(l.height,u[1]),a),n=i&&i.type,u=bT(i,["treemapZoomToNode","treemapRootToNode"],t),i="treemapRender"===n||"treemapMove"===n?i.rootRect:null,p=t.getViewRoot(),d=wT(p);"treemapMove"!==n&&(c="treemapZoomToNode"===n?function(t,e,n,i,o){var r,a=(e||{}).node,s=[i,o];if(!a||a===n)return s;var n=i*o,l=n*t.option.zoomToNodeRatio;for(;r=a.parentNode;){for(var u=0,h=r.children,c=0,p=h.length;ca[1]&&(a[1]=t)})):a=[NaN,NaN],{sum:i,dataExtent:a}}(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,n,i,o){if(!i)return n;for(var r=t.get("visibleMin"),a=o.length,s=a,l=a-1;0<=l;l--){var u=o["asc"===i?a-l-1:l].getValue();u/n*en[l[a]])&&(h=n[l[a]]);for(var c=0,p=t.length;c "+p)),u++)}var d,i=n.get("coordinateSystem");"cartesian2d"===i||"polar"===i?d=w_(t,n):(V(i=(i=Sc.get(i))&&i.dimensions||[],"value")<0&&i.concat(["value"]),i=d_(t,{coordDimensions:i,encodeDefine:n.getEncode()}).dimensions,(d=new c_(i,n)).initData(t));n=new c_(["value"],n);return n.initData(l,s),o&&o(d,n),yT({mainData:d,struct:r,structAttr:"graph",datas:{node:d,edge:n},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r}var nA,iA=(d(rA,nA=Gd),rA.prototype.init=function(t){nA.prototype.init.apply(this,arguments);var e=this;function n(){return e._categoriesData}this.legendVisualProvider=new Rw(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},rA.prototype.mergeOption=function(t){nA.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},rA.prototype.mergeDefaultAndTheme=function(t){nA.prototype.mergeDefaultAndTheme.apply(this,arguments),zo(t,"edgeLabel",["show"])},rA.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=this;if(i&&n){JC(t=this)&&(t.__curvenessList=[],t.__edgeMap={},XC(t));n=eA(i,n,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t){var e=r._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var n=wu.prototype.getModel;function i(t,e){e=n.call(this,t,e);return e.resolveParentPath=o,e}function o(t){if(!t||"label"!==t[0]&&"label"!==t[1])return t;var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}e.wrapMethod("getItemModel",function(t){return t.resolveParentPath=o,t.getModel=i,t})});return G(n.edges,function(t){var e,n,i;e=t.node1,n=t.node2,i=this,t=t.dataIndex,JC(i)&&(e=QC(e,n,i),i=(n=i.__edgeMap)[ZC(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}},rA.prototype.getGraph=function(){return this.getData().graph},rA.prototype.getEdgeData=function(){return this.getGraph().edgeData},rA.prototype.getCategoriesData=function(){return this._categoriesData},rA.prototype.formatTooltip=function(t,e,n){if("edge"!==n)return Dd({series:this,dataIndex:t,multipleSeries:e});var i=this.getData(),e=this.getDataParams(t,n),n=i.graph.getEdgeByIndex(t),t=i.getName(n.node1.dataIndex),i=i.getName(n.node2.dataIndex),n=[];return null!=t&&n.push(t),null!=i&&n.push(i),md("nameValue",{name:n.join(" > "),value:e.value,noValue:null==e.value})},rA.prototype._updateCategoriesData=function(){var t=H(this.option.categories||[],function(t){return null!=t.value?t:N({value:0},t)}),e=new c_(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t)})},rA.prototype.setZoom=function(t){this.option.zoom=t},rA.prototype.setCenter=function(t){this.option.center=t},rA.prototype.isAnimationEnabled=function(){return nA.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},rA.type="series.graph",rA.dependencies=["grid","polar","geo","singleAxis","calendar"],rA.defaultOption={zlevel:0,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"}}},rA),oA={type:"graphRoam",event:"graphRoam",update:"none"};function rA(){var t=null!==nA&&nA.apply(this,arguments)||this;return t.type=rA.type,t.hasSymbolVisual=!0,t}var aA,sA=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},lA=(d(uA,aA=as),uA.prototype.getDefaultShape=function(){return new sA},uA.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,o=e.r,r=e.width,a=e.angle,s=e.x-n(a)*r*(o/3<=r?1:2),l=e.y-i(a)*r*(o/3<=r?1:2),a=e.angle-Math.PI/2;t.moveTo(s,l),t.lineTo(e.x+n(a)*r,e.y+i(a)*r),t.lineTo(e.x+n(e.angle)*o,e.y+i(e.angle)*o),t.lineTo(e.x-n(a)*r,e.y-i(a)*r),t.lineTo(s,l)},uA);function uA(t){t=aA.call(this,t)||this;return t.type="pointer",t}function hA(t,e){var n=null==t?"":t+"";return e&&("string"==typeof e?n=e.replace("{value}",n):"function"==typeof e&&(n=e(t))),n}var cA,pA,dA=2*Math.PI,fA=(d(mA,pA=$d),mA.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(),l=Math.min(a,l),{cx:go(r[0],o.getWidth()),cy:go(r[1],o.getHeight()),r:go(i.get("radius"),l/2)});this._renderMain(t,e,n,s,l),this._data=t.getData()},mA.prototype.dispose=function(){},mA.prototype._renderMain=function(t,e,n,i,o){for(var r=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),h=u.get("roundCap")?Gb:Wg,c=u.get("show"),p=u.getModel("lineStyle"),d=p.get("width"),f=(l-s)%dA||l===s?(l-s)%dA:dA,g=s,y=0;c&&y=t&&(0===e?0:i[e-1][0])r&&(e[1-i]=e[i]+n.sign*r),e}function ek(t,e){t=t[e]-t[1-e];return{span:Math.abs(t),sign:0o*(1-t[0])?(l="jump",a=s-o*(1-t[2])):0<=(a=s-o*t[1])&&(a=s-o*(1-t[1]))<=0&&(a=0),(a*=e.axisExpandWidth/u)?tk(a,i,r,"all"):l="none"):(a=i[1]-i[0],(i=[rk(0,r[1]*s/a-a/2)])[1]=ok(r[1],i[0]+a),i[0]=i[1]-a),{axisExpandWindow:i,behavior:l}},hk);var dk,fk={create:function(i,o){var r=[];return i.eachComponent("parallel",function(t,e){var n=new pk(t,i,o);n.name="parallel_"+e,n.resize(t,o),(t.coordinateSystem=n).model=t,r.push(n)}),i.eachSeries(function(t){var e;"parallel"===t.get("coordinateSystem")&&(e=t.getReferringComponents("parallel",Jo).models[0],t.coordinateSystem=e.coordinateSystem)}),r}},Jn=(d(gk,dk=Vh),gk.prototype.getAreaSelectStyle=function(){return dr([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},gk.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=P(t);if(e)for(var n=e.length-1;0<=n;n--)mo(e[n])},gk.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=e.length;it.getWidth()||n<0||n>t.getHeight()}(t,e.offsetX,e.offsetY)){var i=t._zr,o=t._covers,r=Ek(t,e,n);if(!t._dragging)for(var a=0;ad&&(d=y.depth),g.setLayout({depth:m?y.depth:c},!0),"vertical"===r?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var v=0;ve);a++);a=Math.min(a-1,o-2)}var s=(e-i[a])/(i[a+1]-i[a]),r=n[a],n=n[a+1];t.x=r[0]*(1-s)+s*n[0],t.y=r[1]*(1-s)+s*n[1];s=n[0]-r[0],r=n[1]-r[1];t.rotation=-Math.atan2(r,s)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=e,t.ignore=!1}},sO),JP=function(){this.polyline=!1,this.curveness=0,this.segs=[]},QP=(d(aO,UP=as),aO.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},aO.prototype.getDefaultShape=function(){return new JP},aO.prototype.buildPath=function(t,e){var n=e.segs,i=e.curveness;if(e.polyline)for(var o=0;o ")})},dO.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},dO.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},dO.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},dO.type="series.lines",dO.dependencies=["grid","polar","geo","calendar"],dO.defaultOption={coordinateSystem:"geo",zlevel:0,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}},dO);function dO(){var t=null!==cO&&cO.apply(this,arguments)||this;return t.type=dO.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}function fO(t){return t=!(t instanceof Array)?[t,t]:t}var gO={seriesType:"lines",reset:function(t){var e=fO(t.get("symbol")),n=fO(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=fO((i=t.getItemModel(e)).getShallow("symbol",!0)),i=fO(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}}};var yO=(mO.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,o=this.canvas,h=o.getContext("2d"),c=t.length;o.width=e,o.height=n;for(var p=0;pu[1]||Ih[1])continue;I=c.dataToPoint([M,I]),w=new Ts({shape:{x:Math.floor(Math.round(I[0])-s/2),y:Math.floor(Math.round(I[1])-l/2),width:Math.ceil(s),height:Math.ceil(l)},style:S})}else{if(isNaN(d.get(_[1],b)))continue;w=new Ts({z2:1,shape:c.dataToRect([d.get(_[0],b)]).contentShape,style:S})}I=d.getItemModel(b);d.hasItemOption&&(f=(T=I.getModel("emphasis")).getModel("itemStyle").getItemStyle(),g=I.getModel(["blur","itemStyle"]).getItemStyle(),y=I.getModel(["select","itemStyle"]).getItemStyle(),v=T.get("focus"),x=T.get("blurScope"),m=tu(I));var T=t.getRawValue(b),I="-";T&&null!=T[2]&&(I=T[2]+""),$l(w,m,{labelFetcher:t,labelDataIndex:b,defaultOpacity:S.opacity,defaultText:I}),w.ensureState("emphasis").style=f,w.ensureState("blur").style=g,w.ensureState("select").style=y,Ll(w,v,x),(w.incremental=o)&&(w.states.emphasis.hoverLayer=!0),p.add(w),d.setItemGraphicEl(b,w)}},MO.prototype._renderOnGeo=function(i,t,e,n){var o=e.targetVisuals.inRange,r=e.targetVisuals.outOfRange,a=t.getData(),s=this._hmLayer||this._hmLayer||new yO;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=i.getViewRect().clone(),u=i.getRoamTransform();l.applyTransform(u);var h,c,p,d,f,g,y,m=Math.max(l.x,0),v=Math.max(l.y,0),t=Math.min(l.width+l.x,n.getWidth()),u=Math.min(l.height+l.y,n.getHeight()),l=t-m,n=u-v,t=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],u=a.mapArray(t,function(t,e,n){e=i.dataToPoint([t,e]);return e[0]-=m,e[1]-=v,e.push(n),e}),a=e.getExtent(),e="visualMap.continuous"===e.type?(y=e.option.range,t=a[1]-a[0],y=[(y[0]-a[0])/t,(y[1]-a[0])/t],function(t){return t>=y[0]&&t<=y[1]}):(h=a,c=e.getPieceList(),p=e.option.selected,d=h[1]-h[0],f=(c=H(c,function(t){return{interval:[(t.interval[0]-h[0])/d,(t.interval[1]-h[0])/d]}})).length,g=0,function(t){for(var e=g;eMath.PI/2?"right":"left"):t&&"center"!==t?"left"===t?(r=u.r0+n,h>Math.PI/2&&(t="right")):"right"===t&&(r=u.r-n,h>Math.PI/2&&(t="left")):(r=(u.r+u.r0)/2,t="center"),i.style.align=t,i.style.verticalAlign=y(e,"verticalAlign")||"middle",i.x=r*c+u.cx,i.y=r*p+u.cy;var r=y(e,"rotate"),e=0;"radial"===r?(e=-h)<-Math.PI/2&&(e+=Math.PI):"tangential"===r?(e=Math.PI/2-h)>Math.PI/2?e-=Math.PI:e<-Math.PI/2&&(e+=Math.PI):"number"==typeof r&&(e=r*Math.PI/180),i.rotation=e}),f.dirtyStyle()},hR),sR="sunburstRootToNode",lR="sunburstHighlight",uR="sunburstUnhighlight";function hR(t,e,n,i){var o=rR.call(this)||this;o.z2=2,o.textConfig={inside:!0},Gs(o).seriesIndex=e.seriesIndex;var r=new Fs({z2:4,silent:t.getModel().get(["label","silent"])});return o.setTextContent(r),o.updateData(!0,t,e,n,i),o}function cR(t){t.registerAction({type:sR,update:"updateView"},function(o,t){t.eachComponent({mainType:"series",subType:"sunburst",query:o},function(t,e){var n,i=bT(o,[sR],t);i&&((n=t.getViewRoot())&&(o.direction=ST(n,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node))})}),t.registerAction({type:lR,update:"none"},function(e,t,n){e=N({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},function(t){(t=bT(e,[lR],t))&&(e.dataIndex=t.node.dataIndex)}),n.dispatchAction(N(e,{type:"highlight"}))}),t.registerAction({type:uR,update:"updateView"},function(t,e,n){t=N({},t),n.dispatchAction(N(t,{type:"downplay"}))})}var pR,dR,fR=(d(yR,dR=$d),yR.prototype.render=function(n,i,o,t){var e=this;this.seriesModel=n,this.api=o,this.ecModel=i;var r=n.getData(),a=r.tree.root,s=n.getViewRoot(),l=this.group,u=n.get("renderLabelForZeroData"),h=[];s.eachNode(function(t){h.push(t)});var c,p,d,f=this._oldChildren||[];function g(t){return t.getId()}function y(t,e){var t=null==t?null:p[t],e=null==e?null:d[e];t=t,e=e,(t=u||!t||t.getValue()?t:null)!==a&&e!==a&&(e&&e.piece?t?(e.piece.updateData(!1,t,n,i,o),r.setItemGraphicEl(t.dataIndex,e.piece)):function(t){t&&t.piece&&(l.remove(t.piece),t.piece=null)}(e):t&&(e=new aR(t,n,i,o),l.add(e),r.setItemGraphicEl(t.dataIndex,e)))}d=f,0===(p=h).length&&0===d.length||new Vx(d,p,g,g).add(y).update(y).remove(Z(y,null)).execute(),f=a,0<(c=s).depth?(e.virtualPiece?e.virtualPiece.updateData(!1,f,n,i,o):(e.virtualPiece=new aR(f,n,i,o),l.add(e.virtualPiece)),c.piece.off("click"),e.virtualPiece.on("click",function(t){e._rootToNode(c.parentNode)})):e.virtualPiece&&(l.remove(e.virtualPiece),e.virtualPiece=null),this._initEvents(),this._oldChildren=h},yR.prototype._initEvents=function(){var o=this;this.group.off("click"),this.group.on("click",function(n){var i=!1;o.seriesModel.getViewRoot().eachNode(function(t){var e;!i&&t.piece&&t.piece===n.target&&("rootToNode"===(e=t.getModel().get("nodeClick"))?o._rootToNode(t):"link"!==e||(t=(e=t.getModel()).get("link"))&&mh(t,e.get("target",!0)||"_blank"),i=!0)})})},yR.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:sR,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},yR.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){e=t[0]-n.cx,t=t[1]-n.cy,t=Math.sqrt(e*e+t*t);return t<=n.r&&t>=n.r0}},yR.type="sunburst",yR);function gR(){var t=null!==pR&&pR.apply(this,arguments)||this;return t.type=gR.type,t.ignoreStyleOnData=!0,t}function yR(){var t=null!==dR&&dR.apply(this,arguments)||this;return t.type=yR.type,t}var mR=(d(gR,pR=Gd),gR.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};!function e(t){var n=0;G(t.children,function(t){e(t);t=t.value;j(t)&&(t=t[0]),n+=t});var i=t.value;j(i)&&(i=i[0]),null!=i&&!isNaN(i)||(i=n),i<0&&(i=0),j(t.value)?t.value[0]=i:t.value=i}(n);var i=this._levelModels=H(t.levels||[],function(t){return new wu(t,this,e)},this),o=_T.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){e=o.getNodeByDataIndex(e),e=i[e.depth];return e&&(t.parentModel=e),t})});return o.data},gR.prototype.optionUpdated=function(){this.resetViewRoot()},gR.prototype.getDataParams=function(t){var e=pR.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=MT(t,this),e},gR.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},gR.prototype.getViewRoot=function(){return this._viewRoot},gR.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)},gR.prototype.enableAriaDecal=function(){NT(this)},gR.type="series.sunburst",gR.defaultOption={zlevel:0,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"},gR),vR=Math.PI/180;function xR(t,e,r){e.eachSeriesByType(t,function(h){var t=h.get("center"),e=h.get("radius");j(e)||(e=[0,e]),j(t)||(t=[t,t]);var n=r.getWidth(),i=r.getHeight(),c=Math.min(n,i),p=go(t[0],n),d=go(t[1],i),f=go(e[0],c/2),n=go(e[1],c/2),t=-h.get("startAngle")*vR,g=h.get("minAngle")*vR,y=h.getData().tree.root,i=h.getViewRoot(),m=i.depth,e=h.get("sort");null!=e&&function e(t,n){var i=t.children||[];t.children=_R(i,n),i.length&&G(t.children,function(t){e(t,n)})}(i,e);var o=0;G(i.children,function(t){isNaN(t.getValue())||o++});var v=i.getValue(),x=Math.PI/(v||o)*2,_=0t[1]&&t.reverse(),{coordSys:{type:"polar",cx:i.cx,cy:i.cy,r:t[1],r0:t[0]},api:{coord:function(t){var e=o.dataToRadius(t[0]),n=r.dataToAngle(t[1]),t=i.coordToPoint([e,n]);return t.push(e,n*Math.PI/180),t},size:X(LR,i)}}},calendar:function(n){var t=n.getRect(),e=n.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(t,e){return n.dataToPoint(t,e)}}}}};function QR(t){return t instanceof as}function $R(t){return t instanceof Fr}var tN,eN=(d(nN,tN=$d),nN.prototype.render=function(n,t,i,o){var r=this._data,a=n.getData(),s=this.group,l=hN(n,a,t,i);r||s.removeAll(),a.diff(r).add(function(t){cN(i,null,t,l(t,o),n,s,a)}).remove(function(t){_N(r.getItemGraphicEl(t),n,s)}).update(function(t,e){e=r.getItemGraphicEl(e);cN(i,e,t,l(t,o),n,s,a)}).execute();t=n.get("clip",!0)?nb(n.coordinateSystem,!1,n):null;t?s.setClipPath(t):s.removeClipPath(),this._data=a},nN.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},nN.prototype.incrementalRender=function(t,e,n,i,o){var r=e.getData(),a=hN(e,r,n,i);function s(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var l=t.start;ln)return!0;if(e){t=YM(t).seriesDataCount,i=i.getExtent();return Math.abs(i[0]-i[1])/t>n}return!1},IN.prototype.makeElOption=function(t,e,n,i,o){},IN.prototype.createPointerEl=function(t,e,n,i){var o=e.pointer;o&&(e=wN(t).pointerEl=new p[o.type](SN(e.pointer)),t.add(e))},IN.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=wN(t).labelEl=new Fs(SN(e.label)),t.add(e),CN(e,i))},IN.prototype.updatePointerEl=function(t,e,n){t=wN(t).pointerEl;t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},IN.prototype.updateLabelEl=function(t,e,n,i){t=wN(t).labelEl;t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),CN(t,i))},IN.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),o=this._handle,r=n.getModel("handle"),a=n.get("status");if(!r.get("show")||!a||"hide"===a)return o&&i.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=Qy(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){re(t.event)},onmousedown:MN(this._onHandleDragMove,this,0,0),drift:MN(this._onHandleDragMove,this),ondragend:MN(this._onHandleDragEnd,this)}),i.add(o)),AN(o,n,!1),o.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));n=r.get("size");j(n)||(n=[n,n]),o.scaleX=n[0]/2,o.scaleY=n[1]/2,rf(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},IN.prototype._moveHandleToValue=function(t,e){TN(this._axisPointerModel,!e&&this._moveAnimation,this._handle,DN(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},IN.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,e=this.updateHandleTransform(DN(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=e,n.stopAnimation(),n.attr(DN(e)),wN(n).lastProp=null,this._doDispatchAxisPointer())},IN.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}]}))},IN.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},IN.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,t=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),t&&e.remove(t),this._group=null,this._handle=null,this._payloadInfo=null)},IN.prototype.doClear=function(){},IN.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},C=IN;function kN(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 LN(t,e,n,i,o){var r=PN(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=lh(a.get("padding")||0),l=a.getFont(),u=Bi(r,l),h=o.position,c=u.width+s[1]+s[3],n=u.height+s[0]+s[2],u=o.align;"right"===u&&(h[0]-=c),"center"===u&&(h[0]-=c/2);u=o.verticalAlign;"bottom"===u&&(h[1]-=n),"middle"===u&&(h[1]-=n/2),o=h,u=c,c=n,i=(n=i).getWidth(),n=n.getHeight(),o[0]=Math.min(o[0]+u,i)-u,o[1]=Math.min(o[1]+c,n)-c,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0);o=a.get("backgroundColor");o&&"auto"!==o||(o=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:eu(a,{text:r,font:l,fill:a.getTextColor(),padding:s,backgroundColor:o}),z2:10}}function PN(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:tM(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},G(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,t=e&&e.getDataParams(t);t&&r.seriesData.push(t)}),K(o)?a=o.replace("{value}",a):q(o)&&(a=o(r))),a}function ON(t,e,n){var i=ni();return si(i,i,n.rotation),ai(i,i,n.position),Xy([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function RN(t,e,n,i,o,r){var a=HM.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),LN(e,i,o,r,{position:ON(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function NN(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function zN(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function EN(t,e,n,i,o,r){return{cx:t,cy:e,r0:n,r:i,startAngle:o,endAngle:r,clockwise:!0}}var VN,mu=(d(BN,VN=C),BN.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=a.grid,l=i.get("type"),u=FN(s,a).getOtherAxis(a).getGlobalExtent(),h=a.toGlobalCoord(a.dataToCoord(e,!0));l&&"none"!==l&&(r=kN(i),(u=GN[l](a,h,u)).style=r,t.graphicKey=u.type,t.pointer=u),RN(e,t,TM(s.model,n),n,i,o)},BN.prototype.getHandleTransform=function(t,e,n){var i=TM(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);t=ON(e.axis,t,i);return{x:t[0],y:t[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},BN.prototype.updateHandleTransform=function(t,e,n,i){var o=n.axis,r=o.grid,a=o.getGlobalExtent(!0),n=FN(r,o).getOtherAxis(o).getGlobalExtent(),r="x"===o.dim?0:1,o=[t.x,t.y];o[r]+=e[r],o[r]=Math.min(a[1],o[r]),o[r]=Math.max(a[0],o[r]);n=(n[1]+n[0])/2,n=[n,n];n[r]=o[r];return{x:o[0],y:o[1],rotation:t.rotation,cursorPoint:n,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][r]}},BN);function BN(){return null!==VN&&VN.apply(this,arguments)||this}function FN(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var GN={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:NN([e,n[0]],[e,n[1]],HN(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:zN([e-i/2,n[0]],[i,o],HN(t))}}};function HN(t){return"x"===t.dim?0:1}var WN,UN=mu,YN=(d(jN,WN=Vh),jN.type="axisPointer",jN.defaultOption={show:"auto",zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},jN),XN=Zo(),ZN=G;function jN(){var t=null!==WN&&WN.apply(this,arguments)||this;return t.type=jN.type,t}function qN(t,e,n){var i,c,p;function o(t,h){c.on(t,function(e){var n,i,t,o,r,a,s,l=(n=p,{dispatchAction:u,pendings:i={showTip:[],hideTip:[]}});function u(t){var e=i[t.type];e?e.push(t):(t.dispatchAction=u,n.dispatchAction(t))}ZN(XN(c).records,function(t){t&&h(t,e,l.dispatchAction)}),o=p,a=(t=l.pendings).showTip.length,s=t.hideTip.length,a?r=t.showTip[a-1]:s&&(r=t.hideTip[s-1]),r&&(r.dispatchAction=null,o.dispatchAction(r))})}w.node||(i=e.getZr(),XN(i).records||(XN(i).records={}),p=e,XN(c=i).initialized||(XN(c).initialized=!0,o("click",Z(JN,"click")),o("mousemove",Z(JN,"mousemove")),o("globalout",KN)),(XN(i).records[t]||(XN(i).records[t]={})).handler=n)}function KN(t,e,n){t.handler("leave",null,n)}function JN(t,e,n,i){e.handler(t,n,i)}function QN(t,e){w.node||(e=e.getZr(),(XN(e).records||{})[t]&&(XN(e).records[t]=null))}var $N,tz=(d(ez,$N=Wd),ez.prototype.render=function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";qN("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})})},ez.prototype.remove=function(t,e){QN("axisPointer",e)},ez.prototype.dispose=function(t,e){QN("axisPointer",e)},ez.type="axisPointer",ez);function ez(){var t=null!==$N&&$N.apply(this,arguments)||this;return t.type=ez.type,t}function nz(t,e){var n=[],i=t.seriesIndex;if(null==i||!(a=e.getSeriesByIndex(i)))return{point:[]};var o=a.getData(),r=Xo(o,t);if(null==r||r<0||j(r))return{point:[]};var a,s=o.getItemGraphicEl(r),e=a.coordinateSystem;return a.getTooltipPosition?n=a.getTooltipPosition(r)||[]:e&&e.dataToPoint?n=t.isStacked?(i=e.getBaseAxis(),a=e.getOtherAxis(i).dim,t=i.dim,i="x"===a||"radius"===a?1:0,a=o.mapDimension(t),(t=[])[i]=o.get(a,r),t[1-i]=o.get(o.getCalculationInfo("stackResultDimension"),r),e.dataToPoint(t)||[]):e.dataToPoint(o.getValues(H(e.dimensions,function(t){return o.mapDimension(t)}),r))||[]:s&&((r=s.getBoundingRect().clone()).applyTransform(s.transform),n=[r.x+r.width/2,r.y+r.height/2]),{point:n,el:s}}var iz=Zo();function oz(t,e,n){var i,o,r=t.currTrigger,a=[t.x,t.y],s=t,l=t.dispatchAction||X(n.dispatchAction,n),u=e.getComponent("axisPointer").coordSysAxesInfo;if(u){uz(a)&&(a=nz({seriesIndex:s.seriesIndex,dataIndex:s.dataIndex},e).point);var h=uz(a),c=s.axesInfo,p=u.axesInfo,d="leave"===r||uz(a),f={},g={},s={list:[],map:{}},y={showPointer:Z(az,g),showTooltip:Z(sz,s)};G(u.coordSysMap,function(t,e){var o=h||t.containPoint(a);G(u.coordSysAxesInfo[e],function(t,e){var n=t.axis,i=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(c,t);d||!o||c&&!i||null!=(i=null==(i=i&&i.value)&&!h?n.pointToData(a):i)&&rz(t,i,y,!1,f)})});var m={};return G(p,function(n,t){var i=n.linkGroup;i&&!g[t]&&G(i.axesInfo,function(t,e){var e=g[e];t!==n&&e&&(e=e.value,i.mapper&&(e=n.axis.scale.parse(i.mapper(e,lz(t),lz(n)))),m[n.key]=e)})}),G(m,function(t,e){rz(p[e],t,y,!0,f)}),i=g,r=p,o=f.axesInfo=[],G(r,function(t,e){var n=t.axisPointerModel.option,e=i[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&o.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),function(t,e,n,i){{var o;!uz(e)&&t.list.length?(o=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:t.list})):i({type:"hideTip"})}}(s,a,t,l),function(t,e){var n=e.getZr(),i="axisPointerLastHighlights",o=iz(n)[i]||{},r=iz(n)[i]={};G(t,function(t,e){t=t.axisPointerModel.option;"show"===t.status&&G(t.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;r[e]=t})});var a=[],s=[];G(o,function(t,e){r[e]||s.push(t)}),G(r,function(t,e){o[e]||a.push(t)}),s.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:s}),a.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:a})}(p,n),f}}function rz(t,e,n,i,o){var r,a,s,l,u,h,c,p,d,f,g=t.axis;!g.scale.isBlank()&&g.containData(e)&&(t.involveSeries?(s=(r=(l=e,u=t.axis,h=u.dim,c=l,p=[],d=Number.MAX_VALUE,f=-1,G(t.seriesModels,function(e,t){var n=e.getData().mapDimensionsAll(h);if(e.getAxisTooltipData)var i=e.getAxisTooltipData(n,l,u),o=i.dataIndices,r=i.nestestValue;else{if(!(o=e.getData().indicesOfNearest(n[0],l,"category"===u.type?.5:null)).length)return;r=e.getData().get(n[0],o[0])}null!=r&&isFinite(r)&&(i=l-r,(n=Math.abs(i))<=d&&((nr?"left":"right",Math.abs(a[1]-u)/t<.3?"middle":a[1]>u?"top":"bottom")}return{position:a,align:s,verticalAlign:u}}(e,n,s,c))},pz);function pz(){return null!==cz&&cz.apply(this,arguments)||this}var dz,fz,gz={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:NN(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:EN(e.cx,e.cy,i[0],i[1],(-n-o/2)*r,(o/2-n)*r)}:{type:"Sector",shape:EN(e.cx,e.cy,n-o/2,n+o/2,0,2*Math.PI)}}},yz=io,mz=(d(xz,fz=Vh),xz.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},xz.type="polar",xz.dependencies=["radiusAxis","angleAxis"],xz.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"80%"},xz),Jn=(d(vz,dz=Vh),vz.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Jo).models[0]},vz.type="polarAxis",vz);function vz(){return null!==dz&&dz.apply(this,arguments)||this}function xz(){var t=null!==fz&&fz.apply(this,arguments)||this;return t.type=xz.type,t}B(Jn,qw);var _z,bz,wz,Sz=(d(Cz,wz=Jn),Cz.type="angleAxis",Cz),Mz=(d(Tz,bz=Jn),Tz.type="radiusAxis",Tz),gr=(d(Iz,_z=_),Iz.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},Iz);function Iz(t,e){return _z.call(this,"radius",t,e)||this}function Tz(){var t=null!==bz&&bz.apply(this,arguments)||this;return t.type=Tz.type,t}function Cz(){var t=null!==wz&&wz.apply(this,arguments)||this;return t.type=Cz.type,t}gr.prototype.dataToRadius=_.prototype.dataToCoord,gr.prototype.radiusToData=_.prototype.coordToData;var Dz,Az=gr,kz=Zo(),mu=(d(Lz,Dz=_),Lz.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},Lz.prototype.calculateCategoryInterval=function(){var t=this.getLabelModel(),e=this.scale,n=e.getExtent(),i=e.count();if(n[1]-n[0]<1)return 0;var o=n[0],e=this.dataToCoord(o+1)-this.dataToCoord(o),n=Math.abs(e),e=Bi(null==o?"":o+"",t.getFont(),"center","top"),o=Math.max(e.height,7)/n;isNaN(o)&&(o=1/0);t=Math.max(0,Math.floor(o)),e=kz(this.model),n=e.lastAutoInterval,o=e.lastTickCount;return null!=n&&null!=o&&Math.abs(n-t)<=1&&Math.abs(o-i)<=1&&te[1]&&e.reverse();var n=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){var n=t-this.cx,t=e-this.cy,e=n*n+t*t,n=this.r,t=this.r0;return e<=n*n&&t*t<=e}}},Rz.prototype.convertToPixel=function(t,e,n){return Nz(e)===this?this.dataToPoint(n):null},Rz.prototype.convertFromPixel=function(t,e,n){return Nz(e)===this?this.pointToData(n):null},Rz);function Ez(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&&(G(oM(e=t.getData(),"radius"),function(t){r.scale.unionExtentFromData(e,t)}),G(oM(e,"angle"),function(t){o.scale.unionExtentFromData(e,t)}))}),JS(o.scale,o.model),JS(r.scale,r.model),"category"!==o.type||o.onBand||(n=o.getExtent(),t=360/o.scale.count(),o.inverse?n[1]+=t:n[1]-=t,o.setExtent(n[0],n[1]))}function Vz(t,e){var n;t.type=e.get("type"),t.scale=QS(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType&&(t.inverse=t.inverse!==e.get("clockwise"),n=e.get("startAngle"),t.setExtent(n,n+(t.inverse?-360:360))),(e.axis=t).model=e}var Bz={dimensions:Oz,create:function(t,s){var l=[];return t.eachComponent("polar",function(t,e){var n=new zz(e+"");n.update=Ez;var i=n.getRadiusAxis(),o=n.getAngleAxis(),r=t.findAxisModel("radiusAxis"),a=t.findAxisModel("angleAxis");Vz(i,r),Vz(o,a),e=n,i=s,o=(r=t).get("center"),a=i.getWidth(),i=i.getHeight(),e.cx=go(o[0],a),e.cy=go(o[1],i),e=e.getRadiusAxis(),i=Math.min(a,i)/2,null==(r=r.get("radius"))?r=[0,"100%"]:j(r)||(r=[0,r]),i=[go(r[0],i),go(r[1],i)],e.inverse?e.setExtent(i[1],i[0]):e.setExtent(i[0],i[1]),l.push(n),(t.coordinateSystem=n).model=t}),t.eachSeries(function(t){var e;"polar"===t.get("coordinateSystem")&&(e=t.getReferringComponents("polar",Jo).models[0],t.coordinateSystem=e.coordinateSystem)}),l}},Fz=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Gz(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),n=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:n[0],y2:n[1]}}function Hz(t){return t.getRadiusAxis().inverse?0:1}function Wz(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()}var Uz,Yz,io=(d(Qz,Yz=KM),Qz.prototype.render=function(e,t){var n,i,o,r,a,s;this.group.removeAll(),e.get("show")&&(n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),r=n.getTicksCoords(),a=n.getMinorTicksCoords(),Wz(s=H(n.getViewLabels(),function(t){t=P(t);var e=n.scale,e="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(e),t})),Wz(r),G(Fz,function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||Xz[t](this.group,e,i,r,a,o,s)},this))},Qz.type="angleAxis",Qz),Xz={axisLine:function(t,e,n,i,o,r){var a=e.getModel(["axisLine","lineStyle"]),s=Hz(n),e=s?0:1,a=0===r[e]?new $f({shape:{cx:n.cx,cy:n.cy,r:r[s]},style:a.getLineStyle(),z2:1,silent:!0}):new Xg({shape:{cx:n.cx,cy:n.cy,r:r[s],r0:r[e]},style:a.getLineStyle(),z2:1,silent:!0});a.style.fill=null,t.add(a)},axisTick:function(t,e,n,i,o,r){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=r[Hz(n)],i=H(i,function(t){return new Kf({shape:Gz(n,[l,l+s],t.coord)})});t.add(Fy(i,{style:z(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"),l=(a.get("inside")?-1:1)*s.get("length"),u=r[Hz(n)],h=[],c=0;ca?"left":"right",s=Math.abs(r[1]-s)/o<.3?"middle":r[1]>s?"top":"bottom";p&&p[i]&&($(i=p[i])&&i.textStyle&&(n=new wu(i.textStyle,d,d.ecModel)));a=new Fs({silent:HM.isLabelSilent(u),style:eu(n,{x:r[0],y:r[1],fill:n.getTextColor()||u.get(["axisLine","lineStyle","color"]),text:t.formattedLabel,align:a,verticalAlign:s})});l.add(a),g&&((s=HM.makeAxisEventDataBase(u)).targetType="axisLabel",s.value=t.rawLabel,Gs(a).eventData=s)},this)},splitLine:function(t,e,n,i,o,r){for(var a=e.getModel("splitLine").getModel("lineStyle"),s=0,l=(l=a.get("color"))instanceof Array?l:[l],u=[],h=0;h=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},b5.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},b5.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},b5.prototype.convertToPixel=function(t,e,n){return S5(e)===this?this.dataToPoint(n):null},b5.prototype.convertFromPixel=function(t,e,n){return S5(e)===this?this.pointToData(n):null},b5);var I5,T5={create:function(i,o){var r=[];return i.eachComponent("singleAxis",function(t,e){var n=new M5(t,i,o);n.name="single_"+e,n.resize(t,o),t.coordinateSystem=n,r.push(n)}),i.eachSeries(function(t){var e;"singleAxis"===t.get("coordinateSystem")&&(e=t.getReferringComponents("singleAxis",Jo).models[0],t.coordinateSystem=e&&e.coordinateSystem)}),r},dimensions:_5},C5=["x","y"],D5=["width","height"],io=(d(k5,I5=C),k5.prototype.makeElOption=function(t,e,n,i,o){var r=n.axis,a=r.coordinateSystem,s=P5(a,1-L5(r)),l=a.dataToPoint(e)[0],u=i.get("type");u&&"none"!==u&&(a=kN(i),(s=A5[u](r,l,s)).style=a,t.graphicKey=s.type,t.pointer=s),RN(e,t,l5(n),n,i,o)},k5.prototype.getHandleTransform=function(t,e,n){var i=l5(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);t=ON(e.axis,t,i);return{x:t[0],y:t[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},k5.prototype.updateHandleTransform=function(t,e,n,i){var o=n.axis,r=o.coordinateSystem,a=L5(o),n=P5(r,a),o=[t.x,t.y];o[a]+=e[a],o[a]=Math.min(n[1],o[a]),o[a]=Math.max(n[0],o[a]);r=P5(r,1-a),r=(r[1]+r[0])/2,r=[r,r];return r[a]=o[a],{x:o[0],y:o[1],rotation:t.rotation,cursorPoint:r,tooltipOption:{verticalAlign:"middle"}}},k5),A5={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:NN([e,n[0]],[e,n[1]],L5(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),o=n[1]-n[0];return{type:"Rect",shape:zN([e-i/2,n[0]],[i,o],L5(t))}}};function k5(){return null!==I5&&I5.apply(this,arguments)||this}function L5(t){return t.isHorizontal()?0:1}function P5(t,e){t=t.getRect();return[t[C5[e]],t[C5[e]]+t[D5[e]]]}var O5,R5,N5=io,z5=(d(E5,O5=Wd),E5.type="single",E5);function E5(){var t=null!==O5&&O5.apply(this,arguments)||this;return t.type=E5.type,t}function V5(){var t=null!==R5&&R5.apply(this,arguments)||this;return t.type=V5.type,t}function B5(t,i){var e=t.cellSize,o=j(e)?e:t.cellSize=[e,e];1===o.length&&(o[1]=o[0]);e=H([0,1],function(t){return(null!=(e=i)[_h[n=t][0]]||null!=e[_h[n][1]]&&null!=e[_h[n][2]])&&(o[t]="auto"),null!=o[t]&&"auto"!==o[t];var e,n});Th(t,i,{type:"box",ignoreSize:e})}var F5,G5=(d(V5,R5=Vh),V5.prototype.init=function(t,e,n){var i=Ch(t);R5.prototype.init.apply(this,arguments),B5(t,i)},V5.prototype.mergeOption=function(t){R5.prototype.mergeOption.apply(this,arguments),B5(this.option,t)},V5.prototype.getCellSize=function(){return this.option.cellSize},V5.type="calendar",V5.defaultOption={zlevel:0,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}},V5),H5=(d(U5,F5=Wd),U5.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var o=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)},U5.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 Ts({shape:{x:l[0],y:l[1],width:r,height:a},cursor:"default",style:o});n.add(l)}},U5.prototype._renderLines=function(e,t,n,i){var o=this,r=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,h=0;u.time<=t.end.time;h++){p(u.formatedDate);var c=(u=0===h?r.getDateInfo(t.start.y+"-"+t.start.m):u).date;c.setMonth(c.getMonth()+1),u=r.getDateInfo(c)}function p(t){o._firstDayOfMonth.push(r.getDateInfo(t)),o._firstDayPoints.push(r.dataToRect([t],!1).tl);t=o._getLinePointsOfOneWeek(e,t,n);o._tlpoints.push(t[0]),o._blpoints.push(t[t.length-1]),s&&o._drawSplitline(t,a,i)}p(r.getNextNDay(t.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)},U5.prototype._getEdgesPoints=function(t,e,n){t=[t[0].slice(),t[t.length-1].slice()],n="horizontal"===n?0:1;return t[0][n]=t[0][n]-e/2,t[1][n]=t[1][n]+e/2,t},U5.prototype._drawSplitline=function(t,e,n){e=new ny({z2:20,shape:{points:t},style:e});n.add(e)},U5.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},U5.prototype._formatterLabel=function(t,e){return"string"==typeof t&&t?(n=t,G(e,function(t,e){n=n.replace("{"+e+"}",i?ch(t):t)}),n):"function"==typeof t?t(e):e.nameMap;var n,i},U5.prototype._yearTextPositionControl=function(t,e,n,i,o){var r=e[0],a=e[1],e=["center","bottom"];"bottom"===i?(a+=o,e=["center","top"]):"left"===i?r-=o:"right"===i?(r+=o,e=["center","top"]):a-=o;o=0;return{rotation:o="left"===i||"right"===i?Math.PI/2:o,x:r,y:a,style:{align:e[0],verticalAlign:e[1]}}},U5.prototype._renderYearText=function(t,e,n,i){var o,r,a,s,l,u=t.getModel("yearLabel");u.get("show")&&(o=u.get("margin"),r=(r=u.get("position"))||("horizontal"!==n?"top":"left"),a=((s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]])[0][0]+s[1][0])/2,l=(s[0][1]+s[1][1])/2,s={top:[a,s[t="horizontal"===n?0:1][1]],bottom:[a,s[1-t][1]],left:[s[1-t][0],l],right:[s[t][0],l]},t=e.start.y,+e.end.y>+e.start.y&&(t=t+"-"+e.end.y),l=u.get("formatter"),t={start:e.start.y,end:e.end.y,nameMap:t},t=this._formatterLabel(l,t),(t=new Fs({z2:30,style:eu(u,{text:t})})).attr(this._yearTextPositionControl(t,s[r],n,r,o)),i.add(t))},U5.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}},U5.prototype._renderMonthText=function(t,e,n,i){var o=t.getModel("monthLabel");if(o.get("show")){var r=o.get("nameMap"),a=o.get("margin"),s=o.get("position"),t=o.get("align"),l=[this._tlpoints,this._blpoints];r&&!K(r)||(r=(e=r?Ou(r)||e:e).get(["time","monthAbbr"])||[]);for(var u="start"===s?0:1,h="horizontal"===n?0:1,a="start"===s?-a:a,c="center"===t,p=0;p=i.start.time&&n.timeo.end.time&&i.reverse(),i},W5.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i,o=Math.floor(n[1].time/864e5)-Math.floor(n[0].time/864e5)+1,r=new Date(n[0].time),a=r.getDate(),s=n[1].date.getDate();if(r.setDate(a+o-1),(i=r.getDate())!==s)for(var l=0n.weeks||0===t&&en.lweek)return null;t=7*(t-1)-n.fweek+e,e=new Date(n.start.time);return e.setDate(+n.start.d+t),this.getDateInfo(e)},W5.create=function(t,e){var n=[];return t.eachComponent("calendar",function(t){var e=new W5(t);n.push(e),t.coordinateSystem=e}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])}),n},W5.dimensions=["time","value"],W5);function Z5(t){var e=t.graphic;j(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}var j5,q5,K5=Zo(),J5={path:null,compoundPath:null,group:ro,image:ys,text:Fs},Q5=(d(eE,q5=Vh),eE.prototype.mergeOption=function(t,e){var n=this.option.elements;this.option.elements=null,q5.prototype.mergeOption.call(this,t,e),this.option.elements=n},eE.prototype.optionUpdated=function(t,e){var n=this.option,t=(e?n:t).elements,l=n.elements=e?[]:n.elements,n=[];this._flatten(t,n,null);var n=Bo(l,n,"normalMerge"),u=this._elOptionsToUpdate=[];G(n,function(t,e){var n,i,o,r,a,s=t.newOption;s&&(u.push(s),function(t,e){var n=t.existing;e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId&&((t=e.parentOption)?e.parentId=t.id:n&&(e.parentId=n.parentId));e.parentOption=null}(t,s),n=l,i=e,r=N({},o=s),a=n[i],"merge"===(t=o.$action||"merge")?a?(O(a,r,!0),Th(a,r,{ignoreSize:!0}),Dh(o,a)):n[i]=r:"replace"===t?n[i]=r:"remove"===t&&a&&(n[i]=null),e=l[e],s=s,e&&(e.hv=s.hv=[oE(s,["left","right"]),oE(s,["top","bottom"])],"group"===e.type)&&(s=s,null==(e=e).width&&(e.width=s.width=0),null==e.height&&(e.height=s.height=0)))},this);for(var i=l.length-1;0<=i;i--)null==l[i]?l.splice(i,1):delete l[i].$action},eE.prototype._flatten=function(t,n,i){G(t,function(t){var e;t&&(i&&(t.parentOption=i),n.push(t),e=t.children,"group"===t.type&&e&&this._flatten(e,n,t),delete t.children)},this)},eE.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},eE.type="graphic",eE.defaultOption={elements:[]},eE),$5=(d(tE,j5=Wd),tE.prototype.init=function(){this._elMap=yt()},tE.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},tE.prototype._updateElements=function(c){var p,d,t=c.useElOptionsToUpdate();t&&(p=this._elMap,d=this.group,G(t,function(t){var e=Ho(t.id,null),n=null!=e?p.get(e):null,i=Ho(t.parentId,null),o=null!=i?p.get(i):d,r=t.type,a=t.style;"text"===r&&a&&t.hv&&t.hv[1]&&(a.textVerticalAlign=a.textBaseline=a.verticalAlign=a.align=null);var s=t.textContent,i=t.textConfig;a&&PR(a,r,!!i,!!s)&&(u=OR(a,r,!0),!i&&u.textConfig&&(i=t.textConfig=u.textConfig),!s&&u.textContent&&(s=u.textContent));var l,i=(l=N({},l=t),G(["id","parentId","$action","hv","bounding","textContent"].concat(xh),function(t){delete l[t]}),l),u=t.$action||"merge";"merge"===u?n?n.attr(i):nE(e,o,i,p):"replace"===u?(iE(n,p),nE(e,o,i,p)):"remove"===u&&iE(n,p);var h,n=p.get(e);n&&s&&("merge"===u?(h=n.getTextContent())?h.attr(s):n.setTextContent(new Fs(s)):"replace"===u&&n.setTextContent(new Fs(s))),n&&((e=K5(n)).__ecGraphicWidthOption=t.width,e.__ecGraphicHeightOption=t.height,h=c,u=t,e=Gs(s=n).eventData,(e=s.silent||s.ignore||e?e:Gs(s).eventData={componentType:"graphic",componentIndex:h.componentIndex,name:s.name})&&(e.info=u.info),em({el:n,componentModel:c,itemName:n.name,itemTooltipOption:t.tooltip}))}))},tE.prototype._relocate=function(t,e){for(var n=t.option.elements,i=this.group,o=this._elMap,r=e.getWidth(),a=e.getHeight(),s=0;se[1]&&(e[1]=t[1])})});t=t.getAxisModel(),t=jS(t.axis.scale,t,o).calculate();return[t.min,t.max]}(this,this._dimName,e),this._updateMinMaxSpan(),t=this.calculateDataWindow(t.settledOption),this._valueWindow=t.valueWindow,this._percentWindow=t.percentWindow,this._setAxisModel())},wE.prototype.filterData=function(t,e){var o,n,r,c;t===this._dataZoomModel&&(o=this._dimName,n=this.getTargetSeriesModels(),r=t.get("filterMode"),c=this._valueWindow,"none"!==r&&_E(n,function(n){var l,u,i=n.getData(),h=i.mapDimensionsAll(o);h.length&&("weakFilter"===r?(l=i.getStore(),u=H(h,function(t){return i.getDimensionIndex(t)},i),i.filterSelf(function(t){for(var e,n,i,o=0;oc[1];if(a&&!s&&!r)return!0;a&&(i=!0),s&&(e=!0),r&&(n=!0)}return i&&e&&n})):_E(h,function(t){var e;"empty"===r?n.setData(i=i.map(t,function(t){return(e=t)>=c[0]&&e<=c[1]?t:NaN;var e})):((e={})[t]=c,i.selectRange(e))}),_E(h,function(t){i.setApproximateExtent(c,t)}))}))},wE.prototype._updateMinMaxSpan=function(){var i=this._minMaxSpan={},o=this._dataZoomModel,r=this._dataExtent;_E(["min","max"],function(t){var e=o.get(t+"Span"),n=o.get(t+"ValueSpan");null!=(n=null!=n?this.getAxisModel().axis.scale.parse(n):n)?e=fo(r[0]+n,r,[0,100],!0):null!=e&&(n=fo(e,[0,100],r,!0)-r[0]),i[t+"Span"]=e,i[t+"ValueSpan"]=n},this)},wE.prototype._setAxisModel=function(){var t,e=this.getAxisModel(),n=this._percentWindow,i=this._valueWindow;n&&(t=xo(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())},wE),CE={getTargetSeries:function(r){function t(o){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(t,e){var n=r.getComponent(sE(t),e);o(t,e,n,i)})})}t(function(t,e,n,i){n.__dzAxisProxy=null});var o=[];t(function(t,e,n,i){n.__dzAxisProxy||(n.__dzAxisProxy=new TE(t,e,i,r),o.push(n.__dzAxisProxy))});var e=yt();return G(o,function(t){G(t.getTargetSeriesModels(),function(t){e.set(t.uid,t)})}),e},overallReset:function(t,i){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(t,e){n.getAxisProxy(t,e).reset(n)}),n.eachTargetAxis(function(t,e){n.getAxisProxy(t,e).filterData(n,i)})}),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]}))})}};var DE=!1;function AE(t){DE||(DE=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,CE),t.registerAction("dataZoom",function(e,t){G(lE(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})}),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function kE(t){t.registerComponentModel(vE),t.registerComponentView(xE),AE(t)}function LE(){}var PE={};function OE(t,e){PE[t]=e}function RE(t){return PE[t]}var NE,zE,EE=(d(VE,NE=Vh),VE.prototype.optionUpdated=function(){NE.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;G(this.option.feature,function(t,e){e=RE(e);e&&(e.getDefaultOption&&(e.defaultOption=e.getDefaultOption(n)),O(t,e.defaultOption))})},VE.type="toolbox",VE.layoutMode={type:"box",ignoreSize:!0},VE.defaultOption={show:!0,z:6,zlevel:0,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"}},VE);function VE(){var t=null!==NE&&NE.apply(this,arguments)||this;return t.type=VE.type,t}function BE(t,e){var n=lh(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new Ts({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 FE(){return null!==zE&&zE.apply(this,arguments)||this}var GE,HE=(d(FE,zE=Wd),FE.prototype.render=function(h,c,p,a){var d,s,l,u,t,e,n,i,o,r,f=this.group;function g(t,e){var n,i=u[t],o=u[e],t=s[i],e=new wu(t,h,h.ecModel);if(a&&null!=a.newTitle&&a.featureName===i&&(t.title=a.newTitle),i&&!o){if(0===i.indexOf("my"))n={onclick:e.option.onclick,featureName:i};else{var r=RE(i);if(!r)return;n=new r}l[i]=n}else if(!(n=l[o]))return;n.uid=Mu("toolbox-feature"),n.model=e,n.ecModel=c,n.api=p;r=n instanceof LE;i||!o?!e.get("show")||r&&n.unusable?r&&n.remove&&n.remove(c,p):(function(o,r,t){var e,a,s=o.getModel("iconStyle"),l=o.getModel(["emphasis","iconStyle"]),n=r instanceof LE&&r.getIcons?r.getIcons():o.get("icon"),i=o.get("title")||{};"string"==typeof n?(e={})[t]=n:e=n,"string"==typeof i?(a={})[t]=i:a=i;var u=o.iconPaths={};G(e,function(t,e){var n=Qy(t,{},{x:-d/2,y:-d/2,width:d,height:d});n.setStyle(s.getItemStyle()),n.ensureState("emphasis").style=l.getItemStyle();var i=new Fs({style:{text:a[e],align:l.get("textAlign"),borderRadius:l.get("textBorderRadius"),padding:l.get("textPadding"),fill:null},ignore:!0});n.setTextContent(i),em({el:n,componentModel:h,itemName:e,formatterParamsExtra:{title:a[e]}}),n.__title=a[e],n.on("mouseover",function(){var t=l.getItemStyle(),e="vertical"===h.get("orient")?null==h.get("right")?"right":"left":null==h.get("bottom")?"bottom":"top";i.setStyle({fill:l.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:l.get("textBackgroundColor")}),n.setTextConfig({position:l.get("textPosition")||e}),i.ignore=!h.get("showTitle"),xl(this)}).on("mouseout",function(){"emphasis"!==o.get(["iconStatus",e])&&_l(this),i.hide()}),("emphasis"===o.get(["iconStatus",e])?xl:_l)(n),f.add(n),n.on("click",X(r.onclick,r,c,p,e)),u[e]=n})}(e,n,i),e.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?xl:_l)(i[t])},n instanceof LE&&n.render&&n.render(e,c,p,a)):r&&n.dispose&&n.dispose(c,p)}f.removeAll(),h.get("show")&&(d=+h.get("itemSize"),s=h.get("feature")||{},l=this._features||(this._features={}),u=[],G(s,function(t,e){u.push(e)}),new Vx(this._featureNames||[],u).add(g).update(g).remove(Z(g,null)).execute(),this._featureNames=u,t=f,n=p,i=(e=h).getBoxLayoutParams(),o=e.get("padding"),r={width:n.getWidth(),height:n.getHeight()},n=Sh(i,r,o),wh(e.get("orient"),t,e.get("itemGap"),n.width,n.height),Mh(t,i,r,o),f.add(BE(f.getBoundingRect(),h)),f.eachChild(function(t){var e=t.__title,n=t.ensureState("emphasis"),i=n.textConfig||(n.textConfig={}),o=t.getTextContent(),r=o&&o.states.emphasis;r&&!q(r)&&e&&(n=r.style||(r.style={}),o=Bi(e,Fs.makeFont(n)),r=t.x+f.x,e=!1,t.y+f.y+d+o.height>p.getHeight()&&(i.position="top",e=!0),e=e?-5-o.height:d+8,r+o.width/2>p.getWidth()?(i.position=["100%",e],n.align="right"):r-o.width/2<0&&(i.position=[0,e],n.align="left"))}))},FE.prototype.updateView=function(t,e,n,i){G(this._features,function(t){t instanceof LE&&t.updateView&&t.updateView(t.model,e,n,i)})},FE.prototype.remove=function(e,n){G(this._features,function(t){t instanceof LE&&t.remove&&t.remove(e,n)}),this.group.removeAll()},FE.prototype.dispose=function(e,n){G(this._features,function(t){t instanceof LE&&t.dispose&&t.dispose(e,n)})},FE.type="toolbox",FE),mu=(d(WE,GE=LE),WE.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",a=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")});if("function"!=typeof MouseEvent||!w.browser.newEdge&&(w.browser.ie||w.browser.edge))if(window.navigator.msSaveOrOpenBlob||o){var e=a.split(","),t=-1',c=window.open();c.document.write(n),c.document.title=i}else{c=document.createElement("a");c.download=i+"."+r,c.target="_blank",c.href=a;a=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(a)}},WE.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"])}},WE);function WE(){return null!==GE&&GE.apply(this,arguments)||this}mu.prototype.unusable=!w.canvasSupported;var UE,YE=mu,XE="__ec_magicType_stack__",ZE=[["line","bar"],["stack"]],C=(d(qE,UE=LE),qE.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return G(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n},qE.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:{}}},qE.prototype.onclick=function(t,e,a){var n,s,l=this.model,i=l.get(["seriesIndex",a]);jE[a]&&(s={series:[]},G(ZE,function(t){0<=V(t,a)&&G(t,function(t){l.setIconStatus(t,"normal")})}),l.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},function(t){var e=t.subType,n=t.id,n=jE[a](e,n,t,l);n&&(z(n,t.option),s.series.push(n));n=t.coordinateSystem;if(n&&"cartesian2d"===n.type&&("line"===a||"bar"===a)){n=n.getAxesByScale("ordinal")[0];if(n){var i=n.dim+"Axis",o=t.getReferringComponents(i,Jo).models[0].componentIndex;s[i]=s[i]||[];for(var r=0;r<=o;r++)s[i][o]=s[i][o]||{};s[i][o].boundaryGap="bar"===a}}}),"stack"===(i=a)&&(n=O({stack:l.option.title.tiled,tiled:l.option.title.stack},l.option.title),"emphasis"!==l.get(["iconStatus",a])&&(i="tiled")),e.dispatchAction({type:"changeMagicType",currentType:i,newOption:s,newTitle:n,featureName:"magicType"}))},qE),jE={line:function(t,e,n,i){if("bar"===t)return O({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 O({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){n=n.get("stack")===XE;if("line"===t||"bar"===t)return i.setIconStatus("stack",n?"normal":"emphasis"),O({id:e,stack:n?"":XE},i.get(["option","stack"])||{},!0)}};function qE(){return null!==UE&&UE.apply(this,arguments)||this}Vv({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});var KE=C,JE=new Array(60).join("-"),QE="\t";function $E(t){var o,r,a,h,t=(o={},r=[],a=[],t.eachRawSeries(function(t){var e,n,i=t.coordinateSystem;i&&("cartesian2d"===i.type||"polar"===i.type)&&"category"===(e=i.getBaseAxis()).type?(n=e.dim+"_"+e.index,o[n]||(o[n]={categoryAxis:e,valueAxis:i.getOtherAxis(e),series:[]},a.push({axisDim:e.dim,axisIndex:e.index})),o[n].series.push(t)):r.push(t)}),{seriesGroupByCategoryAxis:o,other:r,meta:a});return{value:U([(h=[],G(t.seriesGroupByCategoryAxis,function(t,e){var n=t.categoryAxis,i=t.valueAxis.dim,o=[" "].concat(H(t.series,function(t){return t.name})),r=[n.model.getCategories()];G(t.series,function(t){var e=t.getRawData();r.push(t.getRawData().mapArray(e.mapDimension(i),function(t){return t}))});for(var a=[o.join(QE)],s=0;st[1]&&t.reverse(),t}function g3(t,e){return qo(t,e,{includeMainTypes:p3})}var y3={grid:function(t,i){var o=t.xAxisModels,r=t.yAxisModels,t=t.gridModels,e=yt(),a={},s={};(o||r||t)&&(G(o,function(t){t=t.axis.grid.model;e.set(t.id,t),a[t.id]=!0}),G(r,function(t){t=t.axis.grid.model;e.set(t.id,t),s[t.id]=!0}),G(t,function(t){e.set(t.id,t),a[t.id]=!0,s[t.id]=!0}),e.each(function(t){var e=t.coordinateSystem,n=[];G(e.getCartesians(),function(t,e){(0<=V(o,t.getAxis("x").model)||0<=V(r,t.getAxis("y").model))&&n.push(t)}),i.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:n[0],coordSyses:n,getPanelRect:v3.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,n){G(t.geoModels,function(t){var e=t.coordinateSystem;n.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:e,coordSyses:[e],getPanelRect:v3.geo})})}},m3=[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){t=t.geoModel;return t&&t===e.geoModel}],v3={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Yy(t)),e}},x3={lineX:Z(_3,0),lineY:Z(_3,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),i=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),i=[f3([o[0],i[0]]),f3([o[1],i[1]])];return{values:i,xyMinMax:i}},polygon:function(e,n,t,i){var o=[[1/0,-1/0],[1/0,-1/0]];return{values:H(t,function(t){t=e?n.pointToData(t,i):n.dataToPoint(t,i);return o[0][0]=Math.min(o[0][0],t[0]),o[1][0]=Math.min(o[1][0],t[1]),o[0][1]=Math.max(o[0][1],t[0]),o[1][1]=Math.max(o[1][1],t[1]),t}),xyMinMax:o}}};function _3(t,e,n,i){var o=n.getAxis(["x","y"][t]),r=f3(H([0,1],function(t){return e?o.coordToData(o.toLocalCoord(i[t]),!0):o.toGlobalCoord(o.dataToCoord(i[t]))})),n=[];return n[t]=r,n[1-t]=[NaN,NaN],{values:r,xyMinMax:n}}var b3={lineX:Z(w3,0),lineY:Z(w3,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,n,i){return H(t,function(t,e){return[t[0]-i[0]*n[e][0],t[1]-i[1]*n[e][1]]})}};function w3(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function S3(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var M3,I3=C,T3=G,io=(d(D3,M3=LE),D3.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new lL(n.getZr()),this._brushController.on("brush",X(this._onBrush,this)).mount()),function(t,e,n,i,o){var r=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(r="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=r,t.setIconStatus("zoom",r?"emphasis":"normal");o=new I3(A3(t),e,{include:["grid"]}).makePanelOpts(o,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(o).enableBrush(!(!r||!o.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,i,n),t.setIconStatus("back",1'}(n,i,o)),K(t))r.innerHTML=t+a;else if(t){r.innerHTML="",j(t)||(t=[t]);for(var s=0;s");this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,h)?this._updatePosition(o,r,i[0],i[1],this._tooltipContent,h):this._showTooltipContent(o,a,h,Math.random()+"",i[0],i[1],r,null,d)})},nV.prototype._showSeriesItemTooltip=function(t,e,n){var i,o,r,a,s=this._ecModel,l=Gs(e),u=l.seriesIndex,h=s.getSeriesByIndex(u),c=l.dataModel||h,p=l.dataIndex,d=l.dataType,f=c.getData(d),e=this._renderMode,l=t.positionDefault,g=iV([f.getItemModel(p),c,h&&(h.coordinateSystem||{}).model],this._tooltipModel,l?{position:l}:null),l=g.get("trigger");null!=l&&"item"!==l||(i=c.getDataParams(p,d),o=new Td,i.marker=o.makeTooltipMarker("item",yh(i.color),e),l=xp(c.formatTooltip(p,!1,d)),d=g.get("order"),r=l.markupFragment?_d(l.markupFragment,o,e,d,s.get("useUTC"),g.get("textStyle")):l.markupText,a="item_"+c.name+"_"+p,this._showOrMove(g,function(){this._showTooltipContent(g,r,i,a,t.offsetX,t.offsetY,t.position,t.target,o)}),n({type:"showTip",dataIndexInside:p,dataIndex:f.getRawIndex(p),seriesIndex:u,from:this.uid}))},nV.prototype._showComponentItemTooltip=function(e,n,t){var i=Gs(n),o=i.tooltipConfig.option||{},r=[o=K(o)?{content:o,formatter:o}:o],i=this._ecModel.getComponent(i.componentMainType,i.componentIndex);i&&r.push(i),r.push({formatter:o.content});var o=e.positionDefault,a=iV(r,this._tooltipModel,o?{position:o}:null),s=a.get("content"),l=Math.random()+"",u=new Td;this._showOrMove(a,function(){var t=P(a.get("formatterParams")||{});this._showTooltipContent(a,s,t,l,e.offsetX,e.offsetY,e.position,n,u)}),t({type:"showTip",from:this.uid})},nV.prototype._showTooltipContent=function(n,t,i,e,o,r,a,s,l){var u,h,c,p,d;this._ticket="",n.get("showContent")&&n.get("show")&&(u=this._tooltipContent,h=n.get("formatter"),a=a||n.get("position"),p=t,c=this._getNearestPoint([o,r],i,n.get("trigger"),n.get("borderColor")).color,h&&(p=K(h)?(d=n.ecModel.get("useUTC"),p=h,gh(p=(t=j(i)?i[0]:i)&&t.axisType&&0<=t.axisType.indexOf("time")?Uu(t.axisValue,p,d):p,i,!0)):q(h)?(d=Q3(function(t,e){t===this._ticket&&(u.setContent(e,l,n,c,a),this._updatePosition(n,a,o,r,u,i,s))},this),this._ticket=e,h(i,e,d)):h),u.setContent(p,l,n,c,a),u.show(n,c),this._updatePosition(n,a,o,r,u,i,s))},nV.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||j(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:j(e)?void 0:{color:i||e.color||e.borderColor}},nV.prototype._doUpdatePosition=function(t,e,n,i,o,r,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u,h,c,p,d,f=o.getSize(),g=t.get("align"),y=t.get("verticalAlign"),m=a&&a.getBoundingRect().clone();a&&m.applyTransform(a.transform),j(e=q(e)?e([n,i],r,o.el,m,{viewSize:[s,l],contentSize:f.slice()}):e)?(n=tV(e[0],s),i=tV(e[1],l)):$(e)?((p=e).width=f[0],p.height=f[1],n=(d=Sh(p,{width:s,height:l})).x,i=d.y,y=g=null):i=(n=K(e)&&a?(u=function(t,e,n,i){var o=n[0],r=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-o/2,l=e.y+h/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+h+a;break;case"left":s=e.x-o-a,l=e.y+h/2-r/2;break;case"right":s=e.x+u+a,l=e.y+h/2-r/2}return[s,l]}(e,m,f,t.get("borderWidth")))[0]:(h=n,c=i,r=s,p=l,d=g?null:20,a=y?null:20,e=(m=(e=o).getSize())[0],m=m[1],null!=d&&(ro[0][1]&&(o[0][1]=r[0]),r[1]o[1][1]&&(o[1][1]=r[1])}return o&&MV(o)}};function MV(t){return new ki(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var IV,TV,CV=(d(AV,TV=Wd),AV.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new lL(e.getZr())).on("brush",X(this._onBrush,this)).mount()},AV.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},AV.prototype.updateTransform=function(t,e,n,i){xV(e),this._updateController(t,e,n,i)},AV.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},AV.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},AV.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())},AV.prototype.dispose=function(){this._brushController.dispose()},AV.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:P(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:P(n),$from:e})},AV.type="brush",AV);function DV(){var t=null!==IV&&IV.apply(this,arguments)||this;return t.type=DV.type,t.areas=[],t.brushOption={},t}function AV(){var t=null!==TV&&TV.apply(this,arguments)||this;return t.type=AV.type,t}function kV(t,e){return O({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new wu(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var LV,PV=(d(DV,IV=Vh),DV.prototype.optionUpdated=function(t,e){var n=this.option;e||pV(n,t,["inBrush","outOfBrush"]);t=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},t.hasOwnProperty("liftZ")||(t.liftZ=5)},DV.prototype.setAreas=function(t){t&&(this.areas=H(t,function(t){return kV(this.option,t)},this))},DV.prototype.setBrushOption=function(t){this.brushOption=kV(this.option,t),this.brushType=this.brushOption.brushType},DV.type="brush",DV.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],DV.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},DV),OV=["rect","polygon","lineX","lineY","keep","clear"],RV=(d(NV,LV=LE),NV.prototype.render=function(e,t,n){var i,o,r;t.eachComponent({mainType:"brush"},function(t){i=t.brushType,o=t.brushOption.brushMode||"single",r=r||!!t.areas.length}),this._brushType=i,this._brushMode=o,G(e.get("type",!0),function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?r:t===i)?"emphasis":"normal")})},NV.prototype.updateView=function(t,e,n){this.render(t,e,n)},NV.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return G(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},NV.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}})},NV.getDefaultOption=function(t){return{show:!0,type:OV.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"])}},NV);function NV(){return null!==LV&&LV.apply(this,arguments)||this}var zV,EV,VV=(d(GV,EV=Vh),GV.type="title",GV.defaultOption={zlevel:0,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"}},GV),BV=(d(FV,zV=Wd),FV.prototype.render=function(t,e,n){var i,o,r,a,s,l,u,h,c;this.group.removeAll(),t.get("show")&&(i=this.group,u=t.getModel("textStyle"),a=t.getModel("subtextStyle"),o=t.get("textAlign"),c=rt(t.get("textBaseline"),t.get("textVerticalAlign")),h=(r=new Fs({style:eu(u,{text:t.get("text"),fill:u.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),u=t.get("subtext"),a=new Fs({style:eu(a,{text:u,fill:a.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),s=t.get("link"),l=t.get("sublink"),h=t.get("triggerEvent",!0),r.silent=!s&&!h,a.silent=!l&&!h,s&&r.on("click",function(){mh(s,"_"+t.get("target"))}),l&&a.on("click",function(){mh(l,"_"+t.get("subtarget"))}),Gs(r).eventData=Gs(a).eventData=h?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(r),u&&i.add(a),h=i.getBoundingRect(),(u=t.getBoxLayoutParams()).width=h.width,u.height=h.height,n=Sh(u,{width:n.getWidth(),height:n.getHeight()},t.get("padding")),o||("right"===(o="middle"===(o=t.get("left")||t.get("right"))?"center":o)?n.x+=n.width:"center"===o&&(n.x+=n.width/2)),c||("bottom"===(c="center"===(c=t.get("top")||t.get("bottom"))?"middle":c)?n.y+=n.height:"middle"===c&&(n.y+=n.height/2),c=c||"top"),i.x=n.x,i.y=n.y,i.markRedraw(),r.setStyle(c={align:o,verticalAlign:c}),a.setStyle(c),h=i.getBoundingRect(),c=n.margin,(n=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),n=new Ts({shape:{x:h.x-c[3],y:h.y-c[0],width:h.width+c[1]+c[3],height:h.height+c[0]+c[2],r:t.get("borderRadius")},style:n,subPixelOptimize:!0,silent:!0}),i.add(n))},FV.type="title",FV);function FV(){var t=null!==zV&&zV.apply(this,arguments)||this;return t.type=FV.type,t}function GV(){var t=null!==EV&&EV.apply(this,arguments)||this;return t.type=GV.type,t.layoutMode={type:"box",ignoreSize:!0},t}var HV,WV,io=(d(YV,WV=Vh),YV.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},YV.prototype.mergeOption=function(t){WV.prototype.mergeOption.apply(this,arguments),this._initData()},YV.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},YV.prototype.getCurrentIndex=function(){return this.option.currentIndex},YV.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},YV.prototype.setPlayState=function(t){this.option.autoPlay=!!t},YV.prototype.getPlayState=function(){return!!this.option.autoPlay},YV.prototype._initData=function(){var o,t=this.option,e=t.data||[],t=t.axisType,r=this._names=[];"category"===t?(o=[],G(e,function(t,e){var n,i=Ho(Vo(t),"");$(t)?(n=P(t)).value=e:n=e,o.push(n),r.push(i)})):o=e,(this._data=new c_([{name:"value",type:{category:"ordinal",time:"time",value:"number"}[t]||"number"}],this)).initData(o,r)},YV.prototype.getData=function(){return this._data},YV.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},YV.type="timeline",YV.defaultOption={zlevel:0,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:[]},YV),io=(d(UV,HV=io),UV.type="timeline.slider",UV.defaultOption=Iu(io.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:[]}),UV);function UV(){var t=null!==HV&&HV.apply(this,arguments)||this;return t.type=UV.type,t}function YV(){var t=null!==WV&&WV.apply(this,arguments)||this;return t.type=YV.type,t.layoutMode="box",t}B(io,fu.prototype);var XV,ZV,jV,qV=io,io=(d(eB,jV=Wd),eB.type="timeline",eB),KV=(d(tB,ZV=_),tB.prototype.getLabelModel=function(){return this.model.getModel("label")},tB.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},tB),JV=Math.PI,QV=Zo();function $V(){var t=null!==XV&&XV.apply(this,arguments)||this;return t.type=$V.type,t}function tB(t,e,n,i){n=ZV.call(this,t,e,n)||this;return n.type=i||"value",n}function eB(){var t=null!==jV&&jV.apply(this,arguments)||this;return t.type=eB.type,t}function nB(t,e,n,i,o,r){var a=e.get("color");o?(o.setColor(a),n.add(o),r&&r.onUpdate(o)):((o=am(t.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(o),r&&r.onCreate(o));e=e.getItemStyle(["color"]);o.setStyle(e),i=O({rectHover:!0,z2:100},i,!0);e=sm(t.get("symbolSize"));i.scaleX=e[0]/2,i.scaleY=e[1]/2;e=lm(t.get("symbolOffset"),e);e&&(i.x=(i.x||0)+e[0],i.y=(i.y||0)+e[1]);t=t.get("symbolRotate");return i.rotation=(t||0)*Math.PI/180||0,o.attr(i),o.updateTransform(),o}function iB(t,e,n,i,o,r){var a;t.dragging||(a=o.getModel("checkpointStyle"),n=i.dataToCoord(o.getData().get("value",n)),r||!a.get("animation",!0)?(t.attr({x:n,y:0}),e&&e.attr({shape:{x2:n}})):(a={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)},t.stopAnimation(null,!0),t.animateTo({x:n,y:0},a),e&&e.animateTo({shape:{x2:n}},a)))}var oB=(d($V,XV=io),$V.prototype.init=function(t,e){this.api=e},$V.prototype.render=function(e,t,n){var i,o,r;this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)&&(i=this._layout(e,n),o=this._createGroup("_mainGroup"),n=this._createGroup("_labelGroup"),r=this._axis=this._createAxis(i,e),e.formatTooltip=function(t){return md("nameValue",{noName:!0,value:r.scale.getLabel({value:t})})},G(["AxisLine","AxisTick","Control","CurrentPointer"],function(t){this["_render"+t](i,o,r,e)},this),this._renderAxisLabel(i,n,r,e),this._position(i,e)),this._doPlayStop(),this._updateTicksStatus()},$V.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},$V.prototype.dispose=function(){this._clearTimer()},$V.prototype._layout=function(t,e){var n,i,o,r=t.get(["label","position"]),a=t.get("orient"),s=(x=e,Sh((_=t).getBoxLayoutParams(),{width:x.getWidth(),height:x.getHeight()},_.get("padding"))),l=null==r||"auto"===r?"horizontal"===a?s.y+s.height/2t[1]?t[1]:n)n[1]||o[1]i[1]||r[1]n[o],f=[-c.x,-c.y];e||(f[i]=l[s]);var g=[0,0],e=[-p.x,-p.y],s=rt(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?e[i]+=n[o]-p[o]:g[i]+=p[o]+s),e[1-i]+=c[r]/2-p[r]/2,l.setPosition(f),u.setPosition(g),h.setPosition(e);g={x:0,y:0};g[o]=(d?n:c)[o],g[r]=Math.max(c[r],p[r]),g[a]=Math.min(0,p[a]+e[1-i]),u.__rectSize=n[o],d?((i={x:0,y:0})[o]=Math.max(n[o]-p[o]-s,0),i[r]=g[r],u.setClipPath(new Ts({shape:i})),u.__rectSize=i[o]):h.eachChild(function(t){t.attr({invisible:!0,silent:!0})});h=this._getPageInfo(t);return null!=h.pageIndex&&Wl(l,{x:h.contentPosition[0],y:h.contentPosition[1]},d?t:null),this._updatePageInfoView(t,h),g},C4.prototype._pageGo=function(t,e,n){t=this._getPageInfo(e)[t];null!=t&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},C4.prototype._updatePageInfoView=function(n,i){var o=this._controllerGroup;G(["pagePrev","pageNext"],function(t){var e=null!=i[t+"DataIndex"],t=o.childOfName(t);t&&(t.setStyle("fill",e?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),t.cursor=e?"pointer":"default")});var t=o.childOfName("pageText"),e=n.get("pageFormatter"),r=i.pageIndex,a=null!=r?r+1:0,r=i.pageCount;t&&e&&t.setStyle("text",K(e)?e.replace("{current}",null==a?"":a+"").replace("{total}",null==r?"":r+""):e({current:a,total:r}))},C4.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,r=M4[o],a=I4[o],s=this._findTargetItemIndex(e),l=n.children(),t=l[s],u=l.length,e=u?1:0,h={contentPosition:[n.x,n.y],pageCount:e,pageIndex:e-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!t)return h;t=g(t);h.contentPosition[o]=-t.s;for(var c=s+1,p=t,d=t,f=null;c<=u;++c)(!(f=g(l[c]))&&d.e>p.s+i||f&&!y(f,p.s))&&((p=d.i>p.i?d:f)&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=p.i),++h.pageCount)),d=f;for(c=s-1,d=p=t,f=null;-1<=c;--c)(f=g(l[c]))&&y(d,f.s)||!(p.i=e&&t.s<=e+i}},C4.prototype._findTargetItemIndex=function(n){return this._showController?(this.getContentGroup().eachChild(function(t,e){t=t.__legendDataIndex;null==o&&null!=t&&(o=e),t===n&&(i=e)}),null!=i?i:o):0;var i,o},C4.type="legend.scroll",C4);function C4(){var t=null!==b4&&b4.apply(this,arguments)||this;return t.type=C4.type,t.newlineDisabled=!0,t._currentIndex=0,t}function D4(t){Xv(v4),t.registerComponentModel(w4),t.registerComponentView(T4),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)})})}var A4,k4=(d(P4,A4=Jn),P4.type="dataZoom.inside",P4.defaultOption=Iu(Jn.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),P4),L4=Zo();function P4(){var t=null!==A4&&A4.apply(this,arguments)||this;return t.type=P4.type,t}function O4(t,e){e&&(t.removeKey(e.model.uid),(e=e.controller)&&e.dispose())}function R4(t,e){t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function N4(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function z4(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(t,a){var e=L4(a),l=e.coordSysRecordMap||(e.coordSysRecordMap=yt());l.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){G(uE(o).infoList,function(t){var r,e,n=t.model.uid,i=l.get(n)||l.set(n,(i=a,n=t.model,r={model:n,containsPoint:Z(N4,n),dispatchAction:Z(R4,i),dataZoomInfoMap:null,controller:null},e=r.controller=new qI(i.getZr()),G(["pan","zoom","scrollMove"],function(o){e.on(o,function(n){var i=[];r.dataZoomInfoMap.each(function(t){var e;n.isAvailableBehavior(t.model.option)&&(e=(e=(t.getRange||{})[o])&&e(t.dzReferCoordSysInfo,r.model.mainType,r.controller,n),!t.model.get("disabled",!0)&&e&&i.push({dataZoomId:t.model.id,start:e[0],end:e[1]}))}),i.length&&r.dispatchAction(i)})}),r));(i.dataZoomInfoMap||(i.dataZoomInfoMap=yt())).set(o.uid,{dzReferCoordSysInfo:t,model:o,getRange:null})})}),l.each(function(t){var e,n,i,o,r,a=t.controller,s=t.dataZoomInfoMap;!s||null!=(n=s.keys()[0])&&(e=s.get(n)),e?(o={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0,s.each(function(t){var e=t.model,t=!e.get("disabled",!0)&&(!e.get("zoomLock",!0)||"move");o["type_"+i]e[0]||t[1]<0||t[1]>e[1]||(e=((e=this._handleEnds)[0]+e[1])/2,e=this._updateInterval("all",t[0]-e),this._updateView(),e&&this._dispatchZoomAction(!1))},Q4.prototype._onBrushStart=function(t){var e=t.offsetX,t=t.offsetY;this._brushStart=new bi(e,t),this._brushing=!0,this._brushStartTime=+new Date},Q4.prototype._onBrushEnd=function(t){var e,n,i;this._brushing&&(i=this._displayables.brushRect,this._brushing=!1,i&&(i.attr("ignore",!0),e=i.shape,+new Date-this._brushStartTime<200&&Math.abs(e.width)<5||(n=this._getViewExtent(),this._range=mo([fo(e.x,n,i=[0,100],!0),fo(e.x+e.width,n,i,!0)]),this._handleEnds=[e.x,e.x+e.width],this._updateView(),this._dispatchZoomAction(!1))))},Q4.prototype._onBrush=function(t){this._brushing&&(re(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},Q4.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new Z4({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);i=this._brushStart,n=this._displayables.sliderGroup,e=n.transformCoordToLocal(t,e),n=n.transformCoordToLocal(i.x,i.y),i=this._size;e[0]=Math.max(Math.min(i[0],e[0]),0),o.setShape({x:n[0],y:0,width:e[0]-n[0],height:i[1]})},Q4.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?J4:null,start:e[0],end:e[1]})},Q4.prototype._findCoordRect=function(){var t,e,n=uE(this.dataZoomModel).infoList;return t=!(t=!t&&n.length?(e=n[0].model.coordinateSystem).getRect&&e.getRect():t)?{x:.2*(n=this.api.getWidth()),y:.2*(e=this.api.getHeight()),width:.6*n,height:.6*e}:t},Q4.type="dataZoom.slider",Q4);function nF(t){t.registerComponentModel(X4),t.registerComponentView(eF),AE(t)}var iF,oF,rF={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]}},aF={get:function(t,e,n){e=P((rF[t]||{})[e]);return n&&j(e)?e[e.length-1]:e}},sF=vC.mapVisual,lF=vC.eachVisual,uF=j,hF=G,cF=mo,pF=fo,Jn=(d(gF,oF=Vh),gF.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},gF.prototype.optionUpdated=function(t,e){var n=this.option;w.canvasSupported||(n.realtime=!1),e||pV(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},gF.prototype.resetVisual=function(t){var e=this.stateList;t=X(t,this),this.controllerVisuals=cV(this.option.controller,e,t),this.targetVisuals=cV(this.option.target,e,t)},gF.prototype.getItemSymbol=function(){return null},gF.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,n=[];return null==t||"all"===t?this.ecModel.eachSeries(function(t,e){n.push(e)}):n=No(t),n},gF.prototype.eachTargetSeries=function(e,n){G(this.getTargetSeriesIndices(),function(t){t=this.ecModel.getSeriesByIndex(t);t&&e.call(n,t)},this)},gF.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(t){t===e&&(n=!0)}),n},gF.prototype.formatValueText=function(t,e,n){var i,o=this.option,r=o.precision,a=this.dataBound,o=o.formatter;n=n||["<",">"],j(t)&&(t=t.slice(),i=!0);e=e?t:i?[s(t[0]),s(t[1])]:s(t);return K(o)?o.replace("{value}",i?e[0]:e).replace("{value2}",i?e[1]:e):q(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))}},gF.prototype.resetExtent=function(){var t=this.option,t=cF([t.min,t.max]);this._dataExtent=t},gF.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}},gF.prototype.getExtent=function(){return this._dataExtent.slice()},gF.prototype.completeVisualOption=function(){var e=this.ecModel,n=this.option,t={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});O(i,t),O(o,t);var u=this.isCategory();function r(t){uF(n.color)&&!t.inRange&&(t.inRange={color:n.color.slice().reverse()}),t.inRange=t.inRange||{color:e.get("gradientColor")}}r.call(this,i),r.call(this,o),function(t,e,n){var e=t[e],i=t[n];e&&!i&&(i=t[n]={},hF(e,function(t,e){var n;!vC.isValidType(e)||null!=(n=aF.get(e,"inactive",u))&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}))}.call(this,i,"inRange","outOfRange"),function(o){var r=(o.inRange||{}).symbol||(o.outOfRange||{}).symbol,a=(o.inRange||{}).symbolSize||(o.outOfRange||{}).symbolSize,s=this.get("inactiveColor"),l=this.getItemSymbol()||"roundRect";hF(this.stateList,function(t){var e=this.itemSize,n=o[t];null==(n=n||(o[t]={color:u?s:[s]})).symbol&&(n.symbol=r&&P(r)||(u?l:[l])),null==n.symbolSize&&(n.symbolSize=a&&P(a)||(u?e[0]:[e[0],e[0]])),n.symbol=sF(n.symbol,function(t){return"none"===t?l:t});var i,t=n.symbolSize;null!=t&&(i=-1/0,lF(t,function(t){ie[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},fF.prototype.completeVisualOption=function(){iF.prototype.completeVisualOption.apply(this,arguments),G(this.stateList,function(t){t=this.option.controller[t].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},fF.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},fF.prototype.getSelected=function(){var t=this.getExtent(),e=mo((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},fF.prototype.findTargetDataIndices=function(i){var o=[];return this.eachTargetSeries(function(t){var n=[],e=t.getData();e.each(this.getDataDimensionIndex(e),function(t,e){i[0]<=t&&t<=i[1]&&n.push(e)},this),o.push({seriesId:t.id,dataIndex:n})},this),o},fF.prototype.getVisualMeta=function(n){var t=yF(0,0,this.getExtent()),e=yF(0,0,this.option.range.slice()),i=[];function o(t,e){i.push({value:t,color:n(t,e)})}for(var r=0,a=0,s=e.length,l=t.length;at[1])break;n.push({color:this.getControllerVisual(r,"color",e),offset:o/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},DF.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]]]},DF.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new ro("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})},DF.prototype._updateHandle=function(i,o){var r,a,s,l,u,h;this._useHandle&&(r=this._shapes,a=this.visualMapModel,s=r.handleThumbs,l=r.handleLabels,u=a.itemSize,h=a.getExtent(),IF([0,1],function(t){var e=s[t];e.setStyle("fill",o.handlesColor[t]),e.y=i[t];var n=MF(i[t],[0,u[1]],h,!0),n=this.getControllerVisual(n,"symbolSize");e.scaleX=e.scaleY=n/u[0],e.x=u[0]-n/2;e=Xy(r.handleLabelPoints[t],Yy(e,this.group));l[t].setStyle({x:e[0],y:e[1],text:a.formatValueText(this._dataInterval[t]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",r.mainGroup):"center"})},this))},DF.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 h=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),c=this.getControllerVisual(t,"symbolSize"),p=MF(t,r,s,!0),t=a[0]-c/2,r={x:u.x,y:u.y};u.y=p,u.x=t;s=Xy(l.indicatorLabelPoint,Yy(u,this.group)),a=l.indicatorLabel;a.attr("invisible",!1);c=this._applyTransform("left",l.mainGroup),l="horizontal"===this._orient;a.setStyle({text:(n||"")+o.formatValueText(e),verticalAlign:l?c:"middle",align:l?"center":c});h={x:t,y:p,style:{fill:h}},s={style:{x:s[0],y:s[1]}};o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator?(o={duration:100,easing:"cubicInOut",additive:!0},u.x=r.x,u.y=r.y,u.animateTo(h,o),a.animateTo(s,o)):(u.attr(h),a.attr(s)),this._firstShowIndicator=!1;var d=this._shapes.handleLabels;if(d)for(var f=0;f ",r):this._showIndicator(t,t,"≈ ",r)),t=this._hoverLinkDataIndices,r=[],(e||kF(s))&&(r=this._hoverLinkDataIndices=s.findTargetDataIndices(i)),i=r,r={},u(t||[],t={}),u(i||[],r,t),r=[h(t),h(r)],this._dispatchHighDown("downplay",wF(r[0],s)),this._dispatchHighDown("highlight",wF(r[1],s)))},DF.prototype._hoverLinkFromSeriesMouseOver=function(t){var e=t.target,n=this.visualMapModel;e&&null!=Gs(e).dataIndex&&(t=Gs(e),e=this.ecModel.getSeriesByIndex(t.seriesIndex),n.isTargetSeries(e)&&(t=(e=e.getData(t.dataType)).getStore().get(n.getDataDimensionIndex(e),t.dataIndex),isNaN(t)||this._showIndicator(t,t)))},DF.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;nn&&s([n,t[0]],"outOfRange"),s(t.slice()),n=t[1])},this),{stops:o,outerColors:r}}function s(t,e){var n=a.getRepresentValue({interval:t});e=e||a.getValueState(n);e=i(n,e);t[0]===-1/0?r[0]=e:t[1]===1/0?r[1]=e:o.push({value:t[0],color:e},{value:t[1],color:e})}},YF.type="visualMap.piecewise",YF.defaultOption=Iu(Jn.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}),YF),UF={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","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,e)},this)}};function YF(){var t=null!==WF&&WF.apply(this,arguments)||this;return t.type=YF.type,t._pieceList=[],t}function XF(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var ZF,jF=Jn,qF=(d(KF,ZF=gr),KF.prototype.doRender=function(){var i=this.group;i.removeAll();var o=this.visualMapModel,r=o.get("textGap"),t=o.textStyleModel,a=t.getFont(),s=t.getTextColor(),l=this._getItemAlign(),u=o.itemSize,e=this._getViewData(),t=e.endsText,h=ot(o.get("showLabel",!0),!t);t&&this._renderEndsText(i,t[0],u,h,l),G(e.viewPieceList,function(t){var e=t.piece,n=new ro;n.onclick=X(this._onItemClick,this,e),this._enableHoverLink(n,t.indexInModelPieceList);var t=o.getRepresentValue(e);this._createItemSymbol(n,t,[0,0,u[0],u[1]]),h&&(t=this.visualMapModel.getValueState(t),n.add(new Fs({style:{x:"right"===l?-r:u[0]+r,y:u[1]/2,text:e.text,verticalAlign:"middle",align:l,font:a,fill:s,opacity:"outOfRange"===t?.5:1}}))),i.add(n)},this),t&&this._renderEndsText(i,t[1],u,h,l),wh(o.get("orient"),i,o.get("itemGap")),this.renderBackground(i),this.positionGroup(i)},KF.prototype._enableHoverLink=function(t,n){var i=this;t.on("mouseover",function(){return e("highlight")}).on("mouseout",function(){return e("downplay")});var e=function(t){var e=i.visualMapModel;e.option.hoverLink&&i.api.dispatchAction({type:t,batch:wF(e.findTargetDataIndices(n),e)})}},KF.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return bF(t,this.api,t.itemSize);e=e.align;return e=!e||"auto"===e?"left":e},KF.prototype._renderEndsText=function(t,e,n,i,o){var r,a;e&&(r=new ro,a=this.visualMapModel.textStyleModel,r.add(new Fs({style:{x:i?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:e,font:a.getFont(),fill:a.getTextColor()}})),t.add(r))},KF.prototype._getViewData=function(){var t=this.visualMapModel,e=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}},KF.prototype._createItemSymbol=function(t,e,n){t.add(am(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},KF.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=P(n.selected),o=e.getSelectedMapKey(t);"single"===n.selectedMode?(i[o]=!0,G(i,function(t,e){i[e]=e===o})):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})},KF.type="visualMap.piecewise",KF);function KF(){var t=null!==ZF&&ZF.apply(this,arguments)||this;return t.type=KF.type,t}function JF(t){t.registerComponentModel(jF),t.registerComponentView(qF),GF(t)}var QF={label:{enabled:!0},decal:{show:!1}},$F=Zo(),tG={};function eG(g,o){var t,r=g.getModel("aria");function y(t,e){if("string"!=typeof t)return t;var n=t;return G(e,function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)}),n}r.get("enabled")&&(O((t=P(QF)).label,g.getLocaleModel().get("aria"),!1),O(r.option,t,!1),function(){{var n;r.getModel("decal").get("show")&&(n=yt(),g.eachSeries(function(t){var e;t.isColorBySeries()||((e=n.get(t.type))||n.set(t.type,e={}),$F(t).scope=e)}),g.eachRawSeries(function(i){var o,t,e,r,a,s,l;function u(t,e){e=t?N(N({},e),t):e;return e.dirty=!0,e}g.isSeriesFiltered(i)||("function"!=typeof i.enableAriaDecal?(o=i.getData(),i.isColorBySeries()?(t=hc(i.ecModel,i.name,tG,g.getSeriesCount()),e=o.getVisual("decal"),o.setVisual("decal",u(e,t))):(r=i.getRawData(),a={},s=$F(i).scope,o.each(function(t){var e=o.getRawIndex(t);a[e]=t}),l=r.count(),r.each(function(t){var e=a[t],n=r.getName(t)||t+"",t=hc(i.ecModel,n,s,l),n=o.getItemVisual(e,"decal");o.setItemVisual(e,"decal",u(n,t))}))):i.enableAriaDecal())}))}}(),function(){var t=g.getLocaleModel().get("aria"),h=r.getModel("label");{var e,c,p,d,f,n,i;h.option=z(h.option,t),h.get("enabled")&&(e=o.getZr().dom,h.get("description")?e.setAttribute("aria-label",h.get("description")):(c=g.getSeriesCount(),p=h.get(["data","maxCount"])||10,n=h.get(["series","maxCount"])||10,d=Math.min(c,n),c<1||(i=function(){var t=g.get("title");return(t=t&&t.length?t[0]:t)&&t.text}(),t=i?y(h.get(["general","withTitle"]),{title:i}):h.get(["general","withoutTitle"]),f=[],n=1p?n+=y(h.get(["data","partialData"]),{displayCnt:p}):n+=h.get(["data","allData"]);for(var o,r,a,s=h.get(["data","separator","middle"]),t=h.get(["data","separator","end"]),l=[],u=0;u":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},oG=(gG.prototype.evaluate=function(t){var e=typeof t;return"string"==e?this._condVal.test(t):"number"==e&&this._condVal.test(t+"")},gG),rG=(fG.prototype.evaluate=function(){return this.value},fG),aG=(dG.prototype.evaluate=function(){for(var t=this.children,e=0;eMath.abs(l),h=OG([a,l],u?0:1,e),c=(u?s:l)/h.length,p=0;pe.length,s=o?iH(r,o):iH(a?e:t,[a?t:e]),l=0,u=0;usH))for(var n=e.getIndices(),i=function(t){for(var e=t.dimensions,n=0;n