!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).echarts={})}(this,function(t){"use strict";var h=function(t,e){return(h=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)};function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var c=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},w=new function(){this.browser=new c,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(w.wxa=!0,w.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?w.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(w.node=!0,w.svgSupported=!0):(J=navigator.userAgent,re=(Ft=w).browser,rt=J.match(/Firefox\/([\d.]+)/),T=J.match(/MSIE\s([\d.]+)/)||J.match(/Trident\/.+?rv:(([\d.]+))/),Q=J.match(/Edge?\/([\d.]+)/),J=/micromessenger/i.test(J),rt&&(re.firefox=!0,re.version=rt[1]),T&&(re.ie=!0,re.version=T[1]),Q&&(re.edge=!0,re.version=Q[1],re.newEdge=18<+Q[1].split(".")[0]),J&&(re.weChat=!0),Ft.svgSupported="undefined"!=typeof SVGRect,Ft.touchEventsSupported="ontouchstart"in window&&!re.ie&&!re.edge,Ft.pointerEventsSupported="onpointerdown"in window&&(re.edge||re.ie&&11<=+re.version),Ft.domSupported="undefined"!=typeof document,rt=document.documentElement.style,Ft.transform3dSupported=(re.ie&&"transition"in rt||re.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in rt)&&!("OTransition"in rt),Ft.transformSupported=Ft.transform3dSupported||re.ie&&9<=+re.version);var K="12px sans-serif";var p,m,v=function(t){var e={};if("undefined"!=typeof JSON)for(var n=0;n>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",o[u]+":0",i[1-l]+":auto",o[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}}return n}(e,r),r,o);if(e)return e(t,n,i),!0}return!1}function me(t){return"CANVAS"===t.nodeName.toUpperCase()}var ve=/([&<>"'])/g,_e={"&":"&","<":"<",">":">",'"':""","'":"'"};function xe(t){return null==t?"":(t+"").replace(ve,function(t,e){return _e[e]})}var be=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,we=[],Se=w.browser.firefox&&+w.browser.version.split(".")[0]<39;function Me(t,e,n,i){return n=n||{},i?Ie(t,e,n):Se&&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):Ie(t,e,n),n}function Ie(t,e,n){if(w.domSupported&&t.getBoundingClientRect){var i,o=e.clientX,e=e.clientY;if(me(t))return i=t.getBoundingClientRect(),n.zrX=o-i.left,void(n.zrY=e-i.top);if(ye(we,t,o,e))return n.zrX=we[0],void(n.zrY=we[1])}n.zrX=n.zrY=0}function Te(t){return t||window.event}function Ce(t,e,n){var i;return null==(e=Te(e)).zrX&&((i=e.type)&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&Me(t,i,e,n):(Me(t,e,e,n),i=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,t=t.deltaY;return null!=n&&null!=t?3*(0!==t?Math.abs(t):Math.abs(n))*(0=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},Qe.prototype.clone=function(){return new Qe(this.x,this.y,this.width,this.height)},Qe.prototype.copy=function(t){Qe.copy(this,t)},Qe.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},Qe.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Qe.prototype.isZero=function(){return 0===this.width||0===this.height},Qe.create=function(t){return new Qe(t.x,t.y,t.width,t.height)},Qe.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},Qe.applyTransform=function(t,e,n){var i,o,r,a;n?n[1]<1e-5&&-1e-5t.getWidth()||n<0||n>t.getHeight()}H(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){un.prototype[a]=function(t){var e,n,i=t.zrX,o=t.zrY,r=pn(this,i,o);if("mouseup"===a&&r||(n=(e=this.findHover(i,o)).target),"mousedown"===a)this._downEl=n,this._downPoint=[t.zrX,t.zrY],this._upEl=n;else if("mouseup"===a)this._upEl=n;else if("click"===a){if(this._downEl!==this._upEl||!this._downPoint||4>>1])<0?l=r:s=1+r;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;0>>1);0>>1);r(t,e[n+h])<0?l=h:a=h+1}return l}function _n(A,L){var P,O,N=fn,R=0,E=[];function e(t){var e=P[t],n=O[t],i=P[t+1],o=O[t+1],t=(O[t]=n+o,t===R-3&&(P[t+1]=P[t+2],O[t+1]=O[t+2]),R--,vn(A[i],A,e,n,0,L));if(e+=t,0!=(n-=t)&&0!==(o=mn(A[e+n-1],A,i,o,o-1,L)))if(n<=o){var r=e,a=n,t=i,s=o,l=0;for(l=0;lO[t+1])break;e(t)}},forceMergeRuns:function(){for(;1>=1;return t+e}(o);do{}while((r=gn(t,n,i,e))=this._maxSize&&0>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===i?parseInt(n.slice(4),16)/15:1),mi(t,e),e):void di(e,0,0,0,1):7===i||9===i?0<=(o=parseInt(n.slice(1,7),16))&&o<=16777215?(di(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===i?parseInt(n.slice(7),16)/255:1),mi(t,e),e):void di(e,0,0,0,1):void 0;var o=n.indexOf("("),r=n.indexOf(")");if(-1!==o&&r+1===i){var i=n.substr(0,o),a=n.substr(o+1,r-(o+1)).split(","),s=1;switch(i){case"rgba":if(4!==a.length)return 3===a.length?di(e,+a[0],+a[1],+a[2],1):di(e,0,0,0,1);s=hi(a.pop());case"rgb":return 3<=a.length?(di(e,ui(a[0]),ui(a[1]),ui(a[2]),3===a.length?s:hi(a[3])),mi(t,e),e):void di(e,0,0,0,1);case"hsla":return 4!==a.length?void di(e,0,0,0,1):(a[3]=hi(a[3]),_i(a,e),mi(t,e),e);case"hsl":return 3!==a.length?void di(e,0,0,0,1):(_i(a,e),mi(t,e),e);default:return}}di(e,0,0,0,1)}}function _i(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=hi(t[1]),o=hi(t[2]),i=o<=.5?o*(i+1):o+i-o*i,o=2*o-i;return di(e=e||[],si(255*ci(o,i,n+1/3)),si(255*ci(o,i,n)),si(255*ci(o,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function xi(t,e){var n=vi(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,255e);g++);g=f(g-1,h-2)}i=u[g+1],n=u[g]}n&&i&&(this._lastFr=g,this._lastFrP=e,d=i.percent-n.percent,o=0==d?1:f((e-n.percent)/d,1),i.easingFunc&&(o=i.easingFunc(o)),f=a?this._additiveValue:p?Bi:t[c],(zi(l)||p)&&(f=f||(this._additiveValue=[])),this.discrete?t[c]=(o<1?n:i).rawValue:zi(l)?(1===l?Li:function(t,e,n,i){for(var o=e.length,r=o&&e[0].length,a=0;athis._sleepAfterStill)&&this.animation.stop()},Jo.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},Jo.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},Jo.prototype.refreshHover=function(){this._needsRefreshHover=!0},Jo.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},Jo.prototype.resize=function(t){this._disposed||(this.painter.resize((t=t||{}).width,t.height),this.handler.resize())},Jo.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},Jo.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},Jo.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},Jo.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},Jo.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},Jo.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},Jo.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},Jo.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},Jo.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;el&&(l=s[h],u=h);++r[u],s[u]=0,++a}return B(r,function(t){return t/i})}function pr(t){var e=2*Math.PI;return(t%e+e)%e}function dr(t){return-1e-4=e.maxIterations){t+=e.ellipsis;break}var s=0===a?function(t,e,n,i){for(var o=0,r=0,a=t.length;rr){0i.width&&(r=e.split("\n"),c=!0),i.accumWidth=t):(t=_a(e,h,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(Ha.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},i.prototype.bezierCurveTo=function(t,e,n,i,o,r){return this._drawPendingPt(),this.addData(Ha.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},i.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Ha.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},i.prototype.arc=function(t,e,n,i,o,r){return this._drawPendingPt(),is[0]=i,is[1]=o,rs(is,r),this.addData(Ha.A,t,e,n,n,i=is[0],(o=is[1])-i,0,r?0:1),this._ctx&&this._ctx.arc(t,e,n,i,o,r),this._xi=$a(o)*n+t,this._yi=Qa(o)*n+e,this},i.prototype.arcTo=function(t,e,n,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,o),this},i.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Ha.R,t,e,n,i),this},i.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ha.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},i.prototype.fill=function(t){t&&t.fill(),this.toStatic()},i.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},i.prototype.len=function(){return this._len},i.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!ns||(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var h=0;hn||Ja(y)>i||c===e-1)&&(f=Math.sqrt(C*C+y*y),o=g,r=_);break;case Ha.C:var m=t[c++],v=t[c++],g=t[c++],_=t[c++],x=t[c++],b=t[c++],f=function(t,e,n,i,o,r,a,s,l){for(var u=t,h=e,c=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=Vn(t,n,o,a,f),f=Vn(e,i,r,s,f),y=g-u,m=f-h;c+=Math.sqrt(y*y+m*m),u=g,h=f}return c}(o,r,m,v,g,_,x,b,10),o=x,r=b;break;case Ha.Q:f=function(t,e,n,i,o,r,a){for(var s=t,l=e,u=0,h=1/a,c=1;c<=a;c++){var p=c*h,d=Un(t,n,o,p),p=Un(e,i,r,p),f=d-s,g=p-l;u+=Math.sqrt(f*f+g*g),s=d,l=p}return u}(o,r,m=t[c++],v=t[c++],g=t[c++],_=t[c++],10),o=g,r=_;break;case Ha.A:var x=t[c++],b=t[c++],w=t[c++],S=t[c++],M=t[c++],I=t[c++],T=I+M;c+=1,d&&(a=$a(M)*w+x,s=Qa(M)*S+b),f=Ka(w,S)*ja(es,Math.abs(I)),o=$a(T)*w+x,r=Qa(T)*S+b;break;case Ha.R:a=o=t[c++],s=r=t[c++];f=2*t[c++]+2*t[c++];break;case Ha.Z:var C=a-o,y=s-r;f=Math.sqrt(C*C+y*y),o=a,r=s}0<=f&&(u+=l[h++]=f)}return this._pathLen=u},i.prototype.rebuildPath=function(t,e){var n,i,o,r,a,s,l,u,h=this.data,E=this._ux,z=this._uy,B=this._len,c=e<1,p=0,d=0,f=0;if(!c||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var g=0;g=gs[i=0]+t&&a<=gs[1]+t?h:0;oMath.PI/2&&c<1.5*Math.PI?-h:h)}return l}(y,m,_,x,x+b,w,I,o);u=Math.cos(x+b)*v+y,h=Math.sin(x+b)*_+m;break;case ps.R:c=u=a[d++],p=h=a[d++];if(S=c+a[d++],M=p+a[d++],n){if(ss(c,p,S,p,e,i,o)||ss(S,p,S,M,e,i,o)||ss(S,M,c,M,e,i,o)||ss(c,M,c,p,e,i,o))return!0}else l=(l+=cs(S,p,S,M,i,o))+cs(c,M,c,p,i,o);break;case ps.Z:if(n){if(ss(u,h,c,p,e,i,o))return!0}else l+=cs(u,h,c,p,i,o);u=c,h=p}}return n||(t=h,r=p,Math.abs(t-r)i.len()&&(uMath.abs(i[1])?0':'':{renderMode:o,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function Vp(t,e){return e=e||"transparent",X(t)?t:P(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Gp(t,e){var n;"_blank"===e||"blank"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}var Hp=H,Wp=["left","right","top","bottom","width","height"],Xp=[["width","left","right"],["height","top","bottom"]];function Yp(a,s,l,u,h){var c=0,p=0,d=(null==u&&(u=1/0),null==h&&(h=1/0),0);s.eachChild(function(t,e){var n,i,o,r=t.getBoundingRect(),e=s.childAt(e+1),e=e&&e.getBoundingRect();d="horizontal"===a?(i=r.width+(e?-e.x+r.x:0),u<(n=c+i)||t.newline?(c=0,n=i,p+=d+l,r.height):Math.max(d,r.height)):(i=r.height+(e?-e.y+r.y:0),h<(o=p+i)||t.newline?(c+=d+l,p=0,o=i,r.width):Math.max(d,r.width)),t.newline||(t.x=c,t.y=p,t.markRedraw(),"horizontal"===a?c=n+l:p=o+l)})}var Up=Yp;function Zp(t,e,n){n=Np(n||0);var i=e.width,o=e.height,r=q(t.left,i),a=q(t.top,o),e=q(t.right,i),s=q(t.bottom,o),l=q(t.width,i),u=q(t.height,o),h=n[2]+n[0],c=n[1]+n[3],p=t.aspect;switch(isNaN(l)&&(l=i-e-c-r),isNaN(u)&&(u=o-s-h-a),null!=p&&(isNaN(l)&&isNaN(u)&&(i/oe)return t[i];return t[n-1]}var Ad,Ld="\0_ec_inner",Pd=(u(Od,Ad=Zc),Od.prototype.init=function(t,e,n,i,o,r){i=i||{},this.option=null,this._theme=new Zc(i),this._locale=new Zc(o),this._optionManager=r},Od.prototype.setOption=function(t,e,n){e=Ed(e);this._optionManager.setOption(t,n,e),this._resetOption(null,e)},Od.prototype.resetOption=function(t,e){return this._resetOption(t,Ed(e))},Od.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)):Id(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&&H(n,function(t){i=!0,this._mergeOption(t,e)},this),i},Od.prototype.mergeOption=function(t){this._mergeOption(t,null)},Od.prototype._mergeOption=function(i,t){var o=this.option,h=this._componentsMap,c=this._componentsCount,n=[],r=N(),p=t&&t.replaceMergeMainTypeMap;yd(this).datasetMap=N(),H(i,function(t,e){null!=t&&(g.hasClass(e)?e&&(n.push(e),r.set(e,!0)):o[e]=null==o[e]?y(t):d(o[e],t,!0))}),p&&p.each(function(t,e){g.hasClass(e)&&!r.get(e)&&(n.push(e),r.set(e,!0))}),g.topologicalTravel(n,g.getAllClassMainTypes(),function(r){var a,t=function(t,e,n){return(e=(e=wd.get(e))&&e(t))?n.concat(e):n}(this,r,Ir(i[r])),e=h.get(r),n=e?p&&p.get(r)?"replaceMerge":"normalMerge":"replaceAll",e=kr(e,t,n),s=(Rr(e,r,g),o[r]=null,h.set(r,null),c.set(r,0),[]),l=[],u=0;H(e,function(t,e){var n=t.existing,i=t.newOption;if(i){var o=g.getClass(r,t.keyInfo.subType,!("series"===r));if(!o)return;if("tooltip"===r){if(a)return;a=!0}n&&n.constructor===o?(n.name=t.keyInfo.name,n.mergeOption(i,this),n.optionUpdated(i,!1)):(e=V({componentIndex:e},t.keyInfo),V(n=new o(i,this,this,e),e),t.brandNew&&(n.__requireNewView=!0),n.init(i,this,this),n.optionUpdated(null,!0))}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(s.push(n.option),l.push(n),u++):(s.push(void 0),l.push(void 0))},this),o[r]=s,h.set(r,l),c.set(r,u),"series"===r&&Sd(this)},this),this._seriesIndices||Sd(this)},Od.prototype.getOption=function(){var a=y(this.option);return H(a,function(t,e){if(g.hasClass(e)){for(var n=Ir(t),i=n.length,o=!1,r=i-1;0<=r;r--)n[r]&&!Nr(n[r])?o=!0:(n[r]=null,o||i--);n.length=i,a[e]=n}}),delete a[Ld],a},Od.prototype.getTheme=function(){return this._theme},Od.prototype.getLocaleModel=function(){return this._locale},Od.prototype.setUpdatePayload=function(t){this._payload=t},Od.prototype.getUpdatePayload=function(){return this._payload},Od.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){t=n[e||0];if(t)return t;if(null==e)for(var i=0;ig[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},l.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,o=this._chunks,r=this._dimensions,a=r.length,s=this._rawExtent,l=B(r,function(t){return t.property}),u=0;uf[1]&&(f[1]=g)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},l.prototype.count=function(){return this._count},l.prototype.get=function(t,e){return 0<=e&&e=this._rawCount||t<0)){if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return r;o=r-1}}}return-1},l.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],o=[];if(i){null==n&&(n=1/0);for(var r=1/0,a=-1,s=0,l=0,u=this.count();lt[S][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(f))}return sy[1]&&(y[1]=g)}}}},l.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(Mg(this._rawCount))(Math.min(2*(Math.ceil(r/s)+2),r));u[a++]=l;for(var h=1;hh[1]&&(h[1]=y),c[p++]=m}return o._count=p,o._indices=c,o._updateGetRawIdx(),o},l.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,o=0,r=this.count();o'+xe(u)+""+h,t))}function Hg(t,e,n,i){var o,r,a,s,l=t.renderMode,u=e.noName,h=e.noValue,c=!e.markerType,p=e.name,d=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(t){return B(t=F(t)?t:[t],function(t,e){return Rp(t,F(r)?r[e]:r,d)})};if(!u||!h)return o=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",l),p=u?"":Rp(p,"ordinal",d),r=e.valueType,f=h?[]:f(e.value,e.dataIndex),e=!c||!u,a=!c&&u,i=Rg(i,l),s=i.nameStyle,i=i.valueStyle,"richText"===l?(c?"":o)+(u?"":Yg(t,p,s))+(h?"":function(t,e,n,i,o){o=[o],i=i?10:20;return n&&o.push({padding:[0,0,0,i],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(F(e)?e.join(" "):e,o)}(t,f,e,a,i)):Xg((c?"":o)+(u?"":''+xe(p)+"")+(h?"":function(t,e,n,i){n=n?"10px":"20px",e=e?"float:right;margin-left:"+n:"";return t=F(t)?t:[t],''+B(t,xe).join("  ")+""}(f,e,a,i)),n)}function Wg(t,e,n,i,o,r){if(t)return Vg(t)({useUTC:o,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,r)}function Xg(t,e){return'
'+t+'
'}function Yg(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Ug(t,e){return Vp(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function Zg(t,e){t=t.get("padding");return null!=t?t:"richText"===e?[8,10]:10}jg.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},jg.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,e=Fp({color:e,type:t,renderMode:n,markerId:i});return X(e)?e:(this.richTextStyles[i]=e.style,e.content)},jg.prototype.wrapRichTextStyle=function(t,e){var n={},e=(F(e)?H(e,function(t){return V(n,t)}):V(n,e),this._generateStyleName());return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"};var qg=jg;function jg(){this.richTextStyles={},this._nextStyleNameId=br()}function Kg(t){var e,n,i,o,r,a,s,l,u,h,c,p=t.series,d=t.dataIndex,t=t.multipleSeries,f=p.getData(),g=f.mapDimensionsAll("defaultedTooltip"),y=g.length,m=p.getRawValue(d),v=F(m),_=Ug(p,d);function x(t,e){e=s.getDimensionInfo(e);e&&!1!==e.otherDims.tooltip&&(l?c.push(Bg("nameValue",{markerType:"subItem",markerColor:a,name:e.displayName,value:t,valueType:e.type})):(u.push(t),h.push(e.type)))}1this.getShallow("animationThreshold")?!1:t)},o.prototype.restoreData=function(){this.dataTask.dirty()},o.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return Cd.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},o.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},o.prototype.getProgressive=function(){return this.get("progressive")},o.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},o.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},o.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(e);if("series"===i||"all"===n)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var r=0;re.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function ry(e,n){H(Nt(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,M(ay,n))})}function ay(t,e){t=sy(t);return t&&t.setOutputEnd((e||this).count()),e}function sy(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}st(ty,Xc),st(ty,Cd),Kr(ty,g);uy.prototype.init=function(t,e){},uy.prototype.render=function(t,e,n,i){},uy.prototype.dispose=function(t,e){},uy.prototype.updateView=function(t,e,n,i){},uy.prototype.updateLayout=function(t,e,n,i){},uy.prototype.updateVisual=function(t,e,n,i){},uy.prototype.toggleBlurSeries=function(t,e,n){},uy.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var ly=uy;function uy(){this.group=new Zo,this.uid=Kc("viewComponent")}function hy(){var r=zr();return function(t){var e=r(t),t=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!(!t||!t.large),e=e.progressiveRender=!(!t||!t.progressiveRender);return!(n==o&&i==e)&&"reset"}}jr(ly),ta(ly);var cy=zr(),py=hy(),dy=(fy.prototype.init=function(t,e){},fy.prototype.render=function(t,e,n,i){},fy.prototype.highlight=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&yy(t,i,"emphasis")},fy.prototype.downplay=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&yy(t,i,"normal")},fy.prototype.remove=function(t,e){this.group.removeAll()},fy.prototype.dispose=function(t,e){},fy.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},fy.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},fy.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},fy.prototype.eachRendered=function(t){vc(this.group,t)},fy.markUpdateMethod=function(t,e){cy(t).updateMethod=e},fy.protoInitialize=void(fy.prototype.type="chart"),fy);function fy(){this.group=new Zo,this.uid=Kc("viewChart"),this.renderTask=Hf({plan:my,reset:vy}),this.renderTask.context={view:this}}function gy(t,e,n){t&&$l(t)&&("emphasis"===e?Ol:Nl)(t,n)}function yy(e,t,n){var i,o=Er(e,t),r=t&&null!=t.highlightKey?(t=t.highlightKey,i=null==(i=ol[t])&&il<=32?ol[t]=il++:i):null;null!=o?H(Ir(o),function(t){gy(e.getItemGraphicEl(t),n,r)}):e.eachItemGraphicEl(function(t){gy(t,n,r)})}function my(t){return py(t.model)}function vy(t){var e=t.model,n=t.ecModel,i=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,t=t.view,a=o&&cy(o).updateMethod,r=r?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==r&&t[r](e,n,i,o),_y[r]}jr(dy),ta(dy);var _y={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},xy="\0__throttleOriginMethod",by="\0__throttleRate",wy="\0__throttleType";function Sy(t,o,r){var a,s,l,u,h,c=0,p=0,d=null;function f(){p=(new Date).getTime(),d=null,t.apply(l,u||[])}o=o||0;function e(){for(var t=[],e=0;en.blockIndex?n.step:null,modBy:null!=(t=i&&i.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},Ny.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},Ny.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),e=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:i,large:o}},Ny.prototype.restorePipelines=function(t){var i=this,o=i._pipelineMap=N();t.eachSeries(function(t){var e=t.getProgressive(),n=t.uid;o.set(n,{id:n,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:e&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(e||700),count:0}),i._pipe(t,t.dataTask)})},Ny.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),o=this.api;H(this._allHandlers,function(t){var e=n.get(t.uid)||n.set(t.uid,{});Mt(!(t.reset&&t.overallReset),""),t.reset&&this._createSeriesStageTask(t,e,i,o),t.overallReset&&this._createOverallStageTask(t,e,i,o)},this)},Ny.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)},Ny.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},Ny.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},Ny.prototype._performStageTasks=function(t,s,l,u){u=u||{};var h=!1,c=this;function p(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}H(t,function(i,t){var e,n,o,r,a;u.visualType&&u.visualType!==i.visualType||(e=(n=c._stageTaskMap.get(i.uid)).seriesTaskMap,(n=n.overallTask)?((r=n.agentStubMap).each(function(t){p(u,t)&&(t.dirty(),o=!0)}),o&&n.dirty(),c.updatePayload(n,l),a=c.getPerformArgs(n,u.block),r.each(function(t){t.perform(a)}),n.perform(a)&&(h=!0)):e&&e.each(function(t,e){p(u,t)&&t.dirty();var n=c.getPerformArgs(t,u.block);n.skip=!i.performRawSeries&&s.isSeriesFiltered(t.context.model),c.updatePayload(t,l),t.perform(n)&&(h=!0)}))}),this.unfinished=h||this.unfinished},Ny.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},Ny.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())})},Ny.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},Ny.prototype._createSeriesStageTask=function(n,t,i,o){var r=this,a=t.seriesTaskMap,s=t.seriesTaskMap=N(),t=n.seriesType,e=n.getTargetSeries;function l(t){var e=t.uid,e=s.set(e,a&&a.get(e)||Hf({plan:Fy,reset:Vy,count:Wy}));e.context={model:t,ecModel:i,api:o,useClearVisual:n.isVisual&&!n.isLayout,plan:n.plan,reset:n.reset,scheduler:r},r._pipe(t,e)}n.createOnAllSeries?i.eachRawSeries(l):t?i.eachRawSeriesByType(t,l):e&&e(i,o).each(l)},Ny.prototype._createOverallStageTask=function(t,e,n,i){var o=this,r=e.overallTask=e.overallTask||Hf({reset:Ry}),a=(r.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o},r.agentStubMap),s=r.agentStubMap=N(),e=t.seriesType,l=t.getTargetSeries,u=!0,h=!1;function c(t){var e=t.uid,e=s.set(e,a&&a.get(e)||(h=!0,Hf({reset:Ey,onDirty:By})));e.context={model:t,overallProgress:u},e.agent=r,e.__block=u,o._pipe(t,e)}Mt(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,c):l?l(n,i).each(c):(u=!1,H(n.getSeries(),c)),h&&r.dirty()},Ny.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},Ny.wrapStageHandler=function(t,e){return(t=C(t)?{overallReset:t,seriesType:function(t){Xy=null;try{t(Yy,Uy)}catch(t){}return Xy}(t)}:t).uid=Kc("stageHandler"),e&&(t.visualType=e),t};var Oy=Ny;function Ny(t,e,n,i){this._stageTaskMap=N(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function Ry(t){t.overallReset(t.ecModel,t.api,t.payload)}function Ey(t){return t.overallProgress&&zy}function zy(){this.agent.dirty(),this.getDownstream().dirty()}function By(){this.agent&&this.agent.dirty()}function Fy(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Vy(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=Ir(t.reset(t.model,t.ecModel,t.api,t.payload));return 1'+t.dom+""}),f.painter.getSvgRoot().innerHTML=g,i.connectedBackgroundColor&&f.painter.setBackgroundColor(i.connectedBackgroundColor),f.refreshImmediately(),f.painter.toDataURL()):(i.connectedBackgroundColor&&f.add(new Vs({shape:{x:0,y:0,width:t,height:n},style:{fill:i.connectedBackgroundColor}})),H(p,function(t){t=new Ls({style:{x:t.left*e-l,y:t.top*e-u,image:t.dom}});f.add(t)}),f.refreshImmediately(),d.toDataURL("image/"+(i&&i.type||"png")))):this.getDataURL(i);this.id},r.prototype.convertToPixel=function(t,e){return d0(this,"convertToPixel",t,e)},r.prototype.convertFromPixel=function(t,e){return d0(this,"convertFromPixel",t,e)},r.prototype.containPixel=function(t,i){var o;if(!this._disposed)return H(Fr(this._model,t),function(t,n){0<=n.indexOf("Models")&&H(t,function(t){var e=t.coordinateSystem;e&&e.containPoint?o=o||!!e.containPoint(i):"seriesModels"===n&&(e=this._chartsMap[t.__viewId])&&e.containPoint&&(o=o||e.containPoint(i,t))},this)},this),!!o;this.id},r.prototype.getVisual=function(t,e){var t=Fr(this._model,t,{defaultMainType:"series"}),n=t.seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;if(null==t)return em(n,e);var i=n,o=t,r=e;switch(r){case"color":return i.getItemVisual(o,"style")[i.getVisual("drawType")];case"opacity":return i.getItemVisual(o,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return i.getItemVisual(o,r)}},r.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},r.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},r.prototype._initEvents=function(){var t,n,i,s=this;H(N0,function(a){function t(t){var n,e,i,o=s.getModel(),r=t.target;"globalout"===a?n={}:r&&om(r,function(t){var e,t=D(t);return t&&null!=t.dataIndex?(e=t.dataModel||o.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType,r)||{},1):t.eventData&&(n=V({},t.eventData),1)},!0),n&&(e=n.componentType,i=n.componentIndex,"markLine"!==e&&"markPoint"!==e&&"markArea"!==e||(e="series",i=n.seriesIndex),i=(e=e&&null!=i&&o.getComponent(e,i))&&s["series"===e.mainType?"_chartsMap":"_componentsMap"][e.__viewId],n.event=t,n.type=a,s._$eventProcessor.eventInfo={targetEl:r,packedEvent:n,model:e,view:i},s.trigger(a,n))}t.zrEventfulCallAtLast=!0,s._zr.on(a,t,s)}),H(E0,function(t,e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),H(["selectchanged"],function(e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),t=this._messageCenter,i=(n=this)._api,t.on("selectchanged",function(t){var e=i.getModel();t.isFromClick?(im("map","selectchanged",n,e,t),im("pie","selectchanged",n,e,t)):"select"===t.fromAction?(im("map","selected",n,e,t),im("pie","selected",n,e,t)):"unselect"===t.fromAction&&(im("map","unselected",n,e,t),im("pie","unselected",n,e,t))})},r.prototype.isDisposed=function(){return this._disposed},r.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},r.prototype.dispose=function(){var t,e,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&Wr(this.getDom(),U0,""),e=(t=this)._api,n=t._model,H(t._componentsViews,function(t){t.dispose(n,e)}),H(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 H0[t.id])},r.prototype.resize=function(t){if(!this[Qm])if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var e=e.resetOption("media"),n=t&&t.silent;this[Jm]&&(null==n&&(n=this[Jm].silent),e=!0,this[Jm]=null),this[Qm]=!0;try{e&&u0(this),p0.update.call(this,{type:"resize",animation:V({duration:0},t&&t.animation)})}catch(t){throw this[Qm]=!1,t}this[Qm]=!1,y0.call(this,n),m0.call(this,n)}}},r.prototype.showLoading=function(t,e){this._disposed?this.id:(P(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),G0[t]&&(t=G0[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},r.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},r.prototype.makeActionFromEvent=function(t){var e=V({},t);return e.type=E0[t.type],e},r.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(P(e)||(e={silent:!!e}),R0[t.type]&&this._model&&(this[Qm]?this._pendingActions.push(t):(n=e.silent,g0.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&w.browser.weChat&&this._throttledZrFlush(),y0.call(this,n),m0.call(this,n))))},r.prototype.updateLabelLayout=function(){Km.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},r.prototype.appendData=function(t){var e;this._disposed?this.id:(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},r.internalField=(u0=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),h0(t,!0),h0(t,!1),e.plan()},h0=function(t,o){for(var r=t._model,a=t._scheduler,s=o?t._componentsViews:t._chartsViews,l=o?t._componentsMap:t._chartsMap,u=t._zr,h=t._api,e=0;es.get("hoverLayerThreshold")&&!w.node&&!w.worker&&s.eachSeries(function(t){t.preventUsingHoverLayer||(t=i._chartsMap[t.__viewId]).__alive&&t.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}),Km.trigger("series:afterupdate",t,e,n)},I0=function(t){t[t0]=!0,t.getZr().wakeUp()},T0=function(t){t[t0]&&(t.getZr().storage.traverse(function(t){Hh(t)||A0(t)}),t[t0]=!1)},S0=function(n){return u(t,e=zd),t.prototype.getCoordinateSystems=function(){return n._coordSysMgr.getCoordinateSystems()},t.prototype.getComponentByElement=function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return n._model.getComponent(e.mainType,e.index);t=t.parent}},t.prototype.enterEmphasis=function(t,e){Ol(t,e),I0(n)},t.prototype.leaveEmphasis=function(t,e){Nl(t,e),I0(n)},t.prototype.enterBlur=function(t){Rl(t),I0(n)},t.prototype.leaveBlur=function(t){El(t),I0(n)},t.prototype.enterSelect=function(t){zl(t),I0(n)},t.prototype.leaveSelect=function(t){Bl(t),I0(n)},t.prototype.getModel=function(){return n.getModel()},t.prototype.getViewOfComponentModel=function(t){return n.getViewOfComponentModel(t)},t.prototype.getViewOfSeriesModel=function(t){return n.getViewOfSeriesModel(t)},new t(n);function t(){return null!==e&&e.apply(this,arguments)||this}var e},void(M0=function(i){function o(t,e){for(var n=0;ne[1]&&(e[1]=t[1])},qv.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},qv.prototype.getExtent=function(){return this._extent.slice()},qv.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},qv.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},qv.prototype.isBlank=function(){return this._isBlank},qv.prototype.setBlank=function(t){this._isBlank=t};var Zv=qv;function qv(t){this._setting=t||{},this._extent=[1/0,-1/0]}ta(Zv);var jv=0,Kv=($v.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&B(e,Qv);return new $v({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},$v.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},$v.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return X(t)||i?(i&&!this._deduplication?(n=this.categories.length,this.categories[n]=t):null==(n=(e=this._getOrCreateMap()).get(t))&&(i?(n=this.categories.length,this.categories[n]=t,e.set(t,n)):n=NaN),n):t},$v.prototype._getOrCreateMap=function(){return this._map||(this._map=N(this.categories))},$v);function $v(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++jv}function Qv(t){return P(t)&&null!=t.value?t.value:t+""}function Jv(t){return"interval"===t.type||"log"===t.type}function t_(t,e,n,i){var o={},r=t[1]-t[0],r=o.interval=vr(r/e,!0),e=(null!=n&&ri[1]&&(i[0]=i[1]),o}function e_(t){var e=Math.pow(10,mr(t)),t=t/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,ar(t*e)}function n_(t){return lr(t)+2}function i_(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function o_(t,e){return t>=e[0]&&t<=e[1]}function r_(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function a_(t,e){return t*(e[1]-e[0])+e[0]}u(u_,s_=Zv),u_.prototype.parse=function(t){return null==t?NaN:X(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},u_.prototype.contain=function(t){return o_(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},u_.prototype.normalize=function(t){return r_(t=this._getTickNumber(this.parse(t)),this._extent)},u_.prototype.scale=function(t){return t=Math.round(a_(t,this._extent)),this.getRawOrdinalNumber(t)},u_.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},u_.prototype.getMinorTicks=function(t){},u_.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},u_.prototype.getOrdinalMeta=function(){return this._ordinalMeta},u_.prototype.calcNiceTicks=function(){},u_.prototype.calcNiceExtent=function(){},u_.type="ordinal";var s_,l_=u_;function u_(t){var t=s_.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return F(e=e||new Kv({}))&&(e=new Kv({categories:B(e,function(t){return P(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}Zv.registerClass(l_);var h_,c_=ar,p_=(u(d_,h_=Zv),d_.prototype.parse=function(t){return t},d_.prototype.contain=function(t){return o_(t,this._extent)},d_.prototype.normalize=function(t){return r_(t,this._extent)},d_.prototype.scale=function(t){return a_(t,this._extent)},d_.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},d_.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},d_.prototype.getInterval=function(){return this._interval},d_.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=n_(t)},d_.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,r=[];if(e){n[0]s&&r.push(t?{value:c_(s+e,o)}:{value:n[1]})}return r},d_.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),o=1;oi[0]&&h=M[0]&&d<=M[1]&&a++)}u=(M[1]-M[0])/w;if(1.5*u=M[0]&&t.value<=M[1]&&!t.notAdd})}),function(t){return 0n&&(this._approxInterval=n),k_.length),t=Math.min(function(t,e,n,i){for(;n>>1;t[o][1]>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);i.push([(o=s+=o)/n,(r=l+=r)/n])}return i}function w1(t,r){var e,n,o;return B(ht((t=(e=t).UTF8Encoding?(null==(o=(n=e).UTF8Scale)&&(o=1024),H(n.features,function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=b1(i,n,o);break;case"Polygon":case"MultiLineString":x1(i,n,o);break;case"MultiPolygon":H(i,function(t,e){return x1(t,n[e],o)})}}),n.UTF8Encoding=!1,n):e).features,function(t){return t.geometry&&t.properties&&0l[1],h(n[0].coord,l[0])&&(t?n[0].coord=l[0]:n.shift()),t&&h(l[0],n[0].coord)&&n.unshift({coord:l[0]}),h(l[1],i.coord)&&(t?i.coord=l[1]:n.pop()),t)&&h(i.coord,l[1])&&n.push({coord:l[1]}),u},O1.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),B(this.scale.getMinorTicks(t=0=u}}for(var r,a=this.__startIndex;ao[0]){for(l=0;lt);l++);s=i[o[l]]}o.splice(l+1,0,t),(i[t]=e).virtual||(s?(n=s.dom).nextSibling?a.insertBefore(e.dom,n.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.painter||(e.painter=this)}},Sx.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;ie&&(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"),h=Mc(i),l=(Sc(t,h,{labelFetcher:r,labelDataIndex:n,defaultText:Zx(r.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:u}),t.getTextContent()),h=(s&&l&&(s=i.get(["label","position"]),t.textConfig.inside="middle"===s||null,function(t,e,n,i){if(Y(i))t.setTextConfig({rotation:i});else if(F(e))t.setTextConfig({rotation:0});else{var o,i=t.shape,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?u:s,cb(a),i.get(["label","rotate"]))),u=l,s=h,a=r.getRawValue(n),l=function(t){return qx(e,t)},u&&((u=Pc(u)).prevValue=u.value,u.value=a,a=s.normal,u.valueAnimation=a.get("valueAnimation"),u.valueAnimation)&&(u.precision=a.get("precision"),u.defaultInterpolatedText=l,u.statesModels=s),i.getModel(["emphasis"]));Ul(t,h.get("focus"),h.get("blurScope"),h.get("disabled")),jl(t,i),null!=(r=o).startAngle&&null!=r.endAngle&&r.startAngle===r.endAngle&&(t.style.fill="none",t.style.stroke="none",H(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var db,fb=function(){},gb=(u(yb,db=j),yb.prototype.getDefaultShape=function(){return new fb},yb.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,o=1-this.baseDimIdx,r=[],a=[],s=this.barWidth,l=0;le[u-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;return{coord:n,color:Si((n-i)/(e.coord-i),[t.color,e.color])}}for(var s=0;si)return;return 1}(a,e))return o=e.mapDimension(a.dim),r={},H(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue);r[t]=1}),function(t){return!r.hasOwnProperty(e.get(o,t))}}}function ew(t){for(var e,n,i=t.length/2;0l?x:_,(g=Math.abs(d.label.y-l))>=f.maxY&&(m=d.label.x-s-d.len2*h,y=u+d.len,m=Math.abs(m)t.unconstrainedWidth)?null:s,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 S,M,I=t.getData(),T=[],C=!1,D=(t.get("minShowLabelAngle")||0)*fw,e=I.getLayout("viewRect"),k=I.getLayout("r"),A=e.width,L=e.x,n=e.y,e=e.height;function P(t){t.ignore=!0}if(I.each(function(t){var e,n,i,o,r,a,s,l,u,h,c=I.getItemGraphicEl(t),p=c.shape,d=c.getTextContent(),f=c.getTextGuideLine(),t=I.getItemModel(t),g=t.getModel("label"),y=g.get("position")||t.get(["emphasis","label","position"]),m=g.get("distanceToLabelLine"),v=g.get("alignTo"),_=q(g.get("edgeDistance"),A),x=g.get("bleedMargin"),t=t.getModel("labelLine"),b=q(t.get("length"),A),w=q(t.get("length2"),A);Math.abs(p.endAngle-p.startAngle)=e.r0},Mw.type="pie";var ww,Sw=Mw;function Mw(){var t=null!==ww&&ww.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}function Iw(t,e,n){e=F(e)?{coordDimensions:e}:V({encodeDefine:t.getEncode()},e);var i=t.getSource(),e=Fv(i,e).dimensions,e=new Bv(e,t);return e.initData(i,n),e}Cw.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},Cw.prototype.containName=function(t){return 0<=this._getRawData().indexOfName(t)},Cw.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},Cw.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)};var Tw=Cw;function Cw(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}var Dw,kw=zr(),Aw=(u(Lw,Dw=ty),Lw.prototype.init=function(t){Dw.prototype.init.apply(this,arguments),this.legendVisualProvider=new Tw(S(this.getData,this),S(this.getRawData,this)),this._defaultLabelLine(t)},Lw.prototype.mergeOption=function(){Dw.prototype.mergeOption.apply(this,arguments)},Lw.prototype.getInitialData=function(){return Iw(this,{coordDimensions:["value"],encodeDefaulter:M(vd,this)})},Lw.prototype.getDataParams=function(t){var e,n=this.getData(),i=kw(n),o=i.seats,i=(o||(e=[],n.each(n.mapDimension("value"),function(t){e.push(t)}),o=i.seats=cr(e,n.hostModel.get("percentPrecision"))),Dw.prototype.getDataParams.call(this,t));return i.percent=o[t]||0,i.$vars.push("percent"),i},Lw.prototype._defaultLabelLine=function(t){Tr(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},Lw.type="series.pie",Lw.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},Lw);function Lw(){return null!==Dw&&Dw.apply(this,arguments)||this}function Pw(t){t.eachSeriesByType("radar",function(t){var e,i=t.getData(),o=[],r=t.coordinateSystem;r&&(H(e=r.getIndicatorAxes(),function(t,n){i.each(i.mapDimension(e[n].dim),function(t,e){o[e]=o[e]||[];t=r.dataToPoint(t,n);o[e][n]=Ow(t)?t:Nw(r)})}),i.each(function(t){var e=ct(o[t],Ow)||Nw(r);o[t].push(e.slice()),i.setItemLayout(t,o[t])}))})}function Ow(t){return!isNaN(t[0])&&!isNaN(t[1])}function Nw(t){return[t.cx,t.cy]}function Rw(n){var i,t=n.polar;t&&(F(t)||(t=[t]),i=[],H(t,function(t,e){(t.indicator?(t.type&&!t.shape&&(t.shape=t.type),n.radar=n.radar||[],F(n.radar)||(n.radar=[n.radar]),n.radar):i).push(t)}),n.polar=i),H(n.series,function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)})}r1(function(t){t.registerChartView(Sw),t.registerSeriesModel(Aw),nm("pie",t.registerAction),t.registerLayout(M(pw,"pie")),t.registerProcessor(dw("pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=t.getData();n.filterSelf(function(t){var e=n.mapDimension("value"),e=n.get(e,t);return!(Y(e)&&!isNaN(e)&&e<0)})}})});u(Bw,Ew=dy),Bw.prototype.render=function(l,t,e){var n=l.coordinateSystem,h=this.group,c=l.getData(),a=this._data;function s(t,e,n,i,o,r){n.removeAll();for(var a=0;ah[1]?-1:1,r=["start"===c?h[0]-r*u:"end"===c?h[1]+r*u:(h[0]+h[1])/2,Jw(c)?t.labelOffset+l*u:0],null!=(u=e.get("nameRotate"))&&(u=u*Zw/180),Jw(c)?a=qw.innerTextLayout(t.rotation,null!=u?u:t.rotation,l):(a=function(t,e,n,i){var o,n=pr(n-t),t=i[0]>i[1],i="start"===e&&!t||"start"!==e&&t;e=dr(n-Zw/2)?(o=i?"bottom":"top","center"):dr(n-1.5*Zw)?(o=i?"top":"bottom","center"):(o="middle",n<1.5*Zw&&Zw/2s[0]&&isFinite(c)&&isFinite(s[0]);)h=e_(h),c=s[1]-h*a;else{u=(h=at.x)||(g-=Math.PI)),d=y?"left":"right",t=(f=(l=s.getModel("label")).get("rotate"))*(Math.PI/180),y=r.getTextContent())&&(r.setTextConfig({position:l.get("position")||d,rotation:null==f?-g:t,origin:"center"}),y.setStyle("verticalAlign","middle")),s.get(["emphasis","focus"])),l="relative"===r?Nt(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===r?a.getAncestorsIndices():"descendant"===r?a.getDescendantIndices():null,d=(l&&(D(i).focus=l),o),f=a,g=u,t=i,y=c,s=h,r=p,l=e,o=f.getModel(),u=d.get("edgeShape"),c=d.get("layout"),h=d.getOrient(),p=d.get(["lineStyle","curveness"]),e=d.get("edgeForkPosition"),m=o.getModel("lineStyle").getLineStyle(),v=t.__edge;if("curve"===u)f.parentNode&&f.parentNode!==g&&Vh(v=v||(t.__edge=new ch({shape:jS(c,h,p,y,y)})),{shape:jS(c,h,p,s,r)},d);else if("polyline"===u&&"orthogonal"===c&&f!==g&&f.children&&0!==f.children.length&&!0===f.isExpand){for(var _=f.children,x=[],b=0;b<_.length;b++){var w=_[b].getLayout();x.push([w.x,w.y])}Vh(v=v||(t.__edge=new FS({shape:{parentPoint:[r.x,r.y],childPoints:[[r.x,r.y]],orient:h,forkPosition:e}})),{shape:{parentPoint:[r.x,r.y],childPoints:x}},d)}v&&("polyline"!==u||f.isExpand)&&(v.useStyle(z({strokeNoScale:!0,fill:null},m)),jl(v,o,"lineStyle"),Al(v),l.add(v)),i.__edge&&(i.onHoverStateChange=function(t){var e;"blur"===t||(e=a.parentNode&&n.getItemGraphicEl(a.parentNode.dataIndex))&&e.hoverState===ll||Cl(i.__edge,t)})}function US(t,e,n,i,o){var r,a,s=ZS(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?Wh(r,{shape:jS(l,e,a,s,s),style:{opacity:0}},i,{cb:function(){n.remove(r)},removeOpt:o}):"polyline"===t&&"orthogonal"===i.get("layout")&&Wh(r,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){n.remove(r)},removeOpt:o}))}function ZS(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 qS(e,t,n,i,o){var r=e.tree.getNodeByDataIndex(t),a=ZS(e.tree.root,r).sourceLayout,s={duration:o.get("animationDurationUpdate"),easing:o.get("animationEasingUpdate")};Wh(n,{x:a.x+1,y:a.y+1},o,{cb:function(){i.remove(n),e.setItemGraphicEl(t,null)},removeOpt:s}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:s}),r.children.forEach(function(t){US(t,e,i,o,s)}),US(r,e,i,o,s)}function jS(t,e,n,i,o){var r,a,s,l,u,h,c,p,d,f,g;return"radial"===t?(u=i.rawX,h=i.rawY,c=o.rawX,p=o.rawY,t=yS(u,h),d=yS(u,h+(p-h)*n),f=yS(c,p+(h-p)*n),g=yS(c,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,h=i.y,c=o.x,p=o.y,"LR"!==e&&"RL"!==e||(r=u+(c-u)*n,a=h,s=c+(u-c)*n,l=p),"TB"!==e&&"BT"!==e||(r=u,a=h+(p-h)*n,s=c,l=p+(h-p)*n),{x1:u,y1:h,x2:c,y2:p,cpx1:r,cpy1:a,cpx2:s,cpy2:l})}var KS=zr();function $S(n){var i=n.mainData,t=n.datas;t||(t={main:i},n.datasAttr={main:"data"}),n.datas=n.mainData=null,iM(i,t,n),H(t,function(e){H(i.TRANSFERABLE_METHODS,function(t){e.wrapMethod(t,M(QS,n))})}),i.wrapMethod("cloneShallow",M(tM,n)),H(i.CHANGABLE_METHODS,function(t){i.wrapMethod(t,M(JS,n))}),Mt(t[i.dataType]===i)}function QS(t,e){var n;return KS(n=this).mainData===n?iM((n=V({},KS(this).datas))[this.dataType]=e,n,t):oM(e,this.dataType,KS(this).mainData,t),e}function JS(t,e){return t.struct&&t.struct.update(),e}function tM(n,i){return H(KS(i).datas,function(t,e){t!==i&&oM(t.cloneShallow(),e,i,n)}),i}function eM(t){var e=KS(this).mainData;return null==t||null==e?e:KS(e).datas[t]}function nM(){var e=KS(this).mainData;return null==e?[{data:e}]:B(W(KS(e).datas),function(t){return{type:t,data:KS(e).datas[t]}})}function iM(n,t,i){KS(n).datas={},H(t,function(t,e){oM(t,e,n,i)})}function oM(t,e,n,i){KS(n).datas[e]=t,KS(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=eM,t.getLinkedDataAll=nM}aM.prototype.isRemoved=function(){return this.dataIndex<0},aM.prototype.eachNode=function(t,e,n){C(t)&&(n=e,e=t,t=null);var i,o=(t=X(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},aM.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},pM.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},pM.prototype.setZoom=function(t){this.option.zoom=t},pM.prototype.setCenter=function(t){this.option.center=t},pM.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,o=i.root.children[0],r=i.getNodeByDataIndex(t),i=r.getValue(),a=r.name;r&&r!==o;)a=r.parentNode.name+"."+a,r=r.parentNode;return Bg("nameValue",{name:a,value:i,noValue:isNaN(i)||null==i})},pM.prototype.getDataParams=function(t){var e=hM.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(t);return e.treeAncestors=function(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}(t,this),e.collapsed=!t.isExpand,e},pM.type="series.tree",pM.layoutMode="box",pM.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 hM,cM=pM;function pM(){var t=null!==hM&&hM.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}function dM(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 fM(t,k){t.eachSeriesByType("tree",function(t){var e=function(t,e){return Zp(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e=k),n=(t.layoutInfo=e,t.get("layout")),i=0,o=0,r=null;r="radial"===n?(i=2*Math.PI,o=Math.min(e.height,e.width)/2,gS(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(i=e.width,o=e.height,gS());var a,s,l,u,h,c,p,d,f,g=(e=t.getData().tree.root).children[0];if(g){var y=e;y.hierNode={defaultAncestor:null,ancestor:y,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var m,v,_=[y];m=_.pop();)if(v=m.children,m.isExpand&&v.length)for(var x=v.length-1;0<=x;x--){var b=v[x];b.hierNode={defaultAncestor:null,ancestor:b,prelim:0,modifier:0,change:0,shift:0,i:x,thread:null},_.push(b)}for(var w,S=dS,M=r,I=[g],T=[];w=I.pop();)if(T.push(w),w.isExpand){var C=w.children;if(C.length)for(var D=0;Ds.getLayout().x&&(s=t),t.depth>l.depth&&(l=t)}),e=a===s?1:r(a,s)/2,u=e-a.getLayout().x,d=p=c=h=0,"radial"===n?(h=i/(s.getLayout().x+e+u),c=o/(l.depth-1||1),dM(g,function(t){p=(t.getLayout().x+u)*h,d=(t.depth-1)*c;var e=yS(p,d);t.setLayout({x:e.x,y:e.y,rawX:p,rawY:d},!0)})):"RL"===(f=t.getOrient())||"LR"===f?(c=o/(s.getLayout().x+e+u),h=i/(l.depth-1||1),dM(g,function(t){d=(t.getLayout().x+u)*c,p="LR"===f?(t.depth-1)*h:i-(t.depth-1)*h,t.setLayout({x:p,y:d},!0)})):"TB"!==f&&"BT"!==f||(h=i/(s.getLayout().x+e+u),c=o/(l.depth-1||1),dM(g,function(t){p=(t.getLayout().x+u)*h,d="TB"===f?(t.depth-1)*c:o-(t.depth-1)*c,t.setLayout({x:p,y:d},!0)}))}})}function gM(t){t.eachSeriesByType("tree",function(t){var n=t.getData();n.tree.eachNode(function(t){var e=t.getModel().getModel("itemStyle").getItemStyle();V(n.ensureUniqueItemVisual(t.dataIndex,"style"),e)})})}function yM(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function mM(t,e,n,i){var o,r=t.getZoom(),a=t.getCenter(),s=e.zoom,a=t.projectedToPoint?t.projectedToPoint(a):t.dataToPoint(a);return null!=e.dx&&null!=e.dy&&(a[0]-=e.dx,a[1]-=e.dy,t.setCenter(yM(t,a),i)),null!=s&&(n&&(o=n.min||0,n=n.max||1/0,s=Math.max(Math.min(r*s,n),o)/r),t.scaleX*=s,t.scaleY*=s,n=(e.originX-t.x)*(s-1),o=(e.originY-t.y)*(s-1),t.x-=n,t.y-=o,t.updateTransform(),t.setCenter(yM(t,a),i),t.setZoom(s*r)),{center:t.getCenter(),zoom:t.getZoom()}}function vM(t){var r=t.findComponents({mainType:"legend"});r&&r.length&&t.eachSeriesByType("graph",function(t){var e=t.getCategoriesData(),i=t.getGraph().data,o=e.mapArray(e.getName);i.filterSelf(function(t){var e=i.getItemModel(t).getShallow("category");if(null!=e){Y(e)&&(e=o[e]);for(var n=0;n "+d)),h++)}return"cartesian2d"===(i=n.get("coordinateSystem"))||"polar"===i?s=Uv(t,n):(G(i=(i=Vd.get(i))&&i.dimensions||[],"value")<0&&i.concat(["value"]),i=Fv(t,{coordDimensions:i,encodeDefine:n.getEncode()}).dimensions,(s=new Bv(i,n)).initData(t)),(i=new Bv(["value"],n)).initData(u,l),o&&o(s,i),$S({mainData:s,struct:r,structAttr:"graph",datas:{node:s,edge:i},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r}(t,i,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t){var e=r._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var n=Zc.prototype.getModel;function i(t,e){t=n.call(this,t,e);return t.resolveParentPath=o,t}function o(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=o,t.getModel=i,t})})).edges,function(t){var e,n,i;e=t.node1,n=t.node2,i=this,t=t.dataIndex,SM(i)&&(e=IM(e,n,i),i=(n=i.__edgeMap)[TM(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},RI.prototype.getGraph=function(){return this.getData().graph},RI.prototype.getEdgeData=function(){return this.getGraph().edgeData},RI.prototype.getCategoriesData=function(){return this._categoriesData},RI.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),Bg("nameValue",{name:r.join(" > "),value:n.value,noValue:null==n.value})):Kg({series:this,dataIndex:t,multipleSeries:e})},RI.prototype._updateCategoriesData=function(){var t=B(this.option.categories||[],function(t){return null!=t.value?t:V({value:0},t)}),e=new Bv(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t)})},RI.prototype.setZoom=function(t){this.option.zoom=t},RI.prototype.setCenter=function(t){this.option.center=t},RI.prototype.isAnimationEnabled=function(){return OI.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},RI.type="series.graph",RI.dependencies=["grid","polar","geo","singleAxis","calendar"],RI.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 OI,NI=RI;function RI(){var t=null!==OI&&OI.apply(this,arguments)||this;return t.type=RI.type,t.hasSymbolVisual=!0,t}var EI={type:"graphRoam",event:"graphRoam",update:"none"};r1(function(t){t.registerChartView(SI),t.registerSeriesModel(NI),t.registerProcessor(vM),t.registerVisual(_M),t.registerVisual(bM),t.registerLayout(OM),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,GM),t.registerLayout(WM),t.registerCoordinateSystem("graphView",{dimensions:wS.dimensions,create:XM}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},zt),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},zt),t.registerAction(EI,function(n,t,i){t.eachComponent({mainType:"series",query:n},function(t){var e=mM(t.coordinateSystem,n,void 0,i);t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom)})})});var zI,BI={color:"fill",borderColor:"stroke"},FI={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},VI=zr(),GI=(u(HI,zI=ty),HI.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},HI.prototype.getInitialData=function(t,e){return Uv(null,this)},HI.prototype.getDataParams=function(t,e,n){t=zI.prototype.getDataParams.call(this,t,e);return n&&(t.info=VI(n).info),t},HI.type="series.custom",HI.dependencies=["grid","polar","geo","singleAxis","calendar"],HI.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},HI);function HI(){var t=null!==zI&&zI.apply(this,arguments)||this;return t.type=HI.type,t}function WI(i,o){return o=o||[0,0],B(["x","y"],function(t,e){var t=this.getAxis(t),n=o[e],e=i[e]/2;return"category"===t.type?t.getBandWidth():Math.abs(t.dataToCoord(n-e)-t.dataToCoord(n+e))},this)}function XI(r,a){return a=a||[0,0],B([0,1],function(t){var e=a[t],n=r[t]/2,i=[],o=[];return i[t]=e-n,o[t]=e+n,i[1-t]=o[1-t]=a[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function YI(t,e){var n=this.getAxis(),e=e instanceof Array?e[0]:e,t=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(e-t)-n.dataToCoord(e+t))}function UI(o,r){return r=r||[0,0],B(["Radius","Angle"],function(t,e){var n=this["get"+t+"Axis"](),i=r[e],e=o[e]/2,n="category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-e)-n.dataToCoord(i+e));return n="Angle"===t?n*Math.PI/180:n},this)}function ZI(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||U(t,"text")))}function qI(t,e,n){var i,o,r,a=t;return"text"===e?i=a:(i={},U(a,"text")&&(i.text=a.text),U(a,"rich")&&(i.rich=a.rich),U(a,"textFill")&&(i.fill=a.textFill),U(a,"textStroke")&&(i.stroke=a.textStroke),U(a,"fontFamily")&&(i.fontFamily=a.fontFamily),U(a,"fontSize")&&(i.fontSize=a.fontSize),U(a,"fontStyle")&&(i.fontStyle=a.fontStyle),U(a,"fontWeight")&&(i.fontWeight=a.fontWeight),o={type:"text",style:i,silent:!0},r={},e=U(a,"textPosition"),n?r.position=e?a.textPosition:"inside":e&&(r.position=a.textPosition),U(a,"textPosition")&&(r.position=a.textPosition),U(a,"textOffset")&&(r.offset=a.textOffset),U(a,"textRotation")&&(r.rotation=a.textRotation),U(a,"textDistance")&&(r.distance=a.textDistance)),jI(i,t),H(i.rich,function(t){jI(t,t)}),{textConfig:r,textContent:o}}function jI(t,e){e&&(e.font=e.textFont||e.font,U(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),U(e,"textAlign")&&(t.align=e.textAlign),U(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),U(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),U(e,"textWidth")&&(t.width=e.textWidth),U(e,"textHeight")&&(t.height=e.textHeight),U(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),U(e,"textPadding")&&(t.padding=e.textPadding),U(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),U(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),U(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),U(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),U(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),U(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),U(e,"textBoxShadowOffsetY"))&&(t.shadowOffsetY=e.textBoxShadowOffsetY)}function KI(t,e,n){var i=t,o=(i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance),0<=i.textPosition.indexOf("inside")),r=t.fill||"#000",a=($I(i,e),null==i.textFill);return o?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),i.textStroke||(i.textStroke=r),null==i.textStrokeWidth)&&(i.textStrokeWidth=2):(a&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,H(e.rich,function(t){$I(t,t)}),i}function $I(t,e){e&&(U(e,"fill")&&(t.textFill=e.fill),U(e,"stroke")&&(t.textStroke=e.fill),U(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),U(e,"font")&&(t.font=e.font),U(e,"fontStyle")&&(t.fontStyle=e.fontStyle),U(e,"fontWeight")&&(t.fontWeight=e.fontWeight),U(e,"fontSize")&&(t.fontSize=e.fontSize),U(e,"fontFamily")&&(t.fontFamily=e.fontFamily),U(e,"align")&&(t.textAlign=e.align),U(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),U(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),U(e,"width")&&(t.textWidth=e.width),U(e,"height")&&(t.textHeight=e.height),U(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),U(e,"padding")&&(t.textPadding=e.padding),U(e,"borderColor")&&(t.textBorderColor=e.borderColor),U(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),U(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),U(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),U(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),U(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),U(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),U(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),U(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),U(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),U(e,"textShadowOffsetY"))&&(t.textShadowOffsetY=e.textShadowOffsetY)}var QI={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},JI=W(QI),tT=(ut(Io,function(t,e){return t[e]=1,t},{}),Io.join(", "),["","style","shape","extra"]),eT=zr();function nT(t,e,n,i,o){var r=t+"Animation",i=Bh(t,i,o)||{},o=eT(e).userDuring;return 0t[1]&&t.reverse(),{coordSys:{type:"polar",cx:i.cx,cy:i.cy,r:t[1],r0:t[0]},api:{coord:function(t){var e=o.dataToRadius(t[0]),t=r.dataToAngle(t[1]),n=i.coordToPoint([e,t]);return n.push(e,t*Math.PI/180),n},size:S(UI,i)}}},calendar:function(n){var t=n.getRect(),e=n.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(t,e){return n.dataToPoint(t,e)}}}}};function IT(t){return t instanceof j}function TT(t){return t instanceof Ta}u(kT,CT=dy),kT.prototype.render=function(n,t,i,o){this._progressiveEls=null;var r=this._data,a=n.getData(),s=this.group,l=NT(n,a,t,i),t=(r||s.removeAll(),a.diff(r).add(function(t){RT(i,null,t,l(t,o),n,s,a)}).remove(function(t){t=r.getItemGraphicEl(t);t&&rT(t,VI(t).option,n)}).update(function(t,e){e=r.getItemGraphicEl(e);RT(i,e,t,l(t,o),n,s,a)}).execute(),n.get("clip",!0)?Gx(n.coordinateSystem,!1,n):null);t?s.setClipPath(t):s.removeClipPath(),this._data=a},kT.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},kT.prototype.incrementalRender=function(t,e,n,i,o){var r=e.getData(),a=NT(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;ue[1]&&e.reverse(),e},lC.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},lC.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var aC,sC=lC;function lC(t,e,n,i,o){t=aC.call(this,t,e,n)||this;return t.index=0,t.type=i||"value",t.position=o||"bottom",t}function uC(t,e,n){n=n||{};var t=t.coordinateSystem,i=e.axis,o={},r=i.getAxesOnZeroOf()[0],a=i.position,s=r?"onZero":a,i=i.dim,t=t.getRect(),t=[t.x,t.x+t.width,t.y,t.y+t.height],l={left:0,right:1,top:0,bottom:1,onZero:2},u=e.get("offset")||0,u="x"===i?[t[2]-u,t[3]+u]:[t[0]-u,t[1]+u],h=(r&&(h=r.toGlobalCoord(r.dataToCoord(0)),u[l.onZero]=Math.max(Math.min(h,u[1]),u[0])),o.position=["y"===i?u[l[s]]:t[0],"x"===i?u[l[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?u[l[a]]-u[l.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),xt(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 hC(t){return"cartesian2d"===t.get("coordinateSystem")}function cC(i){var o={xAxisModel:null,yAxisModel:null};return H(o,function(t,e){var n=e.replace(/Model$/,""),n=i.getReferringComponents(n,Gr).models[0];o[e]=n}),o}dC.prototype.getRect=function(){return this._rect},dC.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=W(t),i=n.length;if(i){for(var o=[],r=i-1;0<=r;r--){var a=t[+n[r]],s=a.model,l=a.scale;Jv(l)&&s.get("alignTicks")&&null==s.get("interval")?o.push(a):(q_(l,s),Jv(l)&&(e=a))}o.length&&(e||q_((e=o.pop()).scale,e.model),H(o,function(t){uS(t.scale,t.model,e.scale)}))}}this._updateScale(t,this.model),i(n.x),i(n.y);var o={};H(n.x,function(t){gC(n,"y",t,o)}),H(n.y,function(t){gC(n,"x",t,o)}),this.resize(this.model,e)},dC.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),n=!n&&t.get("containLabel"),a=Zp(i,{width:e.getWidth(),height:e.getHeight()}),o=(this._rect=a,this._axesList);function r(){H(o,function(t){var e,n,i=t.isHorizontal(),o=i?[0,a.width]:[0,a.height],r=t.inverse?1:0;t.setExtent(o[r],o[1-r]),o=t,e=i?a.x:a.y,r=o.getExtent(),n=r[0]+r[1],o.toGlobalCoord="x"===o.dim?function(t){return t+e}:function(t){return n-t+e},o.toLocalCoord="x"===o.dim?function(t){return t-e}:function(t){return n-t+e}})}r(),n&&(H(o,function(t){var e,n,i;t.model.get(["axisLabel","inside"])||(e=Q_(t))&&(n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]),a[n]-=e[n]+i,"top"===t.position?a.y+=e.height+i:"left"===t.position&&(a.x+=e.width+i))}),r()),H(this._coordsList,function(t){t.calcAffineTransform()})},dC.prototype.getAxis=function(t,e){t=this._axesMap[t];if(null!=t)return t[e||0]},dC.prototype.getAxes=function(){return this._axesList.slice()},dC.prototype.getCartesian=function(t,e){if(null!=t&&null!=e)return this._coordsMap["x"+t+"y"+e];P(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;nu[1]&&u.reverse(),(s=null==s||s>u[1]?u[1]:s)n[o],f=[-c.x,-c.y],e=(e||(f[i]=l[s]),[0,0]),s=[-p.x,-p.y],g=O(t.get("pageButtonGap",!0),t.get("itemGap",!0)),f=(d&&("end"===t.get("pageButtonPosition",!0)?s[i]+=n[o]-p[o]:e[i]+=p[o]+g),s[1-i]+=c[r]/2-p[r]/2,l.setPosition(f),u.setPosition(e),h.setPosition(s),{x:0,y:0}),c=(f[o]=(d?n:c)[o],f[r]=Math.max(c[r],p[r]),f[a]=Math.min(0,p[a]+s[1-i]),u.__rectSize=n[o],d?((e={x:0,y:0})[o]=Math.max(n[o]-p[o]-g,0),e[r]=f[r],u.setClipPath(new Vs({shape:e})),u.__rectSize=e[o]):h.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=c.pageIndex&&Vh(l,{x:c.contentPosition[0],y:c.contentPosition[1]},d?t:null),this._updatePageInfoView(t,c),f},_2.prototype._pageGo=function(t,e,n){t=this._getPageInfo(e)[t];null!=t&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},_2.prototype._updatePageInfoView=function(n,i){var o=this._controllerGroup,t=(H(["pagePrev","pageNext"],function(t){var e=null!=i[t+"DataIndex"],t=o.childOfName(t);t&&(t.setStyle("fill",e?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),t.cursor=e?"pointer":"default")}),o.childOfName("pageText")),e=n.get("pageFormatter"),r=i.pageIndex,r=null!=r?r+1:0,a=i.pageCount;t&&e&&t.setStyle("text",X(e)?e.replace("{current}",null==r?"":r+"").replace("{total}",null==a?"":a+""):e({current:r,total:a}))},_2.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,t=t.getOrient().index,o=y2[t],r=m2[t],e=this._findTargetItemIndex(e),a=n.children(),s=a[e],l=a.length,u=l?1:0,h={contentPosition:[n.x,n.y],pageCount:u,pageIndex:u-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(s){n=g(s);h.contentPosition[t]=-n.s;for(var c=e+1,p=n,d=n,f=null;c<=l;++c)(!(f=g(a[c]))&&d.e>p.s+i||f&&!y(f,p.s))&&(p=d.i>p.i?d:f)&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=p.i),++h.pageCount),d=f;for(c=e-1,p=n,d=n,f=null;-1<=c;--c)(f=g(a[c]))&&y(d,f.s)||!(p.i=e&&t.s<=e+i}},_2.prototype._findTargetItemIndex=function(n){var i,o;return this._showController?(this.getContentGroup().eachChild(function(t,e){t=t.__legendDataIndex;null==o&&null!=t&&(o=e),t===n&&(i=e)}),null!=i?i:o):0},_2.type="legend.scroll",_2);function _2(){var t=null!==f2&&f2.apply(this,arguments)||this;return t.type=_2.type,t.newlineDisabled=!0,t._currentIndex=0,t}r1(function(t){r1(u2),t.registerComponentModel(c2),t.registerComponentView(v2),t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})});var x2=zr(),b2=y,w2=S;function S2(){this._dragging=!1,this.animationThreshold=15}function M2(t,e,n,i){!function n(i,t){{var o;return P(i)&&P(t)?(o=!0,H(t,function(t,e){o=o&&n(i[e],t)}),!!o):i===t}}(x2(n).lastProp,i)&&(x2(n).lastProp=i,e?Vh(n,i,t):(n.stopAnimation(),n.attr(i)))}function I2(t,e){t[e.get(["label","show"])?"show":"hide"]()}function T2(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function C2(t,e,n){var i=e.get("z"),o=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=o&&(t.zlevel=o),t.silent=n)})}function D2(t,e,n,i,o){var r=k2(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),n=n.getModel("label"),a=Np(n.get("padding")||0),s=n.getFont(),l=ko(r,s),u=o.position,h=l.width+a[1]+a[3],l=l.height+a[0]+a[2],c=o.align,c=("right"===c&&(u[0]-=h),"center"===c&&(u[0]-=h/2),o.verticalAlign),i=("bottom"===c&&(u[1]-=l),"middle"===c&&(u[1]-=l/2),o=u,c=h,h=l,i=(l=i).getWidth(),l=l.getHeight(),o[0]=Math.min(o[0]+c,i)-c,o[1]=Math.min(o[1]+h,l)-h,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0),n.get("backgroundColor"));i&&"auto"!==i||(i=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:Ic(n,{text:r,font:s,fill:n.getTextColor(),padding:a,backgroundColor:i}),z2:10}}function k2(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:$_(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},H(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&r.seriesData.push(e)}),X(o)?a=o.replace("{value}",a):C(o)&&(a=o(r))),a}function A2(t,e,n){var i=Ne();return Fe(i,i,n.rotation),Be(i,i,n.position),uc([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}S2.prototype.render=function(t,e,n,i){var o,r,a=e.get("value"),s=e.get("status");this._axisModel=t,this._axisPointerModel=e,this._api=n,!i&&this._lastValue===a&&this._lastStatus===s||(this._lastValue=a,this._lastStatus=s,i=this._group,o=this._handle,s&&"hide"!==s?(i&&i.show(),o&&o.show(),this.makeElOption(s={},a,t,e,n),(r=s.graphicKey)!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=r,r=this._moveAnimation=this.determineAnimation(t,e),i?(r=M(M2,e,r),this.updatePointerEl(i,s,r),this.updateLabelEl(i,s,r,e)):(i=this._group=new Zo,this.createPointerEl(i,s,t,e),this.createLabelEl(i,s,t,e),n.getZr().add(i)),C2(i,e,!0),this._renderHandle(a)):(i&&i.hide(),o&&o.hide()))},S2.prototype.remove=function(t){this.clear(t)},S2.prototype.dispose=function(t){this.clear(t)},S2.prototype.determineAnimation=function(t,e){var n,i=e.get("animation"),o=t.axis,r="category"===o.type,e=e.get("snap");return!(!e&&!r)&&("auto"===i||null==i?(n=this.animationThreshold,r&&o.getBandWidth()>n||!!e&&(r=_C(t).seriesDataCount,e=o.getExtent(),Math.abs(e[0]-e[1])/r>n)):!0===i)},S2.prototype.makeElOption=function(t,e,n,i,o){},S2.prototype.createPointerEl=function(t,e,n,i){var o=e.pointer;o&&(o=x2(t).pointerEl=new _c[o.type](b2(e.pointer)),t.add(o))},S2.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=x2(t).labelEl=new Ys(b2(e.label)),t.add(e),I2(e,i))},S2.prototype.updatePointerEl=function(t,e,n){t=x2(t).pointerEl;t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},S2.prototype.updateLabelEl=function(t,e,n,i){t=x2(t).labelEl;t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),I2(t,i))},S2.prototype._renderHandle=function(t){var e,n,i,o,r,a;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,o=e.getModel("handle"),a=e.get("status"),o.get("show")&&a&&"hide"!==a?(this._handle||(r=!0,i=this._handle=fc(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){De(t.event)},onmousedown:w2(this._onHandleDragMove,this,0,0),drift:w2(this._onHandleDragMove,this),ondragend:w2(this._onHandleDragEnd,this)}),n.add(i)),C2(i,e,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),F(a=o.get("size"))||(a=[a,a]),i.scaleX=a[0]/2,i.scaleY=a[1]/2,My(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,r)):(i&&n.remove(i),this._handle=null))},S2.prototype._moveHandleToValue=function(t,e){M2(this._axisPointerModel,!e&&this._moveAnimation,this._handle,T2(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},S2.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(T2(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(T2(t)),x2(n).lastProp=null,this._doDispatchAxisPointer())},S2.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}]}))},S2.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},S2.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var t=t.getZr(),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),Iy(this,"_doDispatchAxisPointer")},S2.prototype.doClear=function(){},S2.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}};u(O2,L2=S2),O2.prototype.makeElOption=function(t,e,n,i,o){var r,a,s=n.axis,l=s.grid,u=i.get("type"),h=N2(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(e,!0)),p=(u&&"none"!==u&&(r=(a=i).get("type"),a=a.getModel(r+"Style"),"line"===r?(p=a.getLineStyle()).fill=null:"shadow"===r&&((p=a.getAreaStyle()).stroke=null),r=p,(a=R2[u](s,c,h)).style=r,t.graphicKey=a.type,t.pointer=a),uC(l.model,n));u=e,s=t,c=p,h=n,r=i,a=o,l=qw.innerTextLayout(c.rotation,0,c.labelDirection),c.labelMargin=r.get(["label","margin"]),D2(s,h,r,a,{position:A2(h.axis,u,c),align:l.textAlign,verticalAlign:l.textVerticalAlign})},O2.prototype.getHandleTransform=function(t,e,n){var i=uC(e.axis.grid.model,e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),A2(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},O2.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,o=n.grid,r=n.getGlobalExtent(!0),o=N2(o,n).getOtherAxis(n).getGlobalExtent(),n="x"===n.dim?0:1,a=[t.x,t.y],e=(a[n]+=e[n],a[n]=Math.min(r[1],a[n]),a[n]=Math.max(r[0],a[n]),(o[1]+o[0])/2),r=[e,e];r[n]=a[n];return{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:r,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}};var L2,P2=O2;function O2(){return null!==L2&&L2.apply(this,arguments)||this}function N2(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var R2={line:function(t,e,n){var i;return i=[e,n[0]],e=[e,n[1]],n=E2(t),{type:"Line",subPixelOptimize:!0,shape:{x1:i[n=n||0],y1:i[1-n],x2:e[n],y2:e[1-n]}}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:(e=[e-i/2,n[0]],n=[i,o],i=E2(t),{x:e[i=i||0],y:e[1-i],width:n[i],height:n[1-i]})}}};function E2(t){return"x"===t.dim?0:1}u(F2,z2=g),F2.type="axisPointer",F2.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}};var z2,B2=F2;function F2(){var t=null!==z2&&z2.apply(this,arguments)||this;return t.type=F2.type,t}var V2=zr(),G2=H;function H2(t,e,n){var i,c,p;function o(t,h){c.on(t,function(e){n=p;var n,i,o={dispatchAction:r,pendings:i={showTip:[],hideTip:[]}};function r(t){var e=i[t.type];e?e.push(t):(t.dispatchAction=r,n.dispatchAction(t))}G2(V2(c).records,function(t){t&&h(t,e,o.dispatchAction)});var t,a=o.pendings,s=p,l=a.showTip.length,u=a.hideTip.length;l?t=a.showTip[l-1]:u&&(t=a.hideTip[u-1]),t&&(t.dispatchAction=null,s.dispatchAction(t))})}w.node||(i=e.getZr(),V2(i).records||(V2(i).records={}),p=e,V2(c=i).initialized||(V2(c).initialized=!0,o("click",M(X2,"click")),o("mousemove",M(X2,"mousemove")),o("globalout",W2)),(V2(i).records[t]||(V2(i).records[t]={})).handler=n)}function W2(t,e,n){t.handler("leave",null,n)}function X2(t,e,n,i){e.handler(t,n,i)}function Y2(t,e){w.node||(e=e.getZr(),(V2(e).records||{})[t]&&(V2(e).records[t]=null))}u(q2,U2=ly),q2.prototype.render=function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";H2("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})})},q2.prototype.remove=function(t,e){Y2("axisPointer",e)},q2.prototype.dispose=function(t,e){Y2("axisPointer",e)},q2.type="axisPointer";var U2,Z2=q2;function q2(){var t=null!==U2&&U2.apply(this,arguments)||this;return t.type=q2.type,t}function j2(t,e){var n,i,o,r,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=Er(n=e.getData(),t))||s<0||F(s)?{point:[]}:(i=n.getItemGraphicEl(s),o=e.coordinateSystem,e.getTooltipPosition?a=e.getTooltipPosition(s)||[]:o&&o.dataToPoint?a=t.isStacked?(e=o.getBaseAxis(),t=o.getOtherAxis(e).dim,e=e.dim,t="x"===t||"radius"===t?1:0,e=n.mapDimension(e),(r=[])[t]=n.get(e,s),r[1-t]=n.get(n.getCalculationInfo("stackResultDimension"),s),o.dataToPoint(r)||[]):o.dataToPoint(n.getValues(B(o.dimensions,function(t){return n.mapDimension(t)}),s))||[]:i&&((e=i.getBoundingRect().clone()).applyTransform(i.transform),a=[e.x+e.width/2,e.y+e.height/2]),{point:a,el:i})}var K2=zr();function $2(t,e,n){var r,a,i,s,l,o,u,h,c,p,d,f,g,y,m=t.currTrigger,v=[t.x,t.y],_=t,x=t.dispatchAction||S(n.dispatchAction,n),b=e.getComponent("axisPointer").coordSysAxesInfo;if(b)return nD(v)&&(v=j2({seriesIndex:_.seriesIndex,dataIndex:_.dataIndex},e).point),r=nD(v),a=_.axesInfo,i=b.axesInfo,s="leave"===m||nD(v),l={},e={list:[],map:{}},u={showPointer:M(J2,o={}),showTooltip:M(tD,e)},H(b.coordSysMap,function(t,e){var o=r||t.containPoint(v);H(b.coordSysAxesInfo[e],function(t,e){var n=t.axis,i=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(a,t);s||!o||a&&!i||null!=(i=null!=(i=i&&i.value)||r?i:n.pointToData(v))&&Q2(t,i,u,!1,l)})}),h={},H(i,function(n,t){var i=n.linkGroup;i&&!o[t]&&H(i.axesInfo,function(t,e){var e=o[e];t!==n&&e&&(e=e.value,i.mapper&&(e=n.axis.scale.parse(i.mapper(e,eD(t),eD(n)))),h[n.key]=e)})}),H(h,function(t,e){Q2(i[e],t,u,!0,l)}),c=o,_=i,p=l.axesInfo=[],H(_,function(t,e){var n=t.axisPointerModel.option,e=c[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&p.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),m=e,_=t,e=x,nD(t=v)||!m.list.length?e({type:"hideTip"}):(x=((m.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:_.tooltipOption,position:_.position,dataIndexInside:x.dataIndexInside,dataIndex:x.dataIndex,seriesIndex:x.seriesIndex,dataByCoordSys:m.list})),e=i,_=(t=n).getZr(),x="axisPointerLastHighlights",d=K2(_)[x]||{},f=K2(_)[x]={},H(e,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&H(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;f[e]=t})}),g=[],y=[],H(d,function(t,e){f[e]||y.push(t)}),H(f,function(t,e){d[e]||g.push(t)}),y.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:y}),g.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:g}),l}function Q2(t,e,n,i,o){var r,a,s,l,u,h,c,p,d,f,g=t.axis;!g.scale.isBlank()&&g.containData(e)&&(t.involveSeries?(a=e,s=t.axis,l=s.dim,u=a,h=[],c=Number.MAX_VALUE,p=-1,H(t.seriesModels,function(e,t){var n,i=e.getData().mapDimensionsAll(l);if(e.getAxisTooltipData)var o=e.getAxisTooltipData(i,a,s),r=o.dataIndices,o=o.nestestValue;else{if(!(r=e.getData().indicesOfNearest(i[0],a,"category"===s.type?.5:null)).length)return;o=e.getData().get(i[0],r[0])}null!=o&&isFinite(o)&&(i=a-o,(n=Math.abs(i))<=c)&&((n'):""),X(t))r.innerHTML=t+c;else if(t){r.innerHTML="",F(t)||(t=[t]);for(var p,d=0;d"),r=f.join(e);this._showOrMove(i,function(){this._updateContentNotChangedOnAxis(t,p)?this._updatePosition(i,o,n[0],n[1],this._tooltipContent,p):this._showTooltipContent(i,r,p,Math.random()+"",n[0],n[1],o,null,g)})},CD.prototype._showSeriesItemTooltip=function(t,e,n){var i,o,r,a,s,l=this._ecModel,e=D(e),u=e.seriesIndex,h=l.getSeriesByIndex(u),c=e.dataModel||h,p=e.dataIndex,e=e.dataType,d=c.getData(e),f=this._renderMode,g=t.positionDefault,y=DD([d.getItemModel(p),c,h&&(h.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),h=y.get("trigger");null!=h&&"item"!==h||(i=c.getDataParams(p,e),o=new qg,i.marker=o.makeTooltipMarker("item",Vp(i.color),f),g=Gf(c.formatTooltip(p,!1,e)),h=y.get("order"),e=y.get("valueFormatter"),r=g.frag,a=r?Wg(e?V({valueFormatter:e},r):r,o,f,h,l.get("useUTC"),y.get("textStyle")):g.text,s="item_"+c.name+"_"+p,this._showOrMove(y,function(){this._showTooltipContent(y,a,i,s,t.offsetX,t.offsetY,t.position,t.target,o)}),n({type:"showTip",dataIndexInside:p,dataIndex:d.getRawIndex(p),seriesIndex:u,from:this.uid}))},CD.prototype._showComponentItemTooltip=function(e,n,t){var i=D(n),o=i.tooltipConfig.option||{},r=[o=X(o)?{content:o,formatter:o}:o],i=this._ecModel.getComponent(i.componentMainType,i.componentIndex),i=(i&&r.push(i),r.push({formatter:o.content}),e.positionDefault),a=DD(r,this._tooltipModel,i?{position:i}:null),s=a.get("content"),l=Math.random()+"",u=new qg;this._showOrMove(a,function(){var t=y(a.get("formatterParams")||{});this._showTooltipContent(a,s,t,l,e.offsetX,e.offsetY,e.position,n,u)}),t({type:"showTip",from:this.uid})},CD.prototype._showTooltipContent=function(n,t,i,e,o,r,a,s,l){var u,h,c,p,d;this._ticket="",n.get("showContent")&&n.get("show")&&((u=this._tooltipContent).setEnterable(n.get("enterable")),h=n.get("formatter"),a=a||n.get("position"),t=t,c=this._getNearestPoint([o,r],i,n.get("trigger"),n.get("borderColor")).color,h&&(t=X(h)?(p=n.ecModel.get("useUTC"),t=h,Bp(t=(d=F(i)?i[0]:i)&&d.axisType&&0<=d.axisType.indexOf("time")?yp(d.axisValue,t,p):t,i,!0)):C(h)?(d=S(function(t,e){t===this._ticket&&(u.setContent(e,l,n,c,a),this._updatePosition(n,a,o,r,u,i,s))},this),this._ticket=e,h(i,e,d)):h),u.setContent(t,l,n,c,a),u.show(n,c),this._updatePosition(n,a,o,r,u,i,s))},CD.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||F(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:F(e)?void 0:{color:i||e.color||e.borderColor}},CD.prototype._updatePosition=function(t,e,n,i,o,r,a){var s,l=this._api.getWidth(),u=this._api.getHeight(),h=(e=e||t.get("position"),o.getSize()),c=t.get("align"),p=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();a&&d.applyTransform(a.transform),F(e=C(e)?e([n,i],r,o.el,d,{viewSize:[l,u],contentSize:h.slice()}):e)?(n=q(e[0],l),i=q(e[1],u)):P(e)?((r=e).width=h[0],r.height=h[1],n=(r=Zp(r,{width:l,height:u})).x,i=r.y,p=c=null):i=(n=(s=X(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,h=e.height;switch(t){case"inside":s=e.x+u/2-o/2,l=e.y+h/2-r/2;break;case"top":s=e.x+u/2-o/2,l=e.y-r-a;break;case"bottom":s=e.x+u/2-o/2,l=e.y+h+a;break;case"left":s=e.x-o-a,l=e.y+h/2-r/2;break;case"right":s=e.x+u+a,l=e.y+h/2-r/2}return[s,l]}(e,d,h,t.get("borderWidth")):function(t,e,n,i,o,r,a){var n=n.getSize(),s=n[0],n=n[1];null!=r&&(ih[0]?s:o)[0]:r[0]=(a[0]>h[0]?o:s)[0],"y0"===n[1]?r[1]=(a[1]>h[1]?s:o)[1]:r[1]=(a[1]>h[1]?o:s)[1],i.getMarkerPosition(r,n,!0)):(a=[l=t.get(n[0],e),u=t.get(n[1],e)],c.clampData&&c.clampData(a,a),c.dataToPoint(a,!0)),Ux(c,"cartesian2d")&&(o=c.getAxis("x"),s=c.getAxis("y"),l=t.get(n[0],e),u=t.get(n[1],e),vk(l)?h[0]=o.toGlobalCoord(o.getExtent()["x0"===n[0]?0:1]):vk(u)&&(h[1]=s.toGlobalCoord(s.getExtent()["y0"===n[1]?0:1]))),isNaN(d)||(h[0]=d),isNaN(p)||(h[1]=p)):h=[d,p],h}var wk,Sk=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Mk=(u(Ik,wk=Bc),Ik.prototype.updateTransform=function(t,e,o){e.eachSeries(function(n){var i,t=RD.getMarkerModelFromSeries(n,"markArea");t&&(i=t.getData()).each(function(e){var t=B(Sk,function(t){return bk(i,e,t,n,o)});i.setItemLayout(e,t),i.getItemGraphicEl(e).setShape("points",t)})},this)},Ik.prototype.renderSeries=function(a,o,t,s){var l=a.coordinateSystem,e=a.id,u=a.getData(),n=this.markerGroupMap,i=n.get(e)||n.set(e,{group:new Zo}),h=(this.group.add(i.group),this.markKeep(i),function(t,n,e){var i,o;{var r;i=t?(r=B(t&&t.dimensions,function(t){var e=n.getData();return V(V({},e.getDimensionInfo(e.mapDimension(t))||{}),{name:t,ordinalMeta:null})}),o=B(["x0","y0","x1","y1"],function(t,e){return{name:t,type:r[e%2].type}}),new Bv(o,e)):new Bv(o=[{name:"value",type:"float"}],e)}e=B(e.get("data"),M(yk,n,t,e));t&&(e=ht(e,M(xk,t)));t=t?function(t,e,n,i){return tg(t.coord[Math.floor(i/2)][i%2],o[i])}:function(t,e,n,i){return tg(t.value,o[i])};return i.initData(e,null,t),i.hasItemOption=!0,i}(l,a,o));o.setData(h),h.each(function(e){var t=B(Sk,function(t){return bk(h,e,t,a,s)}),n=l.getAxis("x").scale,i=l.getAxis("y").scale,o=n.getExtent(),r=i.getExtent(),n=[n.parse(h.get("x0",e)),n.parse(h.get("x1",e))],i=[i.parse(h.get("y0",e)),i.parse(h.get("y1",e))],o=(sr(n),sr(i),!(o[0]>n[1]||o[1]i[1]||r[1]=this._data.count()-1},Ck.prototype.setPlayState=function(t){this.option.autoPlay=!!t},Ck.prototype.getPlayState=function(){return!!this.option.autoPlay},Ck.prototype._initData=function(){var o,t=this.option,e=t.data||[],t=t.axisType,r=this._names=[],e=("category"===t?(o=[],H(e,function(t,e){var n,i=Pr(Dr(t),"");P(t)?(n=y(t)).value=e:n=e,o.push(n),r.push(i)})):o=e,{category:"ordinal",time:"time",value:"number"}[t]||"number");(this._data=new Bv([{name:"value",type:e}],this)).initData(o,r)},Ck.prototype.getData=function(){return this._data},Ck.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},Ck.type="timeline",Ck.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 Tk,$r=Ck;function Ck(){var t=null!==Tk&&Tk.apply(this,arguments)||this;return t.type=Ck.type,t.layoutMode="box",t}u(Ak,Dk=$r),Ak.type="timeline.slider",Ak.defaultOption=$c($r.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:[]});var Dk,kk=Ak;function Ak(){var t=null!==Dk&&Dk.apply(this,arguments)||this;return t.type=Ak.type,t}st(kk,Xc.prototype);u(Pk,Lk=ly),Pk.type="timeline";var Lk,sm=Pk;function Pk(){var t=null!==Lk&&Lk.apply(this,arguments)||this;return t.type=Pk.type,t}u(Rk,Ok=Hc),Rk.prototype.getLabelModel=function(){return this.model.getModel("label")},Rk.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")};var Ok,Nk=Rk;function Rk(t,e,n,i){t=Ok.call(this,t,e,n)||this;return t.type=i||"value",t}var Ek,zk=Math.PI,Bk=zr(),Fk=(u(Vk,Ek=sm),Vk.prototype.init=function(t,e){this.api=e},Vk.prototype.render=function(e,t,n){var i,o,r;this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)&&(i=this._layout(e,n),o=this._createGroup("_mainGroup"),t=this._createGroup("_labelGroup"),r=this._axis=this._createAxis(i,e),e.formatTooltip=function(t){return Bg("nameValue",{noName:!0,value:r.scale.getLabel({value:t})})},H(["AxisLine","AxisTick","Control","CurrentPointer"],function(t){this["_render"+t](i,o,r,e)},this),this._renderAxisLabel(i,t,r,e),this._position(i,e)),this._doPlayStop(),this._updateTicksStatus()},Vk.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},Vk.prototype.dispose=function(){this._clearTimer()},Vk.prototype._layout=function(t,e){var n,i,o,r=t.get(["label","position"]),a=t.get("orient"),s=(s=e,Zp((l=t).getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()},l.get("padding"))),l=null==r||"auto"===r?"horizontal"===a?s.y+s.height/2n[1]?n[1]:t)":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},uA=(hA.prototype.evaluate=function(t){var e=typeof t;return X(e)?this._condVal.test(t):!!Y(e)&&this._condVal.test(t+"")},hA);function hA(t){null==(this._condVal=X(t)?new RegExp(t):vt(t)?t:null)&&f("")}pA.prototype.evaluate=function(){return this.value};var cA=pA;function pA(){}fA.prototype.evaluate=function(){for(var t=this.children,e=0;e