s;s++)o+=i[yr](t[s-1],t[s]);var l=o/2;l=r>l?r:l;for(var s=0;l>s;s++){var c,u,h,d=s/(l-1)*(n?r:r-1),f=Math.floor(d),p=d-f,v=t[f%r];n?(c=t[(f-1+r)%r],u=t[(f+1)%r],h=t[(f+2)%r]):(c=t[0===f?f:f-1],u=t[f>r-2?r-1:f+1],h=t[f>r-3?r-1:f+2]);var m=p*p,g=p*m;a.push([e(c[0],v[0],u[0],h[0],p,m,g),e(c[1],v[1],u[1],h[1],p,m,g)])}return a}}),e("zrender/graphic/helper/smoothBezier",[Yr,"../../core/vector"],function(t){var e=t("../../core/vector"),i=e.min,n=e.max,r=e.scale,a=e[yr],o=e.add;return function(t,s,l,c){var u,h,d,f,p=[],v=[],m=[],g=[];if(c){d=[1/0,1/0],f=[-(1/0),-(1/0)];for(var y=0,x=t[Hr];x>y;y++)i(d,d,t[y]),n(f,f,t[y]);i(d,d,c[0]),n(f,f,c[1])}for(var y=0,x=t[Hr];x>y;y++){var _=t[y];if(l)u=t[y?y-1:x-1],h=t[(y+1)%x];else{if(0===y||y===x-1){p.push(e.clone(t[y]));continue}u=t[y-1],h=t[y+1]}e.sub(v,h,u),r(v,v,s);var w=a(_,u),b=a(_,h),M=w+b;0!==M&&(w/=M,b/=M),r(m,v,-w),r(g,v,b);var S=o([],_,m),A=o([],_,g);c&&(n(S,S,d),i(S,S,f),n(A,A,d),i(A,A,f)),p.push(S),p.push(A)}return l&&p.push(p.shift()),p}}),e("zrender/graphic/helper/poly",[Yr,"./smoothSpline","./smoothBezier"],function(t){var e=t("./smoothSpline"),i=t("./smoothBezier");return{buildPath:function(t,n,r){var a=n[Ye],o=n.smooth;if(a&&a[Hr]>=2){if(o&&"spline"!==o){var s=i(a,o,r,n.smoothConstraint);t[li](a[0][0],a[0][1]);for(var l=a[Hr],c=0;(r?l:l-1)>c;c++){var u=s[2*c],h=s[2*c+1],d=a[(c+1)%l];t[oi](u[0],u[1],h[0],h[1],d[0],d[1])}}else{"spline"===o&&(a=e(a,r)),t[li](a[0][0],a[0][1]);for(var c=1,f=a[Hr];f>c;c++)t[si](a[c][0],a[c][1])}r&&t[ai]()}}}}),e("zrender/graphic/shape/Polygon",[Yr,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[Pr]({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,i){e[ii](t,i,!0)}})}),e("zrender/graphic/shape/Polyline",[Yr,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[Pr]({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,i){e[ii](t,i,!1)}})}),e("zrender/graphic/shape/Rect",[Yr,"../helper/roundRect","../Path"],function(t){var e=t("../helper/roundRect");return t("../Path")[Pr]({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,i){var n=i.x,r=i.y,a=i.width,o=i[pr];i.r?e[ii](t,i):t.rect(n,r,a,o),t[ai]()}})}),e("zrender/graphic/shape/Line",[Yr,"../Path"],function(t){return t("../Path")[Pr]({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,n=e.y1,r=e.x2,a=e.y2,o=e.percent;0!==o&&(t[li](i,n),1>o&&(r=i*(1-o)+r*o,a=n*(1-o)+a*o),t[si](r,a))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}})}),e("zrender/graphic/shape/BezierCurve",[Yr,"../../core/curve","../Path"],function(t){var e=t("../../core/curve"),i=e.quadraticSubdivide,n=e.cubicSubdivide,r=e[ui],a=e.cubicAt,o=[];return t("../Path")[Pr]({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var r=e.x1,a=e.y1,s=e.x2,l=e.y2,c=e.cpx1,u=e.cpy1,h=e.cpx2,d=e.cpy2,f=e.percent;0!==f&&(t[li](r,a),null==h||null==d?(1>f&&(i(r,c,s,f,o),c=o[1],s=o[2],i(a,u,l,f,o),u=o[1],l=o[2]),t.quadraticCurveTo(c,u,s,l)):(1>f&&(n(r,c,h,s,f,o),c=o[1],h=o[2],s=o[3],n(a,u,d,l,f,o),u=o[1],d=o[2],l=o[3]),t[oi](c,u,h,d,s,l)))},pointAt:function(t){var e=this.shape,i=e.cpx2,n=e.cpy2;return null===i||null===n?[r(e.x1,e.cpx1,e.x2,t),r(e.y1,e.cpy1,e.y2,t)]:[a(e.x1,e.cpx1,e.cpx1,e.x2,t),a(e.y1,e.cpy1,e.cpy1,e.y2,t)]}})}),e("zrender/graphic/shape/Arc",[Yr,"../Path"],function(t){return t("../Path")[Pr]({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,
clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r,0),a=e[Je],o=e[Ke],s=e[$e],l=Math.cos(a),c=Math.sin(a);t[li](l*r+i,c*r+n),t.arc(i,n,r,a,o,!s)}})}),e("zrender/graphic/LinearGradient",[Yr,ur,"./Gradient"],function(t){var e=t(ur),i=t("./Gradient"),n=function(t,e,n,r,a){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==r?0:r,i.call(this,a)};return n[Xr]={constructor:n,type:"linear",updateCanvasGradient:function(t,e){for(var i=t[Qn](),n=this.x*i.width+i.x,r=this.x2*i.width+i.x,a=this.y*i[pr]+i.y,o=this.y2*i[pr]+i.y,s=e.createLinearGradient(n,a,r,o),l=this.colorStops,c=0;c=0?"white":i,a=e[er](tr);h[Pr](t,{textDistance:e[Tr](yr)||5,textFont:a[Jn](),textPosition:n,textFill:a[Re]()||r})},x[ze]=h.curry(u,!0),x[Pe]=h.curry(u,!1),x.getTransform=function(t,e){for(var i=m.identity([]);t&&t!==e;)m.mul(i,t[Zi](),i),t=t[Fi];return i},x[vr]=function(t,e,i){return i&&(e=m.invert([],e)),g[vr]([],t,e)},x.transformDirection=function(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-n:"right"===t?n:0,"top"===t?-r:t===lr?r:0];return a=x[vr](a,e,i),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?lr:"top"},x}),e(Ie,[],function(){function t(t){var e=this.os={},i=this.browser={},n=t.match(/Web[kK]it[\/]{0,1}([\d.]+)/),r=t.match(/(Android);?[\s\/]+([\d.]+)?/),a=t.match(/(iPad).*OS\s([\d_]+)/),o=t.match(/(iPod)(.*OS\s([\d_]+))?/),s=!a&&t.match(/(iPhone\sOS)\s([\d_]+)/),l=t.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),c=l&&t.match(/TouchPad/),u=t.match(/Kindle\/([\d.]+)/),h=t.match(/Silk\/([\d._]+)/),d=t.match(/(BlackBerry).*Version\/([\d.]+)/),f=t.match(/(BB10).*Version\/([\d.]+)/),p=t.match(/(RIM\sTablet\sOS)\s([\d.]+)/),v=t.match(/PlayBook/),m=t.match(/Chrome\/([\d.]+)/)||t.match(/CriOS\/([\d.]+)/),g=t.match(/Firefox\/([\d.]+)/),y=t.match(/MSIE ([\d.]+)/),x=n&&t.match(/Mobile\//)&&!m,_=t.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/)&&!m,y=t.match(/MSIE\s([\d.]+)/);return(i.webkit=!!n)&&(i.version=n[1]),r&&(e.android=!0,e.version=r[2]),s&&!o&&(e.ios=e.iphone=!0,e.version=s[2][Wn](/_/g,".")),a&&(e.ios=e.ipad=!0,e.version=a[2][Wn](/_/g,".")),o&&(e.ios=e.ipod=!0,e.version=o[3]?o[3][Wn](/_/g,"."):null),l&&(e.webos=!0,e.version=l[2]),c&&(e.touchpad=!0),d&&(e.blackberry=!0,e.version=d[2]),f&&(e.bb10=!0,e.version=f[2]),p&&(e.rimtabletos=!0,e.version=p[2]),v&&(i.playbook=!0),u&&(e.kindle=!0,e.version=u[1]),h&&(i.silk=!0,i.version=h[1]),!h&&e.android&&t.match(/Kindle Fire/)&&(i.silk=!0),m&&(i.chrome=!0,i.version=m[1]),g&&(i.firefox=!0,i.version=g[1]),y&&(i.ie=!0,i.version=y[1]),x&&(t.match(/Safari/)||e.ios)&&(i.safari=!0),_&&(i.webview=!0),y&&(i.ie=!0,i.version=y[1]),e.tablet=!!(a||v||r&&!t.match(/Mobile/)||g&&t.match(/Tablet/)||y&&!t.match(/Phone/)&&t.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(r||s||l||d||f||m&&t.match(/Android/)||m&&t.match(/CriOS\/([\d.]+)/)||g&&t.match(/Mobile/)||y&&t.match(/Touch/))),{browser:i,os:e,node:!1,canvasSupported:document[Fr](Zr)[Gr]?!0:!1}}return typeof navigator===xr?{browser:{},os:{},node:!0,canvasSupported:!0}:t(navigator.userAgent)}),e(De,[Yr,"../mixin/Eventful"],function(t){function e(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function i(t,i){if(i=i||window.event,null!=i.zrX)return i;var n=i.type,r=n&&n[Br]("touch")>=0;if(r){var a="touchend"!=n?i.targetTouches[0]:i.changedTouches[0];if(a){var o=e(t);i.zrX=a.clientX-o.left,i.zrY=a.clientY-o.top}}else{var s=0,l=0;i.pageX||i.pageY?(s=i.pageX,l=i.pageY):(s=i.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,l=i.clientY+document.body.scrollTop+document.documentElement.scrollTop);var c=e(t),u=c.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||0),h=c.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0);i.zrX=s-h,i.zrY=l-u,i.zrDelta=i.wheelDelta?i.wheelDelta/120:-(i.detail||0)/3}return i}function n(t,e,i){o?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function r(t,e,i){o?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}var a=t("../mixin/Eventful"),o=typeof window!==xr&&!!window.addEventListener,s=o?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};return{normalizeEvent:i,addEventListener:n,removeEventListener:r,stop:s,Dispatcher:a}}),e("zrender/mixin/Draggable",[Yr],function(t){function e(){this.on(Le,this._dragStart,this),this.on(ke,this._drag,this),this.on(Te,this._dragEnd,this),this.on("globalout",this._dragEnd,this)}return e[Xr]={constructor:e,_dragStart:function(t){var e=t[Ei];e&&e[Ii]&&(this._draggingTarget=e,e.dragging=!0,this._x=t[Ce],this._y=t[Ae],this._dispatchProxy(e,"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var i=t[Ce],n=t[Ae],r=i-this._x,a=n-this._y;this._x=i,this._y=n,e.drift(r,a,t),this._dispatchProxy(e,"drag",t.event);var o=this._findHover(i,n,e),s=this._dropTarget;this._dropTarget=o,e!==o&&(s&&o!==s&&this._dispatchProxy(s,"dragleave",t.event),o&&o!==s&&this._dispatchProxy(o,"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this._dispatchProxy(e,"dragend",t.event),this._dropTarget&&this._dispatchProxy(this._dropTarget,"drop",t.event),this._draggingTarget=null,this._dropTarget=null}},e}),e("zrender/core/GestureMgr",[Yr],function(t){function e(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function i(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var n=function(){this._track=[]};n[Xr]={constructor:n,recognize:function(t,e){return this._doTrack(t,e),this._recognize(t)},clear:function(){return this._track[Hr]=0,this},_doTrack:function(t,e){var i=t.touches;if(i){for(var n={points:[],touches:[],target:e,event:t},r=0,a=i[Hr];a>r;r++){var o=i[r];n[Ye].push([o.clientX,o.clientY]),n.touches.push(o)}this._track.push(n)}},_recognize:function(t){for(var e in r)if(r.hasOwnProperty(e)){var i=r[e](this._track,t);if(i)return i}}};var r={pinch:function(t,n){var r=t[Hr];if(r){var a=(t[r-1]||{})[Ye],o=(t[r-2]||{})[Ye]||a;if(o&&o[Hr]>1&&a&&a[Hr]>1){var s=e(a)/e(o);!isFinite(s)&&(s=1),n.pinchScale=s;var l=i(a);return n.pinchX=l[0],n.pinchY=l[1],{type:"pinch",target:t[0][Ei],event:n}}}}};return n}),e("zrender/Handler",[Yr,"./core/env","./core/event","./core/util","./mixin/Draggable","./core/GestureMgr","./mixin/Eventful"],function(t){function e(t){return"_"+t+"Handler"}function i(t,e,i){return{type:t,event:i,target:e,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta}}function n(t,e,i){var n=t._gestureMgr;"start"===i&&n.clear();var r=n.recognize(e,t._findHover(e.zrX,e.zrY,null));if("end"===i&&n.clear(),r){var a=r.type;e.gestureEvent=a,t._dispatchProxy(r[Ei],a,r.event)}}function r(t){for(var i=d[Or](f),n=i[Hr];n--;){var r=i[n];t[e(r)]=l.bind(y[r],t)}}function a(t,e,i){if(t[t.rectHover?"rectContain":hi](e,i)){for(var n=t[Fi];n;){if(n.clipPath&&!n.clipPath[hi](e,i))return!1;n=n[Fi]}return!0}return!1}var o=t("./core/env"),s=t("./core/event"),l=t("./core/util"),c=t("./mixin/Draggable"),u=t("./core/GestureMgr"),h=t("./mixin/Eventful"),d=["click","dblclick","mousewheel",ke,Ee,Te,Le],f=["touchstart","touchend","touchmove"],p=300,v=s.addEventListener,m=s.removeEventListener,g=s.normalizeEvent,y={mousemove:function(t){t=g(this.root,t);var e=t.zrX,i=t.zrY,n=this._findHover(e,i,null),r=this._hovered;this._hovered=n,this.root.style.cursor=n?n.cursor:this._defaultCursorStyle,r&&n!==r&&r.__zr&&this._dispatchProxy(r,Ee,t),this._dispatchProxy(n,ke,t),n&&n!==r&&this._dispatchProxy(n,Ne,t)},mouseout:function(t){t=g(this.root,t);var e=t.toElement||t.relatedTarget;if(e!=this.root)for(;e&&9!=e.nodeType;){if(e===this.root)return;e=e[Se]}this._dispatchProxy(this._hovered,Ee,t),this[xi]("globalout",{event:t})},touchstart:function(t){t=g(this.root,t),this._lastTouchMoment=new Date,n(this,t,"start"),this._mousemoveHandler(t),this._mousedownHandler(t)},touchmove:function(t){t=g(this.root,t),n(this,t,"change"),this._mousemoveHandler(t)},touchend:function(t){t=g(this.root,t),n(this,t,"end"),this._mouseupHandler(t),+new Date-this._lastTouchMoment=0;r--)if(!n[r][_e]&&n[r]!==i&&a(n[r],t,e))return n[r]}},l.mixin(x,h),l.mixin(x,c),x}),e("zrender/Storage",[Yr,"./core/util","./container/Group"],function(t){function e(t,e){return t[xe]===e[xe]?t.z===e.z?t.z2===e.z2?t.__renderidx-e.__renderidx:t.z2-e.z2:t.z-e.z:t[xe]-e[xe]}var i=t("./core/util"),n=t("./container/Group"),r=function(){this._elements={},this._roots=[],this._displayList=[],this._displayListLen=0};return r[Xr]={constructor:r,getDisplayList:function(t){return t&&this.updateDisplayList(),this._displayList},updateDisplayList:function(){this._displayListLen=0;for(var t=this._roots,i=this._displayList,n=0,r=t[Hr];r>n;n++){var a=t[n];this._updateAndAddDisplayable(a)}i[Hr]=this._displayListLen;for(var n=0,r=i[Hr];r>n;n++)i[n].__renderidx=n;i.sort(e)},_updateAndAddDisplayable:function(t,e){if(!t[Di]){t.beforeUpdate(),t[ye](),t.afterUpdate();var i=t.clipPath;if(i&&(i[Fi]=t,i[Hi](),e?(e=e.slice(),e.push(i)):e=[i]),"group"==t.type){for(var n=t._children,r=0;re;e++)this.delRoot(t[e]);else{var o;o=typeof t==Nr?this._elements[t]:t;var s=i[Br](this._roots,o);s>=0&&(this[Ai](o.id),this._roots[_n](s,1),o instanceof n&&o.delChildrenFromStorage(this))}},addToMap:function(t){return t instanceof n&&(t.__storage=this),t.dirty(),this._elements[t.id]=t,this},get:function(t){return this._elements[t]},delFromMap:function(t){var e=this._elements,i=e[t];return i&&(delete e[t],i instanceof n&&(i.__storage=null)),this},dispose:function(){this._elements=this._renderList=this._roots=null}},r}),e("zrender/animation/Animation",[Yr,ur,"../core/event","./Animator"],function(t){var e=t(ur),i=t("../core/event").Dispatcher,n=typeof window!==xr&&(window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)},r=t("./Animator"),a=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time=0,i.call(this)};return a[Xr]={constructor:a,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t[Ri]=this;for(var e=t.getClips(),i=0;i=0&&this._clips[_n](i,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;io;o++){var s=i[o],l=s.step(t);l&&(r.push(l),a.push(s))}for(var o=0;n>o;)i[o]._needsRemove?(i[o]=i[n-1],i.pop(),n--):o++;n=r[Hr];for(var o=0;n>o;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this[xi]("frame",e),this.stage[ye]&&this.stage[ye]()},start:function(){function t(){e._running&&(n(t),e._update())}var e=this;this._running=!0,this._time=(new Date).getTime(),n(t)},stop:function(){this._running=!1},clear:function(){this._clips=[]},animate:function(t,e){e=e||{};var i=new r(t,e.loop,e.getter,e.setter);return i}},e.mixin(a,i),a}),e("zrender/Layer",[Yr,"./core/util","./config"],function(t){function e(){return!1}function i(t,e,i,n){var r=document[Fr](e),a=i[yn](),o=i[gn](),s=r.style;return s[On]="absolute",s.left=0,s.top=0,s.width=a+"px",s[pr]=o+"px",r.width=a*n,r[pr]=o*n,r.setAttribute("data-zr-dom-id",t),r}var n=t("./core/util"),r=t("./config"),a=function(t,a,o){var s;o=o||r.devicePixelRatio,typeof t===Nr?s=i(t,Zr,a,o):n[Tn](t)&&(s=t,t=s.id),this.id=t,this.dom=s;var l=s.style;l&&(s.onselectstart=e,l["-webkit-user-select"]="none",l["user-select"]="none",l["-webkit-touch-callout"]="none",l["-webkit-tap-highlight-color"]="rgba(0,0,0,0)"),this.domBack=null,this.ctxBack=null,this[be]=a,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=o};return a[Xr]={constructor:a,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom[Gr]("2d");var t=this.dpr;1!=t&&this.ctx.scale(t,t)},createBackBuffer:function(){var t=this.dpr;this.domBack=i("back-"+this.id,Zr,this[be],t),this.ctxBack=this.domBack[Gr]("2d"),1!=t&&this.ctxBack.scale(t,t)},resize:function(t,e){var i=this.dpr,n=this.dom,r=n.style,a=this.domBack;r.width=t+"px",r[pr]=e+"px",n.width=t*i,n[pr]=e*i,1!=i&&this.ctx.scale(i,i),a&&(a.width=t*i,a[pr]=e*i,1!=i&&this.ctxBack.scale(i,i))},clear:function(t){var e=this.dom,i=this.ctx,n=e.width,r=e[pr],a=this.clearColor,o=this.motionBlur&&!t,s=this.lastFrameAlpha,l=this.dpr;if(o&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,n/l,r/l)),i.clearRect(0,0,n/l,r/l),a&&(i.save(),i.fillStyle=this.clearColor,i.fillRect(0,0,n/l,r/l),i[ei]()),o){var c=this.domBack;i.save(),i.globalAlpha=s,i.drawImage(c,0,0,n/l,r/l),i[ei]()}}},a}),e("zrender/Painter",[Yr,"./config","./core/util","./core/log","./core/BoundingRect","./Layer","./graphic/Image"],function(t){function e(t){return parseInt(t,10)}function i(t){return t?t.isBuildin?!0:typeof t[ge]!==Rr||typeof t[Li]!==Rr?!1:!0:!1}function n(t){t.__unusedCount++}function r(t){t[ki]=!1,1==t.__unusedCount&&t.clear()}function a(t,e,i){return f.copy(t[Qn]()),t[Wi]&&f[vr](t[Wi]),p.width=e,p[pr]=i,!f[me](p)}function o(t,e){if(!t||!e||t[Hr]!==e[Hr])return!0;for(var i=0;ip;p++){var m=t[p],g=this._singleCanvas?0:m[xe];if(l!==g&&(l=g,i=this.getLayer(l),i.isBuildin||u("ZLevel "+l+" has been used by unkown layer "+i.id),c=i.ctx,i.__unusedCount=0,(i[ki]||e)&&i.clear()),(i[ki]||e)&&!m[Mi]&&0!==m.style[Sr]&&m.scale[0]&&m.scale[1]&&(!m.culling||!a(m,h,d))){var y=m.__clipPaths;o(y,f)&&(f&&c[ei](),y&&(c.save(),s(y,c)),f=y),m.beforeBrush&&m.beforeBrush(c),m.brush(c,!1),m.afterBrush&&m.afterBrush(c)}m[ki]=!1}f&&c[ei](),this.eachBuildinLayer(r)},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||(e=new d("zr_"+t,this,this.dpr),e.isBuildin=!0,this._layerConfig[t]&&c.merge(e,this._layerConfig[t],!0),this.insertLayer(t,e),e.initContext()),e},insertLayer:function(t,e){var n=this._layers,r=this._zlevelList,a=r[Hr],o=null,s=-1,l=this._domRoot;if(n[t])return void u("ZLevel "+t+" has been used already");if(!i(e))return void u("Layer of zlevel "+t+" is not valid");if(a>0&&t>r[0]){for(s=0;a-1>s&&!(r[s]t);s++);o=n[r[s]]}if(r[_n](s+1,0,t),o){var c=o.dom;c.nextSibling?l.insertBefore(e.dom,c.nextSibling):l[pe](e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l[pe](e.dom);n[t]=e},eachLayer:function(t,e){var i,n,r=this._zlevelList;for(n=0;nn;n++){var a=t[n],o=this._singleCanvas?0:a[xe],s=e[o];if(s){if(s.elCount++,s[ki])continue;s[ki]=a[ki]}}this.eachBuildinLayer(function(t,e){i[e]!==t.elCount&&(t[ki]=!0)})},clear:function(){return this.eachBuildinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?c.merge(i[t],e,!0):i[t]=e;var n=this._layers[t];n&&c.merge(n,i[t],!0)}},delLayer:function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom[Se].removeChild(n.dom),delete e[t],i[_n](c[Br](i,t),1))},resize:function(t,e){var i=this._domRoot;if(i.style.display="none",t=t||this._getWidth(),e=e||this._getHeight(),i.style.display="",this._width!=t||e!=this._height){i.style.width=t+"px",i.style[pr]=e+"px";for(var n in this._layers)this._layers[n][ge](t,e);this[Li](!0)}return this._width=t,this._height=e,this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root[ve]="",this.root=this[Me]=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas)return this._layers[0].dom;var e=new d("image",this,t.pixelRatio||this.dpr);e.initContext();var i=e.ctx;e.clearColor=t[fe],e.clear();for(var n=this[Me][we](!0),r=0;rt;t++)this._add&&this._add(c[t]);else this._add&&this._add(c)}}},i}),e("echarts/data/List",[Yr,"../model/Model","./DataDiffer",jr,"../util/model"],function(t){function e(t){return c[kr](t)||(t=[t]),t}var i=xr,n=typeof window===xr?global:window,r=typeof n.Float64Array===i?Array:n.Float64Array,a=typeof n.Int32Array===i?Array:n.Int32Array,o={"float":r,"int":a,ordinal:Array,number:Array,time:Array},s=t("../model/Model"),l=t("./DataDiffer"),c=t(jr),u=t("../util/model"),h=c[Tn],d=["stackedOn","_nameList","_idList","_rawData"],f=function(t,e,i){c.each(d[Or](i||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})},p=function(t,e){t=t||["x","y"];for(var i={},n=[],r=0;r0&&(w+="__ec__"+d[b]),d[b]++),w&&(h[f]=w)}this._nameList=e,this._idList=h},v.count=function(){return this.indices[Hr]},v.get=function(t,e,i){var n=this._storage,r=this.indices[e],a=n[t]&&n[t][r],o=this._dimensionInfos[t];if(i&&o&&o.stackable)for(var s=this.stackedOn;s;){var l=s.get(t,e);(a>=0&&l>0||0>=a&&0>l)&&(a+=l),s=s.stackedOn}return a},v.getValues=function(t,e,i){var n=[];c[kr](t)||(i=e,e=t,t=this[Nt]);for(var r=0,a=t[Hr];a>r;r++)n.push(this.get(t[r],e,i));return n},v.hasValue=function(t){for(var e=this[Nt],i=this._dimensionInfos,n=0,r=e[Hr];r>n;n++)if(i[e[n]].type!==rn&&isNaN(this.get(e[n],t)))return!1;return!0},v[Ot]=function(t,e){var i=this._storage[t],n=this.getDimensionInfo(t);e=n&&n.stackable&&e;var r,a=(this._extent||(this._extent={}))[t+!!e];if(a)return a;if(i){for(var o=1/0,s=-(1/0),l=0,c=this.count();c>l;l++)r=this.get(t,l,e),o>r&&(o=r),r>s&&(s=r);return this._extent[t+e]=[o,s]}return[1/0,-(1/0)]},v[Rt]=function(t,e){var i=this._storage[t],n=0;if(i)for(var r=0,a=this.count();a>r;r++){var o=this.get(t,r,e);isNaN(o)||(n+=o)}return n},v[Br]=function(t,e){var i=this._storage,n=i[t],r=this.indices;if(n)for(var a=0,o=r[Hr];o>a;a++){var s=r[a];if(n[s]===e)return a}return-1},v[mi]=function(t){for(var e=this.indices,i=this._nameList,n=0,r=e[Hr];r>n;n++){var a=e[n];if(i[a]===t)return n}return-1},v.indexOfNearest=function(t,e,i){c[kr](t)||(t=t?[t]:[]);var n=this._storage,r=n[t];if(r){for(var a=Number[ri],o=-1,s=0,l=t[Hr];l>s;s++)for(var u=0,h=this.count();h>u;u++){var d=Math.abs(this.get(t[s],u,i)-e);a>=d&&(a=d,o=u)}return o}return-1},v[en]=function(t){var e=this.indices[t];return null==e?-1:e},v[tn]=function(t){return this._nameList[this.indices[t]]||""},v.getId=function(t){return this._idList[this.indices[t]]||this[en](t)+""},v.each=function(t,i,n,r){typeof t===Rr&&(r=n,n=i,i=t,t=[]),t=c.map(e(t),this.getDimension,this);var a=[],o=t[Hr],s=this.indices;r=r||this;for(var l=0;lu;u++)a[u]=this.get(t[u],l,n);a[u]=l,i.apply(r,a)}},v[Vt]=function(t,i,n,r){typeof t===Rr&&(r=n,n=i,i=t,t=[]),t=c.map(e(t),this.getDimension,this);var a=[],o=[],s=t[Hr],l=this.indices;r=r||this;for(var u=0;ud;d++)o[d]=this.get(t[d],u,n);o[d]=u,h=i.apply(r,o)}h&&a.push(l[u])}return this.indices=a,this._extent={},this},v[zt]=function(t,e,i,n){typeof t===Rr&&(n=i,i=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i,n),r},v.map=function(t,i,n,r){t=c.map(e(t),this.getDimension,this);var a=this[Nt],o=new p(c.map(a,this.getDimensionInfo,this),this[Xt]),s=o.indices=this.indices;f(o,this,this._wrappedMethods);for(var l=o._storage={},u=this._storage,h=0;h=0?l[d]=new v.constructor(u[d][Hr]):l[d]=u[d]}var m=[];return this.each(t,function(){var e=arguments[arguments[Hr]-1],n=i&&i.apply(this,arguments);if(null!=n){typeof n===Er&&(m[0]=n,n=m);for(var r=0;rl;l++)if(!t[l]){var c=a[l]||"extra"+(l-a[Hr]);t[l]=i(e,l)?{type:"ordinal",name:c}:c}return t}function i(t,e){for(var i=0,a=t[Hr];a>i;i++){var o=n(t[i]);if(!r[kr](o))return!1;var o=o[e];if(null!=o&&isFinite(o))return!1;if(r[bn](o)&&"-"!==o)return!0}return!1}function n(t){return r[kr](t)?t:r[Tn](t)?t.value:t}var r=t(jr);return e}),e("echarts/chart/helper/createListFromArray",[Yr,Tt,Ct,jr,At],function(t){function e(t){for(var e=0;e1){i=[];for(var a=0;r>a;a++)i[a]=n[e[a][0]]}else i=n.slice(0)}}return i}var o=t(Tt),s=t(Ct),l=t(jr),c=t(At),u=c.getDataItemValue,h=c.converDataValue,d={cartesian2d:function(t,e,i){var n=i[pn]("xAxis",e.get("xAxisIndex")),a=i[pn]("yAxis",e.get("yAxisIndex")),o=n.get("type"),l=a.get("type"),c=l===Mt,u=o===Mt,h=[{name:"x",type:u?rn:"float",stackable:r(o)},{name:"y",type:c?rn:"float",stackable:r(l)}];return s(h,t,["x","y","z"]),{dimensions:h,categoryAxisModel:u?n:c?a:null}},polar:function(t,e,i){var n=e.get("polarIndex")||0,a=function(t){return t.get("polarIndex")===n},o=i[wn]({mainType:"angleAxis",filter:a})[0],l=i[wn]({mainType:"radiusAxis",filter:a})[0],c=l.get("type")===Mt,u=o.get("type")===Mt,h=[{name:"radius",type:c?rn:"float",stackable:r(l.get("type"))},{name:"angle",type:u?rn:"float",stackable:r(o.get("type"))}];return s(h,t,[fn,"angle","value"]),{dimensions:h,categoryAxisModel:u?o:c?l:null}},geo:function(t,e,i){return{dimensions:s([{name:"lng"},{name:"lat"}],t,["lng","lat","value"])}}};return n}),e("echarts/chart/line/LineSeries",[Yr,wt,_t],function(t){var e=t(wt),i=t(_t);return i[Pr]({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,i){return e(t.data,this,i)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,polarIndex:0,clipOverflow:!0,label:{normal:{position:"top"},emphasis:{position:"top"}},lineStyle:{normal:{width:2,type:"solid"}},symbol:"emptyCircle",symbolSize:4,showSymbol:!0,animationEasing:"linear"}})}),e("echarts/util/symbol",[Yr,"./graphic",mr],function(t){var e=t("./graphic"),i=t(mr),n=e[He]({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,a=e[pr]/2;t[li](i,n-a),t[si](i+r,n+a),t[si](i-r,n+a),t[ai]()}}),r=e[He]({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,a=e[pr]/2;t[li](i,n-a),t[si](i+r,n),t[si](i,n+a),t[si](i-r,n),t[ai]()}}),a=e[He]({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width/5*3,a=Math.max(r,e[pr]),o=r/2,s=o*o/(a-o),l=n-a+o+s,c=Math.asin(s/o),u=Math.cos(c)*o,h=Math.sin(c),d=Math.cos(c);t.arc(i,l,o,Math.PI-c,2*Math.PI+c);var f=.6*o,p=.7*o;t[oi](i+u-h*f,l+s+d*f,i,n-p,i,n),t[oi](i,n-p,i-u+h*f,l+s+d*f,i-u,l+s),t[ai]()}}),o=e[He]({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e[pr],n=e.width,r=e.x,a=e.y,o=n/3*2;t[li](r,a),t[si](r+o,a+i),t[si](r,a+i/4*3),t[si](r-o,a+i),t[si](r,a),t[ai]()}}),s={line:e.Line,rect:e.Rect,roundRect:e.Rect,square:e.Rect,circle:e[je],diamond:r,pin:a,arrow:o,triangle:n},l={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[pr]=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[pr]=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var a=Math.min(i,n);r.x=t,r.y=e,r.width=a,r[pr]=a},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[pr]=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[pr]=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[pr]=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[pr]=n}},c={};for(var u in s)c[u]=new s[u];var h=e[He]({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style,e=this.shape;"pin"===e.symbolType&&t[pi]===ar&&(t[pi]=["50%","40%"],t[fi]=or,t[di]=sr)},buildPath:function(t,e){var i=e.symbolType,n=c[i];"none"!==e.symbolType&&(n||(i="rect",n=c[i]),l[i](e.x,e.y,e.width,e[pr],n.shape),n[ii](t,n.shape))}}),d=function(t){if("image"!==this.type){var e=this.style,i=this.shape;i&&"line"===i.symbolType?e[Ar]=t:this.__isEmptyBrush?(e[Ar]=t,e.fill="#fff"):(e.fill&&(e.fill=t),e[Ar]&&(e[Ar]=t)),this.dirty()}},f={createSymbol:function(t,n,r,a,o,s){var l=0===t[Br]("empty");l&&(t=t[nr](5,1)[Bn]()+t[nr](6));var c;return c=0===t[Br]("image://")?new e.Image({style:{image:t.slice(8),x:n,y:r,width:a,height:o}}):0===t[Br]("path://")?e.makePath(t.slice(7),{},new i(n,r,a,o)):new h({shape:{symbolType:t,x:n,y:r,width:a,height:o}}),c.__isEmptyBrush=l,c[xt]=d,c[xt](s),c}};return f}),e("echarts/chart/helper/Symbol",[Yr,jr,yt,gt,mt],function(t){function e(t){return r[kr](t)||(t=[+t,+t]),t}function i(t,e){o.Group.call(this),this[vt](t,e)}function n(t,e){this[Fi].drift(t,e)}var r=t(jr),a=t(yt),o=t(gt),s=t(mt),l=i[Xr];l._createSymbol=function(t,i,r){this[wi]();var s=i[Xt],l=i[Lt](r,"color"),c=a[pt](t,-.5,-.5,1,1,l);c.attr({style:{strokeNoScale:!0},z2:100,scale:[0,0]}),c.drift=n;var u=e(i[Lt](r,ft));o[Pe](c,{scale:u},s),this._symbolType=t,this.add(c)},l.stopSymbolAnimation=function(t){this[Rn](0)[zi](t)},l.getScale=function(){return this[Rn](0).scale},l[$t]=function(){this[Rn](0)[xi](cn)},l[Yt]=function(){this[Rn](0)[xi](ln)},l.setZ=function(t,e){var i=this[Rn](0);i[xe]=t,i.z=e},l.setDraggable=function(t){var e=this[Rn](0);e[Ii]=t,e.cursor=t?"move":"pointer"},l[vt]=function(t,i){var n=t[Lt](i,dt)||ht,r=t[Xt],a=e(t[Lt](i,ft));if(n!==this._symbolType)this._createSymbol(n,t,i);else{var s=this[Rn](0);o[ze](s,{scale:a},r)}this._updateCommon(t,i,a),this._seriesModel=r};var c=[ne,ln],u=[ne,cn],h=["label",ln],d=["label",cn];return l._updateCommon=function(t,i,n){var a=this[Rn](0),l=t[Xt],f=t[Qi](i),p=f[er](c),v=t[Lt](i,"color"),m=f[er](u)[ut]();a[Ui]=f[Tr]("symbolRotate")*Math.PI/180||0;var g=f[Tr]("symbolOffset");if(g){var y=a[On];y[0]=s[Fn](g[0],n[0]),y[1]=s[Fn](g[1],n[1])}a[xt](v),r[Pr](a.style,p[ut](["color"]));var x=f[er](h),_=f[er](d),w=t[Nt][t[Nt][Hr]-1],b=l[ct](i,ln)||t.get(w,i),M=a.style;x.get("show")?(o[Oe](M,x,v),M.text=b):M.text="",_[Tr]("show")?(o[Oe](m,_,v),m.text=b):m.text="",o[Be](a,m);var S=e(t[Lt](i,ft));if(a.off(Ne).off(Ee).off(cn).off(ln),f[Tr]("hoverAnimation")){var A=function(){var t=S[1]/S[0];this[Ve]({scale:[Math.max(1.1*S[0],S[0]+3),Math.max(1.1*S[1],S[1]+3*t)]},400,"elasticOut")},C=function(){this[Ve]({scale:S},400,"elasticOut")};a.on(Ne,A).on(Ee,C).on(cn,A).on(ln,C)}},l.fadeOut=function(t){var e=this[Rn](0);e.style.text="",o[ze](e,{scale:[0,0]},this._seriesModel,t)},r[Ir](i,o.Group),i}),e("echarts/chart/helper/SymbolDraw",[Yr,gt,"./Symbol"],function(t){function e(t){this.group=new n.Group,this._symbolCtor=t||r}function i(t,e,i){var n=t[It](e);return n&&!isNaN(n[0])&&!isNaN(n[1])&&!(i&&i(e))&&"none"!==t[Lt](e,dt)}var n=t(gt),r=t("./Symbol"),a=e[Xr];return a[vt]=function(t,e){var r=this.group,a=t[Xt],o=this._data,s=this._symbolCtor;t.diff(o).add(function(n){var a=t[It](n);if(i(t,n,e)){var o=new s(t,n);o.attr(On,a),t[kt](n,o),r.add(o)}})[ye](function(l,c){var u=o[gi](c),h=t[It](l);return i(t,l,e)?(u?(u[vt](t,l),n[ze](u,{position:h},a)):(u=new s(t,l),u.attr(On,h)),r.add(u),void t[kt](l,u)):void r[Ti](u)})[Ti](function(t){var e=o[gi](t);e&&e.fadeOut(function(){r[Ti](e)})})[lt](),this._data=t},a[bi]=function(){var t=this._data;t&&t[vi](function(e,i){e.attr(On,t[It](i))})},a[Ti]=function(t){var e=this.group,i=this._data;i&&(t?i[vi](function(t){t.fadeOut(function(){e[Ti](t)})}):e[wi]())},e}),e("zrender/core/arrayDiff",[Yr],function(t){function e(t,e){return t===e}function i(t,e,i){var n={cmd:t,idx:e};return"="===t&&(n.idx1=i),n}function n(t,e,n,r){t.push(i(e,n,r))}function r(t,e,i,n,r,a,o,l){var c,u,h,d=i>n,f=r>a,p=s(n-i),v=s(a-r);for(u=0;p>=u;u++)for(h=0;v>=h;h++)if(0===u)l[h]=h;else if(0===h)c=l[h],l[h]=u;else{var m=t[d?i-u:u-1+i],g=e[f?r-h:h-1+r],y=c+(o(m,g)?0:2),x=l[h]+1,_=l[h-1]+1;c=l[h],l[h]=x>y?y:x,_f;f++)c(g,e[f+s])&&!y?(y=!0,n(p,"=",i,f+s)):n(p,"+",f+s);y||n(p,"-",i)}else if(1===m){var x=e[s],y=!1;for(d=0;v>d;d++)c(x,t[d+i])&&!y?(y=!0,n(p,"=",d+i,s)):n(p,"-",d+i);y||n(p,"+",s)}else{var _=(v/2|0)+i;r(t,e,i,_,s,l,c,u),r(t,e,o,_+1,l,s,c,h);var w,b=1/0,M=0;for(f=0;m>=f;f++)w=u[f]+h[m-f],b>w&&(b=w,M=f);M+=s,p=a(t,e,i,_,s,M,c,u,h);var S=a(t,e,_,o,M,l,c,u,h);for(d=0;dd;d++)n(p,"-",d+i);else for(f=0;m>f;f++)n(p,"+",f+s);return p}function o(t,i,r){r=r||e;var o,s,l=t[Hr],c=i[Hr],u=Math.min(l,c),h=[];for(o=0;u>o&&r(t[o],i[o]);o++)n(h,"=",o,o);for(s=0;u>s&&r(t[l-s-1],i[c-s-1]);s++);if(l-s>=o||c-s>=o){var d=a(t,i,o,l-s,o,c-s,r,[],[]);for(o=0;oo;o++)n(h,"=",l-s+o,c-s+o)}return h}var s=Math.abs;return o}),e("echarts/chart/line/lineAnimationDiff",[Yr,"zrender/core/arrayDiff"],function(t){function e(t){return t>=0?1:-1}function i(t,i,n){for(var r,a=t[st](),o=t[ot](a),s=a.onZero?0:o.scale[at]()[0],l=o.dim,c="x"===l||l===fn?1:0,u=i.stackedOn,h=i.get(l,n);u&&e(u.get(l,n))===e(h);){r=u;break}var d=[];return d[c]=i.get(a.dim,n),d[1-c]=r?r.get(l,n,!0):s,t[rt](d)}var n=t("zrender/core/arrayDiff");return function(t,e,r,a,o,s){for(var l=e[zt](e.getId),c=t[zt](t.getId),u=[],h=[],d=[],f=[],p=[],v=[],m=[],g=n(c,l),y=s[Nt],x=0;x_;_++){var w=e[x];if(x>=n||0>x||isNaN(w[0])||isNaN(w[1]))break;if(x===i)t[v>0?li:si](w[0],w[1]),u(d,w);else if(y>0){var b=x-v,M=x+v;v>0?(b=o(b,i),M=a(M,n-1)):(M=o(M,0),b=a(b,i));var S=e[b],A=e[M];(isNaN(A[0])||isNaN(A[1]))&&(A=w),r.sub(h,A,S),c(f,w,h,-y/2),s(d,d,g),l(d,d,m),s(f,f,g),l(f,f,m),t[oi](d[0],d[1],f[0],f[1],w[0],w[1]),c(d,w,h,y/2)}else t[si](w[0],w[1]);x+=v}return _}function i(t){for(var e=[1/0,1/0],i=[-(1/0),-(1/0)],n=0;ni[0]&&(i[0]=r[0]),r[1]>i[1]&&(i[1]=r[1])}return{min:e,max:i}}var n=t(ni),r=t(_r),a=Math.min,o=Math.max,s=r.min,l=r.max,c=r.scaleAndAdd,u=r.copy,h=[],d=[],f=[];return{Polyline:n[Pr]({type:"ec-polyline",shape:{points:[],smooth:0},style:{fill:null,stroke:"#000",smooth:0},buildPath:function(t,n){for(var r=n[Ye],a=0,o=r[Hr],s=i(r);o>a;)a+=e(t,r,a,o,o,1,s.min,s.max,n.smooth)+1}}),Polygon:n[Pr]({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0},buildPath:function(t,n){for(var r=n[Ye],a=n.stackedOnPoints,o=0,s=r[Hr],l=i(r),c=i(a);s>o;){var u=e(t,r,o,s,s,1,l.min,l.max,n.smooth);e(t,a,o+u-1,s,u,-1,c.min,c.max,n.stackedOnSmooth),o+=u+1,t[ai]()}}})}}),e("echarts/chart/line/LineView",[Yr,jr,nt,"../helper/Symbol","./lineAnimationDiff",gt,"./poly",it],function(t){function e(t,e){if(t[Hr]===e[Hr]){for(var i=0;ie[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function r(t){return t>=0?1:-1}function a(t,e){var i=t[st](),n=t[ot](i),a=i.onZero?0:n.scale[at]()[0],o=n.dim,s="x"===o||o===fn?1:0;return e[zt]([o],function(n,l){for(var c,u=e.stackedOn;u&&r(u.get(o,l))===r(n);){c=u;break}var h=[];return h[s]=e.get(i.dim,l),h[1-s]=c?c.get(o,l,!0):a,t[rt](h)},!0)}function o(t,e){return null!=e[yi]?e[yi]:null!=e.name?t[mi](e.name):void 0}function s(t,e,i){var r=n(t[Q]("x")),a=n(t[Q]("y")),o=t[st]().isHorizontal(),s=r[0],l=a[0],c=r[1]-s,u=a[1]-l;i.get("clipOverflow")||(o?(l-=u,u*=3):(s-=c,c*=3));var h=new p.Rect({shape:{x:s,y:l,width:c,height:u}});return e&&(h.shape[o?"width":pr]=0,p[Pe](h,{shape:{width:c,height:u}},i)),h}function l(t,e,i){var n=t.getAngleAxis(),r=t.getRadiusAxis(),a=r[at](),o=n[at](),s=Math.PI/180,l=new p[Ue]({shape:{cx:t.cx,cy:t.cy,r0:a[0],r:a[1],startAngle:-o[0]*s,endAngle:-o[1]*s,clockwise:n[J]}});return e&&(l.shape[Ke]=-o[0]*s,p[Pe](l,{shape:{endAngle:-o[1]*s}},i)),l}function c(t,e,i){return"polar"===t.type?l(t,e,i):s(t,e,i)}var u=t(jr),h=t(nt),d=t("../helper/Symbol"),f=t("./lineAnimationDiff"),p=t(gt),v=t("./poly"),m=t(it);return m[Pr]({type:"line",init:function(){var t=new p.Group,e=new h;this.group.add(e.group),this.group.add(t),this[K]=e,this._lineGroup=t},render:function(t,n,r){var o=t[St],s=this.group,l=t[an](),h=t[er]($),d=t[er]("areaStyle.normal"),f=l[zt](l[It],!0),p="polar"===o.type,v=this._coordSys,m=this[K],g=this._polyline,y=this._polygon,x=this._lineGroup,_=t.get(Ri),w=!d.isEmpty(),b=a(o,l),M=t.get("showSymbol"),S=M&&!p&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(l,o),A=this._data;A&&A[vi](function(t,e){t.__temp&&(s[Ti](t),A[kt](e,null))}),M||m[Ti](),g&&v.type===o.type?(_&&x.setClipPath(c(o,!1,t)),M&&m[vt](l,S),l[vi](function(t){t[zi](!0)}),e(this._stackedOnPoints,b)&&e(this._points,f)||(_?this._updateAnimation(l,b,o,r):(g[ti]({points:f}),y&&y[ti]({points:f,stackedOnPoints:b}))),s.add(x)):(M&&m[vt](l,S),g=this._newPolyline(s,f,o,_),w&&(y=this._newPolygon(s,f,b,o,_)),x.setClipPath(c(o,!0,t))),g[Ze](u[rr](h[Y](),{stroke:l[Pt]("color"),lineJoin:"bevel"}));var C=t.get("smooth");if(C=i(t.get("smooth")),g.shape.smooth=C,y){var T=y.shape,k=l.stackedOn,L=0;if(y.style[Sr]=.7,y[Ze](u[rr](d.getAreaStyle(),{fill:l[Pt]("color"),lineJoin:"bevel"})),T.smooth=C,k){var D=k[Xt];L=i(D.get("smooth"))}T.stackedOnSmooth=L}this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=f},highlight:function(t,e,i,n){var r=t[an](),a=o(r,n);if(null!=a&&a>=0){var s=r[gi](a);if(!s){var l=r[It](a);s=new d(r,a,i),s[On]=l,s.setZ(t.get(xe),t.get("z")),s[Di]=isNaN(l[0])||isNaN(l[1]),s.__temp=!0,r[kt](a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s[$t]()}else m[Xr][$t].call(this,t,e,i,n)},downplay:function(t,e,i,n){var r=t[an](),a=o(r,n);if(null!=a&&a>=0){var s=r[gi](a);s&&(s.__temp?(r[kt](a,null),this.group[Ti](s)):s[Yt]())}else m[Xr][Yt].call(this,t,e,i,n)},_newPolyline:function(t,e){var i=this._polyline;return i&&t[Ti](i),i=new v[We]({shape:{points:e},silent:!0,z2:10}),this._lineGroup.add(i),this._polyline=i,i},_newPolygon:function(t,e,i){var n=this._polygon;return n&&t[Ti](n),n=new v[qe]({shape:{points:e,stackedOnPoints:i},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_getSymbolIgnoreFunc:function(t,e){var i=e.getAxesByScale(rn)[0];return i&&i.isLabelIgnored?u.bind(i.isLabelIgnored,i):void 0},_updateAnimation:function(t,e,i,n){var r=this._polyline,a=this._polygon,o=t[Xt],s=f(this._data,t,this._stackedOnPoints,e,this._coordSys,i);r.shape[Ye]=s.current,p[ze](r,{shape:{points:s.next}},o),a&&(a[ti]({points:s.current,stackedOnPoints:s.stackedOnCurrent}),p[ze](a,{shape:{points:s.next,stackedOnPoints:s.stackedOnNext}},o));for(var l=[],c=s.status,u=0;u=e[0]&&t<=e[1]},n.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},n.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},n[q]=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},n[at]=function(){return this._extent.slice()},n[W]=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},n.getTicksLabels=function(){for(var t=[],e=this[H](),i=0;ie[1]&&(e[1]=t[1]),o[Xr][W].call(this,e[0],e[1])},getInterval:function(){return this._interval||this.niceTicks(),this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice()},getTicks:function(){this._interval||this.niceTicks();var t=this._interval,i=this._extent,n=[],r=1e4;if(t){var a=this._niceExtent;i[0]r)return[];i[1]>a[1]&&n.push(i[1])}return n},getTicksLabels:function(){for(var t=[],e=this[H](),i=0;i=n)){var o=Math.pow(10,Math.floor(Math.log(n/t)/Math.LN10)),s=t/n*o;.15>=s?o*=10:.3>=s?o*=5:.5>=s?o*=3:.75>=s&&(o*=2);var l=[e.round(a(i[0]/o)*o),e.round(r(i[1]/o)*o)];this._interval=o,this._niceExtent=l}},niceExtent:function(t,i,n){var o=this._extent;if(o[0]===o[1])if(0!==o[0]){var s=o[0]/2;o[0]-=s,o[1]+=s}else o[1]=1;o[1]===-(1/0)&&o[0]===1/0&&(o[0]=0,o[1]=1),this.niceTicks(t,i,n);var l=this._interval;i||(o[0]=e.round(r(o[0]/l)*l)),n||(o[1]=e.round(a(o[1]/l)*l))}});return o[fr]=function(){return new o},o}),e("echarts/scale/Time",[Yr,jr,"../util/number","./Interval"],function(t){var e=t(jr),i=t("../util/number"),n=t("./Interval"),r=n[Xr],a=Math.ceil,o=Math.floor,s=864e5,l=function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][2]t?"0"+t:t},u=function(t,e){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var n=i.parseDate(e),r=n.getFullYear(),a=n.getMonth()+1,o=n.getDate(),s=n.getHours(),l=n.getMinutes(),u=n.getSeconds();return t=t[Wn]("MM",c(a))[Bn]()[Wn]("yyyy",r)[Wn]("yy",r%100)[Wn]("dd",c(o))[Wn]("d",o)[Wn]("hh",c(s))[Wn]("h",s)[Wn]("mm",c(l))[Wn]("m",l)[Wn]("ss",c(u))[Wn]("s",u)},h=n[Pr]({type:"time",getLabel:function(t){var e=this._stepLvl,i=new Date(t);return u(e[0],i)},niceExtent:function(t,e,n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=s,r[1]+=s),r[1]===-(1/0)&&r[0]===1/0){var l=new Date;r[1]=new Date(l.getFullYear(),l.getMonth(),l.getDate()),r[0]=r[1]-s}this.niceTicks(t,e,n);var c=this._interval;e||(r[0]=i.round(o(r[0]/c)*c)),n||(r[1]=i.round(a(r[1]/c)*c))},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0],n=i/t,r=d[Hr],s=l(d,n,0,r),c=d[Math.min(s,r-1)],u=c[2],h=[a(e[0]/u)*u,o(e[1]/u)*u];this._stepLvl=c,this._interval=u,this._niceExtent=h}});e.each([hi,"normalize"],function(t){h[Xr][t]=function(e){return e=+i.parseDate(e),r[t].call(this,e)}});var d=[["hh:mm:ss",1,1e3],["hh:mm:ss",5,5e3],["hh:mm:ss",10,1e4],["hh:mm:ss",15,15e3],["hh:mm:ss",30,3e4],["hh:mm\nMM-dd",1,6e4],["hh:mm\nMM-dd",5,3e5],["hh:mm\nMM-dd",10,6e5],["hh:mm\nMM-dd",15,9e5],["hh:mm\nMM-dd",30,18e5],["hh:mm\nMM-dd",1,36e5],["hh:mm\nMM-dd",2,72e5],["hh:mm\nMM-dd",6,216e5],["hh:mm\nMM-dd",12,432e5],["MM-dd\nyyyy",1,s],["week",7,7*s],["month",1,31*s],["quarter",3,380*s/4],["half-year",6,380*s/2],["year",1,380*s]];return h[fr]=function(){return new h},h}),e("echarts/scale/Log",[Yr,jr,"./Scale","../util/number","./Interval"],function(t){var e=t(jr),i=t("./Scale"),n=t("../util/number"),r=t("./Interval"),a=i[Xr],o=r[Xr],s=Math.floor,l=Math.ceil,c=Math.pow,u=10,h=Math.log,d=i[Pr]({type:"log",getTicks:function(){return e.map(o[H].call(this),function(t){return n.round(c(u,t))})},getLabel:o[F],scale:function(t){return t=a.scale.call(this,t),c(u,t)},setExtent:function(t,e){t=h(t)/h(u),e=h(e)/h(u),o[W].call(this,t,e)},getExtent:function(){var t=a[at].call(this);return t[0]=c(u,t[0]),t[1]=c(u,t[1]),t},unionExtent:function(t){t[0]=h(t[0])/h(u),t[1]=h(t[1])/h(u),a[q].call(this,t)},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(i===1/0||0>=i)){var r=c(10,s(h(i/t)/Math.LN10)),a=t/i*r;.5>=a&&(r*=10);var o=[n.round(l(e[0]/r)*r),n.round(s(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},niceExtent:o.niceExtent});return e.each([hi,"normalize"],function(t){d[Xr][t]=function(e){return e=h(e)/h(u),a[t].call(this,e)}}),d[fr]=function(){return new d},d}),e("echarts/coord/axisHelper",[Yr,"../scale/Ordinal","../scale/Interval","../scale/Time","../scale/Log","../scale/Scale","../util/number",jr,hr],function(t){var e=t("../scale/Ordinal"),i=t("../scale/Interval");t("../scale/Time"),t("../scale/Log");var n=t("../scale/Scale"),r=t("../util/number"),a=t(jr),o=t(hr),s={};return s[Z]=function(t,e){var i=t.scale;if(i.type!==rn){var n=e.get("min"),o=e.get("max"),s=e.get(G);a[kr](s)||(s=[s||0,s||0]),s[0]=r[Fn](s[0],1),s[1]=r[Fn](s[1],1);var l=i[at](),c=l[1]-l[0],u=!0,h=!0;null==n&&(n=l[0]-s[0]*c,u=!1),null==o&&(o=l[1]+s[1]*c,h=!1),"dataMin"===n&&(n=l[0]),"dataMax"===o&&(o=l[1]),i[W](n,o),i.niceExtent(e.get(B),u,h);var d=e.get(N);null!=d&&i.setInterval&&i.setInterval(d)}},s[E]=function(t,r){if(r=r||t.get("type"))switch(r){case Mt:return new e(t[bt](),[1/0,-(1/0)]);case"value":return new i;default:return(n[Lr](r)||i)[fr](t)}},s.ifAxisCrossZero=function(t){var e=t.scale[at](),i=e[0],n=e[1],r=t.model.get("min"),a=t.model.get("max");return isNaN(r)||(i=Math.min(r,i)),isNaN(a)||(n=Math.max(a,n)),!(i>0&&n>0||0>i&&0>n)||s.ifAxisNeedsCrossZero(t)},s.ifAxisNeedsCrossZero=function(t){return!t.model.get("scale")},s.getAxisLabelInterval=function(t,e,i,n){for(var r,a=0,s=0,l=0;l=i&&n>=t},containData:function(t){return this[hi](this[R](t))},getExtent:function(){var t=this._extent.slice();return t},getPixelPrecision:function(t){return i[Gn](t||this.scale[at](),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,i){t=this.scale.normalize(t);var r=this[at](),a=this.scale;return this[et]&&a.type===rn&&e(r,a.count()),n(t,[0,1],r,i)},coordToData:function(t,i){var r=this[at]();this[et]&&e(r,this.scale.count());var a=n(t,r,[0,1],i);return this.scale.scale(a)},getTicksCoords:function(){if(this[et]){for(var t=this.getBands(),e=[],i=0;io;o++)e.push([a*o/i+n,a*(o+1)/i+n]);return e},getBandWidth:function(){var t=this._extent,e=this.scale[at](),i=e[1]-e[0]+(this[et]?1:0),n=Math.abs(t[1]-t[0]);return Math.abs(n)/i}},a}),e("echarts/coord/cartesian/axisLabelInterval",[Yr,jr,"../axisHelper"],function(t){var e=t(jr),i=t("../axisHelper");return function(t){var n=t.model,r=n[er](z),a=r.get(N);return t.type!==Mt||"auto"!==a?"auto"===a?0:a:i.getAxisLabelInterval(e.map(t.scale[H](),t[R],t),n[O](),r[er](tr)[Jn](),t.isHorizontal())}}),e("echarts/coord/cartesian/Axis2D",[Yr,jr,"../Axis","./axisLabelInterval"],function(t){var e=t(jr),i=t("../Axis"),n=t("./axisLabelInterval"),r=function(t,e,n,r,a){i.call(this,t,e,n),this.type=r||"value",this[On]=a||lr};return r[Xr]={constructor:r,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this[On];return"top"===t||t===lr},getGlobalExtent:function(){var t=this[at]();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),t},getLabelInterval:function(){var t=this._labelInterval;return t||(t=this._labelInterval=n(this)),t},isLabelIgnored:function(t){if(this.type===Mt){var e=this.getLabelInterval();return typeof e===Rr&&!e(t,this.scale[F](t))||t%(e+1)}},toLocalCoord:null,toGlobalCoord:null},e[Ir](r,i),r}),e("echarts/coord/axisDefault",[Yr,jr],function(t){var e=t(jr),i={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameTextStyle:{},nameGap:15,axisLine:{show:!0,onZero:!0,lineStyle:{color:"#333",width:1,type:"solid"}},axisTick:{show:!0,inside:!1,length:5,lineStyle:{color:"#333",width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{color:"#333",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)"]}}},n=e.merge({boundaryGap:!0,axisTick:{interval:"auto"},axisLabel:{interval:"auto"}},i),r=e[rr]({boundaryGap:[0,0],splitNumber:5},i),a=e[rr]({scale:!0,min:"dataMin",max:"dataMax"},r),o=e[rr]({},r);return o.scale=!0,{categoryAxis:n,valueAxis:r,timeAxis:a,logAxis:o}}),e("echarts/coord/axisModelCreator",[Yr,"./axisDefault",jr,"../model/Component"],function(t){var e=t("./axisDefault"),i=t(jr),n=t("../model/Component"),r=["value",Mt,"time","log"];return function(t,a,o,s){i.each(r,function(n){a[Pr]({type:t+"Axis."+n,mergeDefaultAndTheme:function(e,r){var a=r.getTheme();i.merge(e,a.get(n+"Axis")),i.merge(e,this.getDefaultOption()),e.type=o(t,e)},defaultOption:i.mergeAll([{},e[n+"Axis"],s],!0)})}),n[qn](t+"Axis",i.curry(o,t))}}),e("echarts/coord/axisModelCommonMixin",[Yr,jr,"./axisHelper"],function(t){function e(t){return r[Tn](t)&&null!=t.value?t.value:t}function i(){return this.get("type")===Mt&&r.map(this.get("data"),e)}function n(){return a[O](this.axis,this.get("axisLabel.formatter"))}var r=t(jr),a=t("./axisHelper");return{getFormattedLabels:n,getCategories:i}}),e("echarts/coord/cartesian/AxisModel",[Yr,P,jr,"../axisModelCreator","../axisModelCommonMixin"],function(t){function e(t,e){return e.type||(e.data?Mt:"value")}var i=t(P),n=t(jr),r=t("../axisModelCreator"),a=i[Pr]({type:"cartesian2dAxis",axis:null,setNeedsCrossZero:function(t){this[Un].scale=!t},setMin:function(t){this[Un].min=t},setMax:function(t){this[Un].max=t}});n.merge(a[Xr],t("../axisModelCommonMixin"));var o={gridIndex:0};return r("x",a,e,o),r("y",a,e,o),a}),e("echarts/coord/cartesian/GridModel",[Yr,"./AxisModel",P],function(t){t("./AxisModel");var e=t(P);return e[Pr]({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"}})}),e("echarts/coord/cartesian/Grid",[Yr,"exports","module",I,D,jr,"./Cartesian2D","./Axis2D","./GridModel","../../CoordinateSystem"],function(t,e){function i(t,e,i){return i[pn]("grid",t.get("gridIndex"))===e}function n(t){for(var e,i=t.model,n=i[O](),r=0;r0?1:-1,n=t[pr]>0?1:-1;e=Math.min(e,Math.abs(t.width),Math.abs(t[pr])),t.x+=i*e/2,t.y+=n*e/2,t.width-=i*e,t[pr]-=n*e}var i=t(jr),n=t(gt);return i[Pr](t(C)[Xr],t("./barItemStyle")),t(A)[Ft]({type:"bar",render:function(t,e,i){var n=t.get(St);return n===T&&this._renderOnCartesian(t,e,i),this.group},_renderOnCartesian:function(t,r,a){function o(r,a){var o=l[It](r),s=l[Qi](r).get(p)||0;e(o,s);var c=new n.Rect({shape:i[Pr]({},o)});if(f){var u=c.shape,h=d?pr:"width",v={};u[h]=0,v[h]=o[h],n[a?ze:Pe](c,{shape:v},t)}return c}var s=this.group,l=t[an](),c=this._data,u=t[St],h=u[st](),d=h.isHorizontal(),f=t.get(Ri),p=[ne,ln,"barBorderWidth"];l.diff(c).add(function(t){if(l.hasValue(t)){var e=o(t);l[kt](t,e),s.add(e)}})[ye](function(i,r){var a=c[gi](r);if(!l.hasValue(i))return void s[Ti](a);a||(a=o(i,!0));var u=l[It](i),h=l[Qi](i).get(p)||0;e(u,h),n[ze](a,{shape:u},t),l[kt](i,a),s.add(a)})[Ti](function(e){var i=c[gi](e);i&&(i.style.text="",n[ze](i,{shape:{width:0}},t,function(){s[Ti](i)}))})[lt](),this._updateStyle(t,l,d),this._data=l},_updateStyle:function(t,e,r){function a(t,e,i,r,a){n[Oe](t,e,i),t.text=r,"outside"===t[pi]&&(t[pi]=a)}e[vi](function(o,s){var l=e[Qi](s),c=l[er](S),u=e[Lt](s,"color"),h=e[It](s),d=l[er](M)[ut]();o[Ze](i[rr]({fill:u},l[er](b).getBarItemStyle()));var f=r?h[pr]>0?lr:"top":h.width>0?"left":"right",c=l[er](S),p=l[er](w),v=o.style;c.get("show")?a(v,c,u,t[ct](s,ln)||t[nn](s),f):v.text="",p.get("show")?a(d,p,u,t[ct](s,cn)||t[nn](s),f):d.text="",n[Be](o,d)})},remove:function(t,e){var i=this.group;t.get(Ri)?this._data&&this._data[vi](function(e){e.style.text="",n[ze](e,{shape:{width:0}},t,function(){i[Ti](e)})}):i[wi]()}})}),e("echarts/layout/barGrid",[Yr,jr,"../util/number"],function(t){function e(t){return t.get("stack")||"__ec_stack_"+t[on]}function i(t,i){var n={};r.each(t,function(t,i){var r=t[St],a=r[st](),o=n[a.index]||{remainedWidth:a[tt](),autoWidthCount:0,categoryGap:"20%",gap:"30%",axis:a,stacks:{}},s=o.stacks;n[a.index]=o;var l=e(t);s[l]||o.autoWidthCount++,s[l]=s[l]||{width:0,maxWidth:0};var c=t.get("barWidth"),u=t.get("barMaxWidth"),h=t.get("barGap"),d=t.get("barCategoryGap");c&&!s[l].width&&(c=Math.min(o.remainedWidth,c),s[l].width=c,o.remainedWidth-=c),u&&(s[l].maxWidth=u),null!=h&&(o.gap=h),null!=d&&(o.categoryGap=d)});var a={};return r.each(n,function(t,e){a[e]={};var i=t.stacks,n=t.axis,s=n[tt](),l=o(t.categoryGap,s),c=o(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,d=(u-l)/(h+(h-1)*c);d=Math.max(d,0),r.each(i,function(t,e){var i=t.maxWidth;!t.width&&i&&d>i&&(i=Math.min(i,u),u-=i,t.width=i,h--)}),d=(u-l)/(h+(h-1)*c),d=Math.max(d,0);var f,p=0;r.each(i,function(t,e){t.width||(t.width=d),f=t,p+=t.width*(1+c)}),f&&(p-=f.width*c);var v=-p/2;r.each(i,function(t,i){a[e][i]=a[e][i]||{offset:v,width:t.width},v+=t.width*(1+c)})}),a}function n(t,n,a){var o=i(r[Ur](n.getSeriesByType(t),function(t){return!n[le](t)&&t[St]&&t[St].type===T})),s={};n[oe](t,function(t){var i=t[an](),n=t[St],r=n[st](),a=e(t),l=o[r.index][a],c=l[Xe],u=l.width,h=n[ot](r),d=t.get("barMinHeight")||0,f=r.onZero?h.toGlobalCoord(h[R](0)):h.getGlobalExtent()[0],p=n.dataToPoints(i,!0);s[a]=s[a]||[],i.each(h.dim,function(t,e){if(!isNaN(t)){s[a][e]||(s[a][e]={p:f,n:f});var n,r,o,l,v=t>=0?"p":"n",m=p[e],g=s[a][e][v];h.isHorizontal()?(n=g,r=m[1]+c,o=m[0]-g,l=u,Math.abs(o)o?-1:1)*d),s[a][e][v]+=o):(n=m[0]+c,r=g,o=u,l=m[1]-g,Math.abs(l)=l?-1:1)*d),s[a][e][v]+=l),i[Dt](e,{x:n,y:r,width:o,height:l})}},!0)},this)}var r=t(jr),a=t("../util/number"),o=a[Fn];return n}),e("echarts/chart/bar",[Yr,jr,"../coord/cartesian/Grid","./bar/BarSeries","./bar/BarView","../layout/barGrid",X],function(t){var e=t(jr);t("../coord/cartesian/Grid"),t("./bar/BarSeries"),t("./bar/BarView");var i=t("../layout/barGrid"),n=t(X);n[Wt](e.curry(i,"bar")),n[Ht]("chart",function(t){t[oe]("bar",function(t){var e=t[an]();e[ce]("legendSymbol","roundRect")})})}),e("echarts/component/axis/AxisBuilder",[Yr,jr,gt,C,mt],function(t){function e(t,e,i){var n,r,a=s(e-t[Ui]);return l(a)?(r=i>0?"top":lr,n=or):l(a-c)?(r=i>0?lr:"top",n=or):(r=sr,n=a>0&&c>a?i>0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:n,textBaseline:r}}function i(t,e,i){var n,r,a=s(-t[Ui]),o=i[0]>i[1],u="start"===e&&!o||"start"!==e&&o;return l(a-c/2)?(r=u?lr:"top",n=or):l(a-1.5*c)?(r=u?"top":lr,n=or):(r=sr,n=1.5*c>a&&a>c/2?u?"left":"right":u?"right":"left"),{rotation:a,textAlign:n,textBaseline:r}}var n=t(jr),r=t(gt),a=t(C),o=t(mt),s=o.remRadian,l=o.isRadianAroundZero,c=Math.PI,u=function(t,e){this.opt=e,this.axisModel=t,n[rr](e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new r.Group({position:e[On].slice(),rotation:e[Ui]})};u[Xr]={constructor:u,hasBuilder:function(t){return!!h[t]},add:function(t){h[t].call(this)},getGroup:function(){return this.group}};var h={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis[at]();this.group.add(new r.Line({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:n[Pr]({lineCap:"round"},e[er]("axisLine.lineStyle")[Y]()),strokeContainThreshold:t.strokeContainThreshold,silent:!!t[_e],z2:1}))}},axisTick:function(){var t=this.axisModel;if(t.get("axisTick.show")){for(var e=t.axis,i=t[er](_),n=this.opt,a=i[er](re),o=i.get(Hr),s=f(i,n.labelInterval),l=e.getTicksCoords(),c=[],u=0;uh[1]?-1:1,f=["start"===s?h[0]-d*u:"end"===s?h[1]+d*u:(h[0]+h[1])/2,s===sr?t.labelOffset+l*u:0];o=s===sr?e(t,t[Ui],l):i(t,s,h),this.group.add(new r.Text({style:{text:a,textFont:c[Jn](),fill:c[Re]()||n.get("axisLine.lineStyle.color"),textAlign:o[fi],textBaseline:o[di]},position:f,rotation:o[Ui],silent:!0,z2:1}))}}},d=u.ifIgnoreOnTick=function(t,e,i){return t.scale.type===rn&&typeof i===Rr&&!i(e,t.scale[F](e))||e%(i+1)},f=u.getInterval=function(t,e){var i=t.get(N);return(null==i||"auto"==i)&&(i=e),i};return u}),e("echarts/component/axis/AxisView",[Yr,jr,gt,"./AxisBuilder",A],function(t){function e(t,e){function i(t,e){var i=n[Q](t);return i.toGlobalCoord(i[R](0))}var n=t[St],r=e.axis,a={},o=r[On],s=r.onZero?"onZero":o,l=r.dim,c=n[L](),u=[c.x,c.x+c.width,c.y,c.y+c[pr]],h={x:{top:u[2],bottom:u[3]},y:{left:u[0],right:u[1]}};h.x.onZero=Math.max(Math.min(i("y"),h.x[lr]),h.x.top),h.y.onZero=Math.max(Math.min(i("x"),h.y.right),h.y.left),a[On]=["y"===l?h.y[s]:u[0],"x"===l?h.x[s]:u[3]];var d={x:0,y:1};a[Ui]=Math.PI/2*d[l];var f={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=f[o],r.onZero&&(a.labelOffset=h[l][o]-h[l].onZero),e[er](_).get(ar)&&(a.tickDirection=-a.tickDirection),e[er](z).get(ar)&&(a.labelDirection=-a.labelDirection);var p=e[er](z).get(Bi);return a.labelRotation="top"===s?-p:p,a.labelInterval=r.getLabelInterval(),a.z2=1,a}var i=t(jr),n=t(gt),r=t("./AxisBuilder"),a=r.ifIgnoreOnTick,o=r.getInterval,s=[x,z,_,"axisName"],l=["splitLine","splitArea"],c=t(A)[Bt]({type:"axis",render:function(t,n){if(this.group[wi](),t.get("show")){var a=n[pn]("grid",t.get("gridIndex")),o=e(a,t),c=new r(t,o);i.each(s,c.add,c),this.group.add(c.getGroup()),i.each(l,function(e){t.get(e+".show")&&this["_"+e](t,a,o.labelInterval)},this)}},_splitLine:function(t,e,i){var r=t.axis,s=t[er]("splitLine"),l=s[er](re),c=l.get("width"),u=l.get("color"),h=o(s,i);u=u instanceof Array?u:[u];for(var d=e[St][L](),f=r.isHorizontal(),p=[],v=0,m=r.getTicksCoords(),g=[],y=[],x=0;x0){var p=s[It](0),v=Math.max(r[yn](),r[gn]())/2,m=o.bind(c.removeClipPath,c);c.setClipPath(this._createClipPath(p.cx,p.cy,v,p[Je],p[$e],m,t))}this._data=s}},_createClipPath:function(t,e,i,n,r,o,s){var l=new a[Ue]({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:r}});return a[Pe](l,{shape:{endAngle:n+(r?1:-1)*Math.PI*2}},s,o),l}});return l}),e("echarts/action/createDataSelectAction",[Yr,X,jr],function(t){var e=t(X),i=t(jr);return function(t,n){i.each(n,function(i){i[ye]="updateView",e[qt](i,function(e,n){var r={};return n[Kt]({mainType:"series",subType:t,query:e},function(t){t[i.method]&&t[i.method](e.name);var n=t[an]();n.each(function(e){var i=n[tn](e);r[i]=t.isSelected(i)||!1})}),{name:e.name,selected:r}})})}}),e("echarts/visual/dataColor",[Yr],function(t){return function(t,e){var i=e.get("color"),n=0;e.eachRawSeriesByType(t,function(t){var r=t.get("color",!0),a=t.getRawData();if(!e[le](t)){var o=t[an]();o.each(function(t){var e=o[Qi](t),s=o[en](t),l=o[Lt](t,"color",!0);if(l)a[se](s,"color",l);else{var c=r?r[s%r[Hr]]:i[(s+n)%i[Hr]],u=e.get(Qt)||c;a[se](s,"color",u),o[se](t,"color",u)}})}n+=a.count()})}}),e("echarts/chart/pie/labelLayout",[Yr,hr],function(t){function e(t,e,i,n,r,a,o){function s(e,i,n,r){for(var a=e;i>a;a++)if(t[a].y+=n,a>e&&i>a+1&&t[a+1].y>t[a].y+t[a][pr])return void l(a,n/2);l(i-1,n/2)}function l(e,i){for(var n=e;n>=0&&(t[n].y-=i,!(n>0&&t[n].y>t[n-1].y+t[n-1][pr]));n--);}t.sort(function(t,e){return t.y-e.y});for(var c,u=0,h=t[Hr],d=[],f=[],p=0;h>p;p++)c=t[p].y-u,0>c&&s(p,h,-c,r),u=t[p].y+t[p][pr];0>o-u&&l(h-1,u-o);for(var p=0;h>p;p++)t[p].y>=i?f.push(t[p]):d.push(t[p])}function i(t,i,n,r,a,o){for(var s=[],l=[],c=0;cw?-1:1)*x,D=k;r=L+(0>w?-5:5),a=D,h=[[A,C],[T,k],[L,D]]}d=M?or:w>0?"left":"right"}var I=sr,P=v[er](tr)[Jn](),z=v.get(Bi)?0>w?-_+Math.PI:-_:0,V=t[ct](i,ln)||l[tn](i),R=n[Qn](V,P,d,I);u=!!z,f.label={x:r,y:a,height:R[pr],length:y,length2:x,linePoints:h,textAlign:d,textBaseline:I,font:P,rotation:z},c.push(f.label)}),!u&&t.get("avoidLabelOverlap")&&i(c,o,s,e,r,a)}}),e("echarts/chart/pie/pieLayout",[Yr,mt,"./labelLayout",jr],function(t){var e=t(mt),i=e[Fn],n=t("./labelLayout"),r=t(jr),a=2*Math.PI,o=Math.PI/180;return function(t,s,l){s[oe](t,function(t){var s=t.get(or),c=t.get(fn);r[kr](c)||(c=[0,c]),r[kr](s)||(s=[s,s]);var u=l[yn](),h=l[gn](),d=Math.min(u,h),f=i(s[0],u),p=i(s[1],h),v=i(c[0],d/2),m=i(c[1],d/2),g=t[an](),y=-t.get(Je)*o,x=t.get("minAngle")*o,_=g[Rt]("value"),w=Math.PI/(_||g.count())*2,b=t.get($e),M=t.get("roseType"),S=g[Ot]("value");S[0]=0;var A=a,C=0,T=y,k=b?1:-1;if(g.each("value",function(t,i){var n;n="area"!==M?0===_?w:t*w:a/(g.count()||1),x>n?(n=x,A-=x):C+=t;var r=T+k*n;g[Dt](i,{angle:n,startAngle:T,endAngle:r,clockwise:b,cx:f,cy:p,r0:v,r:M?e[Hn](t,S,[v,m]):m}),T=r},!0),a>A)if(.001>=A){var L=a/g.count();g.each(function(t){var e=g[It](t);e[Je]=y+k*t*L,e[Ke]=y+k*(t+1)*L})}else w=A/C,T=y,g.each("value",function(t,e){var i=g[It](e),n=i.angle===x?x:t*w;i[Je]=T,i[Ke]=T+k*n,T+=n});n(t,m,u,h)})}}),e("echarts/processor/dataFilter",[],function(){return function(t,e){var i=e[wn]({mainType:"legend"});i&&i[Hr]&&e[oe](t,function(t){var e=t[an]();e[Vt](function(t){for(var n=e[tn](t),r=0;rt.get("largeThreshold")?r:a;this[K]=s,s[vt](n),o.add(s.group),o[Ti](s===r?a.group:r.group)},updateLayout:function(){this[K][bi]()},remove:function(t,e){this[K]&&this[K][Ti](e,!0)}})}),e("echarts/chart/scatter",[Yr,jr,X,"./scatter/ScatterSeries","./scatter/ScatterView",j,U],function(t){var e=t(jr),i=t(X);t("./scatter/ScatterSeries"),t("./scatter/ScatterView"),i[Ht]("chart",e.curry(t(j),te,ht,null)),i[Wt](e.curry(t(U),te))}),e("echarts/component/tooltip/TooltipModel",[Yr,A],function(t){t(A)[Zt]({type:"tooltip",defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove",alwaysShowContent:!1,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,axisPointer:{type:"line",axis:"auto",animation:!0,animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",lineStyle:{color:"#555",width:1,type:"solid"},crossStyle:{color:"#555",width:1,type:"dashed",textStyle:{}},shadowStyle:{color:"rgba(150,150,150,0.3)"}},textStyle:{color:"#fff",fontSize:14}}})}),e("echarts/component/tooltip/TooltipContent",[Yr,jr,Oi,De,v],function(t){function e(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+t+"s "+e+",top "+t+"s "+e;return o.map(d,function(t){return t+"transition:"+i}).join(";")}function i(t){var e=[],i=t.get("fontSize"),n=t[Re]();return n&&e.push("color:"+n),e.push("font:"+t[Jn]()),i&&e.push("line-height:"+Math.round(3*i/2)+"px"),u(["decoration","align"],function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}function n(t){t=t;var n=[],r=t.get("transitionDuration"),a=t.get(fe),o=t[er](tr),l=t.get(p);return r&&n.push(e(r)),a&&(n.push("background-Color:"+s.toHex(a)),n.push("filter:alpha(opacity=70)"),n.push("background-Color:"+a)),u(["width","color",fn],function(e){var i="border-"+e,r=h(i),a=t.get(r);null!=a&&n.push(i+":"+a+("color"===e?"":"px"))}),n.push(i(o)),null!=l&&n.push("padding:"+c[Pn](l).join("px ")+"px"),n.join(";")+";"}function r(t,e){var i=document[Fr]("div"),n=e.getZr();this.el=i,this._x=e[yn]()/2,this._y=e[gn]()/2,t[pe](i),this._container=t,this._show=!1,this._hideTimeout;var r=this;i.onmouseenter=function(){r.enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},i.onmousemove=function(e){if(!r.enterable){var i=n.handler;l.normalizeEvent(t,e),i.dispatch(ke,e)}},i.onmouseleave=function(){r.enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1},a(i,t)}function a(t,e){function i(t){n(t[Ei])&&t.preventDefault()}function n(i){for(;i&&i!==e;){if(i===t)return!0;i=i[Se]}}l.addEventListener(e,"touchstart",i),l.addEventListener(e,"touchmove",i),l.addEventListener(e,"touchend",i)}var o=t(jr),s=t(Oi),l=t(De),c=t(v),u=o.each,h=c.toCamelCase,d=["","-webkit-","-moz-","-o-"],f="position:absolute;display:block;border-style:solid;white-space:nowrap;";return r[Xr]={constructor:r,enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;"absolute"!==i[On]&&"absolute"!==e[On]&&(i[On]="relative"),this.hide()},show:function(t){clearTimeout(this._hideTimeout),this.el.style.cssText=f+n(t)+";left:"+this._x+"px;top:"+this._y+"px;",this._show=!0},setContent:function(t){var e=this.el;e[ve]=t,e.style.display=t?"block":"none"},moveTo:function(t,e){var i=this.el.style;i.left=t+"px",i.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this.enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(o.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}},r}),e("echarts/component/tooltip/TooltipView",[Yr,"./TooltipContent",gt,jr,v,mt,A],function(t){function e(t,e){if(!t||!e)return!1;var i=p.round;return i(t[0])===i(e[0])&&i(t[1])===i(e[1])}function i(t,e,i,n){return{x1:t,y1:e,x2:i,y2:n}}function n(t,e,i,n){return{x:t,y:e,width:i,height:n}}function r(t,e,i,n,r,a){return{cx:t,cy:e,r0:i,r:n,startAngle:r,endAngle:a,clockwise:!0}}function a(t,e,i,n,r){var a=i.clientWidth,o=i[de],s=20;return t+a+s>n?t-=a+s:t+=s,e+o+s>r?e-=o+s:e+=s,[t,e]}function o(t,e,i){var n=i.clientWidth,r=i[de],a=5,o=0,s=0,l=e.width,c=e[pr];switch(t){case ar:o=e.x+l/2-n/2,s=e.y+c/2-r/2;break;case"top":o=e.x+l/2-n/2,s=e.y-r-a;break;case lr:o=e.x+l/2-n/2,s=e.y+c+a;break;case"left":o=e.x-n-a,s=e.y+c/2-r/2;break;case"right":o=e.x+l+a,s=e.y+c/2-r/2}return[o,s]}function s(t,e,i,n,r,s,l){var c=l[yn](),u=l[gn](),d=s&&s[Qn]().clone();if(s&&d[vr](s[Wi]),typeof t===Rr&&(t=t([e,i],r,d)),h[kr](t))e=m(t[0],c),i=m(t[1],u);else if(typeof t===Nr&&s){var f=o(t,d,n.el);e=f[0],i=f[1]}else{var f=a(e,i,n.el,c,u);e=f[0],i=f[1]}n[li](e,i)}function l(t){var e=t[St],i=t.get("tooltip.trigger",!0);return!(!e||e.type!==T&&"polar"!==e.type||"item"===i)}var c=t("./TooltipContent"),u=t(gt),h=t(jr),d=t(v),p=t(mt),m=p[Fn];t(A)[Bt]({type:"tooltip",_axisPointers:{},init:function(t,e){var i=new c(e[xn](),e);this._tooltipContent=i,e.on("showTip",this._manuallyShowTip,this),e.on("hideTip",this._hide,this)},render:function(t,e,i){this.group[wi](),this._axisPointers={},this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastHover={};var n=this._tooltipContent;n[ye](),n.enterable=t.get("enterable"),this._alwaysShowContent=t.get("alwaysShowContent"),this._seriesGroupByAxis=this._prepareAxisTriggerData(t,e);var r=this._crossText;r&&this.group.add(r);var a=this._api.getZr(),o=this._tryShow;a.off("click",o),a.off(ke,o),a.off(Ee,this._hide),"click"===t.get("triggerOn")?a.on("click",o,this):(a.on(ke,o,this),a.on(Ee,this._hide,this))},_manuallyShowTip:function(t){if(t.from!==this.uid){var e=this._ecModel,i=t[on],n=t[yi],r=e.getSeriesByIndex(i),a=this._api;if(null==t.x||null==t.y){if(r||e[ae](function(t){l(t)&&!r&&(r=t)}),r){var o=r[an]();null==n&&(n=o[mi](t.name));var s=o[gi](n);if(s){var c=s[Qn]().clone();c[vr](s[Wi]);var u=c.x+c.width/2,h=c.y+c[pr]/2;this._tryShow({offsetX:u,offsetY:h,target:s,event:{}})}}}else a.getZr().handler.dispatch(ke,{zrX:t.x,zrY:t.y})}},_prepareAxisTriggerData:function(t,e){var i={};return e[ae](function(t){if(l(t)){var e,n,r=t[St];r.type===T?(e=r[st](),n=e.dim+e.index):(e=r[st](),n=e.dim+r.name),i[n]=i[n]||{coordSys:[],series:[]},i[n].coordSys.push(r),i[n][Mn].push(t)}},this),i},_tryShow:function(t){var e=t[Ei],i=this._tooltipModel,n=i.get(xi),r=this._ecModel,a=this._api;if(i)if(e&&null!=e[yi]){var o=e[Xt]||r.getSeriesByIndex(e[on]),s=e[yi],l=o[an]()[Qi](s);"axis"===(l.get("tooltip.trigger")||n)?this._showAxisTooltip(i,r,t):(this._ticket="",this._hideAxisPointer(),this._resetLastHover(),this._showItemTooltipContent(o,s,t)),a[mn]({type:"showTip",from:this.uid,dataIndex:e[yi],seriesIndex:e[on]})}else"item"===n?this._hide():this._showAxisTooltip(i,r,t),a[mn]({type:"showTip",from:this.uid,x:t[Ce],y:t[Ae]})},_showAxisTooltip:function(t,i,n){var r=t[er]("axisPointer"),a=r.get("type");if("cross"===a){var o=n[Ei];if(o&&null!=o[yi]){var s=i.getSeriesByIndex(o[on]),l=o[yi];this._showItemTooltipContent(s,l,n)}}this._showAxisPointer();var c=!0;h.each(this._seriesGroupByAxis,function(t){var i=t.coordSys,o=i[0],s=[n[Ce],n[Ae]];if(!o.containPoint(s))return void this._hideAxisPointer(o.name);c=!1;var l=o[Nt],u=o.pointToData(s,!0);s=o[rt](u);var d=o[st](),f=r.get("axis");"auto"===f&&(f=d.dim);var p=!1,v=this._lastHover;if("cross"===a)e(v.data,u)&&(p=!0),v.data=u;else{var m=h[Br](l,f);v.data===u[m]&&(p=!0),v.data=u[m]}o.type!==T||p?"polar"!==o.type||p||this._showPolarPointer(r,o,f,s):this._showCartesianPointer(r,o,f,s),"cross"!==a&&this._showSeriesTooltipContent(o,t[Mn],s,u,p)},this),c&&this._hide()},_showCartesianPointer:function(t,e,r,a){function o(n,r,a){var o="x"===n?i(r[0],a[0],r[0],a[1]):i(a[0],r[1],a[1],r[1]),s=l._getPointerElement(e,t,n,o);h?u[ze](s,{shape:o},t):s.attr({shape:o})}function s(i,r,a){var o=e[Q](i),s=o[tt](),c=a[1]-a[0],d="x"===i?n(r[0]-s/2,a[0],s,c):n(a[0],r[1]-s/2,c,s),f=l._getPointerElement(e,t,i,d);h?u[ze](f,{shape:d},t):f.attr({shape:d})}var l=this,c=t.get("type"),h="cross"!==c;if("cross"===c)o("x",a,e[Q]("y").getGlobalExtent()),o("y",a,e[Q]("x").getGlobalExtent()),this._updateCrossText(e,a,t);else{var d=e[Q]("x"===r?"y":"x"),f=d.getGlobalExtent();e.type===T&&("line"===c?o:s)(r,a,f)}},_showPolarPointer:function(t,e,n,a){function o(n,r,a){var o,s=e.pointToCoord(r);if("angle"===n){var c=e.coordToPoint([a[0],s[1]]),h=e.coordToPoint([a[1],s[1]]);o=i(c[0],c[1],h[0],h[1])}else o={cx:e.cx,cy:e.cy,r:s[0]};var d=l._getPointerElement(e,t,n,o);f?u[ze](d,{shape:o},t):d.attr({shape:o})}function s(i,n,a){var o,s=e[Q](i),c=s[tt](),h=e.pointToCoord(n),d=Math.PI/180;o="angle"===i?r(e.cx,e.cy,a[0],a[1],(-h[1]-c/2)*d,(-h[1]+c/2)*d):r(e.cx,e.cy,h[0]-c/2,h[0]+c/2,0,2*Math.PI);var p=l._getPointerElement(e,t,i,o);f?u[ze](p,{shape:o},t):p.attr({shape:o})}var l=this,c=t.get("type"),h=e.getAngleAxis(),d=e.getRadiusAxis(),f="cross"!==c;if("cross"===c)o("angle",a,d[at]()),o(fn,a,h[at]()),this._updateCrossText(e,a,t);else{var p=e[Q](n===fn?"angle":fn),v=p[at]();("line"===c?o:s)(n,a,v)}},_updateCrossText:function(t,e,i){var n=i[er]("crossStyle"),r=n[er](tr),a=this._tooltipModel,o=this._crossText;o||(o=this._crossText=new u.Text({style:{textAlign:"left",textBaseline:"bottom"}}),this.group.add(o));var s=t.pointToData(e),l=t[Nt];s=h.map(s,function(e,i){var n=t[Q](l[i]);return e=n.type===Mt||"time"===n.type?n.scale[F](e):d[Yi](e[Zn](n[Gn]()))}),o[Ze]({fill:r[Re]()||n.get("color"),textFont:r[Jn](),text:s.join(", "),x:e[0]+5,y:e[1]-5}),o.z=a.get("z"),o[xe]=a.get(xe)},_getPointerElement:function(t,e,i,n){var r=this._tooltipModel,a=r.get("z"),o=r.get(xe),s=this._axisPointers,l=t.name;if(s[l]=s[l]||{},s[l][i])return s[l][i];var c=e.get("type"),h=e[er](c+"Style"),d="shadow"===c,f=h[d?"getAreaStyle":Y](),p="polar"===t.type?d?Ue:i===fn?je:"Line":d?"Rect":"Line";d?f[Ar]=null:f.fill=null;var v=s[l][i]=new u[p]({style:f,z:a,zlevel:o,silent:!0,shape:n});return this.group.add(v),v},_showSeriesTooltipContent:function(t,e,i,n,r){var a=this._tooltipModel,o=this._tooltipContent,l=t[st](),c=n["x"===l.dim||l.dim===fn?0:1],u=h.map(e,function(t){return{seriesIndex:t[on],dataIndex:t[an]().indexOfNearest(t.getDimensionsOnAxis(l.dim),c)}}),p=this._api,v=this._lastHover;if(v.payloadBatch&&!r&&this._api[mn]({type:"downplay",batch:h.clone(v.payloadBatch)}),r||(this._api[mn]({type:"highlight",batch:h.clone(u)}),v.payloadBatch=u),l&&a.get("showContent")){var m,g=a.get(Ki),y=a.get(On),x=h.map(e,function(t,e){return t[Ji](u[e][yi])});o.show(a);var _=u[0][yi];if(!r){if(this._ticket="",g){if(typeof g===Nr)m=d.formatTpl(g,x);else if(typeof g===Rr){var w=this,b="axis_"+t.name+"_"+_,M=function(t,e){t===w._ticket&&(o.setContent(e),s(y,i[0],i[1],o,x,null,p))};w._ticket=b,m=g(x,b,M)}}else m=e[0][an]()[tn](_)+Xi+h.map(e,function(t,e){return t[f](u[e][yi],!0)}).join(Xi);o.setContent(m)}s(y,i[0],i[1],o,x,null,p)}},_showItemTooltipContent:function(t,e,i){var n=this._api,r=t[an](),a=r[Qi](e),o=this._tooltipModel,l=this._tooltipContent,c=a[er]("tooltip");if(c[jn]?c[jn][jn]=o:c[jn]=this._tooltipModel,c.get("showContent")){var u,h=c.get(Ki),p=c.get(On),v=t[Ji](e);if(h){if(typeof h===Nr)u=d.formatTpl(h,v);else if(typeof h===Rr){var m=this,g="item_"+t.name+"_"+e,y=function(t,e){t===m._ticket&&(l.setContent(e),s(p,i[Ce],i[Ae],l,v,i[Ei],n))};m._ticket=g,u=h(v,g,y)}}else u=t[f](e);l.show(c),l.setContent(u),s(p,i[Ce],i[Ae],l,v,i[Ei],n)}},_showAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&h.each(e,function(t){t.show()})}else this.group[En](function(t){t.show()}),this.group.show()},_resetLastHover:function(){var t=this._lastHover;t.payloadBatch&&this._api[mn]({type:"downplay",batch:t.payloadBatch}),this._lastHover={}},_hideAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&h.each(e,function(t){t.hide()})}else this.group.hide()},_hide:function(){this._hideAxisPointer(),this._resetLastHover(),this._alwaysShowContent||this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay"))},dispose:function(t,e){var i=e.getZr();this._tooltipContent.hide(),i.off("click",this._tryShow),i.off(ke,this._tryShow),i.off(Ee,this._hide),e.off("showTip",this._manuallyShowTip),e.off("hideTip",this._hide)}})}),e("echarts/component/tooltip",[Yr,"./tooltip/TooltipModel","./tooltip/TooltipView",X,X],function(t){t("./tooltip/TooltipModel"),t("./tooltip/TooltipView"),t(X)[qt]({type:"showTip",event:"showTip",update:"none"},function(){}),t(X)[qt]({type:"hideTip",event:"hideTip",update:"none"},function(){})}),e("echarts/coord/polar/RadiusAxis",[Yr,jr,"../Axis"],function(t){function e(t,e){n.call(this,fn,t,e),this.type=Mt}var i=t(jr),n=t("../Axis");return e[Xr]={constructor:e,dataToRadius:n[Xr][R],radiusToData:n[Xr][V]},i[Ir](e,n),e}),e("echarts/coord/polar/AngleAxis",[Yr,jr,"../Axis"],function(t){function e(t,e){e=e||[0,360],n.call(this,"angle",t,e),this.type=Mt}var i=t(jr),n=t("../Axis");return e[Xr]={constructor:e,dataToAngle:n[Xr][R],angleToData:n[Xr][V]},i[Ir](e,n),e}),e("echarts/coord/polar/Polar",[Yr,"./RadiusAxis","./AngleAxis"],function(t){var e=t("./RadiusAxis"),i=t("./AngleAxis"),n=function(t){this.name=t||"",this.cx=0,this.cy=0,this[Nt]=[fn,"angle"],this._radiusAxis=new e,this._angleAxis=new i};return n[Xr]={constructor:n,type:"polar",containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis[hi](e[0])&&this._angleAxis[hi](e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxesByScale:function(t){var e=[],i=this._angleAxis,n=this._radiusAxis;return i.scale.type===t&&e.push(i),n.scale.type===t&&e.push(n),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale(rn)[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},dataToPoints:function(t){return t[zt](this[Nt],function(t,e){return this[rt]([t,e])},this)},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var i=this.pointToCoord(t);return[this._radiusAxis.radiusToData(i[0],e),this._angleAxis.angleToData(i[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=this.getAngleAxis(),r=n[at](),a=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);n[J]?a=o-360:o=a+360;var s=Math.sqrt(e*e+i*i);e/=s,i/=s;for(var l=Math.atan2(-i,e)/Math.PI*180,c=a>l?1:-1;a>l||l>o;)l+=360*c;return[s,l]},coordToPoint:function(t){var e=t[0],i=t[1]/180*Math.PI,n=Math.cos(i)*e+this.cx,r=-Math.sin(i)*e+this.cy;return[n,r]}},n}),e("echarts/coord/polar/AxisModel",[Yr,jr,P,"../axisModelCreator","../axisModelCommonMixin"],function(t){function e(t,e){return e.type||(e.data?Mt:"value")}var i=t(jr),n=t(P),r=t("../axisModelCreator"),a=n[Pr]({type:"polarAxis",axis:null});i.merge(a[Xr],t("../axisModelCommonMixin"));var o={angle:{polarIndex:0,startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{polarIndex:0,splitNumber:5}};r("angle",a,e,o.angle),r(fn,a,e,o[fn])}),e("echarts/coord/polar/PolarModel",[Yr,"./AxisModel",A],function(t){t("./AxisModel"),t(A)[Zt]({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e,i=this[ir];return i[Kt](t,function(t){i[pn]("polar",t[Tr]("polarIndex"))===this&&(e=t)},this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}})}),e("echarts/coord/polar/polarCreator",[Yr,"./Polar",mt,jr,D,"./PolarModel","../../CoordinateSystem"],function(t){function e(t,e){var i=t.get(or),n=t.get(fn),r=e[yn](),o=e[gn](),s=a[Fn];this.cx=s(i[0],r),this.cy=s(i[1],o);var l=this.getRadiusAxis(),c=Math.min(r,o)/2;l[W](0,s(n,c))}function i(t,e){if(t.type=e.get("type"),t.scale=s[E](e),t[et]=e.get(G)&&t.type===Mt,"angleAxis"===e.mainType){var i=e.get(Je);t[J]=e.get(J)^e.get($e),t[W](i,i+(t[J]?-360:360))}e.axis=t,t.model=e}function n(t,e,i){e[ae](function(e){if("polar"===e.get(St)){var i=e.get("polarIndex")||0,n=t[i];if(!n)return;e[St]=n;var r=n.getRadiusAxis(),a=n.getAngleAxis(),o=e[an]();r.scale[q](o[Ot](fn,r.type!==Mt)),a.scale[q](o[Ot]("angle",a.type!==Mt))}}),o.each(t,function(t){var e=t.getAngleAxis(),i=t.getRadiusAxis();l(e,e.model),l(i,i.model)})}var r=t("./Polar"),a=t(mt),o=t(jr),s=t(D),l=s[Z];t("./PolarModel");var c={create:function(t,a){var s=[];return t[Kt]("polar",function(t,n){var o=new r(n);o[ge]=e;var l=o.getRadiusAxis(),c=o.getAngleAxis(),u=t.findAxisModel("radiusAxis"),h=t.findAxisModel("angleAxis");i(l,u),i(c,h),o[ge](t,a),s.push(o),t[St]=o}),n(s,t,a),o.each(s,function(t){var e=t.getAngleAxis();if(e.type===Mt&&!e[et]){var i=e[at](),n=360/e.scale.count();e[J]?i[1]+=n:i[1]-=n,e[W](i[0],i[1])}}),s}};t("../../CoordinateSystem")[vn]("polar",c)}),e("echarts/component/axis/AngleAxisView",[Yr,jr,gt,C,A],function(t){function e(t,e,i,n){var r=t.coordToPoint([e,n]),a=t.coordToPoint([i,n]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}var i=t(jr),n=t(gt),r=t(C),a=[x,z,_,"splitLine","splitArea"];t(A)[Bt]({type:"angleAxis",render:function(t,e){if(this.group[wi](),t.get("show")){var n=e[pn]("polar",t.get("polarIndex")),r=t.axis,o=n[St],s=o.getRadiusAxis()[at](),l=r.getTicksCoords();r.type!==Mt&&l.pop(),i.each(a,function(e){t.get(e+".show")&&this["_"+e](t,o,l,s)},this)}},_axisLine:function(t,e,i,r){var a=t[er]("axisLine.lineStyle"),o=new n[je]({shape:{cx:e.cx,cy:e.cy,r:r[1]},style:a[Y](),z2:1,silent:!0});o.style.fill=null,this.group.add(o)},_axisTick:function(t,r,a,o){var s=t[er](_),l=(s.get(ar)?-1:1)*s.get(Hr),c=i.map(a,function(t){return new n.Line({shape:e(r,o[1],o[1]+l,t)})});this.group.add(n.mergePath(c,{style:s[er](re)[Y]()}))},_axisLabel:function(t,e,i,a){for(var o=t.axis,s=t.get("data"),l=t[er](z),c=l[er](tr),u=t[O](),h=l.get(Dn),d=o.getLabelsCoords(),f=0;fm?"left":"right",x=Math.abs(v[1]-g)/p<.3?sr:v[1]>g?"top":lr,_=c;s&&s[f]&&s[f][tr]&&(_=new r(s[f][tr],c)),this.group.add(new n.Text({style:{x:v[0],y:v[1],fill:_[Re](),text:u[f],textAlign:y,textBaseline:x,textFont:_[Jn]()},silent:!0}))}},_splitLine:function(t,r,a,o){var s=t[er]("splitLine"),l=s[er](re),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var h=[],d=0;d=0&&(e=0),{name:t.text,min:e,max:i}}),h=e.find(s,function(t){return(t.polarIndex||0)===o}),d=e.find(l,function(t){return(t.polarIndex||0)===o});h||(h={type:"value",polarIndex:o},s.push(h)),d||(d={type:"category",polarIndex:o},l.push(d)),d.data=e.map(n.indicator,function(t){var e={value:t.text},i=t[z];return i&&i[tr]&&(e[tr]=i[tr]),e}),d[Je]=n[Je]||90,n[x]&&(d.splitLine=n[x]),n[z]&&(d[z]=n[z]),n.splitLine&&(h.splitLine=n.splitLine),n.splitArea&&(h.splitArea=n.splitArea),h.splitLine=h.splitLine||{},h.splitArea=h.splitArea||{},null==h.splitLine.show&&(h.splitLine.show=!0),null==h.splitArea.show&&(h.splitArea.show=!0),d[G]=!1,h.min=0,h.max=1,h[N]=1/(n[B]||5),h[x]={show:!1},h[z]={show:!1},h[_]={show:!1};var f=a(c,function(t){return(t.polarIndex||0)===o}),p=e.map(u,function(){return[]});r(f,function(i){if(i.indicator=u,i.data[0]&&e[kr](i.data[0].value)){var n=i.data,r=n[0];i.data=r.value,i.name=r.name;
for(var a=1;al;l++)a=Math.min(a,t[l]),o=Math.max(o,t[l]);r[W](a,o),r.niceExtent(n[B]||5);var c=r[at]();null==u[e].min&&(u[e].min=c[0]),null==u[e].max&&(u[e].max=c[1])}})}}))}}),e("echarts/chart/radar",[Yr,jr,X,"./radar/RadarSeries","./radar/RadarView",j,U,"./radar/backwardCompat"],function(t){var e=t(jr),i=t(X);t("./radar/RadarSeries"),t("./radar/RadarView"),i[Ht]("chart",e.curry(t(j),"radar",ht,null)),i[Wt](e.curry(t(U),"radar")),i[jt](t("./radar/backwardCompat"))}),e("echarts/component/legend/LegendModel",[Yr,jr,C,A],function(t){var e=t(jr),i=t(C);return t(A)[Zt]({type:"legend",dependencies:[Mn],layoutMode:{type:"box",ignoreSize:!0},init:function(t,n,r){this[kn](t,r),t[y]=t[y]||{};var a=e.map(t.data||[],function(t){return typeof t===Nr&&(t={name:t}),new i(t,this,this[ir])},this);this._data=a,this._updateAvailableNames(r);var o=this[Un][y];if(a[0]&&"single"===this.get("selectedMode")){var s=!1;for(var l in o)o[l]&&(this.select(l),s=!0);!s&&this.select(a[0].get("name"))}},mergeOption:function(t){this.$superCall(An,t),this._updateAvailableNames(this[ir])},_updateAvailableNames:function(t){var i=e.map(t.getSeries(),function(t){return t.name});t[ae](function(t){if(t[m]){var e=t[m]();i=i[Or](e[zt](e[tn]))}}),this._availableNames=i},getData:function(){return this._data},select:function(t){var i=this[Un][y],n=this.get("selectedMode");if("single"===n){var r=this._data;e.each(r,function(t){i[t.get("name")]=!1})}i[t]=!0},unSelect:function(t){"single"!==this.get("selectedMode")&&(this[Un][y][t]=!1)},toggleSelected:function(t){var e=this[Un][y];t in e||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},isSelected:function(t){var i=this[Un][y];return!(t in i&&!i[t])&&e[Br](this._availableNames,t)>=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:"top",align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,textStyle:{color:"#333"},selectedMode:!0}})}),e("echarts/component/legend/legendAction",[Yr,A,jr],function(t){function e(t,e,i){var r,a={},o="toggleSelected"===t;return i[Kt](ie,function(i){o&&null!=r?i[r?"select":"unSelect"](e.name):(i[t](e.name),r=i.isSelected(e.name));var s=i[an]();n.each(s,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);e in a?a[e]=a[e]&&n:a[e]=n}})}),{name:e.name,selected:a}}var i=t(A),n=t(jr);i[qt]("legendToggleSelect","legendselectchanged",n.curry(e,"toggleSelected")),i[qt]("legendSelect","legendselected",n.curry(e,"select")),i[qt]("legendUnSelect","legendunselected",n.curry(e,"unSelect"))}),e("echarts/component/helper/listComponent",[Yr,I,v,gt],function(t){function e(t,e,n){i[Ln](t,e[k](),{width:n[yn](),height:n[gn]()},e.get(p))}var i=t(I),n=t(v),r=t(gt);return{layout:function(t,n,r){i.box(n.get(d),t,n.get(h),r[yn](),r[gn]()),e(t,n,r)},addBackground:function(t,e){var i=n[Pn](e.get(p)),a=t[Qn](),o=e[ut](["color",Sr]);o.fill=e.get(fe);var s=new r.Rect({shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[1]+i[3],height:a[pr]+i[0]+i[2]},style:o,silent:!0});r[Fe](s),t.add(s)}}}),e("echarts/component/legend/LegendView",[Yr,jr,yt,gt,"../helper/listComponent",A],function(t){function e(t,e){e[mn]({type:"legendToggleSelect",name:t})}function i(t,e,i){t.get("legendHoverLink")&&i[mn]({type:"highlight",seriesName:t.name,name:e})}function n(t,e,i){t.get("legendHoverLink")&&i[mn]({type:"downplay",seriesName:t.name,name:e})}var r=t(jr),a=t(yt),o=t(gt),s=t("../helper/listComponent"),l=r.curry,c="#ccc";return t(A)[Bt]({type:"legend",init:function(){this._symbolTypeStore={}},render:function(t,a,h){var f=this.group;if(f[wi](),t.get("show")){var p=t.get("selectedMode"),v=t.get("itemWidth"),g=t.get("itemHeight"),y=t.get("align");"auto"===y&&(y="right"===t.get("left")&&t.get(d)===zn?"right":"left");var x={},_={};r.each(t[an](),function(r){var s=r.get("name");(""===s||"\n"===s)&&f.add(new o.Group({newline:!0}));var u=a.getSeriesByName(s)[0];if(x[s]=r,u&&!_[s]){var d=u[an](),m=d[Pt]("color");t.isSelected(s)||(m=c),typeof m===Rr&&(m=m(u[Ji](0)));var w=d[Pt]("legendSymbol")||"roundRect",b=d[Pt](dt),M=this._createItem(s,r,t,w,b,v,g,y,m,p);M.on("click",l(e,s,h)).on(Ne,l(i,u,"",h)).on(Ee,l(n,u,"",h)),_[s]=!0}},this),a.eachRawSeries(function(r){if(r[m]){var a=r[m]();a.each(function(o){var s=a[tn](o);if(x[s]&&!_[s]){var u=a[Lt](o,"color");t.isSelected(s)||(u=c);var d="roundRect",f=this._createItem(s,x[s],t,d,null,v,g,y,u,p);f.on("click",l(e,s,h)).on(Ne,l(i,r,s,h)).on(Ee,l(n,r,s,h)),_[s]=!0}},!1,this)}},this),s[u](f,t,h),s.addBackground(f,t)}},_createItem:function(t,e,i,n,r,s,l,c,u,h){var d=new o.Group,f=e[er](tr),p=e.get("icon");if(n=p||n,d.add(a[pt](n,0,0,s,l,u)),!p&&r&&r!==n&&"none"!=r){var v=.8*l;d.add(a[pt](r,(s-v)/2,(l-v)/2,v,v,u))}var m="left"===c?s+5:-5,g=c,y=i.get(Ki);typeof y===Nr&&y?t=y[Wn]("{name}",t):typeof y===Rr&&(t=y(t));var x=new o.Text({style:{text:t,x:m,y:l/2,fill:f[Re](),textFont:f[Jn](),textAlign:g,textBaseline:"middle"}});return d.add(x),d.add(new o.Rect({shape:d[Qn](),invisible:!0})),d[En](function(t){t[_e]=!h}),this.group.add(d),d}})}),e("echarts/component/legend/legendFilter",[],function(){return function(t){var e=t[wn]({mainType:"legend"});e&&e[Hr]&&t.filterSeries(function(t){for(var i=0;i0?1.1:1/1.1;o.call(this,t,e,t[Ce],t[Ae])}function a(t){if(!d.isTaken("globalPan",this._zr)){h.stop(t.event);var e=t.pinchScale>1?1.1:1/1.1;o.call(this,t,e,t.pinchX,t.pinchY)}}function o(t,e,i,n){var r=this.rect;if(r&&r[hi](i,n)){var a=this[Ei];if(a){var o=a[On],s=a.scale,l=this._zoom=this._zoom||1;l*=e;var c=l/this._zoom;this._zoom=l,o[0]-=(i-o[0])*(c-1),o[1]-=(n-o[1])*(c-1),s[0]*=c,s[1]*=c,a.dirty()}this[xi]("zoom",e,i,n)}}function s(t,o,s){this[Ei]=o,this.rect=s,this._zr=t;var h=u.bind,d=h(e,this),f=h(i,this),p=h(n,this),v=h(r,this),m=h(a,this);c.call(this),this[l]=function(e){this.disable(),null==e&&(e=!0),e&&"scale"!==e&&(t.on(Le,d),t.on(ke,f),t.on(Te,p)),e&&"move"!==e&&(t.on("mousewheel",v),t.on("pinch",m))},this.disable=function(){t.off(Le,d),t.off(ke,f),t.off(Te,p),t.off("mousewheel",v),t.off("pinch",m)},this[ue]=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}var c=t(ji),u=t(jr),h=t(De),d=t("./interactionMutex");return u.mixin(s,c),s}),e("echarts/component/helper/MapDraw",[Yr,"./RoamController",gt,jr],function(t){function e(t,e){var i=t[ut](),n=t.get("areaColor");return n&&(i.fill=n),i}function i(t,e,i,r,a){i.off("click"),t.get("selectedMode")&&i.on("click",function(i){var o=i[Ei][yi];if(null!=o){var s=e[tn](o);r[mn]({type:"mapToggleSelect",seriesIndex:t[on],name:s,from:a.uid}),n(t,e,r)}})}function n(t,e){e[vi](function(i,n){var r=e[tn](n);i[xi](t.isSelected(r)?cn:ln)})}function r(t,e){var i=new o.Group;this[s]=new a(t.getZr(),e?i:null,null),this.group=i,this._updateGroup=e}var a=t("./RoamController"),o=t(gt),c=t(jr);return r[Xr]={constructor:r,draw:function(t,r,a,s){var l=t[an]&&t[an](),u=t[St],h=this.group;h[wi]();var d=u.scale;h[On]=u[On].slice(),h.scale=d.slice();var f,p,v,m,g,y,x=[ne,ln],_=[ne,cn],w=["label",ln],b=["label",cn];l||(f=t[er](x),p=t[er](_),v=e(f,d),m=e(p,d),g=t[er](w),y=t[er](b)),c.each(u.regions,function(i){var n,r=new o.Group;if(l){n=l[mi](i.name);var a=l[Qi](n),s=l[Lt](n,"color",!0);f=a[er](x),p=a[er](_),v=e(f,d),m=e(p,d),g=a[er](w),y=a[er](b),s&&(v.fill=s)}var u=g[er](tr),M=y[er](tr);c.each(i.contours,function(t){var e=new o[qe]({shape:{points:t},style:{strokeNoScale:!0},culling:!0});e[Ze](v),r.add(e)});var S=g.get("show"),A=y.get("show"),C=l&&isNaN(l.get("value",n)),T=l&&l[It](n);if(!l||C&&(S||A)||T&&T.showLabel){var k=l?n:i.name,L=t[ct](k,ln),D=t[ct](k,cn),I=new o.Text({style:{text:S?L||i.name:"",fill:u[Re](),textFont:u[Jn](),textAlign:"center",textBaseline:"middle"},hoverStyle:{text:A?D||i.name:"",fill:M[Re](),textFont:M[Jn]()},position:i[or].slice(),scale:[1/d[0],1/d[1]],z2:10,silent:!0});r.add(I)}l&&l[kt](n,r),o[Be](r,m),h.add(r)}),this._updateController(t,r,a),l&&i(t,l,h,a,s),l&&n(t,l)},remove:function(){this.group[wi](),this[s][ue]()},_updateController:function(t,e,i){var n=t[St],r=this[s];r[l](t.get("roam")||!1);var a=t.type.split(".")[0];r.off("pan").on("pan",function(e,n){i[mn]({type:"geoRoam",component:a,name:t.name,dx:e,dy:n})}),r.off("zoom").on("zoom",function(e,n,r){if(i[mn]({type:"geoRoam",component:a,name:t.name,zoom:e,originX:n,originY:r}),this._updateGroup){var o=this.group,s=o.scale;o[Si](function(t){"text"===t.type&&t.attr("scale",[1/s[0],1/s[1]])})}},this),r.rect=n.getViewRect()}},r}),e("echarts/chart/map/MapView",[Yr,gt,"../../component/helper/MapDraw",A],function(t){var e=t(gt),i=t("../../component/helper/MapDraw");t(A)[Ft]({type:"map",render:function(t,e,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var a=this.group;if(a[wi](),r&&"geoRoam"===r.type&&r.component===Mn&&r.name===t.name){var o=this._mapDraw;o&&a.add(o.group)}else if(t.needsDrawMap){var o=this._mapDraw||new i(n,!0);a.add(o.group),o.draw(t,e,n,this),this._mapDraw=o}else this._mapDraw&&this._mapDraw[Ti](),this._mapDraw=null;t.get("showLegendSymbol")&&e[pn](ie)&&this._renderSymbols(t,e,n)}},remove:function(){this._mapDraw&&this._mapDraw[Ti](),this._mapDraw=null,this.group[wi]()},_renderSymbols:function(t,i,n){var r=t[an](),a=this.group;r.each("value",function(t,i){if(!isNaN(t)){var n=r[It](i);if(n&&n.point){var o=n.point,s=n[Xe],l=new e[je]({style:{fill:r[Pt]("color")},shape:{cx:o[0]+9*s,cy:o[1],r:3},silent:!0,z2:10});if(!s){var c=r[tn](i),u=r[Qi](i),h=u[er](S),d=u[er](w),f=h[er](tr),p=d[er](tr),v=r[gi](i);l[Ze]({textPosition:"bottom"});var m=function(){l[Ze]({text:d.get("show")?c:"",textFill:p[Re](),textFont:p[Jn]()})},g=function(){l[Ze]({text:h.get("show")?c:"",textFill:f[Re](),textFont:f[Jn]()})};v.on(Ne,m).on(Ee,g).on(cn,m).on(ln,g),g()}a.add(l)}}})}})}),e("echarts/action/roamHelper",[Yr],function(t){var e={};return e.calcPanAndZoom=function(t,e){var i=e.dx,n=e.dy,r=e.zoom,a=t.get("x")||0,o=t.get("y")||0,s=t.get("zoom")||1;if(null!=i&&null!=n&&(a+=i,o+=n),null!=r){var l=(e.originX-a)*(r-1),c=(e.originY-o)*(r-1);a-=l,o-=c}return{x:a,y:o,zoom:(r||1)*s}},e}),e("echarts/action/geoRoam",[Yr,jr,"./roamHelper",X],function(t){var e=t(jr),i=t("./roamHelper"),n=t(X),r={type:"geoRoam",event:"geoRoam",update:"updateLayout"};n[qt](r,function(t,n){var r=t.component||Mn;n[Kt](r,function(n){if(n.name===t.name){var a=n[St];if("geo"!==a.type)return;var o=n[er](c),s=i.calcPanAndZoom(o,t);n.setRoamPan&&n.setRoamPan(s.x,s.y),n.setRoamZoom&&n.setRoamZoom(s.zoom),a&&a.setPan(s.x,s.y),a&&a.setZoom(s.zoom),r===Mn&&e.each(n.seriesGroup,function(t){t.setRoamPan(s.x,s.y),t.setRoamZoom(s.zoom)})}})})}),e("echarts/coord/geo/GeoModel",[Yr,At,P],function(t){var e=t(At),i=t(P);i[Pr]({type:"geo",coordinateSystem:null,init:function(t){i[Xr].init.apply(this,arguments),e[un](t.label,[On,"show",tr,yr,Ki])},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",map:"",roamDetail:{x:0,y:0,zoom:1},label:{normal:{show:!1,textStyle:{color:"#000"}},emphasis:{show:!0,textStyle:{color:"rgb(100,0,0)"}}},itemStyle:{normal:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{color:"rgba(255,215,0,0.8)"}}},getFormattedLabel:function(t,e){var i=this.get("label."+e+".formatter"),n={name:t};return typeof i===Rr?(n.status=e,i(n)):typeof i===Nr?i[Wn]("{a}",n.seriesName):void 0},setRoamZoom:function(t){var e=this[Un][c];e&&(e.zoom=t)},setRoamPan:function(t,e){var i=this[Un][c];i&&(i.x=t,i.y=e)}})}),e("zrender/contain/polygon",[Yr,"./windingLine"],function(t){function e(t,e){return Math.abs(t-e)r;r++)if(i[hi](n[r],t[0],t[1]))return!0;return!1},transformTo:function(t,e,i,r){var o=this[Qn](),s=o.width/o[pr];i?r||(r=i/s):i=s*r;for(var l=new n(t,e,i,r),c=o.calculateTransform(l),u=this.contours,h=0;h>1^-(1&o),s=s>>1^-(1&s),o+=n,s+=r,n=o,r=s,i.push([o/1024,s/1024])}return i}function n(t){for(var e=[],i=0;iu;u++)s=Math.min(s,i[a][u]),l=Math.max(l,i[a][u]),o+=i[a][u];var h;return h="min"===e?s:"max"===e?l:"average"===e?o/c:o,0===c?NaN:h})}var i=t(jr);return function(t){var n={};t[oe]("map",function(t){var e=t.get("map");n[e]=n[e]||[],n[e].push(t)}),i.each(n,function(t,n){var r=e(i.map(t,function(t){return t[an]()}),t[0].get("mapValueCalculation"));t[0].seriesGroup=[],t[0][Qe](r);for(var a=0;ae&&(e=n[pr])}this[pr]=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,i=this.children,n=i[Hr];n>e;e++){var r=i[e].getNodeById(t);if(r)return r}},contains:function(t){if(t===this)return!0;for(var e=0,i=this.children,n=i[Hr];n>e;e++){var r=i[e].contains(t);if(r)return r}},getAncestors:function(t){for(var e=[],i=t?this:this[Se];i;)e.push(i),i=i[Se];return e[a](),e},getValue:function(t){var e=this.hostTree.data;return e.get(e.getDimension(t||"value"),this[yi])},setLayout:function(t,e){this[yi]>=0&&this.hostTree.data[Dt](this[yi],t,e)},getLayout:function(){return this.hostTree.data[It](this[yi])},getModel:function(t){if(!(this[yi]<0)){var e=this.hostTree,i=e.data[Qi](this[yi]),n=this.getLevelModel();return i[er](t,(n||e[Xt])[er](t))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(t,e){this[yi]>=0&&this.hostTree.data[se](this[yi],t,e)},getVisual:function(t,e){return this.hostTree.data[Lt](this[yi],t,e)},getRawIndex:function(){return this.hostTree.data[en](this[yi])},getId:function(){return this.hostTree.data.getId(this[yi])}},e[Xr]={constructor:e,type:"tree",eachNode:function(t,e,i){this.root[o](t,e,i)},getNodeByDataIndex:function(t){var e=this.data[en](t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,i=0,n=e[Hr];n>i;i++)e[i][yi]=-1;for(var i=0,n=t.count();n>i;i++)e[t[en](i)][yi]=i}},e.createTree=function(t,n,r){function a(t,e){h.push(t);var n=new u(t.name,h[Hr]-1,o);e?i(n,e):o.root=n;var r=t.children;if(r)for(var s=0;s=0&&(o[kr](r)?r=r[0]:t.value=new Array(i)),(null==r||isNaN(r))&&(r=n),0>r&&(r=0),i>=0?t.value[0]=r:t.value=r}function i(t,e){var i=e.get("color");if(i){t=t||[];var n;if(o.each(t,function(t){var e=new s(t),i=e.get("color");(e.get(Qt)||i&&"none"!==i)&&(n=!0)}),!n){var r=t[0]||(t[0]={});r.color=i.slice()}return t}}var n=t(_t),r=t("../../data/Tree"),o=t(jr),s=t(C),l=t(v),c=l[$i],u=l[Yi];return n[Pr]({type:"series.treemap",dependencies:["grid","polar"],defaultOption:{left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),root:null,visualDimension:0,zoomToNodeRatio:.1024,roam:!0,animation:!0,animationDurationUpdate:1500,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{normal:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}}},label:{normal:{show:!0,position:["50%","50%"],textStyle:{align:"center",baseline:"middle",color:"#fff",ellipsis:!0}}},itemStyle:{normal:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{}},color:"none",colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(t,n){var a=t.data||[],s=t.name;null==s&&(s=t.name);var l={name:s,children:t.data},c=(a[0]||{}).value;e(l,o[kr](c)?c[Hr]:-1);var u=t.levels||[];return u=t.levels=i(u,n),r.createTree(l,this,u).data},getViewRoot:function(){var t=this[Un].root,e=this[an]().tree.root;return t&&e.getNodeById(t)||e},formatTooltip:function(t){var e=this[an](),i=this[nn](t),n=u(o[kr](i)?i[0]:i),r=e[tn](t);return c(r)+": "+n},getDataParams:function(t){for(var e=n[Xr][Ji].apply(this,arguments),i=this[an](),r=i.tree.getNodeByDataIndex(t),o=e.treePathInfo=[];r;){var s=r[yi];o.push({name:r.name,dataIndex:s,value:this[nn](s)}),r=r[Se]}return o[a](),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},o[Pr](this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap={},this._idIndexMapCount=0);var i=e[t];return null==i&&(e[t]=i=this._idIndexMapCount++),i}})}),e("echarts/chart/treemap/helper",[Yr],function(t){var e={retrieveTargetInfo:function(t,e){if(t&&"treemapZoomToNode"===t.type){var i=e[an]().tree.root,n=t.targetNode;if(n&&i.contains(n))return{node:n};var r=t.targetNodeId;return null!=r&&(n=i.getNodeById(r))?{node:n}:null}}};return e}),e("echarts/chart/treemap/Breadcrumb",[Yr,gt,I,jr],function(t){function e(t,e){this.group=new n.Group,t.add(this.group),this._onSelect=e||a.noop}function i(t,e,i,n,r,a){var o=[[r?t:t-l,e],[t+i,e],[t+i,e+n],[r?t:t-l,e+n]];return!a&&o[_n](2,0,[t+i+l,e+n/2]),!r&&o.push([t,e+n/2]),o}var n=t(gt),r=t(I),a=t(jr),o=8,s=8,l=5;return e[Xr]={constructor:e,render:function(t,e,i){var n=t[er]("breadcrumb"),a=this.group;
if(a[wi](),n.get("show")&&i){var o=n[er](b),s=o[er](tr),l={pos:{left:n.get("left"),right:n.get("right"),top:n.get("top"),bottom:n.get(lr)},box:{width:e[yn](),height:e[gn]()},emptyItemWidth:n.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,i,l,s),this._renderContent(n,i,l,o,s),r[Ln](a,l.pos,l.box)}},_prepare:function(t,e,i,n){for(var r=e;r;r=r[Se]){var a=r[er]().get("name"),l=n.getTextRect(a),c=Math.max(l.width+2*o,i.emptyItemWidth);i.totalWidth+=c+s,i.renderList.push({node:r,text:a,width:c})}},_renderContent:function(t,e,o,l,c){for(var u=0,h=o.emptyItemWidth,d=t.get(pr),f=r.getAvailableSize(o.pos,o.box),p=o.totalWidth,v=o.renderList,m=v[Hr]-1;m>=0;m--){var g=v[m],y=g.width,x=g.text;p>f.width&&(p-=y-h,y=h,x=""),this.group.add(new n[qe]({shape:{points:i(u,0,y,d,m===v[Hr]-1,0===m)},style:a[rr](l[ut](),{lineJoin:"bevel",text:x,textFill:c[Re](),textFont:c[Jn]()}),onclick:a.bind(this._onSelect,this,g.node)})),u+=y+s}},remove:function(){this.group[wi]()}},e}),e("echarts/util/animation",[Yr,jr],function(t){function e(){var t,e=[],n={};return{add:function(t,r,a,o,s){return i[bn](o)&&(s=o,o=0),n[t.id]?!1:(n[t.id]=1,e.push({el:t,target:r,time:a,delay:o,easing:s}),!0)},done:function(e){return t=e,this},start:function(){function i(){r--,r||(e[Hr]=0,n={},t&&t())}for(var r=e[Hr],a=0,o=e[Hr];o>a;a++){var s=e[a];s.el[Ve](s[Ei],s.time,s.delay,s.easing,i)}return this}}}var i=t(jr);return{createWrap:e}}),e("echarts/chart/treemap/TreemapView",[Yr,jr,gt,"../../data/DataDiffer","./helper","./Breadcrumb","../../component/helper/RoamController",mr,gr,"../../util/animation",A],function(t){function e(){return{nodeGroup:[],background:[],content:[]}}var i=t(jr),n=t(gt),a=t("../../data/DataDiffer"),c=t("./helper"),u=t("./Breadcrumb"),h=t("../../component/helper/RoamController"),d=t(mr),f=t(gr),p=t("../../util/animation"),v=i.bind,m=n.Group,g=n.Rect,y=i.each,x=3;return t(A)[Ft]({type:"treemap",init:function(t,i){this._containerGroup,this._storage=e(),this._oldTree,this._breadcrumb,this[s],this._state="ready",this._mayClick},render:function(t,e,n,r){var a=e[wn]({mainType:"series",subType:"treemap",query:r});if(!(i[Br](a,t)<0)){this.seriesModel=t,this.api=n,this[ir]=e;var o=r&&r.type,s=t.layoutInfo,l=!this._oldTree,u=this._giveContainerGroup(s),h=this._doRender(u,t);l||o&&"treemapZoomToNode"!==o?h.renderFinally():this._doAnimation(u,h,t),this._resetController(n);var d=c.retrieveTargetInfo(r,t);this._renderBreadcrumb(t,n,d)}},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new m,this._initEvents(e),this.group.add(e)),e[On]=[t.x,t.y],e},_doRender:function(t,n){function r(t,e,n,o,s){function l(t){return t.getId()}function c(i,a){var l=null!=i?t[i]:null,c=null!=a?e[a]:null,u=s||l===x;u||(l=null);var h=g(l,c,n);h&&r(l&&l.viewChildren||[],c&&c.viewChildren||[],h,o,u)}o?(e=t,y(t,function(t,e){!t.isRemoved()&&c(e,e)})):new a(e,t,l,l).add(c)[ye](c)[Ti](i.curry(c,null))[lt]()}function o(t){var i=e();return t&&y(t,function(t,e){var n=i[e];y(t,function(t){t&&(n.push(t),t.__tmWillDelete=e)})}),i}function s(){y(m,function(t){y(t,function(t){t[Fi]&&t[Fi][Ti](t)})}),y(f,function(t){t[Mi]=!0}),y(p,function(t){t[Mi]=!1,t.__tmWillVisible=!1,t.dirty()})}var l=n[an]().tree,c=this._oldTree,u=e(),h=e(),d=this._storage,f=[],p=[],m=[],g=v(this._renderNode,this,h,d,u,f,p),x=n.getViewRoot();r(l.root?[l.root]:[],c&&c.root?[c.root]:[],t,l===c||!c,x===l.root);var m=o(d);return this._oldTree=l,this._storage=h,{lastsForAnimation:u,willDeleteEls:m,renderFinally:s}},_renderNode:function(t,e,n,a,o,s,l,c){function u(i,r){var a=null!=v&&e[i][v],o=n[i];return a?(e[i][v]=null,h(o,a,i)):w||(a=new r,d(o,a,i)),t[i][p]=a}function h(t,e,n){var r=t[p]={};r.old="nodeGroup"===n?e[On].slice():i[Pr]({},e.shape)}function d(t,e,i){if("background"===i)e[Mi]=!0,e.__tmWillVisible=!0,o.push(e);else{var r,a=s[Se],l=0,c=0;a&&(r=n.background[a[en]()])&&(l=r.old.width,c=r.old[pr]);var u=t[p]={};u.old="nodeGroup"===i?[l,c]:{x:l,y:c,width:0,height:0},u.fadein="nodeGroup"!==i}}function f(t,e){w?!t[Mi]&&a.push(t):(t[Ze](e),t.__tmWillVisible||(t[Mi]=!1))}var p=s&&s[en](),v=l&&l[en]();if(s){var y=s[r](),x=y.width,_=y[pr],w=y[Mi],b=u("nodeGroup",m);if(b){c.add(b),b[On]=[y.x,y.y],b.__tmNodeWidth=x,b.__tmNodeHeight=_;var M=u("background",g);M&&(M[ti]({x:0,y:0,width:x,height:_}),f(M,{fill:s[Pt]($n,!0)}),b.add(M));var A=s.viewChildren;if(!A||!A[Hr]){var C=y[Yn],T=u("content",g);if(T){var k=Math.max(x-2*C,0),L=Math.max(_-2*C,0),D=s[er](S),I=s[er]("label.normal.textStyle"),P=s[er]().get("name"),z=I.getTextRect(P),V=D.get("show");!V||z[pr]>L?P="":z.width>k&&(P=I.get("ellipsis")?I.ellipsis(P,k):""),T[yi]=s[yi],T[on]=this.seriesModel[on],T.culling=!0,T[ti]({x:C,y:C,width:k,height:L}),f(T,{fill:s[Pt]("color",!0),text:P,textPosition:D.get(On),textFill:I[Re](),textAlign:I.get("align"),textBaseline:I.get(Kn),textFont:I[Jn]()}),b.add(T)}}return b}}},_doAnimation:function(t,e,n){if(n.get(Ri)){var r=n.get("animationDurationUpdate"),a=n.get("animationEasing"),o=p.createWrap(),s=this.seriesModel.getViewRoot(),l=this._storage.nodeGroup[s[en]()];l&&l[Si](function(t){var e;if(!t[Mi]&&(e=t.__tmWillDelete)){var i=0,n=0,s=t[Fi];s.__tmWillDelete||(i=s.__tmNodeWidth,n=s.__tmNodeHeight);var l="nodeGroup"===e?{position:[i,n],style:{opacity:0}}:{shape:{x:i,y:n,width:0,height:0},style:{opacity:0}};o.add(t,l,r,a)}}),y(this._storage,function(t,n){y(t,function(t,s){var l,c=e.lastsForAnimation[n][s];c&&("nodeGroup"===n?(l={position:t[On].slice()},t[On]=c.old):(l={shape:i[Pr]({},t.shape)},t[ti](c.old),c.fadein?(t[Ze](Sr,0),l.style={opacity:1}):1!==t.style[Sr]&&(l.style={opacity:1})),o.add(t,l,r,a))})},this),this._state="animating",o.done(v(function(){this._state="ready",e.renderFinally()},this)).start()}},_resetController:function(t){function e(t){return this._mayClick=!1,t.apply(this,Array[Xr].slice.call(arguments,1))}var i=this[s];return i||(i=this[s]=new h(t.getZr()),i[l](),i.on("pan",v(e,this,this._onPan)),i.on("zoom",v(e,this,this._onZoom))),i.rect=new d(0,0,t[yn](),t[gn]()),this.seriesModel.get("roam")?void 0:(i.off("pan").off("zoom"),void(this[s]=null))},_onPan:function(t,e){if("animating"!==this._state&&(Math.abs(t)>x||Math.abs(e)>x)){var i=this.seriesModel.getViewRoot();if(!i)return;var n=i[r]();if(!n)return;this.api[mn]({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t,y:n.y+e,width:n.width,height:n[pr]}})}},_onZoom:function(t,e,i){if("animating"!==this._state){var n=this.seriesModel.getViewRoot();if(!n)return;var a=n[r]();if(!a)return;var o=new d(a.x,a.y,a.width,a[pr]),s=this.seriesModel.layoutInfo;e-=s.x,i-=s.y;var l=f[fr]();f[dr](l,l,[-e,-i]),f.scale(l,l,[t,t]),f[dr](l,l,[e,i]),o[vr](l),this.api[mn]({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o[pr]}})}},_initEvents:function(t){function e(t){var e=this.findTarget(t[Ce],t[Ae]);e&&this._zoomToNode(e)}t.on(Le,function(t){"ready"===this._state&&(this._mayClick=!0)},this),t.on(Te,function(t){this._mayClick&&(this._mayClick=!1,"ready"===this._state&&e.call(this,t))},this)},_renderBreadcrumb:function(t,e,i){function n(t){this._zoomToNode({node:t})}i||(i=this.findTarget(e[yn]()/2,e[gn]()/2),i||(i={node:t[an]().tree.root})),(this._breadcrumb||(this._breadcrumb=new u(this.group,v(n,this))))[_i](t,e,i.node)},remove:function(){this._containerGroup&&this._containerGroup[wi](),this._storage=e(),this._state="ready",this._breadcrumb&&this._breadcrumb[Ti]()},_zoomToNode:function(t){this.api[mn]({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var i,n=this.seriesModel.getViewRoot();return n[o]({attr:"viewChildren",order:"preorder"},function(n){var r=this._storage.background[n[en]()];if(r){var a=r[Ni](t,e),o=r.shape;if(!(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o[pr]))return!1;i={node:n,offsetX:a[0],offsetY:a[1]}}},this),i}})}),e("echarts/chart/treemap/treemapAction",[Yr,A],function(t){var e=t(A),i=function(){};e[qt]({type:"treemapZoomToNode",update:"updateView"},i),e[qt]({type:"treemapRender",update:"updateView"},i),e[qt]({type:"treemapMove",update:"updateView"},i)}),e("echarts/visual/VisualMapping",[Yr,jr,Oi,"../util/number"],function(t){function e(t){var e=t.pieceList;t.hasSpecialVisual=!1,c.each(e,function(e,i){e.originIndex=i,e.visual&&(t.hasSpecialVisual=!0)})}function i(t){var e=t[n],i=t.visual,r=c[kr](i);if(!e){if(r)return;throw new Error}var a=t.categoryMap={};if(d(e,function(t,e){a[t]=e}),!r){var o=[];c[Tn](i)?d(i,function(t,e){var i=a[e];o[null!=i?i:p]=t}):o[p]=i,i=t.visual=o}for(var s=e[Hr]-1;s>=0;s--)null==i[s]&&(delete a[e[s]],e.pop())}function r(t){return{applyVisual:function(e,i,n){var r=i("color"),a=c[kr](e);if(e=a?[this.mapValueToVisual(e[0]),this.mapValueToVisual(e[1])]:this.mapValueToVisual(e),c[kr](r))for(var o=0,s=r[Hr];s>o;o++)r[o].color=t(r[o].color,a?e[o]:e);else n("color",t(r,e))},mapValueToVisual:function(t){var e=this._normalizeData(t),i=this._getSpecifiedVisual(t),n=this[Un].visual;return null==i&&(i=l(this)?s(this,n,e):h(e,[0,1],n,!0)),i}}}function a(t,e){return t[Math.round(h(e,[0,1],[0,t[Hr]-1],!0))]}function o(t,e,i){i("color",this.mapValueToVisual(t))}function s(t,e,i){return e[t[Un].loop&&i!==p?i%e[Hr]:i]}function l(t){return t[Un].mappingMethod===Mt}var c=t(jr),u=t(Oi),h=t("../util/number")[Hn],d=c.each,f=c[Tn],p=-1,v=function(t){var n=t.mappingMethod,r=t.type;this.type=r,this.mappingMethod=n;var a=this[Un]=c.clone(t);this._normalizeData=g[n],this._getSpecifiedVisual=c.bind(y[n],this,r),c[Pr](this,m[r]),"piecewise"===n&&e(a),n===Mt&&i(a)};v[Xr]={constructor:v,applyVisual:null,isValueActive:null,mapValueToVisual:null,getNormalizer:function(){return c.bind(this._normalizeData,this)}};var m=v.visualHandlers={color:{applyVisual:o,getColorMapper:function(){var t=l(this)?this[Un].visual:c.map(this[Un].visual,u.parse);return c.bind(l(this)?function(e,i){return!i&&(e=this._normalizeData(e)),s(this,t,e)}:function(e,i,n){var r=!!n;return!i&&(e=this._normalizeData(e)),n=u.fastMapToColor(e,t,n),r?n:c.stringify(n,"rgba")},this)},mapValueToVisual:function(t){var e=this[Un].visual;if(c[kr](t))return t=[this._normalizeData(t[0]),this._normalizeData(t[1])],u.mapIntervalToColor(t,e);var i=this._normalizeData(t),n=this._getSpecifiedVisual(t);return null==n&&(n=l(this)?s(this,e,i):u.mapToColor(i,e)),n}},colorHue:r(function(t,e){return u.modifyHSL(t,e)}),colorSaturation:r(function(t,e){return u.modifyHSL(t,null,e)}),colorLightness:r(function(t,e){return u.modifyHSL(t,null,null,e)}),colorAlpha:r(function(t,e){return u.modifyAlpha(t,e)}),symbol:{applyVisual:function(t,e,i){var n=this.mapValueToVisual(t);if(c[bn](n))i(dt,n);else if(f(n))for(var r in n)n.hasOwnProperty(r)&&i(r,n[r])},mapValueToVisual:function(t){var e=this._normalizeData(t),i=this._getSpecifiedVisual(t),n=this[Un].visual;return null==i&&(i=l(this)?s(this,n,e):a(n,e)||{}),i}},symbolSize:{applyVisual:function(t,e,i){i(ft,this.mapValueToVisual(t))},mapValueToVisual:function(t){var e=this._normalizeData(t),i=this._getSpecifiedVisual(t),n=this[Un].visual;return null==i&&(i=l(this)?s(this,n,e):h(e,[0,1],n,!0)),i}}},g={linear:function(t){return h(t,this[Un].dataExtent,[0,1],!0)},piecewise:function(t){var e=this[Un].pieceList,i=v.findPieceIndex(t,e);return null!=i?h(i,[0,e[Hr]-1],[0,1],!0):void 0},category:function(t){var e=this[Un][n]?this[Un].categoryMap[t]:t;return null==e?p:e}},y={linear:c.noop,piecewise:function(t,e){var i=this[Un],n=i.pieceList;if(i.hasSpecialVisual){var r=v.findPieceIndex(e,n),a=n[r];if(a&&a.visual)return a.visual[t]}},category:c.noop};return v.addVisualHandler=function(t,e){m[t]=e},v.isValidType=function(t){return m.hasOwnProperty(t)},v.eachVisual=function(t,e,i){c[Tn](t)?c.each(t,e,i):e.call(i,t)},v.mapVisual=function(t,e,i){var n,r=c[kr](t)?[]:c[Tn](t)?{}:(n=!0,null);return v.eachVisual(t,function(t,a){var o=e.call(i,t,a);n?r=o:r[a]=o}),r},v.isInVisualCluster=function(t,e){return"color"===e?!(!t||0!==t[Br](e)):t===e},v.retrieveVisuals=function(t){var e,i={};return t&&d(m,function(n,r){t.hasOwnProperty(r)&&(i[r]=t[r],e=!0)}),e?i:null},v.prepareVisualTypes=function(t){if(f(t)){var e=[];d(t,function(t,i){e.push(i)}),t=e}else{if(!c[kr](t))return[];t=t.slice()}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t[Br]("color")?1:-1}),t},v.findPieceIndex=function(t,e){for(var i=0,n=e[Hr];n>i;i++){var r=e[i];if(null!=r.value&&r.value===t)return i}for(var i=0,n=e[Hr];n>i;i++){var r=e[i],a=r[N];if(a)if(a[0]===-(1/0)){if(t=h[Hr]||t===h[t.depth]){var n=u(p,_,t,i,S,d);e(t,n,s,c,h,d)}})}else g=a(_,t),t[ce]("color",g)}}function n(t,e,i,n){var r=f[Pr]({},e);return f.each(["color","colorAlpha","colorSaturation"],function(a){var o=t.get(a,!0);null==o&&i&&(o=i[a]),null==o&&(o=e[a]),null==o&&(o=n.get(a)),null!=o&&(r[a]=o)}),r}function a(t){var e=s(t,"color");if(e){var i=s(t,"colorAlpha"),n=s(t,"colorSaturation");return n&&(e=d.modifyHSL(e,null,null,n)),i&&(e=d.modifyAlpha(e,i)),e}}function o(t,e){return null!=e?d.modifyHSL(e,null,null,t):null}function s(t,e){var i=t[e];return null!=i&&"none"!==i?i:void 0}function l(t,e,i,n,r,a){if(a&&a[Hr]){var o=c(e,"color")||null!=r.color&&"none"!==r.color&&(c(e,"colorAlpha")||c(e,"colorSaturation"));if(o){var s=e.get("colorMappingBy"),l={type:o.name,dataExtent:i.dataExtent,visual:o.range};"color"!==l.type||"index"!==s&&"id"!==s?l.mappingMethod=Vi:(l.mappingMethod=Mt,l.loop=!0);var u=new h(l);return u.__drColorMappingBy=s,u}}}function c(t,e){var i=t.get(e);return p(i)&&i[Hr]?{name:e,range:i}:null}function u(t,e,i,n,r,a){var o=f[Pr]({},e);if(r){var s=r.type,l="color"===s&&r.__drColorMappingBy,c="index"===l?n:"id"===l?a.mapIdToIndex(i.getId()):i.getValue(t.get("visualDimension"));o[s]=r.mapValueToVisual(c)}return o}var h=t(i),d=t(Oi),f=t(jr),p=f[kr],v=b;return function(t,i){var n={mainType:"series",subType:"treemap",query:i};t[Kt](n,function(t){var i=t[an]().tree,n=i.root,r=t[er](v);if(!n.isRemoved()){var a=f.map(i.levelModels,function(t){return t?t.get(v):null});e(n,{},a,r,t.getViewRoot().getAncestors(),t)}})}}),e("echarts/chart/treemap/treemapLayout",[Yr,jr,mt,I,mr,"./helper"],function(t){function e(t,e,n){var r={mainType:"series",subType:"treemap",query:n};t[Kt](r,function(t){var r=e[yn](),a=e[gn](),o=t.get("size")||[],s=x(_(t.get("width"),o[0]),r),l=x(_(t.get(pr),o[1]),a),c=y[In](t[k](),{width:e[yn](),height:e[gn]()}),u=n&&n.type,p=M.retrieveTargetInfo(n,t),v="treemapRender"===u||"treemapMove"===u?n.rootRect:null,m=t.getViewRoot();if("treemapMove"!==u){var g="treemapZoomToNode"===u?h(t,p,s,l):v?[v.width,v[pr]]:[s,l],b=t.get("sort");b&&"asc"!==b&&"desc"!==b&&(b="desc");var S={squareRatio:t.get("squareRatio"),sort:b};m.setLayout({x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]}),i(m,S)}m.setLayout(d(c,v,p),!0),t.setLayoutInfo(c),f(m,new w(-c.x,-c.y,r,a))})}function i(t,e){var a,o;if(!t.isRemoved()){var s=t[r]();a=s.width,o=s[pr];var l=t[er](b),h=l.get(Yn),d=l.get("gapWidth")/2,f=h-d,g=t[er]();t.setLayout({borderWidth:h},!0),a=p(a-2*f,0),o=p(o-2*f,0);var y=a*o,x=n(t,g,y,e);if(x[Hr]){var _={x:f,y:f,width:a,height:o},w=v(a,o),M=1/0,S=[];S.area=0;for(var A=0,C=x[Hr];C>A;){var T=x[A];S.push(T),S.area+=T[r]().area;var k=c(S,w,e.squareRatio);M>=k?(A++,M=k):(S.area-=S.pop()[r]().area,u(S,w,_,d,!1),w=v(_.width,_[pr]),S[Hr]=S.area=0,M=1/0)}S[Hr]&&u(S,w,_,d,!0);var L;if(!e.hideChildren){var D=g.get("childrenVisibleMin");null!=D&&D>y&&(L=!0)}for(var A=0,C=x[Hr];C>A;A++){var I=m[Pr]({hideChildren:L},e);i(x[A],I)}}}}function n(t,e,i,n){var r=t.children||[],a=n.sort;if("asc"!==a&&"desc"!==a&&(a=null),n.hideChildren)return t.viewChildren=[];r=m[Ur](r,function(t){return!t.isRemoved()}),s(r,a);var c=l(e,r,a);if(0===c.sum)return t.viewChildren=[];if(c.sum=o(e,i,c.sum,a,r),0===c.sum)return t.viewChildren=[];for(var u=0,h=r[Hr];h>u;u++){var d=r[u].getValue()/c.sum*i;r[u].setLayout({area:d})}return t.viewChildren=r,t.setLayout({dataExtent:c.dataExtent},!0),r}function o(t,e,i,n,r){if(!n)return i;for(var a=t.get("visibleMin"),o=r[Hr],s=o,l=o-1;l>=0;l--){var c=r["asc"===n?o-l-1:l].getValue();a>c/i*e&&(s=l,i-=c)}return"asc"===n?r[_n](0,o-s):r[_n](s,o-s),i}function s(t,e){return e&&t.sort(function(t,i){return"asc"===e?t.getValue()-i.getValue():i.getValue()-t.getValue()}),t}function l(t,e,i){for(var n=0,r=0,o=e[Hr];o>r;r++)n+=e[r].getValue();var s,l=t.get("visualDimension");if(e&&e[Hr])if("value"===l&&i)s=[e[e[Hr]-1].getValue(),e[0].getValue()],"asc"===i&&s[a]();else{var s=[1/0,-(1/0)];m.each(e,function(t){var e=t.getValue(l);es[1]&&(s[1]=e)})}else s=[NaN,NaN];return{sum:n,dataExtent:s}}function c(t,e,i){for(var n,a=0,o=1/0,s=0,l=t[Hr];l>s;s++)n=t[s][r]().area,n&&(o>n&&(o=n),n>a&&(a=n));var c=t.area*t.area,u=e*e*i;return c?p(u*a/c,c/(u*o)):1/0}function u(t,e,i,n,a){var o=e===i.width?0:1,s=1-o,l=["x","y"],c=["width",pr],u=i[l[o]],h=e?t.area/e:0;(a||h>i[c[s]])&&(h=i[c[s]]);for(var d=0,f=t[Hr];f>d;d++){var m=t[d],g={},y=h?m[r]().area/h:0,x=g[c[s]]=p(h-2*n,0),_=i[l[o]]+i[c[o]]-u,w=d===f-1||y>_?_:y,b=g[c[o]]=p(w-2*n,0);g[l[s]]=i[l[s]]+v(n,x/2),g[l[o]]=u+v(n,b/2),u+=w,m.setLayout(g,!0)}i[l[s]]+=h,i[c[s]]-=h}function h(t,e,i,n){var r=(e||{}).node,a=[i,n];if(!r||r===t.getViewRoot())return a;for(var o,s=i*n,l=s*t.get("zoomToNodeRatio");o=r[Se];){for(var c=0,u=o.children,h=0,d=u[Hr];d>h;h++)c+=u[h].getValue();var f=r.getValue();if(0===f)return a;l*=c/f;var p=o[er](b).get(Yn);isFinite(p)&&(l+=4*p*p+4*p*Math.pow(l,.5)),l>g.MAX_SAFE_INTEGER&&(l=g.MAX_SAFE_INTEGER),r=o}s>l&&(l=s);var v=Math.pow(l/s,.5);return[i*v,n*v]}function d(t,e,i){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!i)return n;var a=i.node,o=a[r]();if(!o)return n;for(var s=[o.width/2,o[pr]/2],l=a;l;){var c=l[r]();s[0]+=c.x,s[1]+=c.y,l=l[Se]}return{x:t.width/2-s[0],y:t[pr]/2-s[1]}}function f(t,e){var i=t[r]();t.setLayout({invisible:!e[me](i)},!0);for(var n=t.viewChildren||[],a=0,o=n[Hr];o>a;a++){var s=new w(e.x-i.x,e.y-i.y,e.width,e[pr]);f(n[a],s)}}var p=Math.max,v=Math.min,m=t(jr),g=t(mt),y=t(I),x=g[Fn],_=m.retrieve,w=t(mr),M=t("./helper");return e}),e("echarts/chart/treemap",[Yr,X,"./treemap/TreemapSeries","./treemap/TreemapView","./treemap/treemapAction","./treemap/treemapVisual","./treemap/treemapLayout"],function(t){var e=t(X);t("./treemap/TreemapSeries"),t("./treemap/TreemapView"),t("./treemap/treemapAction"),e[Ht]("chart",t("./treemap/treemapVisual")),e[Wt](t("./treemap/treemapLayout"))}),e("echarts/data/Graph",[Yr,jr],function(t){function e(t,e){this.id=null==t?"":t,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this[yi]=null==e?-1:e}function i(t,e,i){this.node1=t,this.node2=e,this[yi]=null==i?-1:i}var n=t(jr),r=function(t){this._directed=t||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},a=r[Xr];a.type="graph",a.isDirected=function(){return this._directed},a.addNode=function(t,i){var n=this._nodesMap;if(!n[t]){var r=new e(t,i);return r.hostGraph=this,this.nodes.push(r),n[t]=r,r}},a.getNodeByIndex=function(t){var e=this.data[en](t);return this.nodes[e]},a.getNodeById=function(t){return this._nodesMap[t]},a.addEdge=function(t,n,r){var a=this._nodesMap,o=this._edgesMap;if(t instanceof e||(t=a[t]),n instanceof e||(n=a[n]),t&&n){var s=t.id+"-"+n.id;if(!o[s]){var l=new i(t,n,r);return l.hostGraph=this,this._directed&&(t.outEdges.push(l),n.inEdges.push(l)),t.edges.push(l),t!==n&&n.edges.push(l),this.edges.push(l),o[s]=l,l}}},a.getEdgeByIndex=function(t){var e=this.edgeData[en](t);return this.edges[e]},a.getEdge=function(t,i){t instanceof e&&(t=t.id),i instanceof e&&(i=i.id);var n=this._edgesMap;return this._directed?n[t+"-"+i]:n[t+"-"+i]||n[i+"-"+t]},a[o]=function(t,e){for(var i=this.nodes,n=i[Hr],r=0;n>r;r++)i[r][yi]>=0&&t.call(e,i[r],r)},a.eachEdge=function(t,e){for(var i=this.edges,n=i[Hr],r=0;n>r;r++)i[r][yi]>=0&&i[r].node1[yi]>=0&&i[r].node2[yi]>=0&&t.call(e,i[r],r)},a.breadthFirstTraverse=function(t,i,n,r){if(!i instanceof e&&(i=this._nodesMap[i]),i){for(var a="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;or;r++)i[r][yi]=-1;for(var r=0,a=t.count();a>r;r++)i[t[en](r)][yi]=r;e[Vt](function(t){var i=n[e[en](t)];return i.node1[yi]>=0&&i.node2[yi]>=0});for(var r=0,a=n[Hr];a>r;r++)n[r][yi]=-1;for(var r=0,a=e.count();a>r;r++)n[e[en](r)][yi]=r},a.setEdgeData=function(t){this.edgeData=t,this._edgeDataSaved=t.cloneShallow()},a.restoreData=function(){this.edgeData=this._edgeDataSaved.cloneShallow()},a.clone=function(){for(var t=new r(this._directed),e=this.nodes,i=this.edges,n=0;n=0&&this[t][e][se](this[yi],i,n)},getVisual:function(i,n){return this[t][e][Lt](this[yi],i,n)},setLayout:function(i,n){this[yi]>=0&&this[t][e][Dt](this[yi],i,n)},getLayout:function(){return this[t][e][It](this[yi])},getGraphicEl:function(){return this[t][e][gi](this[yi])},getRawIndex:function(){return this[t][e][en](this[yi])}}};return n.mixin(e,s("hostGraph","data")),n.mixin(i,s("hostGraph","edgeData")),r.Node=e,r.Edge=i,r}),e("echarts/chart/helper/createGraphFromNodeEdge",[Yr,Tt,"../../data/Graph","../../data/helper/linkList",Ct,jr],function(t){var e=t(Tt),i=t("../../data/Graph"),n=t("../../data/helper/linkList"),r=t(Ct),a=t(jr);return function(t,o,s,l){for(var c=new i(l),u=0;u.8?"left":u[0]<-.8?"right":or,f=u[1]>.8?"top":u[1]<-.8?lr:sr):(h=[5*-u[0]+s[0],5*-u[1]+s[1]],d=u[0]>.8?"right":u[0]<-.8?"left":or,f=u[1]>.8?lr:u[1]<-.8?"top":sr),a.attr({style:{textBaseline:a.__textBaseline||f,textAlign:a.__textAlign||d},position:h})}}function o(t,e){return-Math.PI/2-Math.atan2(e[1]-t[1],e[0]-t[0])}function s(t,e,i,n){h.Group.call(this),this._createLine(t,e,i,n)}var l=t(yt),c=t(_r),u=t("./LinePath"),h=t(gt),d=t(jr),f=t(mt),p=s[Xr];return p.beforeUpdate=a,p._createLine=function(t,n,r,a){var o=t[Xt],s=t[It](a),l=i(s);l.shape.percent=0,h[Pe](l,{shape:{percent:1}},o),this.add(l);var c=new h.Text({name:"label"});if(this.add(c),n){var u=e("fromSymbol",n,a);this.add(u),this._fromSymbolType=n[Lt](a,dt)}if(r){var d=e("toSymbol",r,a);this.add(d),this._toSymbolType=r[Lt](a,dt)}this._updateCommonStl(t,n,r,a)},p[vt]=function(t,i,r,a){var o=t[Xt],s=this.childOfName("line"),l=t[It](a),c={shape:{}};if(n(c.shape,l),h[ze](s,c,o),i){var u=i[Lt](a,dt);if(this._fromSymbolType!==u){var d=e("fromSymbol",i,a);this[Ti](s.childOfName("fromSymbol")),this.add(d)}this._fromSymbolType=u}if(r){var f=r[Lt](a,dt);if(f!==this._toSymbolType){var p=e("toSymbol",r,a);this[Ti](s.childOfName("toSymbol")),this.add(p)}this._toSymbolType=f}this._updateCommonStl(t,i,r,a)},p._updateCommonStl=function(t,e,i,n){var r=t[Xt],a=this.childOfName("line"),o=t[Qi](n),s=o[er](S),l=s[er](tr),c=o[er](w),u=c[er](tr),p=f.round(r[nn](n));isNaN(p)&&(p=t[tn](n)),a[Ze](d[Pr]({stroke:t[Lt](n,"color")},o[er]($)[Y]()));var v=this.childOfName("label");v[Ze]({text:s.get("show")?r[ct](n,ln)||p:"",textFont:l[Jn](),fill:l[Re]()||t[Lt](n,"color")}),v[Ge]={text:c.get("show")?r[ct](n,cn)||p:"",textFont:l[Jn](),fill:u[Re]()},v.__textAlign=l.get("align"),v.__textBaseline=l.get(Kn),v.__position=s.get(On),h[Be](this,o[er]("lineStyle.emphasis")[Y]())},p[bi]=function(t,e,i,r){var a=t[It](r),o=this.childOfName("line");n(o.shape,a),o.dirty(!0),e&&e[gi](r).attr(On,a[0]),i&&i[gi](r).attr(On,a[1])},d[Ir](s,h.Group),s}),e("echarts/chart/helper/LineDraw",[Yr,gt,"./Line"],function(t){function e(t){this._ctor=t||n,this.group=new i.Group}var i=t(gt),n=t("./Line"),r=e[Xr];return r[vt]=function(t,e,i){var n=this._lineData,r=this.group,a=this._ctor;t.diff(n).add(function(n){var o=new a(t,e,i,n);t[kt](n,o),r.add(o)})[ye](function(a,o){var s=n[gi](o);s[vt](t,e,i,a),t[kt](a,s),r.add(s)})[Ti](function(t){r[Ti](n[gi](t))})[lt](),this._lineData=t,this._fromData=e,this._toData=i},r[bi]=function(){var t=this._lineData;t[vi](function(e,i){e[bi](t,this._fromData,this._toData,i)},this)},r[Ti]=function(){this.group[wi]()},e}),e("echarts/chart/graph/GraphView",[Yr,nt,"../helper/LineDraw","../../component/helper/RoamController",At,gt,A],function(t){var e=t(nt),i=t("../helper/LineDraw"),n=t("../../component/helper/RoamController"),r=t(At),a=t(gt);t(A)[Ft]({type:"graph",init:function(t,r){var a=new e,o=new i,l=this.group,c=new n(r.getZr(),l);l.add(a.group),l.add(o.group),this[K]=a,this._lineDraw=o,this[s]=c,this._firstRender=!0},render:function(t,e,i){var n=t[St];if("geo"===n.type||"view"===n.type){var o=t[an]();this[Jt]=t;var s=this[K],l=this._lineDraw;s[vt](o);var c=o.graph.edgeData,u=t[Un],h=r[sn](t,c,u.edges||u.links);h[f]=function(t){var e=this[Ji](t),i=e.data,n=i.source+" > "+i[Ei];return e.value&&(n+=":"+e.value),n},l[vt](c,null,null),c[vi](function(t){t[Si](function(t){t[Xt]=h})}),o.graph.eachEdge(function(t){t.__lineWidth=t[er]($).get("width")});var d=this.group,p={position:n[On],scale:n.scale};this._firstRender?d.attr(p):a[ze](d,p,t),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(),this._updateController(t,n,i),clearTimeout(this._layoutTimeout);var v=t.forceLayout,m=t.get("force.layoutAnimation");v&&this._startForceLayoutIteration(v,m),o[vi](function(t,e){var i=o[Qi](e).get(Ii);i&&v?t.on("drag",function(){v.warmUp(),!this._layouting&&this._startForceLayoutIteration(v,m),v.setFixed(e),o[Dt](e,t[On])},this).on("dragend",function(){v.setUnfixed(e)},this):t.off("drag"),t.setDraggable(i)},this),this._firstRender=!1}},_startForceLayoutIteration:function(t,e){var i=this;!function n(){t.step(function(t){i[bi](),(i._layouting=!t)&&(e?i._layoutTimeout=setTimeout(n,16):n())})}()},_updateController:function(t,e,i){var n=this[s];n.rect=e.getViewRect(),n[l](t.get("roam")),n.off("pan").off("zoom").on("pan",function(e,n){i[mn]({seriesId:t.id,type:"graphRoam",dx:e,dy:n})}).on("zoom",function(e,n,r){i[mn]({seriesId:t.id,type:"graphRoam",zoom:e,originX:n,originY:r})}).on("zoom",this._updateNodeAndLinkScale,this)},_updateNodeAndLinkScale:function(){var t=this[Jt],e=t[an](),i=this.group,n=this._nodeScaleRatio,r=i.scale[0],a=(r-1)*n+1,o=[a/r,a/r];e[vi](function(t,e){t.attr("scale",o)})},updateLayout:function(t,e){this[K][bi](),this._lineDraw[bi]()},remove:function(t,e){this[K]&&this[K][Ti](),this._lineDraw&&this._lineDraw[Ti]()}})}),e("echarts/chart/graph/roamAction",[Yr,A,"../../action/roamHelper"],function(t){var e=t(A),i=t("../../action/roamHelper"),n={type:"graphRoam",event:"graphRoam",update:"none"};e[qt](n,function(t,e){e[Kt]({mainType:"series",query:t},function(e){var n=e[St],r=e[er](c),a=i.calcPanAndZoom(r,t);e.setRoamPan&&e.setRoamPan(a.x,a.y),e.setRoamZoom&&e.setRoamZoom(a.zoom),n&&n.setPan(a.x,a.y),n&&n.setZoom(a.zoom)})})}),e("echarts/chart/graph/categoryFilter",[Yr],function(t){return function(t){var e=t[wn]({mainType:"legend"});e&&e[Hr]&&t[oe]("graph",function(t){var i=t.getCategoriesData(),n=t.getGraph(),r=n.data,a=i[zt](i[tn]);r[Vt](function(t){var i=r[Qi](t),n=i[Tr](Mt);if(null!=n){typeof n===Er&&(n=a[n]);for(var o=0;o0&&(e=[(n[0]+a[0])/2-(n[1]-a[1])*i,(n[1]+a[1])/2-(a[0]-n[0])*i]),t.setLayout([n,a,e])})}}}),e("echarts/chart/graph/simpleLayout",[Yr,"./simpleLayoutHelper"],function(t){var e=t("./simpleLayoutHelper");return function(t,i){t[oe]("graph",function(t){var i=t.get(u);i&&"none"!==i||e(t)})}}),e("echarts/chart/graph/circularLayoutHelper",[Yr],function(t){return function(t){var e=t[St];if(!e||"view"===e.type){var i=e[Qn](),n=t[an](),a=n.graph,s=0,l=n[Rt]("value"),c=2*Math.PI/(l||n.count()),u=i.width/2+i.x,h=i[pr]/2+i.y,d=Math.min(i.width,i[pr])/2;a[o](function(t){var e=t.getValue("value");s+=c*(l?e:2)/2,t.setLayout([d*Math.cos(s)+u,d*Math.sin(s)+h]),s+=c*(l?e:2)/2}),a.eachEdge(function(t){var e,i=t[er]().get("lineStyle.normal.curveness")||0,n=t.node1[r](),a=t.node2[r]();i>0&&(e=[u,h]),t.setLayout([n,a,e])})}}}),e("echarts/chart/graph/circularLayout",[Yr,"./circularLayoutHelper"],function(t){var e=t("./circularLayoutHelper");return function(t,i){t[oe]("graph",function(t){"circular"===t.get(u)&&e(t)})}}),e("echarts/chart/graph/forceHelper",[Yr,_r],function(t){var e=t(_r),i=e.scaleAndAdd;return function(t,n,r){for(var a=r.rect,o=a.width,s=a[pr],l=[a.x+o/2,a.y+s/2],c=null==r.gravity?.1:r.gravity,u=0;us;s++){var m=t[s];m.fixed||(e.sub(a,l,m.p),e.scaleAndAdd(m.p,m.p,a,c*d))}for(var s=0;o>s;s++)for(var h=t[s],g=s+1;o>g;g++){var f=t[g];e.sub(a,f.p,h.p);var p=e.len(a);0===p&&(e.set(a,Math.random()-.5,Math.random()-.5),p=1);var y=(h.rep+f.rep)/p/p;!h.fixed&&i(h.pp,h.pp,a,y),!f.fixed&&i(f.pp,f.pp,a,-y)}for(var x=[],s=0;o>s;s++){var m=t[s];m.fixed||(e.sub(x,m.p,m.pp),e.scaleAndAdd(m.p,m.p,x,d),e.copy(m.pp,m.p))}d=.992*d,r&&r(t,n,.01>d)}}}}),e("echarts/chart/graph/forceLayout",[Yr,"./forceHelper",mt,"./simpleLayoutHelper","./circularLayoutHelper",_r],function(t){var e=t("./forceHelper"),i=t(mt),n=t("./simpleLayoutHelper"),a=t("./circularLayoutHelper"),o=t(_r);return function(t,s){t[oe]("graph",function(t){if("force"===t.get(u)){var s=t.preservedPoints||{},l=t.getGraph(),c=l.data,h=l.edgeData,d=t[er]("force"),f=d.get("initLayout");t.preservedPoints?c.each(function(t){var e=c.getId(t);c[Dt](t,s[e]||[NaN,NaN])}):f&&"none"!==f?"circular"===f&&a(t):n(t);var p=c[Ot]("value"),v=d.get("repulsion"),m=d.get("edgeLength"),g=c[zt]("value",function(t,e){var n=c[It](e),r=i[Hn](t,p,[0,v])||v/2;return{w:r,rep:r,p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),y=h[zt]("value",function(t,e){var i=l.getEdgeByIndex(e);return{n1:g[i.node1[yi]],n2:g[i.node2[yi]],d:m,curveness:i[er]().get("lineStyle.normal.curveness")||0}}),x=t[St],_=x[Qn](),w=e(g,y,{rect:_,gravity:d.get("gravity")}),b=w.step;w.step=function(t){for(var e=0,i=g[Hr];i>e;e++)g[e].fixed&&o.copy(g[e].p,l.getNodeByIndex(e)[r]());b(function(e,i,n){for(var r=0,a=e[Hr];a>r;r++)e[r].fixed||l.getNodeByIndex(r).setLayout(e[r].p),s[c.getId(r)]=e[r].p;for(var r=0,a=i[Hr];a>r;r++){var o=i[r],u=o.n1.p,h=o.n2.p,d=[u,h];o.curveness>0&&d.push([(u[0]+h[0])/2-(u[1]-h[1])*o.curveness,(u[1]+h[1])/2-(h[0]-u[0])*o.curveness]),l.getEdgeByIndex(r).setLayout(d)}t&&t(n)})},t.forceLayout=w,t.preservedPoints=s,w.step()}else t.forceLayout=null})}}),e("echarts/chart/graph/createView",[Yr,"../../coord/View",I,"zrender/core/bbox"],function(t){function e(t,e,i){var r=t[k]();return r.aspect=i,n[In](r,{width:e[yn](),height:e[gn]()})}var i=t("../../coord/View"),n=t(I),r=t("zrender/core/bbox");return function(t,n){t[oe]("graph",function(t){var a=t.get(St);if(!a||"view"===a){var o=new i,s=t[an](),l=s[zt](function(t){var e=s[Qi](t);return[+e.get("x"),+e.get("y")]}),u=[],h=[];r.fromPoints(l,u,h);var d=e(t,n,(h[0]-u[0])/(h[1]-u[1])||1);(isNaN(u[0])||isNaN(u[1]))&&(u=[d.x,d.y],h=[d.x+d.width,d.y+d[pr]]);var f=h[0]-u[0],p=h[1]-u[1],v=d.width,m=d[pr];o=t[St]=new i,o.setBoundingRect(u[0],u[1],f,p),o.setViewRect(d.x,d.y,v,m);var g=t[er](c);o.setPan(g.get("x")||0,g.get("y")||0),o.setZoom(g.get("zoom")||1)}})}}),e("echarts/chart/graph",[Yr,X,jr,"./graph/GraphSeries","./graph/GraphView","./graph/roamAction","./graph/categoryFilter",j,"./graph/categoryVisual","./graph/simpleLayout","./graph/circularLayout","./graph/forceLayout","./graph/createView"],function(t){var e=t(X),i=t(jr);t("./graph/GraphSeries"),t("./graph/GraphView"),t("./graph/roamAction"),e[Ut](Ur,t("./graph/categoryFilter")),e[Ht]("chart",i.curry(t(j),"graph",ht,null)),e[Ht]("chart",t("./graph/categoryVisual")),e[Wt](t("./graph/simpleLayout")),e[Wt](t("./graph/circularLayout")),e[Wt](t("./graph/forceLayout")),e.registerCoordinateSystem("graphView",{create:t("./graph/createView")})}),e("echarts/chart/gauge/GaugeSeries",[Yr,Tt,_t,jr],function(t){var e=t(Tt),i=t(_t),n=t(jr),r=i[Pr]({type:"series.gauge",getInitialData:function(t,i){var r=new e(["value"],this),a=t.data||[];return n[kr](a)||(a=[a]),r[Et](a),r},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,textStyle:{color:"auto"}},pointer:{show:!0,length:"80%",width:8},itemStyle:{normal:{color:"auto"}},title:{show:!0,offsetCenter:[0,"-40%"],textStyle:{color:"#333",fontSize:15}},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:40,offsetCenter:[0,"40%"],textStyle:{color:"auto",fontSize:30}}}});return r}),e("echarts/chart/gauge/PointerPath",[Yr,ni],function(t){return t(ni)[Pr]({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(t,e){var i=Math.cos,n=Math.sin,r=e.r,a=e.width,o=e.angle,s=e.x-i(o)*a*(a>=r/3?1:2),l=e.y-n(o)*a*(a>=r/3?1:2);o=e.angle-Math.PI/2,t[li](s,l),t[si](e.x+i(o)*a,e.y+n(o)*a),t[si](e.x+i(e.angle)*r,e.y+n(e.angle)*r),t[si](e.x-i(o)*a,e.y-n(o)*a),t[si](s,l)}})}),e("echarts/chart/gauge/GaugeView",[Yr,"./PointerPath",gt,mt,it],function(t){function e(t,e){var i=t.get(or),n=e[yn](),r=e[gn](),a=Math.min(n,r),o=s(i[0],e[yn]()),l=s(i[1],e[gn]()),c=s(t.get(fn),a/2);return{cx:o,cy:l,r:c}}function i(t,e){return e&&(typeof e===Nr?t=e[Wn]("{value}",t):typeof e===Rr&&(t=e(t))),t}var n=t("./PointerPath"),r=t(gt),o=t(mt),s=o[Fn],l=2*Math.PI,c=t(it)[Pr]({type:"gauge",render:function(t,i,n){this.group[wi]();var r=t.get("axisLine.lineStyle.color"),a=e(t,n);this._renderMain(t,i,n,r,a)},_renderMain:function(t,e,i,n,a){for(var o=this.group,s=t[er](x),c=s[er](re),u=t.get($e),h=-t.get(Je)/180*Math.PI,d=-t.get(Ke)/180*Math.PI,f=(d-h)%l,p=h,v=c.get("width"),m=0;m=t)return n[0][1];for(var e=0;e=t&&(0===e?0:n[e-1][0])=I;I++){var P=Math.cos(A),V=Math.sin(A);if(g.get("show")){var R=new r.Line({shape:{x1:P*p+d,y1:V*p+f,x2:P*(p-M)+d,y2:V*(p-M)+f},style:k,silent:!0});"auto"===k[Ar]&&R[Ze]({stroke:a(I/w)}),h.add(R)}if(x.get("show")){var O=i(o.round(I/w*(m-v)+v),x.get(Ki)),E=new r.Text({style:{text:O,x:P*(p-M-5)+d,y:V*(p-M-5)+f,fill:D[Re](),textFont:D[Jn](),textBaseline:-.4>V?"top":V>.4?lr:sr,textAlign:-.4>P?"left":P>.4?"right":or},silent:!0});"auto"===E.style.fill&&E[Ze]({fill:a(I/w)}),h.add(E)}if(y.get("show")&&I!==w){for(var N=0;b>=N;N++){var P=Math.cos(A),V=Math.sin(A),G=new r.Line({shape:{x1:P*p+d,y1:V*p+f,x2:P*(p-S)+d,y2:V*(p-S)+f},silent:!0,style:L});"auto"===L[Ar]&&G[Ze]({stroke:a((I+N/b)/w)}),h.add(G),A+=T}A-=T}else A+=C}},_renderPointer:function(t,e,i,l,c,u,h,d){var f=o[Hn],p=[+t.get("min"),+t.get("max")],v=[u,h];d||(v=v[a]());var m=t[an](),g=this._data,y=this.group;m.diff(g).add(function(e){var i=new n({shape:{angle:u}});r[ze](i,{shape:{angle:f(m.get("value",e),p,v)}},t),y.add(i),m[kt](e,i)})[ye](function(e,i){var n=g[gi](i);r[ze](n,{shape:{angle:f(m.get("value",e),p,v)}},t),y.add(n),m[kt](e,n)})[Ti](function(t){var e=g[gi](t);y[Ti](e)})[lt](),m[vi](function(t,e){var i=m[Qi](e),n=i[er]("pointer");t.attr({shape:{x:c.cx,y:c.cy,width:n.get("width"),r:s(n.get(Hr),c.r)},style:i[er](b)[ut]()}),"auto"===t.style.fill&&t[Ze]("fill",l((m.get("value",e)-p[0])/(p[1]-p[0]))),r[Be](t,i[er](M)[ut]())}),this._data=m},_renderTitle:function(t,e,i,n,a){var o=t[er]("title");if(o.get("show")){var l=o[er](tr),c=o.get("offsetCenter"),u=a.cx+s(c[0],a.r),h=a.cy+s(c[1],a.r),d=new r.Text({style:{x:u,y:h,text:t[an]()[tn](0),fill:l[Re](),textFont:l[Jn](),textAlign:"center",textBaseline:"middle"}});this.group.add(d)}},_renderDetail:function(t,e,n,a,o){var l=t[er]("detail"),c=t.get("min"),u=t.get("max");if(l.get("show")){var h=l[er](tr),d=l.get("offsetCenter"),f=o.cx+s(d[0],o.r),p=o.cy+s(d[1],o.r),v=s(l.get("width"),o.r),m=s(l.get(pr),o.r),g=t[an]().get("value",0),y=new r.Rect({shape:{x:f-v/2,y:p-m/2,width:v,height:m},style:{text:i(g,l.get(Ki)),fill:l.get(fe),textFill:h[Re](),textFont:h[Jn]()}});"auto"===y.style.textFill&&y[Ze]("textFill",a((g-c)/(u-c))),y[Ze](l[ut](["color"])),this.group.add(y)}}});return c}),e("echarts/chart/gauge",[Yr,"./gauge/GaugeSeries","./gauge/GaugeView"],function(t){t("./gauge/GaugeSeries"),t("./gauge/GaugeView")}),e("echarts/chart/funnel/FunnelSeries",[Yr,Tt,At,Ct,A],function(t){var e=t(Tt),i=t(At),n=t(Ct);t(A)[Gt]({type:"series.funnel",init:function(t){this[g]("init",arguments),this[m]=function(){return this._dataBeforeProcessed},this._defaultLabelLine(t)},getInitialData:function(t,i){var r=n(["value"],t.data),a=new e(r,this);return a[Et](t.data),a},_defaultLabelLine:function(t){i[un](t.labelLine,["show"]);var e=t.labelLine[ln],n=t.labelLine[cn];e.show=e.show&&t.label[ln].show,n.show=n.show&&t.label[cn].show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{normal:{show:!0,position:"outer"},emphasis:{show:!0}},labelLine:{normal:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},emphasis:{}},itemStyle:{normal:{borderColor:"#fff",borderWidth:1},emphasis:{}}}})}),e("echarts/chart/funnel/FunnelView",[Yr,gt,jr,it],function(t){function e(t,e){function i(){o[Di]=o.hoverIgnore,s[Di]=s.hoverIgnore}function r(){o[Di]=o.normalIgnore,s[Di]=s.normalIgnore}n.Group.call(this);var a=new n[qe],o=new n[We],s=new n.Text;this.add(a),this.add(o),this.add(s),this[vt](t,e,!0),this.on(cn,i).on(ln,r).on(Ne,i).on(Ee,r)}function i(t,e,i,n){var r=n[er](tr),a=n.get(On),o=a===ar||"inner"===a||a===or;return{fill:r[Re]()||(o?"#fff":t[Lt](e,"color")),textFont:r[Jn](),text:t[Xt][ct](e,i)||t[tn](e)}}var n=t(gt),r=t(jr),a=e[Xr],o=[ne,ln,Sr];a[vt]=function(t,e,i){var a=this[Rn](0),s=t[Xt],l=t[Qi](e),c=t[It](e),u=t[Qi](e).get(o);u=null==u?1:u,i?(a[ti]({points:c[Ye]}),a[Ze]({opacity:0}),n[ze](a,{style:{opacity:u}},s)):n[Pe](a,{shape:{points:c[Ye]}},s);var h=l[er](ne),d=t[Lt](e,"color");a[Ze](r[rr]({fill:d},h[er](ln)[ut]())),a[Ge]=h[er](cn)[ut](),this._updateLabel(t,e),n[Be](this)},a._updateLabel=function(t,e){var r=this[Rn](1),a=this[Rn](2),o=t[Xt],s=t[Qi](e),l=t[It](e),c=l.label,u=t[Lt](e,"color");n[ze](r,{shape:{points:c.linePoints||c.linePoints}},o),n[ze](a,{style:{x:c.x,y:c.y}},o),a.attr({style:{textAlign:c[fi],textBaseline:c[di],textFont:c.font},rotation:c[Ui],origin:[c.x,c.y],z2:10});var h=s[er](S),d=s[er](w),f=s[er]("labelLine.normal"),p=s[er]("labelLine.emphasis");a[Ze](i(t,e,ln,h)),a[Di]=a.normalIgnore=!h.get("show"),a.hoverIgnore=!d.get("show"),r[Di]=r.normalIgnore=!f.get("show"),r.hoverIgnore=!p.get("show"),r[Ze]({stroke:u}),r[Ze](f[er](re)[Y]()),a[Ge]=i(t,e,cn,d),r[Ge]=p[er](re)[Y]()},r[Ir](e,n.Group);var s=t(it)[Pr]({type:"funnel",render:function(t,i,n){var r=t[an](),a=this._data,o=this.group;r.diff(a).add(function(t){var i=new e(r,t);r[kt](t,i),o.add(i)})[ye](function(t,e){var i=a[gi](e);i[vt](r,t),o.add(i),r[kt](t,i)})[Ti](function(t){var e=a[gi](t);o[Ti](e)})[lt](),this._data=r},remove:function(){this.group[wi](),this._data=null}});return s}),e("echarts/chart/funnel/funnelLayout",[Yr,I,mt],function(t){function e(t,e){return r[In](t[k](),{width:e[yn](),height:e[gn]()})}function i(t,e){for(var i=t[zt]("value",function(t){return t}),n=[],r="ascending"===e,a=0,o=t.count();o>a;a++)n[a]=a;return n.sort(function(t,e){return r?i[t]-i[e]:i[e]-i[t]}),n}function n(t){t.each(function(e){var i,n,r,a,o=t[Qi](e),s=o[er](S),l=s.get(On),c=o[er]("labelLine.normal"),u=t[It](e),h=u[Ye],d="inner"===l||l===ar||l===or;if(d)n=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,r=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,i=or,a=[[n,r],[n,r]];else{var f,p,v,m=c.get(Hr);"left"===l?(f=(h[3][0]+h[0][0])/2,p=(h[3][1]+h[0][1])/2,v=f-m,n=v-5,i="right"):(f=(h[1][0]+h[2][0])/2,p=(h[1][1]+h[2][1])/2,v=f+m,n=v+5,i="left");var g=p;a=[[f,p],[v,g]],r=g}u.label={linePoints:a,x:n,y:r,textBaseline:"middle",textAlign:i,inside:d}})}var r=t(I),o=t(mt),s=o[Fn];return function(t,r){t[oe]("funnel",function(t){var l=t[an](),c=t.get("sort"),u=e(t,r),h=i(l,c),d=[s(t.get("minSize"),u.width),s(t.get("maxSize"),u.width)],f=l[Ot]("value"),p=t.get("min"),v=t.get("max");null==p&&(p=Math.min(f[0],0)),null==v&&(v=f[1]);var m=t.get("funnelAlign"),g=t.get("gap"),y=(u[pr]-g*(l.count()-1))/l.count(),x=u.y,_=function(t,e){var i,n=l.get("value",t)||0,r=o[Hn](n,[p,v],d,!0);switch(m){case"left":i=u.x;break;case or:i=u.x+(u.width-r)/2;break;case"right":i=u.x+u.width-r}return[[i,e],[i+r,e]]};"ascending"===c&&(y=-y,g=-g,x+=u[pr],h=h[a]());for(var w=0;wo;o++)r[n[o]].model.getActiveState()!==ln&&(a=!0);for(var l=0,c=t.count();c>l;l++){var u,h=t.getValues(n,l);if(a){u="active";for(var o=0,s=n[Hr];s>o;o++){var d=n[o],f=r[d].model.getActiveState(h[o],o);if("inactive"===f){u="inactive";break}}}else u=ln;e.call(i,u,l)}},axisCoordToPoint:function(t,e){var i=this._axesLayout[e],n=[t,0];return s[vr](n,n,i[Wi]),n},getAxisLayout:function(t){return r.clone(this._axesLayout[t])}},e}),e("echarts/coord/parallel/parallelCreator",[Yr,"./Parallel","../../CoordinateSystem"],function(t){function e(t,e){var n=[];return t[Kt]("parallel",function(r,a){var o=new i(r,t,e);o.name="parallel_"+a,o[ge](r,e),r[St]=o,o.model=r,n.push(o)}),t[ae](function(t){if("parallel"===t.get(St)){var e=t.get("parallelIndex");t[St]=n[e]}}),n}var i=t("./Parallel");t("../../CoordinateSystem")[vn]("parallel",{create:e})}),e("echarts/coord/parallel/AxisModel",[Yr,P,jr,"../../model/mixin/makeStyleMapper","../axisModelCreator",mt,"../axisModelCommonMixin"],function(t){function e(t,e){return e.type||(e.data?Mt:"value")}var i=t(P),n=t(jr),r=t("../../model/mixin/makeStyleMapper"),a=t("../axisModelCreator"),o=t(mt),s=i[Pr]({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return r([["fill","color"],[Cr,Yn],[Ar,$n],["width","width"],[Sr,Sr]]).call(this[er]("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=n.clone(t);if(e)for(var i=e[Hr]-1;i>=0;i--)o.asc(e[i])},getActiveState:function(t){var e=this.activeIntervals;if(!e[Hr])return ln;if(null==t)return"inactive";for(var i=0,n=e[Hr];n>i;i++)if(e[i][0]<=t&&t<=e[i][1])return"active";return"inactive"}}),l={type:"value",dim:null,parallelIndex:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},z:10};return n.merge(s[Xr],t("../axisModelCommonMixin")),a("parallel",s,e,l),s}),e("echarts/coord/parallel/ParallelModel",[Yr,jr,P,"./AxisModel"],function(t){var e=t(jr),i=t(P);t("./AxisModel"),i[Pr]({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",parallelAxisDefault:null},init:function(){i[Xr].init.apply(this,arguments),this[An]({})},mergeOption:function(t){var i=this[Un];t&&e.merge(i,t),this._initDimensions()},contains:function(t,e){var i=t.get("parallelIndex");return null!=i&&e[pn]("parallel",i)===this},_initDimensions:function(){var t=this[Nt]=[],i=this.parallelAxisIndex=[],n=e[Ur](this.dependentModels.parallelAxis,function(t){return t.get("parallelIndex")===this.componentIndex});e.each(n,function(e){t.push("dim"+e.get("dim")),i.push(e.componentIndex)})}})}),e("echarts/component/axis/parallelAxisAction",[Yr,A],function(t){var e=t(A),i={type:"axisAreaSelect",event:"axisAreaSelected",update:"updateVisual"};e[qt](i,function(t,e){e[Kt]({mainType:"parallelAxis",query:t},function(e){e.axis.model.setActiveIntervals(t.intervals)})})}),e("echarts/component/helper/SelectController",[Yr,ji,jr,gt],function(t){function e(t,e,i){p.call(this),this.type=t,this.zr=e,this.opt=v.clone(i),this.group=new m.Group,this._containerRect=null,this._track=[],this._dragging,this._cover,this._disabled=!0,this._handlers={mousedown:g(r,this),mousemove:g(a,this),mouseup:g(o,this)},x(S,function(t){this.zr.on(t,this._handlers[t])},this)}function i(t,e){var i=this.group[Ni](t,e);return!this._containerRect||this._containerRect[hi](i[0],i[1])}function n(t){var e=t.event;e.preventDefault&&e.preventDefault()}function r(t){if(!(this._disabled||t[Ei]&&t[Ei][Ii])){n(t);var e=t[Ce],r=t[Ae];i.call(this,e,r)&&(this._dragging=!0,this._track=[[e,r]])}}function a(t){this._dragging&&!this._disabled&&(n(t),s.call(this,t))}function o(t){this._dragging&&!this._disabled&&(n(t),s.call(this,t,!0),this._dragging=!1,this._track=[])}function s(t,e){var n=t[Ce],r=t[Ae];if(i.call(this,n,r)){this._track.push([n,r]);var a=l.call(this)?A[this.type].getRanges.call(this):[];c.call(this,a),this[xi](y,v.clone(a)),e&&this[xi]("selectEnd",v.clone(a))}}function l(){var t=this._track;if(!t[Hr])return!1;var e=t[t[Hr]-1],i=t[0],n=e[0]-i[0],r=e[1]-i[1],a=b(n*n+r*r,.5);return a>M}function c(t){var e=A[this.type];t&&t[Hr]?(this._cover||(this._cover=e[fr].call(this),this.group.add(this._cover)),e[ye].call(this,t)):(this.group[Ti](this._cover),this._cover=null)}function u(){var t=this.group,e=t[Fi];e&&e[Ti](t)}function h(){var t=this.opt;return new m.Rect({style:{stroke:t[Ar],fill:t.fill,lineWidth:t[Cr],opacity:t[Sr]}})}function d(){return v.map(this._track,function(t){return this.group[Ni](t[0],t[1])},this)}function f(){var t=d.call(this),e=t[Hr]-1;return 0>e&&(e=0),[t[0],t[e]]}var p=t(ji),v=t(jr),m=t(gt),g=v.bind,x=v.each,_=Math.min,w=Math.max,b=Math.pow,M=2,S=[Le,ke,Te];e[Xr]={constructor:e,enable:function(t,e){this._disabled=!1,u.call(this),this._containerRect=e!==!1?e||t[Qn]():null,t.add(this.group)},update:function(t){c.call(this,t&&v.clone(t))},disable:function(){this._disabled=!0,u.call(this)},dispose:function(){this.disable(),x(S,function(t){this.zr.off(t,this._handlers[t])},this)}},v.mixin(e,p);var A={line:{create:h,getRanges:function(){var t=f.call(this),e=_(t[0][0],t[1][0]),i=w(t[0][0],t[1][0]);return[[e,i]]},update:function(t){var e=t[0],i=this.opt.width;this._cover[ti]({x:e[0],y:-i/2,width:e[1]-e[0],height:i})}},rect:{create:h,getRanges:function(){var t=f.call(this),e=[_(t[1][0],t[0][0]),_(t[1][1],t[0][1])],i=[w(t[1][0],t[0][0]),w(t[1][1],t[0][1])];return[[[e[0],i[0]],[e[1],i[1]]]]},update:function(t){var e=t[0];this._cover[ti]({x:e[0][0],y:e[1][0],width:e[0][1]-e[0][0],height:e[1][1]-e[1][0]})}}};return e}),e("echarts/component/axis/ParallelAxisView",[Yr,jr,"./AxisBuilder","../helper/SelectController",A],function(t){function e(t,e,i){return i&&"axisAreaSelect"===i.type&&e[wn]({mainType:"parallelAxis",query:i})[0]===t}var i=t(jr),n=t("./AxisBuilder"),r=t("../helper/SelectController"),a=[x,z,_,"axisName"],o=t(A)[Bt]({type:"parallelAxis",_selectController:null,render:function(t,r,o,s){if(!e(t,r,s)&&(this.axisModel=t,this.api=o,this.group[wi](),t.get("show"))){var l=r[pn]("parallel",t.get("parallelIndex"))[St],c=t.getAreaSelectStyle(),u=c.width,h=l.getAxisLayout(t.axis.dim),d=i[Pr]({strokeContainThreshold:u,silent:!(u>0)},h),f=new n(t,d);i.each(a,f.add,f);var p=f.getGroup();this.group.add(p),this._buildSelectController(p,c,t,o)}},_buildSelectController:function(t,e,n,a){var o=n.axis,s=this._selectController;s||(s=this._selectController=new r("line",a.getZr(),e),s.on(y,i.bind(this._onSelected,this))),s[l](t);var c=i.map(n.activeIntervals,function(t){return[o[R](t[0],!0),o[R](t[1],!0)]});s[ye](c)},_onSelected:function(t){var e=this.axisModel,n=e.axis,r=i.map(t,function(t){return[n[V](t[0],!0),n[V](t[1],!0)]});this.api[mn]({type:"axisAreaSelect",parallelAxisId:e.id,intervals:r})},remove:function(){this._selectController&&this._selectController.disable()},dispose:function(){this._selectController&&(this._selectController[ue](),this._selectController=null)}});return o}),e("echarts/component/parallelAxis",[Yr,"../coord/parallel/parallelCreator","./axis/parallelAxisAction","./axis/ParallelAxisView"],function(t){t("../coord/parallel/parallelCreator"),t("./axis/parallelAxisAction"),t("./axis/ParallelAxisView")}),e("echarts/coord/parallel/parallelPreprocessor",[Yr,jr,At],function(t){function e(t){if(!t.parallel){var e=!1;n.each(t[Mn],function(t){t&&"parallel"===t.type&&(e=!0)}),e&&(t.parallel=[{}])}}function i(t){var e=r[hn](t.parallelAxis);n.each(e,function(e){if(n[Tn](e)){var i=e.parallelIndex||0,a=r[hn](t.parallel)[i];a&&a.parallelAxisDefault&&n.merge(e,a.parallelAxisDefault,!1)}})}var n=t(jr),r=t(At);return function(t){e(t),i(t)}}),e("echarts/component/parallel",[Yr,"../coord/parallel/parallelCreator","../coord/parallel/ParallelModel","./parallelAxis",X,"../coord/parallel/parallelPreprocessor"],function(t){t("../coord/parallel/parallelCreator"),t("../coord/parallel/ParallelModel"),t("./parallelAxis");var e=t(X);e[Bt]({type:"parallel"}),e[jt](t("../coord/parallel/parallelPreprocessor"))}),e("echarts/chart/parallel/ParallelSeries",[Yr,Tt,jr,_t],function(t){function e(t,e,i){var r=t.get("data"),a=+e[Wn]("dim","");r&&r[Hr]&&n.each(i,function(t){if(t){var e=n[Br](r,t[a]);t[a]=e>=0?e:NaN}})}var i=t(Tt),n=t(jr),r=t(_t);return r[Pr]({type:"series.parallel",dependencies:["parallel"],getInitialData:function(t,r){var a=r[pn]("parallel",this.get("parallelIndex")),o=a[Nt],s=a.parallelAxisIndex,l=t.data,c=n.map(o,function(t,i){var n=r[pn]("parallelAxis",s[i]);return n.get("type")===Mt?(e(n,t,l),{name:t,type:"ordinal"}):t}),u=new i(c,this);return u[Et](l),u},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{normal:{show:!1},emphasis:{show:!1}},inactiveOpacity:.05,activeOpacity:1,lineStyle:{normal:{width:2,opacity:.45,type:"solid"}},animationEasing:"linear"}})}),e("echarts/chart/parallel/ParallelView",[Yr,gt,jr,it],function(t){function e(t,e,i){var n=t.model,r=t[L](),o=new a.Rect({shape:{x:r.x,y:r.y,width:r.width,height:r[pr]}}),s=n.get(u)===Vn?"width":pr;return o[ti](s,0),a[Pe](o,{shape:{width:r.width,height:r[pr]}},e,i),o}function i(t,e,i,n){for(var a=0,o=e[Hr]-1;o>a;a++){var s=e[a],l=e[a+1],c=t[a],u=t[a+1];n(r(c,i[Q](s).type)||r(u,i[Q](l).type)?null:[i[rt](c,s),i[rt](u,l)],a)}}function n(t){return new a[We]({shape:{points:t},silent:!0})}function r(t,e){return e===Mt?null==t:null==t||isNaN(t)}var a=t(gt),o=t(jr),s=t(it)[Pr]({type:"parallel",init:function(){this._dataGroup=new a.Group,this.group.add(this._dataGroup),this._data},render:function(t,r,s,l){function c(t){var e=f.getValues(m,t),r=new a.Group;d.add(r),i(e,m,v,function(t,e){t&&r.add(n(t))}),f[kt](t,r)}function u(e,r){var o=f.getValues(m,e),s=p[gi](r),l=[],c=0;i(o,m,v,function(e,i){var r=s[Rn](c++);e&&!r?l.push(n(e)):e&&a[ze](r,{shape:{points:e}},t)});for(var u=s.childCount()-1;u>=c;u--)s[Ti](s[Rn](u));for(var u=0,h=l[Hr];h>u;u++)s.add(l[u]);f[kt](e,s)}function h(t){var e=p[gi](t);d[Ti](e)}var d=this._dataGroup,f=t[an](),p=this._data,v=t[St],m=v[Nt];f.diff(p).add(c)[ye](u)[Ti](h)[lt](),f[vi](function(t,e){var i=f[Qi](e),n=i[er]($);t[En](function(t){t[Ze](o[Pr](n[Y](),{stroke:f[Lt](e,"color"),opacity:f[Lt](e,Sr)}))})}),this._data||d.setClipPath(e(v,t,function(){d.removeClipPath()})),this._data=f},remove:function(){this._dataGroup&&this._dataGroup[wi](),this._data=null}});return s}),e("echarts/chart/parallel/parallelVisual",[Yr],function(t){return function(t,e){t[oe]("parallel",function(e){var i=e[er](b),n=t.get("color"),r=i.get("color")||n[e[on]%n[Hr]],a=e.get("inactiveOpacity"),o=e.get("activeOpacity"),s=e[er]($)[Y](),l=e[St],c=e[an](),u={normal:s[Sr],active:o,inactive:a};l.eachActiveState(c,function(t,e){c[se](e,Sr,u[t])}),c[ce]("color",r)})}}),e("echarts/chart/parallel",[Yr,X,"../component/parallel","./parallel/ParallelSeries","./parallel/ParallelView","./parallel/parallelVisual"],function(t){var e=t(X);t("../component/parallel"),t("./parallel/ParallelSeries"),t("./parallel/ParallelView"),e[Ht]("chart",t("./parallel/parallelVisual"))}),e("echarts/chart/sankey/SankeySeries",[Yr,_t,"../helper/createGraphFromNodeEdge"],function(t){var e=t(_t),i=t("../helper/createGraphFromNodeEdge");return e[Pr]({type:"series.sankey",layoutInfo:null,getInitialData:function(t,e){var n=t.edges||t.links,r=t.data||t.nodes;if(r&&n){var a=i(r,n,this,!0);return a.data}},getGraph:function(){return this[an]().graph},getEdgeData:function(){return this.getGraph().edgeData},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",nodeWidth:20,nodeGap:8,layoutIterations:32,label:{normal:{show:!0,position:"right",textStyle:{color:"#000",fontSize:12}},emphasis:{show:!0}},itemStyle:{normal:{},emphasis:{}},lineStyle:{normal:{color:"#314656",opacity:.2,curveness:.5},emphasis:{opacity:.6}},color:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],animationEasing:"linear",animationDuration:1e3}})}),e("echarts/chart/sankey/SankeyView",[Yr,gt,At,jr,A],function(t){function e(t,e,n){var r=new i.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t[pr]+20}});return i[Pe](r,{shape:{width:t.width+20,height:t[pr]+20}},e,n),r}var i=t(gt),n=t(At),a=t(jr),s=i[He]({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0},buildPath:function(t,e){var i=e.extent/2;t[li](e.x1,e.y1-i),t[oi](e.cpx1,e.cpy1-i,e.cpx2,e.cpy2-i,e.x2,e.y2-i),t[si](e.x2,e.y2+i),t[oi](e.cpx2,e.cpy2+i,e.cpx1,e.cpy1+i,e.x1,e.y1+i),t[ai]()}});return t(A)[Ft]({type:"sankey",_model:null,render:function(t,l,c){var u=t.getGraph(),h=this.group,d=t.layoutInfo;this[Jt]=t,h[wi](),h[On]=[d.x,d.y];var p=u.edgeData,v=t[Un],m=n[sn](t,p,v.edges||v.links);m[f]=function(t){var e=this[Ji](t),i=e.data,n=i.source+" -- "+i[Ei];return e.value&&(n+=":"+e.value),n},u[o](function(e){var n=e[r](),o=e[er](),s=o[er](S),l=s[er](tr),c=o[er](w),u=c[er](tr),d=new i.Rect({shape:{x:n.x,y:n.y,width:e[r]().dx,height:e[r]().dy},style:{text:s.get("show")?t[ct](e[yi],ln)||e.id:"",textFont:l[Jn](),textFill:l[Re](),textPosition:s.get(On)}});d[Ze](a[rr]({fill:e[Pt]("color")},o[er](b)[ut]())),i[Be](d,a[Pr](e[er](M),{text:c.get("show")?t[ct](e[yi],cn)||e.id:"",textFont:u[Jn](),textFill:u[Re](),textPosition:c.get(On)})),h.add(d)}),u.eachEdge(function(t){var e=new s;e[yi]=t[yi],e[Xt]=m;var n=t[er]($),a=n.get("curveness"),o=t.node1[r](),l=t.node2[r](),c=t[r]();e.shape.extent=Math.max(1,c.dy);var u=o.x+o.dx,d=o.y+c.sy+c.dy/2,f=l.x,p=l.y+c.ty+c.dy/2,v=u*(1-a)+f*a,g=d,y=u*a+f*(1-a),x=p;e[ti]({x1:u,y1:d,x2:f,y2:p,cpx1:v,cpy1:g,cpx2:y,cpy2:x}),e[Ze](n[ut]()),i[Be](e,t[er]("lineStyle.emphasis")[ut]()),h.add(e)}),this._data||h.setClipPath(e(h[Qn](),t,function(){h.removeClipPath()})),this._data=t[an]()}})}),e("echarts/util/array/nest",[Yr,jr],function(t){function e(){function t(e,r){if(r>=n[Hr])return e;for(var a=-1,o=e[Hr],s=n[r++],l={},c={};++a=n[Hr])return t;var o=[],s=r[a++];return i.each(t,function(t,i){o.push({key:i,values:e(t,a)})}),s?o.sort(function(t,e){return s(t.key,e.key)}):o}var n=[],r=[];return{key:function(t){return n.push(t),this},sortKeys:function(t){return r[n[Hr]-1]=t,this},entries:function(i){return e(t(i,0),0)}}}var i=t(jr);return e}),e("echarts/chart/sankey/sankeyLayout",[Yr,I,"../../util/array/nest",jr],function(t){function e(t,e){return S[In](t[k](),{width:e[yn](),height:e[gn]()})}function i(t,e,i,n,r,a,s){o(t,i,r),c(t,e,a,n,s),m(t)}function n(t){C.each(t,function(t){var e=x(t.outEdges,M),i=x(t.inEdges,M),n=Math.max(e,i);t.setLayout({value:n},!0)})}function o(t,e,i){for(var n=t,r=null,a=0,o=0;n[Hr];)r=[],C.each(n,function(t){t.setLayout({x:a},!0),t.setLayout({dx:e},!0),C.each(t.outEdges,function(t){r.push(t.node2)})}),n=r,++a;s(t,a),o=(i-e)/(a-1),l(t,o)}function s(t,e){C.each(t,function(t){t.outEdges[Hr]||t.setLayout({x:e-1},!0)})}function l(t,e){C.each(t,function(t){var i=t[r]().x*e;t.setLayout({x:i},!0)})}function c(t,e,i,n,a){var o=A().key(function(t){return t[r]().x;
}).sortKeys(b).entries(t).map(function(t){return t.values});u(t,o,e,i,n),h(o,n,i);for(var s=1;a>0;a--)s*=.99,d(o,s),h(o,n,i),p(o,s),h(o,n,i)}function u(t,e,i,n,a){var o=[];C.each(e,function(t){var e=t[Hr],i=0;C.each(t,function(t){i+=t[r]().value});var s=(n-(e-1)*a)/i;o.push(s)}),o.sort(function(t,e){return t-e});var s=o[0];C.each(e,function(t){C.each(t,function(t,e){t.setLayout({y:e},!0);var i=t[r]().value*s;t.setLayout({dy:i},!0)})}),C.each(i,function(t){var e=+t.getValue()*s;t.setLayout({dy:e},!0)})}function h(t,e,i){C.each(t,function(t){var n,a,o,s=0,l=t[Hr];for(t.sort(w),o=0;l>o;o++){if(n=t[o],a=s-n[r]().y,a>0){var c=n[r]().y+a;n.setLayout({y:c},!0)}s=n[r]().y+n[r]().dy+e}if(a=s-e-i,a>0){var c=n[r]().y-a;for(n.setLayout({y:c},!0),s=n[r]().y,o=l-2;o>=0;--o)n=t[o],a=n[r]().y+n[r]().dy+e-s,a>0&&(c=n[r]().y-a,n.setLayout({y:c},!0)),s=n[r]().y}})}function d(t,e){C.each(t.slice()[a](),function(t){C.each(t,function(t){if(t.outEdges[Hr]){var i=x(t.outEdges,f)/x(t.outEdges,M),n=t[r]().y+(i-_(t))*e;t.setLayout({y:n},!0)}})})}function f(t){return _(t.node2)*t.getValue()}function p(t,e){C.each(t,function(t){C.each(t,function(t){if(t.inEdges[Hr]){var i=x(t.inEdges,v)/x(t.inEdges,M),n=t[r]().y+(i-_(t))*e;t.setLayout({y:n},!0)}})})}function v(t){return _(t.node1)*t.getValue()}function m(t){C.each(t,function(t){t.outEdges.sort(g),t.inEdges.sort(y)}),C.each(t,function(t){var e=0,i=0;C.each(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t[r]().dy}),C.each(t.inEdges,function(t){t.setLayout({ty:i},!0),i+=t[r]().dy})})}function g(t,e){return t.node2[r]().y-e.node2[r]().y}function y(t,e){return t.node1[r]().y-e.node1[r]().y}function x(t,e){var i,n=0,r=t[Hr],a=-1;if(1===arguments[Hr])for(;++at?-1:t>e?1:t==e?0:NaN}function M(t){return t.getValue()}var S=t(I),A=t("../../util/array/nest"),C=t(jr);return function(t,a){t[oe]("sankey",function(t){var o=t.get("nodeWidth"),s=t.get("nodeGap"),l=e(t,a);t.layoutInfo=l;var c=l.width,u=l[pr],h=t.getGraph(),d=h.nodes,f=h.edges;n(d);var p=d[Ur](function(t){return 0===t[r]().value}),v=0!==p[Hr]?0:t.get("layoutIterations");i(d,f,o,s,c,u,v)})}}),e("echarts/chart/sankey/sankeyVisual",[Yr,i],function(t){var e=t(i);return function(t,i){t[oe]("sankey",function(t){var i=t.getGraph(),n=i.nodes;n.sort(function(t,e){return t[r]().value-e[r]().value});var a=n[0][r]().value,o=n[n[Hr]-1][r]().value;n.forEach(function(i){var n=new e({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:t.get("color")}),s=n.mapValueToVisual(i[r]().value);i[ce]("color",s)})})}}),e("echarts/chart/sankey",[Yr,X,"./sankey/SankeySeries","./sankey/SankeyView","./sankey/sankeyLayout","./sankey/sankeyVisual"],function(t){var e=t(X);t("./sankey/SankeySeries"),t("./sankey/SankeyView"),e[Wt](t("./sankey/sankeyLayout")),e[Ht]("chart",t("./sankey/sankeyVisual"))}),e("echarts/chart/helper/WhiskerBoxDraw",[Yr,jr,gt,ni],function(t){function e(t,e,i,n){o.Group.call(this),this.bodyIndex,this.whiskerIndex,this.styleUpdater=i,this._createContent(t,e,n),this[vt](t,e,n),this._seriesModel}function i(t,e,i){return a.map(t,function(t){return t=t.slice(),t[e]=i.initBaseline,t})}function n(t){var e={};return a.each(t,function(t,i){e["ends"+i]=t}),e}function r(t){this.group=new o.Group,this.styleUpdater=t}var a=t(jr),o=t(gt),s=t(ni),l=s[Pr]({type:"whiskerInBox",shape:{},buildPath:function(t,e){for(var i in e)if(0===i[Br]("ends")){var n=e[i];t[li](n[0][0],n[0][1]),t[si](n[1][0],n[1][1])}}}),c=e[Xr];c._createContent=function(t,e,r){var s=t[It](e),c=s.chartLayout===Vn?1:0,u=0;this.add(new o[qe]({shape:{points:r?i(s.bodyEnds,c,s):s.bodyEnds},style:{strokeNoScale:!0},z2:100})),this.bodyIndex=u++;var h=a.map(s.whiskerEnds,function(t){return r?i(t,c,s):t});this.add(new l({shape:n(h),style:{strokeNoScale:!0},z2:100})),this.whiskerIndex=u++},c[vt]=function(t,e,i){var r=this._seriesModel=t[Xt],a=t[It](e),s=o[i?Pe:ze];s(this[Rn](this.bodyIndex),{shape:{points:a.bodyEnds}},r),s(this[Rn](this.whiskerIndex),{shape:n(a.whiskerEnds)},r),this.styleUpdater.call(null,this,t,e)},a[Ir](e,o.Group);var u=r[Xr];return u[vt]=function(t){var i=this.group,n=this._data,r=this.styleUpdater;t.diff(n).add(function(n){if(t.hasValue(n)){var a=new e(t,n,r,!0);t[kt](n,a),i.add(a)}})[ye](function(a,o){var s=n[gi](o);return t.hasValue(a)?(s?s[vt](t,a):s=new e(t,a,r),i.add(s),void t[kt](a,s)):void i[Ti](s)})[Ti](function(t){var e=n[gi](t);e&&i[Ti](e)})[lt](),this._data=t},u[Ti]=function(){var t=this.group,e=this._data;this._data=null,e&&e[vi](function(e){e&&t[Ti](e)})},r}),e("echarts/chart/helper/whiskerBoxCommon",[Yr,Tt,Ct,"../helper/WhiskerBoxDraw"],function(t){function e(t){return null==t.value?t:t.value}var i=t(Tt),n=t(Ct),r=t("../helper/WhiskerBoxDraw"),a={_baseAxisDim:null,getInitialData:function(t,r){var a,o,s=r[pn]("xAxis",this.get("xAxisIndex")),l=r[pn]("yAxis",this.get("yAxisIndex")),c=s.get("type"),h=l.get("type");c===Mt?(t[u]=Vn,a=s[bt](),o=!0):h===Mt?(t[u]=zn,a=l[bt](),o=!0):t[u]=t[u]||Vn,this._baseAxisDim=t[u]===Vn?"x":"y";var d=t.data,f=this[Nt]=["base"][Or](this.valueDimensions);n(f,d);var p=new i(f,this);return p[Et](d,a?a.slice():null,function(t,i,n,r){var a=e(t);return o?"base"===i?n:a[r-1]:a[r]}),p},getDimensionsOnAxis:function(t){var e=this.valueDimensions.slice(),i=["base"],n={horizontal:{x:i,y:e},vertical:{x:e,y:i}};return n[this.get(u)][t]},getBaseAxisModel:function(){var t=this._baseAxisDim;return this[ir][pn](t+"Axis",this.get(t+"AxisIndex"))}},o={init:function(){var t=this._whiskerBoxDraw=new r(this.getStyleUpdater());this.group.add(t.group)},render:function(t,e,i){this._whiskerBoxDraw[vt](t[an]())},remove:function(t){this._whiskerBoxDraw[Ti]()}};return{seriesModelMixin:a,viewMixin:o}}),e("echarts/chart/boxplot/BoxplotSeries",[Yr,jr,_t,"../helper/whiskerBoxCommon"],function(t){var e=t(jr),i=t(_t),n=t("../helper/whiskerBoxCommon"),r=i[Pr]({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],valueDimensions:["min","Q1","median","Q3","max"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,layout:null,boxWidth:[7,50],itemStyle:{normal:{color:"#fff",borderWidth:1},emphasis:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});return e.mixin(r,n.seriesModelMixin,!0),r}),e("echarts/chart/boxplot/BoxplotView",[Yr,jr,it,gt,"../helper/whiskerBoxCommon"],function(t){function e(t,e,i){var n=e[Qi](i),a=n[er](s),o=e[Lt](i,"color"),c=a[ut]([$n]),u=t[Rn](t.whiskerIndex);u.style.set(c),u.style[Ar]=o,u.dirty();var h=t[Rn](t.bodyIndex);h.style.set(c),h.style[Ar]=o,h.dirty();var d=n[er](l)[ut]();r[Be](t,d)}var i=t(jr),n=t(it),r=t(gt),a=t("../helper/whiskerBoxCommon"),o=n[Pr]({type:"boxplot",getStyleUpdater:function(){return e}});i.mixin(o,a.viewMixin,!0);var s=[ne,ln],l=[ne,cn];return o}),e("echarts/chart/boxplot/boxplotVisual",[Yr],function(t){var e=[ne,ln,$n];return function(t,i){var n=t.get("color");t.eachRawSeriesByType("boxplot",function(i){var r=n[i[on]%n[Hr]],a=i[an]();a[ce]({legendSymbol:"roundRect",color:i.get(e)||r}),t[le](i)||a.each(function(t){var i=a[Qi](t);a[se](t,{color:i.get(e,!0)})})})}}),e("echarts/chart/boxplot/boxplotLayout",[Yr,jr,mt],function(t){function e(t){var e=[],i=[];return t[oe]("boxplot",function(t){var n=t.getBaseAxisModel().axis,a=r[Br](i,n);0>a&&(a=i[Hr],i[a]=n,e[a]={axis:n,seriesModels:[]}),e[a].seriesModels.push(t)}),e}function i(t){var e,i,n=t.axis,a=t.seriesModels,l=a[Hr],c=t.boxWidthList=[],u=t.boxOffsetList=[],h=[];if(n.type===Mt)i=n[tt]();else{var d=0;s(a,function(t){d=Math.max(d,t[an]().count())}),e=n[at](),Math.abs(e[1]-e[0])/d}s(a,function(t){var e=t.get("boxWidth");r[kr](e)||(e=[e,e]),h.push([o(e[0],i)||0,o(e[1],i)||0])});var f=.8*i-2,p=f/l*.3,v=(f-p*(l-1))/l,m=v/2-f/2;s(a,function(t,e){u.push(m),m+=p+v,c.push(Math.min(Math.max(v,h[e][0]),h[e][1]))})}function n(t,e,i){var n=t[St],r=t[an](),a=t[Nt],o=t.get(u),s=i/2;r.each(a,function(){function t(t){var i=[];i[f]=h,i[p]=t;var r;return isNaN(h)||isNaN(t)?r=[NaN,NaN]:(r=n[rt](i),r[f]+=e),r}function i(t,e){var i=t.slice(),n=t.slice();i[f]+=s,n[f]-=s,e?x.push(i,n):x.push(n,i)}function l(t){var e=[t.slice(),t.slice()];e[0][f]-=s,e[1][f]+=s,y.push(e)}var c=arguments,u=a[Hr],h=c[0],d=c[u],f=o===Vn?0:1,p=1-f,v=t(c[3]),m=t(c[1]),g=t(c[5]),y=[[m,t(c[2])],[g,t(c[4])]];l(m),l(g),l(v);var x=[];i(y[0][1],0),i(y[1][1],1),r[Dt](d,{chartLayout:o,initBaseline:v[p],median:v,bodyEnds:x,whiskerEnds:y})})}var r=t(jr),a=t(mt),o=a[Fn],s=r.each;return function(t,r){var a=e(t);s(a,function(t){var e=t.seriesModels;e[Hr]&&(i(t),s(e,function(e,i){n(e,t.boxOffsetList[i],t.boxWidthList[i])}))})}}),e("echarts/chart/boxplot",[Yr,X,"./boxplot/BoxplotSeries","./boxplot/BoxplotView","./boxplot/boxplotVisual","./boxplot/boxplotLayout"],function(t){var e=t(X);t("./boxplot/BoxplotSeries"),t("./boxplot/BoxplotView"),e[Ht]("chart",t("./boxplot/boxplotVisual")),e[Wt](t("./boxplot/boxplotLayout"))}),e("echarts/chart/candlestick/CandlestickSeries",[Yr,jr,_t,"../helper/whiskerBoxCommon",v],function(t){var e=t(jr),i=t(_t),n=t("../helper/whiskerBoxCommon"),r=t(v),a=r[$i],o=r[Yi],s=i[Pr]({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],valueDimensions:["open","close","lowest","highest"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,layout:null,itemStyle:{normal:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{borderWidth:2}},animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},formatTooltip:function(t,i){var n=e.map(this.valueDimensions,function(e){return e+": "+o(this._data.get(e,t))},this);return a(this.name)+Xi+n.join(Xi)}});return e.mixin(s,n.seriesModelMixin,!0),s}),e("echarts/chart/candlestick/CandlestickView",[Yr,jr,it,gt,"../helper/whiskerBoxCommon"],function(t){function e(t,e,i){var n=e[Qi](i),a=n[er](s),o=e[Lt](i,"color"),c=e[Lt](i,$n),u=a[ut](["color","color0",$n,"borderColor0"]),h=t[Rn](t.whiskerIndex);h.style.set(u),h.style[Ar]=c,h.dirty();var d=t[Rn](t.bodyIndex);d.style.set(u),d.style.fill=o,d.style[Ar]=c,d.dirty();var f=n[er](l)[ut]();r[Be](t,f)}var i=t(jr),n=t(it),r=t(gt),a=t("../helper/whiskerBoxCommon"),o=n[Pr]({type:"candlestick",getStyleUpdater:function(){return e}});i.mixin(o,a.viewMixin,!0);var s=[ne,ln],l=[ne,cn];return o}),e("echarts/chart/candlestick/preprocessor",[Yr,jr],function(t){var e=t(jr);return function(t){t&&e[kr](t[Mn])&&e.each(t[Mn],function(t){e[Tn](t)&&"k"===t.type&&(t.type="candlestick")})}}),e("echarts/chart/candlestick/candlestickVisual",[Yr],function(t){var e=[ne,ln,$n],i=[ne,ln,"borderColor0"],n=[ne,ln,"color"],r=[ne,ln,"color0"];return function(t,a){t.eachRawSeriesByType("candlestick",function(a){var o=a[an]();o[ce]({legendSymbol:"roundRect"}),t[le](a)||o.each(function(t){var a=o[Qi](t),s=o[It](t).sign;o[se](t,{color:a.get(s>0?n:r),borderColor:a.get(s>0?e:i)})})})}}),e("echarts/chart/candlestick/candlestickLayout",[Yr],function(t){function e(t,e){var a,o=t.getBaseAxisModel().axis,s=o.type===Mt?o[tt]():(a=o[at](),Math.abs(a[1]-a[0])/e.count());return s/2-2>n?s/2-2:s-n>r?n:Math.max(s-r,i)}var i=2,n=5,r=4;return function(t,i){t[oe]("candlestick",function(t){var i=t[St],n=t[an](),r=t[Nt],a=t.get(u),o=e(t,n);n.each(r,function(){function t(t){var e=[];return e[h]=c,e[d]=t,isNaN(c)||isNaN(t)?[NaN,NaN]:i[rt](e)}function e(t,e){var i=t.slice(),n=t.slice();i[h]+=o/2,n[h]-=o/2,e?S.push(i,n):S.push(n,i)}var s=arguments,l=r[Hr],c=s[0],u=s[l],h=a===Vn?0:1,d=1-h,f=s[1],p=s[2],v=s[3],m=s[4],g=Math.min(f,p),y=Math.max(f,p),x=t(g),_=t(y),w=t(v),b=t(m),M=[[b,_],[w,x]],S=[];e(_,0),e(x,1),n[Dt](u,{chartLayout:a,sign:f>p?-1:p>f?1:0,initBaseline:f>p?_[d]:x[d],bodyEnds:S,whiskerEnds:M})},!0)})}}),e("echarts/chart/candlestick",[Yr,X,"./candlestick/CandlestickSeries","./candlestick/CandlestickView","./candlestick/preprocessor","./candlestick/candlestickVisual","./candlestick/candlestickLayout"],function(t){var e=t(X);t("./candlestick/CandlestickSeries"),t("./candlestick/CandlestickView"),e[jt](t("./candlestick/preprocessor")),e[Ht]("chart",t("./candlestick/candlestickVisual")),e[Wt](t("./candlestick/candlestickLayout"))}),e("echarts/chart/effectScatter/EffectScatterSeries",[Yr,wt,_t],function(t){var e=t(wt),i=t(_t);return i[Pr]({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(t,i){var n=e(t.data,this,i);return n},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},xAxisIndex:0,yAxisIndex:0,polarIndex:0,geoIndex:0,symbolSize:10}})}),e("echarts/chart/helper/EffectSymbol",[Yr,jr,yt,gt,mt,"./Symbol"],function(t){function e(t){return n[kr](t)||(t=[+t,+t]),t}function i(t,e){l.call(this);var i=new s(t,e),n=new l;this.add(i),this.add(n),n.beforeUpdate=function(){this.attr(i.getScale())},this[vt](t,e)}var n=t(jr),r=t(yt),a=t(gt),o=t(mt),s=t("./Symbol"),l=a.Group,c=3,u=i[Xr];return u.stopEffectAnimation=function(){this[Rn](1)[wi]()},u.startEffectAnimation=function(t,e,i,n,a,o){for(var s=this._symbolType,l=this._color,u=this[Rn](1),h=0;c>h;h++){var d=r[pt](s,-.5,-.5,1,1,l);d.attr({style:{stroke:e===Ar?l:null,fill:"fill"===e?l:null,strokeNoScale:!0},z2:99,silent:!0,scale:[1,1],z:a,zlevel:o});var f=-h/c*t+n;d[Pi]("",!0).when(t,{scale:[i,i]}).delay(f).start(),d.animateStyle(!0).when(t,{opacity:0}).delay(f).start(),u.add(d)}},u[$t]=function(){this[xi](cn)},u[Yt]=function(){this[xi](ln)},u[vt]=function(t,i){function n(){w[xi](cn),p!==_i&&this.startEffectAnimation(g,m,v,y,x,_)}function r(){w[xi](ln),p!==_i&&this.stopEffectAnimation()}var a=t[Xt];this[Rn](0)[vt](t,i);var s=this[Rn](1),l=t[Qi](i),c=t[Lt](i,dt),u=e(t[Lt](i,ft)),h=t[Lt](i,"color");s.attr("scale",u),s[Si](function(t){t.attr({fill:h})});var d=l[Tr]("symbolOffset");if(d){var f=s[On];f[0]=o[Fn](d[0],u[0]),f[1]=o[Fn](d[1],u[1])}this._symbolType=c,this._color=h;var p=a.get("showEffectOn"),v=l.get("rippleEffect.scale"),m=l.get("rippleEffect.brushType"),g=1e3*l.get("rippleEffect.period"),y=i/t.count(),x=l[Tr]("z")||0,_=l[Tr](xe)||0;this.stopEffectAnimation(),p===_i&&this.startEffectAnimation(g,m,v,y,x,_);var w=this[Rn](0);this.on(Ne,n,this).on(Ee,r,this).on(cn,n,this).on(ln,r,this)},u.fadeOut=function(t){t&&t()},n[Ir](i,l),i}),e("echarts/chart/effectScatter/EffectScatterView",[Yr,nt,"../helper/EffectSymbol",A],function(t){var e=t(nt),i=t("../helper/EffectSymbol");t(A)[Ft]({type:"effectScatter",init:function(){this[K]=new e(i)},render:function(t,e,i){var n=t[an](),r=this[K];r[vt](n),this.group.add(r.group)},updateLayout:function(){this[K][bi]()},remove:function(t,e){this[K]&&this[K][Ti](e)}})}),e("echarts/chart/effectScatter",[Yr,jr,X,"./effectScatter/EffectScatterSeries","./effectScatter/EffectScatterView",j,U],function(t){var e=t(jr),i=t(X);t("./effectScatter/EffectScatterSeries"),t("./effectScatter/EffectScatterView"),i[Ht]("chart",e.curry(t(j),"effectScatter",ht,null)),i[Wt](e.curry(t(U),"effectScatter"))}),e("echarts/chart/lines/LinesSeries",[Yr,_t,Tt,jr],function(t){var e=t(_t),i=t(Tt),n=t(jr);return e[Pr]({type:"series.lines",dependencies:["grid","polar"],getInitialData:function(t,e){function r(t,e,i,n){return t.coord&&t.coord[n]}var a=[],o=[],s=[];n.each(t.data,function(t){a.push(t[0]),o.push(t[1]),s.push(n[Pr](n[Pr]({},n[kr](t[0])?null:t[0]),n[kr](t[1])?null:t[1]))});var l=t[St];if(l!==T&&"geo"!==l)throw new Error("Coordinate system can only be cartesian2d or geo in lines");var c="geo"===l?["lng","lat"]:["x","y"],u=new i(c,this),h=new i(c,this),d=new i(["value"],this);return u[Et](a,null,r),h[Et](o,null,r),d[Et](s),this.fromData=u,this.toData=h,d},formatTooltip:function(t){var e=this.fromData[tn](t),i=this.toData[tn](t);return e+" > "+i},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,geoIndex:0,effect:{show:!1,period:4,symbol:"circle",symbolSize:3,trailLength:.2},large:!1,largeThreshold:2e3,label:{normal:{show:!1,position:"end"}},lineStyle:{normal:{opacity:.5}}}})}),e("echarts/chart/helper/EffectLine",[Yr,gt,"./Line",jr,yt,"zrender/core/curve"],function(t){function e(t,e,i,n){r.Group.call(this);var o=new a(t,e,i,n);this.add(o),this._updateEffectSymbol(t,n)}function i(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}function n(){var t=this.__p1,e=this.__p2,i=this.__cp1,n=this.__t,r=this[On],a=l[ui],o=l.quadraticDerivativeAt;r[0]=a(t[0],i[0],e[0],n),r[1]=a(t[1],i[1],e[1],n);var s=o(t[0],i[0],e[0],n),c=o(t[1],i[1],e[1],n);this[Ui]=-Math.atan2(c,s)-Math.PI/2,this[Di]=!1}var r=t(gt),a=t("./Line"),o=t(jr),s=t(yt),l=t("zrender/core/curve"),c=e[Xr];return c._updateEffectSymbol=function(t,e){var r=t[Qi](e),a=r[er]("effect"),l=a.get(ft),c=a.get(dt);o[kr](l)||(l=[l,l]);var u=a.get("color")||t[Lt](e,"color"),h=this[Rn](1),d=1e3*a.get("period");(this._symbolType!==c||d!==this._period)&&(h=s[pt](c,-.5,-.5,1,1,u),h[Di]=!0,h.z2=100,this._symbolType=c,this._period=d,this.add(h),h.__t=0,h[Pi]("",!0).when(d,{__t:1}).delay(e/t.count()*d/2).during(o.bind(n,h)).start()),h[Ze](wr,u),h[Ze](a[ut](["color"])),h.attr("scale",l);var f=t[It](e);i(h,f),h[xt](u),h.attr("scale",l)},c[vt]=function(t,e,i,n){this[Rn](0)[vt](t,e,i,n),this._updateEffectSymbol(t,n)},c[bi]=function(t,e,n,r){this[Rn](0)[bi](t,e,n,r);var a=this[Rn](1),o=t[It](r);i(a,o)},o[Ir](e,r.Group),e}),e("echarts/chart/lines/LinesView",[Yr,"../helper/LineDraw","../helper/EffectLine","../helper/Line",A],function(t){var e=t("../helper/LineDraw"),i=t("../helper/EffectLine"),n=t("../helper/Line");t(A)[Ft]({type:"lines",init:function(){},render:function(t,r,a){var o=t[an](),s=this._lineDraw,l=t.get("effect.show");l!==this._hasEffet&&(s&&s[Ti](),s=this._lineDraw=new e(l?i:n),this._hasEffet=l);var c=t.get(xe),u=t.get("effect.trailLength"),h=a.getZr();h[be].getLayer(c).clear(!0),null!=this._lastZlevel&&h.configLayer(this._lastZlevel,{motionBlur:!1}),l&&u&&h.configLayer(c,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(u/10+.9,1),0)}),this.group.add(s.group),s[vt](o),this._lastZlevel=c},updateLayout:function(t,e,i){this._lineDraw[bi]();var n=i.getZr();n[be].getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw[Ti](e,!0)}})}),e("echarts/chart/lines/linesLayout",[Yr],function(t){return function(t){t[oe]("lines",function(t){var e=t[St],i=t.fromData,n=t.toData,r=t[an](),a=e[Nt];i.each(a,function(t,n,r){i[Dt](r,e[rt]([t,n]))}),n.each(a,function(t,i,r){n[Dt](r,e[rt]([t,i]))}),r.each(function(t){var e,a=i[It](t),o=n[It](t),s=r[Qi](t).get("lineStyle.normal.curveness");s>0&&(e=[(a[0]+o[0])/2-(a[1]-o[1])*s,(a[1]+o[1])/2-(o[0]-a[0])*s]),r[Dt](t,[a,o,e])})})}}),e("echarts/chart/lines",[Yr,"./lines/LinesSeries","./lines/LinesView",jr,X,"./lines/linesLayout","../visual/seriesColor"],function(t){t("./lines/LinesSeries"),t("./lines/LinesView");var e=t(jr),i=t(X);i[Wt](t("./lines/linesLayout")),i[Ht]("chart",e.curry(t("../visual/seriesColor"),"lines",re))}),e("echarts/chart/heatmap/HeatmapSeries",[Yr,_t,wt],function(t){var e=t(_t),i=t(wt);return e[Pr]({type:"series.heatmap",getInitialData:function(t,e){return i(t.data,this,e)},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,xAxisIndex:0,yAxisIndex:0,geoIndex:0,blurSize:20}})}),e("echarts/chart/heatmap/HeatmapLayer",[Yr,jr],function(t){function e(){var t=r.createCanvas();this[Zr]=t,this.blurSize=30,this[Sr]=1,this._gradientPixels={}}var i=20,n=256,r=t(jr);return e[Xr]={update:function(t,e,r,a,o,s){var l=this._getBrush(),c=this._getGradient(t,o,"inRange"),u=this._getGradient(t,o,"outOfRange"),h=i+this.blurSize,d=this[Zr],f=d[Gr]("2d"),p=t[Hr];d.width=e,d[pr]=r;for(var v=0;p>v;++v){var m=t[v],g=m[0],y=m[1],x=m[2],_=a(x);f.globalAlpha=_,f.drawImage(l,g-h,y-h)}for(var w=f.getImageData(0,0,d.width,d[pr]),b=w.data,M=0,S=b[Hr];S>M;){var _=b[M+3]/256,A=4*Math.floor(_*(n-1));if(_>0){var C=s(_)?c:u;b[M++]=C[A],b[M++]=C[A+1],b[M++]=C[A+2],b[M++]*=this[Sr]*C[A+3]}else M+=4}return f.putImageData(w,0,0),d},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=r.createCanvas()),e=i+this.blurSize,n=2*e;t.width=n,t[pr]=n;var a=t[Gr]("2d");return a.clearRect(0,0,n,n),a[br]=n,a[Mr]=this.blurSize,a[wr]="#000",a[ci](),a.arc(-e,e,i,0,2*Math.PI,!0),a[ai](),a.fill(),t},_getGradient:function(t,e,i){for(var n=this._gradientPixels,r=n[i]||(n[i]=new Uint8ClampedArray(1024)),a=[],o=0,s=0;256>s;s++)e[i](s/255,!0,a),r[o++]=a[0],r[o++]=a[1],r[o++]=a[2],r[o++]=a[3];return r}},e}),e("echarts/chart/heatmap/HeatmapView",[Yr,gt,"./HeatmapLayer",jr,A],function(t){function e(t,e,i){var n=t[1]-t[0];e=a.map(e,function(e){return{interval:[(e[N][0]-t[0])/n,(e[N][1]-t[0])/n]}});var r=e[Hr],o=0;return function(t){for(var n=o;r>n;n++){var a=e[n][N];if(a[0]<=t&&t<=a[1]){o=n;break}}if(n===r)for(var n=o-1;n>=0;n--){var a=e[n][N];if(a[0]<=t&&t<=a[1]){o=n;break}}return n>=0&&r>n&&i[n]}}function i(t,e){var i=t[1]-t[0];return e=[(e[0]-t[0])/i,(e[1]-t[0])/i],function(t){return t>=e[0]&&t<=e[1]}}var n=t(gt),r=t("./HeatmapLayer"),a=t(jr);return t(A)[Ft]({type:"heatmap",render:function(t,e,i){var n;if(e[Kt]("visualMap",function(e){e.eachTargetSeries(function(i){i===t&&(n=e)})}),!n)throw new Error("Heatmap must use with visualMap");this.group[wi]();var r=t[St];r.type===T?this._renderOnCartesian(r,t,i):"geo"===r.type&&this._renderOnGeo(r,t,n,i)},_renderOnCartesian:function(t,e,i){var r=t[Q]("x"),a=t[Q]("y"),o=this.group;if(r.type!==Mt||a.type!==Mt)throw new Error("Heatmap on cartesian must have two category axes");if(!r[et]||!a[et])throw new Error("Heatmap on cartesian must have two axes with boundaryGap true");var s=r[tt](),l=a[tt](),c=e[an]();c.each(["x","y","z"],function(i,r,a,u){var h=c[Qi](u),d=t[rt]([i,r]);if(!isNaN(a)){var f=new n.Rect({shape:{x:d[0]-s/2,y:d[1]-l/2,width:s,height:l},style:{fill:c[Lt](u,"color")}}),p=h[er](b)[ut](["color"]),v=h[er](M)[ut](),m=h[er](S),g=h[er](w),y=e[nn](u),x="-";y&&null!=y[2]&&(x=y[2]),m.get("show")&&(n[Oe](p,m),p.text=e[ct](u,ln)||x),g.get("show")&&(n[Oe](v,g),v.text=e[ct](u,cn)||x),f[Ze](p),n[Be](f,v),o.add(f),c[kt](u,f)}})},_renderOnGeo:function(t,a,o,s){var l=o.targetVisuals.inRange,c=o.targetVisuals.outOfRange,u=a[an](),h=this._hmLayer||this._hmLayer||new r;h.blurSize=a.get("blurSize");var d=t.getViewRect().clone(),f=t.getRoamTransform();d[vr](f);var p=Math.max(d.x,0),v=Math.max(d.y,0),m=Math.min(d.width+d.x,s[yn]()),g=Math.min(d[pr]+d.y,s[gn]()),x=m-p,_=g-v,w=u[zt](["lng","lat","value"],function(e,i,n){var r=t[rt]([e,i]);return r[0]-=p,r[1]-=v,r.push(n),r}),b=o[at](),M="visualMap.continuous"===o.type?i(b,o[Un].range):e(b,o.getPieceList(),o[Un][y]);h[ye](w,x,_,l.color.getNormalizer(),{inRange:l.color.getColorMapper(),outOfRange:c.color.getColorMapper()},M);var S=new n.Image({style:{width:x,height:_,x:p,y:v,image:h[Zr]},silent:!0});this.group.add(S)}})}),e("echarts/chart/heatmap",[Yr,"./heatmap/HeatmapSeries","./heatmap/HeatmapView"],function(t){t("./heatmap/HeatmapSeries"),t("./heatmap/HeatmapView")}),e("echarts/component/geo/GeoView",[Yr,"../helper/MapDraw",A],function(t){var e=t("../helper/MapDraw");return t(A)[Bt]({type:"geo",init:function(t,i){var n=new e(i,!0);this._mapDraw=n,this.group.add(n.group)},render:function(t,e,i){t.get("show")&&this._mapDraw.draw(t,e,i)}})}),e("echarts/component/geo",[Yr,"../coord/geo/geoCreator","./geo/GeoView","../action/geoRoam"],function(t){t("../coord/geo/geoCreator"),t("./geo/GeoView"),t("../action/geoRoam")}),e("echarts/component/title",[Yr,X,"../util/graphic","../util/layout"],function(t){var e=t(X),i=t("../util/graphic"),n=t("../util/layout");e[Zt]({type:"title",defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"left",top:"top",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),e[Bt]({type:"title",render:function(t,e,r){if(this.group[wi](),t.get("show")){var a=this.group,o=t[er](tr),s=t[er]("subtextStyle"),l=t.get(fi),c=new i.Text({style:{text:t.get("text"),textFont:o[Jn](),fill:o[Re](),textBaseline:"top"},z2:10}),u=c[Qn](),d=t.get("subtext"),f=new i.Text({style:{text:d,textFont:s[Jn](),fill:s[Re](),y:u[pr]+t.get(h),textBaseline:"top"},z2:10}),v=t.get("link"),m=t.get("sublink");c[_e]=!v,f[_e]=!m,v&&c.on("click",function(){window.open(v,t.get(Ei))}),m&&f.on("click",function(){window.open(m,t.get("subtarget"))}),a.add(c),d&&a.add(f);var g=a[Qn](),y=t[k]();y.width=g.width,y[pr]=g[pr];var x=n[In](y,{width:r[yn](),height:r[gn]()},t.get(p));if(!l){var _=x.x/r[yn](),w=(x.x+x.width)/r[yn]();.2>_?l="left":w>.8?(x.x+=x.width,l="right"):(x.x+=x.width/2,l=or)}a[On]=[x.x,x.y],c[Ze](fi,l),f[Ze](fi,l),g=a[Qn]();var b=x[Dn],M=t[ut](["color",Sr]);M.fill=t.get(fe);var S=new i.Rect({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g[pr]+b[0]+b[2]},style:M,silent:!0});i[Fe](S),a.add(S)}}})}),e("echarts/component/dataZoom/typeDefaulter",[Yr,P],function(t){t(P)[qn](ee,function(t){return"slider"})}),e("echarts/component/dataZoom/AxisProxy",[Yr,jr,mt],function(t){function e(t,e){var i=[Number[ri],Number.MIN_VALUE];return o(e,function(e){var n=e[an]();n&&o(e.getDimensionsOnAxis(t),function(t){var e=n[Ot](t);e[0]i[1]&&(i[1]=e[1])})},this),i}function i(t,e,i){var r=[0,100],l=t[Un],c=[l.start,l.end],u=[l.startValue,l.endValue],h=["floor","ceil"];return o([0,1],function(t){var o,s=u[t],l=!0;n(s)&&(o=c[t],n(o)&&(o=r[t]),s=a[Hn](o,r,e,!0),l=!1),i&&(s=Math[h[t]](s)),l&&(o=a[Hn](s,e,r,!0)),u[t]=s,c[t]=o}),{valueWindow:s(u),percentWindow:s(c)}}function n(t){return isNaN(t)||null==t}var r=t(jr),a=t(mt),o=r.each,s=a.asc,l=function(t,e,i,n){this._dimName=t,this._axisIndex=e,this._backup,this._valueWindow,this._percentWindow,this._dataExtent,this[ir]=n,this[Jt]=i};return l[Xr]={constructor:l,hostedBy:function(t){return this[Jt]===t},backup:function(t,e){t===this[Jt]&&(this._backup=e)},getBackup:function(){return r.clone(this._backup)},getDataExtent:function(){return this._dataExtent.slice()},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[];return this[ir][ae](function(e){this._axisIndex===e.get(this._dimName+"AxisIndex")&&t.push(e)},this),t},getAxisModel:function(){return this[ir][pn](this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,i=this._dimName,n=this[ir],r=this.getAxisModel(),a="x"===i||"y"===i;a?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?fn:"angle");var o;return n[Kt](t+"Axis",function(t){(t.get(e)||0)===(r.get(e)||0)&&(o=t)}),o},reset:function(t){if(t===this[Jt]){var n=this._dimName,r=this.getAxisModel(),a=r.get("type")===Mt,o=this.getTargetSeriesModels(),s=e(n,o),l=i(t,s,a);this._dataExtent=s.slice(),this._valueWindow=l.valueWindow.slice(),this._percentWindow=l.percentWindow.slice()}},filterData:function(t){function e(t){return t>=a[0]&&t<=a[1]}if(t===this[Jt]){var i=this._dimName,n=this.getTargetSeriesModels(),r=t.get("filterMode"),a=this._valueWindow,s=this.getOtherAxisModel();t.get("$fromToolbox")&&s&&s.get("type")===Mt&&(r="empty"),o(n,function(t){var n=t[an]();n&&o(t.getDimensionsOnAxis(i),function(i){"empty"===r?t[Qe](n.map(i,function(t){return e(t)?t:NaN})):n[Vt](i,e)})})}}},l}),e("echarts/component/dataZoom/DataZoomModel",[Yr,jr,Ie,A,At,"./AxisProxy"],function(t){var e=t(jr),i=t(Ie),n=t(A),r=t(At),a=t("./AxisProxy"),o=e.each,s=r.eachAxisDim;return n[Zt]({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis",Mn],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:100,start:0,end:100,startValue:null,endValue:null},init:function(t,e,i){this._autoMode,this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this[kn](t,i),this[An]({},!0)},mergeOption:function(t,n){var r=this[Un];t&&e.merge(r,t),i[he]||(r.realtime=!1),this.textStyleModel=this[er](tr),this._resetTarget(t,n),this._giveAxisProxies(),this._backup()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(e,i,n,r){var o=this.dependentModels[e.axis][i],s=o.__dzAxisProxy||(o.__dzAxisProxy=new a(e.name,i,this,r));t[e.name+"_"+i]=s},this)},_resetTarget:function(t,e){this._resetAutoMode(t,e);var i=this[Un];s(function(t){var e=t[dn];i[e]=n===dn?[]:r[hn](i[e])},this);var n=this._autoMode;n===dn?this._autoSetAxisIndex():n===d&&this._autoSetOrient()},_resetAutoMode:function(t,e){var i=e?this[Un]:t,n=!1;s(function(t){null!=i[t[dn]]&&(n=!0)},this);var r=i[d];null==r&&n?this._autoMode=d:(null==r&&(this[Un][d]=Vn),n||(this._autoMode=dn))},_autoSetAxisIndex:function(){var t=this._autoMode===dn,i=this.get(d),n=this[Un];if(t){var r=i===zn?{dim:"y",axisIndex:"yAxisIndex",axis:"yAxis"}:{dim:"x",axisIndex:"xAxisIndex",axis:"xAxis"};this.dependentModels[r.axis][Hr]&&(n[r[dn]]=[0],t=!1)}t&&s(function(e){if(t){var i=[],r=this.dependentModels[e.axis];if(r[Hr]&&!i[Hr])for(var a=0,o=r[Hr];o>a;a++)r[a].get("type")===Mt&&i.push(a);n[e[dn]]=i,i[Hr]&&(t=!1)}},this),t&&this[ir][ae](function(t){this._isSeriesHasAllAxesTypeOf(t,"value")&&s(function(i){var r=n[i[dn]],a=t.get(i[dn]);e[Br](r,a)<0&&r.push(a)})},this)},_autoSetOrient:function(){var t;this.eachTargetAxis(function(e){!t&&(t=e.name)},this),this[Un][d]="y"===t?zn:Vn},_isSeriesHasAllAxesTypeOf:function(t,e){var i=!0;return s(function(n){var r=t.get(n[dn]),a=this.dependentModels[n.axis][r];a&&a.get("type")===e||(i=!1)},this),i},_backup:function(){this.eachTargetAxis(function(t,e,i,n){var r=n[pn](t.axis,e);this.getAxisProxy(t.name,e).backup(this,{scale:r.get("scale",!0),min:r.get("min",!0),max:r.get("max",!0)})},this)},getFirstTargetAxisModel:function(){var t;return s(function(e){if(null==t){var i=this.get(e[dn]);i[Hr]&&(t=this.dependentModels[e.axis][i[0]])}},this),t},eachTargetAxis:function(t,e){var i=this[ir];s(function(n){o(this.get(n[dn]),function(r){t.call(e,n,r,this,i)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},setRawRange:function(t){o(["start","end","startValue","endValue"],function(e){this[Un][e]=t[e]},this)},getPercentRange:function(){var t=this._axisProxies;for(var e in t)if(t.hasOwnProperty(e)&&t[e].hostedBy(this))return t[e].getDataPercentWindow();for(var e in t)if(t.hasOwnProperty(e)&&!t[e].hostedBy(this))return t[e].getDataPercentWindow()}})}),e("echarts/component/dataZoom/DataZoomView",[Yr,"../../view/Component"],function(t){var e=t("../../view/Component");return e[Pr]({type:"dataZoom",render:function(t,e,i,n){this.dataZoomModel=t,this[ir]=e,this.api=i},getTargetInfo:function(){function t(t,e,i,n){for(var r,a=0;a=0&&f():a>=0?f():i&&(h=setTimeout(f,-a)),c=l};return p.clear=function(){h&&(clearTimeout(h),h=null)},p}var a,o,s,l=(new Date).getTime(),c=0,u=0,h=null,d=typeof t===Rr;if(e=e||0,d)return r();for(var f=[],p=0;pe[1]&&n[a](),0>t&&n[0]+t0&&n[1]+t>i[1]&&(t=i[1]-n[1]),t}return t?("rigid"===n?(t=o(t,e,i),e[0]+=t,e[1]+=t):(t=o(t,e[r],i),e[r]+=t,"push"===n&&e[0]>e[1]&&(e[1-r]=e[r])),e):e}}),e("echarts/component/dataZoom/SliderZoomView",[Yr,jr,gt,"../../util/throttle","./DataZoomView",mt,I,"../helper/sliderMove"],function(t){function e(t){return"x"===t?"y":"x"}var i=t(jr),n=t(gt),r=t("../../util/throttle"),o=t("./DataZoomView"),s=n.Rect,l=t(mt),c=l[Hn],u=t(I),h=t("../helper/sliderMove"),f=l.asc,v=i.bind,m=Math.round,y=Math.max,x=i.each,_=7,w=1,b=30,M=Vn,S=zn,A=5,C=["line","bar","candlestick",te];return o[Pr]({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._halfHandleSize,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,i,n){return this[g](_i,arguments),r.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get(d),this._halfHandleSize=m(t.get("handleSize")/2),this.dataZoomModel.get("show")===!1?void this.group[wi]():(n&&n.type===ee&&n.from===this.uid||this._buildView(),void this._updateView())},remove:function(){this[g](Ti,arguments),r.clear(this,"_dispatchZoomAction")},dispose:function(){this[g](ue,arguments),r.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t[wi](),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new n.Group;this._renderBackground(),this._renderDataShadow(),this._renderHandle(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,n=this._findCoordRect(),r={width:e[yn](),height:e[gn]()},o=this._orient===M?{left:n.x,top:r[pr]-b-_,width:n.width,height:b}:{right:_,top:n.y,width:b,height:n[pr]};i.each(u.getLayoutParams(t[Un]),function(t,e){"auto"!==t&&(o[e]=t)});var s=u[In](o,r,t[p]);this._location={x:s.x,y:s.y},this._size=[s.width,s[pr]],this._orient===S&&this._size[a]()},_positionGroup:function(){var t=this.group,e=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),r=n&&n.get(J),a=this._displayables.barGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(i!==M||r?i===M&&r?{scale:o?[-1,1]:[-1,-1]}:i!==S||r?{scale:o?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:o?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:o?[1,1]:[1,-1]});var s=t[Qn]([a]);t[On][0]=e.x-s.x,t[On][1]=e.y-s.y},_getViewExtent:function(){var t=this._halfHandleSize,e=y(this._size[0],4*t),i=[t,e-t];return i},_renderBackground:function(){var t=this.dataZoomModel,e=this._size;this._displayables.barGroup.add(new s({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get(fe)}}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,i=t[Mn],r=i.getRawData(),a=i.getShadowDim?i.getShadowDim():t.otherDim,o=r[Ot](a),s=.3*(o[1]-o[0]);o=[o[0]-s,o[1]+s];var l=[0,e[1]],u=[0,e[0]],h=[[e[0],0],[0,0]],d=u[1]/r.count(),f=0,p=Math.round(r.count()/e[0]);r.each([a],function(t,e){if(p>0&&e%p)return void(f+=d);var i=null==t||isNaN(t)||""===t?null:c(t,o,l,!0);null!=i&&h.push([f,i]),f+=d}),this._displayables.barGroup.add(new n[We]({shape:{points:h},style:{fill:this.dataZoomModel.get("dataBackgroundColor"),lineWidth:0},silent:!0,z2:-20}))}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,n=t.get("showDataShadow");if(n!==!1){var r,a=this[ir];return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o.name,s).getTargetSeriesModels();i.each(l,function(t){if(!(r||n!==!0&&i[Br](C,t.get("type"))<0)){var l=e(o.name),c=a[pn](o.axis,s).axis;r={thisAxis:c,series:t,thisDim:o.name,otherDim:l,otherAxisInverse:t[St][ot](c)[J]}}},this)},this),r}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],i=t.handleLabels=[],r=this._displayables.barGroup,a=this._size;r.add(t.filler=new s({draggable:!0,cursor:"move",drift:v(this._onDragMove,this,"all"),ondragend:v(this._onDragEnd,this),onmouseover:v(this._showDataInfo,this,!0),onmouseout:v(this._showDataInfo,this,!1),style:{fill:this.dataZoomModel.get("fillerColor"),textPosition:"inside"}})),r.add(new s(n[Fe]({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{stroke:this.dataZoomModel.get("dataBackgroundColor"),lineWidth:w,fill:"rgba(0,0,0,0)"}}))),x([0,1],function(t){r.add(e[t]=new s({style:{fill:this.dataZoomModel.get("handleColor")},cursor:"move",draggable:!0,drift:v(this._onDragMove,this,t),ondragend:v(this._onDragEnd,this),onmouseover:v(this._showDataInfo,this,!0),onmouseout:v(this._showDataInfo,this,!1)}));var a=this.dataZoomModel.textStyleModel;this.group.add(i[t]=new n.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textBaseline:"middle",textAlign:"center",fill:a[Re](),textFont:a[Jn]()}}))},this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange();this._handleEnds=c(t,[0,100],this._getViewExtent(),!0)},_updateInterval:function(t,e){var i=this._handleEnds,n=this._getViewExtent();h(e,i,n,"all"===t||this.dataZoomModel.get("zoomLock")?"rigid":"cross",t),this._range=f(c(i,n,[0,100],!0))},_updateView:function(){var t=this._displayables,e=this._handleEnds,i=f(e.slice()),n=this._size,r=this._halfHandleSize;x([0,1],function(i){var a=t.handles[i];a[ti]({x:e[i]-r,y:-1,width:2*r,height:n[1]+2,r:1})},this),t.filler[ti]({x:i[0],y:0,width:i[1]-i[0],height:this._size[1]}),this._updateDataInfo()},_updateDataInfo:function(){function t(t){var e=n.getTransform(i.handles[t],this.group),s=n.transformDirection(0===t?"right":"left",e),l=this._halfHandleSize+A,u=n[vr]([c[t]+(0===t?-l:l),this._size[1]/2],e);r[t][Ze]({x:u[0],y:u[1],textBaseline:a===M?sr:s,textAlign:a===M?s:or,text:o[t]})}var e=this.dataZoomModel,i=this._displayables,r=i.handleLabels,a=this._orient,o=["",""];if(e.get("showDetail")){var s,l;e.eachTargetAxis(function(t,i){s||(s=e.getAxisProxy(t.name,i).getDataValueWindow(),l=this[ir][pn](t.axis,i).axis)},this),s&&(o=[this._formatLabel(s[0],l),this._formatLabel(s[1],l)])}var c=f(this._handleEnds.slice());t.call(this,0),t.call(this,1)},_formatLabel:function(t,e){var n=this.dataZoomModel,r=n.get("labelFormatter");if(i.isFunction(r))return r(t);var a=n.get("labelPrecision");return(null==a||"auto"===a)&&(a=e[Gn]()),t=null==t&&isNaN(t)?"":e.type===Mt||"time"===e.type?e.scale[F](Math.round(t)):t[Zn](Math.min(a,20)),i[bn](r)&&(t=r[Wn]("{value}",t)),t},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr(Mi,!t),e[1].attr(Mi,!t)},_onDragMove:function(t,e,i){this._dragging=!0;var n=this._applyBarTransform([e,i],!0);this._updateInterval(t,n[0]),this._updateView(),this.dataZoomModel.get("realtime")&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),this._dispatchZoomAction()},_dispatchZoomAction:function(){var t=this._range;this.api[mn]({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_applyBarTransform:function(t,e){var i=this._displayables.barGroup[Zi]();return n[vr](t,i,e)},_findCoordRect:function(){var t,e=this.getTargetInfo();if(e.cartesians[Hr])t=e.cartesians[0].model[St][L]();else{var i=this.api[yn](),n=this.api[gn]();t={x:.2*i,y:.2*n,width:.6*i,height:.6*n}}return t}})}),e("echarts/component/dataZoom/InsideZoomModel",[Yr,"./DataZoomModel"],function(t){var e=t("./DataZoomModel");return e[Pr]({type:"dataZoom.inside"})}),e("echarts/component/dataZoom/InsideZoomView",[Yr,"./DataZoomView","../../util/throttle",jr,"../helper/sliderMove","../../component/helper/RoamController"],function(t){function e(t,e,i,r){e=e.slice();var a=r.axisModels[0];if(a){var o=n(t,a,i),s=o.signal*(e[1]-e[0])*o.pixel/o.pixelLength;return c(s,e,[0,100],"rigid"),e}}function i(t,e,i,a,o,s){i=i.slice();var l=o.axisModels[0];if(l){var c=n(e,l,a),u=c.pixel-c.pixelStart,h=u/c.pixelLength*(i[1]-i[0])+i[0];return t=Math.max(t,0),i[0]=(i[0]-h)*t+h,i[1]=(i[1]-h)*t+h,r(i)}}function n(t,e,i){var n=e.axis,r=i.rect,a={};return"x"===n.dim?(a.pixel=t[0],a.pixelLength=r.width,a.pixelStart=r.x,a.signal=n[J]?1:-1):(a.pixel=t[1],a.pixelLength=r[pr],a.pixelStart=r.y,a.signal=n[J]?-1:1),a}function r(t){var e=[0,100];return!(t[0]<=e[1])&&(t[0]=e[1]),!(t[1]<=e[1])&&(t[1]=e[1]),!(t[0]>=e[0])&&(t[0]=e[0]),!(t[1]>=e[0])&&(t[1]=e[0]),t}var a=t("./DataZoomView"),o=t("../../util/throttle"),s=t(jr),c=t("../helper/sliderMove"),u=t("../../component/helper/RoamController"),h=s.bind;return a[Pr]({type:"dataZoom.inside",init:function(t,e){this._controllers={},this._range},render:function(t,e,i,n){this[g](_i,arguments),o.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),n&&n.type===ee&&n.from===this.uid||(this._range=t.getPercentRange()),this._resetController(i)},remove:function(){this[g](Ti,arguments);var t=this._controllers;s.each(t,function(t){t.off("pan").off("zoom")}),t[Hr]=0,o.clear(this,"_dispatchZoomAction")},dispose:function(){this[g](ue,arguments),o.clear(this,"_dispatchZoomAction")},_resetController:function(t){var e=this._controllers,i=this.getTargetInfo();s.each(i.cartesians,function(i){var n="cartesian"+i.coordIndex,r=e[n];r||(r=e[n]=new u(t.getZr()),r[l](),r.on("pan",h(this._onPan,this,r,i)),r.on("zoom",h(this._onZoom,this,r,i))),r.rect=i.model[St][L]().clone()},this)},_onPan:function(t,i,n,r){var a=this._range=e([n,r],this._range,t,i);a&&this._dispatchZoomAction(a)},_onZoom:function(t,e,n,r,a){var o=this.dataZoomModel;n=1/n;var s=this._range=i(n,[r,a],this._range,t,e,o);this._dispatchZoomAction(s)},_dispatchZoomAction:function(t){this.api[mn]({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})}})}),e("echarts/component/dataZoom/dataZoomProcessor",[Yr,A,mt],function(t){function e(t,e,i,n){var a=t.name,o=i.getAxisProxy(a,e);o.reset(i);var s=o.getDataPercentWindow(),l=o.getDataValueWindow(),c=n[pn](t.axis,e),u=0===s[0]&&100===s[1],h=o.getBackup(),d=r[Gn](l,[0,500]),f=!(20>d&&d>=0);c.setNeedsCrossZero&&c.setNeedsCrossZero(u?!h.scale:!1),c.setMin&&c.setMin(u||f?h.min:+l[0][Zn](d)),c.setMax&&c.setMax(u||f?h.max:+l[1][Zn](d))}function i(t,e,i,n){i.getAxisProxy(t.name,e).filterData(i)}var n=t(A),r=t(mt);n[Ut](Ur,function(t,n){t[Kt](ee,function(t){t.eachTargetAxis(e)}),t[Kt](ee,function(t){t.eachTargetAxis(i)})})}),e("echarts/component/dataZoom/dataZoomAction",[Yr,jr,At,A],function(t){var e=t(jr),i=t(At),n=t(A);n[qt](ee,function(t,n){var r=i.createLinkedNodesFinder(e.bind(n[Kt],n,ee),i.eachAxisDim,function(t,e){return t.get(e[dn])}),a=[];n[Kt]({mainType:"dataZoom",query:t},function(t,e){a.push.apply(a,r(t).nodes)}),e.each(a,function(e,i){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}),e("echarts/component/dataZoom",[Yr,"./dataZoom/typeDefaulter","./dataZoom/DataZoomModel","./dataZoom/DataZoomView","./dataZoom/SliderZoomModel","./dataZoom/SliderZoomView","./dataZoom/InsideZoomModel","./dataZoom/InsideZoomView","./dataZoom/dataZoomProcessor","./dataZoom/dataZoomAction"],function(t){t("./dataZoom/typeDefaulter"),t("./dataZoom/DataZoomModel"),t("./dataZoom/DataZoomView"),t("./dataZoom/SliderZoomModel"),t("./dataZoom/SliderZoomView"),t("./dataZoom/InsideZoomModel"),t("./dataZoom/InsideZoomView"),t("./dataZoom/dataZoomProcessor"),t("./dataZoom/dataZoomAction")}),e("echarts/component/visualMap/preprocessor",[Yr,jr],function(t){function e(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var i=t(jr),n=i.each;return function(t){var r=t&&t.visualMap;i[kr](r)||(r=r?[r]:[]),n(r,function(t){if(t){e(t,"splitList")&&!e(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var r=t.pieces;r&&i[kr](r)&&n(r,function(t){i[Tn](t)&&(e(t,"start")&&!e(t,"min")&&(t.min=t.start),e(t,"end")&&!e(t,"max")&&(t.max=t.end))})}})}}),e("echarts/component/visualMap/typeDefaulter",[Yr,P],function(t){t(P)[qn]("visualMap",function(t){return t[n]||(t.pieces?t.pieces[Hr]>0:t[B]>0)&&!t.calculable?"piecewise":"continuous"})}),e("echarts/component/visualMap/visualCoding",[Yr,A,i,jr],function(t){function e(t,e){var i=t.targetVisuals,n={};a.each(["inRange","outOfRange"],function(t){var e=r.prepareVisualTypes(i[t]);n[t]=e}),t.eachTargetSeries(function(e){function r(t){return s[Lt](o,t)}function a(t,e){s[se](o,t,e)}var o,s=e[an](),l=t.getDataDimension(s);s.each([l],function(e,s){o=s;for(var l=t.getValueState(e),c=i[l],u=n[l],h=0,d=u[Hr];d>h;h++){var f=u[h];c[f]&&c[f].applyVisual(e,r,a)}})})}var n=t(A),r=t(i),a=t(jr);n[Ht]("component",function(t){t[Kt]("visualMap",function(i){e(i,t)})})}),e("echarts/visual/visualDefault",[Yr,jr],function(t){var e=t(jr),i={get:function(t,i,r){var a=e.clone((n[t]||{})[i]);return r&&e[kr](a)?a[a[Hr]-1]:a}},n={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},symbol:{active:[ht,"roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};return i}),e("echarts/component/visualMap/VisualMapModel",[Yr,jr,Ie,A,At,"../../visual/visualDefault",i,mt],function(t){var e=t(jr),r=t(Ie),o=t(A),s=t(At),l=t("../../visual/visualDefault"),c=t(i),u=c.mapVisual,h=c.eachVisual,d=t(mt),f=e[kr],p=e.each,v=d.asc,m=d[Hn];return o[Zt]({type:"visualMap",dependencies:[Mn],dataBound:[-(1/0),1/0],stateList:["inRange","outOfRange"],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",seriesIndex:null,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:["#bf444c","#d88273","#f6efa6"],formatter:null,text:null,textStyle:{color:"#333"}},init:function(t,e,i){this._autoSeriesIndex=!1,this._dataExtent,this.controllerVisuals={},this.targetVisuals={},this.textStyleModel,this.itemSize,this[kn](t,i),this.doMergeOption({},!0)},mergeOption:function(t){this[g](An,arguments),this.doMergeOption(t,!1)},doMergeOption:function(t,e){var i=this[Un];r[he]||(i.realtime=!1),this.textStyleModel=this[er](tr),this.resetItemSize(),this.completeVisualOption()},formatValueText:function(t,i){function n(t){return t===l[0]?"min":t===l[1]?"max":(+t)[Zn](s)}var r,a,o=this[Un],s=o.precision,l=this.dataBound,c=o[Ki];return e[kr](t)&&(t=t.slice(),r=!0),a=i?t:r?[n(t[0]),n(t[1])]:n(t),e[bn](c)?c[Wn]("{value}",r?a[0]:a)[Wn]("{value2}",r?a[1]:a):e.isFunction(c)?r?c(t[0],t[1]):c(t):r?t[0]===l[0]?"< "+a[1]:t[1]===l[1]?"> "+a[0]:a[0]+" - "+a[1]:a},resetTargetSeries:function(t,e){var i=this[Un],n=this._autoSeriesIndex=null==(e?i:t)[on];i[on]=n?[]:s[hn](i[on]),n&&this[ir][ae](function(t,e){var n=t[an]();"list"===n.type&&i[on].push(e)})},resetExtent:function(){var t=this[Un],e=v([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this[Un].dimension;return null!=e?e:t[Nt][Hr]-1},getExtent:function(){return this._dataExtent.slice()},resetVisual:function(t){function e(e,n){p(this.stateList,function(r){var a=n[r]||(n[r]={}),o=this[Un][e][r]||{};p(o,function(e,n){if(c.isValidType(n)){var o={type:n,dataExtent:i,visual:e};t&&t.call(this,o,r),a[n]=new c(o)}},this)},this)}var i=this[at]();e.call(this,"controller",this.controllerVisuals),e.call(this,Ei,this.targetVisuals)},completeVisualOption:function(){function t(t){f(r.color)&&!t.inRange&&(t.inRange={color:r.color.slice()[a]()}),p(this.stateList,function(i){var n=t[i];if(e[bn](n)){var r=l.get(n,"active",v);r?(t[i]={},t[i][n]=r):delete t[i]}},this)}function i(t,e,i){var n=t[e],r=t[i];n&&!r&&(r=t[i]={},p(n,function(t,e){var i=l.get(e,"inactive",v);c.isValidType(e)&&i&&(r[e]=i)}))}function n(t){var i=(t.inRange||{})[dt]||(t.outOfRange||{})[dt],n=(t.inRange||{})[ft]||(t.outOfRange||{})[ft],r=this.get("inactiveColor");p(this.stateList,function(a){var o=this.itemSize,s=t[a];s||(s=t[a]={color:v?r:[r]}),s[dt]||(s[dt]=i&&e.clone(i)||(v?"roundRect":["roundRect"])),s[ft]||(s[ft]=n&&e.clone(n)||(v?o[0]:[o[0],o[0]])),s[dt]=u(s[dt],function(t){return"none"===t||"square"===t?"roundRect":t});var l=s[ft];if(l){var c=-(1/0);h(l,function(t){t>c&&(c=t)}),s[ft]=u(l,function(t){return m(t,[0,c],[0,o[0]],!0)})}},this)}var r=this[Un],o={inRange:r.inRange,outOfRange:r.outOfRange},s=r[Ei]||(r[Ei]={}),d=r.controller||(r.controller={});e.merge(s,o),e.merge(d,o);var v=this.isCategory();t.call(this,s),t.call(this,d),i.call(this,s,"inRange","outOfRange"),i.call(this,s,"outOfRange","inRange"),n.call(this,d)},eachTargetSeries:function(t,i){e.each(this[Un][on],function(e){t.call(i,this[ir].getSeriesByIndex(e))},this)},isCategory:function(){return!!this[Un][n]},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},setSelected:e.noop,getValueState:e.noop})}),e("echarts/component/visualMap/ContinuousModel",[Yr,"./VisualMapModel",jr,mt],function(t){var e=t("./VisualMapModel"),i=t(jr),n=t(mt),r=[20,140];return e[Pr]({type:"visualMap.continuous",defaultOption:{handlePosition:"auto",calculable:!1,range:[-(1/0),1/0],hoverLink:!0,realtime:!0,itemWidth:null,itemHeight:null},doMergeOption:function(t,e){this[g]("doMergeOption",arguments),this.resetTargetSeries(t,e),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod=Vi}),this._resetRange()},resetItemSize:function(){e[Xr].resetItemSize.apply(this,arguments);var t=this.itemSize;this._orient===Vn&&t[a](),(null==t[0]||isNaN(t[0]))&&(t[0]=r[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=r[1])},_resetRange:function(){var t=this[at](),e=this[Un].range;e[0]>e[1]&&e[a](),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1])},completeVisualOption:function(){e[Xr].completeVisualOption.apply(this,arguments),i.each(this.stateList,function(t){var e=this[Un].controller[t][ft];e&&e[0]!==e[1]&&(e[0]=0)},this)},setSelected:function(t){this[Un].range=t.slice(),this._resetRange()},getSelected:function(){var t=this[at](),e=n.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=i[1]||t<=e[1])?"inRange":"outOfRange"}})}),e("echarts/component/visualMap/VisualMapView",[Yr,A,jr,gt,v,I,i],function(t){var e=t(A),n=t(jr),r=t(gt),a=t(v),o=t(I),s=t(i);return e[Bt]({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(t,e){this[ir]=t,this.api=e,this.visualMapModel,this._updatableShapes={}},render:function(t,e,i,n){return this.visualMapModel=t,t.get("show")===!1?void this.group[wi]():void this.doRender.apply(this,arguments)},renderBackground:function(t){var e=this.visualMapModel,i=a[Pn](e.get(p)||0),n=t[Qn]();t.add(new r.Rect({z2:-1,silent:!0,shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[3]+i[1],height:n[pr]+i[0]+i[2]},style:{fill:e.get(fe),stroke:e.get($n),lineWidth:e.get(Yn)}}))},getControllerVisual:function(t,e,i){function r(t){return h[t]}function a(t,e){h[t]=e}var o=this.visualMapModel,l=n[kr](t);if(l&&(!e||"color"!==i))throw new Error(t);var c=o.controllerVisuals[e||o.getValueState(t)],u=o.get("contentColor"),h={symbol:o.get("itemSymbol"),color:l?[{color:u,offset:0},{color:u,offset:1}]:u},d=s.prepareVisualTypes(c);return n.each(d,function(e){var n=c[e];(!i||s.isInVisualCluster(e,i))&&n&&n.applyVisual(t,r,a)}),h},positionGroup:function(t){var e=this.visualMapModel,i=this.api;o[Ln](t,e[k](),{width:i[yn](),height:i[gn]()})},doRender:n.noop})}),e("echarts/component/visualMap/helper",[Yr,I],function(t){var e=t(I),i={getItemAlign:function(t,i,n){var r=t[Un],a=r.align;if(null!=a&&"auto"!==a)return a;for(var o={width:i[yn](),height:i[gn]()},s=r[d]===Vn?1:0,l=[["left","right","width"],["top",lr,pr]],c=l[s],u=[0,null,10],h={},f=0;3>f;f++)h[l[1-s][f]]=u[f],h[c[f]]=2===f?n[0]:r[c[f]];var v=[["x","width",3],["y",pr,0]][s],m=e[In](h,o,r[p]);return c[(m[Dn][v[2]]||0)+m[v[0]]+.5*m[v[1]]<.5*o[v[1]]?0:1]}};return i}),e("echarts/component/visualMap/ContinuousView",[Yr,"./VisualMapView",gt,jr,mt,"../helper/sliderMove","zrender/graphic/LinearGradient","./helper"],function(t){function e(t,e,i){return new r[qe]({shape:{points:t},draggable:!!e,cursor:i,drift:e})}function i(t,e){return 0===t?[[0,0],[e,0],[e,-e]]:[[0,0],[e,0],[e,e]]}var n=t("./VisualMapView"),r=t(gt),a=t(jr),o=t(mt),s=t("../helper/sliderMove"),l=o[Hn],c=t("zrender/graphic/LinearGradient"),u=t("./helper"),h=a.each,f=n[Pr]({type:"visualMap.continuous",init:function(){n[Xr].init.apply(this,arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle},doRender:function(t,e,i,n){n&&"selectDataRange"===n.type&&n.from===this.uid?this._updateView():this._buildView()},_buildView:function(){this.group[wi]();var t=this.visualMapModel,e=this.group;this._orient=t.get(d),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var i=t.get("text");this._renderEndsText(e,i,0),this._renderEndsText(e,i,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this[Ln](e)},_renderEndsText:function(t,e,i){if(e){var n=e[1-i];n=null!=n?n+"":"";var a=this.visualMapModel,o=a.get("textGap"),s=a.itemSize,l=this._shapes.barGroup,c=this._applyTransform([s[0]/2,0===i?-o:s[1]+o],l),u=this._applyTransform(0===i?lr:"top",l),h=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new r.Text({style:{x:c[0],y:c[1],textBaseline:h===Vn?sr:u,textAlign:h===Vn?u:or,text:n,textFont:d[Jn](),fill:d[Re]()}}))}},_renderBar:function(t){var i=this.visualMapModel,n=this._shapes,r=i.itemSize,o=this._orient,s=this._useHandle,l=u.getItemAlign(i,this.api,r),c=n.barGroup=this._createBarGroup(l);c.add(n.outOfRange=e()),c.add(n.inRange=e(null,a.bind(this._modifyHandle,this,"all"),s?"move":null));var h=i.textStyleModel.getTextRect("国"),d=Math.max(h.width,h[pr]);s&&(n.handleGroups=[],n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(c,0,r,d,o,l),this._createHandle(c,1,r,d,o,l)),t.add(c)},_createHandle:function(t,n,o,s,l){var c=new r.Group({position:[o[0],0]}),u=e(i(n,s),a.bind(this._modifyHandle,this,n),"move");c.add(u);var h={x:l===Vn?s/2:1.5*s,y:l===Vn?0===n?-(1.5*s):1.5*s:0===n?-s/2:s/2},d=this.visualMapModel.textStyleModel,f=new r.Text({silent:!0,style:{x:0,y:0,text:"",textBaseline:"middle",textFont:d[Jn](),fill:d[Re]()}});this.group.add(f);var p=this._shapes;p.handleThumbs[n]=u,p.handleGroups[n]=c,p.handleLabelPoints[n]=h,p.handleLabels[n]=f,t.add(c)},_modifyHandle:function(t,e,i){if(this._useHandle){var n=this._applyTransform([e,i],this._shapes.barGroup,!0);this._updateInterval(t,n[1]),this.api[mn]({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()})}},_resetInterval:function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected();this._handleEnds=l(e,t[at](),[0,t.itemSize[1]],!0)},_updateInterval:function(t,e){e=e||0;var i=this.visualMapModel,n=this._handleEnds;s(e,n,[0,i.itemSize[1]],"all"===t?"rigid":"push",t),this._dataInterval=l(n,[0,i.itemSize[1]],i[at](),!0)},_updateView:function(t){var e=this.visualMapModel,i=e[at](),n=this._shapes,r=this._dataInterval,a=[0,e.itemSize[1]],o=t?a:this._handleEnds,s=this._createBarVisual(r,i,o,"inRange"),l=this._createBarVisual(i,i,a,"outOfRange");n.inRange[Ze]("fill",s.barColor)[ti](Ye,s.barPoints),n.outOfRange[Ze]("fill",l.barColor)[ti](Ye,l.barPoints),this._useHandle&&h([0,1],function(t){n.handleThumbs[t][Ze]("fill",s.handlesColor[t]),n.handleLabels[t][Ze]({text:e.formatValueText(r[t]),textAlign:this._applyTransform(this._orient===Vn?0===t?lr:"top":"left",n.barGroup)})},this),this._updateHandlePosition(o)},_createBarVisual:function(t,e,i,n){var r=this.getControllerVisual(t,n,"color").color,a=[this.getControllerVisual(t[0],n,ft)[ft],this.getControllerVisual(t[1],n,ft)[ft]],o=this._createBarPoints(i,a);return{barColor:new c(0,0,1,1,r),barPoints:o,handlesColor:[r[0].color,r[r[Hr]-1].color]}},_createBarPoints:function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,i=this.visualMapModel.get(J);return new r.Group(e!==Vn||i?e===Vn&&i?{scale:t===lr?[-1,1]:[1,1],rotation:-Math.PI/2}:e!==zn||i?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:t===lr?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandlePosition:function(t){if(this._useHandle){var e=this._shapes;h([0,1],function(i){var n=e.handleGroups[i];n[On][1]=t[i];var a=e.handleLabelPoints[i],o=r[vr]([a.x,a.y],r.getTransform(n,this.group));e.handleLabels[i][Ze]({x:o[0],y:o[1]})},this)}},_applyTransform:function(t,e,i){var n=r.getTransform(e,this.group);return r[a[kr](t)?vr:"transformDirection"](t,n,i)}});return f}),e("echarts/component/visualMap/visualMapAction",[Yr,A],function(t){var e=t(A),i={type:"selectDataRange",event:"dataRangeSelected",update:"update"};e[qt](i,function(t,e){e[Kt]({mainType:"visualMap",query:t},function(e){e.setSelected(t[y])})})}),e("echarts/component/visualMapContinuous",[Yr,X,"./visualMap/preprocessor","./visualMap/typeDefaulter","./visualMap/visualCoding","./visualMap/ContinuousModel","./visualMap/ContinuousView","./visualMap/visualMapAction"],function(t){t(X)[jt](t("./visualMap/preprocessor")),t("./visualMap/typeDefaulter"),t("./visualMap/visualCoding"),t("./visualMap/ContinuousModel"),t("./visualMap/ContinuousView"),t("./visualMap/visualMapAction")}),e("echarts/component/visualMap/PiecewiseModel",[Yr,"./VisualMapModel",jr,i],function(t){function e(t,e){var i=t[J];(t[d]===zn?!i:i)&&e[a]()}var r=t("./VisualMapModel"),o=t(jr),s=t(i),l=r[Pr]({type:"visualMap.piecewise",defaultOption:{selected:null,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10},doMergeOption:function(t,e){this[g]("doMergeOption",arguments),this._pieceList=[],this.resetTargetSeries(t,e),this.resetExtent();var i=this._mode=this._decideMode();c[this._mode].call(this),this._resetSelected(t,e);var r=this[Un][n];this.resetVisual(function(t,e){i===n?(t.mappingMethod=Mt,t[n]=o.clone(r)):(t.mappingMethod="piecewise",t.pieceList=o.map(this._pieceList,function(t){var t=o.clone(t);return"inRange"!==e&&(t.visual=null),t}))})},_resetSelected:function(t,e){var i=this[Un],n=this._pieceList,r=(e?i:t)[y]||{};if(i[y]=r,o.each(n,function(t,e){var i=this.getSelectedMapKey(t);i in r||(r[i]=!0)},this),"single"===i.selectedMode){var a=!1;o.each(n,function(t,e){var i=this.getSelectedMapKey(t);r[i]&&(a?r[i]=!1:a=!0)},this)}},getSelectedMapKey:function(t){return this._mode===n?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_decideMode:function(){var t=this[Un];return t.pieces&&t.pieces[Hr]>0?"pieces":this[Un][n]?n:B},setSelected:function(t){this[Un][y]=o.clone(t)},getValueState:function(t){var e=this._pieceList,i=s.findPieceIndex(t,e);return null!=i&&this[Un][y][this.getSelectedMapKey(e[i])]?"inRange":"outOfRange"}}),c={splitNumber:function(){var t=this[Un],e=t.precision,i=this[at](),n=t[B];n=Math.max(parseInt(n,10),1),t[B]=n;for(var r=(i[1]-i[0])/n;+r[Zn](e)!==r&&5>e;)e++;t.precision=e,r=+r[Zn](e);for(var a=0,o=i[0];n>a;a++,o+=r){var s=a===n-1?i[1]:o+r;this._pieceList.push({text:this.formatValueText([o,s]),index:a,interval:[o,s]})}},categories:function(){var t=this[Un];o.each(t[n],function(t){this._pieceList.push({text:this.formatValueText(t,!0),value:t})},this),e(t,this._pieceList)},pieces:function(){var t=this[Un];o.each(t.pieces,function(t,e){o[Tn](t)||(t={value:t});var i,n={text:"",index:e};if(null!=t.label&&(n.text=t.label,i=!0),t.hasOwnProperty("value"))n.value=t.value,i||(n.text=this.formatValueText(n.value));else{var r=t.min,a=t.max;null==r&&(r=-(1/0)),null==a&&(a=1/0),r===a&&(n.value=r),n[N]=[r,a],i||(n.text=this.formatValueText([r,a]))}n.visual=s.retrieveVisuals(t),this._pieceList.push(n)},this),e(t,this._pieceList)}};return l}),e("echarts/component/visualMap/PiecewiseView",[Yr,"./VisualMapView",jr,gt,yt,I,"./helper"],function(t){var e=t("./VisualMapView"),i=t(jr),n=t(gt),r=t(yt),o=t(I),s=t("./helper"),l=e[Pr]({type:"visualMap.piecewise",doRender:function(){function t(t){var r=new n.Group;r.onclick=i.bind(this._onItemClick,this,t.piece),this._createItemSymbol(r,t.piece,[0,0,f[0],f[1]]),v&&r.add(new n.Text({style:{x:"right"===u?-a:f[0]+a,y:f[1]/2,text:t.piece.text,textBaseline:"middle",textAlign:u,textFont:l,fill:c}})),e.add(r)}var e=this.group;e[wi]();var r=this.visualMapModel,a=r.get("textGap"),s=r.textStyleModel,l=s[Jn](),c=s[Re](),u=this._getItemAlign(),f=r.itemSize,p=this._getViewData(),v=!p.endsText,m=!v;m&&this._renderEndsText(e,p.endsText[0],f),i.each(p.pieceList,t,this),m&&this._renderEndsText(e,p.endsText[1],f),o.box(r.get(d),e,r.get(h)),this.renderBackground(e),this[Ln](e)},_getItemAlign:function(){var t=this.visualMapModel,e=t[Un];if(e[d]===zn)return s.getItemAlign(t,this.api,t.itemSize);var i=e.align;return i&&"auto"!==i||(i="left"),i},_renderEndsText:function(t,e,i){if(e){var r=new n.Group,a=this.visualMapModel.textStyleModel;r.add(new n.Text({style:{x:i[0]/2,y:i[1]/2,textBaseline:"middle",textAlign:"center",text:e,textFont:a[Jn](),fill:a[Re]()}})),t.add(r)}},_getViewData:function(){var t=this.visualMapModel,e=i.map(t.getPieceList(),function(t,e){return{piece:t,index:e}}),n=t.get("text"),r=t.get(d),o=t.get(J);return(r===Vn?o:!o)?e[a]():n&&(n=n.slice()[a]()),{pieceList:e,endsText:n}},_createItemSymbol:function(t,e,i){var n;if(this.visualMapModel.isCategory())n=e.value;else if(null!=e.value)n=e.value;else{var a=e[N]||[];n=(a[0]+a[1])/2}var o=this.getControllerVisual(n);t.add(r[pt](o[dt],i[0],i[1],i[2],i[3],o.color))},_onItemClick:function(t){var e=this.visualMapModel,n=e[Un],r=i.clone(n[y]),a=e.getSelectedMapKey(t);"single"===n.selectedMode?(r[a]=!0,i.each(r,function(t,e){r[e]=e===a})):r[a]=!r[a],this.api[mn]({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}});return l}),e("echarts/component/visualMapPiecewise",[Yr,X,"./visualMap/preprocessor","./visualMap/typeDefaulter","./visualMap/visualCoding","./visualMap/PiecewiseModel","./visualMap/PiecewiseView","./visualMap/visualMapAction"],function(t){t(X)[jt](t("./visualMap/preprocessor")),t("./visualMap/typeDefaulter"),t("./visualMap/visualCoding"),t("./visualMap/PiecewiseModel"),t("./visualMap/PiecewiseView"),t("./visualMap/visualMapAction")}),e("echarts/component/visualMap",[Yr,"./visualMapContinuous","./visualMapPiecewise"],function(t){t("./visualMapContinuous"),t("./visualMapPiecewise")}),e("echarts/component/marker/MarkPointModel",[Yr,"../../model/globalDefault",At,A],function(t){var e=t("../../model/globalDefault"),i=t(At);e.markPoint={};var n=t(A)[Zt]({type:"markPoint",dependencies:[Mn,"grid","polar"],init:function(t,e,i,n,r){this[kn](t,i),this[An](t,r,!0)},mergeOption:function(t,e,r){if(!e){var a=this[ir];a[ae](function(t){var e=t.get("markPoint"),o=t.markPointModel;if(!e||!e.data)return void(t.markPointModel=null);if(o)o[An](e,!0);else{r&&i[un](e.label,[On,"show",tr,yr,Ki]);var s={seriesIndex:t[on],name:t.name};o=new n(e,this,a,s,!0)}t.markPointModel=o},this)}},defaultOption:{
zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"inside"},emphasis:{show:!0}},itemStyle:{normal:{borderWidth:2},emphasis:{}}}});return n}),e("echarts/component/marker/markerHelper",[Yr,jr,mt],function(t){function e(t,e,i){var n=-1;do n=Math.max(r.getPrecision(t.get(e,i)),n),t=t.stackedOn;while(t);return n}function i(t,i,n,r,a){var o=[],s="average"===t?i[Rt](r,!0)/i.count():i[Ot](r)["max"===t?1:0],l=i.indexOfNearest(r,s);o[1-a]=i.get(n,l),o[a]=i.get(r,l,!0);var c=e(i,r,l);return c>=0&&(o[a]=+o[a][Zn](c)),o}var n=t(jr),r=t(mt),a=n.curry,o={min:a(i,"min"),max:a(i,"max"),average:a(i,"average")},s=function(t,e,i){if((isNaN(i.x)||isNaN(i.y))&&!n[kr](i.coord)&&e){var r,a,s,l;null!=i.valueIndex?(r=e[Nt][i.valueIndex],a=e[Nt][1-i.valueIndex],s=e[Q](r),l=e[Q](a)):(l=e[st](),s=e[ot](l),a=l.dim,r=s.dim);var c=null!=i.valueIndex?i.valueIndex:"angle"===r||"x"===r?0:1;i=n[Pr]({},i),i.type&&o[i.type]&&l&&s?(i.coord=o[i.type](t,l.dim,r,c),i.value=i.coord[c]):i.coord=[null!=i.xAxis?i.xAxis:i.radiusAxis,null!=i.yAxis?i.yAxis:i.angleAxis]}return i},l=function(t,e){return t&&e.coord&&(null==e.x||null==e.y)?t.containData(e.coord):!0},c=function(t,e,i,n){return 2>n?t.coord&&t.coord[n]:void t.value};return{dataTransform:s,dataFilter:l,dimValueGetter:c}}),e("echarts/component/marker/MarkPointView",[Yr,"../../chart/helper/SymbolDraw",jr,v,At,mt,Tt,"./markerHelper",A],function(t){function e(t,e,i){var r=e[Nt],a=new c(n.map(r,e.getDimensionInfo,e),i);return t&&a[Et](n[Ur](n.map(i.get("data"),n.curry(u.dataTransform,e,t)),n.curry(u.dataFilter,t)),null,u.dimValueGetter),a}var i=t("../../chart/helper/SymbolDraw"),n=t(jr),r=t(v),a=t(At),o=t(mt),s=r[Yi],l=r[$i],c=t(Tt),u=t("./markerHelper"),h={getRawDataArray:function(){return this[Un].data},formatTooltip:function(t){var e=this[an](),i=this[nn](t),r=n[kr](i)?n.map(i,s).join(", "):s(i),a=e[tn](t);return this.name+Xi+((a?l(a)+" : ":"")+r)},getData:function(){return this._data},setData:function(t){this._data=t}};n[rr](h,a.dataFormatMixin),t(A)[Bt]({type:"markPoint",init:function(){this._symbolDrawMap={}},render:function(t,e,i){var n=this._symbolDrawMap;for(var r in n)n[r].__keep=!1;e[ae](function(t){var e=t.markPointModel;e&&this._renderSeriesMP(t,e,i)},this);for(var r in n)n[r].__keep||(n[r][Ti](),this.group[Ti](n[r].group))},_renderSeriesMP:function(t,r,a){var s=t[St],l=t.name,c=t[an](),u=this._symbolDrawMap,d=u[l];d||(d=u[l]=new i);var f=e(s,c,r),p=s&&s[Nt];n.mixin(r,h),r[Qe](f),f.each(function(t){var e,i=f[Qi](t),n=i[Tr]("x"),l=i[Tr]("y");if(null!=n&&null!=l)e=[o[Fn](n,a[yn]()),o[Fn](l,a[gn]())];else if(s){var u=f.get(p[0],t),h=f.get(p[1],t);e=s[rt]([u,h])}f[Dt](t,e);var d=i[Tr](ft);typeof d===Rr&&(d=d(r[nn](t),r[Ji](t))),f[se](t,{symbolSize:d,color:i.get(Qt)||c[Pt]("color"),symbol:i[Tr](dt)})}),d[vt](f),this.group.add(d.group),f[vi](function(t){t[Si](function(t){t[Xt]=r})}),d.__keep=!0}})}),e("echarts/component/markPoint",[Yr,"./marker/MarkPointModel","./marker/MarkPointView"],function(t){t("./marker/MarkPointModel"),t("./marker/MarkPointView")}),e("echarts/component/marker/MarkLineModel",[Yr,"../../model/globalDefault",At,A],function(t){var e=t("../../model/globalDefault"),i=t(At);e.markLine={};var n=t(A)[Zt]({type:"markLine",dependencies:[Mn,"grid","polar"],init:function(t,e,i,n,r){this[kn](t,i),this[An](t,r,!0)},mergeOption:function(t,e,r){if(!e){var a=this[ir];a[ae](function(t){var e=t.get("markLine"),o=t.markLineModel;if(!e||!e.data)return void(t.markLineModel=null);if(o)o[An](e,!0);else{r&&i[un](e.label,[On,"show",tr,yr,Ki]);var s={seriesIndex:t[on],name:t.name};o=new n(e,this,a,s,!0)}t.markLineModel=o},this)}},defaultOption:{zlevel:0,z:5,symbol:[ht,"arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"end"},emphasis:{show:!0}},lineStyle:{normal:{type:"dashed"},emphasis:{width:3}},animationEasing:"linear"}});return n}),e("echarts/component/marker/MarkLineView",[Yr,jr,Tt,v,At,mt,"./markerHelper","../../chart/helper/LineDraw",A],function(t){function e(t,e){return u.dataFilter(t,e[0])&&u.dataFilter(t,e[1])}function i(t,i,a){var o=t[Nt],s=new r(o,a),l=new r(o,a),c=new r([],a);if(t){var h=t[st](),f=t[ot](h),p=a.get("precision"),v=n[Ur](n.map(a.get("data"),n.curry(d,i,t,h,f,p)),n.curry(e,t));s[Et](n.map(v,function(t){return t[0]}),null,u.dimValueGetter),l[Et](n.map(v,function(t){return t[1]}),null,u.dimValueGetter),c[Et](n.map(v,function(t){return t[2]}))}return{from:s,to:l,line:c}}var n=t(jr),r=t(Tt),a=t(v),o=t(At),s=t(mt),l=a[Yi],c=a[$i],u=t("./markerHelper"),h=t("../../chart/helper/LineDraw"),d=function(t,e,i,r,a,o){var s=o.type;if(!n[kr](o)&&"min"===s||"max"===s||"average"===s){null!=o.valueIndex&&(i=e[Q](e[Nt][1-o.valueIndex]),r=e[Q](e[Nt][o.valueIndex]));var l=i.dim+"Axis",c=r.dim+"Axis",h=i.scale[at](),d=n[Pr]({},o),f={};d.type=null,d[l]=h[0],f[l]=h[1];var p="average"===s?t[Rt](r.dim,!0)/t.count():t[Ot](r.dim)["max"===s?1:0];p=r[V](r[R](p)),d[c]=f[c]=p,o=[d,f,{type:s,value:+p[Zn](a)}]}return o=[u.dataTransform(t,e,o[0]),u.dataTransform(t,e,o[1]),n[Pr]({},o[2])],n.merge(o[2],o[0]),n.merge(o[2],o[1]),o},f={formatTooltip:function(t){var e=this._data,i=this[nn](t),r=n[kr](i)?n.map(i,l).join(", "):l(i),a=e[tn](t);return this.name+Xi+((a?c(a)+" : ":"")+r)},getRawDataArray:function(){return this[Un].data},getData:function(){return this._data},setData:function(t){this._data=t}};n[rr](f,o.dataFormatMixin),t(A)[Bt]({type:"markLine",init:function(){this._markLineMap={}},render:function(t,e,i){var n=this._markLineMap;for(var r in n)n[r].__keep=!1;e[ae](function(t){var n=t.markLineModel;n&&this._renderSeriesML(t,n,e,i)},this);for(var r in n)n[r].__keep||this.group[Ti](n[r].group)},_renderSeriesML:function(t,e,r,a){function o(t,e,i){var n,r=t[Qi](e),o=r.get("x"),c=r.get("y");if(null!=o&&null!=c)n=[s[Fn](o,a[yn]()),s[Fn](c,a[gn]())];else{var h=t.get(m[0],e),d=t.get(m[1],e);n=l[rt]([h,d])}t[Dt](e,n),t[se](e,{symbolSize:r.get(ft)||w[i?0:1],symbol:r.get(dt,!0)||_[i?0:1],color:r.get(Qt)||u[Pt]("color")})}var l=t[St],c=t.name,u=t[an](),d=this._markLineMap,p=d[c];p||(p=d[c]=new h),this.group.add(p.group);var v=i(l,u,e),m=l[Nt],g=v.from,y=v.to,x=v.line;n[Pr](e,f),e[Qe](x);var _=e.get(dt),w=e.get(ft);n[kr](_)||(_=[_,_]),typeof w===Er&&(w=[w,w]),v.from.each(function(t){o(g,t,!0),o(y,t)}),x.each(function(t){var e=x[Qi](t).get("lineStyle.normal.color");x[se](t,{color:e||g[Lt](t,"color")}),x[Dt](t,[g[It](t),y[It](t)])}),p[vt](x,g,y),v.line[vi](function(t,i){t[Si](function(t){t[Xt]=e})}),p.__keep=!0}})}),e("echarts/component/markLine",[Yr,"./marker/MarkLineModel","./marker/MarkLineView"],function(t){t("./marker/MarkLineModel"),t("./marker/MarkLineView")}),e("echarts/component/timeline/preprocessor",[Yr,jr],function(t){function e(t){var e=t.type,a={number:"value",time:"time"};if(a[e]&&(t.axisType=a[e],delete t.type),i(t),n(t,"controlPosition")){var o=t.controlStyle||(t.controlStyle={});n(o,On)||(o[On]=t.controlPosition),"none"!==o[On]||n(o,"show")||(o.show=!1,delete o[On]),delete t.controlPosition}r.each(t.data||[],function(t){r[Tn](t)&&!r[kr](t)&&(!n(t,"value")&&n(t,"name")&&(t.value=t.name),i(t))})}function i(t){var e=t[ne]||(t[ne]={}),i=e[cn]||(e[cn]={}),a=(e[ln]||(e[ln]={}),t.label||t.label||{}),o=a[ln]||(a[ln]={}),s={normal:1,emphasis:1};r.each(a,function(t,e){s[e]||n(o,e)||(o[e]=t)}),i.label&&!n(a,cn)&&(a[cn]=i.label,delete i.label)}function n(t,e){return t.hasOwnProperty(e)}var r=t(jr);return function(t){var i=t&&t[Sn];r[kr](i)||(i=i?[i]:[]),r.each(i,function(t){t&&e(t)})}}),e("echarts/component/timeline/typeDefaulter",[Yr,P],function(t){t(P)[qn](Sn,function(){return"slider"})}),e("echarts/component/timeline/timelineAction",[Yr,A],function(t){var e=t(A);e[qt]({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e){var i=e[pn](Sn);i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),e[Cn](Sn)}),e[qt]({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var i=e[pn](Sn);i&&null!=t.playState&&i.setPlayState(t.playState)})}),e("echarts/component/timeline/TimelineModel",[Yr,P,Tt,jr,At],function(t){var e=t(P),i=t(Tt),n=t(jr),r=t(At),a=e[Pr]({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{normal:{},emphasis:{}},label:{normal:{textStyle:{color:"#000"}},emphasis:{}},data:[]},init:function(t,e,i){this._data,this._names,this[kn](t,i),this._initData()},mergeOption:function(t){this[g](An,arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this[Un].currentIndex);var e=this._data.count();this[Un].loop?t=(t%e+e)%e:(t>=e&&(t=e-1),0>t&&(t=0)),this[Un].currentIndex=t},getCurrentIndex:function(){return this[Un].currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this[Un].autoPlay=!!t},getPlayState:function(){return!!this[Un].autoPlay},_initData:function(){var t=this[Un],e=t.data||[],a=t.axisType,o=this._names=[];if(a===Mt){var s=[];n.each(e,function(t,e){var i,a=r.getDataItemValue(t);n[Tn](t)?(i=n.clone(t),i.value=e):i=e,s.push(i),n[bn](a)||null!=a&&!isNaN(a)||(a=""),o.push(a+"")}),e=s}var l={category:"ordinal",time:"time"}[a]||Er,c=this._data=new i([{name:"value",type:l}],this);c[Et](e,o)},getData:function(){return this._data},getCategories:function(){return this.get("axisType")===Mt?this._names.slice():void 0}});return a}),e("echarts/component/timeline/SliderTimelineModel",[Yr,"./TimelineModel"],function(t){var e=t("./TimelineModel");return e[Pr]({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:!1,symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",normal:{show:!0,interval:"auto",rotate:0,textStyle:{color:"#304654"}},emphasis:{show:!0,textStyle:{color:"#c23531"}}},itemStyle:{normal:{color:"#304654",borderWidth:1},emphasis:{color:"#c23531"}},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",normal:{color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}})}),e("echarts/component/timeline/TimelineView",[Yr,"../../view/Component"],function(t){var e=t("../../view/Component");return e[Pr]({type:"timeline"})}),e("echarts/component/timeline/TimelineAxis",[Yr,jr,"../../coord/Axis",D],function(t){var e=t(jr),i=t("../../coord/Axis"),n=t(D),r=function(t,e,n,r){i.call(this,t,e,n),this.type=r||"value",this._autoLabelInterval,this.model=null};return r[Xr]={constructor:r,getLabelInterval:function(){var t=this.model,i=t[er](S),r=i.get(N);if(null!=r&&"auto"!=r)return r;var r=this._autoLabelInterval;return r||(r=this._autoLabelInterval=n.getAxisLabelInterval(e.map(this.scale[H](),this[R],this),n[O](this,i.get(Ki)),i[er](tr)[Jn](),t.get(d)===Vn)),r},isLabelIgnored:function(t){if(this.type===Mt){var e=this.getLabelInterval();return typeof e===Rr&&!e(t,this.scale[F](t))||t%(e+1)}}},e[Ir](r,i),r}),e("echarts/component/timeline/SliderTimelineView",[Yr,jr,gt,I,"./TimelineView","./TimelineAxis",yt,D,mr,gr,mt,At,v],function(t){function e(t,e){return l[In](t[k](),{width:e[yn](),height:e[gn]()},t.get(p))}function i(t,e,i,n){var r=s.makePath(t.get(e)[Wn](/^path:\/\//,""),o.clone(n||{}),new y(i[0],i[1],i[2],i[3]),or);return r}function n(t,e,i,n,r,a){var s=t.get(dt),l=e.get("color"),c=t.get(ft),u=c/2,h=e[ut](["color",dt,ft]);return r?(r[Ze](h),r[xt](l),i.add(r),a&&a.onUpdate(r)):(r=m[pt](s,-u,-u,c,c,l),i.add(r),a&&a.onCreate(r)),n=o.merge({rectHover:!0,style:h,z2:100},n,!0),r.attr(n),r}function r(t,e,i,n,r){if(!t.dragging){var a=n[er]("checkpointStyle"),o=i[R](n[an]().get(["value"],e));r||!a.get(Ri,!0)?t.attr({position:[o,0]}):(t[zi](!0),t[Ve]({position:[o,0]},a.get("animationDuration",!0),a.get("animationEasing",!0)))}}var o=t(jr),s=t(gt),l=t(I),c=t("./TimelineView"),u=t("./TimelineAxis"),m=t(yt),g=t(D),y=t(mr),x=t(gr),_=t(mt),w=t(At),A=t(v),C=A[$i],T=o.bind,L=o.each,P=Math.PI;return c[Pr]({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,i,n){this.model=t,this.api=i,this[ir]=e,this.group[wi]();var r=this._layout(t,i),a=this._createGroup("mainGroup"),o=this._createGroup("labelGroup"),s=this._axis=this._createAxis(r,t);L(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](r,a,s,t)},this),this._renderAxisLabel(r,o,s,t),this._position(r,t),this._doPlayStop()},remove:function(){this._clearTimer(),this.group[wi]()},dispose:function(){this._clearTimer()},_layout:function(t,i){var n=t.get("label.normal.position"),r=t.get(d),o=e(t,i);null==n||"auto"===n?n=r===Vn?o.y+o[pr]/2=0||"+"===n?"left":"right"},l={horizontal:n>=0||"+"===n?"top":lr,vertical:"middle"},c={horizontal:0,vertical:P/2},u=r===zn?o[pr]:o.width,f=t[er]("controlStyle"),p=f.get("show"),v=p?f.get("itemSize"):0,m=p?f.get(h):0,g=v+m,y=t.get("label.normal.rotate")||0;y=y*P/180;var x,_,w,b,M=f.get(On,!0),p=f.get("show",!0),S=p&&f.get("showPlayBtn",!0),A=p&&f.get("showPrevBtn",!0),C=p&&f.get("showNextBtn",!0),T=0,k=u;return"left"===M||M===lr?(S&&(x=[0,0],T+=g),A&&(_=[T,0],T+=g),C&&(w=[k-v,0],k-=g)):(S&&(x=[k-v,0],k-=g),A&&(_=[0,0],T+=g),C&&(w=[k-v,0],k-=g)),b=[T,k],t.get(J)&&b[a](),{viewRect:o,mainLength:u,orient:r,rotation:c[r],labelRotation:y,labelPosOpt:n,labelAlign:s[r],labelBaseline:l[r],playPosition:x,prevBtnPosition:_,nextBtnPosition:w,axisExtent:b,controlSize:v,controlGap:m}},_position:function(t,e){function i(t){var e=t[On];t[qi]=[h[0][0]-e[0],h[1][0]-e[1]]}function n(t){return[[t.x,t.x+t.width],[t.y,t.y+t[pr]]]}function r(t,e,i,n,r){t[n]+=i[n][r]-e[n][r]}var a=this._mainGroup,o=this._labelGroup,s=t.viewRect;if(t[d]===zn){var l=x[fr](),c=s.x,u=s.y+s[pr];x[dr](l,l,[-c,-u]),x[Bi](l,l,-P/2),x[dr](l,l,[c,u]),s=s.clone(),s[vr](l)}var h=n(s),f=n(a[Qn]()),p=n(o[Qn]()),v=a[On],m=o[On];m[0]=v[0]=h[0][0];var g=t.labelPosOpt;if(isNaN(g)){var y="+"===g?0:1;r(v,f,h,1,y),r(m,p,h,1,1-y)}else{var y=g>=0?0:1;r(v,f,h,1,y),m[1]=v[1]+g}a[On]=v,o[On]=m,a[Ui]=o[Ui]=t[Ui],i(a),i(o)},_createAxis:function(t,e){var i=e[an](),n=e.get("axisType"),r=g[E](e,n),a=i[Ot]("value");r[W](a[0],a[1]),this._customizeScale(r,i),r.niceTicks();var o=new u("value",r,t.axisExtent,n);return o.model=e,o},_customizeScale:function(t,e){t[H]=function(){return e[zt](["value"],function(t){return t})},t.getTicksLabels=function(){return o.map(this[H](),t[F],t)}},_createGroup:function(t){var e=this["_"+t]=new s.Group;return this.group.add(e),e},_renderAxisLine:function(t,e,i,n){var r=i[at]();n.get("lineStyle.show")&&e.add(new s.Line({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:o[Pr]({lineCap:"round"},n[er](re)[Y]()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,i,r){var a=r[an](),o=i.scale[H](),l=this._prepareTooltipHostModel(a,r);L(o,function(t,r){var o=i[R](t),c=a[Qi](r),u=c[er](b),h=c[er](M),d={position:[o,0],onclick:T(this._changeTimeline,this,r)},f=n(c,u,e,d);s[Be](f,h[ut]()),c.get("tooltip")?(f[yi]=r,f[Xt]=l):f[yi]=f[Xt]=null},this)},_prepareTooltipHostModel:function(t,e){var i=w[sn]({},t,e.get("data")),n=this;return i[f]=function(t){return C(n._axis.scale[F](t))},i},_renderAxisLabel:function(t,e,i,n){var r=n[er](S);if(r.get("show")){var a=n[an](),o=i.scale[H](),l=g[O](i,r.get(Ki)),c=i.getLabelInterval();L(o,function(n,r){if(!i.isLabelIgnored(r,c)){var o=a[Qi](r),u=o[er]("label.normal.textStyle"),h=o[er]("label.emphasis.textStyle"),d=i[R](n),f=new s.Text({style:{text:l[r],textAlign:t.labelAlign,textBaseline:t.labelBaseline,textFont:u[Jn](),fill:u[Re]()},position:[d,0],rotation:t.labelRotation-t[Ui],onclick:T(this._changeTimeline,this,r),silent:!1});e.add(f),s[Be](f,h[ut]())}},this)}},_renderControl:function(t,e,n,r){function a(t,n,a,d){if(t){var f={position:t,origin:[o/2,0],rotation:d?-l:0,rectHover:!0,style:c,onclick:a},p=i(r,n,h,f);e.add(p),s[Be](p,u)}}var o=t.controlSize,l=t[Ui],c=r[er]("controlStyle.normal")[ut](),u=r[er]("controlStyle.emphasis")[ut](),h=[0,-o/2,o,o],d=r.getPlayState(),f=r.get(J,!0);a(t.nextBtnPosition,"controlStyle.nextIcon",T(this._changeTimeline,this,f?"-":"+")),a(t.prevBtnPosition,"controlStyle.prevIcon",T(this._changeTimeline,this,f?"+":"-")),a(t.playPosition,"controlStyle."+(d?"stopIcon":"playIcon"),T(this._handlePlayClick,this,!d),!0)},_renderCurrentPointer:function(t,e,i,a){var o=a[an](),s=a.getCurrentIndex(),l=o[Qi](s)[er]("checkpointStyle"),c=this,u={onCreate:function(t){t[Ii]=!0,t.drift=T(c._handlePointerDrag,c),t.ondragend=T(c._handlePointerDragend,c),r(t,s,i,a,!0)},onUpdate:function(t){r(t,s,i,a)}};this._currentPointer=n(l,l,this._mainGroup,{},this._currentPointer,u)},_handlePlayClick:function(t){this._clearTimer(),this.api[mn]({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,i){this._clearTimer(),this._pointerChangeTimeline([i[Ce],i[Ae]])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t[Ce],t[Ae]],!0)},_pointerChangeTimeline:function(t,e){var i=this._toAxisCoord(t)[0],n=this._axis,r=_.asc(n[at]().slice());i>r[1]&&(i=r[1]),is&&(n=s,e=a)}),e},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api[mn]({type:"timelineChange",currentIndex:t,from:this.uid})}})}),e("echarts/component/timeline",[Yr,X,"./timeline/preprocessor","./timeline/typeDefaulter","./timeline/timelineAction","./timeline/SliderTimelineModel","./timeline/SliderTimelineView"],function(t){var e=t(X);e[jt](t("./timeline/preprocessor")),t("./timeline/typeDefaulter"),t("./timeline/timelineAction"),t("./timeline/SliderTimelineModel"),t("./timeline/SliderTimelineView")}),e("echarts/component/toolbox/featureManager",[Yr],function(t){var e={};return{register:function(t,i){e[t]=i},get:function(t){return e[t]}}}),e("echarts/component/toolbox/ToolboxModel",[Yr,"./featureManager",jr,A],function(t){var e=t("./featureManager"),i=t(jr);t(A)[Zt]({type:"toolbox",mergeDefaultAndTheme:function(t){this[g](kn,arguments),i.each(this[Un].feature,function(t,n){var r=e.get(n);r&&i.merge(t,r.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{normal:{borderColor:"#666",color:"none"},emphasis:{borderColor:"#3E98C5"}}}})}),e("echarts/component/toolbox/ToolboxView",[Yr,"./featureManager",jr,gt,C,"../../data/DataDiffer","../helper/listComponent",hr,A],function(t){var e=t("./featureManager"),i=t(jr),n=t(gt),r=t(C),a=t("../../data/DataDiffer"),o=t("../helper/listComponent"),s=t(hr);return t(A)[Bt]({type:"toolbox",render:function(t,l,c){function h(i,n){var a,o=g[i],s=g[n],u=v[o],h=new r(u,t,t[ir]);if(o&&!s){var f=e.get(o);if(!f)return;m[o]=a=new f(h)}else{if(a=m[s],!a)return;a.model=h}return!o&&s?void(a[ue]&&a[ue](l,c)):h.get("show")?(d(h,a,o),h.setIconStatus=function(t,e){var i=this[Un],n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,n[t]&&n[t][xi](e)},void(a[_i]&&a[_i](h,l,c))):void(a[Ti]&&a[Ti](l,c))}function d(e,r,a){var o=e[er]("iconStyle"),s=r.getIcons?r.getIcons():e.get("icon"),u=e.get("title")||{};if(typeof s===Nr){var h=s,d=u;s={},u={},s[a]=h,u[a]=d}var v=e.iconPaths={};i.each(s,function(a,s){var h=o[er](ln)[ut](),d=o[er](cn)[ut](),m=n.makePath(a,{style:h,hoverStyle:d,rectHover:!0},{x:-p/2,y:-p/2,width:p,height:p},or);n[Be](m),t.get("showTitle")&&(m.__title=u[s],m.on(Ne,function(){m[Ze]({text:u[s],textPosition:d[pi]||lr,textFill:d.fill||d[Ar]||"#000",textAlign:d[fi]||or})}).on(Ee,function(){m[Ze]({textFill:null})})),m[xi](e.get("iconStatus."+s)||ln),f.add(m),m.on("click",i.bind(r.onclick,r,l,c,s)),v[s]=m})}var f=this.group;if(f[wi](),t.get("show")){var p=+t.get("itemSize"),v=t.get("feature")||{},m=this._features||(this._features={}),g=[];i.each(v,function(t,e){g.push(e)}),new a(this._featureNames||[],g).add(h)[ye](h)[Ti](i.curry(h,null))[lt](),this._featureNames=g,o[u](f,t,c),o.addBackground(f,t),f[En](function(t){var e=t.__title,i=t[Ge];if(i&&e){var n=s[Qn](e,i.font),r=t[On][0]+f[On][0],a=t[On][1]+f[On][1]+p,o=!1;a+n[pr]>c[gn]()&&(i[pi]="top",o=!0);var l=o?-5-n[pr]:p+8;r+n.width/2>c[yn]()?(i[pi]=["100%",l],i[fi]="right"):r-n.width/2<0&&(i[pi]=[0,l],i[fi]="left")}})}},remove:function(t,e){i.each(this._features,function(i){i[Ti]&&i[Ti](t,e)}),this.group[wi]()},dispose:function(t,e){i.each(this._features,function(i){i[ue]&&i[ue](t,e)})}})}),e("echarts/component/toolbox/feature/SaveAsImage",[Yr,"../featureManager"],function(t){function e(t){this.model=t}e.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6 M29.2,45.1L29.2,0",title:"保存为图片",type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1};var i=e[Xr];return i.onclick=function(t,e){var i=this.model,n=t.get("title.0.text")||"echarts",r=document[Fr]("a"),a=i.get("type",!0)||"png";r.download=n+"."+a,r[Ei]="_blank",r.href=e.getConnectedDataURL({type:a,backgroundColor:i.get(fe,!0)||t.get(fe)||"#fff",excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),r.click()},t("../featureManager")[vn]("saveAsImage",e),e}),e("echarts/component/toolbox/feature/MagicType",[Yr,jr,"../../../echarts","../featureManager"],function(t){function e(t){this.model=t}var i=t(jr);e.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"},option:{},seriesIndex:{}};var n=e[Xr];n.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return i.each(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n};var r={line:function(t,e,n,r){return"bar"===t?i.merge({id:e,type:"line",data:n.get("data"),stack:n.get("stack")},r.get("option.line")):void 0},bar:function(t,e,n,r){return"line"===t?i.merge({id:e,type:"bar",data:n.get("data"),stack:n.get("stack")},r.get("option.bar")):void 0},stack:function(t,e,i,n){return"line"===t||"bar"===t?{id:e,stack:"__ec_magicType_stack__"}:void 0},tiled:function(t,e,i,n){return"line"===t||"bar"===t?{id:e,stack:""}:void 0}},a=[["line","bar"],["stack","tiled"]];n.onclick=function(t,e,n){var o=this.model,s=o.get("seriesIndex."+n);if(r[n]){var l={series:[]},c=function(t){var e=t.subType,a=t.id,s=r[n](e,a,t,o);s&&(i[rr](s,t[Un]),l[Mn].push(s))};i.each(a,function(t){i[Br](t,n)>=0&&i.each(t,function(t){o.setIconStatus(t,ln)})}),o.setIconStatus(n,cn),t[Kt]({mainType:"series",seriesIndex:s},c),e[mn]({type:"changeMagicType",currentType:n,newOption:l})}};var o=t("../../../echarts");return o[qt]({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e[An](t.newOption)}),t("../featureManager")[vn]("magicType",e),e}),e("echarts/component/toolbox/feature/DataView",[Yr,jr,De,"../featureManager","../../../echarts"],function(t){function e(t){var e={},i=[],n=[];return t.eachRawSeries(function(t){var r=t[St];if(!r||r.type!==T&&"polar"!==r.type)i.push(t);else{var a=r[st]();if(a.type===Mt){var o=a.dim+"_"+a.index;e[o]||(e[o]={categoryAxis:a,valueAxis:r[ot](a),series:[]},n.push({axisDim:a.dim,axisIndex:a.index})),e[o][Mn].push(t)}else i.push(t)}}),{seriesGroupByCategoryAxis:e,other:i,meta:n}}function i(t){var e=[];return f.each(t,function(t,i){var n=t.categoryAxis,r=t.valueAxis,a=r.dim,o=[" "][Or](f.map(t[Mn],function(t){return t.name})),s=[n.model[bt]()];f.each(t[Mn],function(t){s.push(t.getRawData()[zt](a,function(t){return t}))});for(var l=[o.join(m)],c=0;co;o++)n[o]=arguments[o];i.push((a?a+m:"")+n.join(m))}),i.join("\n")}).join("\n\n"+v+"\n\n")}function a(t){var n=e(t);return{value:f[Ur]([i(n.seriesGroupByCategoryAxis),r(n.other)],function(t){return t[Wn](/[\n\t\s]/g,"")}).join("\n\n"+v+"\n\n"),meta:n.meta}}function o(t){return t[Wn](/^\s\s*/,"")[Wn](/\s\s*$/,"")}function s(t){var e=t.slice(0,t[Br]("\n"));return e[Br](m)>=0?!0:void 0}function l(t){for(var e=t.split(/\n+/g),i=o(e.shift()).split(g),n=[],r=f.map(i,function(t){return{name:t,data:[]}}),a=0;a=0;n--){var a=r[n];if(a[i])break}if(0>n){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var s=o.getPercentRange();r[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}}),r.push(i)},pop:function(t){var i=e(t),r=i[i[Hr]-1];i[Hr]>1&&i.pop();var a={};return n(r,function(t,e){for(var n=i[Hr]-1;n>=0;n--){var t=i[n][e];if(t){a[e]=t;break}}}),a},clear:function(t){t[r]=null},count:function(t){return e(t)[Hr]}};return a}),e("echarts/component/dataZoom/SelectZoomModel",[Yr,"./DataZoomModel"],function(t){var e=t("./DataZoomModel");return e[Pr]({type:"dataZoom.select"})}),e("echarts/component/dataZoom/SelectZoomView",[Yr,"./DataZoomView"],function(t){return t("./DataZoomView")[Pr]({type:"dataZoom.select"})}),e("echarts/component/dataZoomSelect",[Yr,"./dataZoom/typeDefaulter","./dataZoom/DataZoomModel","./dataZoom/DataZoomView","./dataZoom/SelectZoomModel","./dataZoom/SelectZoomView","./dataZoom/dataZoomProcessor","./dataZoom/dataZoomAction"],function(t){
t("./dataZoom/typeDefaulter"),t("./dataZoom/DataZoomModel"),t("./dataZoom/DataZoomView"),t("./dataZoom/SelectZoomModel"),t("./dataZoom/SelectZoomView"),t("./dataZoom/dataZoomProcessor"),t("./dataZoom/dataZoomAction")}),e("echarts/component/toolbox/feature/DataZoom",[Yr,jr,"../../../util/number","../../helper/SelectController",mr,"zrender/container/Group","../../dataZoom/history","../../helper/interactionMutex","../../dataZoomSelect","../featureManager","../../../echarts"],function(t){function e(t){this.model=t,this._controllerGroup,this[s],this._isZoomActive}function i(t,e){var i=[{axisModel:t[Q]("x").model,axisIndex:0},{axisModel:t[Q]("y").model,axisIndex:0}];return i.grid=t,e[Kt]({mainType:"dataZoom",subType:"select"},function(t,r){n("xAxis",i[0].axisModel,t,e)&&(i[0].dataZoomModel=t),n("yAxis",i[1].axisModel,t,e)&&(i[1].dataZoomModel=t)}),i}function n(t,e,i,n){var r=i.get(t+"Index");return null!=r&&n[pn](t,r)===e}function r(t,e){var i=e.grid,n=new d(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0]);if(n[me](i[L]())){var r=i.getCartesian(e[0][dn],e[1][dn]),a=r.pointToData([t[0][0],t[1][0]],!0),o=r.pointToData([t[0][1],t[1][1]],!0);return[g([a[0],o[0]]),g([a[1],o[1]])]}}function a(t,e,i,n){var r=e[i],a=r.dataZoomModel;return a?{dataZoomId:a.id,startValue:t[i][0],endValue:t[i][1]}:void 0}function o(t,e){t.setIconStatus("back",p.count(e)>1?cn:ln)}var c=t(jr),u=t("../../../util/number"),h=t("../../helper/SelectController"),d=t(mr),f=t("zrender/container/Group"),p=t("../../dataZoom/history"),v=t("../../helper/interactionMutex"),m=c.each,g=u.asc;t("../../dataZoomSelect");var x="\x00_ec_\x00toolbox-dataZoom_";e.defaultOption={show:!0,icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:{zoom:"区域缩放",back:"区域缩放还原"}};var _=e[Xr];_[_i]=function(t,e,i){o(t,e)},_.onclick=function(t,e,i){var n=this._controllerGroup;this._controllerGroup||(n=this._controllerGroup=new f,e.getZr().add(n)),w[i].call(this,n,this.model,t,e)},_[Ti]=function(t,e){this._disposeController(),v.release("globalPan",e.getZr())},_[ue]=function(t,e){var i=e.getZr();v.release("globalPan",i),this._disposeController(),this._controllerGroup&&i[Ti](this._controllerGroup)};var w={zoom:function(t,e,i,n){var r=this._isZoomActive=!this._isZoomActive,a=n.getZr();v[r?"take":"release"]("globalPan",a),e.setIconStatus("zoom",r?cn:ln),r?(a.setDefaultCursorStyle("crosshair"),this._createController(t,e,i,n)):(a.setDefaultCursorStyle("default"),this._disposeController())},back:function(t,e,i,n){this._dispatchAction(p.pop(i),n)}};return _._createController=function(t,e,i,n){var r=this[s]=new h("rect",n.getZr(),{lineWidth:3,stroke:"#333",fill:"rgba(0,0,0,0.2)"});r.on("selectEnd",c.bind(this._onSelected,this,r,e,i,n)),r[l](t,!1)},_._disposeController=function(){var t=this[s];t&&(t.off(y),t[ue]())},_._onSelected=function(t,e,n,o,s){if(s[Hr]){var l=s[0];t[ye]();var c={};n[Kt]("grid",function(t,e){var o=t[St],s=i(o,n),u=r(l,s);if(u){var h=a(u,s,0,"x"),d=a(u,s,1,"y");h&&(c[h.dataZoomId]=h),d&&(c[d.dataZoomId]=d)}},this),p.push(n,c),this._dispatchAction(c,o)}},_._dispatchAction=function(t,e){var i=[];m(t,function(t){i.push(t)}),i[Hr]&&e[mn]({type:"dataZoom",from:this.uid,batch:c.clone(i,!0)})},t("../featureManager")[vn](ee,e),t("../../../echarts")[jt](function(t){function e(t,e){if(e){var r=t+"Index",a=e[r];null==a||c[kr](a)||(a=a===!1?[]:[a]),i(t,function(e,i){if(null==a||-1!==c[Br](a,i)){var o={type:"select",$fromToolbox:!0,id:x+t+i};o[r]=i,n.push(o)}})}}function i(e,i){var n=t[e];c[kr](n)||(n=n?[n]:[]),m(n,i)}if(t){var n=t[ee]||(t[ee]=[]);c[kr](n)||(n=[n]);var r=t.toolbox;if(r&&(c[kr](r)&&(r=r[0]),r&&r.feature)){var a=r.feature[ee];e("xAxis",a),e("yAxis",a)}}}),e}),e("echarts/component/toolbox/feature/Restore",[Yr,"../../dataZoom/history","../featureManager","../../../echarts"],function(t){function e(t){this.model=t}var i=t("../../dataZoom/history");e.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:"还原"};var n=e[Xr];return n.onclick=function(t,e,n){i.clear(t),e[mn]({type:"restore",from:this.uid})},t("../featureManager")[vn](ei,e),t("../../../echarts")[qt]({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e[Cn]("recreate")}),e}),e("echarts/component/toolbox",[Yr,"./toolbox/ToolboxModel","./toolbox/ToolboxView","./toolbox/feature/SaveAsImage","./toolbox/feature/MagicType","./toolbox/feature/DataView","./toolbox/feature/DataZoom","./toolbox/feature/Restore"],function(t){t("./toolbox/ToolboxModel"),t("./toolbox/ToolboxView"),t("./toolbox/feature/SaveAsImage"),t("./toolbox/feature/MagicType"),t("./toolbox/feature/DataView"),t("./toolbox/feature/DataZoom"),t("./toolbox/feature/Restore")}),e("zrender/vml/core",[Yr,"../core/env"],function(t){function e(){if(!o){o=!0;var t=a.styleSheets;t[Hr]<31?a.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}}if(!t("../core/env")[he]){var i,n="urn:schemas-microsoft-com:vml",r=window,a=r.document,o=!1;try{!a.namespaces.zrvml&&a.namespaces.add("zrvml",n),i=function(t){return a[Fr]("')}}catch(s){i=function(t){return a[Fr]("<"+t+' xmlns="'+n+'" class="zrvml">')}}return{doc:a,initVML:e,createNode:i}}}),e("zrender/vml/graphic",[Yr,"../core/env","../core/vector",cr,"../core/PathProxy","../tool/color","../contain/text","../graphic/mixin/RectText","../graphic/Displayable","../graphic/Image","../graphic/Text","../graphic/Path","../graphic/Gradient","./core"],function(t){function e(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=G+","+G,t.coordorigin="0,0"}function i(t){return String(t)[Wn](/&/g,"&")[Wn](/"/g,""")}function n(t,e,i){return"rgb("+[t,e,i].join(",")+")"}function r(t,e){e&&t&&e[Se]!==t&&t[pe](e)}function a(t,e){e&&t&&e[Se]===t&&t.removeChild(e)}function o(t,e,i){return(parseFloat(t)||0)*F+(parseFloat(e)||0)*H+i}function s(t,e,i){var r=b.parse(e);i=+i,isNaN(i)&&(i=1),r&&(t.color=n(r[0],r[1],r[2]),t[Sr]=i*r[3])}function l(t){var e=b.parse(t);return[n(e[0],e[1],e[2]),e[3]]}function c(t,e,i){var n=e.fill;if(null!=n)if(n instanceof L){var r,a=0,o=[0,0],c=0,u=1,h=i[Qn](),d=h.width,f=h[pr];if(n.type===Vi){r="gradient";var p=i[Wi],v=[n.x*d,n.y*f],m=[n.x2*d,n.y2*f];p&&(E(v,v,p),E(m,m,p));var g=m[0]-v[0],y=m[1]-v[1];a=180*Math.atan2(g,y)/Math.PI,0>a&&(a+=360),1e-6>a&&(a=0)}else{r="gradientradial";var v=[n.x*d,n.y*f],p=i[Wi],x=i.scale,_=d,w=f;o=[(v[0]-h.x)/_,(v[1]-h.y)/w],p&&E(v,v,p),_/=x[0]*G,w/=x[1]*G;var b=O(_,w);c=0/b,u=2*n.r/b-c}var M=n.colorStops.slice();M.sort(function(t,e){return t[Xe]-e[Xe]});for(var S=M[Hr],A=[],C=[],T=0;S>T;T++){var k=M[T],D=l(k.color);C.push(k[Xe]*u+c+" "+D[0]),(0===T||T===S-1)&&A.push(D)}if(S>=2){var I=A[0][0],P=A[1][0],z=A[0][1]*e[Sr],V=A[1][1]*e[Sr];t.type=r,t.method="none",t.focus="100%",t.angle=a,t.color=I,t.color2=P,t.colors=C.join(","),t[Sr]=V,t.opacity2=z}"radial"===r&&(t.focusposition=o.join(","))}else s(t,n,e[Sr])}function u(t,e){null!=e.lineJoin&&(t.joinstyle=e.lineJoin),null!=e.miterLimit&&(t.miterlimit=e.miterLimit*G),null!=e.lineCap&&(t.endcap=e.lineCap),null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e[Ar]||e[Ar]instanceof L||s(t,e[Ar],e[Sr])}function h(t,e,i,n){var o="fill"==e,s=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(o||!o&&i[Cr])?(t[o?"filled":"stroked"]="true",i[e]instanceof L&&a(t,s),s||(s=D.createNode(e)),o?c(s,i,n):u(s,i),r(t,s)):(t[o?"filled":"stroked"]="false",a(t,s))}function d(t,e){var i,n,r,a,o,s,l=w.M,c=w.C,u=w.L,h=w.A,d=w.Q,f=[];for(a=0;a0){f.push(n);for(var j=0;i>j;j++){var X=W[j];e&&E(X,X,e),f.push(I(X[0]*G-Z),N,I(X[1]*G-Z),i-1>j?N:"")}}}return f.join("")}function f(t){return typeof t===Wr&&t.tagName&&"IMG"===t.tagName[Nn]()}function v(t){var e=j[t];if(!e){X>Y&&(X=0,j={});var i,n=$.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(r){}e={style:n.fontStyle||U,variant:n.fontVariant||U,weight:n.fontWeight||U,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},j[t]=e,X++}return e}function m(t,n,a,s){var l=this.style,c=l.text;if(c){var u,d,f=l[fi],p=v(l.textFont),m=p.style+" "+p.variant+" "+p.weight+" "+p.size+'px "'+p.family+'"',g=l[di];a=a||M[Qn](c,m,f,g);var y=this[Wi];if(y&&!s&&(K.copy(n),K[vr](y),n=K),s)u=n.x,d=n.y;else{var x=l[pi],_=l.textDistance;if(x instanceof Array)u=n.x+x[0],d=n.y+x[1],f=f||"left",g=g||"top";else{var w=M.adjustTextPositionOnRect(x,n,a,_);u=w.x,d=w.y,f=f||w[fi],g=g||w[di]}}var b=p.size;switch(g){case"hanging":case"top":d+=b/1.75;break;case sr:break;default:d-=b/2.25}switch(f){case"left":break;case or:u-=a.width/2;break;case"right":u-=a.width}var S,A,C,T=D.createNode,k=this._textVmlEl;k?(C=k.firstChild,S=C.nextSibling,A=S.nextSibling):(k=T("line"),S=T("path"),A=T("textpath"),C=T("skew"),A.style["v-text-align"]="left",e(k),S.textpathok=!0,A.on=!0,k.from="0 0",k.to="1000 0.05",r(k,C),r(k,S),r(k,A),this._textVmlEl=k);var L=[u,d],P=k.style;y&&s?(E(L,L,y),C.on=!0,C.matrix=y[0][Zn](3)+N+y[2][Zn](3)+N+y[1][Zn](3)+N+y[3][Zn](3)+",0,0",C[Xe]=(I(L[0])||0)+","+(I(L[1])||0),C[qi]="0 0",P.left="0px",P.top="0px"):(C.on=!1,P.left=I(u)+"px",P.top=I(d)+"px"),A[Nr]=i(c);try{A.style.font=m}catch(z){}h(k,"fill",{fill:s?l.fill:l.textFill,opacity:l[Sr]},this),h(k,Ar,{stroke:s?l[Ar]:l.textStroke,opacity:l[Sr],lineDash:l.lineDash},this),k.style.zIndex=o(this[xe],this.z,this.z2),r(t,k)}}function g(t){a(t,this._textVmlEl),this._textVmlEl=null}function y(t){r(t,this._textVmlEl)}if(!t("../core/env")[he]){var x=t("../core/vector"),_=t(cr),w=t("../core/PathProxy").CMD,b=t("../tool/color"),M=t("../contain/text"),S=t("../graphic/mixin/RectText"),A=t("../graphic/Displayable"),C=t("../graphic/Image"),T=t("../graphic/Text"),k=t("../graphic/Path"),L=t("../graphic/Gradient"),D=t("./core"),I=Math.round,P=Math.sqrt,z=Math.abs,V=Math.cos,R=Math.sin,O=Math.max,E=x[vr],N=",",B="progid:DXImageTransform.Microsoft",G=21600,Z=G/2,F=1e5,H=1e3,W=[[],[],[]];k[Xr].brush=function(t){var i=this.style,n=this._vmlEl;n||(n=D.createNode("shape"),e(n),this._vmlEl=n),h(n,"fill",i,this),h(n,Ar,i,this);var a=this[Wi],s=null!=a,l=n.getElementsByTagName(Ar)[0];if(l){var c=i[Cr];if(s&&!i.strokeNoScale){var u=a[0]*a[3]-a[1]*a[2];c*=P(z(u))}l.weight=c+"px"}var f=this.path;this.__dirtyPath&&(f[ci](),this[ii](f,this.shape),this.__dirtyPath=!1),n.path=d(f.data,this[Wi]),n.style.zIndex=o(this[xe],this.z,this.z2),r(t,n),i.text&&this.drawRectText(t,this[Qn]())},k[Xr].onRemoveFromStorage=function(t){a(t,this._vmlEl),this.removeRectText(t)},k[Xr].onAddToStorage=function(t){r(t,this._vmlEl),this.appendRectText(t)},C[Xr].brush=function(t){var i,n,a=this.style,s=a.image;if(f(s)){var l=s.src;if(l===this._imageSrc)i=this._imageWidth,n=this._imageHeight;else{var c=s.runtimeStyle,u=c.width,h=c[pr];c.width="auto",c[pr]="auto",i=s.width,n=s[pr],c.width=u,c[pr]=h,this._imageSrc=l,this._imageWidth=i,this._imageHeight=n}s=l}else s===this._imageSrc&&(i=this._imageWidth,n=this._imageHeight);if(s){var d=a.x||0,v=a.y||0,m=a.width,g=a[pr],y=a.sWidth,x=a.sHeight,_=a.sx||0,w=a.sy||0,b=y&&x,M=this._vmlEl;M||(M=D.doc[Fr]("div"),e(M),this._vmlEl=M);var S,A=M.style,C=!1,T=1,k=1;if(this[Wi]&&(S=this[Wi],T=P(S[0]*S[0]+S[1]*S[1]),k=P(S[2]*S[2]+S[3]*S[3]),C=S[1]||S[2]),C){var L=[d,v],z=[d+m,v],V=[d,v+g],R=[d+m,v+g];E(L,L,S),E(z,z,S),E(V,V,S),E(R,R,S);var G=O(L[0],z[0],V[0],R[0]),Z=O(L[1],z[1],V[1],R[1]),F=[];F.push("M11=",S[0]/T,N,"M12=",S[2]/k,N,"M21=",S[1]/T,N,"M22=",S[3]/k,N,"Dx=",I(d*T+S[4]),N,"Dy=",I(v*k+S[5])),A[p]="0 "+I(G)+"px "+I(Z)+"px 0",A[Ur]=B+".Matrix("+F.join("")+", SizingMethod=clip)"}else S&&(d=d*T+S[4],v=v*k+S[5]),A[Ur]="",A.left=I(d)+"px",A.top=I(v)+"px";var H=this._imageEl,W=this._cropEl;H||(H=D.doc[Fr]("div"),this._imageEl=H);var q=H.style;if(b){if(i&&n)q.width=I(T*i*m/y)+"px",q[pr]=I(k*n*g/x)+"px";else{var U=new Image,j=this;U.onload=function(){U.onload=null,i=U.width,n=U[pr],q.width=I(T*i*m/y)+"px",q[pr]=I(k*n*g/x)+"px",j._imageWidth=i,j._imageHeight=n,j._imageSrc=s},U.src=s}W||(W=D.doc[Fr]("div"),W.style.overflow="hidden",this._cropEl=W);var X=W.style;X.width=I((m+_*m/y)*T),X[pr]=I((g+w*g/x)*k),X[Ur]=B+".Matrix(Dx="+-_*m/y*T+",Dy="+-w*g/x*k+")",W[Se]||M[pe](W),H[Se]!=W&&W[pe](H)}else q.width=I(T*m)+"px",q[pr]=I(k*g)+"px",M[pe](H),W&&W[Se]&&(M.removeChild(W),this._cropEl=null);var Y="",$=a[Sr];1>$&&(Y+=".Alpha(opacity="+I(100*$)+") "),Y+=B+".AlphaImageLoader(src="+s+", SizingMethod=scale)",q[Ur]=Y,M.style.zIndex=o(this[xe],this.z,this.z2),r(t,M),a.text&&this.drawRectText(t,this[Qn]())}},C[Xr].onRemoveFromStorage=function(t){a(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},C[Xr].onAddToStorage=function(t){r(t,this._vmlEl),this.appendRectText(t)};var q,U=ln,j={},X=0,Y=100,$=document[Fr]("div");M.measureText=function(t,e){var i=D.doc;q||(q=i[Fr]("div"),q.style.cssText="position:absolute;top:-20000px;left:0; padding:0;margin:0;border:none;white-space:pre;",D.doc.body[pe](q));try{q.style.font=e}catch(n){}return q[ve]="",q[pe](i.createTextNode(t)),{width:q.offsetWidth}};for(var K=new _,J=[S,A,C,k,T],Q=0;Q