(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5f29ed8e"],{"1fb5":function(t,e,n){"use strict";e.byteLength=function(t){t=u(t);var e=t[0];t=t[1];return 3*(e+t)/4-t},e.toByteArray=function(t){var e,n,i=u(t),a=i[0],s=(i=i[1],new r(function(t,e){return 3*(t+e)/4-e}(a,i))),l=0,c=0>16&255,s[l++]=e>>8&255,s[l++]=255&e;return 2===i&&(e=o[t.charCodeAt(n)]<<2|o[t.charCodeAt(n+1)]>>4,s[l++]=255&e),1===i&&(e=o[t.charCodeAt(n)]<<10|o[t.charCodeAt(n+1)]<<4|o[t.charCodeAt(n+2)]>>2,s[l++]=e>>8&255,s[l++]=255&e),s},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,r=[],a=16383,s=0,l=n-o;s>18&63]+i[t>>12&63]+i[t>>6&63]+i[63&t]}(o));return r.join("")}(t,s,l>2]+i[e<<4&63]+"==")):2==o&&(e=(t[n-2]<<8)+t[n-1],r.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"=")),r.join("")};for(var i=[],o=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",o[u]+":0",i[1-l]+":auto",o[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,r),r,o);if(e)return e(t,n,i),!0}return!1}function B(t){return"CANVAS"===t.nodeName.toUpperCase()}var V=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,F=[],H=s.a.browser.firefox&&+s.a.browser.version.split(".")[0]<39;function G(t,e,n,i){return n=n||{},i?W(t,e,n):H&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):W(t,e,n),n}function W(t,e,n){if(s.a.domSupported&&t.getBoundingClientRect){var i,o=e.clientX;e=e.clientY;if(B(t))return i=t.getBoundingClientRect(),n.zrX=o-i.left,void(n.zrY=e-i.top);if(z(F,t,o,e))return n.zrX=F[0],void(n.zrY=F[1])}n.zrX=n.zrY=0}function Y(t){return t||window.event}function U(t,e,n){if(null!=(e=Y(e)).zrX)return e;var i=e.type;i&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&G(t,i,e,n):(G(t,e,e,n),i=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX;t=t.deltaY;return null!=n&&null!=t?3*(0!==t?Math.abs(t):Math.abs(n))*(0t.getWidth()||n<0||n>t.getHeight()}l.k(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){st.prototype[t]=function(e){var n,i,o=e.zrX,r=e.zrY,a=ut(this,o,r);if("mouseup"===t&&a||(i=(n=this.findHover(o,r)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||4>>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+c])<0?l=c:a=c+1}return l}function mt(t,e){var n,i,o=pt,r=0,a=(t.length,[]);function s(s){var l=n[s],u=i[s],c=n[s+1],h=i[s+1];i[s]=u+h,s===r-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),r--,s=yt(t[c],t,l,u,0,e);if(l+=s,0!=(u-=s)&&0!==(h=gt(t[l+u-1],t,c,h,h-1,e)))if(u<=h){var p=l,d=u,f=(s=c,h),g=0;for(g=0;gi[t+1])break;s(t)}},forceMergeRuns:function(){for(;1>=1;return t+e}(o);do{}while((r=dt(t,n,i,e))e);y++);y=g(y-1,h-2)}i=c[y+1],n=c[y]}n&&i&&(this._lastFr=y,this._lastFrP=e,f=i.percent-n.percent,o=0==f?1:g((e-n.percent)/f,1),i.easingFunc&&(o=i.easingFunc(o)),g=a?this._additiveValue:d?he:t[p],!ce(u)&&!d||g||(g=this._additiveValue=[]),this.discrete?t[p]=(o<1?n:i).rawValue:ce(u)?(1===u?oe:function(t,e,n,i){for(var o=e.length,r=o&&e[0].length,a=0;a=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},vn.prototype.clone=function(){return new vn(this.x,this.y,this.width,this.height)},vn.prototype.copy=function(t){vn.copy(this,t)},vn.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},vn.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},vn.prototype.isZero=function(){return 0===this.width||0===this.height},vn.create=function(t){return new vn(t.x,t.y,t.width,t.height)},vn.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},vn.applyTransform=function(t,e,n){if(n){var i,o;if(n[1]<1e-5&&-1e-5this._sleepAfterStill&&this.animation.stop())},Xn.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},Xn.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},Xn.prototype.refreshHover=function(){this._needsRefreshHover=!0},Xn.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},Xn.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},Xn.prototype.clearAnimation=function(){this.animation.clear()},Xn.prototype.getWidth=function(){return this.painter.getWidth()},Xn.prototype.getHeight=function(){return this.painter.getHeight()},Xn.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},Xn.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},Xn.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},Xn.prototype.off=function(t,e){this.handler.off(t,e)},Xn.prototype.trigger=function(t,e){this.handler.trigger(t,e)},Xn.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e=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"),h=!0),i.accumWidth=t):(t=po(e,c,i.width,i.breakAll,i.accumWidth),i.accumWidth=t.accumWidth+n,a=t.linesWidths,r=t.lines)):r=e.split("\n");for(var p=0;pthis._ux||i>this._uy;return this.addData(No.L,t,e),this._ctx&&o&&this._ctx.lineTo(t,e),o?(this._xi=t,this._yi=e,this._pendingPtDist=0):(o=n*n+i*i)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o),this},Jo.prototype.bezierCurveTo=function(t,e,n,i,o,r){return this._drawPendingPt(),this.addData(No.C,t,e,n,i,o,r),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,o,r),this._xi=o,this._yi=r,this},Jo.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(No.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},Jo.prototype.arc=function(t,e,n,i,o,r){this._drawPendingPt(),Qo[0]=i,Qo[1]=o,s=r,(l=$o((a=Qo)[0]))<0&&(l+=qo),c=l-a[0],u=a[1],u+=c,!s&&qo<=u-l?u=l+qo:s&&qo<=l-u?u=l-qo:!s&&uu.length&&(this._expandData(),u=this.data);for(var c=0;cn||Xo(y)>i||h===e-1)&&(f=Math.sqrt(T*T+y*y),o=g,r=x);break;case No.C:var m=t[h++],v=t[h++],x=(g=t[h++],t[h++]),_=t[h++],b=t[h++];f=function(t,e,n,i,o,r,a,s,l){for(var u=t,c=e,h=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=Bt(t,n,o,a,f),y=(f=Bt(e,i,r,s,f),g-u),m=f-c;h+=Math.sqrt(y*y+m*m),u=g,c=f}return h}(o,r,m,v,g,x,_,b,10),o=_,r=b;break;case No.Q:f=function(t,e,n,i,o,r,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var p=h*c,d=Yt(t,n,o,p),f=(p=Yt(e,i,r,p),d-s),g=p-l;u+=Math.sqrt(f*f+g*g),s=d,l=p}return u}(o,r,m=t[h++],v=t[h++],g=t[h++],x=t[h++],10),o=g,r=x;break;case No.A:_=t[h++],b=t[h++];var w=t[h++],S=t[h++],M=t[h++],I=t[h++],O=I+M;h+=1,t[h++],d&&(a=Yo(M)*w+_,s=Uo(M)*S+b),f=Wo(w,S)*Go(qo,Math.abs(I)),o=Yo(O)*w+_,r=Uo(O)*S+b;break;case No.R:a=o=t[h++],s=r=t[h++],f=2*t[h++]+2*t[h++];break;case No.Z:var T=a-o;y=s-r;f=Math.sqrt(T*T+y*y),o=a,r=s}0<=f&&(u+=l[c++]=f)}return this._pathLen=u},Jo.prototype.rebuildPath=function(t,e){var n,i,o,r,a,s,l,u,c=this.data,h=this._ux,p=this._uy,d=this._len,f=e<1,g=0,y=0,m=0;if(!f||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var v=0;v=cr[i=0]+t&&a<=cr[1]+t?c:0;oMath.PI/2&&h<1.5*Math.PI?-c:c))}return l}(y,m,x,_,_+b,w,I,o);u=Math.cos(_+b)*v+y,c=Math.sin(_+b)*x+m;break;case sr.R:if(h=u=a[d++],p=c=a[d++],S=h+a[d++],M=p+a[d++],n){if(er(h,p,S,p,e,i,o)||er(S,p,S,M,e,i,o)||er(S,M,h,M,e,i,o)||er(h,M,h,p,e,i,o))return!0}else l=(l+=ar(S,p,S,M,i,o))+ar(h,M,h,p,i,o);break;case sr.Z:if(n){if(er(u,c,h,p,e,i,o))return!0}else l+=ar(u,c,h,p,i,o);u=h,c=p}}return n||(t=c,r=p,Math.abs(t-r)"'])/g,Nl={"&":"&","<":"<",">":">",'"':""","'":"'"};function El(t){return null==t?"":(t+"").replace(Rl,(function(t,e){return Nl[e]}))}function zl(t,e,n){function i(t){return t&&l.T(t)?t:"-"}function o(t){return null!=t&&!isNaN(t)&&isFinite(t)}var r="time"===e,a=t instanceof Date;if(r||a){if(r=r?ai(t):t,!isNaN(+r))return yl(r,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",n);if(a)return"-"}return"ordinal"===e?l.D(t)?i(t):l.z(t)&&o(t)?t+"":"-":(r=hi(t),o(r)?Ll(r):l.D(t)?i(t):"boolean"==typeof t?t+"":"-")}function Bl(t,e){return"{"+t+(null==e?"":e)+"}"}var Vl=["a","b","c","d","e","f","g"];function Fl(t,e,n){var i=(e=l.t(e)?e:[e]).length;if(!i)return"";for(var o=e[0].$vars||[],r=0;re)return t[i];return t[n-1]}(i,a):n)||n,i&&i.length?(a=i[t],o&&(r[o]=a),e.paletteIdx=(t+1)%i.length,a):void 0)}function Eu(t){throw new Error(t)}var zu="\0_ec_inner";a(Vu,Bu=Xs),Vu.prototype.init=function(t,e,n,i,o,r){i=i||{},this.option=null,this._theme=new Xs(i),this._locale=new Xs(o),this._optionManager=r},Vu.prototype.setOption=function(t,e,n){e=Gu(e),this._optionManager.setOption(t,n,e),this._resetOption(null,e)},Vu.prototype.resetOption=function(t,e){return this._resetOption(t,Gu(e))},Vu.prototype._resetOption=function(t,e){var n,i=!1,o=this._optionManager;return t&&"recreate"!==t||(n=o.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(n,e)):Au(this,n),i=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(n=o.getTimelineOption(this))&&(i=!0,this._mergeOption(n,e)),t&&"recreate"!==t&&"media"!==t||(n=o.getMediaOption(this)).length&&Object(l.k)(n,(function(t){i=!0,this._mergeOption(t,e)}),this),i},Vu.prototype.mergeOption=function(t){this._mergeOption(t,null)},Vu.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,o=this._componentsCount,r=[],a=Object(l.f)(),s=e&&e.replaceMergeMainTypeMap;bu(this).datasetMap=Object(l.f)(),Object(l.k)(t,(function(t,e){null!=t&&(uu.hasClass(e)?e&&(r.push(e),a.set(e,!0)):n[e]=null==n[e]?Object(l.d)(t):Object(l.I)(n[e],t,!0))})),s&&s.each((function(t,e){uu.hasClass(e)&&!a.get(e)&&(r.push(e),a.set(e,!0))})),uu.topologicalTravel(r,uu.getAllClassMainTypes(),(function(e){var r,a=function(t,e,n){return(e=ku.get(e))&&(e=e(t))?n.concat(e):n}(this,e,vi(t[e])),u=i.get(e),c=u?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",h=(u=wi(u,a,c),Ci(u,e,uu),n[e]=null,i.set(e,null),o.set(e,0),[]),p=[],d=0;Object(l.k)(u,(function(t,n){var i=t.existing,o=t.newOption;if(o){var a=uu.getClass(e,t.keyInfo.subType,!("series"===e));if(!a)return;if("tooltip"===e){if(r)return;r=!0}i&&i.constructor===a?(i.name=t.keyInfo.name,i.mergeOption(o,this),i.optionUpdated(o,!1)):(i=new a(o,this,this,a=Object(l.m)({componentIndex:n},t.keyInfo)),Object(l.m)(i,a),t.brandNew&&(i.__requireNewView=!0),i.init(o,this,this),i.optionUpdated(null,!0))}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(h.push(i.option),p.push(i),d++):(h.push(void 0),p.push(void 0))}),this),n[e]=h,i.set(e,p),o.set(e,d),"series"===e&&Tu(this)}),this),this._seriesIndices||Tu(this)},Vu.prototype.getOption=function(){var t=Object(l.d)(this.option);return Object(l.k)(t,(function(e,n){if(uu.hasClass(n)){for(var i=vi(e),o=i.length,r=!1,a=o-1;0<=a;a--)i[a]&&!Ti(i[a])?r=!0:(i[a]=null,r||o--);i.length=o,t[n]=i}})),delete t[zu],t},Vu.prototype.getTheme=function(){return this._theme},Vu.prototype.getLocaleModel=function(){return this._locale},Vu.prototype.setUpdatePayload=function(t){this._payload=t},Vu.prototype.getUpdatePayload=function(){return this._payload},Vu.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){if(t=n[e||0],t)return t;if(null==e)for(var i=0;ig[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},jh.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,o=this._chunks,r=this._dimensions,a=r.length,s=this._rawExtent,u=Object(l.H)(r,(function(t){return t.property})),c=0;cg[1]&&(g[1]=y)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},jh.prototype.count=function(){return this._count},jh.prototype.get=function(t,e){return 0<=e&&e=this._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},jh.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],o=[];if(!i)return o;null==n&&(n=1/0);for(var r=1/0,a=-1,s=0,l=0,u=this.count();lt[M][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return sy[1]&&(y[1]=g)}}},jh.prototype.lttbDownSample=function(t,e){var n,i=this.clone([t],!0),o=i._chunks[t],r=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),u=new(Dh(this._rawCount))(Math.ceil(r/s)+2);u[a++]=l;for(var c=1;cc[1]&&(c[1]=y),h[p++]=m}return o._count=p,o._indices=h,o._updateGetRawIdx(),o},jh.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,o=0,r=this.count();o'+El(c)+""+h,n))}function Kh(t,e,n,i){var o,r,a,s,u=t.renderMode,c=e.noName,h=e.noValue,p=!e.markerType,d=e.name,f=t.useUTC,g=e.valueFormatter||t.valueFormatter||function(t){return t=Object(l.t)(t)?t:[t],Object(l.H)(t,(function(t,e){return zl(t,Object(l.t)(r)?r[e]:r,f)}))};if(!c||!h)return o=p?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",u),d=c?"":zl(d,"ordinal",f),r=e.valueType,g=h?[]:g(e.value),e=!p||!c,a=!p&&c,i=Gh(i,u),s=i.nameStyle,i=i.valueStyle,"richText"===u?(p?"":o)+(c?"":Jh(t,d,s))+(h?"":function(t,e,n,i,o){return o=[o],i=i?10:20,n&&o.push({padding:[0,0,0,i],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(l.t)(e)?e.join(" "):e,o)}(t,g,e,a,i)):$h((p?"":o)+(c?"":''+El(d)+"")+(h?"":function(t,e,n,i){return n=n?"10px":"20px",e=e?"float:right;margin-left:"+n:"",t=Object(l.t)(t)?t:[t],''+Object(l.H)(t,El).join("  ")+""}(g,e,a,i)),n)}function Qh(t,e,n,i,o,r){if(t)return Zh(t)({useUTC:o,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,r)}function $h(t,e){return'
'+t+'
'}function Jh(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function tp(t,e){return Hl(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function ep(t,e){return t=t.get("padding"),null!=t?t:"richText"===e?[8,10]:10}ip.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},ip.prototype.makeTooltipMarker=function(t,e,n){var i,o="richText"===n?this._generateStyleName():null,r=(e={color:e,type:t,renderMode:n,markerId:o},t=(e=l.C(e)?{color:e,extraCssText:r}:e||{}).color,n=e.type,r=e.extraCssText,i=e.renderMode||"html",t?"html"===i?"subItem"===n?'':'':{renderMode:i,content:"{"+(e.markerId||"markerX")+"|} ",style:"subItem"===n?{width:4,height:4,borderRadius:2,backgroundColor:t}:{width:10,height:10,borderRadius:5,backgroundColor:t}}:"");return Object(l.C)(r)?r:(this.richTextStyles[o]=r.style,r.content)},ip.prototype.wrapRichTextStyle=function(t,e){var n={};Object(l.t)(e)?Object(l.k)(e,(function(t){return Object(l.m)(n,t)})):Object(l.m)(n,e),e=this._generateStyleName();return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"};var np=ip;function ip(){this.richTextStyles={},this._nextStyleNameId=di()}function op(t){var e,n,i,o,r,a,s,u,c,h,p,d=t.series,f=t.dataIndex,g=(t=t.multipleSeries,d.getData()),y=g.mapDimensionsAll("defaultedTooltip"),m=y.length,v=d.getRawValue(f),x=Object(l.t)(v),_=tp(d,f);function b(t,e){e=s.getDimensionInfo(e),e&&!1!==e.otherDims.tooltip&&(u?p.push(Uh("nameValue",{markerType:"subItem",markerColor:a,name:e.displayName,value:t,valueType:e.type})):(c.push(t),h.push(e.type)))}return 1this.getShallow("animationThreshold"))&&t))},up.prototype.restoreData=function(){this.dataTask.dirty()},up.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return Pu.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},up.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},up.prototype.getProgressive=function(){return this.get("progressive")},up.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},up.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},up.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var r=0;re.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function fp(t,e){l.k(l.e(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,l.h(gp,e))}))}function gp(t,e){return t=yp(t),t&&t.setOutputEnd((e||this).count()),e}function yp(t){var e,n=(t.ecModel||{}).scheduler;n=n&&n.getPipeline(t.uid);if(n)return(n=n.currentTask)&&(e=n.agentStubMap)?e.get(t.uid):n}l.K(zs,Hs),l.K(zs,Pu),Yi(zs,uu);var mp=zs;vp.prototype.init=function(t,e){},vp.prototype.render=function(t,e,n,i){},vp.prototype.dispose=function(t,e){},vp.prototype.updateView=function(t,e,n,i){},vp.prototype.updateLayout=function(t,e,n,i){},vp.prototype.updateVisual=function(t,e,n,i){},vp.prototype.blurSeries=function(t,e){},vp.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},Qi=vp;function vp(){this.group=new Gn,this.uid=qs("viewComponent")}Wi(Qi),Zi(Qi);var xp=Qi;function _p(){var t=ki();return function(e){var n=t(e),i=(e=e.pipelineContext,!!n.large),o=!!n.progressiveRender,r=n.large=!(!e||!e.large);n=n.progressiveRender=!(!e||!e.progressiveRender);return!(i==r&&o==n)&&"reset"}}var bp=tr.CMD,wp=[[],[],[]],Sp=Math.sqrt,Mp=Math.atan2;function Ip(t,e){if(e){for(var n,i,o,r,a=t.data,s=t.len(),l=bp.M,u=bp.C,c=bp.L,h=bp.R,p=bp.A,d=bp.Q,f=0,g=0;fi.len()&&(uMath.abs(i[1])?0n.blockIndex?n.step:null,t=i&&i.modDataCount,{step:e,modBy:null!=t?Math.ceil(t/e):null,modDataCount:t}},ag.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},ag.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),o=(e=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,t.get("large")&&i>=t.get("largeThreshold"));i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:i,large:o}},ag.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(l.f)();t.eachSeries((function(t){var i=t.getProgressive(),o=t.uid;n.set(o,{id:o,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},ag.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(l.k)(this._allHandlers,(function(i){var o=t.get(i.uid)||t.set(i.uid,{});Object(l.b)(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,o,e,n),i.overallReset&&this._createOverallStageTask(i,o,e,n)}),this)},ag.prototype.prepareView=function(t,e,n,i){var o=t.renderTask,r=o.context;r.model=e,r.ecModel=n,r.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},ag.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},ag.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},ag.prototype._performStageTasks=function(t,e,n,i){i=i||{};var o=!1,r=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(l.k)(t,(function(t,s){var l,u,c,h,p;i.visualType&&i.visualType!==t.visualType||(l=(u=r._stageTaskMap.get(t.uid)).seriesTaskMap,(u=u.overallTask)?((h=u.agentStubMap).each((function(t){a(i,t)&&(t.dirty(),c=!0)})),c&&u.dirty(),r.updatePayload(u,n),p=r.getPerformArgs(u,i.block),h.each((function(t){t.perform(p)})),u.perform(p)&&(o=!0)):l&&l.each((function(s,l){a(i,s)&&s.dirty();var u=r.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),r.updatePayload(s,n),s.perform(u)&&(o=!0)})))})),this.unfinished=o||this.unfinished},ag.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},ag.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}}while(e=e.getUpstream())}))},ag.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},ag.prototype._createSeriesStageTask=function(t,e,n,i){var o=this,r=e.seriesTaskMap,a=e.seriesTaskMap=Object(l.f)(),s=(e=t.seriesType,t.getTargetSeries);function u(e){var s=e.uid;s=a.set(s,r&&r.get(s)||qc({plan:hg,reset:pg,count:gg}));s.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,s)}t.createOnAllSeries?n.eachRawSeries(u):e?n.eachRawSeriesByType(e,u):s&&s(n,i).each(u)},ag.prototype._createOverallStageTask=function(t,e,n,i){var o=this,r=e.overallTask=e.overallTask||qc({reset:sg}),a=(r.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o},r.agentStubMap),s=r.agentStubMap=Object(l.f)(),u=(e=t.seriesType,t.getTargetSeries),c=!0,h=!1;function p(t){var e=t.uid;e=s.set(e,a&&a.get(e)||(h=!0,qc({reset:lg,onDirty:cg})));e.context={model:t,overallProgress:c},e.agent=r,e.__block=c,o._pipe(t,e)}Object(l.b)(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,p):u?u(n,i).each(p):(c=!1,Object(l.k)(n.getSeries(),p)),h&&r.dirty()},ag.prototype._pipe=function(t,e){t=t.uid,t=this._pipelineMap.get(t),t.head||(t.head=e),t.tail&&t.tail.pipe(e),(t.tail=e).__idxInPipeline=t.count++,e.__pipeline=t},ag.wrapStageHandler=function(t,e){return(t=Object(l.w)(t)?{overallReset:t,seriesType:function(t){yg=null;try{t(mg,vg)}catch(t){}return yg}(t)}:t).uid=qs("stageHandler"),e&&(t.visualType=e),t},Qi=ag;var dg=fg(0);function fg(t){return function(e,n){var i=n.data,o=n.resetDefines[t];if(o&&o.dataEach)for(var r=e.start;r'+t.dom+""})),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()):(t.connectedBackgroundColor&&g.add(new Br({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),Object(l.k)(c,(function(t){t=new Ar({style:{x:t.left*h-r,y:t.top*h-a,image:t.dom}}),g.add(t)})),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png")))):this.getDataURL(t);cm(this.id)},im.prototype.convertToPixel=function(t,e){return Fy(this,"convertToPixel",t,e)},im.prototype.convertFromPixel=function(t,e){return Fy(this,"convertFromPixel",t,e)},im.prototype.containPixel=function(t,e){var n;if(!this._disposed)return t=Li(this._model,t),Object(l.k)(t,(function(t,i){0<=i.indexOf("Models")&&Object(l.k)(t,(function(t){var o=t.coordinateSystem;o&&o.containPoint?n=n||!!o.containPoint(e):"seriesModels"===i&&(o=this._chartsMap[t.__viewId])&&o.containPoint&&(n=n||o.containPoint(e,t))}),this)}),this),!!n;cm(this.id)},im.prototype.getVisual=function(t,e){t=Li(this._model,t,{defaultMainType:"series"});var n=t.seriesModel.getData();t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;return null!=t?Tg(n,t,e):Cg(n,e)},im.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},im.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},im.prototype._initEvents=function(){var t,e,n,i=this;Object(l.k)(um,(function(t){function e(e){var n,o,r,a=i.getModel(),s=e.target;"globalout"===t?n={}:s&&Lg(s,(function(t){var e;t=oa(t);return t&&null!=t.dataIndex?(e=t.dataModel||a.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType)||{},1):t.eventData&&(n=Object(l.m)({},t.eventData),1)}),!0),n&&(o=n.componentType,r=n.componentIndex,"markLine"!==o&&"markPoint"!==o&&"markArea"!==o||(o="series",r=n.seriesIndex),r=(o=o&&null!=r&&a.getComponent(o,r))&&i["series"===o.mainType?"_chartsMap":"_componentsMap"][o.__viewId],n.event=e,n.type=t,i._$eventProcessor.eventInfo={targetEl:s,packedEvent:n,model:o,view:r},i.trigger(t,n))}e.zrEventfulCallAtLast=!0,i._zr.on(t,e,i)})),Object(l.k)(pm,(function(t,e){i._messageCenter.on(e,(function(t){this.trigger(e,t)}),i)})),Object(l.k)(["selectchanged"],(function(t){i._messageCenter.on(t,(function(e){this.trigger(t,e)}),i)})),t=this._messageCenter,n=(e=this)._api,t.on("selectchanged",(function(t){var i=n.getModel();t.isFromClick?(Dg("map","selectchanged",e,i,t),Dg("pie","selectchanged",e,i,t)):"select"===t.fromAction?(Dg("map","selected",e,i,t),Dg("pie","selected",e,i,t)):"unselect"===t.fromAction&&(Dg("map","unselected",e,i,t),Dg("pie","unselected",e,i,t))}))},im.prototype.isDisposed=function(){return this._disposed},im.prototype.clear=function(){this._disposed?cm(this.id):this.setOption({series:[]},!0)},im.prototype.dispose=function(){var t,e,n;this._disposed?cm(this.id):(this._disposed=!0,this.getDom()&&Ei(this.getDom(),bm,""),e=(t=this)._api,n=t._model,Object(l.k)(t._componentsViews,(function(t){t.dispose(n,e)})),Object(l.k)(t._chartsViews,(function(t){t.dispose(n,e)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete vm[t.id])},im.prototype.resize=function(t){if(!this[Oy])if(this._disposed)cm(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){e=e.resetOption("media");var n=t&&t.silent;this[Ty]&&(null==n&&(n=this[Ty].silent),e=!0,this[Ty]=null),this[Oy]=!0;try{e&&Ey(this),Vy.update.call(this,{type:"resize",animation:Object(l.m)({duration:0},t&&t.animation)})}catch(t){throw this[Oy]=!1,t}this[Oy]=!1,Wy.call(this,n),Yy.call(this,n)}}},im.prototype.showLoading=function(t,e){this._disposed?cm(this.id):(Object(l.A)(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),mm[t]&&(t=mm[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},im.prototype.hideLoading=function(){this._disposed?cm(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},im.prototype.makeActionFromEvent=function(t){var e=Object(l.m)({},t);return e.type=pm[t.type],e},im.prototype.dispatchAction=function(t,e){var n;this._disposed?cm(this.id):(Object(l.A)(e)||(e={silent:!!e}),hm[t.type]&&this._model&&(this[Oy]?this._pendingActions.push(t):(n=e.silent,Gy.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&s.a.browser.weChat&&this._throttledZrFlush(),Wy.call(this,n),Yy.call(this,n))))},im.prototype.updateLabelLayout=function(){Sy.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},im.prototype.appendData=function(t){var e;this._disposed?cm(this.id):(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},im.internalField=(Ey=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),zy(t,!0),zy(t,!1),e.plan()},zy=function(t,e){for(var n=t._model,i=t._scheduler,o=e?t._componentsViews:t._chartsViews,r=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;lu.get("hoverLayerThreshold")&&!s.a.node&&!s.a.worker&&u.eachSeries((function(t){t.preventUsingHoverLayer||(t=a._chartsMap[t.__viewId]).__alive&&t.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))})),Sy.trigger("series:afterupdate",e,n,o)},Jy=function(t){t[Cy]=!0,t.getZr().wakeUp()},tm=function(t){t[Cy]&&(t.getZr().storage.traverse((function(t){ps(t)||rm(t)})),t[Cy]=!1)},Qy=function(t){return a(e,n=Wu),e.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},e.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},e.prototype.enterEmphasis=function(e,n){Ba(e,n),Jy(t)},e.prototype.leaveEmphasis=function(e,n){Va(e,n),Jy(t)},e.prototype.enterBlur=function(e){Fa(e),Jy(t)},e.prototype.leaveBlur=function(e){Ha(e),Jy(t)},e.prototype.enterSelect=function(e){Ga(e),Jy(t)},e.prototype.leaveSelect=function(e){Wa(e),Jy(t)},e.prototype.getModel=function(){return t.getModel()},e.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},e.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},new e(t);function e(){return null!==n&&n.apply(this,arguments)||this}var n},void($y=function(t){function e(t,e){for(var n=0;n=r}}for(var u,c=this.__startIndex;co[0]){for(l=0;lt);l++);s=i[o[l]]}o.splice(l+1,0,t),(i[t]=e).virtual||(s?(n=s.dom).nextSibling?a.insertBefore(e.dom,n.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.__painter=this}},Sv.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i"}(o,e.attrs)+(e.text||"")+(i?n+Object(l.H)(i,t).join(n)+n:"")+""}(t)}function Wv(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Yv(t,e,n,i){return Hv("svg","root",{width:t,height:e,xmlns:Ev,"xmlns:xlink":zv,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var Uv={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Xv="transform-origin",Zv={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function qv(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function Kv(t){return Object(l.C)(t)?Uv[t]?"cubic-bezier("+Uv[t]+")":Qt(t)?t:"":""}function Qv(t,e,n,i){var o=t.animators,r=o.length,a=[];if(t instanceof Wd){if(u=function(t,e,n){t=t.shape.paths;var i,o,r={};if(Object(l.k)(t,(function(t){var e=Wv(n.zrId),a=(t=(e.animation=!0,Qv(t,{},e,!0),e.cssAnims),e.cssNodes),s=(e=Object(l.F)(t),e.length);if(s){var u,c,h=t[o=e[s-1]];for(u in h){var p=h[u];r[u]=r[u]||{d:""},r[u].d+=p.d||""}for(c in a){var d=a[c].animation;0<=d.indexOf(o)&&(i=d)}}})),i)return e.d=!1,t=qv(r,n),i.replace(o,t)}(t,e,n))a.push(u);else if(!r)return}else if(!r)return;for(var s,u,c,h={},p=0;p"].join(i):"")&&(a=Hv("style","stl",{},[],s),p.push(a))),Yv(u,c,p,t.useViewBox)},kx.prototype.renderToString=function(t){return t=t||{},Gv(this.renderToVNode({animation:Object(l.P)(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Object(l.P)(t.useViewBox,!0)}),{newline:!0})},kx.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e,n=this._bgVNode;n&&n.elm&&(e=(t=Object(ee.p)(t)).color,t=t.opacity,n.elm.setAttribute("fill",e),t<1&&n.elm.setAttribute("fill-opacity",t))},kx.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},kx.prototype._paintList=function(t,e,n){for(var i,o,r,a,s,l,u,c=t.length,h=[],p=0,d=0,f=0;fe[c-1].coord&&(e.reverse(),h.reverse()),function(t,e){var n,i,o=[],r=t.length;function a(t,e,n){var i=t.coord;i=(n-i)/(e.coord-i);return{coord:n,color:Object(te.b)(i,[t.color,e.color])}}for(var s=0;si)return;return 1}(a,e)))return o=e.mapDimension(a.dim),r={},l.k(a.getViewLabels(),(function(t){t=a.scale.getRawOrdinalNumber(t.tickValue),r[t]=1})),function(t){return!r.hasOwnProperty(e.get(o,t))}}}function ub(t){for(var e,n,i=t.length/2;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"),bs(i));_s(t,h,{labelFetcher:r,labelDataIndex:n,defaultText:w_(r.getData(),n),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:c}),u=t.getTextContent(),s&&u&&(s=i.get(["label","position"]),t.textConfig.inside="middle"===s||null,function(t,e,n,i){if(Object(l.z)(i))t.setTextConfig({rotation:i});else if(Object(l.t)(e))t.setTextConfig({rotation:0});else{i=t.shape;var o,r=i.clockwise?i.startAngle:i.endAngle,a=i.clockwise?i.endAngle:i.startAngle,s=(r+a)/2;i=n(e);switch(i){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":o=s;break;case"startAngle":case"insideStartAngle":o=r;break;case"endAngle":case"insideEndAngle":o=a;break;default:return t.setTextConfig({rotation:0})}n=1.5*Math.PI-o,"middle"===i&&n>Math.PI/2&&n<1.5*Math.PI&&(n-=Math.PI),t.setTextConfig({rotation:n})}}(t,"outside"===s?c:s,$b(a),i.get(["label","rotate"]))),ks(u,h,r.getRawValue(n),(function(t){return S_(e,t)})),c=i.getModel(["emphasis"]);$a(t,c.get("focus"),c.get("blurScope"),c.get("disabled")),ns(t,i),null!=(s=o).startAngle&&null!=s.endAngle&&s.startAngle===s.endAngle&&(t.style.fill="none",t.style.stroke="none",Object(l.k)(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var tw,ew=function(){},nw=(a(iw,tw=br),iw.prototype.getDefaultShape=function(){return new ew},iw.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,o=1-this.baseDimIdx,r=[],a=[],s=this.barWidth,l=0;l=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}(this,t.offsetX,t.offsetY),oa(this).dataIndex=0<=t?t:null}),30,!1);function aw(t,e,n){var i,o;return eb(n,"cartesian2d")?(i=e,o=n.getArea(),{x:(t?i:o).x,y:(t?o:i).y,width:(t?i:o).width,height:(t?o:i).height}):{cx:(o=n.getArea()).cx,cy:o.cy,r0:(t?o:e).r0,r:(t?o:e).r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}}var sw=Eg,lw=2*Math.PI,uw=Math.PI/180;function cw(t,e){return ql(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function hw(t,e){var n=cw(t,e),i=t.get("center"),o=(t=t.get("radius"),l.t(t)||(t=[0,t]),l.t(i)||(i=[i,i]),Qn(n.width,e.getWidth())),r=(e=Qn(n.height,e.getHeight()),Math.min(o,e));return{cx:Qn(i[0],o)+n.x,cy:Qn(i[1],e)+n.y,r0:Qn(t[0],r/2),r:Qn(t[1],r/2)}}function pw(t,e,n){e.eachSeriesByType(t,(function(t){var e,i=t.getData(),o=i.mapDimension("value"),r=cw(t,n),a=hw(t,n),s=a.cx,l=a.cy,u=a.r,c=a.r0,h=-t.get("startAngle")*uw,p=t.get("minAngle")*uw,d=0,f=(i.each(o,(function(t){isNaN(t)||d++})),i.getSum(o)),g=Math.PI/(f||d)*2,y=t.get("clockwise"),m=t.get("roseType"),v=t.get("stillShowZeroSum"),x=i.getDataExtent(o),_=(x[0]=0,lw),b=0,w=h,S=y?1:-1;i.setLayout({viewRect:r,r:u}),i.each(o,(function(t,e){var n,o;isNaN(t)?i.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:s,cy:l,r0:c,r:m?NaN:u}):((n="area"!==m?0===f&&v?g:t*g:lw/d)n?_:x,(g=Math.abs(d.label.y-n))>=f.maxY&&(m=d.label.x-e-d.len2*o,y=i+d.len,m=Math.abs(m)t.unconstrainedWidth)?s:null,i.setStyle("width",l)),u=i.getBoundingRect(),o.width=u.width,e=(i.style.margin||0)+2.1,o.height=u.height+e,o.y-=(o.height-a)/2))}function mw(t){return"center"===t.position}function vw(t){var e,n,i=t.getData(),o=[],r=!1,a=(t.get("minShowLabelAngle")||0)*fw,s=i.getLayout("viewRect"),u=i.getLayout("r"),c=s.width,h=s.x,p=s.y;s=s.height;function d(t){t.ignore=!0}if(i.each((function(t){var s,p,f,g,y,m,v,x,_,b,w=i.getItemGraphicEl(t),S=w.shape,M=w.getTextContent(),I=w.getTextGuideLine(),O=(t=i.getItemModel(t),t.getModel("label")),T=O.get("position")||t.get(["emphasis","label","position"]),C=O.get("distanceToLabelLine"),A=O.get("alignTo"),k=Qn(O.get("edgeDistance"),c),D=O.get("bleedMargin"),L=(t=t.getModel("labelLine"),Qn(t.get("length"),c)),P=Qn(t.get("length2"),c);if(Math.abs(S.endAngle-S.startAngle)=e.r0},Mw.type="pie";var Iw=Mw;function Ow(t,e,n){e=Object(l.t)(e)?{coordDimensions:e}:Object(l.m)({encodeDefine:t.getEncode()},e);var i=t.getSource();e=c_(i,e).dimensions,e=new u_(e,t);return e.initData(i,n),e}function Tw(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}Tw.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},Tw.prototype.containName=function(t){return 0<=this._getRawData().indexOfName(t)},Tw.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},Tw.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)};var Cw,Aw=Tw;function kw(){return null!==Cw&&Cw.apply(this,arguments)||this}a(kw,Cw=mp),kw.prototype.init=function(t){Cw.prototype.init.apply(this,arguments),this.legendVisualProvider=new Aw(l.c(this.getData,this),l.c(this.getRawData,this)),this._defaultLabelLine(t)},kw.prototype.mergeOption=function(){Cw.prototype.mergeOption.apply(this,arguments)},kw.prototype.getInitialData=function(){return Ow(this,{coordDimensions:["value"],encodeDefaulter:l.h(Su,this)})},kw.prototype.getDataParams=function(t){var e=this.getData(),n=Cw.prototype.getDataParams.call(this,t),i=[];return e.each(e.mapDimension("value"),(function(t){i.push(t)})),n.percent=function(t,e,n){if(!t[e])return 0;var i=l.N(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===i)return 0;for(var o=Math.pow(10,n),r=(n=l.H(t,(function(t){return(isNaN(t)?0:t)/i*o*100})),100*o),a=l.H(n,(function(t){return Math.floor(t)})),s=l.N(a,(function(t,e){return t+e}),0),u=l.H(n,(function(t,e){return t-a[e]}));sc&&(c=u[p],h=p);++a[h],u[h]=0,++s}return a[e]/o}(i,t,e.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},kw.prototype._defaultLabelLine=function(t){xi(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},kw.type="series.pie",kw.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"};var Dw,Lw=kw;function Pw(){var t=null!==Dw&&Dw.apply(this,arguments)||this;return t.type=Pw.type,t.hasSymbolVisual=!0,t}a(Pw,Dw=mp),Pw.prototype.getInitialData=function(t,e){return v_(null,this,{useEncodeDefaulter:!0})},Pw.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},Pw.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},Pw.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},Pw.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},Pw.type="series.scatter",Pw.dependencies=["grid","polar","geo","singleAxis","calendar"],Pw.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}};var jw,Rw=Pw,Nw=function(){},Ew=(a(zw,jw=br),zw.prototype.getDefaultShape=function(){return new Nw},zw.prototype.reset=function(){this.notClear=!1,this._off=0},zw.prototype.buildPath=function(t,e){var n,i=e.points,o=e.size,r=this.symbolProxy,a=r.shape,s=(e=t.getContext?t.getContext():t,e&&o[0]<4),l=this.softClipShape;if(s)this._ctx=e;else{for(this._ctx=null,n=this._off;ne[1]&&(e[1]=t[1])},aS.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},aS.prototype.getExtent=function(){return this._extent.slice()},aS.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},aS.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},aS.prototype.isBlank=function(){return this._isBlank},aS.prototype.setBlank=function(t){this._isBlank=t},Qi=aS,Zi(Qi);var sS=Qi;function lS(t){return"interval"===t.type||"log"===t.type}function uS(t,e,n,i){var o={},r=t[1]-t[0];r=o.interval=li(r/e,!0),null!=n&&ri[1]&&(i[0]=i[1]),o}function cS(t){var e=Math.pow(10,si(t));t/=e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,$n(t*e)}function hS(t){return ti(t)+2}function pS(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function dS(t,e){return t>=e[0]&&t<=e[1]}function fS(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function gS(t,e){return t*(e[1]-e[0])+e[0]}a(mS,yS=sS),mS.prototype.parse=function(t){return Object(l.C)(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},mS.prototype.contain=function(t){return dS(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},mS.prototype.normalize=function(t){return fS(t=this._getTickNumber(this.parse(t)),this._extent)},mS.prototype.scale=function(t){return t=Math.round(gS(t,this._extent)),this.getRawOrdinalNumber(t)},mS.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},mS.prototype.getMinorTicks=function(t){},mS.prototype.setSortInfo=function(t){if(null==t)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,r=this._ordinalMeta.categories.length,a=Math.min(r,e.length);o=t},mS.prototype.getOrdinalMeta=function(){return this._ordinalMeta},mS.prototype.calcNiceTicks=function(){},mS.prototype.calcNiceExtent=function(){},mS.type="ordinal";var yS;n=mS;function mS(t){t=yS.call(this,t)||this,t.type="ordinal";var e=(e=t.getSetting("ordinalMeta"))||new nS({});return Object(l.t)(e)&&(e=new nS({categories:Object(l.H)(e,(function(t){return Object(l.A)(t)?t.value:t}))})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}sS.registerClass(n);var vS,xS=n,_S=$n;a(bS,vS=sS),bS.prototype.parse=function(t){return t},bS.prototype.contain=function(t){return dS(t,this._extent)},bS.prototype.normalize=function(t){return fS(t,this._extent)},bS.prototype.scale=function(t){return gS(t,this._extent)},bS.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},bS.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},bS.prototype.getInterval=function(){return this._interval},bS.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=hS(t)},bS.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,r=[];if(!e)return r;n[0]s&&(t?r.push({value:_S(s+e,o)}):r.push({value:n[1]})),r},bS.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),o=1;oi[0]&&c=i[0]&&m<=i[1]&&c++)}if(d=(i[1]-i[0])/e,1.5*d=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return 0n&&(this._approxInterval=n),i=IS.length,t=Math.min(function(t,e,n,i){for(;n>>1;t[o][1]u[1],h(n[0].coord,u[0])&&(t?n[0].coord=u[0]:n.shift()),t&&h(u[0],n[0].coord)&&n.unshift({coord:u[0]}),h(u[1],i.coord)&&(t?i.coord=u[1]:n.pop()),t&&h(i.coord,u[1])&&n.push({coord:u[1]})),c},yM.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");t=this.scale.getMinorTicks(t=0e[1]&&e.reverse(),e},xM.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},xM.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var _M=xM;function bM(t,e,n){n=n||{};t=t.coordinateSystem;var i=e.axis,o={},r=i.getAxesOnZeroOf()[0],a=i.position,s=r?"onZero":a,u=(i=i.dim,t=t.getRect(),t=[t.x,t.x+t.width,t.y,t.y+t.height],{left:0,right:1,top:0,bottom:1,onZero:2}),c=e.get("offset")||0,h=(c="x"===i?[t[2]-c,t[3]+c]:[t[0]-c,t[1]+c],r&&(h=r.toGlobalCoord(r.dataToCoord(0)),c[u.onZero]=Math.max(Math.min(h,c[1]),c[0])),o.position=["y"===i?c[u[s]]:t[0],"x"===i?c[u[s]]:t[3]],o.rotation=Math.PI/2*("x"===i?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],o.labelOffset=r?c[u[a]]-c[u.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),l.O(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection),e.get(["axisLabel","rotate"]));return o.labelRotate="top"===s?-h:h,o.z2=1,o}function wM(t){return"cartesian2d"===t.get("coordinateSystem")}function SM(t){var e={xAxisModel:null,yAxisModel:null};return l.k(e,(function(n,i){var o=i.replace(/Model$/,"");o=t.getReferringComponents(o,ji).models[0];e[i]=o})),e}var MM=Math.log;function IM(t,e,n){var i=SS.prototype,o=i.getTicks.call(n),r=i.getTicks.call(n,!0),a=o.length-1,s=(n=i.getInterval.call(n),e=YS(t,e),e.extent),l=e.fixMin,u=(e=e.fixMax,"log"===t.type&&(u=MM(t.base),s=[MM(s[0])/u,MM(s[1])/u]),t.setExtent(s[0],s[1]),t.calcNiceExtent({splitNumber:a,fixMin:l,fixMax:e}),i.getExtent.call(t)),c=(l&&(s[0]=u[0]),e&&(s[1]=u[1]),i.getInterval.call(t)),h=s[0],p=s[1];if(l&&e)c=(p-h)/a;else if(l)for(p=s[0]+c*a;ps[0]&&isFinite(h)&&isFinite(s[0]);)c=cS(c),h=s[1]-c*a;else u=(c=ah[1]?-1:1,r=["start"===p?h[0]-r*c:"end"===p?h[1]+r*c:(h[0]+h[1])/2,EM(p)?t.labelOffset+u*c:0],null!=(c=e.get("nameRotate"))&&(c=c*DM/180),EM(p)?a=LM.innerTextLayout(t.rotation,null!=c?c:t.rotation,u):(a=function(t,e,n,i){var o;n=ii(n-t),t=i[0]>i[1],i="start"===e&&!t||"start"!==e&&t;return e=oi(n-DM/2)?(o=i?"bottom":"top","center"):oi(n-1.5*DM)?(o=i?"top":"bottom","center"):(o="middle",n<1.5*DM&&DM/2u[1]&&u.reverse(),(s=null==s||s>u[1]?u[1]:s)>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);s+=o,l+=r,i.push([(o=s)/n,(r=l)/n])}return i}function VO(t,e){return t=function(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale,n=(null==e&&(e=1024),t.features);return l.k(n,(function(t){var n=t.geometry,i=n.encodeOffsets,o=n.coordinates;if(i)switch(n.type){case"LineString":n.coordinates=BO(o,i,e);break;case"Polygon":case"MultiLineString":zO(o,i,e);break;case"MultiPolygon":l.k(o,(function(t,n){return zO(t,i[n],e)}))}})),t.UTF8Encoding=!1,t}(t),l.H(l.n(t.features,(function(t){return t.geometry&&t.properties&&0e.x)||(y-=Math.PI)),f=m?"left":"right",e=(g=(u=s.getModel("label")).get("rotate"))*(Math.PI/180),(m=r.getTextContent())&&(r.setTextConfig({position:u.get("position")||f,rotation:null==g?-y:e,origin:"center"}),m.setStyle("verticalAlign","middle"))),s.get(["emphasis","focus"])),u="ancestor"===r?a.getAncestorsIndices():"descendant"===r?a.getDescendantIndices():null,u&&(oa(n).focus=u),o),g=a,y=c,m=(e=n,p),v=(s=h,r=d,u=i,o=g.getModel(),c=f.get("edgeShape"),p=f.get("layout"),h=f.getOrient(),d=f.get(["lineStyle","curveness"]),i=f.get("edgeForkPosition"),o.getModel("lineStyle").getLineStyle()),x=e.__edge;if("curve"===c)g.parentNode&&g.parentNode!==y&&cs(x=x||(e.__edge=new zd({shape:sC(p,h,d,m,m)})),{shape:sC(p,h,d,s,r)},f);else if("polyline"===c&&"orthogonal"===p&&g!==y&&g.children&&0!==g.children.length&&!0===g.isExpand){for(var _=g.children,b=[],w=0;w<_.length;w++){var S=_[w].getLayout();b.push([S.x,S.y])}cs(x=x||(e.__edge=new JT({shape:{parentPoint:[r.x,r.y],childPoints:[[r.x,r.y]],orient:h,forkPosition:i}})),{shape:{parentPoint:[r.x,r.y],childPoints:b}},f)}x&&(x.useStyle(l.i({strokeNoScale:!0,fill:null},v)),ns(x,o,"lineStyle"),Na(x),u.add(x)),n.__edge&&(n.onHoverStateChange=function(e){var i;"blur"===e||(i=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex))&&i.hoverState===ca||Pa(n.__edge,e)})}function oC(t,e,n,i,o){var r,a,s=rC(e.tree.root,t),l=s.source;s=s.sourceLayout,t=e.getItemGraphicEl(t.dataIndex);t&&(e=e.getItemGraphicEl(l.dataIndex).__edge,r=t.__edge||(!1===l.isExpand||1===l.children.length?e:void 0),t=i.get("edgeShape"),l=i.get("layout"),e=i.get("orient"),a=i.get(["lineStyle","curveness"]),r&&("curve"===t?ds(r,{shape:sC(l,e,a,s,s),style:{opacity:0}},i,{cb:function(){n.remove(r)},removeOpt:o}):"polyline"===t&&"orthogonal"===i.get("layout")&&ds(r,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){n.remove(r)},removeOpt:o})))}function rC(t,e){for(var n,i=e.parentNode!==t&&e.parentNode||e;null==(n=i.getLayout());)i=i.parentNode!==t&&i.parentNode||i;return{source:i,sourceLayout:n}}function aC(t,e,n,i,o){var r=t.tree.getNodeByDataIndex(e),a=rC(t.tree.root,r).sourceLayout,s={duration:o.get("animationDurationUpdate"),easing:o.get("animationEasingUpdate")};ds(n,{x:a.x+1,y:a.y+1},o,{cb:function(){i.remove(n),t.setItemGraphicEl(e,null)},removeOpt:s}),n.fadeOut(null,{fadeLabel:!0,animation:s}),r.children.forEach((function(e){oC(e,t,i,o,s)})),oC(r,t,i,o,s)}function sC(t,e,n,i,o){var r,a,s,l,u,c,h,p,d,f,g;return"radial"===t?(u=i.rawX,c=i.rawY,h=o.rawX,p=o.rawY,t=UT(u,c),d=UT(u,c+(p-c)*n),f=UT(h,p+(c-p)*n),g=UT(h,p),{x1:t.x||0,y1:t.y||0,x2:g.x||0,y2:g.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:f.x||0,cpy2:f.y||0}):(u=i.x,c=i.y,h=o.x,p=o.y,"LR"!==e&&"RL"!==e||(r=u+(h-u)*n,a=c,s=h+(u-h)*n,l=p),"TB"!==e&&"BT"!==e||(r=u,a=c+(p-c)*n,s=h,l=p+(c-p)*n),{x1:u,y1:c,x2:h,y2:p,cpx1:r,cpy1:a,cpx2:s,cpy2:l})}a(eC,QT=Uf),eC.prototype.init=function(t,e){this._controller=new UI(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},eC.prototype.render=function(t,e,n){var i=t.getData(),o=t.layoutInfo,r=this._mainGroup,a=("radial"===t.get("layout")?(r.x=o.x+o.width/2,r.y=o.y+o.height/2):(r.x=o.x,r.y=o.y),this._updateViewCoordSys(t),this._updateController(t,e,n),this._data);i.diff(a).add((function(e){nC(i,e)&&iC(i,e,null,r,t)})).update((function(e,n){var o=a.getItemGraphicEl(n);nC(i,e)?iC(i,e,o,r,t):o&&aC(a,n,o,r,t)})).remove((function(e){var n=a.getItemGraphicEl(e);n&&aC(a,e,n,r,t)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&i.eachItemGraphicEl((function(e,i){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:i})}))})),this._data=i},eC.prototype._updateViewCoordSys=function(t){var e=t.getData(),n=[],i=(e.each((function(t){t=e.getItemLayout(t),!t||isNaN(t.x)||isNaN(t.y)||n.push([+t.x,+t.y])})),[]),o=[],r=(Lo(n,i,o),this._min),a=this._max;o[0]-i[0]==0&&(i[0]=r?r[0]:i[0]-1,o[0]=a?a[0]:o[0]+1),o[1]-i[1]==0&&(i[1]=r?r[1]:i[1]-1,o[1]=a?a[1]:o[1]+1),r=t.coordinateSystem=new MT;r.zoomLimit=t.get("scaleLimit"),r.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[1]),r.setCenter(t.get("center")),r.setZoom(t.get("zoom")),this.group.attr({x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY}),this._min=i,this._max=o},eC.prototype._updateController=function(t,e,n){var i=this,o=this._controller,r=this._controllerHost,a=this.group;o.setPointerChecker((function(e,i,o){var r=a.getBoundingRect();return r.applyTransform(a.transform),r.contain(i,o)&&!QI(e,n,t)})),o.enable(t.get("roam")),r.zoomLimit=t.get("scaleLimit"),r.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",(function(e){XI(r,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){ZI(r,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(t),n.updateLabelLayout()}))},eC.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},eC.prototype._getNodeGlobalScale=function(t){if(t=t.coordinateSystem,"view"!==t.type)return 1;var e=this._nodeScaleRatio,n=t.scaleX||1;return((t.getZoom()-1)*e+1)/n},eC.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},eC.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},eC.type="tree";var lC=eC,uC=ki();function cC(t,e){var n;return uC(n=this).mainData===n?gC((n=Object(l.m)({},uC(this).datas))[this.dataType]=e,n,t):yC(e,this.dataType,uC(this).mainData,t),e}function hC(t,e){return t.struct&&t.struct.update(),e}function pC(t,e){return Object(l.k)(uC(e).datas,(function(n,i){n!==e&&yC(n.cloneShallow(),i,e,t)})),e}function dC(t){var e=uC(this).mainData;return null==t||null==e?e:uC(e).datas[t]}function fC(){var t=uC(this).mainData;return null==t?[{data:t}]:Object(l.H)(Object(l.F)(uC(t).datas),(function(e){return{type:e,data:uC(t).datas[e]}}))}function gC(t,e,n){uC(t).datas={},Object(l.k)(e,(function(e,i){yC(e,i,t,n)}))}function yC(t,e,n,i){uC(n).datas[e]=t,uC(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=dC,t.getLinkedDataAll=fC}var mC=function(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,gC(e,n,t),Object(l.k)(n,(function(n){Object(l.k)(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,Object(l.h)(cC,t))}))})),e.wrapMethod("cloneShallow",Object(l.h)(pC,t)),Object(l.k)(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,Object(l.h)(hC,t))})),Object(l.b)(n[e.dataType]===e)},vC=(xC.prototype.isRemoved=function(){return this.dataIndex<0},xC.prototype.eachNode=function(t,e,n){l.w(t)&&(n=e,e=t,t=null);var i,o=(t=l.C(t=t||{})?{order:t}:t).order||"preorder",r=this[t.attr||"children"];"preorder"===o&&(i=e.call(n,this));for(var a=0;!i&&ae&&(e=i.height)}this.height=e+1},xC.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;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},CC.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},CC.prototype.setZoom=function(t){this.option.zoom=t},CC.prototype.setCenter=function(t){this.option.center=t},CC.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,o=i.root.children[0],r=i.getNodeByDataIndex(t),a=(i=r.getValue(),r.name);r&&r!==o;)a=r.parentNode.name+"."+a,r=r.parentNode;return Uh("nameValue",{name:a,value:i,noValue:isNaN(i)||null==i})},CC.prototype.getDataParams=function(t){var e=wC.prototype.getDataParams.apply(this,arguments);t=this.getData().tree.getNodeByDataIndex(t);return e.treeAncestors=TC(t,this),e},CC.type="series.tree",CC.layoutMode="box",CC.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500};var AC=CC;function kC(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var o=n.children;if(o.length)for(var r=o.length-1;0<=r;r--)i.push(o[r])}}function DC(t,e){t.eachSeriesByType("tree",(function(t){var n=function(t,e){return ql(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,n=e),i=(t.layoutInfo=n,t.get("layout")),o=0,r=0,a=null;a="radial"===i?(o=2*Math.PI,r=Math.min(n.height,n.width)/2,YT((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(o=n.width,r=n.height,YT());var s,l,u,c,h,p,d,f,g,y=(n=t.getData().tree.root).children[0];if(y){var m=n;m.hierNode={defaultAncestor:null,ancestor:m,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var v,x,_=[m];v=_.pop();)if(x=v.children,v.isExpand&&x.length)for(var b=x.length-1;0<=b;b--){var w=x[b];w.hierNode={defaultAncestor:null,ancestor:w,prelim:0,modifier:0,change:0,shift:0,i:b,thread:null},_.push(w)}for(var S,M=GT,I=a,O=[y],T=[];S=O.pop();)if(T.push(S),S.isExpand){var C=S.children;if(C.length)for(var A=0;Al.getLayout().x&&(l=t),t.depth>u.depth&&(u=t)})),n=s===l?1:a(s,l)/2,c=n-s.getLayout().x,f=d=p=h=0,"radial"===i?(h=o/(l.getLayout().x+n+c),p=r/(u.depth-1||1),kC(y,(function(t){d=(t.getLayout().x+c)*h,f=(t.depth-1)*p;var e=UT(d,f);t.setLayout({x:e.x,y:e.y,rawX:d,rawY:f},!0)}))):"RL"===(g=t.getOrient())||"LR"===g?(p=r/(l.getLayout().x+n+c),h=o/(u.depth-1||1),kC(y,(function(t){f=(t.getLayout().x+c)*p,d="LR"===g?(t.depth-1)*h:o-(t.depth-1)*h,t.setLayout({x:d,y:f},!0)}))):"TB"!==g&&"BT"!==g||(h=o/(l.getLayout().x+n+c),p=r/(u.depth-1||1),kC(y,(function(t){d=(t.getLayout().x+c)*h,f="TB"===g?(t.depth-1)*p:r-(t.depth-1)*p,t.setLayout({x:d,y:f},!0)})))}}))}function LC(t){t.eachSeriesByType("tree",(function(t){var e=t.getData();e.tree.eachNode((function(t){var n=t.getModel().getModel("itemStyle").getItemStyle();t=e.ensureUniqueItemVisual(t.dataIndex,"style");Object(l.m)(t,n)}))}))}var PC,jC=["treemapZoomToNode","treemapRender","treemapMove"];function RC(t){for(var e=0;e=i.length||e===i[e.depth])&&(n=AA(r,c,e,n,p,o),t(e,n,i,o))}))):(h=MA(c),n.fill=h)}}(e,{},t.getViewRoot().getAncestors(),t)}};function SA(t,e,n){var i=Object(l.m)({},e),o=n.designatedVisualItemStyle;return Object(l.k)(["color","colorAlpha","colorSaturation"],(function(n){o[n]=e[n];var r=t.get(n);(o[n]=null)!=r&&(i[n]=r)})),i}function MA(t){var e,n=OA(t,"color");if(n)return e=OA(t,"colorAlpha"),(t=OA(t,"colorSaturation"))&&(n=Object(te.f)(n,null,null,t)),e?Object(te.e)(n,e):n}function IA(t,e){return null!=e?Object(te.f)(e,null,null,t):null}function OA(t,e){if(t=t[e],null!=t&&"none"!==t)return t}function TA(t,e,n,i,o,r){if(r&&r.length){var a;r=CA(e,"color")||null!=o.color&&"none"!==o.color&&(CA(e,"colorAlpha")||CA(e,"colorSaturation"));if(r)return o=e.get("visualMin"),a=e.get("visualMax"),n=n.dataExtent.slice(),null!=o&&on[1]&&(n[1]=a),o=e.get("colorMappingBy"),"color"!==(a={type:r.name,dataExtent:n,visual:r.range}).type||"index"!==o&&"id"!==o?a.mappingMethod="linear":(a.mappingMethod="category",a.loop=!0),e=new xA(a),bA(e).drColorMappingBy=o,e}}function CA(t,e){return t=t.get(e),Object(l.t)(t)&&t.length?{name:e,range:t}:null}function AA(t,e,n,i,o,r){var a,s;e=Object(l.m)({},e);return o&&(i="index"===(s="color"===(a=o.type)&&bA(o).drColorMappingBy)?i:"id"===s?r.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension")),e[a]=o.mapValueToVisual(i)),e}var kA=Math.max,DA=Math.min,LA=l.O,PA=l.k,jA=["itemStyle","borderWidth"],RA=["itemStyle","gapWidth"],NA=["upperLabel","show"],EA=["upperLabel","height"],zA={seriesType:"treemap",reset:function(t,e,n,i){var o,r=n.getWidth(),a=n.getHeight(),s=t.option,u=(n=ql(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),s.size||[]),c=Qn(LA(n.width,u[0]),r),h=(u=Qn(LA(n.height,u[1]),a),i&&i.type),p=MC(i,["treemapZoomToNode","treemapRootToNode"],t),d=(i="treemapRender"===h||"treemapMove"===h?i.rootRect:null,t.getViewRoot()),f=IC(d);"treemapMove"!==h&&(h="treemapZoomToNode"===h?function(t,e,n,i,o){var r,a=(e||{}).node,s=[i,o];if(!a||a===n)return s;e=i*o;for(var l=e*t.option.zoomToNodeRatio;r=a.parentNode;){for(var u=0,c=r.children,h=0,p=c.length;ha[1]&&(a[1]=t)}))):a=[NaN,NaN],{sum:i,dataExtent:a}}(e,s,u);if(0===c.sum)return t.viewChildren=[];if(c.sum=function(t,e,n,i,o){if(!i)return n;for(var r=t.get("visibleMin"),a=o.length,s=a,l=a-1;0<=l;l--){var u=o["asc"===i?a-l-1:l].getValue();u/n*en[l[a]])&&(c=n[l[a]]);for(var h=0,p=t.length;h "+d)),c++)}var f;i=n.get("coordinateSystem"),"cartesian2d"===i||"polar"===i?f=v_(t,n):(i=(i=qu.get(i))&&i.dimensions||[],l.r(i,"value")<0&&i.concat(["value"]),i=c_(t,{coordDimensions:i,encodeDefine:n.getEncode()}).dimensions,(f=new u_(i,n)).initData(t)),i=new u_(["value"],n);return i.initData(u,s),o&&o(f,i),mC({mainData:f,struct:r,structAttr:"graph",datas:{node:f,edge:i},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r}function rD(){var t=null!==nD&&nD.apply(this,arguments)||this;return t.type=rD.type,t.hasSymbolVisual=!0,t}a(rD,nD=mp),rD.prototype.init=function(t){nD.prototype.init.apply(this,arguments);var e=this;function n(){return e._categoriesData}this.legendVisualProvider=new Aw(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},rD.prototype.mergeOption=function(t){nD.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},rD.prototype.mergeDefaultAndTheme=function(t){nD.prototype.mergeDefaultAndTheme.apply(this,arguments),xi(t,"edgeLabel",["show"])},rD.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],o=(t=t.data||t.nodes||[],this);if(t&&i)return $A(n=this)&&(n.__curvenessList=[],n.__edgeMap={},XA(n)),n=oD(t,i,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t){var e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var n=Xs.prototype.getModel;function i(t,e){return t=n.call(this,t,e),t.resolveParentPath=r,t}function r(t){var e;return!t||"label"!==t[0]&&"label"!==t[1]?t:(e=t.slice(),"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e)}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=r,t.getModel=i,t}))})),l.k(n.edges,(function(t){var e,n,i;e=t.node1,n=t.node2,i=this,t=t.dataIndex,$A(i)&&(e=JA(e,n,i),i=(n=i.__edgeMap)[ZA(e)],n[e]&&!i?n[e].isForward=!0:i&&n[e]&&(i.isForward=!0,n[e].isForward=!1),n[e]=n[e]||[],n[e].push(t))}),this),n.data},rD.prototype.getGraph=function(){return this.getData().graph},rD.prototype.getEdgeData=function(){return this.getGraph().edgeData},rD.prototype.getCategoriesData=function(){return this._categoriesData},rD.prototype.formatTooltip=function(t,e,n){var i,o,r;return"edge"===n?(o=this.getData(),n=this.getDataParams(t,n),r=o.graph.getEdgeByIndex(t),i=o.getName(r.node1.dataIndex),o=o.getName(r.node2.dataIndex),r=[],null!=i&&r.push(i),null!=o&&r.push(o),Uh("nameValue",{name:r.join(" > "),value:n.value,noValue:null==n.value})):op({series:this,dataIndex:t,multipleSeries:e})},rD.prototype._updateCategoriesData=function(){var t=l.H(this.option.categories||[],(function(t){return null!=t.value?t:l.m({value:0},t)})),e=new u_(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},rD.prototype.setZoom=function(t){this.option.zoom=t},rD.prototype.setCenter=function(t){this.option.center=t},rD.prototype.isAnimationEnabled=function(){return nD.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},rD.type="series.graph",rD.dependencies=["grid","polar","geo","singleAxis","calendar"],rD.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}};var aD,sD=rD,lD={type:"graphRoam",event:"graphRoam",update:"none"},uD=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0};function cD(t){return t=aD.call(this,t)||this,t.type="pointer",t}a(cD,aD=br),cD.prototype.getDefaultShape=function(){return new uD},cD.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,o=e.r,r=e.width,a=e.angle,s=e.x-n(a)*r*(o/3<=r?1:2),l=e.y-i(a)*r*(o/3<=r?1:2);a=e.angle-Math.PI/2;t.moveTo(s,l),t.lineTo(e.x+n(a)*r,e.y+i(a)*r),t.lineTo(e.x+n(e.angle)*o,e.y+i(e.angle)*o),t.lineTo(e.x-n(a)*r,e.y-i(a)*r),t.lineTo(s,l)};var hD=cD;function pD(t,e){var n=null==t?"":t+"";return e&&(Object(l.C)(e)?n=e.replace("{value}",n):Object(l.w)(e)&&(n=e(t))),n}var dD,fD=2*Math.PI;function gD(){var t=null!==dD&&dD.apply(this,arguments)||this;return t.type=gD.type,t}a(gD,dD=Uf),gD.prototype.render=function(t,e,n){this.group.removeAll();var i,o,r,a,s=t.get(["axisLine","lineStyle","color"]),l=(o=n,r=(i=t).get("center"),a=o.getWidth(),l=o.getHeight(),a=Math.min(a,l),{cx:Qn(r[0],o.getWidth()),cy:Qn(r[1],o.getHeight()),r:Qn(i.get("radius"),a/2)});this._renderMain(t,e,n,s,l),this._data=t.getData()},gD.prototype.dispose=function(){},gD.prototype._renderMain=function(t,e,n,i,o){for(var r=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap")?Eb:fd,h=u.get("show"),p=u.getModel("lineStyle"),d=p.get("width"),f=(l-s)%fD||l===s?(l-s)%fD:fD,g=s,y=0;h&&y=t&&(0===e?0:i[e-1][0])r&&(e[1-i]=e[i]+n.sign*r),e}function iL(t,e){return t=t[e]-t[1-e],{span:Math.abs(t),sign:0o*(1-l[0])?(n="jump",a=t-o*(1-l[2])):0<=(a=t-o*l[1])&&(a=t-o*(1-l[1]))<=0&&(a=0),(a*=e.axisExpandWidth/s)?nL(a,i,r,"all"):n="none"):(u=i[1]-i[0],(i=[sL(0,r[1]*t/u-u/2)])[1]=aL(r[1],i[0]+u),i[0]=i[1]-u),{axisExpandWindow:i,behavior:n}};var fL,gL=pL,yL={create:function(t,e){var n=[];return t.eachComponent("parallel",(function(i,o){var r=new gL(i,t,e);r.name="parallel_"+o,r.resize(i,e),(i.coordinateSystem=r).model=i,n.push(r)})),t.eachSeries((function(t){var e;"parallel"===t.get("coordinateSystem")&&(e=t.getReferringComponents("parallel",ji).models[0],t.coordinateSystem=e.coordinateSystem)})),n}};a(mL,fL=uu),mL.prototype.getAreaSelectStyle=function(){return qi([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},mL.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=l.d(t);if(e)for(var n=e.length-1;0<=n;n--)Jn(e[n])},mL.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=e.length;it.getWidth()||n<0||n>t.getHeight()}(t,e.offsetX,e.offsetY)){var i=t._zr,o=t._covers,r=BL(t,e,n);if(!t._dragging)for(var a=0;aw&&(w=I.depth),M.setLayout({depth:O?I.depth:_},!0),"vertical"===g?M.setLayout({dy:d},!0):M.setLayout({dx:d},!0);for(var T=0;Te);a++);a=Math.min(a-1,o-2)}r=(e-i[a])/(i[a+1]-i[a]);var s=n[a];n=n[a+1],r=(t.x=s[0]*(1-r)+r*n[0],t.y=s[1]*(1-r)+r*n[1],n[0]-s[0]),n=n[1]-s[1];t.rotation=-Math.atan2(n,r)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=e,t.ignore=!1}};var $j,Jj=Qj,tR=function(){this.polyline=!1,this.curveness=0,this.segs=[]},eR=(a(nR,$j=br),nR.prototype.reset=function(){this.notClear=!1,this._off=0},nR.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},nR.prototype.getDefaultShape=function(){return new tR},nR.prototype.buildPath=function(t,e){var n,i=e.segs,o=e.curveness;if(e.polyline)for(n=this._off;n ")})},dR.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},dR.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},dR.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},dR.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&0l[1]||Ou[1])continue;I=c.dataToPoint([I,O]),S=new Br({shape:{x:Math.floor(Math.round(I[0])-a/2),y:Math.floor(Math.round(I[1])-s/2),width:Math.ceil(a),height:Math.ceil(s)},style:M})}else{if(isNaN(p.get(b[1],w)))continue;S=new Br({z2:1,shape:c.dataToRect([p.get(b[0],w)]).contentShape,style:M})}O=p.getItemModel(w);var T=(p.hasItemOption&&(d=(I=O.getModel("emphasis")).getModel("itemStyle").getItemStyle(),f=O.getModel(["blur","itemStyle"]).getItemStyle(),g=O.getModel(["select","itemStyle"]).getItemStyle(),v=I.get("focus"),x=I.get("blurScope"),_=I.get("disabled"),y=bs(O)),t.getRawValue(w)),C="-";T&&null!=T[2]&&(C=T[2]+""),_s(S,y,{labelFetcher:t,labelDataIndex:w,defaultOpacity:M.opacity,defaultText:C}),S.ensureState("emphasis").style=d,S.ensureState("blur").style=f,S.ensureState("select").style=g,$a(S,v,x,_),(S.incremental=o)&&(S.states.emphasis.hoverLayer=!0),h.add(S),p.setItemGraphicEl(w,S),this._progressiveEls&&this._progressiveEls.push(S)}},bR.prototype._renderOnGeo=function(t,e,n,i){var o,r,a,s,u,c,h,p=n.targetVisuals.inRange,d=n.targetVisuals.outOfRange,f=e.getData(),g=this._hmLayer||this._hmLayer||new xR,y=(e=(g.blurSize=e.get("blurSize"),g.pointSize=e.get("pointSize"),g.minOpacity=e.get("minOpacity"),g.maxOpacity=e.get("maxOpacity"),t.getViewRect().clone()),t.getRoamTransform()),m=(e.applyTransform(y),Math.max(e.x,0)),v=Math.max(e.y,0),x=(y=Math.min(e.width+e.x,i.getWidth()),e=Math.min(e.height+e.y,i.getHeight()),i=y-m,y=e-v,e=[f.mapDimension("lng"),f.mapDimension("lat"),f.mapDimension("value")],f=f.mapArray(e,(function(e,n,i){return e=t.dataToPoint([e,n]),e[0]-=m,e[1]-=v,e.push(i),e})),e=n.getExtent(),"visualMap.continuous"===n.type?(h=n.option.range,x=e[1]-e[0],h=[(h[0]-e[0])/x,(h[1]-e[0])/x],function(t){return t>=h[0]&&t<=h[1]}):(o=e,r=n.getPieceList(),a=n.option.selected,s=o[1]-o[0],u=(r=l.H(r,(function(t){return{interval:[(t.interval[0]-o[0])/s,(t.interval[1]-o[0])/s]}}))).length,c=0,function(t){for(var e,n=c;nMath.PI/2?"right":"left"):i&&"center"!==i?"left"===i?(r=o.r0+g,a>Math.PI/2&&(i="right")):"right"===i&&(r=o.r-g,a>Math.PI/2&&(i="left")):(r=(o.r+o.r0)/2,i="center"),y.style.align=i,y.style.verticalAlign=f(d,"verticalAlign")||"middle",y.x=r*s+o.cx,y.y=r*u+o.cy,m=f(d,"rotate"),g=0;"radial"===m?(g=-a)<-Math.PI/2&&(g+=Math.PI):"tangential"===m?(g=Math.PI/2-a)>Math.PI/2?g-=Math.PI:g<-Math.PI/2&&(g+=Math.PI):l.z(m)&&(g=m*Math.PI/180),y.rotation=g})),h.dirtyStyle()};var lN,uN=sN,cN="sunburstRootToNode",hN="sunburstHighlight",pN="sunburstUnhighlight";function dN(t){t.registerAction({type:cN,update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,n){var i,o=MC(t,[cN],e);o&&((i=e.getViewRoot())&&(t.direction=OC(i,o.node)?"rollUp":"drillDown"),e.resetViewRoot(o.node))}))})),t.registerAction({type:hN,update:"none"},(function(t,e,n){t=Object(l.m)({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e){e=MC(t,[hN],e),e&&(t.dataIndex=e.node.dataIndex)})),n.dispatchAction(Object(l.m)(t,{type:"highlight"}))})),t.registerAction({type:pN,update:"updateView"},(function(t,e,n){t=Object(l.m)({},t),n.dispatchAction(Object(l.m)(t,{type:"downplay"}))}))}function fN(){var t=null!==lN&&lN.apply(this,arguments)||this;return t.type=fN.type,t}a(fN,lN=Uf),fN.prototype.render=function(t,e,n,i){var o,r,a,s=this,u=(this.seriesModel=t,this.api=n,this.ecModel=e,t.getData()),c=u.tree.root,h=t.getViewRoot(),p=this.group,d=t.get("renderLabelForZeroData"),f=[],g=(h.eachNode((function(t){f.push(t)})),this._oldChildren||[]);function y(t){return t.getId()}function m(i,a){if(i=null==i?null:o[i],a=null==a?null:r[a],(i=d||!i||i.getValue()?i:null)!==c&&a!==c)if(a&&a.piece){if(i)return a.piece.updateData(!1,i,t,e,n),void u.setItemGraphicEl(i.dataIndex,a.piece);var s=a;s&&s.piece&&(p.remove(s.piece),s.piece=null)}else i&&(a=new uN(i,t,e,n),p.add(a),u.setItemGraphicEl(i.dataIndex,a))}r=g,0===(o=f).length&&0===r.length||new Nx(r,o,y,y).add(m).update(m).remove(l.h(m,null)).execute(),g=c,0<(a=h).depth?(s.virtualPiece?s.virtualPiece.updateData(!1,g,t,e,n):(s.virtualPiece=new uN(g,t,e,n),p.add(s.virtualPiece)),a.piece.off("click"),s.virtualPiece.on("click",(function(t){s._rootToNode(a.parentNode)}))):s.virtualPiece&&(p.remove(s.virtualPiece),s.virtualPiece=null),this._initEvents(),this._oldChildren=f},fN.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1;t.seriesModel.getViewRoot().eachNode((function(i){var o;!n&&i.piece&&i.piece===e.target&&("rootToNode"===(o=i.getModel().get("nodeClick"))?t._rootToNode(i):"link"===o&&(i=(o=i.getModel()).get("link"))&&Gl(i,o.get("target",!0)||"_blank"),n=!0)}))}))},fN.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:cN,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},fN.prototype.containPoint=function(t,e){var n;e=e.getData().getItemLayout(0);if(e)return n=t[0]-e.cx,t=t[1]-e.cy,(n=Math.sqrt(n*n+t*t))<=e.r&&n>=e.r0},fN.type="sunburst";var gN,yN=fN;function mN(){var t=null!==gN&&gN.apply(this,arguments)||this;return t.type=mN.type,t.ignoreStyleOnData=!0,t}a(mN,gN=mp),mN.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data},i=(function t(e){var n=0;l.k(e.children,(function(e){t(e),e=e.value,l.t(e)&&(e=e[0]),n+=e}));var i=e.value;l.t(i)&&(i=i[0]),null!=i&&!isNaN(i)||(i=n),i<0&&(i=0),l.t(e.value)?e.value[0]=i:e.value=i}(n),this._levelModels=l.H(t.levels||[],(function(t){return new Xs(t,this,e)}),this)),o=SC.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){return e=o.getNodeByDataIndex(e),e=i[e.depth],e&&(t.parentModel=e),t}))}));return o.data},mN.prototype.optionUpdated=function(){this.resetViewRoot()},mN.prototype.getDataParams=function(t){var e=gN.prototype.getDataParams.apply(this,arguments);t=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=TC(t,this),e},mN.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},mN.prototype.getViewRoot=function(){return this._viewRoot},mN.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},mN.prototype.enableAriaDecal=function(){NC(this)},mN.type="series.sunburst",mN.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"};var vN=mN,xN=Math.PI/180;function _N(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),i=t.get("radius"),o=(l.t(i)||(i=[0,i]),l.t(e)||(e=[e,e]),n.getWidth()),r=n.getHeight(),a=Math.min(o,r),s=Qn(e[0],o),u=Qn(e[1],r),c=Qn(i[0],a/2),h=(o=Qn(i[1],a/2),e=-t.get("startAngle")*xN,t.get("minAngle")*xN),p=t.getData().tree.root,d=(r=t.getViewRoot(),r.depth),f=(i=t.get("sort"),null!=i&&function t(e,n){var i=e.children||[];e.children=bN(i,n),i.length&&l.k(e.children,(function(e){t(e,n)}))}(r,i),0),g=(l.k(r.children,(function(t){isNaN(t.getValue())||f++})),r.getValue()),y=Math.PI/(g||f)*2,m=0i[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var o=e.dataToRadius(i[0]),r=(i=n.dataToAngle(i[1]),t.coordToPoint([o,i]));return r.push(o,i*Math.PI/180),r},size:l.c(LN,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function pE(t){return t instanceof br}function dE(t){return t instanceof So}function fE(){var t=null!==nE&&nE.apply(this,arguments)||this;return t.type=fE.type,t}a(fE,nE=Uf),fE.prototype.render=function(t,e,n,i){this._progressiveEls=null;var o=this._data,r=t.getData(),a=this.group,s=_E(t,r,e,n);o||a.removeAll(),r.diff(o).add((function(e){bE(n,null,e,s(e,i),t,a,r)})).remove((function(e){e=o.getItemGraphicEl(e),YN(e,ON(e).option,t)})).update((function(e,l){l=o.getItemGraphicEl(l),bE(n,l,e,s(e,i),t,a,r)})).execute(),e=t.get("clip",!0)?tb(t.coordinateSystem,!1,t):null;e?a.setClipPath(e):a.removeClipPath(),this._data=r},fE.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},fE.prototype.incrementalRender=function(t,e,n,i,o){var r=e.getData(),a=_E(e,r,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;un||!!e&&(r=HM(t).seriesDataCount,e=o.getExtent(),Math.abs(e[0]-e[1])/r>n)):!0===i)},jE.prototype.makeElOption=function(t,e,n,i,o){},jE.prototype.createPointerEl=function(t,e,n,o){var r=e.pointer;r&&(r=DE(t).pointerEl=new i[r.type](LE(e.pointer)),t.add(r))},jE.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=DE(t).labelEl=new ia(LE(e.label)),t.add(e),NE(e,i))},jE.prototype.updatePointerEl=function(t,e,n){t=DE(t).pointerEl,t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},jE.prototype.updateLabelEl=function(t,e,n,i){t=DE(t).labelEl,t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),NE(t,i))},jE.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),o=this._handle,r=n.getModel("handle"),a=n.get("status");if(!r.get("show")||!a||"hide"===a)return o&&i.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=Lf(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Z(t.event)},onmousedown:PE(this._onHandleDragMove,this,0,0),drift:PE(this._onHandleDragMove,this),ondragend:PE(this._onHandleDragEnd,this)}),i.add(o)),zE(o,n,!1),o.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),a=r.get("size"),l.t(a)||(a=[a,a]),o.scaleX=a[0]/2,o.scaleY=a[1]/2,Qf(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},jE.prototype._moveHandleToValue=function(t,e){RE(this._axisPointerModel,!e&&this._moveAnimation,this._handle,EE(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},jE.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(EE(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(EE(t)),DE(n).lastProp=null,this._doDispatchAxisPointer())},jE.prototype._doDispatchAxisPointer=function(){var t,e;this._handle&&(t=this._payloadInfo,e=this._axisModel,this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]}))},jE.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},jE.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;t=t.getZr();var e=this._group,n=this._handle;t&&e&&(this._lastGraphicKey=null,e&&t.remove(e),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),$f(this,"_doDispatchAxisPointer")},jE.prototype.doClear=function(){},jE.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}};var BE;zs=jE;function VE(t){var e,n=t.get("type");t=t.getModel(n+"Style");return"line"===n?(e=t.getLineStyle()).fill=null:"shadow"===n&&((e=t.getAreaStyle()).stroke=null),e}function FE(t,e,n,i,o){var r=HE(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=(n=n.getModel("label"),jl(n.get("padding")||0)),s=n.getFont(),l=In(r,s),u=o.position,c=l.width+a[1]+a[3],h=(l=l.height+a[0]+a[2],o.align);"right"===h&&(u[0]-=c),"center"===h&&(u[0]-=c/2),h=o.verticalAlign,"bottom"===h&&(u[1]-=l),"middle"===h&&(u[1]-=l/2),o=u,h=c,c=l,i=(l=i).getWidth(),l=l.getHeight(),o[0]=Math.min(o[0]+h,i)-h,o[1]=Math.min(o[1]+c,l)-c,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0),i=n.get("backgroundColor");i&&"auto"!==i||(i=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:ws(n,{text:r,font:s,fill:n.getTextColor(),padding:a,backgroundColor:i}),z2:10}}function HE(t,e,n,i,o){t=e.scale.parse(t);var r,a=e.scale.getLabel({value:t},{precision:o.precision});o=o.formatter;return o&&(r={value:qS(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},l.k(i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex);t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&r.seriesData.push(e)})),l.C(o)?a=o.replace("{value}",a):l.w(o)&&(a=o(r))),a}function GE(t,e,n){var i=Ge();return Ze(i,i,n.rotation),Xe(i,i,n.position),Of([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function WE(t,e,n,i,o,r){var a=BM.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),FE(e,i,o,r,{position:GE(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function YE(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function UE(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function XE(t,e,n,i,o,r){return{cx:t,cy:e,r0:n,r:i,startAngle:o,endAngle:r,clockwise:!0}}function ZE(){return null!==BE&&BE.apply(this,arguments)||this}function qE(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}a(ZE,BE=zs),ZE.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=a.grid,l=i.get("type"),u=qE(s,a).getOtherAxis(a).getGlobalExtent(),c=a.toGlobalCoord(a.dataToCoord(e,!0));l&&"none"!==l&&(r=VE(i),(l=KE[l](a,c,u)).style=r,t.graphicKey=l.type,t.pointer=l),a=bM(s.model,n);WE(e,t,a,n,i,o)},ZE.prototype.getHandleTransform=function(t,e,n){var i=bM(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]),n=GE(e.axis,t,i);return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},ZE.prototype.updateHandleTransform=function(t,e,n,i){n=n.axis;var o=n.grid,r=n.getGlobalExtent(!0),a=(o=qE(o,n).getOtherAxis(n).getGlobalExtent(),n="x"===n.dim?0:1,[t.x,t.y]);a[n]+=e[n],a[n]=Math.min(r[1],a[n]),a[n]=Math.max(r[0],a[n]),e=(o[1]+o[0])/2,r=[e,e];return r[n]=a[n],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:r,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}};var KE={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:YE([e,n[0]],[e,n[1]],QE(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:UE([e-i/2,n[0]],[i,o],QE(t))}}};function QE(t){return"x"===t.dim?0:1}var $E,JE=ZE;function tz(){var t=null!==$E&&$E.apply(this,arguments)||this;return t.type=tz.type,t}a(tz,$E=uu),tz.type="axisPointer",tz.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}};var ez,nz=tz,iz=ki(),oz=l.k;function rz(t,e,n){var i,o,r;function a(t,e){o.on(t,(function(t){n=r;var n,i,a={dispatchAction:s,pendings:i={showTip:[],hideTip:[]}};function s(t){var e=i[t.type];e?e.push(t):(t.dispatchAction=s,n.dispatchAction(t))}oz(iz(o).records,(function(n){n&&e(n,t,a.dispatchAction)}));var l,u=a.pendings,c=r,h=u.showTip.length,p=u.hideTip.length;h?l=u.showTip[h-1]:p&&(l=u.hideTip[p-1]),l&&(l.dispatchAction=null,c.dispatchAction(l))}))}s.a.node||(i=e.getZr(),iz(i).records||(iz(i).records={}),r=e,iz(o=i).initialized||(iz(o).initialized=!0,a("click",l.h(sz,"click")),a("mousemove",l.h(sz,"mousemove")),a("globalout",az)),(iz(i).records[t]||(iz(i).records[t]={})).handler=n)}function az(t,e,n){t.handler("leave",null,n)}function sz(t,e,n,i){e.handler(t,n,i)}function lz(t,e){s.a.node||(e=e.getZr(),(iz(e).records||{})[t]&&(iz(e).records[t]=null))}function uz(){var t=null!==ez&&ez.apply(this,arguments)||this;return t.type=uz.type,t}a(uz,ez=xp),uz.prototype.render=function(t,e,n){e=e.getComponent("tooltip");var i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";rz("axisPointer",n,(function(t,e,n){"none"!==i&&("leave"===t||0<=i.indexOf(t))&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},uz.prototype.remove=function(t,e){lz("axisPointer",e)},uz.prototype.dispose=function(t,e){lz("axisPointer",e)},uz.type="axisPointer";var cz=uz;function hz(t,e){var n=[],i=t.seriesIndex;if(null==i||!(a=e.getSeriesByIndex(i)))return{point:[]};var o=a.getData();e=Ai(o,t);if(null==e||e<0||l.t(e))return{point:[]};i=o.getItemGraphicEl(e);var r,a,s=a.coordinateSystem;return a.getTooltipPosition?n=a.getTooltipPosition(e)||[]:s&&s.dataToPoint?n=t.isStacked?(a=s.getBaseAxis(),t=s.getOtherAxis(a).dim,a=a.dim,t="x"===t||"radius"===t?1:0,a=o.mapDimension(a),(r=[])[t]=o.get(a,e),r[1-t]=o.get(o.getCalculationInfo("stackResultDimension"),e),s.dataToPoint(r)||[]):s.dataToPoint(o.getValues(l.H(s.dimensions,(function(t){return o.mapDimension(t)})),e))||[]:i&&((a=i.getBoundingRect().clone()).applyTransform(i.transform),n=[a.x+a.width/2,a.y+a.height/2]),{point:n,el:i}}var pz,dz=ki();function fz(t,e,n){var i,o,r,a,s,u,c,h,p,d,f,g,y,m,v=t.currTrigger,x=[t.x,t.y],_=t,b=t.dispatchAction||Object(l.c)(n.dispatchAction,n),w=e.getComponent("axisPointer").coordSysAxesInfo;if(w)return xz(x)&&(x=hz({seriesIndex:_.seriesIndex,dataIndex:_.dataIndex},e).point),i=xz(x),o=_.axesInfo,r=w.axesInfo,a="leave"===v||xz(x),s={},u={},e={list:[],map:{}},c={showPointer:Object(l.h)(yz,u),showTooltip:Object(l.h)(mz,e)},Object(l.k)(w.coordSysMap,(function(t,e){var n=i||t.containPoint(x);Object(l.k)(w.coordSysAxesInfo[e],(function(t,e){var r=t.axis,l=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(o,t);a||!n||o&&!l||null!=(l=null!=(l=l&&l.value)||i?l:r.pointToData(x))&&gz(t,l,c,!1,s)}))})),h={},Object(l.k)(r,(function(t,e){var n=t.linkGroup;n&&!u[e]&&Object(l.k)(n.axesInfo,(function(e,i){i=u[i];e!==t&&i&&(i=i.value,n.mapper&&(i=t.axis.scale.parse(n.mapper(i,vz(e),vz(t)))),h[t.key]=i)}))})),Object(l.k)(h,(function(t,e){gz(r[e],t,c,!0,s)})),p=u,_=r,d=s.axesInfo=[],Object(l.k)(_,(function(t,e){var n=t.axisPointerModel.option;e=p[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&d.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})})),v=e,_=t,e=b,xz(t=x)||!v.list.length?e({type:"hideTip"}):(b=((v.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:_.tooltipOption,position:_.position,dataIndexInside:b.dataIndexInside,dataIndex:b.dataIndex,seriesIndex:b.seriesIndex,dataByCoordSys:v.list})),e=r,_=(t=n).getZr(),b="axisPointerLastHighlights",f=dz(_)[b]||{},g=dz(_)[b]={},Object(l.k)(e,(function(t,e){t=t.axisPointerModel.option,"show"===t.status&&Object(l.k)(t.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;g[e]=t}))})),y=[],m=[],Object(l.k)(f,(function(t,e){g[e]||m.push(t)})),Object(l.k)(g,(function(t,e){f[e]||y.push(t)})),m.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:m}),y.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:y}),s}function gz(t,e,n,i,o){var r,a,s,u,c,h,p,d,f,g,y=t.axis;!y.scale.isBlank()&&y.containData(e)&&(t.involveSeries?(r=e,s=(a=t).axis,u=s.dim,c=r,h=[],p=Number.MAX_VALUE,d=-1,Object(l.k)(a.seriesModels,(function(t,e){var n,i=t.getData().mapDimensionsAll(u);if(t.getAxisTooltipData){var o=t.getAxisTooltipData(i,r,s),a=o.dataIndices;o=o.nestestValue}else{if(!(a=t.getData().indicesOfNearest(i[0],r,"category"===s.type?.5:null)).length)return;o=t.getData().get(i[0],a[0])}null!=o&&isFinite(o)&&(i=r-o,(n=Math.abs(i))<=p&&((ns?"left":"right",Math.abs(o[1]-e)/a<.3?"middle":o[1]>e?"top":"bottom"),{position:o,align:r,verticalAlign:l}}(e,n,s,a))};var wz,Sz={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:YE(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var o=Math.max(1,t.getBandWidth()),r=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:XE(e.cx,e.cy,i[0],i[1],(-n-o/2)*r,(o/2-n)*r)}:{type:"Sector",shape:XE(e.cx,e.cy,n-o/2,n+o/2,0,2*Math.PI)}}},Mz=bz;function Iz(){var t=null!==wz&&wz.apply(this,arguments)||this;return t.type=Iz.type,t}a(Iz,wz=uu),Iz.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},Iz.type="polar",Iz.dependencies=["radiusAxis","angleAxis"],Iz.defaultOption={z:0,center:["50%","50%"],radius:"80%"};var Oz,Tz=Iz;a(Cz,Oz=uu),Cz.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ji).models[0]},Cz.type="polarAxis",Qi=Cz;function Cz(){return null!==Oz&&Oz.apply(this,arguments)||this}l.K(Qi,Xw),a(Dz,Az=Qi),Dz.type="angleAxis";var Az,kz=Dz;function Dz(){var t=null!==Az&&Az.apply(this,arguments)||this;return t.type=Dz.type,t}a(jz,Lz=Qi),jz.type="radiusAxis";var Lz,Pz=jz;function jz(){var t=null!==Lz&&Lz.apply(this,arguments)||this;return t.type=jz.type,t}a(Nz,Rz=Ng),Nz.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]};var Rz;n=Nz;function Nz(t,e){return Rz.call(this,"radius",t,e)||this}n.prototype.dataToRadius=Ng.prototype.dataToCoord,n.prototype.radiusToData=Ng.prototype.coordToData;var Ez,zz=n,Bz=ki();a(Vz,Ez=Ng),Vz.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},Vz.prototype.calculateCategoryInterval=function(){var t=this.getLabelModel(),e=this.scale,n=e.getExtent();e=e.count();if(n[1]-n[0]<1)return 0;n=n[0];var i=this.dataToCoord(n+1)-this.dataToCoord(n),o=(i=Math.abs(i),n=In(null==n?"":n+"",t.getFont(),"center","top"),t=Math.max(n.height,7)/i,n=(isNaN(t)&&(t=1/0),Math.max(0,Math.floor(t))),i=Bz(this.model),t=i.lastAutoInterval,i.lastTickCount);return null!=t&&null!=o&&Math.abs(t-n)<=1&&Math.abs(o-e)<=1&&ne[1]&&e.reverse(),t.getExtent()),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){t-=this.cx,e-=this.cy,t=t*t+e*e-1e-4,e=this.r;var n=this.r0;return t<=e*e&&n*n<=t}}},Gz.prototype.convertToPixel=function(t,e,n){return Wz(e)===this?this.dataToPoint(n):null},Gz.prototype.convertFromPixel=function(t,e,n){return Wz(e)===this?this.pointToData(n):null};var Yz=Gz;function Uz(t,e){var n,i=this,o=i.getAngleAxis(),r=i.getRadiusAxis();o.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){var e;t.coordinateSystem===i&&(e=t.getData(),l.k(JS(e,"radius"),(function(t){r.scale.unionExtentFromData(e,t)})),l.k(JS(e,"angle"),(function(t){o.scale.unionExtentFromData(e,t)})))})),US(o.scale,o.model),US(r.scale,r.model),"category"!==o.type||o.onBand||(t=o.getExtent(),n=360/o.scale.count(),o.inverse?t[1]+=n:t[1]-=n,o.setExtent(t[0],t[1]))}function Xz(t,e){var n;t.type=e.get("type"),t.scale=XS(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType&&(t.inverse=t.inverse!==e.get("clockwise"),n=e.get("startAngle"),t.setExtent(n,n+(t.inverse?-360:360))),(e.axis=t).model=e}var Zz,qz={dimensions:Hz,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){i=new Yz(i+"");var o,r=(i.update=Uz,i.getRadiusAxis()),a=i.getAngleAxis(),s=t.findAxisModel("radiusAxis"),u=t.findAxisModel("angleAxis");Xz(r,s),Xz(a,u),r=i,s=e,u=(a=t).get("center"),o=s.getWidth(),s=s.getHeight(),r.cx=Qn(u[0],o),r.cy=Qn(u[1],s),u=r.getRadiusAxis(),r=Math.min(o,s)/2,null==(o=a.get("radius"))?o=[0,"100%"]:l.t(o)||(o=[0,o]),s=[Qn(o[0],r),Qn(o[1],r)],u.inverse?u.setExtent(s[1],s[0]):u.setExtent(s[0],s[1]),n.push(i),(t.coordinateSystem=i).model=t})),t.eachSeries((function(t){var e;"polar"===t.get("coordinateSystem")&&(e=t.getReferringComponents("polar",ji).models[0],t.coordinateSystem=e.coordinateSystem)})),n}},Kz=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Qz(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]);t=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:t[0],y2:t[1]}}function $z(t){return t.getRadiusAxis().inverse?0:1}function Jz(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}function tB(){var t=null!==Zz&&Zz.apply(this,arguments)||this;return t.type=tB.type,t.axisPointerClass="PolarAxisPointer",t}a(tB,Zz=ZM),tB.prototype.render=function(t,e){var n,i,o,r,a,s;this.group.removeAll(),t.get("show")&&(n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),r=n.getTicksCoords(),a=n.getMinorTicksCoords(),Jz(s=l.H(n.getViewLabels(),(function(t){t=l.d(t);var e=n.scale;e="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(e),t}))),Jz(r),l.k(Kz,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||nB[e](this.group,t,i,r,a,o,s)}),this))},tB.type="angleAxis";var eB,nB={axisLine:function(t,e,n,i,o,r){e=e.getModel(["axisLine","lineStyle"]);var a=$z(n),s=a?0:1;n=0===r[s]?new Xp({shape:{cx:n.cx,cy:n.cy,r:r[a]},style:e.getLineStyle(),z2:1,silent:!0}):new md({shape:{cx:n.cx,cy:n.cy,r:r[a],r0:r[s]},style:e.getLineStyle(),z2:1,silent:!0});n.style.fill=null,t.add(n)},axisTick:function(t,e,n,i,o,r){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),u=r[$z(n)];r=l.H(i,(function(t){return new Dd({shape:Qz(n,[u,u+s],t.coord)})}));t.add(_f(r,{style:l.i(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,o,r){if(o.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),u=(a.get("inside")?-1:1)*s.get("length"),c=r[$z(n)],h=[],p=0;pg?"left":"right",d=Math.abs(f[1]-y)/d<.3?"middle":f[1]>y?"top":"bottom",s&&s[p]&&(y=s[p],l.A(y)&&y.textStyle&&(a=new Xs(y.textStyle,u,u.ecModel))),p=new ia({silent:BM.isLabelSilent(e),style:ws(a,{x:f[0],y:f[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:g,verticalAlign:d})});t.add(p),h&&((y=BM.makeAxisEventDataBase(e)).targetType="axisLabel",y.value=i.rawLabel,oa(p).eventData=y)}),this)},splitLine:function(t,e,n,i,o,r){for(var a=e.getModel("splitLine").getModel("lineStyle"),s=0,u=(u=a.get("color"))instanceof Array?u:[u],c=[],h=0;h=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},DB.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},DB.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],o="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[o]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-o]=0==o?n.y+n.height/2:n.x+n.width/2,i},DB.prototype.convertToPixel=function(t,e,n){return LB(e)===this?this.dataToPoint(n):null},DB.prototype.convertFromPixel=function(t,e,n){return LB(e)===this?this.pointToData(n):null};var PB,jB=DB,RB={create:function(t,e){var n=[];return t.eachComponent("singleAxis",(function(i,o){var r=new jB(i,t,e);r.name="single_"+o,r.resize(i,e),i.coordinateSystem=r,n.push(r)})),t.eachSeries((function(t){var e;"singleAxis"===t.get("coordinateSystem")&&(e=t.getReferringComponents("singleAxis",ji).models[0],t.coordinateSystem=e&&e.coordinateSystem)})),n},dimensions:kB},NB=["x","y"],EB=["width","height"];function zB(){return null!==PB&&PB.apply(this,arguments)||this}a(zB,PB=zs),zB.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=a.coordinateSystem,l=FB(s,1-VB(a)),u=(s=s.dataToPoint(e)[0],i.get("type"));u&&"none"!==u&&(r=VE(i),(u=BB[u](a,s,l)).style=r,t.graphicKey=u.type,t.pointer=u),a=mB(n);WE(e,t,a,n,i,o)},zB.prototype.getHandleTransform=function(t,e,n){var i=mB(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]),n=GE(e.axis,t,i);return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},zB.prototype.updateHandleTransform=function(t,e,n,i){n=n.axis;var o=n.coordinateSystem,r=(n=VB(n),FB(o,n)),a=[t.x,t.y];a[n]+=e[n],a[n]=Math.min(r[1],a[n]),a[n]=Math.max(r[0],a[n]),e=FB(o,1-n),r=(e[1]+e[0])/2,o=[r,r];return o[n]=a[n],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:o,tooltipOption:{verticalAlign:"middle"}}};var BB={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:YE([e,n[0]],[e,n[1]],VB(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),o=n[1]-n[0];return{type:"Rect",shape:UE([e-i/2,n[0]],[i,o],VB(t))}}};function VB(t){return t.isHorizontal()?0:1}function FB(t,e){return t=t.getRect(),[t[NB[e]],t[NB[e]]+t[EB[e]]]}var HB,GB,WB=zB,YB=(a(UB,HB=xp),UB.type="single",UB);function UB(){var t=null!==HB&&HB.apply(this,arguments)||this;return t.type=UB.type,t}function XB(){var t=null!==GB&&GB.apply(this,arguments)||this;return t.type=XB.type,t}function ZB(t,e){var n=t.cellSize,i=l.t(n)?n:t.cellSize=[n,n];1===i.length&&(i[1]=i[0]),n=l.H([0,1],(function(t){var n,o;return(null!=(n=e)[Ul[o=t][0]]||null!=n[Ul[o][1]]&&null!=n[Ul[o][2]])&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]}));$l(t,e,{type:"box",ignoreSize:n})}a(XB,GB=uu),XB.prototype.init=function(t,e,n){var i=Jl(t);GB.prototype.init.apply(this,arguments),ZB(t,i)},XB.prototype.mergeOption=function(t){GB.prototype.mergeOption.apply(this,arguments),ZB(this.option,t)},XB.prototype.getCellSize=function(){return this.option.cellSize},XB.type="calendar",XB.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}};var qB,KB=XB;function QB(){var t=null!==qB&&qB.apply(this,arguments)||this;return t.type=QB.type,t}a(QB,qB=xp),QB.prototype.render=function(t,e,n){var i=this.group,o=(i.removeAll(),t.coordinateSystem),r=o.getRangeInfo();o=o.getOrient(),e=e.getLocaleModel();this._renderDayRect(t,r,i),this._renderLines(t,r,o,i),this._renderYearText(t,r,o,i),this._renderMonthText(t,e,o,i),this._renderWeekText(t,e,r,o,i)},QB.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),r=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl;l=new Br({shape:{x:l[0],y:l[1],width:r,height:a},cursor:"default",style:o});n.add(l)}},QB.prototype._renderLines=function(t,e,n,i){for(var o=this,r=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth,u=(this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[],e.start),c=0;u.time<=e.end.time;c++){p(u.formatedDate);var h=(u=0===c?r.getDateInfo(e.start.y+"-"+e.start.m):u).date;h.setMonth(h.getMonth()+1),u=r.getDateInfo(h)}function p(e){o._firstDayOfMonth.push(r.getDateInfo(e)),o._firstDayPoints.push(r.dataToRect([e],!1).tl),e=o._getLinePointsOfOneWeek(t,e,n),o._tlpoints.push(e[0]),o._blpoints.push(e[e.length-1]),s&&o._drawSplitline(e,a,i)}p(r.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,l,n),a,i),s&&this._drawSplitline(o._getEdgesPoints(o._blpoints,l,n),a,i)},QB.prototype._getEdgesPoints=function(t,e,n){return t=[t[0].slice(),t[t.length-1].slice()],n="horizontal"===n?0:1,t[0][n]=t[0][n]-e/2,t[1][n]=t[1][n]+e/2,t},QB.prototype._drawSplitline=function(t,e,n){t=new Td({z2:20,shape:{points:t},style:e}),n.add(t)},QB.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,o=i.getDateInfo(e),r=[],a=0;a<7;a++){var s=i.getNextNDay(o.time,a),l=i.dataToRect([s.time],!1);r[2*s.day]=l.tl,r[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return r},QB.prototype._formatterLabel=function(t,e){return Object(l.C)(t)&&t?(n=t,l.k(e,(function(t,e){n=n.replace("{"+e+"}",i?El(t):t)})),n):Object(l.w)(t)?t(e):e.nameMap;var n,i},QB.prototype._yearTextPositionControl=function(t,e,n,i,o){var r=e[0],a=(e=e[1],["center","bottom"]);"bottom"===i?(e+=o,a=["center","top"]):"left"===i?r-=o:"right"===i?(r+=o,a=["center","top"]):e-=o,o=0;return{rotation:o="left"!==i&&"right"!==i?o:Math.PI/2,x:r,y:e,style:{align:a[0],verticalAlign:a[1]}}},QB.prototype._renderYearText=function(t,e,n,i){var o,r,a,s,l,u;t=t.getModel("yearLabel");t.get("show")&&(o=t.get("margin"),r=(r=t.get("position"))||("horizontal"!==n?"top":"left"),a=((u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]])[0][0]+u[1][0])/2,l=(u[0][1]+u[1][1])/2,a={top:[a,u[s="horizontal"===n?0:1][1]],bottom:[a,u[1-s][1]],left:[u[1-s][0],l],right:[u[s][0],l]},u=e.start.y,+e.end.y>+e.start.y&&(u=u+"-"+e.end.y),s=t.get("formatter"),l={start:e.start.y,end:e.end.y,nameMap:u},e=this._formatterLabel(s,l),(u=new ia({z2:30,style:ws(t,{text:e})})).attr(this._yearTextPositionControl(u,a[r],n,r,o)),i.add(u))},QB.prototype._monthTextPositionControl=function(t,e,n,i,o){var r="left",a="top",s=t[0];t=t[1];return"horizontal"===n?(t+=o,e&&(r="center"),"start"===i&&(a="bottom")):(s+=o,e&&(a="middle"),"start"===i&&(r="right")),{x:s,y:t,align:r,verticalAlign:a}},QB.prototype._renderMonthText=function(t,e,n,i){var o=t.getModel("monthLabel");if(o.get("show"))for(var r=o.get("nameMap"),a=o.get("margin"),s=o.get("position"),u=(t=o.get("align"),[this._tlpoints,this._blpoints]),c=(r&&!Object(l.C)(r)||(r=(e=r&&ol(r)||e).get(["time","monthAbbr"])||[]),"start"===s?0:1),h="horizontal"===n?0:1,p=(a="start"===s?-a:a,"center"===t),d=0;d=n.start.time&&t.timeo.end.time&&n.reverse(),n},JB.prototype._getRangeInfo=function(t){var e,n,i=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],o=(i[0].time>i[1].time&&(e=!0,i.reverse()),Math.floor(i[1].time/864e5)-Math.floor(i[0].time/864e5)+1),r=new Date(i[0].time),a=(t=r.getDate(),i[1].date.getDate());if(r.setDate(t+o-1),r.getDate()!==a)for(var s=0n.weeks||0===t&&en.lweek?null:(t=7*(t-1)-n.fweek+e,e=new Date(n.start.time),e.setDate(+n.start.d+t),this.getDateInfo(e))},JB.create=function(t,e){var n=[];return t.eachComponent("calendar",(function(t){var e=new JB(t);n.push(e),t.coordinateSystem=e})),t.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])})),n},JB.dimensions=["time","value"];var eV=JB;function nV(t,e){var n;return l.k(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}var iV=["transition","enterFrom","leaveTo"],oV=iV.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function rV(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?iV:oV,o=0;oe[1]&&(e[1]=t[1])}))})),[(e=GS((o=e.getAxisModel()).axis.scale,o,i).calculate()).min,e.max]),this._updateMinMaxSpan(),o=this.calculateDataWindow(t.settledOption),this._valueWindow=o.valueWindow,this._percentWindow=o.percentWindow,this._setAxisModel())},zV.prototype.filterData=function(t,e){var n,i,o,r;t===this._dataZoomModel&&(n=this._dimName,i=this.getTargetSeriesModels(),o=t.get("filterMode"),r=this._valueWindow,"none"!==o&&NV(i,(function(t){var e,i,a=t.getData(),s=a.mapDimensionsAll(n);s.length&&("weakFilter"===o?(e=a.getStore(),i=l.H(s,(function(t){return a.getDimensionIndex(t)}),a),a.filterSelf((function(t){for(var n,o,a,l=0;lr[1];if(c&&!h&&!u)return!0;c&&(a=!0),h&&(n=!0),u&&(o=!0)}return a&&n&&o}))):NV(s,(function(e){var n;"empty"===o?t.setData(a=a.map(e,(function(t){return(e=t)>=r[0]&&e<=r[1]?t:NaN;var e}))):((n={})[e]=r,a.selectRange(n))})),NV(s,(function(t){a.setApproximateExtent(r,t)})))})))},zV.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;NV(["min","max"],(function(i){var o=e.get(i+"Span"),r=e.get(i+"ValueSpan");null!=(r=null!=r?this.getAxisModel().axis.scale.parse(r):r)?o=Kn(n[0]+r,n,[0,100],!0):null!=o&&(r=Kn(o,[0,100],n,!0)-n[0]),t[i+"Span"]=o,t[i+"ValueSpan"]=r}),this)},zV.prototype._setAxisModel=function(){var t,e=this.getAxisModel(),n=this._percentWindow,i=this._valueWindow;n&&(t=ei(i,[0,500]),t=Math.min(t,20),e=e.axis.scale.rawExtentInfo,0!==n[0]&&e.setDeterminedMinMax("min",+i[0].toFixed(t)),100!==n[1]&&e.setDeterminedMinMax("max",+i[1].toFixed(t)),e.freeze())};var BV=zV,VV={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,o){var r=t.getComponent(_V(i),o);e(i,o,r,n)}))}))}e((function(t,e,n,i){n.__dzAxisProxy=null}));var n=[],i=(e((function(e,i,o,r){o.__dzAxisProxy||(o.__dzAxisProxy=new BV(e,i,r,t),n.push(o.__dzAxisProxy))})),Object(l.f)());return Object(l.k)(n,(function(t){Object(l.k)(t.getTargetSeriesModels(),(function(t){i.set(t.uid,t)}))})),i},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,i){t.getAxisProxy(n,i).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e,n=t.findRepresentativeAxisProxy();n&&(e=n.getDataPercentWindow(),n=n.getDataValueWindow(),t.setCalculatedRange({start:e[0],end:e[1],startValue:n[0],endValue:n[1]}))}))}},FV=!1;function HV(t){FV||(FV=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,VV),t.registerAction("dataZoom",(function(t,e){e=bV(e,t),Object(l.k)(e,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))})),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function GV(t){t.registerComponentModel(DV),t.registerComponentView(RV),HV(t)}function WV(){}var YV,UV={};function XV(t,e){UV[t]=e}function ZV(t){return UV[t]}function qV(){var t=null!==YV&&YV.apply(this,arguments)||this;return t.type=qV.type,t}a(qV,YV=uu),qV.prototype.optionUpdated=function(){YV.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;l.k(this.option.feature,(function(e,n){n=ZV(n),n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(t)),l.I(e,n.defaultOption))}))},qV.type="toolbox",qV.layoutMode={type:"box",ignoreSize:!0},qV.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}};var KV,QV=qV;function $V(t,e){var n=jl(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),new Br({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}function JV(){return null!==KV&&KV.apply(this,arguments)||this}a(JV,KV=xp),JV.prototype.render=function(t,e,n,i){var o,r,a,s,u,c,h,p,d,f,g=this.group;function y(u,c){u=s[u],c=s[c];var h,p=r[u],d=new Xs(p,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===u&&(p.title=i.newTitle),u&&!c){if(0===u.indexOf("my"))h={onclick:d.option.onclick,featureName:u};else{if(p=ZV(u),!p)return;h=new p}a[u]=h}else if(!(h=a[c]))return;h.uid=qs("toolbox-feature"),h.model=d,h.ecModel=e,h.api=n;var f,y,m,v,x,_,b;p=h instanceof WV;!u&&c?p&&h.dispose&&h.dispose(e,n):!d.get("show")||p&&h.unusable?p&&h.remove&&h.remove(e,n):(y=h,c=u,x=(f=d).getModel("iconStyle"),_=f.getModel(["emphasis","iconStyle"]),p=y instanceof WV&&y.getIcons?y.getIcons():f.get("icon"),u=f.get("title")||{},l.C(p)?(m={})[c]=p:m=p,l.C(u)?(v={})[c]=u:v=u,b=f.iconPaths={},l.k(m,(function(i,r){var a=Lf(i,{},{x:-o/2,y:-o/2,width:o,height:o});a.setStyle(x.getItemStyle()),a.ensureState("emphasis").style=_.getItemStyle();var s=new ia({style:{text:v[r],align:_.get("textAlign"),borderRadius:_.get("textBorderRadius"),padding:_.get("textPadding"),fill:null},ignore:!0});a.setTextContent(s),Rf({el:a,componentModel:t,itemName:r,formatterParamsExtra:{title:v[r]}}),a.__title=v[r],a.on("mouseover",(function(){var e=_.getItemStyle(),n="vertical"===t.get("orient")?null==t.get("right")?"right":"left":null==t.get("bottom")?"bottom":"top";s.setStyle({fill:_.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:_.get("textBackgroundColor")}),a.setTextConfig({position:_.get("textPosition")||n}),s.ignore=!t.get("showTitle"),Ba(this)})).on("mouseout",(function(){"emphasis"!==f.get(["iconStatus",r])&&Va(this),s.hide()})),("emphasis"===f.get(["iconStatus",r])?Ba:Va)(a),g.add(a),a.on("click",l.c(y.onclick,y,e,n,r)),b[r]=a})),d.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?Ba:Va)(i[t])},h instanceof WV&&h.render&&h.render(d,e,n,i))}g.removeAll(),t.get("show")&&(o=+t.get("itemSize"),r=t.get("feature")||{},a=this._features||(this._features={}),s=[],l.k(r,(function(t,e){s.push(e)})),new Nx(this._featureNames||[],s).add(y).update(y).remove(l.h(y,null)).execute(),this._featureNames=s,u=g,h=n,p=(c=t).getBoxLayoutParams(),d=c.get("padding"),h={width:h.getWidth(),height:h.getHeight()},f=ql(p,h,d),Zl(c.get("orient"),u,c.get("itemGap"),f.width,f.height),Kl(u,p,h,d),g.add($V(g.getBoundingRect(),t)),g.eachChild((function(t){var e,i,r=t.__title,a=t.ensureState("emphasis"),s=(a=a.textConfig||(a.textConfig={}),t.getTextContent());s=s&&s.states.emphasis;s&&!l.w(s)&&r&&(s=s.style||(s.style={}),r=In(r,ia.makeFont(s)),e=t.x+g.x,i=!1,t.y+g.y+o+r.height>n.getHeight()&&(a.position="top",i=!0),t=i?-5-r.height:o+8,e+r.width/2>n.getWidth()?(a.position=["100%",t],s.align="right"):e-r.width/2<0&&(a.position=[0,t],s.align="left"))})))},JV.prototype.updateView=function(t,e,n,i){l.k(this._features,(function(t){t instanceof WV&&t.updateView&&t.updateView(t.model,e,n,i)}))},JV.prototype.remove=function(t,e){l.k(this._features,(function(n){n instanceof WV&&n.remove&&n.remove(t,e)})),this.group.removeAll()},JV.prototype.dispose=function(t,e){l.k(this._features,(function(n){n instanceof WV&&n.dispose&&n.dispose(t,e)}))},JV.type="toolbox";var tF,eF=JV;function nF(){return null!==tF&&tF.apply(this,arguments)||this}a(nF,tF=WV),nF.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o="svg"===e.getZr().painter.getType(),r=o?"svg":n.get("type",!0)||"png";e=e.getConnectedDataURL({type:r,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),t=s.a.browser;if(Object(l.w)(MouseEvent)&&(t.newEdge||!t.ie&&!t.edge)){t=document.createElement("a");var a=(t.download=i+"."+r,t.target="_blank",t.href=e,new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1}));t.dispatchEvent(a)}else if(window.navigator.msSaveOrOpenBlob||o){t=e.split(","),a=-1',o=window.open(),o.document.write(t),o.document.title=i},nF.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}};var iF,oF=nF,rF="__ec_magicType_stack__",aF=[["line","bar"],["stack"]];a(sF,iF=WV),sF.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return l.k(t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},sF.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},sF.prototype.onclick=function(t,e,n){var i,o,r=this.model,a=r.get(["seriesIndex",n]);lF[n]&&(i={series:[]},l.k(aF,(function(t){0<=l.r(t,n)&&l.k(t,(function(t){r.setIconStatus(t,"normal")}))})),r.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==a?null:{seriesIndex:a}},(function(t){var e=t.subType,o=t.id;e=lF[n](e,o,t,r),e&&(l.i(e,t.option),i.series.push(e)),o=t.coordinateSystem;if(o&&"cartesian2d"===o.type&&("line"===n||"bar"===n)&&(e=o.getAxesByScale("ordinal")[0],e)){var a=e.dim+"Axis",s=t.getReferringComponents(a,ji).models[0].componentIndex;i[a]=i[a]||[];for(var u=0;u<=s;u++)i[a][s]=i[a][s]||{};i[a][s].boundaryGap="bar"===n}})),"stack"===(t=n)&&(o=l.I({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(t="tiled")),e.dispatchAction({type:"changeMagicType",currentType:t,newOption:i,newTitle:o,featureName:"magicType"}))},e=sF;function sF(){return null!==iF&&iF.apply(this,arguments)||this}var lF={line:function(t,e,n,i){if("bar"===t)return l.I({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return l.I({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){if(n=n.get("stack")===rF,"line"===t||"bar"===t)return i.setIconStatus("stack",n?"normal":"emphasis"),l.I({id:e,stack:n?"":rF},i.get(["option","stack"])||{},!0)}},uF=(Cm({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)})),e),cF=new Array(60).join("-"),hF="\t";function pF(t){e={},n=[],i=[],t.eachRawSeries((function(t){var o,r,a=t.coordinateSystem;!a||"cartesian2d"!==a.type&&"polar"!==a.type||"category"!==(o=a.getBaseAxis()).type?n.push(t):(r=o.dim+"_"+o.index,e[r]||(e[r]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[r].series.push(t))}));var e,n,i,o,r;t={seriesGroupByCategoryAxis:e,other:n,meta:i};return{value:l.n([(o=t.seriesGroupByCategoryAxis,r=[],l.k(o,(function(t,e){for(var n=t.categoryAxis,i=t.valueAxis.dim,o=[" "].concat(l.H(t.series,(function(t){return t.name}))),a=[n.model.getCategories()],s=(l.k(t.series,(function(t){var e=t.getRawData();a.push(t.getRawData().mapArray(e.mapDimension(i),(function(t){return t})))})),[o.join(hF)]),u=0;ut[1]&&t.reverse(),t}function CF(t,e){return Li(t,e,{includeMainTypes:IF})}var AF={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,o=(t=t.gridModels,Object(l.f)()),r={},a={};(n||i||t)&&(Object(l.k)(n,(function(t){t=t.axis.grid.model,o.set(t.id,t),r[t.id]=!0})),Object(l.k)(i,(function(t){t=t.axis.grid.model,o.set(t.id,t),a[t.id]=!0})),Object(l.k)(t,(function(t){o.set(t.id,t),r[t.id]=!0,a[t.id]=!0})),o.each((function(t){var o=t.coordinateSystem,s=[];Object(l.k)(o.getCartesians(),(function(t,e){(0<=Object(l.r)(n,t.getAxis("x").model)||0<=Object(l.r)(i,t.getAxis("y").model))&&s.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:s[0],coordSyses:s,getPanelRect:DF.grid,xAxisDeclared:r[t.id],yAxisDeclared:a[t.id]})})))},geo:function(t,e){Object(l.k)(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:DF.geo})}))}},kF=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel;t=t.gridModel;return(t=!(t=!t&&n?n.axis.grid.model:t)&&i?i.axis.grid.model:t)&&t===e.gridModel},function(t,e){return t=t.geoModel,t&&t===e.geoModel}],DF={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(If(t)),e}},LF={lineX:Object(l.h)(PF,0),lineY:Object(l.h)(PF,1),rect:function(t,e,n,i){var o=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i);t=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),e=[TF([o[0],t[0]]),TF([o[1],t[1]])];return{values:e,xyMinMax:e}},polygon:function(t,e,n,i){var o=[[1/0,-1/0],[1/0,-1/0]];return{values:Object(l.H)(n,(function(n){return n=t?e.pointToData(n,i):e.dataToPoint(n,i),o[0][0]=Math.min(o[0][0],n[0]),o[1][0]=Math.min(o[1][0],n[1]),o[0][1]=Math.max(o[0][1],n[0]),o[1][1]=Math.max(o[1][1],n[1]),n})),xyMinMax:o}}};function PF(t,e,n,i){var o=n.getAxis(["x","y"][t]),r=(n=TF(Object(l.H)([0,1],(function(t){return e?o.coordToData(o.toLocalCoord(i[t]),!0):o.toGlobalCoord(o.dataToCoord(i[t]))}))),[]);return r[t]=n,r[1-t]=[NaN,NaN],{values:n,xyMinMax:r}}var jF={lineX:Object(l.h)(RF,0),lineY:Object(l.h)(RF,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return Object(l.H)(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function RF(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function NF(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var EF,zF=Ys,BF=l.k;a(VF,EF=WV),VF.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new cP(n.getZr()),this._brushController.on("brush",l.c(this._onBrush,this)).mount());var o=t,r=e,a=this,s=a._isZoomActive;i&&"takeGlobalCursor"===i.type&&(s="dataZoomSelect"===i.key&&i.dataZoomSelectActive),a._isZoomActive=s,o.setIconStatus("zoom",s?"emphasis":"normal"),i=new zF(HF(o),r,{include:["grid"]}).makePanelOpts(n,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"})),a._brushController.setPanels(i).enableBrush(!(!s||!i.length)&&{brushType:"auto",brushStyle:o.getModel("brushStyle").getItemStyle()}),t.setIconStatus("back",1'}(n,i,o)),Object(l.C)(t))r.innerHTML=t+a;else if(t){r.innerHTML="",Object(l.t)(t)||(t=[t]);for(var s=0;s"),c.join(e));this._showOrMove(r,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(r,p,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(r,d,s,Math.random()+"",o[0],o[1],p,null,h)}))},pH.prototype._showSeriesItemTooltip=function(t,e,n){var i,o,r,a,s,u=this._ecModel,c=(e=oa(e),e.seriesIndex),h=u.getSeriesByIndex(c),p=e.dataModel||h,d=e.dataIndex,f=(e=e.dataType,p.getData(e)),g=this._renderMode,y=t.positionDefault,m=dH([f.getItemModel(d),p,h&&(h.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null);h=m.get("trigger");null!=h&&"item"!==h||(i=p.getDataParams(d,e),o=new np,i.marker=o.makeTooltipMarker("item",Hl(i.color),g),y=Zc(p.formatTooltip(d,!1,e)),h=m.get("order"),e=m.get("valueFormatter"),r=y.frag,a=r?Qh(e?Object(l.m)({valueFormatter:e},r):r,o,g,h,u.get("useUTC"),m.get("textStyle")):y.text,s="item_"+p.name+"_"+d,this._showOrMove(m,(function(){this._showTooltipContent(m,a,i,s,t.offsetX,t.offsetY,t.position,t.target,o)})),n({type:"showTip",dataIndexInside:d,dataIndex:f.getRawIndex(d),seriesIndex:c,from:this.uid}))},pH.prototype._showComponentItemTooltip=function(t,e,n){var i=oa(e),o=i.tooltipConfig.option||{},r=[o=Object(l.C)(o)?{content:o,formatter:o}:o],a=(i=this._ecModel.getComponent(i.componentMainType,i.componentIndex),i=(i&&r.push(i),r.push({formatter:o.content}),t.positionDefault),dH(r,this._tooltipModel,i?{position:i}:null)),s=a.get("content"),u=Math.random()+"",c=new np;this._showOrMove(a,(function(){var n=Object(l.d)(a.get("formatterParams")||{});this._showTooltipContent(a,s,n,u,t.offsetX,t.offsetY,t.position,e,c)})),n({type:"showTip",from:this.uid})},pH.prototype._showTooltipContent=function(t,e,n,i,o,r,a,s,u){var c,h,p,d,f;this._ticket="",t.get("showContent")&&t.get("show")&&(c=this._tooltipContent,h=t.get("formatter"),a=a||t.get("position"),e=e,p=this._getNearestPoint([o,r],n,t.get("trigger"),t.get("borderColor")).color,h&&(e=Object(l.C)(h)?(d=t.ecModel.get("useUTC"),e=h,Fl(e=(f=Object(l.t)(n)?n[0]:n)&&f.axisType&&0<=f.axisType.indexOf("time")?yl(f.axisValue,e,d):e,n,!0)):Object(l.w)(h)?(f=Object(l.c)((function(e,i){e===this._ticket&&(c.setContent(i,u,t,p,a),this._updatePosition(t,a,o,r,c,n,s))}),this),this._ticket=i,h(n,i,f)):h),c.setContent(e,u,t,p,a),c.show(t,p),this._updatePosition(t,a,o,r,c,n,s))},pH.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||Object(l.t)(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:Object(l.t)(e)?void 0:{color:i||e.color||e.borderColor}},pH.prototype._updatePosition=function(t,e,n,i,o,r,a){var s,u=this._api.getWidth(),c=this._api.getHeight(),h=(e=e||t.get("position"),o.getSize()),p=t.get("align"),d=t.get("verticalAlign"),f=a&&a.getBoundingRect().clone();a&&f.applyTransform(a.transform),Object(l.w)(e)&&(e=e([n,i],r,o.el,f,{viewSize:[u,c],contentSize:h.slice()})),Object(l.t)(e)?(n=Qn(e[0],u),i=Qn(e[1],c)):Object(l.A)(e)?((r=e).width=h[0],r.height=h[1],n=(r=ql(r,{width:u,height:c})).x,i=r.y,d=p=null):(n=(s=Object(l.C)(e)&&a?function(t,e,n,i){var o=n[0],r=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-o/2,l=e.y+c/2-r/2;break;case"top":s=e.x+u/2-o/2,l=e.y-r-a;break;case"bottom":s=e.x+u/2-o/2,l=e.y+c+a;break;case"left":s=e.x-o-a,l=e.y+c/2-r/2;break;case"right":s=e.x+u+a,l=e.y+c/2-r/2}return[s,l]}(e,f,h,t.get("borderWidth")):function(t,e,n,i,o,r,a){n=n.getSize();var s=n[0];n=n[1];return null!=r&&(io[0][1]&&(o[0][1]=r[0]),r[1]o[1][1]&&(o[1][1]=r[1])}return o&&RH(o)}};function RH(t){return new xn(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}function NH(){var t=null!==PH&&PH.apply(this,arguments)||this;return t.type=NH.type,t}a(NH,PH=xp),NH.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new cP(e.getZr())).on("brush",l.c(this._onBrush,this)).mount()},NH.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},NH.prototype.updateTransform=function(t,e,n,i){AH(e),this._updateController(t,e,n,i)},NH.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},NH.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},NH.prototype._updateController=function(t,e,n,i){i&&i.$from===t.id||this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},NH.prototype.dispose=function(){this._brushController.dispose()},NH.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);t.isEnd&&!t.removeOnClick||this.api.dispatchAction({type:"brush",brushId:e,areas:l.d(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:l.d(n),$from:e})},NH.type="brush";var EH,zH=NH;function BH(){var t=null!==EH&&EH.apply(this,arguments)||this;return t.type=BH.type,t.areas=[],t.brushOption={},t}function VH(t,e){return l.I({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Xs(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}a(BH,EH=uu),BH.prototype.optionUpdated=function(t,e){var n=this.option;e||wH(n,t,["inBrush","outOfBrush"]),e=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},e.hasOwnProperty("liftZ")||(e.liftZ=5)},BH.prototype.setAreas=function(t){t&&(this.areas=l.H(t,(function(t){return VH(this.option,t)}),this))},BH.prototype.setBrushOption=function(t){this.brushOption=VH(this.option,t),this.brushType=this.brushOption.brushType},BH.type="brush",BH.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],BH.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4};var FH,HH=BH,GH=["rect","polygon","lineX","lineY","keep","clear"];function WH(){return null!==FH&&FH.apply(this,arguments)||this}a(WH,FH=WV),WH.prototype.render=function(t,e,n){var i,o,r;e.eachComponent({mainType:"brush"},(function(t){i=t.brushType,o=t.brushOption.brushMode||"single",r=r||!!t.areas.length})),this._brushType=i,this._brushMode=o,l.k(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===o:"clear"===e?r:e===i)?"emphasis":"normal")}))},WH.prototype.updateView=function(t,e,n){this.render(t,e,n)},WH.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return l.k(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},WH.prototype.onclick=function(t,e,n){var i=this._brushType,o=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===o?"single":"multiple":o}})},WH.getDefaultOption=function(t){return{show:!0,type:GH.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])}};var YH=WH;a(ZH,UH=uu),ZH.type="title",ZH.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}};var UH,XH=ZH;function ZH(){var t=null!==UH&&UH.apply(this,arguments)||this;return t.type=ZH.type,t.layoutMode={type:"box",ignoreSize:!0},t}a($H,qH=xp),$H.prototype.render=function(t,e,n){var i,o,r,a,s,u,c,h,p;this.group.removeAll(),t.get("show")&&(i=this.group,c=t.getModel("textStyle"),o=t.getModel("subtextStyle"),h=t.get("textAlign"),p=l.P(t.get("textBaseline"),t.get("textVerticalAlign")),s=(c=new ia({style:ws(c,{text:t.get("text"),fill:c.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),u=t.get("subtext"),o=new ia({style:ws(o,{text:u,fill:o.getTextColor(),y:s.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),r=t.get("link"),a=t.get("sublink"),s=t.get("triggerEvent",!0),c.silent=!r&&!s,o.silent=!a&&!s,r&&c.on("click",(function(){Gl(r,"_"+t.get("target"))})),a&&o.on("click",(function(){Gl(a,"_"+t.get("subtarget"))})),oa(c).eventData=oa(o).eventData=s?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),u&&i.add(o),s=i.getBoundingRect(),(u=t.getBoxLayoutParams()).width=s.width,u.height=s.height,u=ql(u,{width:n.getWidth(),height:n.getHeight()},t.get("padding")),h||("right"===(h="middle"===(h=t.get("left")||t.get("right"))?"center":h)?u.x+=u.width:"center"===h&&(u.x+=u.width/2)),p||("bottom"===(p="center"===(p=t.get("top")||t.get("bottom"))?"middle":p)?u.y+=u.height:"middle"===p&&(u.y+=u.height/2),p=p||"top"),i.x=u.x,i.y=u.y,i.markRedraw(),c.setStyle(n={align:h,verticalAlign:p}),o.setStyle(n),s=i.getBoundingRect(),c=u.margin,(h=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),p=new Br({shape:{x:s.x-c[3],y:s.y-c[0],width:s.width+c[1]+c[3],height:s.height+c[0]+c[2],r:t.get("borderRadius")},style:h,subPixelOptimize:!0,silent:!0}),i.add(p))},$H.type="title";var qH,KH,QH=$H;function $H(){var t=null!==qH&&qH.apply(this,arguments)||this;return t.type=$H.type,t}function JH(){var t=null!==KH&&KH.apply(this,arguments)||this;return t.type=JH.type,t.layoutMode="box",t}a(JH,KH=uu),JH.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},JH.prototype.mergeOption=function(t){KH.prototype.mergeOption.apply(this,arguments),this._initData()},JH.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t=e<=t?e-1:t)<0&&(t=0),this.option.currentIndex=t},JH.prototype.getCurrentIndex=function(){return this.option.currentIndex},JH.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},JH.prototype.setPlayState=function(t){this.option.autoPlay=!!t},JH.prototype.getPlayState=function(){return!!this.option.autoPlay},JH.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=(e=e.axisType,this._names=[]);"category"===e?(t=[],Object(l.k)(n,(function(e,n){var o,r=Ii(bi(e),"");Object(l.A)(e)?(o=Object(l.d)(e)).value=n:o=n,t.push(o),i.push(r)}))):t=n,n={category:"ordinal",time:"time",value:"number"}[e]||"number";(this._data=new u_([{name:"value",type:n}],this)).initData(t,i)},JH.prototype.getData=function(){return this._data},JH.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},JH.type="timeline",JH.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]};var tG;Vs=JH,a(eG,tG=Vs),eG.type="timeline.slider",eG.defaultOption=Ks(Vs.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),Ns=eG;function eG(){var t=null!==tG&&tG.apply(this,arguments)||this;return t.type=eG.type,t}Object(l.K)(Ns,Hs.prototype);var nG,iG=Ns;function oG(){var t=null!==nG&&nG.apply(this,arguments)||this;return t.type=oG.type,t}a(oG,nG=xp),oG.type="timeline";var rG;zs=oG;function aG(t,e,n,i){return t=rG.call(this,t,e,n)||this,t.type=i||"value",t}a(aG,rG=Ng),aG.prototype.getLabelModel=function(){return this.model.getModel("label")},aG.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")};var sG,lG=aG,uG=Math.PI,cG=ki();function hG(){var t=null!==sG&&sG.apply(this,arguments)||this;return t.type=hG.type,t}function pG(t,e,n,i,o,r){var a=e.get("color");o?(o.setColor(a),n.add(o),r&&r.onUpdate(o)):((o=Yg(t.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(o),r&&r.onCreate(o)),a=e.getItemStyle(["color"]),o.setStyle(a),i=Object(l.I)({rectHover:!0,z2:100},i,!0),n=Ug(t.get("symbolSize")),i.scaleX=n[0]/2,i.scaleY=n[1]/2,r=Xg(t.get("symbolOffset"),n),r&&(i.x=(i.x||0)+r[0],i.y=(i.y||0)+r[1]),e=t.get("symbolRotate");return i.rotation=(e||0)*Math.PI/180||0,o.attr(i),o.updateTransform(),o}function dG(t,e,n,i,o,r){var a;t.dragging||(a=o.getModel("checkpointStyle"),i=i.dataToCoord(o.getData().get("value",n)),r||!a.get("animation",!0)?(t.attr({x:i,y:0}),e&&e.attr({shape:{x2:i}})):(o={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)},t.stopAnimation(null,!0),t.animateTo({x:i,y:0},o),e&&e.animateTo({shape:{x2:i}},o)))}a(hG,sG=zs),hG.prototype.init=function(t,e){this.api=e},hG.prototype.render=function(t,e,n){var i,o,r;this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)&&(i=this._layout(t,n),o=this._createGroup("_mainGroup"),e=this._createGroup("_labelGroup"),r=this._axis=this._createAxis(i,t),t.formatTooltip=function(t){return Uh("nameValue",{noName:!0,value:r.scale.getLabel({value:t})})},Object(l.k)(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](i,o,r,t)}),this),this._renderAxisLabel(i,e,r,t),this._position(i,t)),this._doPlayStop(),this._updateTicksStatus()},hG.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},hG.prototype.dispose=function(){this._clearTimer()},hG.prototype._layout=function(t,e){var n,i,o,r=t.get(["label","position"]),a=t.get("orient"),s=(s=e,ql((u=t).getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()},u.get("padding"))),u=null==r||"auto"===r?"horizontal"===a?s.y+s.height/2n[1]?n[1]:t)r[1]||u[1]s[1]||h[1]n[o],g=[-p.x,-p.y],y=(e=(e||(g[i]=u[s]),[0,0]),s=[-d.x,-d.y],l.P(t.get("pageButtonGap",!0),t.get("itemGap",!0)));f&&("end"===t.get("pageButtonPosition",!0)?s[i]+=n[o]-d[o]:e[i]+=d[o]+y),s[1-i]+=p[r]/2-d[r]/2,u.setPosition(g),c.setPosition(e),h.setPosition(s),g={x:0,y:0},g[o]=(f?n:p)[o],g[r]=Math.max(p[r],d[r]),g[a]=Math.min(0,d[a]+s[1-i]),c.__rectSize=n[o],f?((e={x:0,y:0})[o]=Math.max(n[o]-d[o]-y,0),e[r]=g[r],c.setClipPath(new Br({shape:e})),c.__rectSize=e[o]):h.eachChild((function(t){t.attr({invisible:!0,silent:!0})})),p=this._getPageInfo(t);return null!=p.pageIndex&&cs(u,{x:p.contentPosition[0],y:p.contentPosition[1]},f?t:null),this._updatePageInfoView(t,p),g},NW.prototype._pageGo=function(t,e,n){t=this._getPageInfo(e)[t],null!=t&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},NW.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup,i=(l.k(["pagePrev","pageNext"],(function(i){var o=null!=e[i+"DataIndex"];i=n.childOfName(i);i&&(i.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),i.cursor=o?"pointer":"default")})),n.childOfName("pageText")),o=t.get("pageFormatter"),r=e.pageIndex,a=(r=null!=r?r+1:0,e.pageCount);i&&o&&i.setStyle("text",l.C(o)?o.replace("{current}",null==r?"":r+"").replace("{total}",null==a?"":a+""):o({current:r,total:a}))},NW.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=(t=t.getOrient().index,jW[t]),r=RW[t],a=(e=this._findTargetItemIndex(e),n.children()),s=a[e],l=a.length,u=l?1:0,c={contentPosition:[n.x,n.y],pageCount:u,pageIndex:u-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!s)return c;n=g(s),c.contentPosition[t]=-n.s;for(var h=e+1,p=n,d=n,f=null;h<=l;++h)(!(f=g(a[h]))&&d.e>p.s+i||f&&!y(f,p.s))&&(p=d.i>p.i?d:f)&&(null==c.pageNextDataIndex&&(c.pageNextDataIndex=p.i),++c.pageCount),d=f;for(h=e-1,p=n,d=n,f=null;-1<=h;--h)(f=g(a[h]))&&y(d,f.s)||!(p.i=e&&t.s<=e+i}},NW.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild((function(i,o){i=i.__legendDataIndex,null==n&&null!=i&&(n=o),i===t&&(e=o)})),null!=e?e:n):0;var e,n},NW.type="legend.scroll";var EW,zW=NW;function BW(t){Nm(CW),t.registerComponentModel(LW),t.registerComponentView(zW),t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}function VW(){var t=null!==EW&&EW.apply(this,arguments)||this;return t.type=VW.type,t}a(VW,EW=zg),VW.type="dataZoom.inside",VW.defaultOption=Ks(zg.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0});var FW,HW=VW,GW=ki();function WW(t,e){e&&(t.removeKey(e.model.uid),(t=e.controller)&&t.dispose())}function YW(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function UW(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function XW(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=GW(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=Object(l.f)());i.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=wV(t);Object(l.k)(n.infoList,(function(n){var o,r,a=n.model.uid,s=i.get(a)||i.set(a,(a=e,s=n.model,o={model:s,containsPoint:Object(l.h)(UW,s),dispatchAction:Object(l.h)(YW,a),dataZoomInfoMap:null,controller:null},r=o.controller=new UI(a.getZr()),Object(l.k)(["pan","zoom","scrollMove"],(function(t){r.on(t,(function(e){var n=[];o.dataZoomInfoMap.each((function(i){var r;e.isAvailableBehavior(i.model.option)&&(r=(r=(i.getRange||{})[t])&&r(i.dzReferCoordSysInfo,o.model.mainType,o.controller,e),!i.model.get("disabled",!0)&&r&&n.push({dataZoomId:i.model.id,start:r[0],end:r[1]}))})),n.length&&o.dispatchAction(n)}))})),o));(s.dataZoomInfoMap||(s.dataZoomInfoMap=Object(l.f)())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),i.each((function(t){var e,n,o,r,a,s=t.controller,l=t.dataZoomInfoMap;l&&null!=(n=l.keys()[0])&&(e=l.get(n)),e?(r={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0,l.each((function(t){t=t.model;var e=!t.get("disabled",!0)&&(!t.get("zoomLock",!0)||"move");r["type_"+o]e[0]||t[1]<0||t[1]>e[1]||(e=((e=this._handleEnds)[0]+e[1])/2,t=this._updateInterval("all",t[0]-e),this._updateView(),t&&this._dispatchZoomAction(!1))},uY.prototype._onBrushStart=function(t){var e=t.offsetX;t=t.offsetY;this._brushStart=new un(e,t),this._brushing=!0,this._brushStartTime=+new Date},uY.prototype._onBrushEnd=function(t){var e,n,i;this._brushing&&(e=this._displayables.brushRect,this._brushing=!1,e&&(e.attr("ignore",!0),e=e.shape,+new Date-this._brushStartTime<200&&Math.abs(e.width)<5||(n=this._getViewExtent(),this._range=Jn([Kn(e.x,n,i=[0,100],!0),Kn(e.x+e.width,n,i,!0)]),this._handleEnds=[e.x,e.x+e.width],this._updateView(),this._dispatchZoomAction(!1))))},uY.prototype._onBrush=function(t){this._brushing&&(Z(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},uY.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new oY({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1),i=this._brushStart,n=this._displayables.sliderGroup,t=n.transformCoordToLocal(t,e),e=n.transformCoordToLocal(i.x,i.y),n=this._size;t[0]=Math.max(Math.min(n[0],t[0]),0),o.setShape({x:e[0],y:0,width:t[0]-e[0],height:n[1]})},uY.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?lY:null,start:e[0],end:e[1]})},uY.prototype._findCoordRect=function(){var t,e,n=wV(this.dataZoomModel).infoList;return(t=!t&&n.length?(n=n[0].model.coordinateSystem).getRect&&n.getRect():t)?t:{x:.2*(n=this.api.getWidth()),y:.2*(e=this.api.getHeight()),width:.6*n,height:.6*e}},uY.type="dataZoom.slider";var hY=uY;function pY(t){t.registerComponentModel(iY),t.registerComponentView(hY),HV(t)}var dY,fY={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},gY={get:function(t,e,n){return t=l.d((fY[t]||{})[e]),n&&l.t(t)?t[t.length-1]:t}},yY=xA.mapVisual,mY=xA.eachVisual,vY=l.t,xY=l.k,_Y=Jn,bY=Kn;function wY(){var t=null!==dY&&dY.apply(this,arguments)||this;return t.type=wY.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}a(wY,dY=uu),wY.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},wY.prototype.optionUpdated=function(t,e){var n=this.option;e||wH(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},wY.prototype.resetVisual=function(t){var e=this.stateList;t=l.c(t,this),this.controllerVisuals=bH(this.option.controller,e,t),this.targetVisuals=bH(this.option.target,e,t)},wY.prototype.getItemSymbol=function(){return null},wY.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=vi(t),e},wY.prototype.eachTargetSeries=function(t,e){l.k(this.getTargetSeriesIndices(),(function(n){n=this.ecModel.getSeriesByIndex(n),n&&t.call(e,n)}),this)},wY.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},wY.prototype.formatValueText=function(t,e,n){var i,o=this.option,r=o.precision,a=this.dataBound;o=o.formatter,n=n||["<",">"],l.t(t)&&(t=t.slice(),i=!0),e=e?t:i?[s(t[0]),s(t[1])]:s(t);return l.C(o)?o.replace("{value}",i?e[0]:e).replace("{value2}",i?e[1]:e):l.w(o)?i?o(t[0],t[1]):o(t):i?t[0]===a[0]?n[0]+" "+e[1]:t[1]===a[1]?n[1]+" "+e[0]:e[0]+" - "+e[1]:e;function s(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(r,20))}},wY.prototype.resetExtent=function(){var t=this.option;t=_Y([t.min,t.max]);this._dataExtent=t},wY.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;0<=i;i--){var o=n[i];o=t.getDimensionInfo(o);if(!o.isCalculationCoord)return o.storeDimIndex}},wY.prototype.getExtent=function(){return this._dataExtent.slice()},wY.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),o=e.controller||(e.controller={}),r=(l.I(i,n),l.I(o,n),this.isCategory());function a(n){vY(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,i),a.call(this,o),function(t,e,n){e=t[e];var i=t[n];e&&!i&&(i=t[n]={},xY(e,(function(t,e){var n;!xA.isValidType(e)||null!=(n=gY.get(e,"inactive",r))&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))})))}.call(this,i,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),o=this.getItemSymbol()||"roundRect";xY(this.stateList,(function(a){var s,u=this.itemSize,c=t[a];null==(c=c||(t[a]={color:r?i:[i]})).symbol&&(c.symbol=e&&l.d(e)||(r?o:[o])),null==c.symbolSize&&(c.symbolSize=n&&l.d(n)||(r?u[0]:[u[0],u[0]])),c.symbol=yY(c.symbol,(function(t){return"none"===t?o:t})),a=c.symbolSize;null!=a&&(s=-1/0,mY(a,(function(t){se[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},IY.prototype.completeVisualOption=function(){SY.prototype.completeVisualOption.apply(this,arguments),l.k(this.stateList,(function(t){t=this.option.controller[t].symbolSize,t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},IY.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},IY.prototype.getSelected=function(){var t=this.getExtent(),e=Jn((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},IY.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},IY.prototype.getVisualMeta=function(t){var e=OY(0,0,this.getExtent()),n=OY(0,0,this.option.range.slice()),i=[];function o(e,n){i.push({value:e,color:t(e,n)})}for(var r=0,a=0,s=n.length,l=e.length;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},zY.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},zY.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new Gn("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},zY.prototype._updateHandle=function(t,e){var n,i,o,r,a,s;this._useHandle&&(n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,r=n.handleLabels,a=i.itemSize,s=i.getExtent(),RY([0,1],(function(l){var u=o[l],c=(u.setStyle("fill",e.handlesColor[l]),u.y=t[l],jY(t[l],[0,a[1]],s,!0));c=this.getControllerVisual(c,"symbolSize"),u.scaleX=u.scaleY=c/a[0],u.x=a[0]-c/2,c=Of(n.handleLabelPoints[l],If(u,this.group));r[l].setStyle({x:c[0],y:c[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this))},zY.prototype._showIndicator=function(t,e,n,i){var o=this.visualMapModel,r=o.getExtent(),a=o.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),h=this.getControllerVisual(t,"symbolSize"),p=(t=jY(t,r,s,!0),r=a[0]-h/2,s={x:u.x,y:u.y},a=(u.y=t,u.x=r,Of(l.indicatorLabelPoint,If(u,this.group))),h=l.indicatorLabel,l=(h.attr("invisible",!1),this._applyTransform("left",l.mainGroup)),"horizontal"===this._orient),d=(n=(h.setStyle({text:(n||"")+o.formatValueText(e),verticalAlign:p?l:"middle",align:p?"center":l}),{x:r,y:t,style:{fill:c}}),e={style:{x:a[0],y:a[1]}},o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator?(p={duration:100,easing:"cubicInOut",additive:!0},u.x=s.x,u.y=s.y,u.animateTo(n,p),h.animateTo(e,p)):(u.attr(n),h.attr(e)),this._firstShowIndicator=!1,this._shapes.handleLabels);if(d)for(var f=0;f ",o):this._showIndicator(t,t,"≈ ",o)),a=this._hoverLinkDataIndices,n=[],(e||VY(r))&&(n=this._hoverLinkDataIndices=r.findTargetDataIndices(i)),t=n,o={},s(a||[],e={}),s(t||[],o,e),i=[l(e),l(o)],this._dispatchHighDown("downplay",LY(i[0],r)),this._dispatchHighDown("highlight",LY(i[1],r)))},zY.prototype._hoverLinkFromSeriesMouseOver=function(t){t=t.target;var e,n=this.visualMapModel;t&&null!=oa(t).dataIndex&&(t=oa(t),e=this.ecModel.getSeriesByIndex(t.seriesIndex),n.isTargetSeries(e)&&(n=(e=e.getData(t.dataType)).getStore().get(n.getDataDimensionIndex(e),t.dataIndex),isNaN(n)||this._showIndicator(n,n)))},zY.prototype._hideIndicator=function(){var t=this._shapes,e=(t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0),this._shapes.handleLabels);if(e)for(var n=0;na&&s([a,t[0]],"outOfRange"),s(t.slice()),a=t[1])}),this),{stops:e,outerColors:n};function s(o,r){var a=i.getRepresentValue({interval:o});r=r||i.getValueState(a),a=t(a,r);o[0]===-1/0?n[0]=a:o[1]===1/0?n[1]=a:e.push({value:o[0],color:a},{value:o[1],color:a})}},tU.type="visualMap.piecewise",tU.defaultOption=Ks(Vg.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0});var eU={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),o=e.splitNumber;o=Math.max(parseInt(o,10),1);e.splitNumber=o;for(var r=(i[1]-i[0])/o;+r.toFixed(n)!==r&&n<5;)n++;e.precision=n,r=+r.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,e)}),this)}};function nU(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var iU,oU=tU;function rU(){var t=null!==iU&&iU.apply(this,arguments)||this;return t.type=rU.type,t}a(rU,iU=Ys),rU.prototype.doRender=function(){var t=this.group,e=(t.removeAll(),this.visualMapModel),n=e.get("textGap"),i=e.textStyleModel,o=i.getFont(),r=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,u=(i=this._getViewData(),i.endsText),c=l.O(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,a),l.k(i.viewPieceList,(function(i){var u=i.piece,h=new Gn;h.onclick=l.c(this._onItemClick,this,u),this._enableHoverLink(h,i.indexInModelPieceList),i=e.getRepresentValue(u);this._createItemSymbol(h,i,[0,0,s[0],s[1]]),c&&(i=this.visualMapModel.getValueState(i),h.add(new ia({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:u.text,verticalAlign:"middle",align:a,font:o,fill:r,opacity:"outOfRange"===i?.5:1}}))),t.add(h)}),this),u&&this._renderEndsText(t,u[1],s,c,a),Zl(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},rU.prototype._enableHoverLink=function(t,e){var n=this,i=(t.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")})),function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:LY(i.findTargetDataIndices(e),i)})})},rU.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;return"vertical"===e.orient?DY(t,this.api,t.itemSize):(t=e.align)&&"auto"!==t?t:"left"},rU.prototype._renderEndsText=function(t,e,n,i,o){var r,a;e&&(r=new Gn,a=this.visualMapModel.textStyleModel,r.add(new ia({style:{x:i?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:e,font:a.getFont(),fill:a.getTextColor()}})),t.add(r))},rU.prototype._getViewData=function(){var t=this.visualMapModel,e=l.H(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),i=t.get("orient");t=t.get("inverse");return("horizontal"===i?t:!t)?e.reverse():n=n&&n.slice().reverse(),{viewPieceList:e,endsText:n}},rU.prototype._createItemSymbol=function(t,e,n){t.add(Yg(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},rU.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=l.d(n.selected),o=e.getSelectedMapKey(t);"single"===n.selectedMode?(i[o]=!0,l.k(i,(function(t,e){i[e]=e===o}))):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})},rU.type="visualMap.piecewise";var aU=rU;function sU(t){t.registerComponentModel(oU),t.registerComponentView(aU),$Y(t)}var lU={label:{enabled:!0},decal:{show:!1}},uU=ki(),cU={};function hU(t,e){var n,i,o,r,a,s,u,c,h=t.getModel("aria");function p(t,e){if(!l.C(t))return t;var n=t;return l.k(e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}h.get("enabled")&&(u=l.d(lU),l.I(u.label,t.getLocaleModel().get("aria"),!1),l.I(h.option,u,!1),h.getModel("decal").get("show")&&(n=l.f(),t.eachSeries((function(t){var e;t.isColorBySeries()||((e=n.get(t.type))||n.set(t.type,e={}),uU(t).scope=e)})),t.eachRawSeries((function(e){var n,i,o,r,a,s,u;function c(t,e){return t=t?l.m(l.m({},e),t):e,t.dirty=!0,t}t.isSeriesFiltered(e)||(l.w(e.enableAriaDecal)?e.enableAriaDecal():(n=e.getData(),e.isColorBySeries()?(i=Ru(e.ecModel,e.name,cU,t.getSeriesCount()),o=n.getVisual("decal"),n.setVisual("decal",c(o,i))):(r=e.getRawData(),a={},s=uU(e).scope,n.each((function(t){var e=n.getRawIndex(t);a[e]=t})),u=r.count(),r.each((function(t){var i=a[t],o=(t=r.getName(t)||t+"",t=Ru(e.ecModel,t,s,u),n.getItemVisual(i,"decal"));n.setItemVisual(i,"decal",c(o,t))})))))}))),u=t.getLocaleModel().get("aria"),(c=h.getModel("label")).option=l.i(c.option,u),c.get("enabled")&&(u=e.getZr().dom,c.get("description")?u.setAttribute("aria-label",c.get("description")):(i=t.getSeriesCount(),o=c.get(["data","maxCount"])||10,h=c.get(["series","maxCount"])||10,r=Math.min(i,h),i<1||(h=(h=function(){var e=t.get("title");return e&&e.length&&(e=e[0]),e&&e.text}())?p(c.get(["general","withTitle"]),{title:h}):c.get(["general","withoutTitle"]),a=[],e=1o?n+=p(c.get(["data","partialData"]),{displayCnt:o}):n+=c.get(["data","allData"]),c.get(["data","separator","middle"])),g=(s=c.get(["data","separator","end"]),[]),y=0;y":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},fU=(gU.prototype.evaluate=function(t){var e=typeof t;return Object(l.C)(e)?this._condVal.test(t):!!Object(l.z)(e)&&this._condVal.test(t+"")},gU);function gU(t){null==(this._condVal=Object(l.C)(t)?new RegExp(t):Object(l.B)(t)?t:null)&&Eu("")}mU.prototype.evaluate=function(){return this.value};var yU=mU;function mU(){}xU.prototype.evaluate=function(){for(var t=this.children,e=0;eMath.abs(l),c=GU([a,l],u?0:1,e),h=(u?s:l)/c.length,p=0;pe.length),p=a?dX(s,a):dX(h?e:t,[h?t:e]),d=0,f=0;fmX))for(var i=n.getIndices(),o=function(t){for(var e=t.dimensions,n=0;n>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(n.slice(4),16)/15:1),f(t,e),e):void c(e,0,0,0,1):7===o||9===o?0<=(r=parseInt(n.slice(1,7),16))&&r<=16777215?(c(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(n.slice(7),16)/255:1),f(t,e),e):void c(e,0,0,0,1):void 0;var r=n.indexOf("("),l=n.indexOf(")");if(-1!==r&&l+1===o){o=n.substr(0,r);var u=n.substr(r+1,l-(r+1)).split(","),d=1;switch(o){case"rgba":if(4!==u.length)return 3===u.length?c(e,+u[0],+u[1],+u[2],1):c(e,0,0,0,1);d=s(u.pop());case"rgb":return 3!==u.length?void c(e,0,0,0,1):(c(e,a(u[0]),a(u[1]),a(u[2]),d),f(t,e),e);case"hsla":return 4!==u.length?void c(e,0,0,0,1):(u[3]=s(u[3]),y(u,e),f(t,e),e);case"hsl":return 3!==u.length?void c(e,0,0,0,1):(y(u,e),f(t,e),e);default:return}}c(e,0,0,0,1)}}function y(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=s(t[1]),r=s(t[2]);i=r<=.5?r*(i+1):r+i-r*i,r=2*r-i;return c(e=e||[],o(255*l(r,i,n+1/3)),o(255*l(r,i,n)),o(255*l(r,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function m(t,e){var n=g(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,255 */ e.read=function(t,e,n,i,o){var r,a,s=8*o-i-1,l=(1<>1,c=-7,h=n?o-1:0,p=n?-1:1;o=t[e+h];for(h+=p,r=o&(1<<-c)-1,o>>=-c,c+=s;0>=-c,c+=i;0>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:r-1,d=i?1:-1;r=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(i=Math.pow(2,-a))<1&&(a--,i*=2),2<=(e+=1<=a+c?h/i:h*Math.pow(2,1-c))*i&&(a++,i/=2),u<=a+c?(s=0,a=u):1<=a+c?(s=(e*i-1)*Math.pow(2,o),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,o),a=0));8<=o;t[n+p]=255&s,p+=d,s/=256,o-=8);for(a=a< * @license MIT */ var i=n("1fb5"),o=n("9152"),r=n("e3db");function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function f(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;var n=(t="string"!=typeof t?""+t:t).length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return D(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return L(t).length;default:if(i)return D(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,n){var o,r=!1;if((e=void 0===e||e<0?0:e)>this.length)return"";if((n=void 0===n||n>this.length?this.length:n)<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":var a=this,s=e,l=n,u=a.length;(!l||l<0||u=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=l.from(e,i)),l.isBuffer(e))return 0===e.length?-1:v(t,e,n,i,o);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(o?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(t,e,n):v(t,[e],n,i,o);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,i,o){var r=1,a=t.length,s=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;a/=r=2,s/=2,n/=2}function l(t,e){return 1===r?t[e]:t.readUInt16BE(e*r)}if(o)for(var u=-1,c=n;c>8,i%=256,o.push(i),o.push(n);return o}(e,t.length-n),t,n,i)}function b(t,e,n){n=Math.min(t.length,n);for(var i=[],o=e;o>>10&1023|55296),c=56320|1023&c),i.push(c),o+=h}var p=i,d=p.length;if(d<=w)return String.fromCharCode.apply(String,p);for(var f="",g=0;gn&&(t+=" ... ")),""},l.prototype.compare=function(t,e,n,i,o){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),(e=void 0===e?0:e)<0||n>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(o<=i&&n<=e)return 0;if(o<=i)return-1;if(n<=e)return 1;if(this===t)return 0;for(var r=(o>>>=0)-(i>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(r,a),u=this.slice(i,o),c=t.slice(e,n),h=0;hthis.length)throw new RangeError("Attempt to write outside buffer bounds");i=i||"utf8";for(var r,a,s,l=!1;;)switch(i){case"hex":var u=this,c=t,h=e,p=n,d=(h=Number(h)||0,u.length-h);if((!p||d<(p=Number(p)))&&(p=d),(d=c.length)%2!=0)throw new TypeError("Invalid hex string");d/2t.length)throw new RangeError("Index out of range")}function I(t,e,n,i){e<0&&(e=65535+e+1);for(var o=0,r=Math.min(t.length-n,2);o>>8*(i?o:1-o)}function O(t,e,n,i){e<0&&(e=4294967295+e+1);for(var o=0,r=Math.min(t.length-n,4);o>>8*(i?o:3-o)&255}function T(t,e,n,i){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function C(t,e,n,i,r){return r||T(t,0,n,4),o.write(t,e,n,i,23,4),n+4}function A(t,e,n,i,r){return r||T(t,0,n,8),o.write(t,e,n,i,52,8),n+8}l.prototype.slice=function(t,e){var n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):n>>8):I(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):O(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):O(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,n,i){t=+t,e|=0,i||M(this,t,e,n,(i=Math.pow(2,8*n-1))-1,-i);var o=0,r=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+n},l.prototype.writeIntBE=function(t,e,n,i){t=+t,e|=0,i||M(this,t,e,n,(i=Math.pow(2,8*n-1))-1,-i);var o=n-1,r=1,a=0;for(this[e+o]=255&t;0<=--o&&(r*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/r>>0)-a&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&(t=t<0?255+t+1:t),e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):O(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):O(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,n){return C(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return C(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return A(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return A(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,i){if(n=n||0,i||0===i||(i=this.length),e>=t.length&&(e=t.length),(i=0=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length);var o,r=(i=t.length-e>>=0,n=void 0===n?this.length:n>>>0,"number"==typeof(t=t||0))for(s=e;s>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function L(t){return i.toByteArray(function(t){var e;if((t=((e=t).trim?e.trim():e.replace(/^\s+|\s+$/g,"")).replace(k,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function P(t,e,n,i){for(var o=0;o=e.length||o>=t.length);++o)e[o+n]=t[o];return o}}).call(this,n("c8ba"))},d51b:function(t,e,n){"use strict";var i=function(t){this.value=t},o=(r.prototype.insert=function(t){return t=new i(t),this.insertEntry(t),t},r.prototype.insertEntry=function(t){this.head?((this.tail.next=t).prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r);function r(){this._len=0}function a(t){this._list=new o,this._maxSize=10,this._map={},this._maxSize=t}a.prototype.put=function(t,e){var n,o,r=this._list,a=this._map,s=null;return null==a[t]&&(o=r.len(),n=this._lastRemovedEntry,o>=this._maxSize&&0