!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.echarts={})}(this,function(t){"use strict";function e(t,e){Ds[t]=e}function n(t){if(null==t||"object"!=typeof t)return t;var e=t,i=Ts.call(t);if("[object Array]"===i){e=[];for(var r=0,o=t.length;rZs||t<-Zs}function lt(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}function ht(t){return(t=Math.round(t))<0?0:t>255?255:t}function ut(t){return t<0?0:t>1?1:t}function ct(t){return ht(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function ft(t){return ut(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function dt(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function gt(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function pt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function vt(t,e){rl&&pt(rl,e),rl=il.put(t,rl||e.slice())}function mt(t,e){if(t){e=e||[];var n=il.get(t);if(n)return pt(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in nl)return pt(e,nl[i]),vt(t,e),e;if("#"!==i.charAt(0)){var r=i.indexOf("("),o=i.indexOf(")");if(-1!==r&&o+1===i.length){var a=i.substr(0,r),s=i.substr(r+1,o-(r+1)).split(","),l=1;switch(a){case"rgba":if(4!==s.length)return void gt(e,0,0,0,1);l=ft(s.pop());case"rgb":return 3!==s.length?void gt(e,0,0,0,1):(gt(e,ct(s[0]),ct(s[1]),ct(s[2]),l),vt(t,e),e);case"hsla":return 4!==s.length?void gt(e,0,0,0,1):(s[3]=ft(s[3]),yt(s,e),vt(t,e),e);case"hsl":return 3!==s.length?void gt(e,0,0,0,1):(yt(s,e),vt(t,e),e);default:return}}gt(e,0,0,0,1)}else{if(4===i.length)return(h=parseInt(i.substr(1),16))>=0&&h<=4095?(gt(e,(3840&h)>>4|(3840&h)>>8,240&h|(240&h)>>4,15&h|(15&h)<<4,1),vt(t,e),e):void gt(e,0,0,0,1);if(7===i.length){var h=parseInt(i.substr(1),16);return h>=0&&h<=16777215?(gt(e,(16711680&h)>>16,(65280&h)>>8,255&h,1),vt(t,e),e):void gt(e,0,0,0,1)}}}}function yt(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=ft(t[1]),r=ft(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return e=e||[],gt(e,ht(255*dt(a,o,n+1/3)),ht(255*dt(a,o,n)),ht(255*dt(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function _t(t,e){var n=mt(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;return xt(n,4===n.length?"rgba":"rgb")}}function xt(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function wt(t,e){return t[e]}function bt(t,e,n){t[e]=n}function St(t,e,n){return(e-t)*n+t}function Mt(t,e,n){return n>.5?e:t}function Tt(t,e,n,i,r){var o=t.length;if(1==r)for(s=0;sr)t.length=r;else for(a=i;a=0&&!(v[n]<=e);n--);n=Math.min(n,h-2)}else{for(n=L;ne);n++);n=Math.min(n-1,h-2)}L=n,P=e;var i=v[n+1]-v[n];if(0!==i)if(T=(e-v[n])/i,l)if(I=m[n],C=m[0===n?n:n-1],A=m[n>h-2?h-1:n+1],k=m[n>h-3?h-1:n+2],f)At(C,I,A,k,T,T*T,T*T*T,a(t,r),p);else{if(d)o=At(C,I,A,k,T,T*T,T*T*T,D,1),o=Pt(D);else{if(g)return Mt(I,A,T);o=kt(C,I,A,k,T,T*T,T*T*T)}s(t,r,o)}else if(f)Tt(m[n],m[n+1],T,a(t,r),p);else{var o;if(d)Tt(m[n],m[n+1],T,D,1),o=Pt(D);else{if(g)return Mt(m[n],m[n+1],T);o=St(m[n],m[n+1],T)}s(t,r,o)}},ondestroy:n});return e&&"spline"!==e&&(O.easing=e),O}}}function zt(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}function Bt(t){for(var e=0;t>=ml;)e|=1&t,t>>=1;return t+e}function Et(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r=0;)r++;return r-e}function Nt(t,e,n){for(n--;e>>1])<0?l=o:s=o+1;var h=i-s;switch(h){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(;h>0;)t[s+h]=t[s+h-1],h--}t[s]=a}}function Ft(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;ls&&(l=s);var h=a;a=r-l,l=r-h}for(a++;a>>1);o(t,e[n+u])>0?a=u+1:l=u}return l}function Wt(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;ls&&(l=s);var h=a;a=r-l,l=r-h}else{for(s=i-r;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a>>1);o(t,e[n+u])<0?l=u:a=u+1}return l}function Vt(t,e){function n(n){var s=o[n],h=a[n],u=o[n+1],c=a[n+1];a[n]=h+c,n===l-3&&(o[n+1]=o[n+2],a[n+1]=a[n+2]),l--;var f=Wt(t[u],t,s,h,0,e);s+=f,0!==(h-=f)&&0!==(c=Ft(t[s+h-1],t,u,c,c-1,e))&&(h<=c?i(s,h,u,c):r(s,h,u,c))}function i(n,i,r,o){var a=0;for(a=0;a=yl||d>=yl);if(g)break;p<0&&(p=0),p+=2}if((s=p)<1&&(s=1),1===i){for(a=0;a=0;a--)t[d+a]=t[f+a];if(0===i){m=!0;break}}if(t[c--]=h[u--],1==--o){m=!0;break}if(0!=(v=o-Ft(t[l],h,0,o,o-1,e))){for(o-=v,d=(c-=v)+1,f=(u-=v)+1,a=0;a=yl||v>=yl);if(m)break;g<0&&(g=0),g+=2}if((s=g)<1&&(s=1),1===o){for(d=(c-=i)+1,f=(l-=i)+1,a=i-1;a>=0;a--)t[d+a]=t[f+a];t[c]=h[u]}else{if(0===o)throw new Error;for(f=c-(o-1),a=0;a=0;a--)t[d+a]=t[f+a];t[c]=h[u]}else for(f=c-(o-1),a=0;a1;){var t=l-2;if(t>=1&&a[t-1]<=a[t]+a[t+1]||t>=2&&a[t-2]<=a[t]+a[t-1])a[t-1]a[t+1])break;n(t)}},this.forceMergeRuns=function(){for(;l>1;){var t=l-2;t>0&&a[t-1]s&&(l=s),Rt(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}function Ht(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function qt(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),t.createLinearGradient(i,o,r,a)}function Xt(t,e,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*i+n.x,s=s*r+n.y,l*=o),t.createRadialGradient(a,s,0,a,s,l)}function Zt(){return!1}function Yt(t,e,n){var i=Os(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a.position="absolute",a.left=0,a.top=0,a.width=r+"px",a.height=o+"px",i.width=r*n,i.height=o*n,i.setAttribute("data-zr-dom-id",t),i}function Ut(t){if("string"==typeof t){var e=Al.get(t);return e&&e.image}return t}function jt(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Al.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?!Qt(e=o.image)&&o.pending.push(a):(!e&&(e=new Image),e.onload=$t,Al.put(t,e.__cachedImgObj={image:e,pending:[a]}),e.src=e.__zrImageSrc=t),e}return t}return e}function $t(){var t=this.__cachedImgObj;this.onload=this.__cachedImgObj=null;for(var e=0;ePl&&(Ll=0,kl={}),Ll++,kl[n]=r,r}function Jt(t,e,n,i,r,o,a){return o?ee(t,e,n,i,r,o,a):te(t,e,n,i,r,a)}function te(t,e,n,i,r,o){var a=ce(t,e,r,o),s=Kt(t,e);r&&(s+=r[1]+r[3]);var l=a.outerHeight,h=new zt(ne(0,s,n),ie(0,l,i),s,l);return h.lineHeight=a.lineHeight,h}function ee(t,e,n,i,r,o,a){var s=fe(t,{rich:o,truncate:a,font:e,textAlign:n,textPadding:r}),l=s.outerWidth,h=s.outerHeight;return new zt(ne(0,l,n),ie(0,h,i),l,h)}function ne(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function ie(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function re(t,e,n){var i=e.x,r=e.y,o=e.height,a=e.width,s=o/2,l="left",h="top";switch(t){case"left":i-=n,r+=s,l="right",h="middle";break;case"right":i+=n+a,r+=s,h="middle";break;case"top":i+=a/2,r-=n,l="center",h="bottom";break;case"bottom":i+=a/2,r+=o+n,l="center";break;case"inside":i+=a/2,r+=s,l="center",h="middle";break;case"insideLeft":i+=n,r+=s,h="middle";break;case"insideRight":i+=a-n,r+=s,l="right",h="middle";break;case"insideTop":i+=a/2,r+=n,l="center";break;case"insideBottom":i+=a/2,r+=o-n,l="center",h="bottom";break;case"insideTopLeft":i+=n,r+=n;break;case"insideTopRight":i+=a-n,r+=n,l="right";break;case"insideBottomLeft":i+=n,r+=o-n,h="bottom";break;case"insideBottomRight":i+=a-n,r+=o-n,l="right",h="bottom"}return{x:i,y:r,textAlign:l,textVerticalAlign:h}}function oe(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=ae(e,n,i,r);for(var a=0,s=o.length;a=a;l++)s-=a;var h=Kt(n);return h>s&&(n="",h=0),s=t-h,i.ellipsis=n,i.ellipsisWidth=h,i.contentWidth=s,i.containerWidth=t,i}function se(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=Kt(t,i);if(o<=n)return t;for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?le(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;o=Kt(t=t.substr(0,s),i)}return""===t&&(t=e.placeholder),t}function le(t,e,n,i){for(var r=0,o=0,a=t.length;ol)t="",o=[];else if(null!=h)for(var u=ae(h-(n?n[1]+n[3]:0),e,i.ellipsis,{minChar:i.minChar,placeholder:i.placeholder}),c=0,f=o.length;cr&&de(n,t.substring(r,o)),de(n,i[2],i[1]),r=Dl.lastIndex}rd)return{lines:[],width:0,height:0};P.textWidth=Kt(P.text,x);var b=y.textWidth,S=null==b||"auto"===b;if("string"==typeof b&&"%"===b.charAt(b.length-1))P.percentWidth=b,h.push(P),b=0;else{if(S){b=P.textWidth;var M=y.textBackgroundColor,T=M&&M.image;T&&Qt(T=Ut(T))&&(b=Math.max(b,T.width*w/T.height))}var A=_?_[1]+_[3]:0;b+=A;var k=null!=f?f-v:null;null!=k&&kl&&(n*=l/(c=n+i),i*=l/c),r+o>l&&(r*=l/(c=r+o),o*=l/c),i+r>h&&(i*=h/(c=i+r),r*=h/c),n+o>h&&(n*=h/(c=n+o),o*=h/c),t.moveTo(a+n,s),t.lineTo(a+l-i,s),0!==i&&t.quadraticCurveTo(a+l,s,a+l,s+i),t.lineTo(a+l,s+h-r),0!==r&&t.quadraticCurveTo(a+l,s+h,a+l-r,s+h),t.lineTo(a+o,s+h),0!==o&&t.quadraticCurveTo(a,s+h,a,s+h-o),t.lineTo(a,s+n),0!==n&&t.quadraticCurveTo(a,s,a+n,s)}function ve(t){return me(t),f(t.rich,me),t}function me(t){if(t){t.font=ge(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||Bl[e]?e:"left";var n=t.textVerticalAlign||t.textBaseline;"center"===n&&(n="middle"),t.textVerticalAlign=null==n||El[n]?n:"top",t.textPadding&&(t.textPadding=k(t.textPadding))}}function ye(t,e,n,i,r){i.rich?xe(t,e,n,i,r):_e(t,e,n,i,r)}function _e(t,e,n,i,r){var o=Ae(e,"font",i.font||Ol),a=i.textPadding,s=t.__textCotentBlock;s&&!t.__dirty||(s=t.__textCotentBlock=ce(n,o,a,i.truncate));var l=s.outerHeight,h=s.lines,u=s.lineHeight,c=Ie(l,i,r),f=c.baseX,d=c.baseY,g=c.textAlign,p=c.textVerticalAlign;be(e,i,r,f,d);var v=ie(d,l,p),m=f,y=v,_=Me(i);if(_||a){var x=Kt(n,o);a&&(x+=a[1]+a[3]);var w=ne(f,x,g);_&&Te(t,e,i,w,v,x,l),a&&(m=De(f,g,a),y+=a[0])}Ae(e,"textAlign",g||"left"),Ae(e,"textBaseline","middle"),Ae(e,"shadowBlur",i.textShadowBlur||0),Ae(e,"shadowColor",i.textShadowColor||"transparent"),Ae(e,"shadowOffsetX",i.textShadowOffsetX||0),Ae(e,"shadowOffsetY",i.textShadowOffsetY||0),y+=u/2;var b=i.textStrokeWidth,S=ke(i.textStroke,b),M=Le(i.textFill);S&&(Ae(e,"lineWidth",b),Ae(e,"strokeStyle",S)),M&&Ae(e,"fillStyle",M);for(var T=0;T=0&&"right"===(x=b[k]).textAlign;)Se(t,e,x,i,M,m,A,"right"),T-=x.width,A-=x.width,k--;for(I+=(o-(I-v)-(y-A)-T)/2;C<=k;)Se(t,e,x=b[C],i,M,m,I+x.width/2,"center"),I+=x.width,C++;m+=M}}function be(t,e,n,i,r){if(n&&e.textRotation){var o=e.textOrigin;"center"===o?(i=n.width/2+n.x,r=n.height/2+n.y):o&&(i=o[0]+n.x,r=o[1]+n.y),t.translate(i,r),t.rotate(-e.textRotation),t.translate(-i,-r)}}function Se(t,e,n,i,r,o,a,s){var l=i.rich[n.styleName]||{},h=n.textVerticalAlign,u=o+r/2;"top"===h?u=o+n.height/2:"bottom"===h&&(u=o+r-n.height/2),!n.isLineHolder&&Me(l)&&Te(t,e,l,"right"===s?a-n.width:"center"===s?a-n.width/2:a,u-n.height/2,n.width,n.height);var c=n.textPadding;c&&(a=De(a,s,c),u-=n.height/2-c[2]-n.textHeight/2),Ae(e,"shadowBlur",I(l.textShadowBlur,i.textShadowBlur,0)),Ae(e,"shadowColor",l.textShadowColor||i.textShadowColor||"transparent"),Ae(e,"shadowOffsetX",I(l.textShadowOffsetX,i.textShadowOffsetX,0)),Ae(e,"shadowOffsetY",I(l.textShadowOffsetY,i.textShadowOffsetY,0)),Ae(e,"textAlign",s),Ae(e,"textBaseline","middle"),Ae(e,"font",n.font||Ol);var f=ke(l.textStroke||i.textStroke,g),d=Le(l.textFill||i.textFill),g=C(l.textStrokeWidth,i.textStrokeWidth);f&&(Ae(e,"lineWidth",g),Ae(e,"strokeStyle",f),e.strokeText(n.text,a,u)),d&&(Ae(e,"fillStyle",d),e.fillText(n.text,a,u))}function Me(t){return t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor}function Te(t,e,n,i,r,o,a){var s=n.textBackgroundColor,l=n.textBorderWidth,h=n.textBorderColor,u=x(s);if(Ae(e,"shadowBlur",n.textBoxShadowBlur||0),Ae(e,"shadowColor",n.textBoxShadowColor||"transparent"),Ae(e,"shadowOffsetX",n.textBoxShadowOffsetX||0),Ae(e,"shadowOffsetY",n.textBoxShadowOffsetY||0),u||l&&h){e.beginPath();var c=n.textBorderRadius;c?pe(e,{x:i,y:r,width:o,height:a,r:c}):e.rect(i,r,o,a),e.closePath()}if(u)Ae(e,"fillStyle",s),e.fill();else if(w(s)){var f=s.image;(f=jt(f,null,t,Ce,s))&&Qt(f)&&e.drawImage(f,i,r,o,a)}l&&h&&(Ae(e,"lineWidth",l),Ae(e,"strokeStyle",h),e.stroke())}function Ce(t,e){e.image=t}function Ie(t,e,n){var i=e.x||0,r=e.y||0,o=e.textAlign,a=e.textVerticalAlign;if(n){var s=e.textPosition;if(s instanceof Array)i=n.x+Pe(s[0],n.width),r=n.y+Pe(s[1],n.height);else{var l=re(s,n,e.textDistance);i=l.x,r=l.y,o=o||l.textAlign,a=a||l.textVerticalAlign}var h=e.textOffset;h&&(i+=h[0],r+=h[1])}return{baseX:i,baseY:r,textAlign:o,textVerticalAlign:a}}function Ae(t,e,n){return t[e]=n,t[e]}function ke(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Le(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Pe(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function De(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Oe(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}function ze(t){t=t||{},fl.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new wl(t.style,this),this._rect=null,this.__clipPaths=[]}function Be(t){ze.call(this,t)}function Ee(t){return parseInt(t,10)}function Ne(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}function Re(t){t.__unusedCount++}function Fe(t){1==t.__unusedCount&&t.clear()}function We(t,e,n){return Fl.copy(t.getBoundingRect()),t.transform&&Fl.applyTransform(t.transform),Wl.width=e,Wl.height=n,!Fl.intersect(Wl)}function Ve(t,e){if(t==e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n=0){var r="touchend"!=i?e.targetTouches[0]:e.changedTouches[0];r&&Xe(t,r,e,n)}else Xe(t,e,e,n),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var o=e.button;return null==e.which&&void 0!==o&&Hl.test(e.type)&&(e.which=1&o?1:2&o?3:4&o?2:0),e}function Ue(t,e,n){Gl?t.addEventListener(e,n):t.attachEvent("on"+e,n)}function je(t,e,n){Gl?t.removeEventListener(e,n):t.detachEvent("on"+e,n)}function $e(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function Qe(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function Ke(t){return"mousewheel"===t&&bs.browser.firefox?"DOMMouseScroll":t}function Je(t,e,n){var i=t._gestureMgr;"start"===n&&i.clear();var r=i.recognize(e,t.handler.findHover(e.zrX,e.zrY,null).target,t.dom);if("end"===n&&i.clear(),r){var o=r.type;e.gestureEvent=o,t.handler.dispatchToElement({target:r.target},o,r.event)}}function tn(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function en(t){var e=t.pointerType;return"pen"===e||"touch"===e}function nn(t){function e(t,e){return function(){if(!e._touching)return t.apply(e,arguments)}}f(Ul,function(e){t._handlers[e]=v(Ql[e],t)}),f($l,function(e){t._handlers[e]=v(Ql[e],t)}),f(Yl,function(n){t._handlers[n]=e(Ql[n],t)})}function rn(t){function e(e,n){f(e,function(e){Ue(t,Ke(e),n._handlers[e])},n)}Ws.call(this),this.dom=t,this._touching=!1,this._touchTimer,this._gestureMgr=new Xl,this._handlers={},nn(this),bs.pointerEventsSupported?e($l,this):(bs.touchEventsSupported&&e(Ul,this),e(Yl,this))}function on(t,e){return new eh(xs(),t,e)}function an(t){return t.replace(/^\s+/,"").replace(/\s+$/,"")}function sn(t,e,n,i){var r=e[1]-e[0],o=n[1]-n[0];if(0===r)return 0===o?n[0]:(n[0]+n[1])/2;if(i)if(r>0){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/r*o+n[0]}function ln(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?an(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function hn(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function un(t){var e=t.toString(),n=e.indexOf("e");if(n>0){var i=+e.slice(n+1);return i<0?-i:0}var r=e.indexOf(".");return r<0?0:e.length-1-r}function cn(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function fn(t,e,n){if(!t[e])return 0;var i=g(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var r=Math.pow(10,n),o=d(t,function(t){return(isNaN(t)?0:t)/i*r*100}),a=100*r,s=d(o,function(t){return Math.floor(t)}),l=g(s,function(t,e){return t+e},0),h=d(o,function(t,e){return t-s[e]});lu&&(u=h[f],c=f);++s[c],h[c]=0,++l}return s[e]/r}function dn(t){var e=2*Math.PI;return(t%e+e)%e}function gn(t){return t>-nh&&t=-20?+t.toFixed(i<0?-i:0):t}function _n(t){return isNaN(t)?"-":(t=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function xn(t){return String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function wn(t,e,n){y(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o':""}function Sn(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=pn(e),r=n?"UTC":"",o=i["get"+r+"FullYear"](),a=i["get"+r+"Month"]()+1,s=i["get"+r+"Date"](),l=i["get"+r+"Hours"](),h=i["get"+r+"Minutes"](),u=i["get"+r+"Seconds"]();return t=t.replace("MM",sh(a)).replace("M",a).replace("yyyy",o).replace("yy",o%100).replace("dd",sh(s)).replace("d",s).replace("hh",sh(l)).replace("h",l).replace("mm",sh(h)).replace("m",h).replace("ss",sh(u)).replace("s",u)}function Mn(t,e,n){return t[ch+e]=n}function Tn(t,e){return t[ch+e]}function Cn(t,e){return t.hasOwnProperty(ch+e)}function In(t){var e={main:"",sub:""};return t&&(t=t.split(hh),e.main=t[0]||"",e.sub=t[1]||""),e}function An(t){L(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function kn(t,e){t.$constructor=t,t.extend=function(t){var e=this,n=function(){t.$constructor?t.$constructor.apply(this,arguments):e.apply(this,arguments)};return o(n.prototype,t),n.extend=this.extend,n.superCall=Ln,n.superApply=Pn,h(n,this),n.superClass=e,n}}function Ln(t,e){var n=A(arguments,2);return this.superClass.prototype[e].apply(t,n)}function Pn(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Dn(t,e){function n(t){var e=i[t.main];return e&&e[uh]||((e=i[t.main]={})[uh]=!0),e}e=e||{};var i={};if(t.registerClass=function(t,e){return e&&(An(e),(e=In(e)).sub?e.sub!==uh&&(n(e)[e.sub]=t):i[e.main]=t),t},t.getClass=function(t,e,n){var r=i[t];if(r&&r[uh]&&(r=e?r[e]:null),n&&!r)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){t=In(t);var e=[],n=i[t.main];return n&&n[uh]?f(n,function(t,n){n!==uh&&e.push(t)}):e.push(n),e},t.hasClass=function(t){return t=In(t),!!i[t.main]},t.getAllClassMainTypes=function(){var t=[];return f(i,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){t=In(t);var e=i[t.main];return e&&e[uh]},t.parseClassType=In,e.registerWhenExtend){var r=t.extend;r&&(t.extend=function(e){var n=r.call(this,e);return t.registerClass(n,e.type)})}return t}function On(t){return t>-_h&&t<_h}function zn(t){return t>_h||t<-_h}function Bn(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function En(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function Nn(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),h=t-r,u=s*s-3*a*l,c=s*l-9*a*h,f=l*l-3*s*h,d=0;if(On(u)&&On(c))On(s)?o[0]=0:(M=-l/s)>=0&&M<=1&&(o[d++]=M);else{var g=c*c-4*u*f;if(On(g)){var p=c/u,v=-p/2;(M=-s/a+p)>=0&&M<=1&&(o[d++]=M),v>=0&&v<=1&&(o[d++]=v)}else if(g>0){var m=yh(g),y=u*s+1.5*a*(-c+m),_=u*s+1.5*a*(-c-m);(M=(-s-((y=y<0?-mh(-y,bh):mh(y,bh))+(_=_<0?-mh(-_,bh):mh(_,bh))))/(3*a))>=0&&M<=1&&(o[d++]=M)}else{var x=(2*u*s-3*a*c)/(2*yh(u*u*u)),w=Math.acos(x)/3,b=yh(u),S=Math.cos(w),M=(-s-2*b*S)/(3*a),v=(-s+b*(S+wh*Math.sin(w)))/(3*a),T=(-s+b*(S-wh*Math.sin(w)))/(3*a);M>=0&&M<=1&&(o[d++]=M),v>=0&&v<=1&&(o[d++]=v),T>=0&&T<=1&&(o[d++]=T)}}return d}function Rn(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(On(a))zn(o)&&(c=-s/o)>=0&&c<=1&&(r[l++]=c);else{var h=o*o-4*a*s;if(On(h))r[0]=-o/(2*a);else if(h>0){var u=yh(h),c=(-o+u)/(2*a),f=(-o-u)/(2*a);c>=0&&c<=1&&(r[l++]=c),f>=0&&f<=1&&(r[l++]=f)}}return l}function Fn(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,h=(s-a)*r+a,u=(l-s)*r+s,c=(u-h)*r+h;o[0]=t,o[1]=a,o[2]=h,o[3]=c,o[4]=c,o[5]=u,o[6]=l,o[7]=i}function Wn(t,e,n,i,r,o,a,s,l,h,u){var c,f,d,g,p,v=.005,m=1/0;Sh[0]=l,Sh[1]=h;for(var y=0;y<1;y+=.05)Mh[0]=Bn(t,n,r,a,y),Mh[1]=Bn(e,i,o,s,y),(g=Rs(Sh,Mh))=0&&g=0&&c<=1&&(r[l++]=c);else{var h=a*a-4*o*s;if(On(h))(c=-a/(2*o))>=0&&c<=1&&(r[l++]=c);else if(h>0){var u=yh(h),c=(-a+u)/(2*o),f=(-a-u)/(2*o);c>=0&&c<=1&&(r[l++]=c),f>=0&&f<=1&&(r[l++]=f)}}return l}function qn(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function Xn(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function Zn(t,e,n,i,r,o,a,s,l){var h,u=.005,c=1/0;Sh[0]=a,Sh[1]=s;for(var f=0;f<1;f+=.05)Mh[0]=Vn(t,n,r,f),Mh[1]=Vn(e,i,o,f),(v=Rs(Sh,Mh))=0&&v1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(Ph[0]=kh(r)*n+t,Ph[1]=Ah(r)*i+e,Dh[0]=kh(o)*n+t,Dh[1]=Ah(o)*i+e,h(s,Ph,Dh),u(l,Ph,Dh),(r%=Lh)<0&&(r+=Lh),(o%=Lh)<0&&(o+=Lh),r>o&&!a?o+=Lh:rr&&(Oh[0]=kh(d)*n+t,Oh[1]=Ah(d)*i+e,h(s,Oh,s),u(l,Oh,l))}function Qn(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0,h=t;if(a>e+s&&a>i+s||at+s&&o>n+s||oe+c&&u>i+c&&u>o+c&&u>s+c||ut+c&&h>n+c&&h>r+c&&h>a+c||he+h&&l>i+h&&l>o+h||lt+h&&s>n+h&&s>r+h||sn||u+hr&&(r+=$h);var f=Math.atan2(l,s);return f<0&&(f+=$h),f>=i&&f<=r||f+$h>=i&&f+$h<=r}function ni(t,e,n,i,r,o){if(o>e&&o>i||or?a:0}function ii(t,e){return Math.abs(t-e)e&&h>i&&h>o&&h>s||h1&&ri(),c=Bn(e,i,o,s,eu[0]),g>1&&(f=Bn(e,i,o,s,eu[1]))),2==g?ve&&s>i&&s>o||s=0&&h<=1){for(var u=0,c=Vn(e,i,o,h),f=0;fn||s<-n)return 0;h=Math.sqrt(n*n-s*s);tu[0]=-h,tu[1]=h;var l=Math.abs(i-r);if(l<1e-4)return 0;if(l%Kh<1e-4){i=0,r=Kh;g=o?1:-1;return a>=tu[0]+t&&a<=tu[1]+t?g:0}if(o){var h=i;i=ti(r),r=ti(h)}else i=ti(i),r=ti(r);i>r&&(r+=Kh);for(var u=0,c=0;c<2;c++){var f=tu[c];if(f+t>a){var d=Math.atan2(s,f),g=o?1:-1;d<0&&(d=Kh+d),(d>=i&&d<=r||d+Kh>=i&&d+Kh<=r)&&(d>Math.PI/2&&d<1.5*Math.PI&&(g=-g),u+=g)}}return u}function li(t,e,n,i,r){for(var o=0,a=0,s=0,l=0,h=0,u=0;u1&&(n||(o+=ni(a,s,l,h,i,r))),1==u&&(l=a=t[u],h=s=t[u+1]),c){case Qh.M:a=l=t[u++],s=h=t[u++];break;case Qh.L:if(n){if(Qn(a,s,t[u],t[u+1],e,i,r))return!0}else o+=ni(a,s,t[u],t[u+1],i,r)||0;a=t[u++],s=t[u++];break;case Qh.C:if(n){if(Kn(a,s,t[u++],t[u++],t[u++],t[u++],t[u],t[u+1],e,i,r))return!0}else o+=oi(a,s,t[u++],t[u++],t[u++],t[u++],t[u],t[u+1],i,r)||0;a=t[u++],s=t[u++];break;case Qh.Q:if(n){if(Jn(a,s,t[u++],t[u++],t[u],t[u+1],e,i,r))return!0}else o+=ai(a,s,t[u++],t[u++],t[u],t[u+1],i,r)||0;a=t[u++],s=t[u++];break;case Qh.A:var f=t[u++],d=t[u++],g=t[u++],p=t[u++],v=t[u++],m=t[u++],y=(t[u++],1-t[u++]),_=Math.cos(v)*g+f,x=Math.sin(v)*p+d;u>1?o+=ni(a,s,_,x,i,r):(l=_,h=x);var w=(i-f)*p/g+f;if(n){if(ei(f,d,p,v,v+m,y,e,w,r))return!0}else o+=si(f,d,p,v,v+m,y,w,r);a=Math.cos(v+m)*g+f,s=Math.sin(v+m)*p+d;break;case Qh.R:l=a=t[u++],h=s=t[u++];var _=l+t[u++],x=h+t[u++];if(n){if(Qn(l,h,_,h,e,i,r)||Qn(_,h,_,x,e,i,r)||Qn(_,x,l,x,e,i,r)||Qn(l,x,l,h,e,i,r))return!0}else o+=ni(_,h,_,x,i,r),o+=ni(l,x,l,h,i,r);break;case Qh.Z:if(n){if(Qn(a,s,l,h,e,i,r))return!0}else o+=ni(a,s,l,h,i,r);a=l,s=h}}return n||ii(s,h)||(o+=ni(a,s,l,h,i,r)||0),0!==o}function hi(t,e,n){return li(t,0,!1,e,n)}function ui(t,e,n,i){return li(t,e,!0,n,i)}function ci(t){ze.call(this,t),this.path=null}function fi(t,e,n,i,r,o,a,s,l,h,u){var c=l*(gu/180),f=du(c)*(t-n)/2+fu(c)*(e-i)/2,d=-1*fu(c)*(t-n)/2+du(c)*(e-i)/2,g=f*f/(a*a)+d*d/(s*s);g>1&&(a*=cu(g),s*=cu(g));var p=(r===o?-1:1)*cu((a*a*(s*s)-a*a*(d*d)-s*s*(f*f))/(a*a*(d*d)+s*s*(f*f)))||0,v=p*a*d/s,m=p*-s*f/a,y=(t+n)/2+du(c)*v-fu(c)*m,_=(e+i)/2+fu(c)*v+du(c)*m,x=mu([1,0],[(f-v)/a,(d-m)/s]),w=[(f-v)/a,(d-m)/s],b=[(-1*f-v)/a,(-1*d-m)/s],S=mu(w,b);vu(w,b)<=-1&&(S=gu),vu(w,b)>=1&&(S=0),0===o&&S>0&&(S-=2*gu),1===o&&S<0&&(S+=2*gu),u.addData(h,y,_,a,s,x,S,c,o)}function di(t){if(!t)return[];var e,n=t.replace(/-/g," -").replace(/ /g," ").replace(/ /g,",").replace(/,,/g,",");for(e=0;e0&&""===d[0]&&d.shift();for(var g=0;g=2){if(r&&"spline"!==r){var o=Tu(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],h=o[2*s+1],u=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],h[0],h[1],u[0],u[1])}}else{"spline"===r&&(i=Mu(i,n)),t.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s=0)&&(i={textFill:null,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth},t.textFill="#fff",null==t.textStroke&&(t.textStroke=n.autoColor,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),i}function Yi(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth)}function Ui(t,e){var n=e||e.getModel("textStyle");return[t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" ")}function ji(t,e,n,i,r,o){if("function"==typeof r&&(o=r,r=null),i&&i.isAnimationEnabled()){var a=t?"Update":"",s=i.getShallow("animationDuration"+a),l=i.getShallow("animationEasing"+a),h=i.getShallow("animationDelay"+a);"function"==typeof h&&(h=h(r,i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null)),"function"==typeof s&&(s=s(r)),s>0?e.animateTo(n,s,h||0,l,o,!!o):(e.stopAnimation(),e.attr(n),o&&o())}else e.stopAnimation(),e.attr(n),o&&o()}function $i(t,e,n,i,r){ji(!0,t,e,n,i,r)}function Qi(t,e,n,i,r){ji(!1,t,e,n,i,r)}function Ki(t,e,n){return e&&!c(e)&&(e=Ys.getLocalTransform(e)),n&&(e=at([],e)),X([],t,e)}function Ji(t,e,n,i){function r(t){var e={position:N(t.position),rotation:t.rotation};return t.shape&&(e.shape=o({},t.shape)),e}if(t&&e){var a=function(t){var e={};return t.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}(t);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=a[t.anid];if(e){var i=r(t);t.attr(r(e)),$i(t,i,n,t.dataIndex)}}})}}function tr(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function er(t,e,n){for(var i=0;i=n.length&&n.push({option:t})}}),n}function hr(t){var e=z();Yu(t,function(t,n){var i=t.exist;i&&e.set(i.id,t)}),Yu(t,function(t,n){var i=t.option;L(!i||null==i.id||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),Yu(t,function(t,n){var i=t.exist,r=t.option,o=t.keyInfo;if(Uu(r)){if(o.name=null!=r.name?r.name+"":i?i.name:"\0-",i)o.id=i.id;else if(null!=r.id)o.id=r.id+"";else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(e.get(o.id))}e.set(o.id,t)}})}function ur(t){return Uu(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}function cr(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?y(e.dataIndex)?d(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?y(e.name)?d(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function fr(t,e,n){if(x(e)){var i={};i[e+"Index"]=0,e=i}var r=n&&n.defaultMainType;!r||vr(e,r+"Index")||vr(e,r+"Id")||vr(e,r+"Name")||(e[r+"Index"]=0);var o={};return Yu(e,function(i,r){var i=e[r];if("dataIndex"!==r&&"dataIndexInside"!==r){var a=r.match(/^(\w+)(Index|Id|Name)$/)||[],s=a[1],h=(a[2]||"").toLowerCase();if(!(!s||!h||null==i||"index"===h&&"none"===i||n&&n.includeMainTypes&&l(n.includeMainTypes,s)<0)){var u={mainType:s};"index"===h&&"all"===i||(u[h]=i);var c=t.queryComponents(u);o[s+"Models"]=c,o[s+"Model"]=c[0]}}else o[r]=i}),o}function dr(t,e){var n=t.dimensions;e=t.getDimension(e);for(var i=0;ii||l.newline?(o=0,u=v,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var m=d.height+(p?-p.y+d.y:0);(c=a+m)>r||l.newline?(o+=s+n,a=0,c=m,s=d.width):s=Math.max(s,d.width)}l.newline||(f[0]=o,f[1]=a,"horizontal"===t?o=u+n:a=c+n)})}function _r(t,e,n){n=rh(n||0);var i=e.width,r=e.height,o=ln(t.left,i),a=ln(t.top,r),s=ln(t.right,i),l=ln(t.bottom,r),h=ln(t.width,i),u=ln(t.height,r),c=n[2]+n[0],f=n[1]+n[3],d=t.aspect;switch(isNaN(h)&&(h=i-s-f-o),isNaN(u)&&(u=r-l-c-a),null!=d&&(isNaN(h)&&isNaN(u)&&(d>i/r?h=.8*i:u=.8*r),isNaN(h)&&(h=d*u),isNaN(u)&&(u=h/d)),isNaN(o)&&(o=i-s-h-f),isNaN(a)&&(a=r-l-u-c),t.left||t.right){case"center":o=i/2-h/2-n[3];break;case"right":o=i-h-f}switch(t.top||t.bottom){case"middle":case"center":a=r/2-u/2-n[0];break;case"bottom":a=r-u-c}o=o||0,a=a||0,isNaN(h)&&(h=i-f-o-(s||0)),isNaN(u)&&(u=r-c-a-(l||0));var g=new zt(o+n[3],a+n[0],h,u);return g.margin=n,g}function xr(t,e,n){function i(n,i){var a={},l=0,h={},u=0;if(Ju(n,function(e){h[e]=t[e]}),Ju(n,function(t){r(e,t)&&(a[t]=h[t]=e[t]),o(a,t)&&l++,o(h,t)&&u++}),s[i])return o(e,n[1])?h[n[2]]=null:o(e,n[2])&&(h[n[1]]=null),h;if(2!==u&&l){if(l>=2)return a;for(var c=0;c=e:"max"===n?t<=e:t===e}function Br(t,e){return t.join(",")===e.join(",")}function Er(t,e){yc(e=e||{},function(e,n){if(null!=e){var i=t[n];if(rc.hasClass(n)){e=ir(e);var r=lr(i=ir(i),e);t[n]=xc(r,function(t){return t.option&&t.exist?wc(t.exist,t.option,!0):t.exist||t.option})}else t[n]=wc(i,e,!0)}})}function Nr(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=Tc.length;n=0?i():c=setTimeout(i,-o),h=r};return f.clear=function(){c&&(clearTimeout(c),c=null)},f.debounceNextCall=function(t){l=t},f}function $r(t){return function(e,n,i){e=e&&e.toLowerCase(),Ws.prototype[t].call(this,e,n,i)}}function Qr(){Ws.call(this)}function Kr(t,e,i){function r(t,e){return t.prio-e.prio}i=i||{},"string"==typeof e&&(e=ef[e]),this.id,this.group,this._dom=t;var o=this._zr=on(t,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height});this._throttledZrFlush=jr(v(o.flush,o),17),(e=n(e))&&Lc(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new Lr,this._api=po(this),Ws.call(this),this._messageCenter=new Qr,this._initEvents(),this.resize=v(this.resize,this),this._pendingActions=[],Gt(tf,r),Gt(Qc,r),o.animation.on("frame",this._onframe,this),P(this)}function Jr(t,e,n){var i,r=this._model,o=this._coordSysMgr.getCoordinateSystems();e=fr(r,e);for(var a=0;ae.get("hoverLayerThreshold")&&!bs.node&&n.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}function fo(t,e){var n=0;e.group.traverse(function(t){"group"===t.type||t.ignore||n++});var i=+t.get("progressive"),r=n>t.get("progressiveThreshold")&&i&&!bs.node;r&&e.group.traverse(function(t){t.isGroup||(t.progressive=r?Math.floor(n++/i):-1,r&&t.stopAnimation(!0))});var o=t.get("blendMode")||null;e.group.traverse(function(t){t.isGroup||t.setStyle("blend",o)})}function go(t,e){var n=t.get("z"),i=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i))})}function po(t){var e=t._coordSysMgr;return o(new kr(t),{getCoordinateSystems:v(e.getCoordinateSystems,e),getComponentByElement:function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}}})}function vo(t){function e(t,e){for(var i=0;i=0?r[s]=new h.constructor(o[s].length):r[s]=o[s]}return i}function Bo(t,e,i){function r(t,e,n){bf[e]?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,h.set(e,!0))}function o(t,e,n){if(n||null!=e.get(t)){for(var i=0;null!=e.get(t+i);)i++;t+=i}return e.set(t,!0),t}e=e||[],i=i||{},t=(t||[]).slice();var a=(i.dimsDef||[]).slice(),s=z(i.encodeDef),l=z(),h=z(),u=[],c=i.dimCount;if(null==c){var f=Eo(e[0]);c=Math.max(y(f)&&f.length||1,t.length,a.length),_f(t,function(t){var e=t.dimsDef;e&&(c=Math.max(c,e.length))})}for(var d=0;d=0&&Ro(t)?function(t,e,n,i){return ar(t)&&(c.hasItemOption=!0),i===u?n:sr(or(t),h[i])}:function(t,e,n,i){var r=or(t),o=sr(r&&r[i],h[i]);ar(t)&&(c.hasItemOption=!0);var a=s&&s.categoryAxesModels;return a&&a[e]&&"string"==typeof o&&(d[e]=d[e]||a[e].getCategories(),(o=l(d[e],o))<0&&!isNaN(o)&&(o=+o)),o};return c.hasItemOption=!1,c.initData(t,f,g),c}function Wo(t){return"category"!==t&&"time"!==t}function Vo(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function Go(t,e){var n,i=[],r=t&&t.dimensions[t.categoryIndex];if(r&&(n=t.categoryAxesModels[r.name]),n){var o=n.getCategories();if(o){var a=e.length;if(y(e[0])&&e[0].length>1){i=[];for(var s=0;s=0?1:-1}function Jo(t,e,n){for(var i,r=t.getBaseAxis(),o=t.getOtherAxis(r),a=r.onZero?0:o.scale.getExtent()[0],s=o.dim,l="x"===s||"radius"===s?1:0,h=e.stackedOn,u=e.get(s,n);h&&Ko(h.get(s,n))===Ko(u);){i=h;break}var c=[];return c[l]=e.get(r.dim,n),c[1-l]=i?i.get(s,n,!0):a,t.dataToPoint(c)}function ta(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}function ea(t){return isNaN(t[0])||isNaN(t[1])}function na(t,e,n,i,r,o,a,s,l,h,u){for(var c=0,f=n,d=0;d=r||f<0)break;if(ea(g)){if(u){f+=o;continue}break}if(f===n)t[o>0?"moveTo":"lineTo"](g[0],g[1]),Gf(qf,g);else if(l>0){var p=f+o,v=e[p];if(u)for(;v&&ea(e[p]);)v=e[p+=o];var m=.5,y=e[c];if(!(v=e[p])||ea(v))Gf(Xf,g);else{ea(v)&&!u&&(v=g),F(Hf,v,y);var _,x;if("x"===h||"y"===h){var w="x"===h?0:1;_=Math.abs(g[w]-y[w]),x=Math.abs(g[w]-v[w])}else _=Ns(g,y),x=Ns(g,v);Vf(Xf,g,Hf,-l*(1-(m=x/(x+_))))}Ff(qf,qf,s),Wf(qf,qf,a),Ff(Xf,Xf,s),Wf(Xf,Xf,a),t.bezierCurveTo(qf[0],qf[1],Xf[0],Xf[1],g[0],g[1]),Vf(qf,g,Hf,l*m)}else t.lineTo(g[0],g[1]);c=f,f+=o}return d}function ia(t,e){var n=[1/0,1/0],i=[-1/0,-1/0];if(e)for(var r=0;ri[0]&&(i[0]=o[0]),o[1]>i[1]&&(i[1]=o[1])}return{min:e?n:i,max:e?i:n}}function ra(t,e){if(t.length===e.length){for(var n=0;ne[0]?1:-1;e[0]+=i*n,e[1]-=i*n}return e}function sa(t){return t>=0?1:-1}function la(t,e){var n=t.getBaseAxis(),i=t.getOtherAxis(n),r=0;if(!n.onZero){var o=i.scale.getExtent();o[0]>0?r=o[0]:o[1]<0&&(r=o[1])}var a=i.dim,s="x"===a||"radius"===a?1:0;return e.mapArray([a],function(i,o){for(var l,h=e.stackedOn;h&&sa(h.get(a,o))===sa(i);){l=h;break}var u=[];return u[s]=e.get(n.dim,o),u[1-s]=l?l.get(a,o,!0):r,t.dataToPoint(u)},!0)}function ha(t,e,n){var i=aa(t.getAxis("x")),r=aa(t.getAxis("y")),o=t.getBaseAxis().isHorizontal(),a=Math.min(i[0],i[1]),s=Math.min(r[0],r[1]),l=Math.max(i[0],i[1])-a,h=Math.max(r[0],r[1])-s,u=n.get("lineStyle.normal.width")||2,c=n.get("clipOverflow")?u/2:Math.max(l,h);o?(s-=c,h+=2*c):(a-=c,l+=2*c);var f=new Au({shape:{x:a,y:s,width:l,height:h}});return e&&(f.shape[o?"width":"height"]=0,Qi(f,{shape:{width:l,height:h}},n)),f}function ua(t,e,n){var i=t.getAngleAxis(),r=t.getRadiusAxis().getExtent(),o=i.getExtent(),a=Math.PI/180,s=new bu({shape:{cx:t.cx,cy:t.cy,r0:r[0],r:r[1],startAngle:-o[0]*a,endAngle:-o[1]*a,clockwise:i.inverse}});return e&&(s.shape.endAngle=-o[0]*a,Qi(s,{shape:{endAngle:-o[1]*a}},n)),s}function ca(t,e,n){return"polar"===t.type?ua(t,e,n):ha(t,e,n)}function fa(t,e,n){for(var i=e.getBaseAxis(),r="x"===i.dim||"radius"===i.dim?0:1,o=[],a=0;a=0;r--)if(n[r].dimension<2){i=n[r];break}if(i&&"cartesian2d"===e.type){var o=i.dimension,a=t.dimensions[o],s=e.getAxis(a),l=d(i.stops,function(t){return{coord:s.toGlobalCoord(s.dataToCoord(t.value)),color:t.color}}),h=l.length,u=i.outerColors.slice();h&&l[0].coord>l[h-1].coord&&(l.reverse(),u.reverse());var c=l[0].coord-10,g=l[h-1].coord+10,p=g-c;if(p<.001)return"transparent";f(l,function(t){t.offset=(t.coord-c)/p}),l.push({offset:h?l[h-1].offset:.5,color:u[1]||"transparent"}),l.unshift({offset:h?l[0].offset:.5,color:u[0]||"transparent"});var v=new Bu(0,0,0,0,l,!0);return v[a]=c,v[a+"2"]=g,v}}}function ga(t){this._setting=t||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}function pa(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=yn(o/e,!0);null!=n&&ai&&(a=r.interval=i);var s=r.intervalPrecision=va(a);return ya(r.niceTickExtent=[Kf(Math.ceil(t[0]/a)*a,s),Kf(Math.floor(t[1]/a)*a,s)],t),r}function va(t){return un(t)+2}function ma(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function ya(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),ma(t,0,e),ma(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function _a(t,e,n,i){var r=[];if(!t)return r;e[0]1e4)return[];return e[1]>(r.length?r[r.length-1]:n[1])&&r.push(e[1]),r}function xa(t,e){return ud(t,hd(e))}function wa(t,e){var n,i,r,o=t.type,a=e.getMin(),s=e.getMax(),l=null!=a,h=null!=s,u=t.getExtent();return"ordinal"===o?n=(e.get("data")||[]).length:(y(i=e.get("boundaryGap"))||(i=[i||0,i||0]),"boolean"==typeof i[0]&&(i=[0,0]),i[0]=ln(i[0],1),i[1]=ln(i[1],1),r=u[1]-u[0]||Math.abs(u[0])),null==a&&(a="ordinal"===o?n?0:NaN:u[0]-i[0]*r),null==s&&(s="ordinal"===o?n?n-1:NaN:u[1]+i[1]*r),"dataMin"===a?a=u[0]:"function"==typeof a&&(a=a({min:u[0],max:u[1]})),"dataMax"===s?s=u[1]:"function"==typeof s&&(s=s({min:u[0],max:u[1]})),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN),t.setBlank(M(a)||M(s)),e.getNeedCrossZero()&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!h&&(s=0)),[a,s]}function ba(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Qf(t.getCategories(),[1/0,-1/0]);case"value":return new td;default:return(ga.getClass(e)||td).create(t)}}function Sa(t,e,n,i,r){var o,a=0,s=0,l=(i-r)/180*Math.PI,h=1;e.length>40&&(h=Math.floor(e.length/40));for(var u=0;u1?h:(a+1)*h-1}function Ma(t,e){var n=t.scale,i=n.getTicksLabels(),r=n.getTicks();return"string"==typeof e?(e=function(t){return function(e){return t.replace("{value}",null!=e?e:"")}}(e),d(i,e)):"function"==typeof e?d(r,function(n,i){return e(Ta(t,n),i)},this):i}function Ta(t,e){return"category"===t.type?t.scale.getLabel(e):e}function Ca(t){return this._axes[t]}function Ia(t){vd.call(this,t)}function Aa(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}function ka(t){return w(t)&&null!=t.value?t.value:t+""}function La(t,e){return e.type||(e.data?"category":"value")}function Pa(t,e,n){return t.getCoordSysModel()===e}function Da(t,e){var n=e*Math.PI/180,i=t.plain(),r=i.width,o=i.height,a=r*Math.cos(n)+o*Math.sin(n),s=r*Math.sin(n)+o*Math.cos(n);return new zt(i.x,i.y,a,s)}function Oa(t){var e,n=t.model,i=n.getFormattedLabels(),r=n.getModel("axisLabel"),o=1,a=i.length;a>40&&(o=Math.ceil(a/40));for(var s=0;si[1],l="start"===e&&!s||"start"!==e&&s;return gn(a-Od/2)?(o=l?"bottom":"top",r="center"):gn(a-1.5*Od)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*Od&&a>Od/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function Ga(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}function Ha(t,e,n){var i=t.get("axisLabel.showMinLabel"),r=t.get("axisLabel.showMaxLabel");e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],h=n[0],u=n[1],c=n[n.length-1],f=n[n.length-2];!1===i?(qa(o),qa(h)):Xa(o,a)&&(i?(qa(a),qa(u)):(qa(o),qa(h))),!1===r?(qa(s),qa(c)):Xa(l,s)&&(r?(qa(l),qa(f)):(qa(s),qa(c)))}function qa(t){t&&(t.ignore=!0)}function Xa(t,e,n){var i=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(i&&r){var o=tt([]);return rt(o,o,-t.rotation),i.applyTransform(nt([],o,t.getLocalTransform())),r.applyTransform(nt([],o,e.getLocalTransform())),i.intersect(r)}}function Za(t){return"middle"===t||"center"===t}function Ya(t,e,n){var i=e.axis;if(e.get("axisTick.show")&&!i.scale.isBlank()){for(var r=e.getModel("axisTick"),o=r.getModel("lineStyle"),s=r.get("length"),l=Rd(r,n.labelInterval),h=i.getTicksCoords(r.get("alignWithLabel")),u=i.scale.getTicks(),c=e.get("axisLabel.showMinLabel"),f=e.get("axisLabel.showMaxLabel"),d=[],g=[],p=t._transform,v=[],m=h.length,y=0;yl[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a=0?"p":"n",m=p[n],y=r[s][n][v],_=o[s][n][v];c.isHorizontal()?(i=y,a=m[1]+h,l=m[0]-_,g=u,o[s][n][v]+=l,Math.abs(l)0?"bottom":"top":r.width>0?"left":"right";l||ls(t.style,f,i,h,o,n,g),Fi(t,f)}function ds(t,e){var n=t.get(jd)||0;return Math.min(n,Math.abs(e.width),Math.abs(e.height))}function gs(t,e,n,i){var r=e.getData(),o=this.dataIndex,a=r.getName(o),s=e.get("selectedOffset");i.dispatchAction({type:"pieToggleSelect",from:t,name:a,seriesId:e.id}),r.each(function(t){ps(r.getItemGraphicEl(t),r.getItemLayout(t),e.isSelected(r.getName(t)),s,n)})}function ps(t,e,n,i,r){var o=(e.startAngle+e.endAngle)/2,a=Math.cos(o),s=Math.sin(o),l=n?i:0,h=[a*l,s*l];r?t.animate().when(200,{position:h}).start("bounceOut"):t.attr("position",h)}function vs(t,e){function n(){o.ignore=o.hoverIgnore,a.ignore=a.hoverIgnore}function i(){o.ignore=o.normalIgnore,a.ignore=a.normalIgnore}vl.call(this);var r=new bu({z2:2}),o=new Iu,a=new yu;this.add(r),this.add(o),this.add(a),this.updateData(t,e,!0),this.on("emphasis",n).on("normal",i).on("mouseover",n).on("mouseout",i)}function ms(t,e,n,i,r,o,a){function s(e,n){for(var i=e;i>=0&&(t[i].y-=n,!(i>0&&t[i].y>t[i-1].y+t[i-1].height));i--);}function l(t,e,n,i,r,o){for(var a=e?Number.MAX_VALUE:0,s=0,l=t.length;s=a&&(f=a-10),!e&&f<=a&&(f=a+10),t[s].x=n+f*o,a=f}}t.sort(function(t,e){return t.y-e.y});for(var h,u=0,c=t.length,f=[],d=[],g=0;ge&&o+1t[o].y+t[o].height)return void s(o,i/2);s(n-1,i/2)}(g,c,-h),u=t[g].y+t[g].height;a-u<0&&s(c-1,u-a);for(g=0;g=n?d.push(t[g]):f.push(t[g]);l(f,!1,e,n,i,r),l(d,!0,e,n,i,r)}function ys(t,e,n,i,r,o){for(var a=[],s=[],l=0;l=11)}}(navigator.userAgent),Ss={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},Ms={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},Ts=Object.prototype.toString,Cs=Array.prototype,Is=Cs.forEach,As=Cs.filter,ks=Cs.slice,Ls=Cs.map,Ps=Cs.reduce,Ds={},Os=function(){return Ds.createCanvas()};Ds.createCanvas=function(){return document.createElement("canvas")};var zs,Bs="__ec_primitive__";O.prototype={constructor:O,get:function(t){return this["_ec_"+t]},set:function(t,e){return this["_ec_"+t]=e,e},each:function(t,e){void 0!==e&&(t=v(t,e));for(var n in this)this.hasOwnProperty(n)&&t(this[n],n.slice(4))},removeKey:function(t){delete this["_ec_"+t]}};var Es="undefined"==typeof Float32Array?Array:Float32Array,Ns=q,Rs=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};U.prototype={constructor:U,_dragStart:function(t){var e=t.target;e&&e.draggable&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(j(e,t),"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.dispatchToElement(j(e,t),"drag",t.event);var a=this.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.dispatchToElement(j(s,t),"dragleave",t.event),a&&a!==s&&this.dispatchToElement(j(a,t),"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(j(e,t),"dragend",t.event),this._dropTarget&&this.dispatchToElement(j(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null}};var Fs=Array.prototype.slice,Ws=function(){this._$handlers={}};Ws.prototype={constructor:Ws,one:function(t,e,n){var i=this._$handlers;if(!e||!t)return this;i[t]||(i[t]=[]);for(var r=0;r3&&(e=Fs.call(e,1));for(var i=this._$handlers[t],r=i.length,o=0;o4&&(e=Fs.call(e,1,e.length-1));for(var i=e[e.length-1],r=this._$handlers[t],o=r.length,a=0;a=0;o--){var a;if(i[o]!==n&&!i[o].ignore&&(a=K(i[o],t,e))&&(!r.topTarget&&(r.topTarget=i[o]),a!==Vs)){r.target=i[o];break}}return r}},f(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Hs.prototype[t]=function(e){var n=this.findHover(e.zrX,e.zrY),i=n.target;if("mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mosueup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Ns(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}),u(Hs,Ws),u(Hs,U);var qs="undefined"==typeof Float32Array?Array:Float32Array,Xs=tt,Zs=5e-5,Ys=function(t){(t=t||{}).position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},Us=Ys.prototype;Us.transform=null,Us.needLocalTransform=function(){return st(this.rotation)||st(this.position[0])||st(this.position[1])||st(this.scale[0]-1)||st(this.scale[1]-1)},Us.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),i=this.transform;n||e?(i=i||J(),n?this.getLocalTransform(i):Xs(i),e&&(n?nt(i,t.transform,i):et(i,t.transform)),this.transform=i,this.invTransform=this.invTransform||J(),at(this.invTransform,i)):i&&Xs(i)},Us.getLocalTransform=function(t){return Ys.getLocalTransform(this,t)},Us.setTransform=function(t){var e=this.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)},Us.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var js=[];Us.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(nt(js,t.invTransform,e),e=js);var n=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],r=this.position,o=this.scale;st(n-1)&&(n=Math.sqrt(n)),st(i-1)&&(i=Math.sqrt(i)),e[0]<0&&(n=-n),e[3]<0&&(i=-i),r[0]=e[4],r[1]=e[5],o[0]=n,o[1]=i,this.rotation=Math.atan2(-e[1]/i,e[0]/n)}},Us.getGlobalScale=function(){var t=this.transform;if(!t)return[1,1];var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]),n=Math.sqrt(t[2]*t[2]+t[3]*t[3]);return t[0]<0&&(e=-e),t[3]<0&&(n=-n),[e,n]},Us.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&X(n,n,i),n},Us.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&X(n,n,i),n},Ys.getLocalTransform=function(t,e){Xs(e=e||[]);var n=t.origin,i=t.scale||[1,1],r=t.rotation||0,o=t.position||[0,0];return n&&(e[4]-=n[0],e[5]-=n[1]),ot(e,e,i),r&&rt(e,e,r),n&&(e[4]+=n[0],e[5]+=n[1]),e[4]+=o[0],e[5]+=o[1],e};var $s={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-$s.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*$s.bounceIn(2*t):.5*$s.bounceOut(2*t-1)+.5}};lt.prototype={constructor:lt,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)this._pausedTime+=e;else{var n=(t-this._startTime-this._pausedTime)/this._life;if(!(n<0)){n=Math.min(n,1);var i=this.easing,r="string"==typeof i?$s[i]:i,o="function"==typeof r?r(n):n;return this.fire("frame",o),1==n?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){this[t="on"+t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var Qs=function(){this.head=null,this.tail=null,this._len=0},Ks=Qs.prototype;Ks.insert=function(t){var e=new Js(t);return this.insertEntry(e),e},Ks.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},Ks.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},Ks.len=function(){return this._len},Ks.clear=function(){this.head=this.tail=null,this._len=0};var Js=function(t){this.value=t,this.next,this.prev},tl=function(t){this._list=new Qs,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},el=tl.prototype;el.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Js(e),a.key=t,n.insertEntry(a),i[t]=a}return r},el.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},el.clear=function(){this._list.clear(),this._map={}};var nl={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]},il=new tl(20),rl=null,ol=Array.prototype.slice,al=function(t,e,n,i){this._tracks={},this._target=t,this._loop=e||!1,this._getter=n||wt,this._setter=i||bt,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};al.prototype={when:function(t,e){var n=this._tracks;for(var i in e)if(e.hasOwnProperty(i)){if(!n[i]){n[i]=[];var r=this._getter(this._target,i);if(null==r)continue;0!==t&&n[i].push({time:0,value:Lt(r)})}n[i].push({time:t,value:e[i]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t0&&this.animate(t,!1).when(null==i?500:i,o).delay(r||0),this}};var fl=function(t){Ys.call(this,t),Ws.call(this,t),cl.call(this,t),this.id=t.id||xs()};fl.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var n=this[t];n||(n=this[t]=[]),n[0]=e[0],n[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(w(t))for(var n in t)t.hasOwnProperty(n)&&this.attrKV(n,t[n]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},clone:function(){return new zt(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},zt.create=function(t){return new zt(t.x,t.y,t.width,t.height)};var vl=function(t){t=t||{},fl.call(this,t);for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};vl.prototype={constructor:vl,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,n=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof vl&&t.addChildrenToStorage(e)),n&&n.refresh()},remove:function(t){var e=this.__zr,n=this.__storage,i=this._children,r=l(i,t);return r<0?this:(i.splice(r,1),t.parent=null,n&&(n.delFromStorage(t),t instanceof vl&&t.delChildrenFromStorage(n)),e&&e.refresh(),this)},removeAll:function(){var t,e,n=this._children,i=this.__storage;for(e=0;e=0&&(this.delFromStorage(t),this._roots.splice(r,1),t instanceof vl&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t.__storage=this,t.dirty(!1),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:Ht};var xl=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],wl=function(t,e){this.extendFrom(t,!1),this.host=e};wl.prototype={constructor:wl,host:null,fill:"#000",stroke:null,opacity:1,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,e,n){for(var i=this,r=n&&n.style,o=!r,a=0;a0},extendFrom:function(t,e){if(t)for(var n in t)!t.hasOwnProperty(n)||!0!==e&&(!1===e?this.hasOwnProperty(n):null==t[n])||(this[n]=t[n])},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,n){for(var i=("radial"===e.type?Xt:qt)(t,e,n),r=e.colorStops,o=0;o=0&&n.splice(i,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,n=0;n=0){if(!s){if((s=this._progressiveLayers[Math.min(h++,4)]).ctx.save(),s.renderScope={},s&&s.__progress>s.__maxProgress){g=s.__nextIdxNotProg-1;continue}l=s.__progress,s.__dirty||(d=l),s.__progress=d+1}y===d&&this._doPaintEl(v,s,!0,s.renderScope)}else this._doPaintEl(v,i,e,a);v.__dirty=!1}}s&&n(s),o&&o.restore(),this._furtherProgressive=!1,f(this._progressiveLayers,function(t){t.__maxProgress>=t.__progress&&(this._furtherProgressive=!0)},this)},_doPaintEl:function(t,e,n,i){var r=e.ctx,o=t.transform;if((e.__dirty||n)&&!t.invisible&&0!==t.style.opacity&&(!o||o[0]||o[3])&&(!t.culling||!We(t,this._width,this._height))){var a=t.__clipPaths;(i.prevClipLayer!==e||Ve(a,i.prevElClipPaths))&&(i.prevElClipPaths&&(i.prevClipLayer.ctx.restore(),i.prevClipLayer=i.prevElClipPaths=null,i.prevEl=null),a&&(r.save(),Ge(a,r),i.prevClipLayer=e,i.prevElClipPaths=a)),t.beforeBrush&&t.beforeBrush(r),t.brush(r,i.prevEl||null),i.prevEl=t,t.afterBrush&&t.afterBrush(r)}},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||((e=new Cl("zr_"+t,this,this.dpr)).__builtin__=!0,this._layerConfig[t]&&i(e,this._layerConfig[t],!0),this.insertLayer(t,e),e.initContext()),e},insertLayer:function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,o=null,a=-1,s=this._domRoot;if(n[t])ul("ZLevel "+t+" has been used already");else if(Ne(e)){if(r>0&&t>i[0]){for(a=0;at);a++);o=n[i[a]]}if(i.splice(a+1,0,t),n[t]=e,!e.virtual)if(o){var l=o.dom;l.nextSibling?s.insertBefore(e.dom,l.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)}else ul("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){var n,i,r=this._zlevelList;for(i=0;i=0){a!==g&&(a=g,l++);var p=c.__frame=l-1;if(!o){var v=Math.min(s,4);(o=n[v])||(o=n[v]=new Cl("progressive",this,this.dpr)).initContext(),o.__maxProgress=0}o.__dirty=o.__dirty||c.__dirty,o.elCount++,o.__maxProgress=Math.max(o.__maxProgress,p),o.__maxProgress>=o.__progress&&(d.__dirty=!0)}else c.__frame=-1,o&&(o.__nextIdxNotProg=h,s++,o=null)}o&&(s++,o.__nextIdxNotProg=h),this.eachBuiltinLayer(function(t,e){i[e]!==t.elCount&&(t.__dirty=!0)}),n.length=Math.min(s,5),f(n,function(t,e){r[e]!==t.elCount&&(c.__dirty=!0),t.__dirty&&(t.__progress=0)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},configLayer:function(t,e){if(e){var n=this._layerConfig;n[t]?i(n[t],e,!0):n[t]=e;var r=this._layers[t];r&&i(r,n[t],!0)}},delLayer:function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(l(n,t),1))},resize:function(t,e){var n=this._domRoot;n.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!=t||e!=this._height){n.style.width=t+"px",n.style.height=e+"px";for(var r in this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(t,e);f(this._progressiveLayers,function(n){n.resize(t,e)}),this.refresh(!0)}return this._width=t,this._height=e,this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){function e(t,e){var i=a._zlevelList;null==t&&(t=-1/0);for(var r,o=0;ot&&s=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),n=0;n1&&i&&i.length>1){var o=$e(i)/$e(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=Qe(i);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},Yl=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ul=["touchstart","touchend","touchmove"],jl={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},$l=d(Yl,function(t){var e=t.replace("mouse","pointer");return jl[e]?e:t}),Ql={mousemove:function(t){t=Ye(this.dom,t),this.trigger("mousemove",t)},mouseout:function(t){var e=(t=Ye(this.dom,t)).toElement||t.relatedTarget;if(e!=this.dom)for(;e&&9!=e.nodeType;){if(e===this.dom)return;e=e.parentNode}this.trigger("mouseout",t)},touchstart:function(t){(t=Ye(this.dom,t)).zrByTouch=!0,this._lastTouchMoment=new Date,Je(this,t,"start"),Ql.mousemove.call(this,t),Ql.mousedown.call(this,t),tn(this)},touchmove:function(t){(t=Ye(this.dom,t)).zrByTouch=!0,Je(this,t,"change"),Ql.mousemove.call(this,t),tn(this)},touchend:function(t){(t=Ye(this.dom,t)).zrByTouch=!0,Je(this,t,"end"),Ql.mouseup.call(this,t),+new Date-this._lastTouchMoment<300&&Ql.click.call(this,t),tn(this)},pointerdown:function(t){Ql.mousedown.call(this,t)},pointermove:function(t){en(t)||Ql.mousemove.call(this,t)},pointerup:function(t){Ql.mouseup.call(this,t)},pointerout:function(t){en(t)||Ql.mouseout.call(this,t)}};f(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Ql[t]=function(e){e=Ye(this.dom,e),this.trigger(t,e)}});var Kl=rn.prototype;Kl.dispose=function(){for(var t=Yl.concat(Ul),e=0;e=0||i&&l(i,a)<0)){var s=e.getShallow(a);null!=s&&(r[t[o][0]]=s)}}return r}},dh=fh([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),gh={getLineStyle:function(t){var e=dh(this,t),n=this.getLineDash(e.lineWidth);return n&&(e.lineDash=n),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),n=Math.max(t,2),i=4*t;return"solid"===e||null==e?null:"dashed"===e?[i,i]:[n,n]}},ph=fh([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),vh={getAreaStyle:function(t,e){return ph(this,t,e)}},mh=Math.pow,yh=Math.sqrt,_h=1e-8,xh=1e-4,wh=yh(3),bh=1/3,Sh=E(),Mh=E(),Th=E(),Ch=Math.min,Ih=Math.max,Ah=Math.sin,kh=Math.cos,Lh=2*Math.PI,Ph=E(),Dh=E(),Oh=E(),zh=[],Bh=[],Eh={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Nh=[],Rh=[],Fh=[],Wh=[],Vh=Math.min,Gh=Math.max,Hh=Math.cos,qh=Math.sin,Xh=Math.sqrt,Zh=Math.abs,Yh="undefined"!=typeof Float32Array,Uh=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};Uh.prototype={constructor:Uh,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=Zh(1/ll/t)||0,this._uy=Zh(1/ll/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(Eh.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var n=Zh(t-this._xi)>this._ux||Zh(e-this._yi)>this._uy||this._len<5;return this.addData(Eh.L,t,e),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,n,i,r,o){return this.addData(Eh.C,t,e,n,i,r,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,r,o):this._ctx.bezierCurveTo(t,e,n,i,r,o)),this._xi=r,this._yi=o,this},quadraticCurveTo:function(t,e,n,i){return this.addData(Eh.Q,t,e,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},arc:function(t,e,n,i,r,o){return this.addData(Eh.A,t,e,n,n,i,r-i,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Hh(r)*n+t,this._yi=qh(r)*n+t,this},arcTo:function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Eh.R,t,e,n,i),this},closePath:function(){this.addData(Eh.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;ne.length&&(this._expandData(),e=this.data);for(var n=0;n0&&d<=t||u<0&&d>=t||0==u&&(c>0&&g<=e||c<0&&g>=e);)d+=u*(n=a[i=this._dashIdx]),g+=c*n,this._dashIdx=(i+1)%p,u>0&&dl||c>0&&gh||s[i%2?"moveTo":"lineTo"](u>=0?Vh(d,t):Gh(d,t),c>=0?Vh(g,e):Gh(g,e));u=d-t,c=g-e,this._dashOffset=-Xh(u*u+c*c)},_dashedBezierTo:function(t,e,n,i,r,o){var a,s,l,h,u,c=this._dashSum,f=this._dashOffset,d=this._lineDash,g=this._ctx,p=this._xi,v=this._yi,m=Bn,y=0,_=this._dashIdx,x=d.length,w=0;for(f<0&&(f=c+f),f%=c,a=0;a<1;a+=.1)s=m(p,t,n,r,a+.1)-m(p,t,n,r,a),l=m(v,e,i,o,a+.1)-m(v,e,i,o,a),y+=Xh(s*s+l*l);for(;_f);_++);for(a=(w-f)/y;a<=1;)h=m(p,t,n,r,a),u=m(v,e,i,o,a),_%2?g.moveTo(h,u):g.lineTo(h,u),a+=d[_]/y,_=(_+1)%x;_%2!=0&&g.lineTo(r,o),s=r-h,l=o-u,this._dashOffset=-Xh(s*s+l*l)},_dashedQuadraticTo:function(t,e,n,i){var r=n,o=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,r,o)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,Yh&&(this.data=new Float32Array(t)))},getBoundingRect:function(){Nh[0]=Nh[1]=Fh[0]=Fh[1]=Number.MAX_VALUE,Rh[0]=Rh[1]=Wh[0]=Wh[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,n=0,i=0,r=0,o=0;ol||Zh(a-r)>h||c===u-1)&&(t.lineTo(o,a),i=o,r=a);break;case Eh.C:t.bezierCurveTo(s[c++],s[c++],s[c++],s[c++],s[c++],s[c++]),i=s[c-2],r=s[c-1];break;case Eh.Q:t.quadraticCurveTo(s[c++],s[c++],s[c++],s[c++]),i=s[c-2],r=s[c-1];break;case Eh.A:var d=s[c++],g=s[c++],p=s[c++],v=s[c++],m=s[c++],y=s[c++],_=s[c++],x=s[c++],w=p>v?p:v,b=p>v?1:p/v,S=p>v?v/p:1,M=m+y;Math.abs(p-v)>.001?(t.translate(d,g),t.rotate(_),t.scale(b,S),t.arc(0,0,w,m,M,1-x),t.scale(1/b,1/S),t.rotate(-_),t.translate(-d,-g)):t.arc(d,g,w,m,M,1-x),1==c&&(e=Hh(m)*p+d,n=qh(m)*v+g),i=Hh(M)*p+d,r=qh(M)*v+g;break;case Eh.R:e=i=s[c],n=r=s[c+1],t.rect(s[c++],s[c++],s[c++],s[c++]);break;case Eh.Z:t.closePath(),i=e,r=n}}}},Uh.CMD=Eh;var jh=2*Math.PI,$h=2*Math.PI,Qh=Uh.CMD,Kh=2*Math.PI,Jh=1e-4,tu=[-1,-1,-1],eu=[-1,-1],nu=Tl.prototype.getCanvasPattern,iu=Math.abs,ru=new Uh(!0);ci.prototype={constructor:ci,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var n=this.style,i=this.path||ru,r=n.hasStroke(),o=n.hasFill(),a=n.fill,s=n.stroke,l=o&&!!a.colorStops,h=r&&!!s.colorStops,u=o&&!!a.image,c=r&&!!s.image;if(n.bind(t,this,e),this.setTransform(t),this.__dirty){var f;l&&(f=f||this.getBoundingRect(),this._fillGradient=n.getGradient(t,a,f)),h&&(f=f||this.getBoundingRect(),this._strokeGradient=n.getGradient(t,s,f))}l?t.fillStyle=this._fillGradient:u&&(t.fillStyle=nu.call(a,t)),h?t.strokeStyle=this._strokeGradient:c&&(t.strokeStyle=nu.call(s,t));var d=n.lineDash,g=n.lineDashOffset,p=!!t.setLineDash,v=this.getGlobalScale();i.setScale(v[0],v[1]),this.__dirtyPath||d&&!p&&r?(i.beginPath(t),d&&!p&&(i.setLineDash(d),i.setLineDashOffset(g)),this.buildPath(i,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),o&&i.fill(t),d&&p&&(t.setLineDash(d),t.lineDashOffset=g),r&&i.stroke(t),d&&p&&t.setLineDash([]),this.restoreTransform(t),null!=n.text&&this.drawRectText(t,this.getBoundingRect())},buildPath:function(t,e,n){},createPathProxy:function(){this.path=new Uh},getBoundingRect:function(){var t=this._rect,e=this.style,n=!t;if(n){var i=this.path;i||(i=this.path=new Uh),this.__dirtyPath&&(i.beginPath(),this.buildPath(i,this.shape,!1)),t=i.getBoundingRect()}if(this._rect=t,e.hasStroke()){var r=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||n){r.copy(t);var o=e.lineWidth,a=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),a>1e-10&&(r.width+=o/a,r.height+=o/a,r.x-=o/a/2,r.y-=o/a/2)}return r}return t},contain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path.data;if(r.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(r.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),ui(o,a/s,t,e)))return!0}if(r.hasFill())return hi(o,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):ze.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var n=this.shape;if(n){if(w(t))for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);else n[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&iu(t[0]-1)>1e-10&&iu(t[3]-1)>1e-10?Math.sqrt(iu(t[0]*t[3]-t[2]*t[1])):1}},ci.extend=function(t){var e=function(e){ci.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var i=this.shape;for(var r in n)!i.hasOwnProperty(r)&&n.hasOwnProperty(r)&&(i[r]=n[r])}t.init&&t.init.call(this,e)};h(e,ci);for(var n in t)"style"!==n&&"shape"!==n&&(e.prototype[n]=t[n]);return e},h(ci,ze);var ou=Uh.CMD,au=[[],[],[]],su=Math.sqrt,lu=Math.atan2,hu=function(t,e){var n,i,r,o,a,s,l=t.data,h=ou.M,u=ou.C,c=ou.L,f=ou.R,d=ou.A,g=ou.Q;for(r=0,o=0;r=11?function(){var e,n=this.__clipPaths,i=this.style;if(n)for(var r=0;rn-2?n-1:c+1],h=t[c>n-3?n-1:c+2]);var g=f*f,p=f*g;i.push([mi(s[0],d[0],l[0],h[0],f,g,p),mi(s[1],d[1],l[1],h[1],f,g,p)])}return i},Tu=function(t,e,n,i){var r,o,a,s,l=[],h=[],u=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var f=0,d=t.length;fMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"},groupTransition:Ji,clipPointsByRect:function(t,e){return d(t,function(t){var n=t[0];n=Ru(n,e.x),n=Fu(n,e.x+e.width);var i=t[1];return i=Ru(i,e.y),i=Fu(i,e.y+e.height),[n,i]})},clipRectByRect:function(t,e){var n=Ru(t.x,e.x),i=Fu(t.x+t.width,e.x+e.width),r=Ru(t.y,e.y),o=Fu(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}},createIcon:function(t,e,n){var i=(e=o({rectHover:!0},e)).style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),a(i,n),new Be(e)):wi(t.replace("path://",""),e,n,"center")},Group:vl,Image:Be,Text:yu,Circle:_u,Sector:bu,Ring:Su,Polygon:Cu,Polyline:Iu,Rect:Au,Line:ku,BezierCurve:Pu,Arc:Du,CompoundPath:Ou,LinearGradient:Bu,RadialGradient:Eu,BoundingRect:zt}),Gu=["textStyle","color"],Hu={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Gu):null)},getFont:function(){return Ui({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return Jt(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("rich"),this.getShallow("truncateText"))}},qu=fh([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),Xu={getItemStyle:function(t,e){var n=qu(this,t,e),i=this.getBorderLineDash();return i&&(n.lineDash=i),n},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}},Zu=u;tr.prototype={constructor:tr,init:null,mergeOption:function(t){i(this.option,t,!0)},get:function(t,e){return null==t?this.option:er(this.option,this.parsePath(t),!e&&nr(this,t))},getShallow:function(t,e){var n=this.option,i=null==n?n:n[t],r=!e&&nr(this,t);return null==i&&r&&(i=r.getShallow(t)),i},getModel:function(t,e){var n,i=null==t?this.option:er(this.option,t=this.parsePath(t));return e=e||(n=nr(this,t))&&n.getModel(t),new tr(i,e,this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){return new(0,this.constructor)(n(this.option))},setReadOnly:function(t){},parsePath:function(t){return"string"==typeof t&&(t=t.split(".")),t},customizeGetParent:function(t){Mn(this,"getParent",t)},isAnimationEnabled:function(){if(!bs.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},kn(tr),Zu(tr,gh),Zu(tr,vh),Zu(tr,Hu),Zu(tr,Xu);var Yu=f,Uu=w,ju=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"],$u={getDataParams:function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t,!0),a=n.getRawDataItem(t),s=n.getItemVisual(t,"color");return{componentType:this.mainType,componentSubType:this.subType,seriesType:"series"===this.mainType?this.subType:null,seriesIndex:this.seriesIndex,seriesId:this.id,seriesName:this.name,name:o,dataIndex:r,data:a,dataType:e,value:i,color:s,marker:bn(s),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,n,i,r){e=e||"normal";var o=this.getData(n).getItemModel(t),a=this.getDataParams(t,n);null!=i&&a.value instanceof Array&&(a.value=a.value[i]);var s=o.get([r||"label",e,"formatter"]);return"function"==typeof s?(a.status=e,s(a)):"string"==typeof s?wn(s,a):void 0},getRawValue:function(t,e){var n=this.getData(e).getRawDataItem(t);if(null!=n)return!Uu(n)||n instanceof Array?n:n.value},formatTooltip:B},Qu=0,Ku="_",Ju=f,tc=["left","right","top","bottom","width","height"],ec=[["width","left","right"],["height","top","bottom"]],nc=(m(yr,"vertical"),m(yr,"horizontal"),{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}}),ic=Array.prototype.push,rc=tr.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,n,i){tr.call(this,t,e,n,i),this.uid=mr("componentModel")},init:function(t,e,n,i){this.mergeDefaultAndTheme(t,n)},mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,r=n?wr(t):{};i(t,e.getTheme().get(this.mainType)),i(t,this.getDefaultOption()),n&&xr(t,r,n)},mergeOption:function(t,e){i(this.option,t,!0);var n=this.layoutMode;n&&xr(this.option,t,n)},optionUpdated:function(t,e){},getDefaultOption:function(){if(!Cn(this,"__defaultOption")){for(var t=[],e=this.constructor;e;){var n=e.prototype.defaultOption;n&&t.push(n),e=e.superClass}for(var r={},o=t.length-1;o>=0;o--)r=i(r,t[o],!0);Mn(this,"__defaultOption",r)}return Tn(this,"__defaultOption")},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});Dn(rc,{registerWhenExtend:!0}),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){t=In(t),e[t.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=In(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(rc),function(t,e){function n(t){var n={},o=[];return f(t,function(a){var s=i(n,a),h=r(s.originalDeps=e(a),t);s.entryCount=h.length,0===s.entryCount&&o.push(a),f(h,function(t){l(s.predecessor,t)<0&&s.predecessor.push(t);var e=i(n,t);l(e.successor,t)<0&&e.successor.push(a)})}),{graph:n,noEntryList:o}}function i(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function r(t,e){var n=[];return f(t,function(t){l(e,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,e,i,r){function o(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}if(t.length){var a=n(e),s=a.graph,l=a.noEntryList,h={};for(f(t,function(t){h[t]=!0});l.length;){var u=l.pop(),c=s[u],d=!!h[u];d&&(i.call(r,u,c.originalDeps.slice()),delete h[u]),f(c.successor,d?function(t){h[t]=!0,o(t)}:o)}f(h,function(){throw new Error("Circle dependency may exists")})}}}(rc,function(t){var e=[];return f(rc.getClassesByMainType(t),function(t){ic.apply(e,t.prototype.dependencies||[])}),d(e,function(t){return In(t).main})}),u(rc,nc);var oc="";"undefined"!=typeof navigator&&(oc=navigator.platform||"");var ac={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],textStyle:{fontFamily:oc.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},sc={clearColorPalette:function(){Mn(this,"colorIdx",0),Mn(this,"colorNameMap",{})},getColorFromPalette:function(t,e){var n=Tn(e=e||this,"colorIdx")||0,i=Tn(e,"colorNameMap")||Mn(e,"colorNameMap",{});if(i.hasOwnProperty(t))return i[t];var r=this.get("color",!0)||[];if(r.length){var o=r[n];return t&&(i[t]=o),Mn(e,"colorIdx",(n+1)%r.length),o}}},lc=f,hc=p,uc=d,cc=y,fc=l,dc=w,gc="\0_ec_inner",pc=tr.extend({constructor:pc,init:function(t,e,n,i){n=n||{},this.option=null,this._theme=new tr(n),this._optionManager=i},setOption:function(t,e){L(!(gc in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e=!1,n=this._optionManager;if(!t||"recreate"===t){var i=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(i)):Mr.call(this,i),e=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var r=n.getTimelineOption(this);r&&(this.mergeOption(r),e=!0)}if(!t||"recreate"===t||"media"===t){var o=n.getMediaOption(this,this._api);o.length&&lc(o,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){var e=this.option,r=this._componentsMap,a=[];lc(t,function(t,r){null!=t&&(rc.hasClass(r)?a.push(r):e[r]=null==e[r]?n(t):i(e[r],t,!0))}),rc.topologicalTravel(a,rc.getAllClassMainTypes(),function(n,i){var a=ir(t[n]),s=lr(r.get(n),a);hr(s),lc(s,function(t,e){var i=t.option;dc(i)&&(t.keyInfo.mainType=n,t.keyInfo.subType=Cr(n,i,t.exist))});var l=Tr(r,i);e[n]=[],r.set(n,[]),lc(s,function(t,i){var a=t.exist,s=t.option;if(L(dc(s)||a,"Empty component definition"),s){var h=rc.getClass(n,t.keyInfo.subType,!0);if(a&&a instanceof h)a.name=t.keyInfo.name,a.mergeOption(s,this),a.optionUpdated(s,!1);else{var u=o({dependentModels:l,componentIndex:i},t.keyInfo);o(a=new h(s,this,this,u),u),a.init(s,this,this,u),a.optionUpdated(null,!0)}}else a.mergeOption({},this),a.optionUpdated({},!1);r.get(n)[i]=a,e[n][i]=a.option},this),"series"===n&&(this._seriesIndices=Ir(r.get("series")))},this),this._seriesIndices=this._seriesIndices||[]},getOption:function(){var t=n(this.option);return lc(t,function(e,n){if(rc.hasClass(n)){for(var i=(e=ir(e)).length-1;i>=0;i--)ur(e[i])&&e.splice(i,1);t[n]=e}}),delete t[gc],t},getTheme:function(){return this._theme},getComponent:function(t,e){var n=this._componentsMap.get(t);if(n)return n[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var n=t.index,i=t.id,r=t.name,o=this._componentsMap.get(e);if(!o||!o.length)return[];var a;if(null!=n)cc(n)||(n=[n]),a=hc(uc(n,function(t){return o[t]}),function(t){return!!t});else if(null!=i){var s=cc(i);a=hc(o,function(t){return s&&fc(i,t.id)>=0||!s&&t.id===i})}else if(null!=r){var l=cc(r);a=hc(o,function(t){return l&&fc(r,t.name)>=0||!l&&t.name===r})}else a=o.slice();return Ar(a,t)},findComponents:function(t){var e=t.query,n=t.mainType,i=function(t){var e=n+"Index",i=n+"Id",r=n+"Name";return!t||null==t[e]&&null==t[i]&&null==t[r]?null:{mainType:n,index:t[e],id:t[i],name:t[r]}}(e);return function(e){return t.filter?hc(e,t.filter):e}(Ar(i?this.queryComponents(i):this._componentsMap.get(n),t))},eachComponent:function(t,e,n){var i=this._componentsMap;if("function"==typeof t)n=e,e=t,i.each(function(t,i){lc(t,function(t,r){e.call(n,i,t,r)})});else if(x(t))lc(i.get(t),e,n);else if(dc(t)){var r=this.findComponents(t);lc(r,e,n)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return hc(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return hc(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.get("series").slice()},eachSeries:function(t,e){lc(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},eachRawSeries:function(t,e){lc(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,n){lc(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)},this)},eachRawSeriesByType:function(t,e,n){return lc(this.getSeriesByType(t),e,n)},isSeriesFiltered:function(t){return l(this._seriesIndices,t.componentIndex)<0},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){var n=hc(this._componentsMap.get("series"),t,e);this._seriesIndices=Ir(n)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=Ir(t.get("series"));var e=[];t.each(function(t,n){e.push(n)}),rc.topologicalTravel(e,rc.getAllClassMainTypes(),function(e,n){lc(t.get(e),function(t){t.restoreData()})})}});u(pc,sc);var vc=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"],mc={};Lr.prototype={constructor:Lr,create:function(t,e){var n=[];f(mc,function(i,r){var o=i.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},update:function(t,e){f(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},Lr.register=function(t,e){mc[t]=e},Lr.get=function(t){return mc[t]};var yc=f,_c=n,xc=d,wc=i,bc=/^(min|max)?(.+)$/;Pr.prototype={constructor:Pr,setOption:function(t,e){t=_c(t,!0);var n=this._optionBackup,i=Dr.call(this,t,e,!n);this._newBaseOption=i.baseOption,n?(Er(n.baseOption,i.baseOption),i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=xc(e.timelineOptions,_c),this._mediaList=xc(e.mediaList,_c),this._mediaDefault=_c(e.mediaDefault),this._currentMediaIndices=[],_c(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=_c(n[i.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,o=[],a=[];if(!i.length&&!r)return a;for(var s=0,l=i.length;s":"")+a.join(o?"
":", ")}(r):xn(_n(r)),a=i.getName(t),s=i.getItemVisual(t,"color");w(s)&&s.colorStops&&(s=(s.colorStops[0]||{}).color);var l=bn(s=s||"transparent"),h=this.name;return"\0-"===h&&(h=""),h=h?xn(h)+(e?": ":"
"):"",e?l+h+o:h+l+(a?xn(a)+": "+o:o)},isAnimationEnabled:function(){if(bs.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){Mn(this,"data",Tn(this,"dataBeforeProcessed").cloneShallow())},getColorFromPalette:function(t,e){var n=this.ecModel,i=sc.getColorFromPalette.call(this,t,e);return i||(i=n.getColorFromPalette(t,e)),i},getAxisTooltipData:null,getTooltipPosition:null});u(Pc,$u),u(Pc,sc);var Dc=function(){this.group=new vl,this.uid=mr("viewComponent")};Dc.prototype={constructor:Dc,init:function(t,e){},render:function(t,e,n,i){},dispose:function(){}};var Oc=Dc.prototype;Oc.updateView=Oc.updateLayout=Oc.updateVisual=function(t,e,n,i){},kn(Dc),Dn(Dc,{registerWhenExtend:!0}),Zr.prototype={type:"chart",init:function(t,e){},render:function(t,e,n,i){},highlight:function(t,e,n,i){Ur(t.getData(),i,"emphasis")},downplay:function(t,e,n,i){Ur(t.getData(),i,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){}};var zc=Zr.prototype;zc.updateView=zc.updateLayout=zc.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},kn(Zr),Dn(Zr,{registerWhenExtend:!0});var Bc=Math.PI,Ec=f,Nc=rc.parseClassType,Rc={zrender:"3.7.3"},Fc=1e3,Wc=1e3,Vc=3e3,Gc={PROCESSOR:{FILTER:Fc,STATISTIC:5e3},VISUAL:{LAYOUT:Wc,GLOBAL:2e3,CHART:Vc,COMPONENT:4e3,BRUSH:5e3}},Hc="__flagInMainProcess",qc="__optionUpdated",Xc=/^[a-zA-Z0-9_]+$/;Qr.prototype.on=$r("on"),Qr.prototype.off=$r("off"),Qr.prototype.one=$r("one"),u(Qr,Ws);var Zc=Kr.prototype;Zc._onframe=function(){if(this[qc]){var t=this[qc].silent;this[Hc]=!0,Yc.prepareAndUpdate.call(this),this[Hc]=!1,this[qc]=!1,no.call(this,t),io.call(this,t)}},Zc.getDom=function(){return this._dom},Zc.getZr=function(){return this._zr},Zc.setOption=function(t,e,n){var i;if(w(e)&&(n=e.lazyUpdate,i=e.silent,e=e.notMerge),this[Hc]=!0,!this._model||e){var r=new Pr(this._api),o=this._theme;(this._model=new pc(null,null,o,r)).init(null,null,o,r)}this._model.setOption(t,Kc),n?(this[qc]={silent:i},this[Hc]=!1):(Yc.prepareAndUpdate.call(this),this._zr.flush(),this[qc]=!1,this[Hc]=!1,no.call(this,i),io.call(this,i))},Zc.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},Zc.getModel=function(){return this._model},Zc.getOption=function(){return this._model&&this._model.getOption()},Zc.getWidth=function(){return this._zr.getWidth()},Zc.getHeight=function(){return this._zr.getHeight()},Zc.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},Zc.getRenderedCanvas=function(t){if(bs.canvasSupported){(t=t||{}).pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr;return f(e.storage.getDisplayList(),function(t){t.stopAnimation(!0)}),e.painter.getRenderedCanvas(t)}},Zc.getSvgDataUrl=function(){if(bs.svgSupported){var t=this._zr;return f(t.storage.getDisplayList(),function(t){t.stopAnimation(!0)}),t.painter.pathToSvg()}},Zc.getDataURL=function(t){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;Ec(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataUrl():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Ec(i,function(t){t.group.ignore=!1}),o},Zc.getConnectedDataURL=function(t){if(bs.canvasSupported){var e=this.group,i=Math.min,r=Math.max;if(of[e]){var o=1/0,a=1/0,s=-1/0,l=-1/0,h=[],u=t&&t.pixelRatio||1;f(rf,function(u,c){if(u.group===e){var f=u.getRenderedCanvas(n(t)),d=u.getDom().getBoundingClientRect();o=i(d.left,o),a=i(d.top,a),s=r(d.right,s),l=r(d.bottom,l),h.push({dom:f,left:d.left,top:d.top})}});var c=(s*=u)-(o*=u),d=(l*=u)-(a*=u),g=Os();g.width=c,g.height=d;var p=on(g);return Ec(h,function(t){var e=new Be({style:{x:t.left*u-o,y:t.top*u-a,image:t.dom}});p.add(e)}),p.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},Zc.convertToPixel=m(Jr,"convertToPixel"),Zc.convertFromPixel=m(Jr,"convertFromPixel"),Zc.containPixel=function(t,e){var n;return t=fr(this._model,t),f(t,function(t,i){i.indexOf("Models")>=0&&f(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n|=!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n|=o.containPoint(e,t))}},this)},this),!!n},Zc.getVisual=function(t,e){var n=(t=fr(this._model,t,{defaultMainType:"series"})).seriesModel.getData(),i=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;return null!=i?n.getItemVisual(i,e):n.getVisual(e)},Zc.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},Zc.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var Yc={update:function(t){var e=this._model,n=this._api,i=this._coordSysMgr,r=this._zr;if(e){e.restoreData(),i.create(this._model,this._api),ao.call(this,e,n),so.call(this,e),i.update(e,n),ho.call(this,e,t),uo.call(this,e,t);var o=e.get("backgroundColor")||"transparent",a=r.painter;if(a.isSingleCanvas&&a.isSingleCanvas())r.configLayer(0,{clearColor:o});else{if(!bs.canvasSupported){var s=mt(o);o=xt(s,"rgb"),0===s[3]&&(o="transparent")}o.colorStops||o.image?(r.configLayer(0,{clearColor:o}),this.__hasGradientOrPatternBg=!0,this._dom.style.background="transparent"):(this.__hasGradientOrPatternBg&&r.configLayer(0,{clearColor:null}),this.__hasGradientOrPatternBg=!1,this._dom.style.background=o)}Ec(Jc,function(t){t(e,n)})}},updateView:function(t){var e=this._model;e&&(e.eachSeries(function(t){t.getData().clearAllVisual()}),ho.call(this,e,t),ro.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(e.eachSeries(function(t){t.getData().clearAllVisual()}),ho.call(this,e,t,!0),ro.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(lo.call(this,e,t),ro.call(this,"updateLayout",e,t))},prepareAndUpdate:function(t){var e=this._model;oo.call(this,"component",e),oo.call(this,"chart",e),Yc.update.call(this,t)}};Zc.resize=function(t){this[Hc]=!0,this._zr.resize(t);var e=this._model&&this._model.resetOption("media");Yc[e?"prepareAndUpdate":"update"].call(this),this._loadingFX&&this._loadingFX.resize(),this[Hc]=!1;var n=t&&t.silent;no.call(this,n),io.call(this,n)},Zc.showLoading=function(t,e){if(w(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),nf[t]){var n=nf[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},Zc.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},Zc.makeActionFromEvent=function(t){var e=o({},t);return e.type=$c[t.type],e},Zc.dispatchAction=function(t,e){w(e)||(e={silent:!!e}),jc[t.type]&&this._model&&(this[Hc]?this._pendingActions.push(t):(eo.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&bs.browser.weChat&&this._throttledZrFlush(),no.call(this,e.silent),io.call(this,e.silent)))},Zc.on=$r("on"),Zc.off=$r("off"),Zc.one=$r("one");var Uc=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];Zc._initEvents=function(){Ec(Uc,function(t){this._zr.on(t,function(e){var n,i=this.getModel(),r=e.target;if("globalout"===t)n={};else if(r&&null!=r.dataIndex){var a=r.dataModel||i.getSeriesByIndex(r.seriesIndex);n=a&&a.getDataParams(r.dataIndex,r.dataType)||{}}else r&&r.eventData&&(n=o({},r.eventData));n&&(n.event=e,n.type=t,this.trigger(t,n))},this)},this),Ec($c,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},Zc.isDisposed=function(){return this._disposed},Zc.clear=function(){this.setOption({series:[]},!0)},Zc.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._api,e=this._model;Ec(this._componentsViews,function(n){n.dispose(e,t)}),Ec(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),delete rf[this.id]}},u(Kr,Ws);var jc={},$c={},Qc=[],Kc=[],Jc=[],tf=[],ef={},nf={},rf={},of={},af=new Date-0,sf=new Date-0,lf="_echarts_instance_",hf={},uf=mo;So(2e3,function(t){t.eachRawSeries(function(e){var n=(e.visualColorAccessPath||"itemStyle.normal.color").split("."),i=e.getData(),r=e.get(n)||e.getColorFromPalette(e.get("name"));i.setVisual("color",r),t.isSeriesFiltered(e)||("function"!=typeof r||r instanceof zu||i.each(function(t){i.setItemVisual(t,"color",r(e.getDataParams(t)))}),i.each(function(t){var e=i.getItemModel(t).get(n,!0);null!=e&&i.setItemVisual(t,"color",e)}))})}),_o(Lc),Mo("default",function(t,e){a(e=e||{},{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var n=new Au({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),i=new Du({shape:{startAngle:-Bc/2,endAngle:-Bc/2+.1,r:10},style:{stroke:e.color,lineCap:"round",lineWidth:5},zlevel:e.zlevel,z:10001}),r=new Au({style:{fill:"none",text:e.text,textPosition:"right",textDistance:10,textFill:e.textColor},zlevel:e.zlevel,z:10001});i.animateShape(!0).when(1e3,{endAngle:3*Bc/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*Bc/2}).delay(300).start("circularInOut");var o=new vl;return o.add(i),o.add(r),o.add(n),o.resize=function(){var e=t.getWidth()/2,o=t.getHeight()/2;i.setShape({cx:e,cy:o});var a=i.shape.r;r.setShape({x:e-a,y:o-a,width:2*a,height:2*a}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},o.resize(),o}),wo({type:"highlight",event:"highlight",update:"highlight"},B),wo({type:"downplay",event:"downplay",update:"downplay"},B);var cf={};ko.prototype={constructor:ko,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t=this._old,e=this._new,n={},i=[],r=[];for(Lo(t,{},i,"_oldKeyGetter",this),Lo(e,n,r,"_newKeyGetter",this),o=0;o0&&(x+="__ec__"+u[_]),u[_]++),x&&(h[m]=x)}this._nameList=e,this._idList=h},mf.count=function(){return this.indices.length},mf.get=function(t,e,n){var i=this._storage,r=this.indices[e];if(null==r||!i[t])return NaN;var o=i[t][r];if(n){var a=this._dimensionInfos[t];if(a&&a.stackable)for(var s=this.stackedOn;s;){var l=s.get(t,e);(o>=0&&l>0||o<=0&&l<0)&&(o+=l),s=s.stackedOn}}return o},mf.getValues=function(t,e,n){var i=[];y(t)||(n=e,e=t,t=this.dimensions);for(var r=0,o=t.length;rl&&(l=o));return this._extent[t+!!e]=[s,l]}return[1/0,-1/0]},mf.getSum=function(t,e){var n=0;if(this._storage[t])for(var i=0,r=this.count();it))return o;r=o-1}}return-1},mf.indicesOfNearest=function(t,e,n,i){var r=[];if(!this._storage[t])return r;null==i&&(i=1/0);for(var o=Number.MAX_VALUE,a=-1,s=0,l=this.count();s=0&&a<0)&&(o=u,a=h,r.length=0),r.push(s))}return r},mf.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},mf.getRawDataItem=function(t){return this._rawData.getItem(this.getRawIndex(t))},mf.getName=function(t){return this._nameList[this.indices[t]]||""},mf.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},mf.each=function(t,e,n,i){"function"==typeof t&&(i=n,n=e,e=t,t=[]);var r=[],o=(t=d(Oo(t),this.getDimension,this)).length,a=this.indices;i=i||this;for(var s=0;sd-g&&(c=d-g,h.length=c);for(var p=0;p0&&ea(n[r-1]);r--);for(;i0&&ea(n[o-1]);o--);for(;r=0){var a=r.getItemGraphicEl(o);if(!a){var s=r.getItemLayout(o);if(!s)return;(a=new Uo(r,o)).position=s,a.setZ(t.get("zlevel"),t.get("z")),a.ignore=isNaN(s[0])||isNaN(s[1]),a.__temp=!0,r.setItemGraphicEl(o,a),a.stopSymbolAnimation(!0),this.group.add(a)}a.highlight()}else Zr.prototype.highlight.call(this,t,e,n,i)},downplay:function(t,e,n,i){var r=t.getData(),o=cr(r,i);if(null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else Zr.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Zf({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Yf({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_getSymbolIgnoreFunc:function(t,e){var n=e.getAxesByScale("ordinal")[0];if(n&&n.isLabelIgnored)return v(n.isLabelIgnored,n)},_updateAnimation:function(t,e,n,i,r){var o=this._polyline,a=this._polygon,s=t.hostModel,l=Rf(this._data,t,this._stackedOnPoints,e,this._coordSys,n),h=l.current,u=l.stackedOnCurrent,c=l.next,f=l.stackedOnNext;r&&(h=fa(l.current,n,r),u=fa(l.stackedOnCurrent,n,r),c=fa(l.next,n,r),f=fa(l.stackedOnNext,n,r)),o.shape.__points=l.current,o.shape.points=h,$i(o,{shape:{points:c}},s),a&&(a.setShape({points:h,stackedOnPoints:u}),$i(a,{shape:{points:c,stackedOnPoints:f}},s));for(var d=[],g=l.status,p=0;pe&&(e=t[n]);return e},min:function(t){for(var e=1/0,n=0;n=e[0]&&t<=e[1]},ga.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},ga.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},ga.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},ga.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getDataExtent(e,!0))},ga.prototype.getExtent=function(){return this._extent.slice()},ga.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},ga.prototype.getTicksLabels=function(){for(var t=[],e=this.getTicks(),n=0;ne[1]&&(e[1]=t[1]),td.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=va(t)},getTicks:function(){return _a(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getTicksLabels:function(){for(var t=[],e=this.getTicks(),n=0;n>>1;t[r][1]n&&(o=n);var a=ad.length,s=rd(ad,o,0,a),l=ad[Math.min(s,a-1)],h=l[1];"year"===l[0]&&(h*=yn(r/h/t,!0));var u=this.getSetting("useUTC")?0:60*new Date(+i[0]||+i[1]).getTimezoneOffset()*1e3,c=[Math.round(nd((i[0]-u)/h)*h+u),Math.round(id((i[1]-u)/h)*h+u)];ya(c,i),this._stepLvl=l,this._interval=h,this._niceExtent=c},parse:function(t){return+pn(t)}});f(["contain","normalize"],function(t){od.prototype[t]=function(e){return ed[t].call(this,this.parse(e))}});var ad=[["hh:mm:ss",1e3],["hh:mm:ss",5e3],["hh:mm:ss",1e4],["hh:mm:ss",15e3],["hh:mm:ss",3e4],["hh:mm\nMM-dd",6e4],["hh:mm\nMM-dd",3e5],["hh:mm\nMM-dd",6e5],["hh:mm\nMM-dd",9e5],["hh:mm\nMM-dd",18e5],["hh:mm\nMM-dd",36e5],["hh:mm\nMM-dd",72e5],["hh:mm\nMM-dd",216e5],["hh:mm\nMM-dd",432e5],["MM-dd\nyyyy",864e5],["MM-dd\nyyyy",1728e5],["MM-dd\nyyyy",2592e5],["MM-dd\nyyyy",3456e5],["MM-dd\nyyyy",432e6],["MM-dd\nyyyy",5184e5],["week",6048e5],["MM-dd\nyyyy",864e6],["week",12096e5],["week",18144e5],["month",26784e5],["week",36288e5],["month",53568e5],["week",36288e5],["quarter",8208e6],["month",107136e5],["month",13392e6],["half-year",16416e6],["month",214272e5],["month",26784e6],["year",32832e6]];od.create=function(t){return new od({useUTC:t.ecModel.get("useUTC")})};var sd=ga.prototype,ld=td.prototype,hd=un,ud=hn,cd=Math.floor,fd=Math.ceil,dd=Math.pow,gd=Math.log,pd=ga.extend({type:"log",base:10,$constructor:function(){ga.apply(this,arguments),this._originalScale=new td},getTicks:function(){var t=this._originalScale,e=this._extent,n=t.getExtent();return d(ld.getTicks.call(this),function(i){var r=hn(dd(this.base,i));return r=i===e[0]&&t.__fixMin?xa(r,n[0]):r,r=i===e[1]&&t.__fixMax?xa(r,n[1]):r},this)},getLabel:ld.getLabel,scale:function(t){return t=sd.scale.call(this,t),dd(this.base,t)},setExtent:function(t,e){var n=this.base;t=gd(t)/gd(n),e=gd(e)/gd(n),ld.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=sd.getExtent.call(this);e[0]=dd(t,e[0]),e[1]=dd(t,e[1]);var n=this._originalScale,i=n.getExtent();return n.__fixMin&&(e[0]=xa(e[0],i[0])),n.__fixMax&&(e[1]=xa(e[1],i[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=gd(t[0])/gd(e),t[1]=gd(t[1])/gd(e),sd.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getDataExtent(e,!0,function(t){return t>0}))},niceTicks:function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=vn(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var r=[hn(fd(e[0]/i)*i),hn(cd(e[1]/i)*i)];this._interval=i,this._niceExtent=r}},niceExtent:function(t){ld.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});f(["contain","normalize"],function(t){pd.prototype[t]=function(e){return e=gd(e)/gd(this.base),sd[t].call(this,e)}}),pd.create=function(){return new pd};var vd=function(t){this._axes={},this._dimList=[],this.name=t||""};vd.prototype={constructor:vd,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return d(this._dimList,Ca,this)},getAxesByScale:function(t){return t=t.toLowerCase(),p(this.getAxes(),function(e){return e.scale.type===t})},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var n=this._dimList,i=t instanceof Array?[]:{},r=0;r=n&&t<=i},containData:function(t){return this.contain(this.dataToCoord(t))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return cn(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var n=this._extent;n[0]=t,n[1]=e},dataToCoord:function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&Aa(n=n.slice(),i.count()),md(t,yd,n,e)},coordToData:function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&Aa(n=n.slice(),i.count());var r=md(t,n,yd,e);return this.scale.scale(r)},pointToData:function(t,e){},getTicksCoords:function(t){if(this.onBand&&!t){for(var e=this.getBands(),n=[],i=0;ie[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},isLabelIgnored:function(t){if("category"===this.type){var e=this.getLabelInterval();return"function"==typeof e&&!e(t,this.scale.getLabel(t))||t%(e+1)}},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},h(xd,_d);var wd={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},bd={};bd.categoryAxis=i({boundaryGap:!0,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},wd),bd.valueAxis=i({boundaryGap:[0,0],splitNumber:5},wd),bd.timeAxis=a({scale:!0,min:"dataMin",max:"dataMax"},bd.valueAxis),bd.logAxis=a({scale:!0,logBase:10},bd.valueAxis);var Sd=["value","category","time","log"],Md=function(t,e,n,o){f(Sd,function(a){e.extend({type:t+"Axis."+a,mergeDefaultAndTheme:function(e,r){var o=this.layoutMode,s=o?wr(e):{};i(e,r.getTheme().get(a+"Axis")),i(e,this.getDefaultOption()),e.type=n(t,e),o&&xr(e,s,o)},defaultOption:r([{},bd[a+"Axis"],o],!0)})}),rc.registerSubTypeDefaulter(t+"Axis",m(n,t))},Td={getFormattedLabels:function(){return Ma(this.axis,this.get("axisLabel.formatter"))},getCategories:function(){return"category"===this.get("type")&&d(this.get("data"),ka)},getMin:function(t){var e=this.option,n=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=n&&"dataMin"!==n&&"function"!=typeof n&&!M(n)&&(n=this.axis.scale.parse(n)),n},getMax:function(t){var e=this.option,n=t||null==e.rangeEnd?e.max:e.rangeEnd;return this.axis&&null!=n&&"dataMax"!==n&&"function"!=typeof n&&!M(n)&&(n=this.axis.scale.parse(n)),n},getNeedCrossZero:function(){var t=this.option;return null==t.rangeStart&&null==t.rangeEnd&&!t.scale},getCoordSysModel:B,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}},Cd=rc.extend({type:"cartesian2dAxis",axis:null,init:function(){Cd.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){Cd.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){Cd.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});i(Cd.prototype,Td);var Id={offset:0};Md("x",Cd,La,Id),Md("y",Cd,La,Id),rc.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});var Ad=f,kd=function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)},Ld=function(t,e){var n=wa(t,e),i=null!=e.getMin(),r=null!=e.getMax(),o=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var a=t.type;t.setExtent(n[0],n[1]),t.niceExtent({splitNumber:o,fixMin:i,fixMax:r,minInterval:"interval"===a||"time"===a?e.get("minInterval"):null,maxInterval:"interval"===a||"time"===a?e.get("maxInterval"):null});var s=e.get("interval");null!=s&&t.setInterval&&t.setInterval(s)},Pd=za.prototype;Pd.type="grid",Pd.axisPointerEnabled=!0,Pd.getRect=function(){return this._rect},Pd.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model),Ad(n.x,function(t){Ld(t.scale,t.model)}),Ad(n.y,function(t){Ld(t.scale,t.model)}),Ad(n.x,function(t){Ba(n,"y",t)}),Ad(n.y,function(t){Ba(n,"x",t)}),this.resize(this.model,e)},Pd.resize=function(t,e,n){function i(){Ad(o,function(t){var e=t.isHorizontal(),n=e?[0,r.width]:[0,r.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),Na(t,e?r.x:r.y)})}var r=_r(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=r;var o=this._axesList;i(),!n&&t.get("containLabel")&&(Ad(o,function(t){if(!t.model.get("axisLabel.inside")){var e=Oa(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get("axisLabel.margin");r[n]-=e[n]+i,"top"===t.position?r.y+=e.height+i:"left"===t.position&&(r.x+=e.width+i)}}}),i())},Pd.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n){if(null==e)for(var i in n)if(n.hasOwnProperty(i))return n[i];return n[e]}},Pd.getAxes=function(){return this._axesList.slice()},Pd.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}w(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;ih[1]?-1:1,c=["start"===r?h[0]-u*l:"end"===r?h[1]+u*l:(h[0]+h[1])/2,Za(r)?t.labelOffset+a*l:0],f=e.get("nameRotate");null!=f&&(f=f*Od/180);var d;Za(r)?i=Ed(t.rotation,null!=f?f:t.rotation,a):(i=Va(t,r,f||0,h),null!=(d=t.axisNameAvailableWidth)&&(d=Math.abs(d/Math.sin(i.rotation)),!isFinite(d)&&(d=null)));var g=s.getFont(),p=e.get("nameTruncate",!0)||{},v=p.ellipsis,m=T(t.nameTruncateMaxWidth,p.maxWidth,d),y=null!=v&&null!=m?lh(n,m,g,v,{minChar:2,placeholder:p.placeholder}):n,_=e.get("tooltip",!0),x=e.mainType,w={componentType:x,name:n,$vars:["name"]};w[x+"Index"]=e.componentIndex;var b=new yu({anid:"name",__fullText:n,__truncatedText:y,position:c,rotation:i.rotation,silent:Ga(e),z2:1,tooltip:_&&_.show?o({content:n,formatter:function(){return n},formatterParams:w},_):null});Vi(b.style,s,{text:y,textFont:g,textFill:s.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:i.textAlign,textVerticalAlign:i.textVerticalAlign}),e.get("triggerEvent")&&(b.eventData=Wa(e),b.eventData.targetType="axisName",b.eventData.name=n),this._dumbGroup.add(b),b.updateTransform(),this.group.add(b),b.decomposeTransform()}}},Ed=zd.innerTextLayout=function(t,e,n){var i,r,o=dn(e-t);return gn(o)?(r=n>0?"top":"bottom",i="center"):gn(o-Od)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},Nd=zd.ifIgnoreOnTick=function(t,e,n,i,r,o){if(0===e&&r||e===i-1&&o)return!1;var a,s=t.scale;return"ordinal"===s.type&&("function"==typeof n?(a=s.getTicks()[e],!n(a,s.getLabel(a))):e%(n+1))},Rd=zd.getInterval=function(t,e){var n=t.get("interval");return null!=n&&"auto"!=n||(n=e),n},Fd=To({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,e,n,i){this.axisPointerClass&&ja(t),Fd.superApply(this,"render",arguments),ts(this,t,0,n,0,!0)},updateAxisPointer:function(t,e,n,i,r){ts(this,t,0,n,0,!1)},remove:function(t,e){var n=this._axisPointer;n&&n.remove(e),Fd.superApply(this,"remove",arguments)},dispose:function(t,e){es(this,e),Fd.superApply(this,"dispose",arguments)}}),Wd=[];Fd.registerAxisPointerClass=function(t,e){Wd[t]=e},Fd.getAxisPointerClass=function(t){return t&&Wd[t]};var Vd=zd.ifIgnoreOnTick,Gd=zd.getInterval,Hd=["axisLine","axisTickLabel","axisName"],qd=["splitArea","splitLine"],Xd=Fd.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(t,e,n,i){this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new vl,this.group.add(this._axisGroup),t.get("show")){var o=t.getCoordSysModel(),a=ns(o,t),s=new zd(t,a);f(Hd,s.add,s),this._axisGroup.add(s.getGroup()),f(qd,function(e){t.get(e+".show")&&this["_"+e](t,o,a.labelInterval)},this),Ji(r,this._axisGroup,t),Xd.superCall(this,"render",t,e,n,i)}},_splitLine:function(t,e,n){var i=t.axis;if(!i.scale.isBlank()){var r=t.getModel("splitLine"),o=r.getModel("lineStyle"),s=o.get("color"),l=Gd(r,n);s=y(s)?s:[s];for(var h=e.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,f=i.getTicksCoords(),d=i.scale.getTicks(),g=t.get("axisLabel.showMinLabel"),p=t.get("axisLabel.showMaxLabel"),v=[],m=[],_=o.getLineStyle(),x=0;x1){var h;"string"==typeof n?h=Uf[n]:"function"==typeof n&&(h=n),h&&(e=e.downSample(o.dim,1/l,h,jf),t.setData(e))}}},this)},"line"));var Zd="__ec_stack_";ss.getLayoutOnAxis=function(t,e){var n=[],i=t.axis;if("category"===i.type){for(var r=i.getBandWidth(),o=0;o0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};bo(m(ss,"bar")),So(function(t){t.eachSeriesByType("bar",function(t){t.getData().setVisual("legendSymbol","roundRect")})});var Kd={updateSelectedMap:function(t){this._targetList=t.slice(),this._selectTargetMap=g(t||[],function(t,e){return t.set(e.name,e),t},z())},select:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);"single"===this.get("selectedMode")&&this._selectTargetMap.each(function(t){t.selected=!1}),n&&(n.selected=!0)},unSelect:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);n&&(n.selected=!1)},toggleSelected:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);if(null!=n)return this[n.selected?"unSelect":"select"](t,e),n.selected},isSelected:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return n&&n.selected}},Jd=Co({type:"series.pie",init:function(t){Jd.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this.updateSelectedMap(t.data),this._defaultLabelLine(t)},mergeOption:function(t){Jd.superCall(this,"mergeOption",t),this.updateSelectedMap(this.option.data)},getInitialData:function(t,e){var n=Bo(["value"],t.data),i=new vf(n,this);return i.initData(t.data),i},getDataParams:function(t){var e=this.getData(),n=Jd.superCall(this,"getDataParams",t),i=[];return e.each("value",function(t){i.push(t)}),n.percent=fn(i,t,e.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},_defaultLabelLine:function(t){rr(t.labelLine,["show"]);var e=t.labelLine.normal,n=t.labelLine.emphasis;e.show=e.show&&t.label.normal.show,n.show=n.show&&t.label.emphasis.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,label:{normal:{rotate:!1,show:!0,position:"outer"},emphasis:{}},labelLine:{normal:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}}},itemStyle:{normal:{borderWidth:1},emphasis:{}},animationType:"expansion",animationEasing:"cubicOut",data:[]}});u(Jd,Kd);var tg=vs.prototype;tg.updateData=function(t,e,n){function i(){s.stopAnimation(!0),s.animateTo({shape:{r:u.r+l.get("hoverOffset")}},300,"elasticOut")}function r(){s.stopAnimation(!0),s.animateTo({shape:{r:u.r}},300,"elasticOut")}var s=this.childAt(0),l=t.hostModel,h=t.getItemModel(e),u=t.getItemLayout(e),c=o({},u);c.label=null,n?(s.setShape(c),"scale"===l.getShallow("animationType")?(s.shape.r=u.r0,Qi(s,{shape:{r:u.r}},l,e)):(s.shape.endAngle=u.startAngle,$i(s,{shape:{endAngle:u.endAngle}},l,e))):$i(s,{shape:c},l,e);var f=h.getModel("itemStyle"),d=t.getItemVisual(e,"color");s.useStyle(a({lineJoin:"bevel",fill:d},f.getModel("normal").getItemStyle())),s.hoverStyle=f.getModel("emphasis").getItemStyle();var g=h.getShallow("cursor");g&&s.attr("cursor",g),ps(this,t.getItemLayout(e),h.get("selected"),l.get("selectedOffset"),l.get("animation")),s.off("mouseover").off("mouseout").off("emphasis").off("normal"),h.get("hoverAnimation")&&l.isAnimationEnabled()&&s.on("mouseover",i).on("mouseout",r).on("emphasis",i).on("normal",r),this._updateLabel(t,e),Fi(this)},tg._updateLabel=function(t,e){var n=this.childAt(1),i=this.childAt(2),r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e).label,s=t.getItemVisual(e,"color");$i(n,{shape:{points:a.linePoints||[[a.x,a.y],[a.x,a.y],[a.x,a.y]]}},r,e),$i(i,{style:{x:a.x,y:a.y}},r,e),i.attr({rotation:a.rotation,origin:[a.x,a.y],z2:10});var l=o.getModel("label.normal"),h=o.getModel("label.emphasis"),u=o.getModel("labelLine.normal"),c=o.getModel("labelLine.emphasis"),s=t.getItemVisual(e,"color");Wi(i.style,i.hoverStyle={},l,h,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:s,useInsideStyle:!!a.inside},{textAlign:a.textAlign,textVerticalAlign:a.verticalAlign,opacity:t.getItemVisual(e,"opacity")}),i.ignore=i.normalIgnore=!l.get("show"),i.hoverIgnore=!h.get("show"),n.ignore=n.normalIgnore=!u.get("show"),n.hoverIgnore=!c.get("show"),n.setStyle({stroke:s,opacity:t.getItemVisual(e,"opacity")}),n.setStyle(u.getModel("lineStyle").getLineStyle()),n.hoverStyle=c.getModel("lineStyle").getLineStyle();var f=u.get("smooth");f&&!0===f&&(f=.4),n.setShape({smooth:f})},h(vs,vl);Zr.extend({type:"pie",init:function(){var t=new vl;this._sectorGroup=t},render:function(t,e,n,i){if(!i||i.from!==this.uid){var r=t.getData(),o=this._data,a=this.group,s=e.get("animation"),l=!o,h=t.get("animationType"),u=m(gs,this.uid,t,s,n),c=t.get("selectedMode");if(r.diff(o).add(function(t){var e=new vs(r,t);l&&"scale"!==h&&e.eachChild(function(t){t.stopAnimation(!0)}),c&&e.on("click",u),r.setItemGraphicEl(t,e),a.add(e)}).update(function(t,e){var n=o.getItemGraphicEl(e);n.updateData(r,t),n.off("click"),c&&n.on("click",u),a.add(n),r.setItemGraphicEl(t,n)}).remove(function(t){var e=o.getItemGraphicEl(t);a.remove(e)}).execute(),s&&l&&r.count()>0&&"scale"!==h){var f=r.getItemLayout(0),d=Math.max(n.getWidth(),n.getHeight())/2,g=v(a.removeClipPath,a);a.setClipPath(this._createClipPath(f.cx,f.cy,d,f.startAngle,f.clockwise,g,t))}this._data=r}},dispose:function(){},_createClipPath:function(t,e,n,i,r,o,a){var s=new bu({shape:{cx:t,cy:e,r0:0,r:n,startAngle:i,endAngle:i,clockwise:r}});return Qi(s,{shape:{endAngle:i+(r?1:-1)*Math.PI*2}},a,o),s},containPoint:function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}}});var eg=function(t,e,n,i){var r,o,a=t.getData(),s=[],l=!1;a.each(function(n){var i,h,u,c,f=a.getItemLayout(n),d=a.getItemModel(n),g=d.getModel("label.normal"),p=g.get("position")||d.get("label.emphasis.position"),v=d.getModel("labelLine.normal"),m=v.get("length"),y=v.get("length2"),_=(f.startAngle+f.endAngle)/2,x=Math.cos(_),w=Math.sin(_);r=f.cx,o=f.cy;var b="inside"===p||"inner"===p;if("center"===p)i=f.cx,h=f.cy,c="center";else{var S=(b?(f.r+f.r0)/2*x:f.r*x)+r,M=(b?(f.r+f.r0)/2*w:f.r*w)+o;if(i=S+3*x,h=M+3*w,!b){var T=S+x*(m+e-f.r),C=M+w*(m+e-f.r),I=T+(x<0?-1:1)*y,A=C;i=I+(x<0?-5:5),h=A,u=[[S,M],[T,C],[I,A]]}c=b?"center":x>0?"left":"right"}var k=g.getFont(),L=g.get("rotate")?x<0?-_+Math.PI:-_:0,P=Jt(t.getFormattedLabel(n,"normal")||a.getName(n),k,c,"top");l=!!L,f.label={x:i,y:h,position:p,height:P.height,len:m,len2:y,linePoints:u,textAlign:c,verticalAlign:"middle",rotation:L,inside:b},b||s.push(f.label)}),!l&&t.get("avoidLabelOverlap")&&ys(s,r,o,e,n,i)},ng=2*Math.PI,ig=Math.PI/180;!function(t,e){f(e,function(e){e.update="updateView",wo(e,function(n,i){var r={};return i.eachComponent({mainType:"series",subType:t,query:n},function(t){t[e.method]&&t[e.method](n.name,n.dataIndex);var i=t.getData();i.each(function(e){var n=i.getName(e);r[n]=t.isSelected(n)||!1})}),{name:n.name,selected:r}})})}("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),So(m(function(t,e){var n={};e.eachRawSeriesByType(t,function(t){var i=t.getRawData(),r={};if(!e.isSeriesFiltered(t)){var o=t.getData();o.each(function(t){var e=o.getRawIndex(t);r[e]=t}),i.each(function(e){var a=r[e],s=null!=a&&o.getItemVisual(a,"color",!0);if(s)i.setItemVisual(e,"color",s);else{var l=i.getItemModel(e).get("itemStyle.normal.color")||t.getColorFromPalette(i.getName(e),n);i.setItemVisual(e,"color",l),null!=a&&o.setItemVisual(a,"color",l)}})}})},"pie")),bo(m(function(t,e,n,i){e.eachSeriesByType(t,function(t){var e=t.get("center"),i=t.get("radius");y(i)||(i=[0,i]),y(e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=ln(e[0],r),l=ln(e[1],o),h=ln(i[0],a/2),u=ln(i[1],a/2),c=t.getData(),f=-t.get("startAngle")*ig,d=t.get("minAngle")*ig,g=0;c.each("value",function(t){!isNaN(t)&&g++});var p=c.getSum("value"),v=Math.PI/(p||g)*2,m=t.get("clockwise"),_=t.get("roseType"),x=t.get("stillShowZeroSum"),w=c.getDataExtent("value");w[0]=0;var b=ng,S=0,M=f,T=m?1:-1;if(c.each("value",function(t,e){var n;if(isNaN(t))c.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:s,cy:l,r0:h,r:_?NaN:u});else{(n="area"!==_?0===p&&x?v:t*v:ng/g)