(window.webpackJsonp=window.webpackJsonp||[]).push([["home~onelevel~therelevel~threejshb"],{"313e":function(t,e,n){"use strict";n.r(e),n.d(e,"version",function(){return yv}),n.d(e,"dependencies",function(){return mv}),n.d(e,"PRIORITY",function(){return bv}),n.d(e,"init",function(){return x1}),n.d(e,"connect",function(){return _1}),n.d(e,"disConnect",function(){return b1}),n.d(e,"disconnect",function(){return w1}),n.d(e,"dispose",function(){return S1}),n.d(e,"getInstanceByDom",function(){return M1}),n.d(e,"getInstanceById",function(){return I1}),n.d(e,"registerTheme",function(){return T1}),n.d(e,"registerPreprocessor",function(){return C1}),n.d(e,"registerProcessor",function(){return D1}),n.d(e,"registerPostInit",function(){return A1}),n.d(e,"registerPostUpdate",function(){return k1}),n.d(e,"registerUpdateLifecycle",function(){return L1}),n.d(e,"registerAction",function(){return P1}),n.d(e,"registerCoordinateSystem",function(){return O1}),n.d(e,"getCoordinateSystemDimensions",function(){return R1}),n.d(e,"registerLocale",function(){return hh}),n.d(e,"registerLayout",function(){return N1}),n.d(e,"registerVisual",function(){return z1}),n.d(e,"registerLoading",function(){return B1}),n.d(e,"setCanvasCreator",function(){return G1}),n.d(e,"registerMap",function(){return F1}),n.d(e,"getMap",function(){return H1}),n.d(e,"registerTransform",function(){return W1}),n.d(e,"dataTool",function(){return U1}),n.d(e,"zrender",function(){return s}),n.d(e,"matrix",function(){return a}),n.d(e,"vector",function(){return o}),n.d(e,"zrUtil",function(){return i}),n.d(e,"color",function(){return r}),n.d(e,"throttle",function(){return Bf}),n.d(e,"helper",function(){return l}),n.d(e,"use",function(){return Z1}),n.d(e,"parseGeoJSON",function(){return nv}),n.d(e,"parseGeoJson",function(){return nv}),n.d(e,"number",function(){return u}),n.d(e,"time",function(){return h}),n.d(e,"graphic",function(){return c}),n.d(e,"format",function(){return d}),n.d(e,"util",function(){return f}),n.d(e,"env",function(){return w}),n.d(e,"List",function(){return Mx}),n.d(e,"Model",function(){return th}),n.d(e,"Axis",function(){return cb}),n.d(e,"ComponentModel",function(){return xc}),n.d(e,"ComponentView",function(){return If}),n.d(e,"SeriesModel",function(){return Sf}),n.d(e,"ChartView",function(){return Nf}),n.d(e,"innerDrawElementOnCanvas",function(){return c0}),n.d(e,"extendComponentModel",function(){return pb}),n.d(e,"extendComponentView",function(){return db}),n.d(e,"extendSeriesModel",function(){return fb}),n.d(e,"extendChartView",function(){return gb});var i={};n.r(i),n.d(i,"$override",function(){return O}),n.d(i,"guid",function(){return N}),n.d(i,"logError",function(){return z}),n.d(i,"clone",function(){return E}),n.d(i,"merge",function(){return V}),n.d(i,"mergeAll",function(){return B}),n.d(i,"extend",function(){return G}),n.d(i,"defaults",function(){return F}),n.d(i,"createCanvas",function(){return H}),n.d(i,"indexOf",function(){return W}),n.d(i,"inherits",function(){return U}),n.d(i,"mixin",function(){return X}),n.d(i,"isArrayLike",function(){return Y}),n.d(i,"each",function(){return Z}),n.d(i,"map",function(){return j}),n.d(i,"reduce",function(){return q}),n.d(i,"filter",function(){return K}),n.d(i,"find",function(){return $}),n.d(i,"keys",function(){return J}),n.d(i,"bind",function(){return Q}),n.d(i,"curry",function(){return tt}),n.d(i,"isArray",function(){return et}),n.d(i,"isFunction",function(){return nt}),n.d(i,"isString",function(){return it}),n.d(i,"isStringSafe",function(){return ot}),n.d(i,"isNumber",function(){return rt}),n.d(i,"isObject",function(){return at}),n.d(i,"isBuiltInObject",function(){return st}),n.d(i,"isTypedArray",function(){return lt}),n.d(i,"isDom",function(){return ut}),n.d(i,"isGradientObject",function(){return ht}),n.d(i,"isImagePatternObject",function(){return ct}),n.d(i,"isRegExp",function(){return pt}),n.d(i,"eqNaN",function(){return dt}),n.d(i,"retrieve",function(){return ft}),n.d(i,"retrieve2",function(){return gt}),n.d(i,"retrieve3",function(){return yt}),n.d(i,"slice",function(){return mt}),n.d(i,"normalizeCssArray",function(){return vt}),n.d(i,"assert",function(){return xt}),n.d(i,"trim",function(){return _t}),n.d(i,"setAsPrimitive",function(){return wt}),n.d(i,"isPrimitive",function(){return St}),n.d(i,"HashMap",function(){return Mt}),n.d(i,"createHashMap",function(){return Tt}),n.d(i,"concatArray",function(){return Ct}),n.d(i,"createObject",function(){return Dt}),n.d(i,"hasOwn",function(){return At}),n.d(i,"noop",function(){return kt});var o={};n.r(o),n.d(o,"create",function(){return Ot}),n.d(o,"copy",function(){return Rt}),n.d(o,"clone",function(){return Nt}),n.d(o,"set",function(){return zt}),n.d(o,"add",function(){return Et}),n.d(o,"scaleAndAdd",function(){return Vt}),n.d(o,"sub",function(){return Bt}),n.d(o,"len",function(){return Gt}),n.d(o,"length",function(){return Ft}),n.d(o,"lenSquare",function(){return Ht}),n.d(o,"lengthSquare",function(){return Wt}),n.d(o,"mul",function(){return Ut}),n.d(o,"div",function(){return Xt}),n.d(o,"dot",function(){return Yt}),n.d(o,"scale",function(){return Zt}),n.d(o,"normalize",function(){return jt}),n.d(o,"distance",function(){return qt}),n.d(o,"dist",function(){return Kt}),n.d(o,"distanceSquare",function(){return $t}),n.d(o,"distSquare",function(){return Jt}),n.d(o,"negate",function(){return Qt}),n.d(o,"lerp",function(){return te}),n.d(o,"applyTransform",function(){return ee}),n.d(o,"min",function(){return ne}),n.d(o,"max",function(){return ie});var r={};n.r(r),n.d(r,"parse",function(){return Mn}),n.d(r,"lift",function(){return Tn}),n.d(r,"toHex",function(){return Cn}),n.d(r,"fastLerp",function(){return Dn}),n.d(r,"fastMapToColor",function(){return An}),n.d(r,"lerp",function(){return kn}),n.d(r,"mapToColor",function(){return Ln}),n.d(r,"modifyHSL",function(){return Pn}),n.d(r,"modifyAlpha",function(){return On}),n.d(r,"stringify",function(){return Rn}),n.d(r,"lum",function(){return Nn}),n.d(r,"random",function(){return zn});var a={};n.r(a),n.d(a,"create",function(){return Ii}),n.d(a,"identity",function(){return Ti}),n.d(a,"copy",function(){return Ci}),n.d(a,"mul",function(){return Di}),n.d(a,"translate",function(){return Ai}),n.d(a,"rotate",function(){return ki}),n.d(a,"scale",function(){return Li}),n.d(a,"invert",function(){return Pi}),n.d(a,"clone",function(){return Oi});var s={};n.r(s),n.d(s,"init",function(){return No}),n.d(s,"dispose",function(){return zo}),n.d(s,"disposeAll",function(){return Eo}),n.d(s,"getInstance",function(){return Vo}),n.d(s,"registerPainter",function(){return Bo}),n.d(s,"version",function(){return Go});var p={};n.r(p),n.d(p,"updateProps",function(){return wu}),n.d(p,"initProps",function(){return Su}),n.d(p,"removeElement",function(){return Iu}),n.d(p,"removeElementWithFadeOut",function(){return Cu}),n.d(p,"isElementRemoved",function(){return Mu}),n.d(p,"extendShape",function(){return dm}),n.d(p,"extendPath",function(){return gm}),n.d(p,"registerShape",function(){return ym}),n.d(p,"getShapeClass",function(){return mm}),n.d(p,"makePath",function(){return vm}),n.d(p,"makeImage",function(){return xm}),n.d(p,"mergePath",function(){return bm}),n.d(p,"resizePath",function(){return wm}),n.d(p,"subPixelOptimizeLine",function(){return Sm}),n.d(p,"subPixelOptimizeRect",function(){return Mm}),n.d(p,"subPixelOptimize",function(){return Im}),n.d(p,"getTransform",function(){return Tm}),n.d(p,"applyTransform",function(){return Cm}),n.d(p,"transformDirection",function(){return Dm}),n.d(p,"groupTransition",function(){return km}),n.d(p,"clipPointsByRect",function(){return Lm}),n.d(p,"clipRectByRect",function(){return Pm}),n.d(p,"createIcon",function(){return Om}),n.d(p,"linePolygonIntersect",function(){return Rm}),n.d(p,"lineLineIntersect",function(){return Nm}),n.d(p,"setTooltipConfig",function(){return zm}),n.d(p,"Group",function(){return Ao}),n.d(p,"Image",function(){return qs}),n.d(p,"Text",function(){return xl}),n.d(p,"Circle",function(){return Rg}),n.d(p,"Ellipse",function(){return ay}),n.d(p,"Sector",function(){return My}),n.d(p,"Ring",function(){return Cy}),n.d(p,"Polygon",function(){return Ry}),n.d(p,"Polyline",function(){return Ey}),n.d(p,"Rect",function(){return rl}),n.d(p,"Line",function(){return Lg}),n.d(p,"BezierCurve",function(){return Zy}),n.d(p,"Arc",function(){return Kf}),n.d(p,"IncrementalDisplayable",function(){return im}),n.d(p,"CompoundPath",function(){return jy}),n.d(p,"LinearGradient",function(){return qy}),n.d(p,"RadialGradient",function(){return Ky}),n.d(p,"BoundingRect",function(){return Qi}),n.d(p,"OrientedBoundingRect",function(){return em}),n.d(p,"Point",function(){return Ui}),n.d(p,"Path",function(){return Bs});var l={};n.r(l),n.d(l,"createList",function(){return Z_}),n.d(l,"getLayoutRect",function(){return oc}),n.d(l,"createDimensions",function(){return Tx}),n.d(l,"dataStack",function(){return j_}),n.d(l,"createSymbol",function(){return Fm}),n.d(l,"createScale",function(){return q_}),n.d(l,"mixinAxisModelCommonMethods",function(){return K_}),n.d(l,"getECData",function(){return _l}),n.d(l,"enableHoverEmphasis",function(){return hu}),n.d(l,"createTextStyle",function(){return $_});var u={};n.r(u),n.d(u,"linearMap",function(){return Wo}),n.d(u,"round",function(){return Xo}),n.d(u,"asc",function(){return Yo}),n.d(u,"getPrecision",function(){return Zo}),n.d(u,"getPrecisionSafe",function(){return jo}),n.d(u,"getPixelPrecision",function(){return qo}),n.d(u,"getPercentWithPrecision",function(){return Ko}),n.d(u,"MAX_SAFE_INTEGER",function(){return $o}),n.d(u,"remRadian",function(){return Jo}),n.d(u,"isRadianAroundZero",function(){return Qo}),n.d(u,"parseDate",function(){return er}),n.d(u,"quantity",function(){return nr}),n.d(u,"quantityExponent",function(){return ir}),n.d(u,"nice",function(){return or}),n.d(u,"quantile",function(){return rr}),n.d(u,"reformIntervals",function(){return ar}),n.d(u,"isNumeric",function(){return lr}),n.d(u,"numericToNumber",function(){return sr});var h={};n.r(h),n.d(h,"parse",function(){return er}),n.d(h,"format",function(){return wh});var c={};n.r(c),n.d(c,"extendShape",function(){return dm}),n.d(c,"extendPath",function(){return gm}),n.d(c,"makePath",function(){return vm}),n.d(c,"makeImage",function(){return xm}),n.d(c,"mergePath",function(){return bm}),n.d(c,"resizePath",function(){return wm}),n.d(c,"createIcon",function(){return Om}),n.d(c,"updateProps",function(){return wu}),n.d(c,"initProps",function(){return Su}),n.d(c,"getTransform",function(){return Tm}),n.d(c,"clipPointsByRect",function(){return Lm}),n.d(c,"clipRectByRect",function(){return Pm}),n.d(c,"registerShape",function(){return ym}),n.d(c,"getShapeClass",function(){return mm}),n.d(c,"Group",function(){return Ao}),n.d(c,"Image",function(){return qs}),n.d(c,"Text",function(){return xl}),n.d(c,"Circle",function(){return Rg}),n.d(c,"Ellipse",function(){return ay}),n.d(c,"Sector",function(){return My}),n.d(c,"Ring",function(){return Cy}),n.d(c,"Polygon",function(){return Ry}),n.d(c,"Polyline",function(){return Ey}),n.d(c,"Rect",function(){return rl}),n.d(c,"Line",function(){return Lg}),n.d(c,"BezierCurve",function(){return Zy}),n.d(c,"Arc",function(){return Kf}),n.d(c,"IncrementalDisplayable",function(){return im}),n.d(c,"CompoundPath",function(){return jy}),n.d(c,"LinearGradient",function(){return qy}),n.d(c,"RadialGradient",function(){return Ky}),n.d(c,"BoundingRect",function(){return Qi});var d={};n.r(d),n.d(d,"addCommas",function(){return Vh}),n.d(d,"toCamelCase",function(){return Bh}),n.d(d,"normalizeCssArray",function(){return Gh}),n.d(d,"encodeHTML",function(){return Wh}),n.d(d,"formatTpl",function(){return Zh}),n.d(d,"getTooltipMarker",function(){return jh}),n.d(d,"formatTime",function(){return qh}),n.d(d,"capitalFirst",function(){return Kh}),n.d(d,"truncateText",function(){return ta}),n.d(d,"getTextRect",function(){return J_});var f={};n.r(f),n.d(f,"map",function(){return j}),n.d(f,"each",function(){return Z}),n.d(f,"indexOf",function(){return W}),n.d(f,"inherits",function(){return U}),n.d(f,"reduce",function(){return q}),n.d(f,"filter",function(){return K}),n.d(f,"bind",function(){return Q}),n.d(f,"curry",function(){return tt}),n.d(f,"isArray",function(){return et}),n.d(f,"isString",function(){return it}),n.d(f,"isObject",function(){return at}),n.d(f,"isFunction",function(){return nt}),n.d(f,"extend",function(){return G}),n.d(f,"defaults",function(){return F}),n.d(f,"clone",function(){return E}),n.d(f,"merge",function(){return V});var g=function(t,e){return(g=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 y(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}g(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var m=function(){return(m=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 ge(t){return"CANVAS"===t.nodeName.toUpperCase()}var ye="undefined"!=typeof window&&!!window.addEventListener,me=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ve=[];function xe(t,e,n,i){return n=n||{},i||!w.canvasSupported?_e(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):_e(t,e,n),n}function _e(t,e,n){if(w.domSupported&&t.getBoundingClientRect){var i=e.clientX,o=e.clientY;if(ge(t)){e=t.getBoundingClientRect();return n.zrX=i-e.left,n.zrY=o-e.top,0}if(fe(ve,t,i,o))return n.zrX=ve[0],n.zrY=ve[1],0}n.zrX=n.zrY=0}function be(t){return t||window.event}function we(t,e,n){if(null!=(e=be(e)).zrX)return e;var i=e.type;i&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&xe(t,i,e,n):(xe(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()}Z(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){ze.prototype[a]=function(t){var e,n,i=t.zrX,o=t.zrY,r=Be(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 Ze(f,g){var r,a,y=He,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=Ye(f[i],f,e,n,0,g);e+=t,0==(n-=t)||0!==(o=Xe(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=We(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),Sn(t,e),e):void xn(e,0,0,0,1)}if(7===o||9===o)return 0<=(u=parseInt(i.slice(1,7),16))&&u<=16777215?(xn(e,(16711680&u)>>16,(65280&u)>>8,255&u,9===o?parseInt(i.slice(7),16)/255:1),Sn(t,e),e):void xn(e,0,0,0,1)}}}function In(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=yn(t[1]),o=yn(t[2]),i=o<=.5?o*(i+1):o+i-o*i,o=2*o-i;return xn(e=e||[],dn(255*mn(o,i,n+1/3)),dn(255*mn(o,i,n)),dn(255*mn(o,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Tn(t,e){var n=Mn(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(Y(e)){var o,r=Y((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?qn:t[a],(0=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},no.prototype.clone=function(){return new no(this.x,this.y,this.width,this.height)},no.prototype.copy=function(t){no.copy(this,t)},no.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},no.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},no.prototype.isZero=function(){return 0===this.width||0===this.height},no.create=function(t){return new no(t.x,t.y,t.width,t.height)},no.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},no.applyTransform=function(t,e,n){if(n){if(n[1]<1e-5&&-1e-5this._sleepAfterStill&&this.animation.stop())},Ro.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},Ro.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},Ro.prototype.addHover=function(t){},Ro.prototype.removeHover=function(t){},Ro.prototype.clearHover=function(){},Ro.prototype.refreshHover=function(){this._needsRefreshHover=!0},Ro.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},Ro.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},Ro.prototype.clearAnimation=function(){this.animation.clear()},Ro.prototype.getWidth=function(){return this.painter.getWidth()},Ro.prototype.getHeight=function(){return this.painter.getHeight()},Ro.prototype.pathToImage=function(t,e){if(this.painter.pathToImage)return this.painter.pathToImage(t,e)},Ro.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},Ro.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},Ro.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},Ro.prototype.off=function(t,e){this.handler.off(t,e)},Ro.prototype.trigger=function(t,e){this.handler.trigger(t,e)},Ro.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;eu&&(u=l[c],h=c);++a[h],l[h]=0,++s}return a[e]/o}var $o=9007199254740991;function Jo(t){var e=2*Math.PI;return(t%e+e)%e}function Qo(t){return-Fo=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=ua(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(Qa.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},xs.prototype.bezierCurveTo=function(t,e,n,i,o,r){return this._drawPendingPt(),this.addData(Qa.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},xs.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Qa.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},xs.prototype.arc=function(t,e,n,i,o,r){return this._drawPendingPt(),gs[0]=i,gs[1]=o,ms(gs,r),i=gs[0],o=gs[1],this.addData(Qa.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=ls(o)*n+t,this._yi=us(o)*n+e,this},xs.prototype.arcTo=function(t,e,n,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,o),this},xs.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Qa.R,t,e,n,i),this},xs.prototype.closePath=function(){this._drawPendingPt(),this.addData(Qa.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},xs.prototype.fill=function(t){t&&t.fill(),this.toStatic()},xs.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},xs.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||cs(v)>i||c===e-1)&&(f=Math.sqrt(m*m+v*v),o=g,r=y);break;case Qa.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=ka(t,n,o,a,f),y=ka(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 Qa.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=za(t,n,o,p),f=za(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 Qa.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=ls(C)*I+S,s=us(C)*T+M),f=ss(I,T)*as(ds,Math.abs(b)),o=ls(w)*I+S,r=us(w)*T+M;break;case Qa.R:a=o=t[c++],s=r=t[c++];f=2*t[c++]+2*t[c++];break;case Qa.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},xs.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=As[i=0]+t&&a<=As[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 Ts.R:c=u=a[d++],p=h=a[d++];if(S=c+a[d++],M=p+a[d++],n){if(_s(c,p,S,p,e,i,o)||_s(S,p,S,M,e,i,o)||_s(S,M,c,M,e,i,o)||_s(c,M,c,p,e,i,o))return!0}else l+=Is(S,p,S,M,i,o),l+=Is(c,M,c,p,i,o);break;case Ts.Z:if(n){if(_s(u,h,c,p,e,i,o))return!0}else l+=Is(u,h,c,p,i,o);u=c,h=p}}return n||(r=h,t=p,Math.abs(r-t)"'])/g,Hh={"&":"&","<":"<",">":">",'"':""","'":"'"};function Wh(t){return null==t?"":(t+"").replace(Fh,function(t,e){return Hh[e]})}function Uh(t,e,n){function i(t){return t&&_t(t)?t:"-"}function o(t){return null!=t&&!isNaN(t)&&isFinite(t)}var r="time"===e,a=t instanceof Date;if(r||a){r=r?er(t):t;if(!isNaN(+r))return wh(r,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return ot(t)?i(t):rt(t)&&o(t)?t+"":"-";e=sr(t);return o(e)?Vh(e):ot(t)?i(t):"boolean"==typeof t?t+"":"-"}var Xh=["a","b","c","d","e","f","g"],Yh=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Zh(t,e,n){var i=(e=!et(e)?[e]:e).length;if(!i)return"";for(var o=e[0].$vars||[],r=0;r':'':{renderMode:t,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===o?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function qh(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=er(e),o=n?"UTC":"",r=i["get"+o+"FullYear"](),a=i["get"+o+"Month"]()+1,s=i["get"+o+"Date"](),l=i["get"+o+"Hours"](),e=i["get"+o+"Minutes"](),n=i["get"+o+"Seconds"](),o=i["get"+o+"Milliseconds"]();return t=t.replace("MM",_h(a,2)).replace("M",a).replace("yyyy",r).replace("yy",r%100+"").replace("dd",_h(s,2)).replace("d",s).replace("hh",_h(l,2)).replace("h",l).replace("mm",_h(e,2)).replace("m",e).replace("ss",_h(n,2)).replace("s",n).replace("SSS",_h(o,3))}function Kh(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function $h(t,e){return e=e||"transparent",it(t)?t:at(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Jh(t,e){var n;"_blank"===e||"blank"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}var Qh=Z,tc=["left","right","top","bottom","width","height"],ec=[["width","left","right"],["height","top","bottom"]];function nc(a,s,l,u,h){var c=0,p=0;null==u&&(u=1/0),null==h&&(h=1/0);var d=0;s.eachChild(function(t,e){var n,i,o=t.getBoundingRect(),r=s.childAt(e+1),e=r&&r.getBoundingRect();d="horizontal"===a?(r=o.width+(e?-e.x+o.x:0),u<(n=c+r)||t.newline?(c=0,n=r,p+=d+l,o.height):Math.max(d,o.height)):(e=o.height+(e?-e.y+o.y:0),h<(i=p+e)||t.newline?(c+=d+l,p=0,i=e,o.width):Math.max(d,o.width)),t.newline||(t.x=c,t.y=p,t.markRedraw(),"horizontal"===a?c=n+l:p=i+l)})}var ic=nc;function oc(t,e,n){n=Gh(n||0);var i=e.width,o=e.height,r=Uo(t.left,i),a=Uo(t.top,o),s=Uo(t.right,i),l=Uo(t.bottom,o),u=Uo(t.width,i),h=Uo(t.height,o),c=n[2]+n[0],p=n[1]+n[3],e=t.aspect;switch(isNaN(u)&&(u=i-s-p-r),isNaN(h)&&(h=o-l-c-a),null!=e&&(isNaN(u)&&isNaN(h)&&(i/oe)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 Zc(t){throw new Error(t)}var jc,qc="\0_ec_inner",Fr=(y(Kc,jc=th),Kc.prototype.init=function(t,e,n,i,o,r){i=i||{},this.option=null,this._theme=new th(i),this._locale=new th(o),this._optionManager=r},Kc.prototype.setOption=function(t,e,n){e=Qc(e);this._optionManager.setOption(t,n,e),this._resetOption(null,e)},Kc.prototype.resetOption=function(t,e){return this._resetOption(t,Qc(e))},Kc.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)):Gc(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&&Z(o,function(t){i=!0,this._mergeOption(t,e)},this),i},Kc.prototype.mergeOption=function(t){this._mergeOption(t,null)},Kc.prototype._mergeOption=function(i,t){var o=this.option,u=this._componentsMap,h=this._componentsCount,n=[],r=Tt(),c=t&&t.replaceMergeMainTypeMap;Lc(this).datasetMap=Tt(),Z(i,function(t,e){null!=t&&(xc.hasClass(e)?e&&(n.push(e),r.set(e,!0)):o[e]=null==o[e]?E(t):V(o[e],t,!0))}),c&&c.each(function(t,e){xc.hasClass(e)&&!r.get(e)&&(n.push(e),r.set(e,!0))}),xc.topologicalTravel(n,xc.getAllClassMainTypes(),function(r){var t,e=(e=this,n=dr(i[t=r]),(t=Ec.get(t))&&(e=t(e))?n.concat(e):n),n=u.get(r);Sr(n=mr(n,e,n?c&&c.get(r)?"replaceMerge":"normalMerge":"replaceAll"),r,xc),o[r]=null,u.set(r,null),h.set(r,0);var a=[],s=[],l=0;Z(n,function(t,e){var n=t.existing,i=t.newOption;if(i){var o=xc.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=G({componentIndex:e},t.keyInfo),G(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&&Vc(this)},this),this._seriesIndices||Vc(this)},Kc.prototype.getOption=function(){var a=E(this.option);return Z(a,function(t,e){if(xc.hasClass(e)){for(var n=dr(t),i=n.length,o=!1,r=i-1;0<=r;r--)n[r]&&!wr(n[r])?o=!0:(n[r]=null,o||i--);n.length=i,a[e]=n}}),delete a[qc],a},Kc.prototype.getTheme=function(){return this._theme},Kc.prototype.getLocaleModel=function(){return this._locale},Kc.prototype.setUpdatePayload=function(t){this._payload=t},Kc.prototype.getUpdatePayload=function(){return this._payload},Kc.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}},Wd.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,o=this._chunks,r=this._dimensions,a=r.length,s=this._rawExtent,l=j(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=[]},Wd.prototype.count=function(){return this._count},Wd.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},Wd.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)}}},Wd.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(Ed(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},Wd.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,o=0,r=this.count();o'+Wh(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?"":Uh(l,"ordinal",h),d=e.valueType,f=a?[]:et(u)?j(u,function(t,e){return Uh(t,et(d)?d[e]:d,h)}):[Uh(u,et(d)?d[0]:d,h)],l=!s||!r,e=!s&&r,u=qd(i,o),i=u.nameStyle,u=u.valueStyle;return"richText"===o?(s?"":c)+(r?"":rf(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)):of((s?"":c)+(r?"":''+Wh(p)+"")+(a?"":function(t,e,n,i){n=n?"10px":"20px";return''+j(t,Wh).join("  ")+""}(f,l,e,u)),n)}}}};function ef(t,e,n,i,o,r){if(t){var a=Qd(t);return a.planLayout(t),a.build({useUTC:o,renderMode:n,orderMode:i,markupStyleCreator:e},t,0,r)}}function nf(t){t=t.__gapLevelBetweenSubBlocks;return{html:Kd[t],richText:$d[t]}}function of(t,e){return'
'+t+'
'}function rf(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function af(t,e){return $h(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function sf(t,e){t=t.get("padding");return null!=t?t:"richText"===e?[8,10]:10}var lf=(uf.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},uf.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,n=jh({color:e,type:t,renderMode:n,markerId:i});return it(n)?n:(this.richTextStyles[i]=n.style,n.content)},uf.prototype.wrapRichTextStyle=function(t,e){var n={};et(e)?Z(e,function(t){return G(n,t)}):G(n,e);e=this._generateStyleName();return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"},uf);function uf(){this.richTextStyles={},this._nextStyleNameId=ur()}function hf(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=et(v),t=af(p,d);function _(t,e){e=s.getDimensionInfo(e);e&&!1!==e.otherDims.tooltip&&(l?c.push(Jd("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)},gf.prototype.restoreData=function(){this.dataTask.dirty()},gf.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return Wc.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},gf.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},gf.prototype.getProgressive=function(){return this.get("progressive")},gf.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},gf.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},gf.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 _f(e,n){Z(Ct(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,tt(bf,n))})}function bf(t,e){t=wf(t);return t&&t.setOutputEnd((e||this).count()),e}function wf(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}}X(_i,e),X(_i,Wc),Gr(_i,xc);var Sf=_i,Zs=(Mf.prototype.init=function(t,e){},Mf.prototype.render=function(t,e,n,i){},Mf.prototype.dispose=function(t,e){},Mf.prototype.updateView=function(t,e,n,i){},Mf.prototype.updateLayout=function(t,e,n,i){},Mf.prototype.updateVisual=function(t,e,n,i){},Mf.prototype.blurSeries=function(t,e){},Mf);function Mf(){this.group=new Ao,this.uid=nh("viewComponent")}Br(Zs),Ur(Zs);var If=Zs;function Tf(){var r=Ir();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 Cf=Ir(),Df=Tf(),Fr=(Af.prototype.init=function(t,e){},Af.prototype.render=function(t,e,n,i){},Af.prototype.highlight=function(t,e,n,i){Lf(t.getData(),i,"emphasis")},Af.prototype.downplay=function(t,e,n,i){Lf(t.getData(),i,"normal")},Af.prototype.remove=function(t,e){this.group.removeAll()},Af.prototype.dispose=function(t,e){},Af.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},Af.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},Af.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},Af.markUpdateMethod=function(t,e){Cf(t).updateMethod=e},Af.protoInitialize=void(Af.prototype.type="chart"),Af);function Af(){this.group=new Ao,this.uid=nh("viewChart"),this.renderTask=ed({plan:Pf,reset:Of}),this.renderTask.context={view:this}}function kf(t,e,n){t&&("emphasis"===e?Jl:Ql)(t,n)}function Lf(e,t,n){var i,o=Mr(e,t),r=t&&null!=t.highlightKey?(i=t.highlightKey,t=null==(t=wl[i])&&bl<=32?wl[i]=bl++:t):null;null!=o?Z(dr(o),function(t){kf(e.getItemGraphicEl(t),n,r)}):e.eachItemGraphicEl(function(t){kf(t,n,r)})}function Pf(t){return Df(t.model)}function Of(t){var e=t.model,n=t.ecModel,i=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,a=t.view,t=o&&Cf(o).updateMethod,t=r?"incrementalPrepareRender":t&&a[t]?t:"render";return"render"!==t&&a[t](e,n,i,o),Rf[t]}Br(Fr),Ur(Fr);var Rf={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)}}},Nf=Fr,zf="\0__throttleOriginMethod",Ef="\0__throttleRate",Vf="\0__throttleType";function Bf(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}}},Jf.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},Jf.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}},Jf.prototype.restorePipelines=function(t){var i=this,o=i._pipelineMap=Tt();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)})},Jf.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),o=this.api;Z(this._allHandlers,function(t){var e=n.get(t.uid)||n.set(t.uid,{});xt(!(t.reset&&t.overallReset),""),t.reset&&this._createSeriesStageTask(t,e,i,o),t.overallReset&&this._createOverallStageTask(t,e,i,o)},this)},Jf.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)},Jf.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},Jf.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},Jf.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))}Z(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},Jf.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},Jf.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())})},Jf.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},Jf.prototype._createSeriesStageTask=function(n,t,i,o){var r=this,a=t.seriesTaskMap,s=t.seriesTaskMap=Tt(),e=n.seriesType,t=n.getTargetSeries;function l(t){var e=t.uid,e=s.set(e,a&&a.get(e)||ed({plan:ig,reset:og,count:sg}));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)},Jf.prototype._createOverallStageTask=function(t,e,n,i){var o=this,r=e.overallTask=e.overallTask||ed({reset:Qf});r.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o};var a=r.agentStubMap,s=r.agentStubMap=Tt(),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,ed({reset:tg,onDirty:ng})));e.context={model:t,overallProgress:u},e.agent=r,e.__block=u,o._pipe(t,e)}xt(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,c):e?e(n,i).each(c):(u=!1,Z(n.getSeries(),c)),h&&r.dirty()},Jf.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},Jf.wrapStageHandler=function(t,e){return(t=nt(t)?{overallReset:t,seriesType:function(t){lg=null;try{t(ug,hg)}catch(t){}return lg}(t)}:t).uid=nh("stageHandler"),e&&(t.visualType=e),t},qu=Jf;function Jf(t,e,n,i){this._stageTaskMap=Tt(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function Qf(t){t.overallReset(t.ecModel,t.api,t.payload)}function tg(t){return t.overallProgress&&eg}function eg(){this.agent.dirty(),this.getDownstream().dirty()}function ng(){this.agent&&this.agent.dirty()}function ig(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function og(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=dr(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 nv(t,o){return j(K((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 rl({shape:{x:0,y:0,width:t,height:n},style:{fill:i.connectedBackgroundColor}})),Z(p,function(t){t=new qs({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)}},t1.prototype.convertToPixel=function(t,e){return Rv(this,"convertToPixel",t,e)},t1.prototype.convertFromPixel=function(t,e){return Rv(this,"convertFromPixel",t,e)},t1.prototype.containPixel=function(t,i){var o;if(!this._disposed)return Z(Cr(this._model,t),function(t,n){0<=n.indexOf("Models")&&Z(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;a1(this.id)},t1.prototype.getVisual=function(t,e){var n=Cr(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?mg(t,n,e):vg(t,e)},t1.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},t1.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},t1.prototype._initEvents=function(){var t,n,i,s=this;Z(r1,function(a){function t(t){var n,e,i,o=s.getModel(),r=t.target;"globalout"===a?n={}:r&&wg(r,function(t){var e=_l(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=G({},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)}),Z(l1,function(t,e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),Z(["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?(bg("map","selectchanged",n,e,t),bg("pie","selectchanged",n,e,t)):"select"===t.fromAction?(bg("map","selected",n,e,t),bg("pie","selected",n,e,t)):"unselect"===t.fromAction&&(bg("map","unselected",n,e,t),bg("pie","unselected",n,e,t))})},t1.prototype.isDisposed=function(){return this._disposed},t1.prototype.clear=function(){this._disposed?a1(this.id):this.setOption({series:[]},!0)},t1.prototype.dispose=function(){var t,e,n;this._disposed?a1(this.id):(this._disposed=!0,Pr(this.getDom(),v1,""),e=(t=this)._api,n=t._model,Z(t._componentsViews,function(t){t.dispose(n,e)}),Z(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 f1[t.id])},t1.prototype.resize=function(t){var e,n;this._disposed?a1(this.id):(this._zr.resize(t),n=this._model,this._loadingFX&&this._loadingFX.resize(),n&&(e=n.resetOption("media"),n=t&&t.silent,this[Sv]&&(null==n&&(n=this[Sv].silent),e=!0,this[Sv]=null),this[wv]=!0,e&&kv(this),Ov.update.call(this,{type:"resize",animation:G({duration:0},t&&t.animation)}),this[wv]=!1,Ev.call(this,n),Vv.call(this,n)))},t1.prototype.showLoading=function(t,e){this._disposed?a1(this.id):(at(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),d1[t]&&(t=d1[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},t1.prototype.hideLoading=function(){this._disposed?a1(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t1.prototype.makeActionFromEvent=function(t){var e=G({},t);return e.type=l1[t.type],e},t1.prototype.dispatchAction=function(t,e){var n;this._disposed?a1(this.id):(at(e)||(e={silent:!!e}),s1[t.type]&&this._model&&(this[wv]?this._pendingActions.push(t):(n=e.silent,zv.call(this,t,n),(e=e.flush)?this._zr.flush():!1!==e&&w.browser.weChat&&this._throttledZrFlush(),Ev.call(this,n),Vv.call(this,n))))},t1.prototype.updateLabelLayout=function(){fv.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t1.prototype.appendData=function(t){var e;this._disposed?a1(this.id):(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},t1.internalField=(kv=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Lv(t,!0),Lv(t,!1),e.plan()},Lv=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)})}),fv.trigger("series:afterupdate",t,e,n)},Zv=function(t){t[Mv]=!0,t.getZr().wakeUp()},jv=function(t){t[Mv]&&(t.getZr().storage.traverse(function(t){Mu(t)||e1(t)}),t[Mv]=!1)},Xv=function(n){return y(t,e=tp),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){Jl(t,e),Zv(n)},t.prototype.leaveEmphasis=function(t,e){Ql(t,e),Zv(n)},t.prototype.enterBlur=function(t){tu(t),Zv(n)},t.prototype.leaveBlur=function(t){eu(t),Zv(n)},t.prototype.enterSelect=function(t){nu(t),Zv(n)},t.prototype.leaveSelect=function(t){iu(t),Zv(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(Yv=function(i){function o(t,e){for(var n=0;ne[1]&&(e[1]=t[1])},Nx.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Nx.prototype.getExtent=function(){return this._extent.slice()},Nx.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},Nx.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},Nx.prototype.isBlank=function(){return this._isBlank},Nx.prototype.setBlank=function(t){this._isBlank=t},Nx);function Nx(t){this._setting=t||{},this._extent=[1/0,-1/0]}Ur(Zr);var zx=Zr,Ex=0;function Vx(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Ex}function Bx(t){return at(t)&&null!=t.value?t.value:t+""}var Gx=(Vx.createByAxisModel=function(t){var e=t.option,t=e.data,t=t&&j(t,Bx);return new Vx({categories:t,needCollect:!t,deduplication:!1!==e.dedplication})},Vx.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},Vx.prototype.parseAndCollect=function(t){var e=this._needCollect;if("string"!=typeof t&&!e)return t;if(e&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,n;var n,i=this._getOrCreateMap();return null==(n=i.get(t))&&(e?(n=this.categories.length,this.categories[n]=t,i.set(t,n)):n=NaN),n},Vx.prototype._getOrCreateMap=function(){return this._map||(this._map=Tt(this.categories))},Vx),Fx=Xo;function Hx(t,e,n,i){var o={},r=t[1]-t[0],e=o.interval=or(r/e,!0);null!=n&&ei[1]&&(i[0]=i[1]),o}function Wx(t){return Zo(t)+2}function Ux(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Xx(t,e){return t>=e[0]&&t<=e[1]}function Yx(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Zx(t,e){return t*(e[1]-e[0])+e[0]}var jx,k=(y(qx,jx=zx),qx.prototype.parse=function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},qx.prototype.contain=function(t){return Xx(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},qx.prototype.normalize=function(t){return Yx(t=this._getTickNumber(this.parse(t)),this._extent)},qx.prototype.scale=function(t){return t=Math.round(Zx(t,this._extent)),this.getRawOrdinalNumber(t)},qx.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},qx.prototype.getMinorTicks=function(t){},qx.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},qx.prototype.getOrdinalMeta=function(){return this._ordinalMeta},qx.prototype.niceTicks=function(){},qx.prototype.niceExtent=function(){},qx.type="ordinal",qx);function qx(t){var e=jx.call(this,t)||this;e.type="ordinal";var t=e.getSetting("ordinalMeta");return et(t=t||new Gx({}))&&(t=new Gx({categories:j(t,function(t){return at(t)?t.value:t})})),e._ordinalMeta=t,e._extent=e.getSetting("extent")||[0,t.categories.length-1],e}zx.registerClass(k);var Kx,$x=k,Jx=Xo,Co=(y(Qx,Kx=zx),Qx.prototype.parse=function(t){return t},Qx.prototype.contain=function(t){return Xx(t,this._extent)},Qx.prototype.normalize=function(t){return Yx(t,this._extent)},Qx.prototype.scale=function(t){return Zx(t,this._extent)},Qx.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},Qx.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},Qx.prototype.getInterval=function(){return this._interval},Qx.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Wx(t)},Qx.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:Jx(s+e,o)}):r.push({value:n[1]})),r},Qx.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=g_.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=Xo(t),e=Xo(e),l?e=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 z("Layer of zlevel "+t+" is not valid")},rw.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<"))},eS);var oS,rS,aS=(y(sS,oS=Sf),sS.prototype.getInitialData=function(t){return Rx(null,this,{useEncodeDefaulter:!0})},sS.prototype.getLegendIcon=function(t){var e=new Ao,n=Fm("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),n="none"===i?"circle":i,i=.8*t.itemHeight,i=Fm(n,(t.itemWidth-i)/2,(t.itemHeight-i)/2,i,i,t.itemStyle.fill);e.add(i),i.setStyle(t.itemStyle);o="inherit"===t.iconRotate?o:t.iconRotate||0;return i.rotation=o*Math.PI/180,i.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1u[h-1].coord&&(u.reverse(),c.reverse());e=function(t,e){var n,i,o=[],r=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:kn((n-i)/(e.coord-i),[t.color,e.color])}}for(var s=0;si)return!1;return!0}(o,e))){var r=e.mapDimension(o.dim),a={};return Z(o.getViewLabels(),function(t){t=o.scale.getRawOrdinalNumber(t.tickValue);a[t]=1}),function(t){return!a.hasOwnProperty(e.get(r,t))}}}}function jS(t){for(var e,n,i=t.length/2;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=Ou(i);Pu(t,u,{labelFetcher:r,labelDataIndex:n,defaultText:lS(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(et(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,AM(a),i.get(["label","rotate"]))),Hu(l,u,r.getRawValue(n),function(t){return uS(e,t)});n=i.getModel(["emphasis"]);hu(t,n.get("focus"),n.get("blurScope")),fu(t,i),null!=(o=o).startAngle&&null!=o.endAngle&&o.startAngle===o.endAngle&&(t.style.fill="none",t.style.stroke="none",Z(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var LM,PM=function(){},OM=(y(RM,LM=Bs),RM.prototype.getDefaultShape=function(){return new PM},RM.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 Ui(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}},tI.type="pie",tI);function tI(){var t=null!==KM&&KM.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}function eI(t,e,n){var i=$M.call(this)||this;i.z2=2;var o=new xl;return i.setTextContent(o),i.updateData(t,e,n,!0),i}function nI(t,e,n){e=et(e)?{coordDimensions:e}:G({encodeDefine:t.getEncode()},e);var i=t.getSource(),e=Cx(i,e).dimensions,t=new Mx(e,t);return t.initData(i,n),t}var iI,oI=(sI.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},sI.prototype.containName=function(t){return 0<=this._getRawData().indexOfName(t)},sI.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},sI.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},sI),rI=(y(aI,iI=Sf),aI.prototype.init=function(t){iI.prototype.init.apply(this,arguments),this.legendVisualProvider=new oI(Q(this.getData,this),Q(this.getRawData,this)),this._defaultLabelLine(t)},aI.prototype.mergeOption=function(){iI.prototype.mergeOption.apply(this,arguments)},aI.prototype.getInitialData=function(){return nI(this,{coordDimensions:["value"],encodeDefaulter:tt(Oc,this)})},aI.prototype.getDataParams=function(t){var e=this.getData(),n=iI.prototype.getDataParams.call(this,t),i=[];return e.each(e.mapDimension("value"),function(t){i.push(t)}),n.percent=Ko(i,t,e.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},aI.prototype._defaultLabelLine=function(t){fr(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},aI.type="series.pie",aI.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"},aI);function aI(){return null!==iI&&iI.apply(this,arguments)||this}function sI(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}var lI,uI,hI,cI,pI,dI=(y(II,pI=Sf),II.prototype.getInitialData=function(t,e){return Rx(null,this,{useEncodeDefaulter:!0})},II.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},II.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},II.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},II.type="series.scatter",II.dependencies=["grid","polar","geo","singleAxis","calendar"],II.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"}},II),fI=function(){},gI=(y(MI,cI=Bs),MI.prototype.getDefaultShape=function(){return new fI},MI.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.reverse(),e},EI.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},EI.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},EI);function EI(t,e,n,i,o){n=OI.call(this,t,e,n)||this;return n.index=0,n.type=i||"value",n.position=o||"bottom",n}function VI(){var t=null!==RI&&RI.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=kI,t}function BI(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),ft(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 GI(t){return"cartesian2d"===t.get("coordinateSystem")}function FI(i){var o={xAxisModel:null,yAxisModel:null};return Z(o,function(t,e){var n=e.replace(/Model$/,""),n=i.getReferringComponents(n,Ar).models[0];o[e]=n}),o}function HI(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=kI,this._initCartesian(t,e,n),this.model=t}function WI(t,e){return t.getCoordSysModel()===e}function UI(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)XI(r[e])&&(o=r[e]);else for(var a in r)if(r.hasOwnProperty(a)&&XI(r[a])&&!i[s(r[a])]){o=r[a];break}o&&(i[s(o)]=!0)}function s(t){return t.dim+"_"+t.index}}function XI(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,QI(o)?t.labelOffset+r*u:0],null!=(u=e.get("nameRotate"))&&(u=u*ZI/180),QI(o)?h=jI.innerTextLayout(t.rotation,null!=u?u:t.rotation,r):(c=t.rotation,p=o,d=s,c=Jo((u||0)-c),d=d[0]>d[1],d="start"===p&&!d||"start"!==p&&d,d=Qo(c-ZI/2)?(f=d?"bottom":"top","center"):Qo(c-1.5*ZI)?(f=d?"top":"bottom","center"):(f="middle",c<1.5*ZI&&ZI/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&&(_l(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&&wu(g=g||(i.__edge=new Zy({shape:xC(h,c,p,o,o)})),{shape:xC(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},PC.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},GC.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},GC.prototype.setZoom=function(t){this.option.zoom=t},GC.prototype.setCenter=function(t){this.option.center=t},GC.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 Jd("nameValue",{name:a,value:t,noValue:isNaN(t)||null==t})},GC.prototype.getDataParams=function(t){var e=VC.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(t);return e.treeAncestors=EC(t,this),e},GC.type="series.tree",GC.layoutMode="box",GC.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},GC);function GC(){var t=null!==VC&&VC.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}function FC(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 HC(t,e){t.eachSeriesByType("tree",function(t){!function(t,e){var n=function(t,e){return oc(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,iC(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(o=n.width,r=n.height,iC());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),FC(n,function(t){d=(t.getLayout().x+h)*c,f=(t.depth-1)*p;var e=oC(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),FC(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),FC(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 WC(t){t.eachSeriesByType("tree",function(t){var n=t.getData();n.tree.eachNode(function(t){var e=t.getModel().getModel("itemStyle").getItemStyle();G(n.ensureUniqueItemVisual(t.dataIndex,"style"),e)})})}var UC,XC=function(){},YC=["treemapZoomToNode","treemapRender","treemapMove"];function ZC(t){for(var e=0;e=i.length||t===i[t.depth])&&(e=FD(r,h,t,e,p,o),n(t,e,i,o))})):(l=zD(h),c.fill=l))}}(e,{},t.getViewRoot().getAncestors(),t)}};function ND(n,i,t){var o=G({},i),r=t.designatedVisualItemStyle;return Z(["color","colorAlpha","colorSaturation"],function(t){r[t]=i[t];var e=n.get(t);(r[t]=null)!=e&&(o[t]=e)}),o}function zD(t){var e=VD(t,"color");if(e){var n=VD(t,"colorAlpha"),t=VD(t,"colorSaturation");return t&&(e=Pn(e,null,null,t)),e=n?On(e,n):e}}function ED(t,e){return null!=e?Pn(e,null,null,t):null}function VD(t,e){e=t[e];if(null!=e&&"none"!==e)return e}function BD(t,e,n,i,o,r){if(r&&r.length){var a=GD(e,"color")||null!=o.color&&"none"!==o.color&&(GD(e,"colorAlpha")||GD(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 LD(a);return OD(a).drColorMappingBy=e,a}}}function GD(t,e){t=t.get(e);return et(t)&&t.length?{name:e,range:t}:null}function FD(t,e,n,i,o,r){var a,s=G({},e);return o&&(t="index"===(e="color"===(a=o.type)&&OD(o).drColorMappingBy)?i:"id"===e?r.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension")),s[a]=o.mapValueToVisual(t)),s}var HD=Math.max,WD=Math.min,UD=ft,XD=Z,YD=["itemStyle","borderWidth"],ZD=["itemStyle","gapWidth"],jD=["upperLabel","show"],qD=["upperLabel","height"],KD={seriesType:"treemap",reset:function(t,e,n,i){var o,r=n.getWidth(),a=n.getHeight(),s=t.option,l=oc(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),u=s.size||[],h=Uo(UD(l.width,u[0]),r),c=Uo(UD(l.height,u[1]),a),n=i&&i.type,u=RC(i,["treemapZoomToNode","treemapRootToNode"],t),i="treemapRender"===n||"treemapMove"===n?i.rootRect:null,p=t.getViewRoot(),d=NC(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=Rx(t,n):(W(i=(i=op.get(i))&&i.dimensions||[],"value")<0&&i.concat(["value"]),i=Cx(t,{coordDimensions:i,encodeDefine:n.getEncode()}).dimensions,(d=new Mx(i,n)).initData(t));n=new Mx(["value"],n);return n.initData(l,s),o&&o(d,n),AC({mainData:d,struct:r,structAttr:"graph",datas:{node:d,edge:n},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r}var fk,gk=(y(mk,fk=Sf),mk.prototype.init=function(t){fk.prototype.init.apply(this,arguments);var e=this;function n(){return e._categoriesData}this.legendVisualProvider=new oI(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mk.prototype.mergeOption=function(t){fk.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mk.prototype.mergeDefaultAndTheme=function(t){fk.prototype.mergeDefaultAndTheme.apply(this,arguments),fr(t,"edgeLabel",["show"])},mk.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=this;if(i&&n){hA(t=this)&&(t.__curvenessList=[],t.__edgeMap={},rA(t));n=dk(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=th.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 Z(n.edges,function(t){var e,n,i;e=t.node1,n=t.node2,i=this,t=t.dataIndex,hA(i)&&(e=cA(e,n,i),i=(n=i.__edgeMap)[aA(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}},mk.prototype.getGraph=function(){return this.getData().graph},mk.prototype.getEdgeData=function(){return this.getGraph().edgeData},mk.prototype.getCategoriesData=function(){return this._categoriesData},mk.prototype.formatTooltip=function(t,e,n){if("edge"!==n)return hf({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),Jd("nameValue",{name:n.join(" > "),value:e.value,noValue:null==e.value})},mk.prototype._updateCategoriesData=function(){var t=j(this.option.categories||[],function(t){return null!=t.value?t:G({value:0},t)}),e=new Mx(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t)})},mk.prototype.setZoom=function(t){this.option.zoom=t},mk.prototype.setCenter=function(t){this.option.center=t},mk.prototype.isAnimationEnabled=function(){return fk.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},mk.type="series.graph",mk.dependencies=["grid","polar","geo","singleAxis","calendar"],mk.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"}}},mk),yk={type:"graphRoam",event:"graphRoam",update:"none"};function mk(){var t=null!==fk&&fk.apply(this,arguments)||this;return t.type=mk.type,t.hasSymbolVisual=!0,t}var vk,xk=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},_k=(y(bk,vk=Bs),bk.prototype.getDefaultShape=function(){return new xk},bk.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)},bk);function bk(t){t=vk.call(this,t)||this;return t.type="pointer",t}function wk(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 Sk,Mk,Ik=2*Math.PI,Tk=(y(Ak,Mk=Nf),Ak.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:Uo(r[0],o.getWidth()),cy:Uo(r[1],o.getHeight()),r:Uo(i.get("radius"),l/2)});this._renderMain(t,e,n,s,l),this._data=t.getData()},Ak.prototype.dispose=function(){},Ak.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")?cM:My,c=u.get("show"),p=u.getModel("lineStyle"),d=p.get("width"),f=(l-s)%Ik||l===s?(l-s)%Ik:Ik,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 dL(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)?pL(a,i,r,"all"):l="none"):(a=i[1]-i[0],(i=[mL(0,r[1]*s/a-a/2)])[1]=yL(r[1],i[0]+a),i[0]=i[1]-a),{axisExpandWindow:i,behavior:l}},wL);var IL,TL={create:function(i,o){var r=[];return i.eachComponent("parallel",function(t,e){var n=new ML(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",Ar).models[0],t.coordinateSystem=e.coordinateSystem)}),r}},Zr=(y(CL,IL=xc),CL.prototype.getAreaSelectStyle=function(){return Xr([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},CL.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=E(t);if(e)for(var n=e.length-1;0<=n;n--)Yo(e[n])},CL.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=qL(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}},xR),uR=function(){this.polyline=!1,this.curveness=0,this.segs=[]},hR=(y(vR,nR=Bs),vR.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},vR.prototype.getDefaultShape=function(){return new uR},vR.prototype.buildPath=function(t,e){var n=e.segs,i=e.curveness;if(e.polyline)for(var o=0;o ")})},IR.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},IR.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},IR.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},IR.type="series.lines",IR.dependencies=["grid","polar","geo","calendar"],IR.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}},IR);function IR(){var t=null!==SR&&SR.apply(this,arguments)||this;return t.type=IR.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}function TR(t){return t=!(t instanceof Array)?[t,t]:t}var CR={seriesType:"lines",reset:function(t){var e=TR(t.get("symbol")),n=TR(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=TR((i=t.getItemModel(e)).getShallow("symbol",!0)),i=TR(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 DR=(AR.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 rl({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 rl({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=Ou(I));var T=t.getRawValue(b),I="-";T&&null!=T[2]&&(I=T[2]+""),Pu(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,hu(w,v,x),(w.incremental=o)&&(w.states.emphasis.hoverLayer=!0),p.add(w),d.setItemGraphicEl(b,w)}},zR.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 DR;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=j(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()},wN),xN="sunburstRootToNode",_N="sunburstHighlight",bN="sunburstUnhighlight";function wN(t,e,n,i){var o=mN.call(this)||this;o.z2=2,o.textConfig={inside:!0},_l(o).seriesIndex=e.seriesIndex;var r=new xl({z2:4,silent:t.getModel().get(["label","silent"])});return o.setTextContent(r),o.updateData(!0,t,e,n,i),o}function SN(t){t.registerAction({type:xN,update:"updateView"},function(o,t){t.eachComponent({mainType:"series",subType:"sunburst",query:o},function(t,e){var n,i=RC(o,[xN],t);i&&((n=t.getViewRoot())&&(o.direction=zC(n,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node))})}),t.registerAction({type:_N,update:"none"},function(e,t,n){e=G({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},function(t){(t=RC(e,[_N],t))&&(e.dataIndex=t.node.dataIndex)}),n.dispatchAction(G(e,{type:"highlight"}))}),t.registerAction({type:bN,update:"updateView"},function(t,e,n){t=G({},t),n.dispatchAction(G(t,{type:"downplay"}))})}var MN,IN,TN=(y(DN,IN=Nf),DN.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 vN(t,n,i,o),l.add(e),r.setItemGraphicEl(t.dataIndex,e)))}d=f,0===(p=h).length&&0===d.length||new K1(d,p,g,g).add(y).update(y).remove(tt(y,null)).execute(),f=a,0<(c=s).depth?(e.virtualPiece?e.virtualPiece.updateData(!1,f,n,i,o):(e.virtualPiece=new vN(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},DN.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"))&&Jh(t,e.get("target",!0)||"_blank"),i=!0)})})},DN.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:xN,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},DN.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}},DN.type="sunburst",DN);function CN(){var t=null!==MN&&MN.apply(this,arguments)||this;return t.type=CN.type,t.ignoreStyleOnData=!0,t}function DN(){var t=null!==IN&&IN.apply(this,arguments)||this;return t.type=DN.type,t}var AN=(y(CN,MN=Sf),CN.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};!function e(t){var n=0;Z(t.children,function(t){e(t);t=t.value;et(t)&&(t=t[0]),n+=t});var i=t.value;et(i)&&(i=i[0]),null!=i&&!isNaN(i)||(i=n),i<0&&(i=0),et(t.value)?t.value[0]=i:t.value=i}(n);var i=this._levelModels=j(t.levels||[],function(t){return new th(t,this,e)},this),o=OC.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},CN.prototype.optionUpdated=function(){this.resetViewRoot()},CN.prototype.getDataParams=function(t){var e=MN.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=EC(t,this),e},CN.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},CN.prototype.getViewRoot=function(){return this._viewRoot},CN.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)},CN.prototype.enableAriaDecal=function(){jC(this)},CN.type="series.sunburst",CN.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"},CN),kN=Math.PI/180;function LN(t,e,r){e.eachSeriesByType(t,function(h){var t=h.get("center"),e=h.get("radius");et(e)||(e=[0,e]),et(t)||(t=[t,t]);var n=r.getWidth(),i=r.getHeight(),c=Math.min(n,i),p=Uo(t[0],n),d=Uo(t[1],i),f=Uo(e[0],c/2),n=Uo(e[1],c/2),t=-h.get("startAngle")*kN,g=h.get("minAngle")*kN,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=PN(i,n),i.length&&Z(t.children,function(t){e(t,n)})}(i,e);var o=0;Z(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:Q(WN,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 hz(t){return t instanceof Bs}function cz(t){return t instanceof xa}var pz,dz=(y(fz,pz=Nf),fz.prototype.render=function(n,t,i,o){var r=this._data,a=n.getData(),s=this.group,l=wz(n,a,t,i);r||s.removeAll(),a.diff(r).add(function(t){Sz(i,null,t,l(t,o),n,s,a)}).remove(function(t){Pz(r.getItemGraphicEl(t),n,s)}).update(function(t,e){e=r.getItemGraphicEl(e);Sz(i,e,t,l(t,o),n,s,a)}).execute();t=n.get("clip",!0)?BS(n.coordinateSystem,!1,n):null;t?s.setClipPath(t):s.removeClipPath(),this._data=a},fz.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},fz.prototype.incrementalRender=function(t,e,n,i,o){var r=e.getData(),a=wz(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=o2(t).seriesDataCount,i=i.getExtent();return Math.abs(i[0]-i[1])/t>n}return!1},Ez.prototype.makeElOption=function(t,e,n,i,o){},Ez.prototype.createPointerEl=function(t,e,n,i){var o=e.pointer;o&&(e=Rz(t).pointerEl=new p[o.type](Nz(e.pointer)),t.add(e))},Ez.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=Rz(t).labelEl=new xl(Nz(e.label)),t.add(e),Bz(e,i))},Ez.prototype.updatePointerEl=function(t,e,n){t=Rz(t).pointerEl;t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},Ez.prototype.updateLabelEl=function(t,e,n,i){t=Rz(t).labelEl;t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),Bz(t,i))},Ez.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=Om(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Me(t.event)},onmousedown:zz(this._onHandleDragMove,this,0,0),drift:zz(this._onHandleDragMove,this),ondragend:zz(this._onHandleDragEnd,this)}),i.add(o)),Fz(o,n,!1),o.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));n=r.get("size");et(n)||(n=[n,n]),o.scaleX=n[0]/2,o.scaleY=n[1]/2,Gf(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},Ez.prototype._moveHandleToValue=function(t,e){Vz(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Gz(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},Ez.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,e=this.updateHandleTransform(Gz(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=e,n.stopAnimation(),n.attr(Gz(e)),Rz(n).lastProp=null,this._doDispatchAxisPointer())},Ez.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}]}))},Ez.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},Ez.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)},Ez.prototype.doClear=function(){},Ez.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},qu=Ez;function Hz(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 Wz(t,e,n,i,o){var r=Uz(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=Gh(a.get("padding")||0),l=a.getFont(),u=lo(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:Ru(a,{text:r,font:l,fill:a.getTextColor(),padding:s,backgroundColor:o}),z2:10}}function Uz(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:G_(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},Z(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,t=e&&e.getDataParams(t);t&&r.seriesData.push(t)}),it(o)?a=o.replace("{value}",a):nt(o)&&(a=o(r))),a}function Xz(t,e,n){var i=Ii();return ki(i,i,n.rotation),Ai(i,i,n.position),Cm([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function Yz(t,e,n,i,o,r){var a=e2.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),Wz(e,i,o,r,{position:Xz(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function Zz(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function jz(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function qz(t,e,n,i,o,r){return{cx:t,cy:e,r0:n,r:i,startAngle:o,endAngle:r,clockwise:!0}}var Kz,M=(y($z,Kz=qu),$z.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=a.grid,l=i.get("type"),u=Jz(s,a).getOtherAxis(a).getGlobalExtent(),h=a.toGlobalCoord(a.dataToCoord(e,!0));l&&"none"!==l&&(r=Hz(i),(u=Qz[l](a,h,u)).style=r,t.graphicKey=u.type,t.pointer=u),Yz(e,t,BI(s.model,n),n,i,o)},$z.prototype.getHandleTransform=function(t,e,n){var i=BI(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);t=Xz(e.axis,t,i);return{x:t[0],y:t[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},$z.prototype.updateHandleTransform=function(t,e,n,i){var o=n.axis,r=o.grid,a=o.getGlobalExtent(!0),n=Jz(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]}},$z);function $z(){return null!==Kz&&Kz.apply(this,arguments)||this}function Jz(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var Qz={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:Zz([e,n[0]],[e,n[1]],tE(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:jz([e-i/2,n[0]],[i,o],tE(t))}}};function tE(t){return"x"===t.dim?0:1}var eE,nE=M,iE=(y(aE,eE=xc),aE.type="axisPointer",aE.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}},aE),oE=Ir(),rE=Z;function aE(){var t=null!==eE&&eE.apply(this,arguments)||this;return t.type=aE.type,t}function sE(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))}rE(oE(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(),oE(i).records||(oE(i).records={}),p=e,oE(c=i).initialized||(oE(c).initialized=!0,o("click",tt(uE,"click")),o("mousemove",tt(uE,"mousemove")),o("globalout",lE)),(oE(i).records[t]||(oE(i).records[t]={})).handler=n)}function lE(t,e,n){t.handler("leave",null,n)}function uE(t,e,n,i){e.handler(t,n,i)}function hE(t,e){w.node||(e=e.getZr(),(oE(e).records||{})[t]&&(oE(e).records[t]=null))}var cE,pE=(y(dE,cE=If),dE.prototype.render=function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";sE("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})})},dE.prototype.remove=function(t,e){hE("axisPointer",e)},dE.prototype.dispose=function(t,e){hE("axisPointer",e)},dE.type="axisPointer",dE);function dE(){var t=null!==cE&&cE.apply(this,arguments)||this;return t.type=dE.type,t}function fE(t,e){var n=[],i=t.seriesIndex;if(null==i||!(a=e.getSeriesByIndex(i)))return{point:[]};var o=a.getData(),r=Mr(o,t);if(null==r||r<0||et(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(j(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 gE=Ir();function yE(t,e,n){var i,o,r=t.currTrigger,a=[t.x,t.y],s=t,l=t.dispatchAction||Q(n.dispatchAction,n),u=e.getComponent("axisPointer").coordSysAxesInfo;if(u){bE(a)&&(a=fE({seriesIndex:s.seriesIndex,dataIndex:s.dataIndex},e).point);var h=bE(a),c=s.axesInfo,p=u.axesInfo,d="leave"===r||bE(a),f={},g={},s={list:[],map:{}},y={showPointer:tt(vE,g),showTooltip:tt(xE,s)};Z(u.coordSysMap,function(t,e){var o=h||t.containPoint(a);Z(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)&&mE(t,i,y,!1,f)})});var m={};return Z(p,function(n,t){var i=n.linkGroup;i&&!g[t]&&Z(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,_E(t),_E(n)))),m[n.key]=e)})}),Z(m,function(t,e){mE(p[e],t,y,!0,f)}),i=g,r=p,o=f.axesInfo=[],Z(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;!bE(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=gE(n)[i]||{},r=gE(n)[i]={};Z(t,function(t,e){t=t.axisPointerModel.option;"show"===t.status&&Z(t.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;r[e]=t})});var a=[],s=[];Z(o,function(t,e){r[e]||s.push(t)}),Z(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 mE(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,Z(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))},ME);function ME(){return null!==SE&&SE.apply(this,arguments)||this}var IE,TE,CE={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:Zz(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:qz(e.cx,e.cy,i[0],i[1],(-n-o/2)*r,(o/2-n)*r)}:{type:"Sector",shape:qz(e.cx,e.cy,n-o/2,n+o/2,0,2*Math.PI)}}},DE=Co,AE=(y(LE,TE=xc),LE.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},LE.type="polar",LE.dependencies=["radiusAxis","angleAxis"],LE.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"80%"},LE),Zr=(y(kE,IE=xc),kE.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Ar).models[0]},kE.type="polarAxis",kE);function kE(){return null!==IE&&IE.apply(this,arguments)||this}function LE(){var t=null!==TE&&TE.apply(this,arguments)||this;return t.type=LE.type,t}X(Zr,X_);var PE,OE,RE,NE=(y(BE,RE=Zr),BE.type="angleAxis",BE),zE=(y(VE,OE=Zr),VE.type="radiusAxis",VE),k=(y(EE,PE=cb),EE.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},EE);function EE(t,e){return PE.call(this,"radius",t,e)||this}function VE(){var t=null!==OE&&OE.apply(this,arguments)||this;return t.type=VE.type,t}function BE(){var t=null!==RE&&RE.apply(this,arguments)||this;return t.type=BE.type,t}k.prototype.dataToRadius=cb.prototype.dataToCoord,k.prototype.radiusToData=cb.prototype.coordToData;var GE,FE=k,HE=Ir(),M=(y(WE,GE=cb),WE.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},WE.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=lo(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=HE(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}}},YE.prototype.convertToPixel=function(t,e,n){return ZE(e)===this?this.dataToPoint(n):null},YE.prototype.convertFromPixel=function(t,e,n){return ZE(e)===this?this.pointToData(n):null},YE);function qE(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&&(Z(U_(e=t.getData(),"radius"),function(t){r.scale.unionExtentFromData(e,t)}),Z(U_(e,"angle"),function(t){o.scale.unionExtentFromData(e,t)}))}),E_(o.scale,o.model),E_(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 KE(t,e){var n;t.type=e.get("type"),t.scale=V_(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 $E={dimensions:XE,create:function(t,s){var l=[];return t.eachComponent("polar",function(t,e){var n=new jE(e+"");n.update=qE;var i=n.getRadiusAxis(),o=n.getAngleAxis(),r=t.findAxisModel("radiusAxis"),a=t.findAxisModel("angleAxis");KE(i,r),KE(o,a),e=n,i=s,o=(r=t).get("center"),a=i.getWidth(),i=i.getHeight(),e.cx=Uo(o[0],a),e.cy=Uo(o[1],i),e=e.getRadiusAxis(),i=Math.min(a,i)/2,null==(r=r.get("radius"))?r=[0,"100%"]:et(r)||(r=[0,r]),i=[Uo(r[0],i),Uo(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",Ar).models[0],t.coordinateSystem=e.coordinateSystem)}),l}},JE=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function QE(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 t5(t){return t.getRadiusAxis().inverse?0:1}function e5(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 n5,i5,Co=(y(h5,i5=u2),h5.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(),e5(s=j(n.getViewLabels(),function(t){t=E(t);var e=n.scale,e="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(e),t})),e5(r),Z(JE,function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||o5[t](this.group,e,i,r,a,o,s)},this))},h5.type="angleAxis",h5),o5={axisLine:function(t,e,n,i,o,r){var a=e.getModel(["axisLine","lineStyle"]),s=t5(n),e=s?0:1,a=0===r[e]?new Rg({shape:{cx:n.cx,cy:n.cy,r:r[s]},style:a.getLineStyle(),z2:1,silent:!0}):new Cy({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[t5(n)],i=j(i,function(t){return new Lg({shape:QE(n,[l,l+s],t.coord)})});t.add(bm(i,{style:F(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[t5(n)],h=[],c=0;ca?"left":"right",s=Math.abs(r[1]-s)/o<.3?"middle":r[1]>s?"top":"bottom";p&&p[i]&&(at(i=p[i])&&i.textStyle&&(n=new th(i.textStyle,d,d.ecModel)));a=new xl({silent:e2.isLabelSilent(u),style:Ru(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=e2.makeAxisEventDataBase(u)).targetType="axisLabel",s.value=t.rawLabel,_l(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},O5.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},O5.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},O5.prototype.convertToPixel=function(t,e,n){return N5(e)===this?this.dataToPoint(n):null},O5.prototype.convertFromPixel=function(t,e,n){return N5(e)===this?this.pointToData(n):null},O5);var E5,V5={create:function(i,o){var r=[];return i.eachComponent("singleAxis",function(t,e){var n=new z5(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",Ar).models[0],t.coordinateSystem=e&&e.coordinateSystem)}),r},dimensions:P5},B5=["x","y"],G5=["width","height"],Co=(y(H5,E5=qu),H5.prototype.makeElOption=function(t,e,n,i,o){var r=n.axis,a=r.coordinateSystem,s=U5(a,1-W5(r)),l=a.dataToPoint(e)[0],u=i.get("type");u&&"none"!==u&&(a=Hz(i),(s=F5[u](r,l,s)).style=a,t.graphicKey=s.type,t.pointer=s),Yz(e,t,_5(n),n,i,o)},H5.prototype.getHandleTransform=function(t,e,n){var i=_5(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);t=Xz(e.axis,t,i);return{x:t[0],y:t[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},H5.prototype.updateHandleTransform=function(t,e,n,i){var o=n.axis,r=o.coordinateSystem,a=W5(o),n=U5(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=U5(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"}}},H5),F5={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:Zz([e,n[0]],[e,n[1]],W5(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),o=n[1]-n[0];return{type:"Rect",shape:jz([e-i/2,n[0]],[i,o],W5(t))}}};function H5(){return null!==E5&&E5.apply(this,arguments)||this}function W5(t){return t.isHorizontal()?0:1}function U5(t,e){t=t.getRect();return[t[B5[e]],t[B5[e]]+t[G5[e]]]}var X5,Y5,Z5=Co,j5=(y(q5,X5=If),q5.type="single",q5);function q5(){var t=null!==X5&&X5.apply(this,arguments)||this;return t.type=q5.type,t}function K5(){var t=null!==Y5&&Y5.apply(this,arguments)||this;return t.type=K5.type,t}function $5(t,i){var e=t.cellSize,o=et(e)?e:t.cellSize=[e,e];1===o.length&&(o[1]=o[0]);e=j([0,1],function(t){return(null!=(e=i)[ec[n=t][0]]||null!=e[ec[n][1]]&&null!=e[ec[n][2]])&&(o[t]="auto"),null!=o[t]&&"auto"!==o[t];var e,n});sc(t,i,{type:"box",ignoreSize:e})}var J5,Q5=(y(K5,Y5=xc),K5.prototype.init=function(t,e,n){var i=lc(t);Y5.prototype.init.apply(this,arguments),$5(t,i)},K5.prototype.mergeOption=function(t){Y5.prototype.mergeOption.apply(this,arguments),$5(this.option,t)},K5.prototype.getCellSize=function(){return this.option.cellSize},K5.type="calendar",K5.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}},K5),tV=(y(nV,J5=If),nV.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)},nV.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 rl({shape:{x:l[0],y:l[1],width:r,height:a},cursor:"default",style:o});n.add(l)}},nV.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)},nV.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},nV.prototype._drawSplitline=function(t,e,n){e=new Ey({z2:20,shape:{points:t},style:e});n.add(e)},nV.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},nV.prototype._formatterLabel=function(t,e){return"string"==typeof t&&t?(n=t,Z(e,function(t,e){n=n.replace("{"+e+"}",i?Wh(t):t)}),n):"function"==typeof t?t(e):e.nameMap;var n,i},nV.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]}}},nV.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 xl({z2:30,style:Ru(u,{text:t})})).attr(this._yearTextPositionControl(t,s[r],n,r,o)),i.add(t))},nV.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}},nV.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&&!it(r)||(r=(e=r?ch(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},eV.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)},eV.create=function(t,e){var n=[];return t.eachComponent("calendar",function(t){var e=new eV(t);n.push(e),t.coordinateSystem=e}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])}),n},eV.dimensions=["time","value"],eV);function rV(t){var e=t.graphic;et(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}var aV,sV,lV=Ir(),uV={path:null,compoundPath:null,group:Ao,image:qs,text:xl},hV=(y(dV,sV=xc),dV.prototype.mergeOption=function(t,e){var n=this.option.elements;this.option.elements=null,sV.prototype.mergeOption.call(this,t,e),this.option.elements=n},dV.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=mr(l,n,"normalMerge"),u=this._elOptionsToUpdate=[];Z(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=G({},o=s),a=n[i],"merge"===(t=o.$action||"merge")?a?(V(a,r,!0),sc(a,r,{ignoreSize:!0}),uc(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=[yV(s,["left","right"]),yV(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},dV.prototype._flatten=function(t,n,i){Z(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)},dV.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},dV.type="graphic",dV.defaultOption={elements:[]},dV),cV=(y(pV,aV=If),pV.prototype.init=function(){this._elMap=Tt()},pV.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},pV.prototype._updateElements=function(c){var p,d,t=c.useElOptionsToUpdate();t&&(p=this._elMap,d=this.group,Z(t,function(t){var e=_r(t.id,null),n=null!=e?p.get(e):null,i=_r(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&&UN(a,r,!!i,!!s)&&(u=XN(a,r,!0),!i&&u.textConfig&&(i=t.textConfig=u.textConfig),!s&&u.textContent&&(s=u.textContent));var l,i=(l=G({},l=t),Z(["id","parentId","$action","hv","bounding","textContent"].concat(tc),function(t){delete l[t]}),l),u=t.$action||"merge";"merge"===u?n?n.attr(i):fV(e,o,i,p):"replace"===u?(gV(n,p),fV(e,o,i,p)):"remove"===u&&gV(n,p);var h,n=p.get(e);n&&s&&("merge"===u?(h=n.getTextContent())?h.attr(s):n.setTextContent(new xl(s)):"replace"===u&&n.setTextContent(new xl(s))),n&&((e=lV(n)).__ecGraphicWidthOption=t.width,e.__ecGraphicHeightOption=t.height,h=c,u=t,e=_l(s=n).eventData,(e=s.silent||s.ignore||e?e:_l(s).eventData={componentType:"graphic",componentIndex:h.componentIndex,name:s.name})&&(e.info=u.info),zm({el:n,componentModel:c,itemName:n.name,itemTooltipOption:t.tooltip}))}))},pV.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=R_(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())},RV.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&&PV(n,function(n){var l,u,i=n.getData(),h=i.mapDimensionsAll(o);h.length&&("weakFilter"===r?(l=i.getStore(),u=j(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})):PV(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))}),PV(h,function(t){i.setApproximateExtent(c,t)}))}))},RV.prototype._updateMinMaxSpan=function(){var i=this._minMaxSpan={},o=this._dataZoomModel,r=this._dataExtent;PV(["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=Wo(r[0]+n,r,[0,100],!0):null!=e&&(n=Wo(e,[0,100],r,!0)-r[0]),i[t+"Span"]=e,i[t+"ValueSpan"]=n},this)},RV.prototype._setAxisModel=function(){var t,e=this.getAxisModel(),n=this._percentWindow,i=this._valueWindow;n&&(t=qo(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())},RV),BV={getTargetSeries:function(r){function t(o){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(t,e){var n=r.getComponent(xV(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 VV(t,e,i,r),o.push(n.__dzAxisProxy))});var e=Tt();return Z(o,function(t){Z(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 GV=!1;function FV(t){GV||(GV=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,BV),t.registerAction("dataZoom",function(e,t){Z(_V(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 HV(t){t.registerComponentModel(kV),t.registerComponentView(LV),FV(t)}function WV(){}var UV={};function XV(t,e){UV[t]=e}function YV(t){return UV[t]}var ZV,jV,qV=(y(KV,ZV=xc),KV.prototype.optionUpdated=function(){ZV.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;Z(this.option.feature,function(t,e){e=YV(e);e&&(e.getDefaultOption&&(e.defaultOption=e.getDefaultOption(n)),V(t,e.defaultOption))})},KV.type="toolbox",KV.layoutMode={type:"box",ignoreSize:!0},KV.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"}},KV);function KV(){var t=null!==ZV&&ZV.apply(this,arguments)||this;return t.type=KV.type,t}function $V(t,e){var n=Gh(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new rl({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}function JV(){return null!==jV&&jV.apply(this,arguments)||this}var QV,t3=(y(JV,jV=If),JV.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 th(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=YV(i);if(!r)return;n=new r}l[i]=n}else if(!(n=l[o]))return;n.uid=nh("toolbox-feature"),n.model=e,n.ecModel=c,n.api=p;r=n instanceof WV;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 WV&&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={};Z(e,function(t,e){var n=Om(t,{},{x:-d/2,y:-d/2,width:d,height:d});n.setStyle(s.getItemStyle()),n.ensureState("emphasis").style=l.getItemStyle();var i=new xl({style:{text:a[e],align:l.get("textAlign"),borderRadius:l.get("textBorderRadius"),padding:l.get("textPadding"),fill:null},ignore:!0});n.setTextContent(i),zm({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"),Jl(this)}).on("mouseout",function(){"emphasis"!==o.get(["iconStatus",e])&&Ql(this),i.hide()}),("emphasis"===o.get(["iconStatus",e])?Jl:Ql)(n),f.add(n),n.on("click",Q(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?Jl:Ql)(i[t])},n instanceof WV&&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=[],Z(s,function(t,e){u.push(e)}),new K1(this._featureNames||[],u).add(g).update(g).remove(tt(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=oc(i,r,o),ic(e.get("orient"),t,e.get("itemGap"),n.width,n.height),rc(t,i,r,o),f.add($V(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&&!nt(r)&&e&&(n=r.style||(r.style={}),o=lo(e,xl.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"))}))},JV.prototype.updateView=function(t,e,n,i){Z(this._features,function(t){t instanceof WV&&t.updateView&&t.updateView(t.model,e,n,i)})},JV.prototype.remove=function(e,n){Z(this._features,function(t){t instanceof WV&&t.remove&&t.remove(e,n)}),this.group.removeAll()},JV.prototype.dispose=function(e,n){Z(this._features,function(t){t instanceof WV&&t.dispose&&t.dispose(e,n)})},JV.type="toolbox",JV),M=(y(e3,QV=WV),e3.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)}},e3.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"])}},e3);function e3(){return null!==QV&&QV.apply(this,arguments)||this}M.prototype.unusable=!w.canvasSupported;var n3,i3=M,o3="__ec_magicType_stack__",r3=[["line","bar"],["stack"]],qu=(y(s3,n3=WV),s3.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return Z(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n},s3.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:{}}},s3.prototype.onclick=function(t,e,a){var n,s,l=this.model,i=l.get(["seriesIndex",a]);a3[a]&&(s={series:[]},Z(r3,function(t){0<=W(t,a)&&Z(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=a3[a](e,n,t,l);n&&(F(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,Ar).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=V({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"}))},s3),a3={line:function(t,e,n,i){if("bar"===t)return V({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 V({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")===o3;if("line"===t||"bar"===t)return i.setIconStatus("stack",n?"normal":"emphasis"),V({id:e,stack:n?"":o3},i.get(["option","stack"])||{},!0)}};function s3(){return null!==n3&&n3.apply(this,arguments)||this}P1({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});var l3=qu,u3=new Array(60).join("-"),h3="\t";function c3(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:K([(h=[],Z(t.seriesGroupByCategoryAxis,function(t,e){var n=t.categoryAxis,i=t.valueAxis.dim,o=[" "].concat(j(t.series,function(t){return t.name})),r=[n.model.getCategories()];Z(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(h3)],s=0;st[1]&&t.reverse(),t}function C3(t,e){return Cr(t,e,{includeMainTypes:M3})}var D3={grid:function(t,i){var o=t.xAxisModels,r=t.yAxisModels,t=t.gridModels,e=Tt(),a={},s={};(o||r||t)&&(Z(o,function(t){t=t.axis.grid.model;e.set(t.id,t),a[t.id]=!0}),Z(r,function(t){t=t.axis.grid.model;e.set(t.id,t),s[t.id]=!0}),Z(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=[];Z(e.getCartesians(),function(t,e){(0<=W(o,t.getAxis("x").model)||0<=W(r,t.getAxis("y").model))&&n.push(t)}),i.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:n[0],coordSyses:n,getPanelRect:k3.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,n){Z(t.geoModels,function(t){var e=t.coordinateSystem;n.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:e,coordSyses:[e],getPanelRect:k3.geo})})}},A3=[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}],k3={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Tm(t)),e}},L3={lineX:tt(P3,0),lineY:tt(P3,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=[T3([o[0],i[0]]),T3([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:j(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 P3(t,e,n,i){var o=n.getAxis(["x","y"][t]),r=T3(j([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 O3={lineX:tt(R3,0),lineY:tt(R3,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 j(t,function(t,e){return[t[0]-i[0]*n[e][0],t[1]-i[1]*n[e][1]]})}};function R3(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function N3(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var z3,E3=qu,V3=Z,Co=(y(G3,z3=WV),G3.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new _P(n.getZr()),this._brushController.on("brush",Q(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 E3(F3(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)),it(t))r.innerHTML=t+a;else if(t){r.innerHTML="",et(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)})},fB.prototype._showSeriesItemTooltip=function(t,e,n){var i,o,r,a,s=this._ecModel,l=_l(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=gB([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 lf,i.marker=o.makeTooltipMarker("item",$h(i.color),e),l=td(c.formatTooltip(p,!1,d)),d=g.get("order"),r=l.markupFragment?ef(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}))},fB.prototype._showComponentItemTooltip=function(e,n,t){var i=_l(n),o=i.tooltipConfig.option||{},r=[o=it(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=gB(r,this._tooltipModel,o?{position:o}:null),s=a.get("content"),l=Math.random()+"",u=new lf;this._showOrMove(a,function(){var t=E(a.get("formatterParams")||{});this._showTooltipContent(a,s,t,l,e.offsetX,e.offsetY,e.position,n,u)}),t({type:"showTip",from:this.uid})},fB.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=it(h)?(d=n.ecModel.get("useUTC"),p=h,Zh(p=(t=et(i)?i[0]:i)&&t.axisType&&0<=t.axisType.indexOf("time")?wh(t.axisValue,p,d):p,i,!0)):nt(h)?(d=hB(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))},fB.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||et(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:et(e)?void 0:{color:i||e.color||e.borderColor}},fB.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),et(e=nt(e)?e([n,i],r,o.el,m,{viewSize:[s,l],contentSize:f.slice()}):e)?(n=pB(e[0],s),i=pB(e[1],l)):at(e)?((p=e).width=f[0],p.height=f[1],n=(d=oc(p,{width:s,height:l})).x,i=d.y,y=g=null):i=(n=it(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&&zB(o)}};function zB(t){return new Qi(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var EB,VB,BB=(y(FB,VB=If),FB.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new _P(e.getZr())).on("brush",Q(this._onBrush,this)).mount()},FB.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},FB.prototype.updateTransform=function(t,e,n,i){LB(e),this._updateController(t,e,n,i)},FB.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},FB.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},FB.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())},FB.prototype.dispose=function(){this._brushController.dispose()},FB.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:E(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:E(n),$from:e})},FB.type="brush",FB);function GB(){var t=null!==EB&&EB.apply(this,arguments)||this;return t.type=GB.type,t.areas=[],t.brushOption={},t}function FB(){var t=null!==VB&&VB.apply(this,arguments)||this;return t.type=FB.type,t}function HB(t,e){return V({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new th(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var WB,UB=(y(GB,EB=xc),GB.prototype.optionUpdated=function(t,e){var n=this.option;e||MB(n,t,["inBrush","outOfBrush"]);t=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},t.hasOwnProperty("liftZ")||(t.liftZ=5)},GB.prototype.setAreas=function(t){t&&(this.areas=j(t,function(t){return HB(this.option,t)},this))},GB.prototype.setBrushOption=function(t){this.brushOption=HB(this.option,t),this.brushType=this.brushOption.brushType},GB.type="brush",GB.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],GB.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},GB),XB=["rect","polygon","lineX","lineY","keep","clear"],YB=(y(ZB,WB=WV),ZB.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,Z(e.get("type",!0),function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?r:t===i)?"emphasis":"normal")})},ZB.prototype.updateView=function(t,e,n){this.render(t,e,n)},ZB.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return Z(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},ZB.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}})},ZB.getDefaultOption=function(t){return{show:!0,type:XB.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"])}},ZB);function ZB(){return null!==WB&&WB.apply(this,arguments)||this}var jB,qB,KB=(y(QB,qB=xc),QB.type="title",QB.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"}},QB),$B=(y(JB,jB=If),JB.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=gt(t.get("textBaseline"),t.get("textVerticalAlign")),h=(r=new xl({style:Ru(u,{text:t.get("text"),fill:u.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),u=t.get("subtext"),a=new xl({style:Ru(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(){Jh(s,"_"+t.get("target"))}),l&&a.on("click",function(){Jh(l,"_"+t.get("subtarget"))}),_l(r).eventData=_l(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=oc(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 rl({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))},JB.type="title",JB);function JB(){var t=null!==jB&&jB.apply(this,arguments)||this;return t.type=JB.type,t}function QB(){var t=null!==qB&&qB.apply(this,arguments)||this;return t.type=QB.type,t.layoutMode={type:"box",ignoreSize:!0},t}var t4,e4,Co=(y(i4,e4=xc),i4.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},i4.prototype.mergeOption=function(t){e4.prototype.mergeOption.apply(this,arguments),this._initData()},i4.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},i4.prototype.getCurrentIndex=function(){return this.option.currentIndex},i4.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},i4.prototype.setPlayState=function(t){this.option.autoPlay=!!t},i4.prototype.getPlayState=function(){return!!this.option.autoPlay},i4.prototype._initData=function(){var o,t=this.option,e=t.data||[],t=t.axisType,r=this._names=[];"category"===t?(o=[],Z(e,function(t,e){var n,i=_r(yr(t),"");at(t)?(n=E(t)).value=e:n=e,o.push(n),r.push(i)})):o=e,(this._data=new Mx([{name:"value",type:{category:"ordinal",time:"time",value:"number"}[t]||"number"}],this)).initData(o,r)},i4.prototype.getData=function(){return this._data},i4.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},i4.type="timeline",i4.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:[]},i4),Co=(y(n4,t4=Co),n4.type="timeline.slider",n4.defaultOption=ih(Co.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:[]}),n4);function n4(){var t=null!==t4&&t4.apply(this,arguments)||this;return t.type=n4.type,t}function i4(){var t=null!==e4&&e4.apply(this,arguments)||this;return t.type=i4.type,t.layoutMode="box",t}X(Co,e.prototype);var o4,r4,a4,s4=Co,Co=(y(d4,a4=If),d4.type="timeline",d4),l4=(y(p4,r4=cb),p4.prototype.getLabelModel=function(){return this.model.getModel("label")},p4.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},p4),u4=Math.PI,h4=Ir();function c4(){var t=null!==o4&&o4.apply(this,arguments)||this;return t.type=c4.type,t}function p4(t,e,n,i){n=r4.call(this,t,e,n)||this;return n.type=i||"value",n}function d4(){var t=null!==a4&&a4.apply(this,arguments)||this;return t.type=d4.type,t}function f4(t,e,n,i,o,r){var a=e.get("color");o?(o.setColor(a),n.add(o),r&&r.onUpdate(o)):((o=Fm(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=V({rectHover:!0,z2:100},i,!0);e=Hm(t.get("symbolSize"));i.scaleX=e[0]/2,i.scaleY=e[1]/2;e=Wm(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 g4(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 y4=(y(c4,o4=Co),c4.prototype.init=function(t,e){this.api=e},c4.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 Jd("nameValue",{noName:!0,value:r.scale.getLabel({value:t})})},Z(["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()},c4.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},c4.prototype.dispose=function(){this._clearTimer()},c4.prototype._layout=function(t,e){var n,i,o,r=t.get(["label","position"]),a=t.get("orient"),s=(x=e,oc((_=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=gt(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 rl({shape:i})),u.__rectSize=i[o]):h.eachChild(function(t){t.attr({invisible:!0,silent:!0})});h=this._getPageInfo(t);return null!=h.pageIndex&&wu(l,{x:h.contentPosition[0],y:h.contentPosition[1]},d?t:null),this._updatePageInfoView(t,h),g},BG.prototype._pageGo=function(t,e,n){t=this._getPageInfo(e)[t];null!=t&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},BG.prototype._updatePageInfoView=function(n,i){var o=this._controllerGroup;Z(["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",it(e)?e.replace("{current}",null==a?"":a+"").replace("{total}",null==r?"":r+""):e({current:a,total:r}))},BG.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,r=zG[o],a=EG[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}},BG.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},BG.type="legend.scroll",BG);function BG(){var t=null!==OG&&OG.apply(this,arguments)||this;return t.type=BG.type,t.newlineDisabled=!0,t._currentIndex=0,t}function GG(t){Z1(kG),t.registerComponentModel(RG),t.registerComponentView(VG),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 FG,HG=(y(UG,FG=Zr),UG.type="dataZoom.inside",UG.defaultOption=ih(Zr.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),UG),WG=Ir();function UG(){var t=null!==FG&&FG.apply(this,arguments)||this;return t.type=UG.type,t}function XG(t,e){e&&(t.removeKey(e.model.uid),(e=e.controller)&&e.dispose())}function YG(t,e){t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function ZG(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function jG(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(t,a){var e=WG(a),l=e.coordSysRecordMap||(e.coordSysRecordMap=Tt());l.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){Z(bV(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:tt(ZG,n),dispatchAction:tt(YG,i),dataZoomInfoMap:null,controller:null},e=r.controller=new lT(i.getZr()),Z(["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=Tt())).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))},hF.prototype._onBrushStart=function(t){var e=t.offsetX,t=t.offsetY;this._brushStart=new Ui(e,t),this._brushing=!0,this._brushStartTime=+new Date},hF.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=Yo([Wo(e.x,n,i=[0,100],!0),Wo(e.x+e.width,n,i,!0)]),this._handleEnds=[e.x,e.x+e.width],this._updateView(),this._dispatchZoomAction(!1))))},hF.prototype._onBrush=function(t){this._brushing&&(Me(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},hF.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new rF({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]})},hF.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?uF:null,start:e[0],end:e[1]})},hF.prototype._findCoordRect=function(){var t,e,n=bV(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},hF.type="dataZoom.slider",hF);function fF(t){t.registerComponentModel(oF),t.registerComponentView(dF),FV(t)}var gF,yF,mF={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]}},vF={get:function(t,e,n){e=E((mF[t]||{})[e]);return n&&et(e)?e[e.length-1]:e}},xF=LD.mapVisual,_F=LD.eachVisual,bF=et,wF=Z,SF=Yo,MF=Wo,Zr=(y(CF,yF=xc),CF.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},CF.prototype.optionUpdated=function(t,e){var n=this.option;w.canvasSupported||(n.realtime=!1),e||MB(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},CF.prototype.resetVisual=function(t){var e=this.stateList;t=Q(t,this),this.controllerVisuals=SB(this.option.controller,e,t),this.targetVisuals=SB(this.option.target,e,t)},CF.prototype.getItemSymbol=function(){return null},CF.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,n=[];return null==t||"all"===t?this.ecModel.eachSeries(function(t,e){n.push(e)}):n=dr(t),n},CF.prototype.eachTargetSeries=function(e,n){Z(this.getTargetSeriesIndices(),function(t){t=this.ecModel.getSeriesByIndex(t);t&&e.call(n,t)},this)},CF.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(t){t===e&&(n=!0)}),n},CF.prototype.formatValueText=function(t,e,n){var i,o=this.option,r=o.precision,a=this.dataBound,o=o.formatter;n=n||["<",">"],et(t)&&(t=t.slice(),i=!0);e=e?t:i?[s(t[0]),s(t[1])]:s(t);return it(o)?o.replace("{value}",i?e[0]:e).replace("{value2}",i?e[1]:e):nt(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))}},CF.prototype.resetExtent=function(){var t=this.option,t=SF([t.min,t.max]);this._dataExtent=t},CF.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}},CF.prototype.getExtent=function(){return this._dataExtent.slice()},CF.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={});V(i,t),V(o,t);var u=this.isCategory();function r(t){bF(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]={},wF(e,function(t,e){var n;!LD.isValidType(e)||null!=(n=vF.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";wF(this.stateList,function(t){var e=this.itemSize,n=o[t];null==(n=n||(o[t]={color:u?s:[s]})).symbol&&(n.symbol=r&&E(r)||(u?l:[l])),null==n.symbolSize&&(n.symbolSize=a&&E(a)||(u?e[0]:[e[0],e[0]])),n.symbol=xF(n.symbol,function(t){return"none"===t?l:t});var i,t=n.symbolSize;null!=t&&(i=-1/0,_F(t,function(t){ie[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},TF.prototype.completeVisualOption=function(){gF.prototype.completeVisualOption.apply(this,arguments),Z(this.stateList,function(t){t=this.option.controller[t].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},TF.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},TF.prototype.getSelected=function(){var t=this.getExtent(),e=Yo((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"},TF.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},TF.prototype.getVisualMeta=function(n){var t=DF(0,0,this.getExtent()),e=DF(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},GF.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]]]},GF.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new Ao("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})},GF.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(),EF([0,1],function(t){var e=s[t];e.setStyle("fill",o.handlesColor[t]),e.y=i[t];var n=zF(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=Cm(r.handleLabelPoints[t],Tm(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))},GF.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=zF(t,r,s,!0),t=a[0]-c/2,r={x:u.x,y:u.y};u.y=p,u.x=t;s=Cm(l.indicatorLabelPoint,Tm(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||HF(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",RF(r[0],s)),this._dispatchHighDown("highlight",RF(r[1],s)))},GF.prototype._hoverLinkFromSeriesMouseOver=function(t){var e=t.target,n=this.visualMapModel;e&&null!=_l(e).dataIndex&&(t=_l(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)))},GF.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})}},iH.type="visualMap.piecewise",iH.defaultOption=ih(Zr.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}),iH),nH={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 iH(){var t=null!==eH&&eH.apply(this,arguments)||this;return t.type=iH.type,t._pieceList=[],t}function oH(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var rH,aH=Zr,sH=(y(lH,rH=k),lH.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=ft(o.get("showLabel",!0),!t);t&&this._renderEndsText(i,t[0],u,h,l),Z(e.viewPieceList,function(t){var e=t.piece,n=new Ao;n.onclick=Q(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 xl({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),ic(o.get("orient"),i,o.get("itemGap")),this.renderBackground(i),this.positionGroup(i)},lH.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:RF(e.findTargetDataIndices(n),e)})}},lH.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return OF(t,this.api,t.itemSize);e=e.align;return e=!e||"auto"===e?"left":e},lH.prototype._renderEndsText=function(t,e,n,i,o){var r,a;e&&(r=new Ao,a=this.visualMapModel.textStyleModel,r.add(new xl({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))},lH.prototype._getViewData=function(){var t=this.visualMapModel,e=j(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}},lH.prototype._createItemSymbol=function(t,e,n){t.add(Fm(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},lH.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=E(n.selected),o=e.getSelectedMapKey(t);"single"===n.selectedMode?(i[o]=!0,Z(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})},lH.type="visualMap.piecewise",lH);function lH(){var t=null!==rH&&rH.apply(this,arguments)||this;return t.type=lH.type,t}function uH(t){t.registerComponentModel(aH),t.registerComponentView(sH),QF(t)}var hH={label:{enabled:!0},decal:{show:!1}},cH=Ir(),pH={};function dH(g,o){var t,r=g.getModel("aria");function y(t,e){if("string"!=typeof t)return t;var n=t;return Z(e,function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)}),n}r.get("enabled")&&(V((t=E(hH)).label,g.getLocaleModel().get("aria"),!1),V(r.option,t,!1),function(){{var n;r.getModel("decal").get("show")&&(n=Tt(),g.eachSeries(function(t){var e;t.isColorBySeries()||((e=n.get(t.type))||n.set(t.type,e={}),cH(t).scope=e)}),g.eachRawSeries(function(i){var o,t,e,r,a,s,l;function u(t,e){e=t?G(G({},e),t):e;return e.dirty=!0,e}g.isSeriesFiltered(i)||("function"!=typeof i.enableAriaDecal?(o=i.getData(),i.isColorBySeries()?(t=Xc(i.ecModel,i.name,pH,g.getSeriesCount()),e=o.getVisual("decal"),o.setVisual("decal",u(e,t))):(r=i.getRawData(),a={},s=cH(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=Xc(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=F(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"},yH=(CH.prototype.evaluate=function(t){var e=typeof t;return"string"==e?this._condVal.test(t):"number"==e&&this._condVal.test(t+"")},CH),mH=(TH.prototype.evaluate=function(){return this.value},TH),vH=(IH.prototype.evaluate=function(){for(var t=this.children,e=0;eMath.abs(l),h=XH([a,l],u?0:1,e),c=(u?s:l)/h.length,p=0;pe.length,s=o?gW(r,o):gW(a?e:t,[a?t:e]),l=0,u=0;uxW))for(var n=e.getIndices(),i=function(t){for(var e=t.dimensions,n=0;n