(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-03addcd9"],{"00fdb":function(t,e,n){var i=n("9e69"),r=Object.prototype,a=r.hasOwnProperty,o=r.toString,s=i?i.toStringTag:void 0;function l(t){var e=a.call(t,s),n=t[s];try{t[s]=void 0;var i=!0}catch(l){}var r=o.call(t);return i&&(e?t[s]=n:delete t[s]),r}t.exports=l},"0156":function(t,e,n){var i=n("6d8b");function r(t,e,n){n=n||{};var r=t.coordinateSystem,a=e.axis,o={},s=a.getAxesOnZeroOf()[0],l=a.position,c=s?"onZero":l,h=a.dim,u=r.getRect(),d=[u.x,u.x+u.width,u.y,u.y+u.height],f={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,g="x"===h?[d[2]-p,d[3]+p]:[d[0]-p,d[1]+p];if(s){var v=s.toGlobalCoord(s.dataToCoord(0));g[f.onZero]=Math.max(Math.min(v,g[1]),g[0])}o.position=["y"===h?g[f[c]]:d[0],"x"===h?g[f[c]]:d[3]],o.rotation=Math.PI/2*("x"===h?0:1);var m={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=m[l],o.labelOffset=s?g[f[l]]-g[f.onZero]:0,e.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),i.retrieve(n.labelInside,e.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var y=e.get("axisLabel.rotate");return o.labelRotate="top"===c?-y:y,o.z2=1,o}e.layout=r},"01ed":function(t,e,n){var i=n("3eba"),r=n("6d8b"),a=n("2306");n("5aa9"),n("af24"),i.extendComponentView({type:"grid",render:function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new a.Rect({shape:t.coordinateSystem.getRect(),style:r.defaults({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))}}),i.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})},"0352":function(t,e,n){var i=n("6cb7"),r=n("b12f"),a=n("0f99"),o=a.detectSourceFormat,s=n("93d0"),l=s.SERIES_LAYOUT_BY_COLUMN;i.extend({type:"dataset",defaultOption:{seriesLayoutBy:l,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){o(this)}}),r.extend({type:"dataset"})},"04f6":function(t,e){var n=32,i=7;function r(t){var e=0;while(t>=n)e|=1&t,t>>=1;return t+e}function a(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){while(r=0)r++;return r-e}function o(t,e,n){n--;while(e>>1,r(o,t[a])<0?l=a:s=a+1;var c=i-s;switch(c){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(c>0)t[s+c]=t[s+c-1],c--}t[s]=o}}function l(t,e,n,i,r,a){var o=0,s=0,l=1;if(a(t,e[n+r])>0){s=i-r;while(l0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}else{s=r+1;while(ls&&(l=s);var c=o;o=r-l,l=r-c}o++;while(o>>1);a(t,e[n+h])>0?o=h+1:l=h}return l}function c(t,e,n,i,r,a){var o=0,s=0,l=1;if(a(t,e[n+r])<0){s=r+1;while(ls&&(l=s);var c=o;o=r-l,l=r-c}else{s=i-r;while(l=0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}o++;while(o>>1);a(t,e[n+h])<0?l=h:o=h+1}return l}function h(t,e){var n,r,a=i,o=0,s=0;o=t.length;var h=[];function u(t,e){n[s]=t,r[s]=e,s+=1}function d(){while(s>1){var t=s-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]r[t+1])break;p(t)}}function f(){while(s>1){var t=s-2;t>0&&r[t-1]=i||v>=i);if(m)break;y<0&&(y=0),y+=2}if(a=y,a<1&&(a=1),1===r){for(u=0;u=0;u--)t[v+u]=t[g+u];if(0===r){_=!0;break}}if(t[p--]=h[f--],1===--s){_=!0;break}if(x=s-l(t[d],h,0,s,s-1,e),0!==x){for(p-=x,f-=x,s-=x,v=p+1,g=f+1,u=0;u=i||x>=i);if(_)break;m<0&&(m=0),m+=2}if(a=m,a<1&&(a=1),1===s){for(p-=r,d-=r,v=p+1,g=d+1,u=r-1;u>=0;u--)t[v+u]=t[g+u];t[p]=h[f]}else{if(0===s)throw new Error;for(g=p-(s-1),u=0;u=0;u--)t[v+u]=t[g+u];t[p]=h[f]}else for(g=p-(s-1),u=0;ud&&(f=d),s(t,i,i+f,i+c,e),c=f}u.pushRun(i,c),u.mergeRuns(),l-=c,i+=c}while(0!==l);u.forceMergeRuns()}}t.exports=u},"0655":function(t,e,n){var i=n("8728"),r=1e-8;function a(t,e){return Math.abs(t-e).5?e:t}function d(t,e,n,i,r){var a=t.length;if(1===r)for(var o=0;or;if(a)t.length=r;else for(var o=i;o=0;n--)if(C[n]<=e)break;n=Math.min(n,b-2)}else{for(n=V;ne)break;n=Math.min(n-1,b-2)}V=n,G=e;var i=C[n+1]-C[n];if(0!==i)if(z=(e-C[n])/i,_)if(F=D[n],B=D[0===n?n:n-1],W=D[n>b-2?b-1:n+1],H=D[n>b-3?b-1:n+2],M)g(B,F,W,H,z,z*z,z*z*z,c(t,s),I);else{if(T)r=g(B,F,W,H,z,z*z,z*z*z,j,1),r=y(j);else{if(A)return u(F,W,z);r=v(B,F,W,H,z,z*z,z*z*z)}m(t,s,r)}else if(M)d(D[n],D[n+1],z,c(t,s),I);else{var r;if(T)d(D[n],D[n+1],z,j,1),r=y(j);else{if(A)return u(D[n],D[n+1],z);r=h(D[n],D[n+1],z)}m(t,s,r)}},Y=new i({target:t._target,life:w,loop:t._loop,delay:t._delay,onframe:U,ondestroy:n});return e&&"spline"!==e&&(Y.easing=e),Y}}}var b=function(t,e,n,i){this._tracks={},this._target=t,this._loop=e||!1,this._getter=n||l,this._setter=i||c,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};b.prototype={when:function(t,e){var n=this._tracks;for(var i in e)if(e.hasOwnProperty(i)){if(!n[i]){n[i]=[];var r=this._getter(this._target,i);if(null==r)continue;0!==t&&n[i].push({time:0,value:m(r)})}n[i].push({time:t,value:e[i]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;tb;b++)if((d||b in y)&&(g=y[b],v=x(g,b,m),t))if(n)w[b]=v;else if(v)switch(t){case 3:return!0;case 5:return g;case 6:return b;case 2:w.push(g)}else if(h)return!1;return u?-1:c||h?h:w}}},"0b44":function(t,e,n){var i=n("607d"),r=function(){this._track=[]};function a(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function o(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}r.prototype={constructor:r,recognize:function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,n){var r=t.touches;if(r){for(var a={points:[],touches:[],target:e,event:t},o=0,s=r.length;o1&&i&&i.length>1){var s=a(i)/a(r);!isFinite(s)&&(s=1),e.pinchScale=s;var l=o(i);return e.pinchX=l[0],e.pinchY=l[1],{type:"pinch",target:t[0].target,event:e}}}}},l=r;t.exports=l},"0cde":function(t,e,n){var i=n("1687"),r=n("401b"),a=i.identity,o=5e-5;function s(t){return t>o||t<-o}var l=function(t){t=t||{},t.position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},c=l.prototype;c.transform=null,c.needLocalTransform=function(){return s(this.rotation)||s(this.position[0])||s(this.position[1])||s(this.scale[0]-1)||s(this.scale[1]-1)};var h=[];c.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),r=this.transform;if(n||e){r=r||i.create(),n?this.getLocalTransform(r):a(r),e&&(n?i.mul(r,t.transform,r):i.copy(r,t.transform)),this.transform=r;var o=this.globalScaleRatio;if(null!=o&&1!==o){this.getGlobalScale(h);var s=h[0]<0?-1:1,l=h[1]<0?-1:1,c=((h[0]-s)*o+s)/h[0]||0,u=((h[1]-l)*o+l)/h[1]||0;r[0]*=c,r[1]*=c,r[2]*=u,r[3]*=u}this.invTransform=this.invTransform||i.create(),i.invert(this.invTransform,r)}else r&&a(r)},c.getLocalTransform=function(t){return l.getLocalTransform(this,t)},c.setTransform=function(t){var e=this.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)},c.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var u=[],d=i.create();c.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=this.position,r=this.scale;s(e-1)&&(e=Math.sqrt(e)),s(n-1)&&(n=Math.sqrt(n)),t[0]<0&&(e=-e),t[3]<0&&(n=-n),i[0]=t[4],i[1]=t[5],r[0]=e,r[1]=n,this.rotation=Math.atan2(-t[1]/n,t[0]/e)}},c.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(i.mul(u,t.invTransform,e),e=u);var n=this.origin;n&&(n[0]||n[1])&&(d[4]=n[0],d[5]=n[1],i.mul(u,e,d),u[4]-=n[0],u[5]-=n[1],e=u),this.setLocalTransform(e)}},c.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},c.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&r.applyTransform(n,n,i),n},c.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&r.applyTransform(n,n,i),n},l.getLocalTransform=function(t,e){e=e||[],a(e);var n=t.origin,r=t.scale||[1,1],o=t.rotation||0,s=t.position||[0,0];return n&&(e[4]-=n[0],e[5]-=n[1]),i.scale(e,e,r),o&&i.rotate(e,e,o),n&&(e[4]+=n[0],e[5]+=n[1]),e[4]+=s[0],e[5]+=s[1],e};var f=l;t.exports=f},"0da8":function(t,e,n){var i=n("19eb"),r=n("9850"),a=n("6d8b"),o=n("5e76");function s(t){i.call(this,t)}s.prototype={constructor:s,type:"image",brush:function(t,e){var n=this.style,i=n.image;n.bind(t,this,e);var r=this._image=o.createOrUpdateImage(i,this._image,this,this.onload);if(r&&o.isImageReady(r)){var a=n.x||0,s=n.y||0,l=n.width,c=n.height,h=r.width/r.height;if(null==l&&null!=c?l=c*h:null==c&&null!=l?c=l/h:null==l&&null==c&&(l=r.width,c=r.height),this.setTransform(t),n.sWidth&&n.sHeight){var u=n.sx||0,d=n.sy||0;t.drawImage(r,u,d,n.sWidth,n.sHeight,a,s,l,c)}else if(n.sx&&n.sy){u=n.sx,d=n.sy;var f=l-u,p=c-d;t.drawImage(r,u,d,f,p,a,s,l,c)}else t.drawImage(r,a,s,l,c);null!=n.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new r(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},a.inherits(s,i);var l=s;t.exports=l},"0f99":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("e0d3")),a=r.makeInner,o=r.getDataItemValue,s=n("8b7f"),l=s.getCoordSysDefineBySeries,c=n("6d8b"),h=c.createHashMap,u=c.each,d=c.map,f=c.isArray,p=c.isString,g=c.isObject,v=c.isTypedArray,m=c.isArrayLike,y=c.extend,x=(c.assert,n("ec6f")),_=n("93d0"),b=_.SOURCE_FORMAT_ORIGINAL,w=_.SOURCE_FORMAT_ARRAY_ROWS,S=_.SOURCE_FORMAT_OBJECT_ROWS,M=_.SOURCE_FORMAT_KEYED_COLUMNS,T=_.SOURCE_FORMAT_UNKNOWN,A=_.SOURCE_FORMAT_TYPED_ARRAY,I=_.SERIES_LAYOUT_BY_ROW,C=a();function D(t){var e=t.option.source,n=T;if(v(e))n=A;else if(f(e)){0===e.length&&(n=w);for(var i=0,r=e.length;i{n[t]=e[t]}),n}function m(t,e,n){let i=window.getComputedStyle(t,n||null)||{display:"none"};return i[e]}function y(t){if(!document.documentElement.contains(t))return{detached:!0,rendered:!1};let e=t;while(e!==document){if("none"===m(e,"display"))return{detached:!1,rendered:!1};e=e.parentNode}return{detached:!1,rendered:!0}}var x='.resize-triggers{visibility:hidden;opacity:0}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}';let _=0,b=null;function w(t,e){t.__resize_mutation_handler__||(t.__resize_mutation_handler__=T.bind(t));let n=t.__resize_listeners__;if(!n)if(t.__resize_listeners__=[],window.ResizeObserver){let{offsetWidth:e,offsetHeight:n}=t,i=new ResizeObserver(()=>{(t.__resize_observer_triggered__||(t.__resize_observer_triggered__=!0,t.offsetWidth!==e||t.offsetHeight!==n))&&I(t)}),{detached:r,rendered:a}=y(t);t.__resize_observer_triggered__=!1===r&&!1===a,t.__resize_observer__=i,i.observe(t)}else if(t.attachEvent&&t.addEventListener)t.__resize_legacy_resize_handler__=function(){I(t)},t.attachEvent("onresize",t.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",t.__resize_mutation_handler__);else if(_||(b=g(x)),C(t),t.__resize_rendered__=y(t).rendered,window.MutationObserver){let e=new MutationObserver(t.__resize_mutation_handler__);e.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),t.__resize_mutation_observer__=e}t.__resize_listeners__.push(e),_++}function S(t,e){if(t.detachEvent&&t.removeEventListener)return t.detachEvent("onresize",t.__resize_legacy_resize_handler__),void document.removeEventListener("DOMSubtreeModified",t.__resize_mutation_handler__);let n=t.__resize_listeners__;n&&(n.splice(n.indexOf(e),1),n.length||(t.__resize_observer__?(t.__resize_observer__.unobserve(t),t.__resize_observer__.disconnect(),t.__resize_observer__=null):(t.__resize_mutation_observer__&&(t.__resize_mutation_observer__.disconnect(),t.__resize_mutation_observer__=null),t.removeEventListener("scroll",A),t.removeChild(t.__resize_triggers__.triggers),t.__resize_triggers__=null),t.__resize_listeners__=null),!--_&&b&&b.parentNode.removeChild(b))}function M(t){let{width:e,height:n}=t.__resize_last__,{offsetWidth:i,offsetHeight:r}=t;return i!==e||r!==n?{width:i,height:r}:null}function T(){let{rendered:t,detached:e}=y(this);t!==this.__resize_rendered__&&(!e&&this.__resize_triggers__&&(D(this),this.addEventListener("scroll",A,!0)),this.__resize_rendered__=t,I(this))}function A(){D(this),this.__resize_raf__&&p(this.__resize_raf__),this.__resize_raf__=d(()=>{let t=M(this);t&&(this.__resize_last__=t,I(this))})}function I(t){t&&t.__resize_listeners__&&t.__resize_listeners__.forEach(e=>{e.call(t)})}function C(t){let e=m(t,"position");e&&"static"!==e||(t.style.position="relative"),t.__resize_old_position__=e,t.__resize_last__={};let n=v("div",{className:"resize-triggers"}),i=v("div",{className:"resize-expand-trigger"}),r=v("div"),a=v("div",{className:"resize-contract-trigger"});i.appendChild(r),n.appendChild(i),n.appendChild(a),t.appendChild(n),t.__resize_triggers__={triggers:n,expand:i,expandChild:r,contract:a},D(t),t.addEventListener("scroll",A,!0),t.__resize_last__={width:t.offsetWidth,height:t.offsetHeight}}function D(t){let{expand:e,expandChild:n,contract:i}=t.__resize_triggers__,{scrollWidth:r,scrollHeight:a}=i,{offsetWidth:o,offsetHeight:s,scrollWidth:l,scrollHeight:c}=e;i.scrollLeft=r,i.scrollTop=a,n.style.width=o+1+"px",n.style.height=s+1+"px",e.scrollLeft=l,e.scrollTop=c}var k=["legendselectchanged","legendselected","legendunselected","legendscroll","datazoom","datarangeselected","timelinechanged","timelineplaychanged","restore","dataviewchanged","magictypechanged","geoselectchanged","geoselected","geounselected","pieselectchanged","pieselected","pieunselected","mapselectchanged","mapselected","mapunselected","axisareaselected","focusnodeadjacency","unfocusnodeadjacency","brush","brushselected","rendered","finished","click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],O=["theme","initOptions","autoresize"],P=["manualUpdate","watchShallow"],L={props:{options:Object,theme:[String,Object],initOptions:Object,group:String,autoresize:Boolean,watchShallow:Boolean,manualUpdate:Boolean},data:function(){return{lastArea:0}},watch:{group:function(t){this.chart.group=t}},methods:{mergeOptions:function(t,e,n){this.manualUpdate&&(this.manualOptions=t),this.chart?this.delegateMethod("setOption",t,e,n):this.init()},appendData:function(t){this.delegateMethod("appendData",t)},resize:function(t){this.delegateMethod("resize",t)},dispatchAction:function(t){this.delegateMethod("dispatchAction",t)},convertToPixel:function(t,e){return this.delegateMethod("convertToPixel",t,e)},convertFromPixel:function(t,e){return this.delegateMethod("convertFromPixel",t,e)},containPixel:function(t,e){return this.delegateMethod("containPixel",t,e)},showLoading:function(t,e){this.delegateMethod("showLoading",t,e)},hideLoading:function(){this.delegateMethod("hideLoading")},getDataURL:function(t){return this.delegateMethod("getDataURL",t)},getConnectedDataURL:function(t){return this.delegateMethod("getConnectedDataURL",t)},clear:function(){this.delegateMethod("clear")},dispose:function(){this.delegateMethod("dispose")},delegateMethod:function(t){var e;this.chart||this.init();for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r8;e>>=1)n+=X.lunarInfo[t-1900]&e?1:0;return n+X.leapDays(t)},leapMonth:function(t){return 15&X.lunarInfo[t-1900]},leapDays:function(t){return X.leapMonth(t)?65536&X.lunarInfo[t-1900]?30:29:0},monthDays:function(t,e){return e>12||e<1?-1:X.lunarInfo[t-1900]&65536>>e?30:29},solarDays:function(t,e){if(e>12||e<1)return-1;var n=e-1;return 1==n?t%4==0&&t%100!=0||t%400==0?29:28:X.solarMonth[n]},toGanZhiYear:function(t){var e=(t-3)%10,n=(t-3)%12;return 0==e&&(e=10),0==n&&(n=12),X.Gan[e-1]+X.Zhi[n-1]},toAstro:function(t,e){var n="魔羯水瓶双鱼白羊金牛双子巨蟹狮子处女天秤天蝎射手魔羯",i=[20,19,21,21,21,22,23,23,23,23,22,22];return n.substr(2*t-(e2100)return-1;if(e<1||e>24)return-1;var n=X.sTermInfo[t-1900],i=[parseInt("0x"+n.substr(0,5)).toString(),parseInt("0x"+n.substr(5,5)).toString(),parseInt("0x"+n.substr(10,5)).toString(),parseInt("0x"+n.substr(15,5)).toString(),parseInt("0x"+n.substr(20,5)).toString(),parseInt("0x"+n.substr(25,5)).toString()],r=[i[0].substr(0,1),i[0].substr(1,2),i[0].substr(3,1),i[0].substr(4,2),i[1].substr(0,1),i[1].substr(1,2),i[1].substr(3,1),i[1].substr(4,2),i[2].substr(0,1),i[2].substr(1,2),i[2].substr(3,1),i[2].substr(4,2),i[3].substr(0,1),i[3].substr(1,2),i[3].substr(3,1),i[3].substr(4,2),i[4].substr(0,1),i[4].substr(1,2),i[4].substr(3,1),i[4].substr(4,2),i[5].substr(0,1),i[5].substr(1,2),i[5].substr(3,1),i[5].substr(4,2)];return parseInt(r[e-1])},toChinaMonth:function(t){if(t>12||t<1)return-1;var e=X.nStr3[t-1];return e+="月",e},toChinaDay:function(t){var e;switch(t){case 10:e="初十";break;case 20:e="二十";break;case 30:e="三十";break;default:e=X.nStr2[Math.floor(t/10)],e+=X.nStr1[t%10]}return e},getAnimal:function(t){return X.Animals[(t-4)%12]},solar2lunar:function(t,e,n){if(t<1900||t>2100)return-1;if(1900==t&&1==e&&n<31)return-1;if(t)i=new Date(t,parseInt(e)-1,n);else var i=new Date;var r,a=0,o=0,s=(t=i.getFullYear(),e=i.getMonth()+1,n=i.getDate(),(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate())-Date.UTC(1900,0,31))/864e5);for(r=1900;r<2101&&s>0;r++)o=X.lYearDays(r),s-=o;s<0&&(s+=o,r--);var l=new Date,c=!1;l.getFullYear()==t&&l.getMonth()+1==e&&l.getDate()==n&&(c=!0);var h=i.getDay(),u=X.nStr1[h];0==h&&(h=7);var d=r,f=(a=X.leapMonth(r),!1);for(r=1;r<13&&s>0;r++)a>0&&r==a+1&&0==f?(--r,f=!0,o=X.leapDays(d)):o=X.monthDays(d,r),1==f&&r==a+1&&(f=!1),s-=o;0==s&&a>0&&r==a+1&&(f?f=!1:(f=!0,--r)),s<0&&(s+=o,--r);var p=r,g=s+1,v=e-1,m=X.toGanZhiYear(d),y=X.getTerm(d,2*e-1),x=X.getTerm(d,2*e),_=X.toGanZhi(12*(t-1900)+e+11);n>=y&&(_=X.toGanZhi(12*(t-1900)+e+12));var b=!1,w=null;y==n&&(b=!0,w=X.solarTerm[2*e-2]),x==n&&(b=!0,w=X.solarTerm[2*e-1]);var S=Date.UTC(t,v,1,0,0,0,0)/864e5+25567+10,M=X.toGanZhi(S+n-1),T=X.toAstro(e,n);return{lYear:d,lMonth:p,lDay:g,Animal:X.getAnimal(d),IMonthCn:(f?"闰":"")+X.toChinaMonth(p),IDayCn:X.toChinaDay(g),cYear:t,cMonth:e,cDay:n,gzYear:m,gzMonth:_,gzDay:M,isToday:c,isLeap:f,nWeek:h,ncWeek:"星期"+u,isTerm:b,Term:w,astro:T}},lunar2solar:function(t,e,n,i){i=!!i;var r=X.leapMonth(t);X.leapDays(t);if(i&&r!=e)return-1;if(2100==t&&12==e&&n>1||1900==t&&1==e&&n<31)return-1;var a=X.monthDays(t,e),o=a;if(i&&(o=X.leapDays(t,e)),t<1900||t>2100||n>o)return-1;for(var s=0,l=1900;l0&&(s+=X.leapDays(t),h=!0),s+=X.monthDays(t,l);i&&(s+=a);var u=Date.UTC(1900,1,30,0,0,0),d=new Date(864e5*(s+n-31)+u),f=d.getUTCFullYear(),p=d.getUTCMonth()+1,g=d.getUTCDate();return X.solar2lunar(f,p,g)}},$=X,Z=(n("a219"),!!window),K=new Date,J=[K.getFullYear(),K.getMonth()+1,K.getDate()].join("-"),Q={props:{multi:{type:Boolean,default:!1},arrowLeft:{type:String,default:""},arrowRight:{type:String,default:""},clean:{type:Boolean,default:!1},now:{type:[String,Boolean],default:!0},range:{type:Boolean,default:!1},completion:{type:Boolean,default:!1},value:{type:Array,default:function(){return[]}},begin:{type:Array,default:function(){return[]}},end:{type:Array,default:function(){return[]}},zero:{type:Boolean,default:!1},disabled:{type:Array,default:function(){return[]}},almanacs:{type:Object,default:function(){return{}}},tileContent:{type:Array,default:function(){return[]}},lunar:{type:Boolean,default:!1},monFirst:{type:Boolean,default:!1},weeks:{type:Array,default:function(){return this.monFirst?["一","二","三","四","五","六","日"]:["日","一","二","三","四","五","六"]}},months:{type:Array,default:function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]}},events:{type:Object,default:function(){return{}}},weekSwitch:{type:Boolean,default:!1},monthRange:{type:Array,default:function(){return[]}},responsive:{type:Boolean,default:!1},rangeMonthFormat:{type:String,default:""}},data:function(){return{years:[],yearsShow:!1,year:0,month:0,monthPosition:0,day:0,days:[],multiDays:[],today:[],handleMultiDay:[],firstRender:!0,isIos:!0,showToday:{},monthText:"",festival:{lunar:{"1-1":"春节","1-15":"元宵节","2-2":"龙头节","5-5":"端午节","7-7":"七夕节","7-15":"中元节","8-15":"中秋节","9-9":"重阳节","10-1":"寒衣节","10-15":"下元节","12-8":"腊八节","12-23":"小年"},gregorian:{"1-1":"元旦","2-14":"情人节","3-8":"妇女节","3-12":"植树节","5-1":"劳动节","5-4":"青年节","6-1":"儿童节","7-1":"建党节","8-1":"建军节","9-10":"教师节","10-1":"国庆节","12-24":"平安夜","12-25":"圣诞节"}},rangeBegin:[],rangeEnd:[],multiDaysData:[],monthsLoop:[],itemWidth:50,unit:Z?"px":"rpx",positionH:Z?-24:-40,monthIndex:0,oversliding:!1,rangeBgHide:!1,monthRangeDays:[],rangeOfMonths:[],monthDays:[],weekIndex:0,startWeekIndex:0,positionWeek:!0,isMonthRange:!1}},computed:{itemStyle:function(){return{width:this.itemWidth+"px",height:this.itemWidth+"px",fontSize:this.itemWidth/4+"px",lineHeight:this.lunar?this.itemWidth/1.5+"px":this.itemWidth+"px"}}},watch:{events:function(){this.isRendeRangeMode()||this.render(this.year,this.month,"_WATCHRENDER_","events")},disabled:function(){this.isRendeRangeMode()||this.render(this.year,this.month,"_WATCHRENDER_","disabled")},value:function(){if(!this.isRendeRangeMode("_WATCHRENDERVALUE_")){var t=this.value,e=t[0],n=t[1]-1;if(this.multi)e=t[t.length-1][0],n=t[t.length-1][1]-1;else if(this.range){if(!this.isUserSelect){e=t[0][0],n=t[0][1]-1;var i=t[0][2];return this.render(e,n,"_WATCHRENDERVALUE_",[e,n,i])}e=this.year,n=this.month,this.isUserSelect=!1}this.render(e,n,"_WATCHRENDERVALUE_")}},tileContent:function(){this.isRendeRangeMode()||this.render(this.year,this.month,"_WATCHRENDER_","tileContent")},almanacs:function(){this.isRendeRangeMode()||this.render(this.year,this.month,"_WATCHRENDER_","almanacs")},monthRange:function(){this.isRendeRangeMode()||this.render(this.year,this.month,"_WATCHRENDER_","almanacs")},responsive:function(){this.responsive&&this.addResponsiveListener()}},created:function(){this.isMonthRange=!!this.monthRange.length;var t=this.months.concat();t.unshift(this.months[this.months.length-1]),t.push(this.months[0]),this.monthsLoop=t,this.monthsLoopCopy=this.monthsLoop.concat()},mounted:function(){var t=this;this.resize(),Z?this.responsive&&this.addResponsiveListener():wx.getSystemInfo({success:function(e){t.isIos="iOS"===(e.system.split(" ")||[])[0]}}),this.oversliding=!0,this.initRender=!0,this.init()},beforeDestroy:function(){Z&&window.removeEventListener("resize",this.resize)},methods:{init:function(){var t=new Date;if(this.year=t.getFullYear(),this.month=t.getMonth(),this.day=t.getDate(),this.monthIndex=this.month+1,this.value.length||this.multi)if(this.range){this.year=Number(this.value[0][0]),this.month=this.value[0][1]-1,this.day=Number(this.value[0][2]);var e=Number(this.value[1][0]),n=this.value[1][1]-1,i=this.value[1][2];this.rangeBegin=[this.year,this.month,this.day],this.rangeEnd=[e,n,i]}else if(this.multi){this.multiDays=this.value;var r=this.handleMultiDay;if(this.firstRender){this.firstRender=!1;var a=(this.value[0]||[])[0],o=(this.value[0]||[])[1];isFinite(a)&&isFinite(o)&&(this.month=parseInt(o)-1,this.year=parseInt(a))}else this.handleMultiDay.length?(this.month=parseInt(r[r.length-1][1])-1,this.year=parseInt(r[r.length-1][0]),this.handleMultiDay=[]):(this.month=parseInt(this.value[this.value.length-1][1])-1,this.year=parseInt(this.value[this.value.length-1][0]));this.day=parseInt((this.value[0]||[])[2])}else this.year=parseInt(this.value[0]),this.month=parseInt(this.value[1])-1,this.day=parseInt(this.value[2]);this.updateHeadMonth(),this.isRendeRangeMode()||this.render(this.year,this.month)},renderOption:function(t,e,n,i){var r=!this.monthRange.length&&this.weekSwitch,a=this.value,o=!r&&!i,s=function(i){return i.find(function(i){var r=i.split("-");return t===Number(r[0])&&e===r[1]-1&&n===Number(r[2])})};if(this.range){var l=new Date(t,e+1,0).getDate()===n?{lastDay:!0}:null,c=Object.assign({day:n},this.getLunarInfo(t,e+1,n),this.getEvents(t,e+1,n),l),h=c.date,u=c.day,d=this.rangeBegin.concat(),f=this.rangeEnd.concat();if(d[1]=d[1]+1,f[1]=f[1]+1,(r||o)&&(f.join("-")===h&&(c.rangeClassName="mc-range-end"),d.join("-")===h&&(c.rangeClassName="mc-range-begin")),t===f[0]&&e+1===f[1]&&u===f[2]-1&&(c.rangeClassName=c.rangeClassName?["mc-range-begin","mc-range-second-to-last"]:"mc-range-second-to-last"),this.rangeBegin.length){var p=+new Date(this.rangeBegin[0],this.rangeBegin[1],this.rangeBegin[2]),g=+new Date(this.rangeEnd[0],this.rangeEnd[1],this.rangeEnd[2]),v=+new Date(t,e,n);p<=v&&g>=v&&(c.selected=!0)}if(this.begin.length){var m=+new Date(parseInt(this.begin[0]),parseInt(this.begin[1])-1,parseInt(this.begin[2]));m>+new Date(t,e,n)&&(c.disabled=!0)}if(this.end.length){var y=Number(new Date(parseInt(this.end[0]),parseInt(this.end[1])-1,parseInt(this.end[2])));y+new Date(t,e,n)&&(b.disabled=!0)}if(this.end.length){var S=+new Date(parseInt(this.end[0]),parseInt(this.end[1])-1,parseInt(this.end[2]));S<+new Date(t,e,n)&&(b.disabled=!0)}i&&!r?b.disabled=!0:this.disabled.length&&s(this.disabled)&&(b.disabled=!0)}return b.selected&&this.multiDaysData.length!==this.value.length&&this.multiDaysData.push(b),this.isCurrentMonthToday(b)&&(b.isToday=!0),!r&&i&&(b.selected=!1),b}var M={},T=e+1;if(a[0]===t&&a[1]===T&&a[2]===n)Object.assign(M,{day:n,selected:!0},this.getLunarInfo(t,T,n),this.getEvents(t,T,n));else{if(Object.assign(M,{day:n,selected:!1},this.getLunarInfo(t,T,n),this.getEvents(t,T,n)),this.begin.length){var A=+new Date(parseInt(this.begin[0]),parseInt(this.begin[1])-1,parseInt(this.begin[2]));A>Number(new Date(t,e,n))&&(M.disabled=!0)}if(this.end.length){var I=+new Date(parseInt(this.end[0]),parseInt(this.end[1])-1,parseInt(this.end[2]));I<+new Date(t,e,n)&&(M.disabled=!0)}i&&!r?M.disabled=!0:this.disabled.length&&s(this.disabled)&&(M.disabled=!0)}return this.isCurrentMonthToday(M)&&(M.isToday=!0),!r&&i&&(M.selected=!1),M},isCurrentMonthToday:function(t){var e=J===t.date;return!!e&&(this.weekSwitch?e:Number(J.split("-")[1])===this.month+1)},watchRender:function(t){var e=this.weekSwitch,n=JSON.parse(JSON.stringify(this.monthDays));if("events"===t){var i=this.events||{};Object.keys(i).forEach(function(t){n.some(function(e){return e.some(function(e){if(e.date===t)return e.eventName=i[t],!0})})}),this.monthDays=n}else if("disabled"===t){var r=this.disabled||[];r.forEach(function(t){n.some(function(e){return e.some(function(e){if(e.date===t)return e.disabled=!0,!0})})})}else if("almanacs"===t){var a=this.almanacs||{};Object.keys(a).forEach(function(t){n.some(function(e){return e.some(function(e){if(e.date.slice(5,20)===t)return e.lunar=a[t],!0})})})}else if("tileContent"===t){var o=this.tileContent||[];o.forEach(function(t){n.some(function(e){return e.some(function(e){if(e.date===t.date)return e.className=t.className,e.content=t.content,!0})})})}e?(this.monthDays=n,this.days=[n[this.weekIndex]],this.monthRangeDays=[this.days]):(this.days=n,this.monthRangeDays=[this.days])},render:function(t,e,n,i){var r=this,a=this.weekSwitch,o="CUSTOMRENDER"===n,s="_WATCHRENDERVALUE_"===n;if(this.year=t,this.month=e,"_WATCHRENDER_"===n)return this.watchRender(i);this.range&&s&&(Array.isArray((this.value||[])[0])?(this.rangeBegin=[this.value[0][0],this.value[0][1]-1,this.value[0][2]],this.rangeEnd=[this.value[1][0],this.value[1][1]-1,this.value[1][2]]):(this.rangeBegin=[],this.rangeEnd=[])),s&&a&&(this.positionWeek=!0),o&&(this.year=t,this.month=e,this.positionWeek=!0,a&&!i&&(this.startWeekIndex=0,this.weekIndex=0),this.updateHeadMonth());var l=new Date(t,e,1).getDay(),c=new Date(t,e+1,0).getDate(),h=new Date(t,e,0).getDate();this.year=t;var u=1,d=0,f=[],p=1;for(u;u<=c;u++){var g=new Date(t,e,u).getDay(),v=void 0;if(0===g)f[d]=[];else if(1===u){f[d]=[],v=h-l+1;for(var m=0;m0)for(var C=f.length;C<=5;C++){f[C]=[];for(var D=p+7*(C-d-1),k=D;k<=D+6;k++)f[C].push(Object.assign({day:k,disabled:!0,nextMonth:!0},this.getLunarInfo(this.computedNextYear(),this.computedNextMonth(!0),k),this.getEvents(this.computedNextYear(),this.computedNextMonth(!0),k)))}if(this.tileContent.length&&f.forEach(function(t,e){t.forEach(function(t,e){var n=r.tileContent.find(function(e){return e.date===t.date});if(n){var i=n||{},a=i.className,o=i.content;t.className=a,t.content=o}})}),a){var O=f.length,P=f[O-1][0].date.split("-")[1],L=f[O-2][0].date.split("-")[1];P!==L&&f.splice(O-1,1)}if(this.monthDays=f,a&&!this.isMonthRange){if(this.positionWeek){var E="",R=!0;if(Array.isArray(i)?E=[i[0],i[1]+1,i[2]].join("-"):(this.multi||s)&&(E=this.thisTimeSelect?this.thisTimeSelect:this.multi?this.value[this.value.length-1].join("-"):this.value.join("-")),"SETTODAY"===i)E=J;else if(o)if("string"===typeof i)E=[t,Number(e)+1,i].join("-"),R=!0;else if("number"===typeof i){var N=i>f.length?f.length-1:i;this.startWeekIndex=N,this.weekIndex=N,this.positionWeek=!1,R=!1}var z=E||J;R&&f.some(function(t,e){var n=t.find(function(t){return t.date===z});if(n)return r.startWeekIndex=e,r.weekIndex=e,!0}),this.positionWeek=!1}this.days=[f[this.startWeekIndex]],this.initRender&&(this.setMonthRangeofWeekSwitch(),this.initRender=!1)}else this.days=f;var B="今";return"boolean"!==typeof this.now||this.now?"string"===typeof this.now?this.showToday={show:!0,text:this.now||B}:this.showToday={show:!0,text:B}:this.showToday={show:!1},this.monthRangeDays=[this.days],s&&this.updateHeadMonth(),this.days},rendeRange:function(t){var e=this,n=[],i=this,r=this.monthRange;function a(t,e){var n=/([y]+)(.*?)([M]+)(.*?)$/i,r=i.rangeMonthFormat||"yyyy-MM";return n.exec(r),String(t).substring(4-RegExp.$1.length)+RegExp.$2+String(e).substring(2-RegExp.$3.length)+RegExp.$4}if(r[0]===r[1]){var o=r[0].split("-"),s=q(o,2),l=s[0],c=s[1];n.push([Number(l),Number(c),a(l,c)])}else{var h=r[0].split("-"),u=r[1].split("-"),d=+h[0],f=+h[1],p=+u[0],g=+u[1]>12?12:+u[1];while(d11&&n++,n},computedNextMonth:function(t,e){var n=e;return e+1>11?n=0:n++,t?n+1:n},getLunarInfo:function(t,e,n){var i=$.solar2lunar(t,e,n),r="";12===i.lMonth&&i.lDay===$.monthDays(i.lYear,12)&&(r="除夕");var a=i.IDayCn,o=i.Term,s=!1,l=!1;this.festival.lunar[i.lMonth+"-"+i.lDay]?(a=this.festival.lunar[i.lMonth+"-"+i.lDay],s=!0):this.festival.gregorian[e+"-"+n]&&(a=this.festival.gregorian[e+"-"+n],l=!0);var c={date:"".concat(t,"-").concat(e,"-").concat(n),lunar:r||o||a,isLunarFestival:s,isGregorianFestival:l,isTerm:!!r||i.isTerm};return Object.keys(this.almanacs).length&&Object.assign(c,{almanac:this.almanacs[e+"-"+n]||"",isAlmanac:!!this.almanacs[e+"-"+n]}),c},getEvents:function(t,e,n){if(0==Object.keys(this.events).length)return!1;var i=this.events[t+"-"+e+"-"+n],r={};return void 0!=i&&(r.eventName=i),r},prev:function(t){var e=this;if(t&&t.stopPropagation(),!this.isMonthRange){var n=this.weekSwitch,i=function(i){if(1===e.monthIndex)e.oversliding=!1,e.month=11,e.year=parseInt(e.year)-1,e.monthIndex=e.monthIndex-1;else{if(0===e.monthIndex)return e.oversliding=!0,e.monthIndex=12,setTimeout(function(){return e.prev(t)},50),e.updateHeadMonth("custom");13===e.monthIndex?(e.month=11,e.year=parseInt(e.year)-1,e.monthIndex=e.monthIndex-1):(e.oversliding=!1,e.month=parseInt(e.month)-1,e.monthIndex=e.monthIndex-1)}e.updateHeadMonth("custom"),e.render(e.year,e.month),"function"===typeof i&&i();var r=n?e.weekIndex:void 0;e.$emit("prev",e.year,e.month+1,r)};if(!this.weekSwitch)return i();var r=function(){e.weekIndex=e.weekIndex-1,e.days=[e.monthDays[e.weekIndex]],e.monthRangeDays=[e.days],e.setMonthRangeofWeekSwitch(),e.$emit("prev",e.year,e.month+1,e.weekIndex)},a=(this.days[0]||[])[0]||{};if(a.lastMonth||1===a.day){var o=function(){var t=e.monthDays.length,n=a.lastMonth?t-1:t;e.startWeekIndex=n,e.weekIndex=n,r()};i(o)}else r()}},next:function(t){var e=this;if(t&&t.stopPropagation(),!this.isMonthRange){var n=this.weekSwitch,i=function(){if(12===e.monthIndex)e.oversliding=!1,e.month=0,e.year=parseInt(e.year)+1,e.monthIndex=e.monthIndex+1;else if(0===e.monthIndex&&11===e.month)e.oversliding=!1,e.month=0,e.year=parseInt(e.year)+1,e.monthIndex=e.monthIndex+1;else{if(13===e.monthIndex)return e.oversliding=!0,e.monthIndex=1,setTimeout(function(){return e.next(t)},50),e.updateHeadMonth("custom");e.oversliding=!1,e.month=parseInt(e.month)+1,e.monthIndex=e.monthIndex+1}e.updateHeadMonth("custom"),e.render(e.year,e.month);var i=n?e.weekIndex:void 0;e.$emit("next",e.year,e.month+1,i)};if(!this.weekSwitch)return i();var r=function(){e.weekIndex=e.weekIndex+1,e.days=[e.monthDays[e.weekIndex]],e.monthRangeDays=[e.days],e.setMonthRangeofWeekSwitch(),e.$emit("next",e.year,e.month+1,e.weekIndex)},a=(this.days[0]||[])[6]||{};if(a.nextMonth||a.day===new Date(this.year,this.month+1,0).getDate()){var o=a.nextMonth?1:0;this.startWeekIndex=o,this.weekIndex=o,i()}else r()}},select:function(t,e,n,i,r){var a=this;i&&i.stopPropagation();var o=this.weekSwitch;if(n.lastMonth&&!o)return this.prev(i);if(n.nextMonth&&!o)return this.next(i);if(!n.disabled){(n||{}).event=(this.events||{})[n.date]||"";var s=n.selected,l=n.day,c=n.date,h=c.split("-"),u=Number(h[0]),d=h[1]-1,f=Number(h[1]),p=Number(h[2]);if(this.range){if(this.isUserSelect=!0,0===this.rangeBegin.length||0!==this.rangeEndTemp)this.rangeBegin=[u,d,p],this.rangeBeginTemp=this.rangeBegin,this.rangeEnd=[u,d,p],this.thisTimeSelect=this.rangeEnd,this.rangeEndTemp=0;else{if(this.rangeEnd=[u,d,p],this.thisTimeSelect=[u,d,p],this.rangeBegin.join("-")===this.rangeEnd.join("-"))return this.rangeEndTemp=0;this.rangeEndTemp=1,+new Date(this.rangeEnd[0],this.rangeEnd[1],this.rangeEnd[2])<+new Date(this.rangeBegin[0],this.rangeBegin[1],this.rangeBegin[2])&&(this.rangeBegin=this.rangeEnd,this.rangeEnd=this.rangeBeginTemp);var g=function(t){return t.map(function(t,e){var n=1===e?t+1:t;return a.zero?a.zeroPad(n):n})},v=g(this.rangeBegin),m=g(this.rangeEnd);this.value.splice(0,1,v),this.value.splice(1,1,m),this.$emit("select",v,m)}this.rangeBgHide=!this.rangeEndTemp||this.rangeBegin.join("-")===this.rangeEnd.join("-"),this.positionWeek=!0,this.isMonthRange?this.rendeRange():this.render(this.year,this.month,void 0,this.thisTimeSelect)}else if(this.multi){var y=this.value.findIndex(function(t){return t.join("-")===c});~y?this.handleMultiDay=this.value.splice(y,1):this.value.push([Number(Number(h[0])),Number(h[1]),l]),this.days[t][e].selected=!s,this.monthDays[t][e].selected?this.multiDaysData.push(n):this.multiDaysData=this.multiDaysData.filter(function(t){return t.date!==c}),this.thisTimeSelect=c,this.$emit("select",this.value,this.multiDaysData)}else{var x=this.value.join("-");this.monthRangeDays.some(function(t){return t.some(function(t){return!!t.find(function(t){if(t.date===x)return t.selected=!1,!0})})}),this.monthRangeDays[r][t][e].selected=!0,this.day=l;var _=[u,f,p];this.value[0]=u,this.value[1]=f,this.value[2]=p,this.today=[t,e],this.$emit("select",_,n)}}},changeYear:function(){if(this.yearsShow)return this.yearsShow=!1,!1;this.yearsShow=!0,this.years=[];for(var t=this.year-5;t=0?"p":"n",O=b;if(_&&(r[o][T]||(r[o][T]={p:b,n:b}),O=r[o][T][k]),"radius"===f.dim){var P=f.dataToRadius(M)-b,L=i.dataToAngle(T);Math.abs(P)3&&(r=n.call(r,1));for(var o=e.length,s=0;s4&&(r=n.call(r,1,r.length-1));for(var o=r[r.length-1],s=e.length,l=0;lthis._ux||x(e-this._yi)>this._uy||this._len<5;return this.addData(c.L,t,e),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,n,i,r,a){return this.addData(c.C,t,e,n,i,r,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,r,a):this._ctx.bezierCurveTo(t,e,n,i,r,a)),this._xi=r,this._yi=a,this},quadraticCurveTo:function(t,e,n,i){return this.addData(c.Q,t,e,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},arc:function(t,e,n,i,r,a){return this.addData(c.A,t,e,n,n,i,r-i,0,a?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,a),this._xi=v(r)*n+t,this._yi=m(r)*n+e,this},arcTo:function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(c.R,t,e,n,i),this},closePath:function(){this.addData(c.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;ne.length&&(this._expandData(),e=this.data);for(var n=0;n0&&f<=t||h<0&&f>=t||0===h&&(u>0&&v<=e||u<0&&v>=e))i=this._dashIdx,n=o[i],f+=h*n,v+=u*n,this._dashIdx=(i+1)%m,h>0&&fl||u>0&&vc||s[i%2?"moveTo":"lineTo"](h>=0?p(f,t):g(f,t),u>=0?p(v,e):g(v,e));h=f-t,u=v-e,this._dashOffset=-y(h*h+u*u)},_dashedBezierTo:function(t,e,n,r,a,o){var s,l,c,h,u,d=this._dashSum,f=this._dashOffset,p=this._lineDash,g=this._ctx,v=this._xi,m=this._yi,x=i.cubicAt,_=0,b=this._dashIdx,w=p.length,S=0;for(f<0&&(f=d+f),f%=d,s=0;s<1;s+=.1)l=x(v,t,n,a,s+.1)-x(v,t,n,a,s),c=x(m,e,r,o,s+.1)-x(m,e,r,o,s),_+=y(l*l+c*c);for(;bf)break;s=(S-f)/_;while(s<=1)h=x(v,t,n,a,s),u=x(m,e,r,o,s),b%2?g.moveTo(h,u):g.lineTo(h,u),s+=p[b]/_,b=(b+1)%w;b%2!==0&&g.lineTo(a,o),l=a-h,c=o-u,this._dashOffset=-y(l*l+c*c)},_dashedQuadraticTo:function(t,e,n,i){var r=n,a=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,r,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,_&&(this.data=new Float32Array(t)))},getBoundingRect:function(){h[0]=h[1]=d[0]=d[1]=Number.MAX_VALUE,u[0]=u[1]=f[0]=f[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,n=0,i=0,s=0,l=0;ll||x(o-r)>h||d===u-1)&&(t.lineTo(a,o),i=a,r=o);break;case c.C:t.bezierCurveTo(s[d++],s[d++],s[d++],s[d++],s[d++],s[d++]),i=s[d-2],r=s[d-1];break;case c.Q:t.quadraticCurveTo(s[d++],s[d++],s[d++],s[d++]),i=s[d-2],r=s[d-1];break;case c.A:var p=s[d++],g=s[d++],y=s[d++],_=s[d++],b=s[d++],w=s[d++],S=s[d++],M=s[d++],T=y>_?y:_,A=y>_?1:y/_,I=y>_?_/y:1,C=Math.abs(y-_)>.001,D=b+w;C?(t.translate(p,g),t.rotate(S),t.scale(A,I),t.arc(0,0,T,b,D,1-M),t.scale(1/A,1/I),t.rotate(-S),t.translate(-p,-g)):t.arc(p,g,T,b,D,1-M),1===d&&(e=v(b)*y+p,n=m(b)*_+g),i=v(D)*y+p,r=m(D)*_+g;break;case c.R:e=i=s[d],n=r=s[d+1],t.rect(s[d++],s[d++],s[d++],s[d++]);break;case c.Z:t.closePath(),i=e,r=n}}}},b.CMD=c;var w=b;t.exports=w},"20d6":function(t,e,n){"use strict";var i=n("5ca1"),r=n("0a49")(6),a="findIndex",o=!0;a in[]&&Array(1)[a](function(){o=!1}),i(i.P+i.F*o,"Array",{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(a)},"216a":function(t,e,n){var i=n("6d8b"),r=n("3842"),a=n("eda2"),o=n("944e"),s=n("89e3"),l=s.prototype,c=Math.ceil,h=Math.floor,u=1e3,d=60*u,f=60*d,p=24*f,g=function(t,e,n,i){while(n>>1;t[r][1]n&&(s=n);var l=m.length,u=g(m,s,0,l),d=m[Math.min(u,l-1)],f=d[1];if("year"===d[0]){var p=a/f,v=r.nice(p/t,!0);f*=v}var y=this.getSetting("useUTC")?0:60*new Date(+i[0]||+i[1]).getTimezoneOffset()*1e3,x=[Math.round(c((i[0]-y)/f)*f+y),Math.round(h((i[1]-y)/f)*f+y)];o.fixExtent(x,i),this._stepLvl=d,this._interval=f,this._niceExtent=x},parse:function(t){return+r.parseDate(t)}});i.each(["contain","normalize"],function(t){v.prototype[t]=function(e){return l[t].call(this,this.parse(e))}});var m=[["hh:mm:ss",u],["hh:mm:ss",5*u],["hh:mm:ss",10*u],["hh:mm:ss",15*u],["hh:mm:ss",30*u],["hh:mm\nMM-dd",d],["hh:mm\nMM-dd",5*d],["hh:mm\nMM-dd",10*d],["hh:mm\nMM-dd",15*d],["hh:mm\nMM-dd",30*d],["hh:mm\nMM-dd",f],["hh:mm\nMM-dd",2*f],["hh:mm\nMM-dd",6*f],["hh:mm\nMM-dd",12*f],["MM-dd\nyyyy",p],["MM-dd\nyyyy",2*p],["MM-dd\nyyyy",3*p],["MM-dd\nyyyy",4*p],["MM-dd\nyyyy",5*p],["MM-dd\nyyyy",6*p],["week",7*p],["MM-dd\nyyyy",10*p],["week",14*p],["week",21*p],["month",31*p],["week",42*p],["month",62*p],["week",70*p],["quarter",95*p],["month",31*p*4],["month",31*p*5],["half-year",380*p/2],["month",31*p*8],["month",31*p*10],["year",380*p]];v.create=function(t){return new v({useUTC:t.ecModel.get("useUTC")})};var y=v;t.exports=y},"217b":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("3301")),a=n("4f85"),o=a.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,e){return r(this.getSource(),this)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clipOverflow:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}});t.exports=o},"22d1":function(t,e){var n={};n="object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"===typeof document&&"undefined"!==typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"===typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:r(navigator.userAgent);var i=n;function r(t){var e={},n={},i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(t);return i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),a&&(n.edge=!0,n.version=a[1]),o&&(n.weChat=!0),{browser:n,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!==typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!n.ie&&!n.edge,pointerEventsSupported:"onpointerdown"in window&&(n.edge||n.ie&&n.version>=11),domSupported:"undefined"!==typeof document}}t.exports=i},2306:function(t,e,n){var i=n("6d8b"),r=n("342d"),a=n("41ef"),o=n("1687"),s=n("401b"),l=n("cbe5"),c=n("0cde"),h=n("0da8");e.Image=h;var u=n("e1fc");e.Group=u;var d=n("76a5");e.Text=d;var f=n("d9fc");e.Circle=f;var p=n("4aa2");e.Sector=p;var g=n("4573");e.Ring=g;var v=n("87b1");e.Polygon=v;var m=n("d498");e.Polyline=m;var y=n("c7a2");e.Rect=y;var x=n("cb11");e.Line=x;var _=n("ac0f");e.BezierCurve=_;var b=n("8d32");e.Arc=b;var w=n("d4c6");e.CompoundPath=w;var S=n("48a9");e.LinearGradient=S;var M=n("dded");e.RadialGradient=M;var T=n("9850");e.BoundingRect=T;var A=n("392f");e.IncrementalDisplayable=A;var I=Math.round,C=Math.max,D=Math.min,k={},O=1;function P(t){return l.extend(t)}function L(t,e){return r.extendFromString(t,e)}function E(t,e,n,i){var a=r.createFromString(t,e);return n&&("center"===i&&(n=N(n,a.getBoundingRect())),B(a,n)),a}function R(t,e,n){var i=new h({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(N(e,r))}}});return i}function N(t,e){var n,i=e.width/e.height,r=t.height*i;r<=t.width?n=t.height:(r=t.width,n=r/i);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-r/2,y:o-n/2,width:r,height:n}}var z=r.mergePath;function B(t,e){if(t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(e);t.applyTransform(i)}}function F(t){var e=t.shape,n=t.style.lineWidth;return I(2*e.x1)===I(2*e.x2)&&(e.x1=e.x2=H(e.x1,n,!0)),I(2*e.y1)===I(2*e.y2)&&(e.y1=e.y2=H(e.y1,n,!0)),t}function W(t){var e=t.shape,n=t.style.lineWidth,i=e.x,r=e.y,a=e.width,o=e.height;return e.x=H(e.x,n,!0),e.y=H(e.y,n,!0),e.width=Math.max(H(i+a,n,!1)-e.x,0===a?0:1),e.height=Math.max(H(r+o,n,!1)-e.y,0===o?0:1),t}function H(t,e,n){var i=I(2*t);return(i+I(e))%2===0?i/2:(i+(n?1:-1))/2}function V(t){return null!=t&&"none"!==t}var G=i.createHashMap(),j=0;function U(t){if("string"!==typeof t)return t;var e=G.get(t);return e||(e=a.lift(t,-.1),j<1e4&&(G.set(t,e),j++)),e}function Y(t){if(t.__hoverStlDirty){t.__hoverStlDirty=!1;var e=t.__hoverStl;if(e){var n=t.__cachedNormalStl={};t.__cachedNormalZ2=t.z2;var i=t.style;for(var r in e)null!=e[r]&&(n[r]=i[r]);n.fill=i.fill,n.stroke=i.stroke}else t.__cachedNormalStl=t.__cachedNormalZ2=null}}function q(t){var e=t.__hoverStl;if(e&&!t.__highlighted){var n=t.useHoverLayer;t.__highlighted=n?"layer":"plain";var i=t.__zr;if(i||!n){var r=t,a=t.style;n&&(r=i.addHover(t),a=r.style),ft(a),n||Y(r),a.extendFrom(e),X(a,e,"fill"),X(a,e,"stroke"),dt(a),n||(t.dirty(!1),t.z2+=O)}}}function X(t,e,n){!V(e[n])&&V(t[n])&&(t[n]=U(t[n]))}function $(t){var e=t.__highlighted;if(e)if(t.__highlighted=!1,"layer"===e)t.__zr&&t.__zr.removeHover(t);else if(e){var n=t.style,i=t.__cachedNormalStl;i&&(ft(n),t.setStyle(i),dt(n));var r=t.__cachedNormalZ2;null!=r&&t.z2-r===O&&(t.z2=r)}}function Z(t,e){t.isGroup?t.traverse(function(t){!t.isGroup&&e(t)}):e(t)}function K(t,e){e=t.__hoverStl=!1!==e&&(e||{}),t.__hoverStlDirty=!0,t.__highlighted&&(t.__cachedNormalStl=null,$(t),q(t))}function J(t){return t&&t.__isEmphasisEntered}function Q(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasisEntered&&Z(this,q)}function tt(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasisEntered&&Z(this,$)}function et(){this.__isEmphasisEntered=!0,Z(this,q)}function nt(){this.__isEmphasisEntered=!1,Z(this,$)}function it(t,e,n){t.isGroup?t.traverse(function(t){!t.isGroup&&K(t,t.hoverStyle||e)}):K(t,t.hoverStyle||e),rt(t,n)}function rt(t,e){var n=!1===e;if(t.__hoverSilentOnTouch=null!=e&&e.hoverSilentOnTouch,!n||t.__hoverStyleTrigger){var i=n?"off":"on";t[i]("mouseover",Q)[i]("mouseout",tt),t[i]("emphasis",et)[i]("normal",nt),t.__hoverStyleTrigger=!n}}function at(t,e,n,r,a,o,s){a=a||k;var l,c=a.labelFetcher,h=a.labelDataIndex,u=a.labelDimIndex,d=n.getShallow("show"),f=r.getShallow("show");(d||f)&&(c&&(l=c.getFormattedLabel(h,"normal",null,u)),null==l&&(l=i.isFunction(a.defaultText)?a.defaultText(h,a):a.defaultText));var p=d?l:null,g=f?i.retrieve2(c?c.getFormattedLabel(h,"emphasis",null,u):null,l):null;null==p&&null==g||(ot(t,n,o,a),ot(e,r,s,a,!0)),t.text=p,e.text=g}function ot(t,e,n,r,a){return lt(t,e,r,a),n&&i.extend(t,n),t}function st(t,e,n){var i,r={isRectText:!0};!1===n?i=!0:r.autoColor=n,lt(t,e,r,i)}function lt(t,e,n,r){if(n=n||k,n.isRectText){var a=e.getShallow("position")||(r?null:"inside");"outside"===a&&(a="top"),t.textPosition=a,t.textOffset=e.getShallow("offset");var o=e.getShallow("rotate");null!=o&&(o*=Math.PI/180),t.textRotation=o,t.textDistance=i.retrieve2(e.getShallow("distance"),r?null:5)}var s,l=e.ecModel,c=l&&l.option.textStyle,h=ct(e);if(h)for(var u in s={},h)if(h.hasOwnProperty(u)){var d=e.getModel(["rich",u]);ht(s[u]={},d,c,n,r)}return t.rich=s,ht(t,e,c,n,r,!0),n.forceRich&&!n.textStyle&&(n.textStyle={}),t}function ct(t){var e;while(t&&t!==t.ecModel){var n=(t.option||k).rich;if(n)for(var i in e=e||{},n)n.hasOwnProperty(i)&&(e[i]=1);t=t.parentModel}return e}function ht(t,e,n,r,a,o){n=!a&&n||k,t.textFill=ut(e.getShallow("color"),r)||n.color,t.textStroke=ut(e.getShallow("textBorderColor"),r)||n.textBorderColor,t.textStrokeWidth=i.retrieve2(e.getShallow("textBorderWidth"),n.textBorderWidth),t.insideRawTextPosition=t.textPosition,a||(o&&(t.insideRollbackOpt=r,dt(t)),null==t.textFill&&(t.textFill=r.autoColor)),t.fontStyle=e.getShallow("fontStyle")||n.fontStyle,t.fontWeight=e.getShallow("fontWeight")||n.fontWeight,t.fontSize=e.getShallow("fontSize")||n.fontSize,t.fontFamily=e.getShallow("fontFamily")||n.fontFamily,t.textAlign=e.getShallow("align"),t.textVerticalAlign=e.getShallow("verticalAlign")||e.getShallow("baseline"),t.textLineHeight=e.getShallow("lineHeight"),t.textWidth=e.getShallow("width"),t.textHeight=e.getShallow("height"),t.textTag=e.getShallow("tag"),o&&r.disableBox||(t.textBackgroundColor=ut(e.getShallow("backgroundColor"),r),t.textPadding=e.getShallow("padding"),t.textBorderColor=ut(e.getShallow("borderColor"),r),t.textBorderWidth=e.getShallow("borderWidth"),t.textBorderRadius=e.getShallow("borderRadius"),t.textBoxShadowColor=e.getShallow("shadowColor"),t.textBoxShadowBlur=e.getShallow("shadowBlur"),t.textBoxShadowOffsetX=e.getShallow("shadowOffsetX"),t.textBoxShadowOffsetY=e.getShallow("shadowOffsetY")),t.textShadowColor=e.getShallow("textShadowColor")||n.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||n.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||n.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||n.textShadowOffsetY}function ut(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function dt(t){var e=t.insideRollbackOpt;if(e&&null==t.textFill){var n,i=e.useInsideStyle,r=t.insideRawTextPosition,a=e.autoColor;!1!==i&&(!0===i||e.isRectText&&r&&"string"===typeof r&&r.indexOf("inside")>=0)?(n={textFill:null,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth},t.textFill="#fff",null==t.textStroke&&(t.textStroke=a,null==t.textStrokeWidth&&(t.textStrokeWidth=2))):null!=a&&(n={textFill:null},t.textFill=a),n&&(t.insideRollback=n)}}function ft(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function pt(t,e){var n=e||e.getModel("textStyle");return i.trim([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}function gt(t,e,n,i,r,a){"function"===typeof r&&(a=r,r=null);var o=i&&i.isAnimationEnabled();if(o){var s=t?"Update":"",l=i.getShallow("animationDuration"+s),c=i.getShallow("animationEasing"+s),h=i.getShallow("animationDelay"+s);"function"===typeof h&&(h=h(r,i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null)),"function"===typeof l&&(l=l(r)),l>0?e.animateTo(n,l,h||0,c,a,!!a):(e.stopAnimation(),e.attr(n),a&&a())}else e.stopAnimation(),e.attr(n),a&&a()}function vt(t,e,n,i,r){gt(!0,t,e,n,i,r)}function mt(t,e,n,i,r){gt(!1,t,e,n,i,r)}function yt(t,e){var n=o.identity([]);while(t&&t!==e)o.mul(n,t.getLocalTransform(),n),t=t.parent;return n}function xt(t,e,n){return e&&!i.isArrayLike(e)&&(e=c.getLocalTransform(e)),n&&(e=o.invert([],e)),s.applyTransform([],t,e)}function _t(t,e,n){var i=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?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return a=xt(a,e,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function bt(t,e,n,r){if(t&&e){var a=o(t);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=a[t.anid];if(e){var i=l(t);t.attr(l(e)),vt(t,i,n,t.dataIndex)}}})}function o(t){var e={};return t.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}function l(t){var e={position:s.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=i.extend({},t.shape)),e}}function wt(t,e){return i.map(t,function(t){var n=t[0];n=C(n,e.x),n=D(n,e.x+e.width);var i=t[1];return i=C(i,e.y),i=D(i,e.y+e.height),[n,i]})}function St(t,e){var n=C(t.x,e.x),i=D(t.x+t.width,e.x+e.width),r=C(t.y,e.y),a=D(t.y+t.height,e.y+e.height);if(i>=n&&a>=r)return{x:n,y:r,width:i-n,height:a-r}}function Mt(t,e,n){e=i.extend({rectHover:!0},e);var r=e.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),i.defaults(r,n),new h(e)):E(t.replace("path://",""),e,n,"center")}e.Z2_EMPHASIS_LIFT=O,e.extendShape=P,e.extendPath=L,e.makePath=E,e.makeImage=R,e.mergePath=z,e.resizePath=B,e.subPixelOptimizeLine=F,e.subPixelOptimizeRect=W,e.subPixelOptimize=H,e.setElementHoverStyle=K,e.isInEmphasis=J,e.setHoverStyle=it,e.setAsHoverStyleTrigger=rt,e.setLabelStyle=at,e.setTextStyle=ot,e.setText=st,e.getFont=pt,e.updateProps=vt,e.initProps=mt,e.getTransform=yt,e.applyTransform=xt,e.transformDirection=_t,e.groupTransition=bt,e.clipPointsByRect=wt,e.clipRectByRect=St,e.createIcon=Mt},"26e1":function(t,e,n){var i=n("6d8b"),r=n("e0d3"),a=i.each,o=i.isObject,s=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function l(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=s.length;n=0||r&&i.indexOf(r,s)<0)){var l=e.getShallow(s);null!=l&&(a[t[o][0]]=l)}}return a}}t.exports=r},"29a8":function(t,e){var n={toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};t.exports=n},"29f3":function(t,e){var n=Object.prototype,i=n.toString;function r(t){return i.call(t)}t.exports=r},"2b17":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),a=(r.isTypedArray,r.extend),o=(r.assert,r.each),s=r.isObject,l=n("e0d3"),c=l.getDataItemValue,h=l.isDataItemOption,u=n("3842"),d=u.parseDate,f=n("ec6f"),p=n("93d0"),g=p.SOURCE_FORMAT_TYPED_ARRAY,v=p.SOURCE_FORMAT_ARRAY_ROWS,m=p.SOURCE_FORMAT_ORIGINAL,y=p.SOURCE_FORMAT_OBJECT_ROWS;function x(t,e){f.isInstance(t)||(t=f.seriesDataToSource(t)),this._source=t;var n=this._data=t.data,i=t.sourceFormat;i===g&&(this._offset=0,this._dimSize=e,this._data=n);var r=b[i===v?i+"_"+t.seriesLayoutBy:i];a(this,r)}var _=x.prototype;_.pure=!1,_.persistent=!0,_.getSource=function(){return this._source};var b={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(t){return this._data[t+this._source.startIndex]},appendData:M},arrayRows_row:{pure:!0,count:function(){var t=this._data[0];return t?Math.max(0,t.length-this._source.startIndex):0},getItem:function(t){t+=this._source.startIndex;for(var e=[],n=this._data,i=0;i0},extendFrom:function(t,e){if(t)for(var n in t)!t.hasOwnProperty(n)||!0!==e&&(!1===e?this.hasOwnProperty(n):null==t[n])||(this[n]=t[n])},set:function(t,e){"string"===typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,n){for(var i="radial"===e.type?c:l,r=i(t,e,n),a=e.colorStops,o=0;o=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&null!=o&&null!=l&&(h=W(c,o,l),!e.ignoreViewBox)){var f=r;r=new i,r.add(f),f.scale=h.scale.slice(),f.position=h.position.slice()}return e.ignoreRootClip||null==o||null==l||r.setClipPath(new s({shape:{x:0,y:0,width:o,height:l}})),{root:r,width:o,height:l,viewBoxRect:c,viewBoxTransform:h}},A.prototype._parseNode=function(t,e){var n,i=t.nodeName.toLowerCase();if("defs"===i?this._isDefine=!0:"text"===i&&(this._isText=!0),this._isDefine){var r=C[i];if(r){var a=r.call(this,t),o=t.getAttribute("id");o&&(this._defs[o]=a)}}else{r=I[i];r&&(n=r.call(this,t,e),e.add(n))}var s=t.firstChild;while(s)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling;"defs"===i?this._isDefine=!1:"text"===i&&(this._isText=!1)},A.prototype._parseText=function(t,e){if(1===t.nodeType){var n=t.getAttribute("dx")||0,i=t.getAttribute("dy")||0;this._textX+=parseFloat(n),this._textY+=parseFloat(i)}var r=new a({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});k(e,r),L(t,r,this._defs);var o=r.style.fontSize;o&&o<9&&(r.style.fontSize=9,r.scale=r.scale||[1,1],r.scale[0]*=o/9,r.scale[1]*=o/9);var s=r.getBoundingRect();return this._textX+=s.width,e.add(r),r};var I={g:function(t,e){var n=new i;return k(e,n),L(t,n,this._defs),n},rect:function(t,e){var n=new s;return k(e,n),L(t,n,this._defs),n.setShape({x:parseFloat(t.getAttribute("x")||0),y:parseFloat(t.getAttribute("y")||0),width:parseFloat(t.getAttribute("width")||0),height:parseFloat(t.getAttribute("height")||0)}),n},circle:function(t,e){var n=new o;return k(e,n),L(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),r:parseFloat(t.getAttribute("r")||0)}),n},line:function(t,e){var n=new c;return k(e,n),L(t,n,this._defs),n.setShape({x1:parseFloat(t.getAttribute("x1")||0),y1:parseFloat(t.getAttribute("y1")||0),x2:parseFloat(t.getAttribute("x2")||0),y2:parseFloat(t.getAttribute("y2")||0)}),n},ellipse:function(t,e){var n=new l;return k(e,n),L(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),rx:parseFloat(t.getAttribute("rx")||0),ry:parseFloat(t.getAttribute("ry")||0)}),n},polygon:function(t,e){var n=t.getAttribute("points");n&&(n=O(n));var i=new u({shape:{points:n||[]}});return k(e,i),L(t,i,this._defs),i},polyline:function(t,e){var n=new h;k(e,n),L(t,n,this._defs);var i=t.getAttribute("points");i&&(i=O(i));var r=new d({shape:{points:i||[]}});return r},image:function(t,e){var n=new r;return k(e,n),L(t,n,this._defs),n.setStyle({image:t.getAttribute("xlink:href"),x:t.getAttribute("x"),y:t.getAttribute("y"),width:t.getAttribute("width"),height:t.getAttribute("height")}),n},text:function(t,e){var n=t.getAttribute("x")||0,r=t.getAttribute("y")||0,a=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0;this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(r)+parseFloat(o);var s=new i;return k(e,s),L(t,s,this._defs),s},tspan:function(t,e){var n=t.getAttribute("x"),r=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var a=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0,s=new i;return k(e,s),L(t,s,this._defs),this._textX+=a,this._textY+=o,s},path:function(t,e){var n=t.getAttribute("d")||"",i=m(n);return k(e,i),L(t,i,this._defs),i}},C={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||0,10),n=parseInt(t.getAttribute("y1")||0,10),i=parseInt(t.getAttribute("x2")||10,10),r=parseInt(t.getAttribute("y2")||0,10),a=new f(e,n,i,r);return D(t,a),a},radialgradient:function(t){}};function D(t,e){var n=t.firstChild;while(n){if(1===n.nodeType){var i=n.getAttribute("offset");i=i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var r=n.getAttribute("stop-color")||"#000000";e.addColorStop(i,r)}n=n.nextSibling}}function k(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),b(e.__inheritedStyle,t.__inheritedStyle))}function O(t){for(var e=w(t).split(M),n=[],i=0;i0;a-=2){var o=r[a],s=r[a-1];switch(i=i||g.create(),s){case"translate":o=w(o).split(M),g.translate(i,i,[parseFloat(o[0]),parseFloat(o[1]||0)]);break;case"scale":o=w(o).split(M),g.scale(i,i,[parseFloat(o[0]),parseFloat(o[1]||o[0])]);break;case"rotate":o=w(o).split(M),g.rotate(i,i,parseFloat(o[0]));break;case"skew":o=w(o).split(M),console.warn("Skew transform is not supported yet");break;case"matrix":o=w(o).split(M);i[0]=parseFloat(o[0]),i[1]=parseFloat(o[1]),i[2]=parseFloat(o[2]),i[3]=parseFloat(o[3]),i[4]=parseFloat(o[4]),i[5]=parseFloat(o[5]);break}}e.setLocalTransform(i)}}var B=/([^\s:;]+)\s*:\s*([^:;]+)/g;function F(t){var e=t.getAttribute("style"),n={};if(!e)return n;var i,r={};B.lastIndex=0;while(null!=(i=B.exec(e)))r[i[1]]=i[2];for(var a in P)P.hasOwnProperty(a)&&null!=r[a]&&(n[P[a]]=r[a]);return n}function W(t,e,n){var i=e/t.width,r=n/t.height,a=Math.min(i,r),o=[a,a],s=[-(t.x+t.width/2)*a+e/2,-(t.y+t.height/2)*a+n/2];return{scale:o,position:s}}function H(t,e){var n=new A;return n.parse(t,e)}e.parseXML=T,e.makeViewBoxTransform=W,e.parseSVG=H},"30a3":function(t,e,n){var i=n("6d8b"),r=n("607d"),a=r.Dispatcher,o=n("98b7"),s=n("06ad"),l=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,a.call(this)};l.prototype={constructor:l,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),n=0;n=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),n=0;n1&&(h*=o(_),f*=o(_));var b=(r===a?-1:1)*o((h*h*(f*f)-h*h*(x*x)-f*f*(y*y))/(h*h*(x*x)+f*f*(y*y)))||0,w=b*h*x/f,S=b*-f*y/h,M=(t+n)/2+l(m)*w-s(m)*S,T=(e+i)/2+s(m)*w+l(m)*S,A=d([1,0],[(y-w)/h,(x-S)/f]),I=[(y-w)/h,(x-S)/f],C=[(-1*y-w)/h,(-1*x-S)/f],D=d(I,C);u(I,C)<=-1&&(D=c),u(I,C)>=1&&(D=0),0===a&&D>0&&(D-=2*c),1===a&&D<0&&(D+=2*c),v.addData(g,M,T,h,f,A,D,m,a)}var p=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,g=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function v(t){if(!t)return new r;for(var e,n=0,i=0,a=n,o=i,s=new r,l=r.CMD,c=t.match(p),h=0;h0){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/r*a+n[0]}function s(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return"string"===typeof t?a(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function l(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function c(t){return t.sort(function(t,e){return t-e}),t}function h(t){if(t=+t,isNaN(t))return 0;var e=1,n=0;while(Math.round(t*e)/e!==t)e*=10,n++;return n}function u(t){var e=t.toString(),n=e.indexOf("e");if(n>0){var i=+e.slice(n+1);return i<0?-i:0}var r=e.indexOf(".");return r<0?0:e.length-1-r}function d(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),a=Math.round(n(Math.abs(e[1]-e[0]))/i),o=Math.min(Math.max(-r+a,0),20);return isFinite(o)?o:20}function f(t,e,n){if(!t[e])return 0;var r=i.reduce(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===r)return 0;var a=Math.pow(10,n),o=i.map(t,function(t){return(isNaN(t)?0:t)/r*a*100}),s=100*a,l=i.map(o,function(t){return Math.floor(t)}),c=i.reduce(l,function(t,e){return t+e},0),h=i.map(o,function(t,e){return t-l[e]});while(cu&&(u=h[f],d=f);++l[d],h[d]=0,++c}return l[e]/a}var p=9007199254740991;function g(t){var e=2*Math.PI;return(t%e+e)%e}function v(t){return t>-r&&t=-20?+t.toFixed(i<0?-i:0):t}function w(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],a=n-i;return a?r+a*(t[i]-r):r}function S(t){t.sort(function(t,e){return s(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i=0}e.linearMap=o,e.parsePercent=s,e.round=l,e.asc=c,e.getPrecision=h,e.getPrecisionSafe=u,e.getPixelPrecision=d,e.getPercentWithPrecision=f,e.MAX_SAFE_INTEGER=p,e.remRadian=g,e.isRadianAroundZero=v,e.parseDate=y,e.quantity=x,e.nice=b,e.quantile=w,e.reformIntervals=S,e.isNumeric=M},"38a2":function(t,e,n){var i=n("2b17"),r=i.retrieveRawValue,a=n("eda2"),o=a.getTooltipMarker,s=a.formatTpl,l=n("e0d3"),c=l.getTooltipRenderMode,h=/\{@(.+?)\}/g,u={getDataParams:function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),a=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"color"),h=this.ecModel.getComponent("tooltip"),u=h&&h.get("renderMode"),d=c(u),f=this.mainType,p="series"===f;return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:a,dataIndex:r,data:s,dataType:e,value:i,color:l,marker:o({color:l,renderMode:d}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,n,i,a){e=e||"normal";var o=this.getData(n),l=o.getItemModel(t),c=this.getDataParams(t,n);null!=i&&c.value instanceof Array&&(c.value=c.value[i]);var u=l.get("normal"===e?[a||"label","formatter"]:[e,a||"label","formatter"]);if("function"===typeof u)return c.status=e,u(c);if("string"===typeof u){var d=s(u,c);return d.replace(h,function(e,n){var i=n.length;return"["===n.charAt(0)&&"]"===n.charAt(i-1)&&(n=+n.slice(1,i-1)),r(o,t,n)})}},getRawValue:function(t,e){return r(this.getData(e),t)},formatTooltip:function(){}};t.exports=u},3901:function(t,e,n){var i=n("282b1"),r=i([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),a={getLineStyle:function(t){var e=r(this,t),n=this.getLineDash(e.lineWidth);return n&&(e.lineDash=n),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),n=Math.max(t,2),i=4*t;return"solid"===e||null==e?null:"dashed"===e?[i,i]:[n,n]}};t.exports=a},"392f":function(t,e,n){var i=n("6d8b"),r=i.inherits,a=n("19eb"),o=n("9850");function s(t){a.call(this,t),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}s.prototype.incremental=!0,s.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},s.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.dirty()},s.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n0&&t.unfinished);t.unfinished||this._zr.flush()}}},Q.getDom=function(){return this._dom},Q.getZr=function(){return this._zr},Q.setOption=function(t,e,n){var i;if(E(e)&&(n=e.lazyUpdate,i=e.silent,e=e.notMerge),this[q]=!0,!this._model||e){var r=new f(this._api),a=this._theme,o=this._model=new h(null,null,a,r);o.scheduler=this._scheduler,o.init(null,null,a,r)}this._model.setOption(t,Mt),n?(this[X]={silent:i},this[q]=!1):(nt(this),et.update.call(this),this._zr.flush(),this[X]=!1,this[q]=!1,ot.call(this,i),st.call(this,i))},Q.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},Q.getModel=function(){return this._model},Q.getOption=function(){return this._model&&this._model.getOption()},Q.getWidth=function(){return this._zr.getWidth()},Q.getHeight=function(){return this._zr.getHeight()},Q.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},Q.getRenderedCanvas=function(t){if(s.canvasSupported){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr;return e.painter.getRenderedCanvas(t)}},Q.getSvgDataUrl=function(){if(s.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return a.each(e,function(t){t.stopAnimation(!0)}),t.painter.pathToDataUrl()}},Q.getDataURL=function(t){t=t||{};var e=t.excludeComponents,n=this._model,i=[],r=this;P(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var a="svg"===this._zr.painter.getType()?this.getSvgDataUrl():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return P(i,function(t){t.group.ignore=!1}),a},Q.getConnectedDataURL=function(t){if(s.canvasSupported){var e=this.group,n=Math.min,i=Math.max,o=1/0;if(kt[e]){var l=o,c=o,h=-o,u=-o,d=[],f=t&&t.pixelRatio||1;a.each(Dt,function(r,o){if(r.group===e){var s=r.getRenderedCanvas(a.clone(t)),f=r.getDom().getBoundingClientRect();l=n(f.left,l),c=n(f.top,c),h=i(f.right,h),u=i(f.bottom,u),d.push({dom:s,left:f.left,top:f.top})}}),l*=f,c*=f,h*=f,u*=f;var p=h-l,g=u-c,v=a.createCanvas();v.width=p,v.height=g;var m=r.init(v);return P(d,function(t){var e=new _.Image({style:{x:t.left*f-l,y:t.top*f-c,image:t.dom}});m.add(e)}),m.refreshImmediately(),v.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},Q.convertToPixel=a.curry(tt,"convertToPixel"),Q.convertFromPixel=a.curry(tt,"convertFromPixel"),Q.containPixel=function(t,e){var n,i=this._model;return t=b.parseFinder(i,t),a.each(t,function(t,i){i.indexOf("Models")>=0&&a.each(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n|=!!r.containPoint(e);else if("seriesModels"===i){var a=this._chartsMap[t.__viewId];a&&a.containPoint&&(n|=a.containPoint(e,t))}},this)},this),!!n},Q.getVisual=function(t,e){var n=this._model;t=b.parseFinder(n,t,{defaultMainType:"series"});var i=t.seriesModel,r=i.getData(),a=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?r.indexOfRawIndex(t.dataIndex):null;return null!=a?r.getItemVisual(a,e):r.getVisual(e)},Q.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},Q.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var et={prepareAndUpdate:function(t){nt(this),et.update.call(this,t)},update:function(t){var e=this._model,n=this._api,i=this._zr,r=this._coordSysMgr,a=this._scheduler;if(e){a.restoreData(e,t),a.performSeriesTasks(e),r.create(e,n),a.performDataProcessorTasks(e,t),rt(this,e),r.update(e,n),ht(e),a.performVisualTasks(e,t),ut(this,e,n,t);var l=e.get("backgroundColor")||"transparent";if(s.canvasSupported)i.setBackgroundColor(l);else{var c=o.parse(l);l=o.stringify(c,"rgb"),0===c[3]&&(l="transparent")}pt(e,n)}},updateTransform:function(t){var e=this._model,n=this,i=this._api;if(e){var r=[];e.eachComponent(function(a,o){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,e,i,t);l&&l.update&&r.push(s)}else r.push(s)});var o=a.createHashMap();e.eachSeries(function(r){var a=n._chartsMap[r.__viewId];if(a.updateTransform){var s=a.updateTransform(r,e,i,t);s&&s.update&&o.set(r.uid,1)}else o.set(r.uid,1)}),ht(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:o}),ft(n,e,i,t,o),pt(e,this._api)}},updateView:function(t){var e=this._model;e&&(x.markUpdateMethod(t,"updateView"),ht(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),ut(this,this._model,this._api,t),pt(e,this._api))},updateVisual:function(t){et.update.call(this,t)},updateLayout:function(t){et.update.call(this,t)}};function nt(t){var e=t._model,n=t._scheduler;n.restorePipelines(e),n.prepareStageTasks(),ct(t,"component",e,n),ct(t,"chart",e,n),n.plan()}function it(t,e,n,i,r){var o=t._model;if(i){var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};r&&(l.subType=r);var c=n.excludeSeriesId;null!=c&&(c=a.createHashMap(b.normalizeToArray(c))),o&&o.eachComponent(l,function(e){c&&null!=c.get(e.id)||h(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)}else P(t._componentsViews.concat(t._chartsViews),h);function h(i){i&&i.__alive&&i[e]&&i[e](i.__model,o,t._api,n)}}function rt(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})}function at(t,e){var n=t.type,i=t.escapeConnect,r=bt[n],o=r.actionInfo,s=(o.update||"update").split(":"),l=s.pop();s=null!=s[0]&&R(s[0]),this[q]=!0;var c=[t],h=!1;t.batch&&(h=!0,c=a.map(t.batch,function(e){return e=a.defaults(a.extend({},e),t),e.batch=null,e}));var u,d=[],f="highlight"===n||"downplay"===n;P(c,function(t){u=r.action(t,this._model,this._api),u=u||a.extend({},t),u.type=o.event||u.type,d.push(u),f?it(this,l,t,"series"):s&&it(this,l,t,s.main,s.sub)},this),"none"===l||f||s||(this[X]?(nt(this),et.update.call(this,t),this[X]=!1):et[l].call(this,t)),u=h?{type:o.event||n,escapeConnect:i,batch:d}:d[0],this[q]=!1,!e&&this._messageCenter.trigger(u.type,u)}function ot(t){var e=this._pendingActions;while(e.length){var n=e.shift();at.call(this,n,t)}}function st(t){!t&&this.trigger("updated")}function lt(t,e){t.on("rendered",function(){e.trigger("rendered"),!t.animation.isFinished()||e[X]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})}function ct(t,e,n,i){for(var r="component"===e,a=r?t._componentsViews:t._chartsViews,o=r?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,c=0;ce.get("hoverLayerThreshold")&&!s.node&&n.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}function mt(t,e){var n=t.get("blendMode")||null;e.group.traverse(function(t){t.isGroup||t.style.blend!==n&&t.setStyle("blend",n),t.eachPendingDisplayable&&t.eachPendingDisplayable(function(t){t.setStyle("blend",n)})})}function yt(t,e){var n=t.get("z"),i=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i))})}function xt(t){var e=t._coordSysMgr;return a.extend(new u(t),{getCoordinateSystems:a.bind(e.getCoordinateSystems,e),getComponentByElement:function(e){while(e){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}}})}function _t(){this.eventInfo}Q._initEvents=function(){P(gt,function(t){var e=function(e){var n,i=this.getModel(),r=e.target,o="globalout"===t;if(o)n={};else if(r&&null!=r.dataIndex){var s=r.dataModel||i.getSeriesByIndex(r.seriesIndex);n=s&&s.getDataParams(r.dataIndex,r.dataType,r)||{}}else r&&r.eventData&&(n=a.extend({},r.eventData));if(n){var l=n.componentType,c=n.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",c=n.seriesIndex);var h=l&&null!=c&&i.getComponent(l,c),u=h&&this["series"===h.mainType?"_chartsMap":"_componentsMap"][h.__viewId];n.event=e,n.type=t,this._ecEventProcessor.eventInfo={targetEl:r,packedEvent:n,model:h,view:u},this.trigger(t,n)}};e.zrEventfulCallAtLast=!0,this._zr.on(t,e,this)},this),P(wt,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},Q.isDisposed=function(){return this._disposed},Q.clear=function(){this.setOption({series:[]},!0)},Q.dispose=function(){if(!this._disposed){this._disposed=!0,b.setAttribute(this.getDom(),Lt,"");var t=this._api,e=this._model;P(this._componentsViews,function(n){n.dispose(e,t)}),P(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),delete Dt[this.id]}},a.mixin(J,c),_t.prototype={constructor:_t,normalizeQuery:function(t){var e={},n={},i={};if(a.isString(t)){var r=R(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};a.each(t,function(t,r){for(var a=!1,l=0;l0&&h===r.length-c.length){var u=r.slice(0,h);"data"!==u&&(e.mainType=u,e[c.toLowerCase()]=t,a=!0)}}s.hasOwnProperty(r)&&(n[r]=t,a=!0),a||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},filter:function(t,e,n){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=e.cptQuery,c=e.dataQuery;return h(l,o,"mainType")&&h(l,o,"subType")&&h(l,o,"index","componentIndex")&&h(l,o,"name")&&h(l,o,"id")&&h(c,a,"name")&&h(c,a,"dataIndex")&&h(c,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,a));function h(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},afterTrigger:function(){this.eventInfo=null}};var bt={},wt={},St=[],Mt=[],Tt=[],At=[],It={},Ct={},Dt={},kt={},Ot=new Date-0,Pt=new Date-0,Lt="_echarts_instance_";function Et(t){var e=0,n=1,i=2,r="__connectUpdateStatus";function a(t,e){for(var n=0;n255?255:t}function o(t){return t=Math.round(t),t<0?0:t>360?360:t}function s(t){return t<0?0:t>1?1:t}function l(t){return t.length&&"%"===t.charAt(t.length-1)?a(parseFloat(t)/100*255):a(parseInt(t,10))}function c(t){return t.length&&"%"===t.charAt(t.length-1)?s(parseFloat(t)/100):s(parseFloat(t))}function h(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function u(t,e,n){return t+(e-t)*n}function d(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var p=new i(20),g=null;function v(t,e){g&&f(g,e),g=p.put(t,g||e.slice())}function m(t,e){if(t){e=e||[];var n=p.get(t);if(n)return f(e,n);t+="";var i=t.replace(/ /g,"").toLowerCase();if(i in r)return f(e,r[i]),v(t,e),e;if("#"!==i.charAt(0)){var a=i.indexOf("("),o=i.indexOf(")");if(-1!==a&&o+1===i.length){var s=i.substr(0,a),h=i.substr(a+1,o-(a+1)).split(","),u=1;switch(s){case"rgba":if(4!==h.length)return void d(e,0,0,0,1);u=c(h.pop());case"rgb":return 3!==h.length?void d(e,0,0,0,1):(d(e,l(h[0]),l(h[1]),l(h[2]),u),v(t,e),e);case"hsla":return 4!==h.length?void d(e,0,0,0,1):(h[3]=c(h[3]),y(h,e),v(t,e),e);case"hsl":return 3!==h.length?void d(e,0,0,0,1):(y(h,e),v(t,e),e);default:return}}d(e,0,0,0,1)}else{if(4===i.length){var g=parseInt(i.substr(1),16);return g>=0&&g<=4095?(d(e,(3840&g)>>4|(3840&g)>>8,240&g|(240&g)>>4,15&g|(15&g)<<4,1),v(t,e),e):void d(e,0,0,0,1)}if(7===i.length){g=parseInt(i.substr(1),16);return g>=0&&g<=16777215?(d(e,(16711680&g)>>16,(65280&g)>>8,255&g,1),v(t,e),e):void d(e,0,0,0,1)}}}}function y(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=c(t[1]),r=c(t[2]),o=r<=.5?r*(i+1):r+i-r*i,s=2*r-o;return e=e||[],d(e,a(255*h(s,o,n+1/3)),a(255*h(s,o,n)),a(255*h(s,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function x(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(i,r,a),s=Math.max(i,r,a),l=s-o,c=(s+o)/2;if(0===l)e=0,n=0;else{n=c<.5?l/(s+o):l/(2-s-o);var h=((s-i)/6+l/2)/l,u=((s-r)/6+l/2)/l,d=((s-a)/6+l/2)/l;i===s?e=d-u:r===s?e=1/3+h-d:a===s&&(e=2/3+u-h),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,c];return null!=t[3]&&f.push(t[3]),f}}function _(t,e){var n=m(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:t[i]<0&&(n[i]=0);return C(n,4===n.length?"rgba":"rgb")}}function b(t){var e=m(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function w(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),l=e[r],c=e[o],h=i-r;return n[0]=a(u(l[0],c[0],h)),n[1]=a(u(l[1],c[1],h)),n[2]=a(u(l[2],c[2],h)),n[3]=s(u(l[3],c[3],h)),n}}var S=w;function M(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),l=m(e[r]),c=m(e[o]),h=i-r,d=C([a(u(l[0],c[0],h)),a(u(l[1],c[1],h)),a(u(l[2],c[2],h)),s(u(l[3],c[3],h))],"rgba");return n?{color:d,leftIndex:r,rightIndex:o,value:i}:d}}var T=M;function A(t,e,n,i){if(t=m(t),t)return t=x(t),null!=e&&(t[0]=o(e)),null!=n&&(t[1]=c(n)),null!=i&&(t[2]=c(i)),C(y(t),"rgba")}function I(t,e){if(t=m(t),t&&null!=e)return t[3]=s(e),C(t,"rgba")}function C(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}e.parse=m,e.lift=_,e.toHex=b,e.fastLerp=w,e.fastMapToColor=S,e.lerp=M,e.mapToColor=T,e.modifyHSL=A,e.modifyAlpha=I,e.stringify=C},"42e5":function(t,e){var n=function(t){this.colorStops=t||[]};n.prototype={constructor:n,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}};var i=n;t.exports=i},4319:function(t,e,n){var i=n("6d8b"),r=n("22d1"),a=n("e0d3"),o=a.makeInner,s=n("625e"),l=s.enableClassExtend,c=s.enableClassCheck,h=n("3901"),u=n("9bdb"),d=n("fe21"),f=n("551f"),p=i.mixin,g=o();function v(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function m(t,e,n){for(var i=0;i1&&(a=function(){for(var t in arguments)console.log(arguments[t])});var o=a;t.exports=o},"4a3f":function(t,e,n){var i=n("401b"),r=i.create,a=i.distSquare,o=Math.pow,s=Math.sqrt,l=1e-8,c=1e-4,h=s(3),u=1/3,d=r(),f=r(),p=r();function g(t){return t>-l&&tl||t<-l}function m(t,e,n,i,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*i+3*a*n)}function y(t,e,n,i,r){var a=1-r;return 3*(((e-t)*a+2*(n-e)*r)*a+(i-n)*r*r)}function x(t,e,n,i,r,a){var l=i+3*(e-n)-t,c=3*(n-2*e+t),d=3*(e-t),f=t-r,p=c*c-3*l*d,v=c*d-9*l*f,m=d*d-3*c*f,y=0;if(g(p)&&g(v))if(g(c))a[0]=0;else{var x=-d/c;x>=0&&x<=1&&(a[y++]=x)}else{var _=v*v-4*p*m;if(g(_)){var b=v/p,w=(x=-c/l+b,-b/2);x>=0&&x<=1&&(a[y++]=x),w>=0&&w<=1&&(a[y++]=w)}else if(_>0){var S=s(_),M=p*c+1.5*l*(-v+S),T=p*c+1.5*l*(-v-S);M=M<0?-o(-M,u):o(M,u),T=T<0?-o(-T,u):o(T,u);x=(-c-(M+T))/(3*l);x>=0&&x<=1&&(a[y++]=x)}else{var A=(2*p*c-3*l*v)/(2*s(p*p*p)),I=Math.acos(A)/3,C=s(p),D=Math.cos(I),k=(x=(-c-2*C*D)/(3*l),w=(-c+C*(D+h*Math.sin(I)))/(3*l),(-c+C*(D-h*Math.sin(I)))/(3*l));x>=0&&x<=1&&(a[y++]=x),w>=0&&w<=1&&(a[y++]=w),k>=0&&k<=1&&(a[y++]=k)}}return y}function _(t,e,n,i,r){var a=6*n-12*e+6*t,o=9*e+3*i-3*t-9*n,l=3*e-3*t,c=0;if(g(o)){if(v(a)){var h=-l/a;h>=0&&h<=1&&(r[c++]=h)}}else{var u=a*a-4*o*l;if(g(u))r[0]=-a/(2*o);else if(u>0){var d=s(u),f=(h=(-a+d)/(2*o),(-a-d)/(2*o));h>=0&&h<=1&&(r[c++]=h),f>=0&&f<=1&&(r[c++]=f)}}return c}function b(t,e,n,i,r,a){var o=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,c=(s-o)*r+o,h=(l-s)*r+s,u=(h-c)*r+c;a[0]=t,a[1]=o,a[2]=c,a[3]=u,a[4]=u,a[5]=h,a[6]=l,a[7]=i}function w(t,e,n,i,r,o,l,h,u,g,v){var y,x,_,b,w,S=.005,M=1/0;d[0]=u,d[1]=g;for(var T=0;T<1;T+=.05)f[0]=m(t,n,r,l,T),f[1]=m(e,i,o,h,T),b=a(d,f),b=0&&b=0&&h<=1&&(r[c++]=h)}}else{var u=o*o-4*a*l;if(g(u)){h=-o/(2*a);h>=0&&h<=1&&(r[c++]=h)}else if(u>0){var d=s(u),f=(h=(-o+d)/(2*a),(-o-d)/(2*a));h>=0&&h<=1&&(r[c++]=h),f>=0&&f<=1&&(r[c++]=f)}}return c}function A(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function I(t,e,n,i,r){var a=(e-t)*i+t,o=(n-e)*i+e,s=(o-a)*i+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=n}function C(t,e,n,i,r,o,l,h,u){var g,v=.005,m=1/0;d[0]=l,d[1]=h;for(var y=0;y<1;y+=.05){f[0]=S(t,n,r,y),f[1]=S(e,i,o,y);var x=a(d,f);x=0&&x":"\n",d="richText"===i,f={},p=0;function g(n){var o=r.reduce(n,function(t,e,n){var i=m.getDimensionInfo(n);return t|(i&&!1!==i.tooltip&&null!=i.displayName)},0),u=[];function g(t,n){var r=m.getDimensionInfo(n);if(r&&!1!==r.otherDims.tooltip){var g=r.type,v="sub"+a.seriesIndex+"at"+p,y=h({color:w,type:"subItem",renderMode:i,markerId:v}),x="string"===typeof y?y:y.content,_=(o?x+l(r.displayName||"-")+": ":"")+l("ordinal"===g?t+"":"time"===g?e?"":s("yyyy/MM/dd hh:mm:ss",t):c(t));_&&u.push(_),d&&(f[v]=w,++p)}}y.length?r.each(y,function(e){g(M(m,t,e),e)}):r.each(n,g);var v=o?d?"\n":"
":"",x=v+u.join(v||", ");return{renderMode:i,content:x,style:f}}function v(t){return{renderMode:i,content:l(c(t)),style:f}}var m=this.getData(),y=m.mapDimension("defaultedTooltip",!0),x=y.length,_=this.getRawValue(t),b=r.isArray(_),w=m.getItemVisual(t,"color");r.isObject(w)&&w.colorStops&&(w=(w.colorStops[0]||{}).color),w=w||"transparent";var S=x>1||b&&!x?g(_):v(x?M(m,t,y[0]):b?_[0]:_),T=S.content,A=a.seriesIndex+"at"+p,I=h({color:w,type:"item",renderMode:i,markerId:A});f[A]=w,++p;var C=m.getName(t),D=this.name;u.isNameSpecified(this)||(D=""),D=D?l(D)+(e?": ":o):"";var k="string"===typeof I?I:I.content,O=e?k+D+T:D+k+(C?l(C)+": "+T:T);return{html:O,markers:f}},isAnimationEnabled:function(){if(a.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,n){var i=this.ecModel,r=f.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function I(t){var e=t.name;u.isNameSpecified(t)||(t.name=C(t)||e)}function C(t){var e=t.getRawData(),n=e.mapDimension("seriesName",!0),i=[];return r.each(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")}function D(t){return t.model.getRawData().count()}function k(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),O}function O(t,e){t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function P(t,e){r.each(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,r.curry(L,e))})}function L(t){var e=E(t);e&&e.setOutputEnd(this.count())}function E(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}r.mixin(A,p),r.mixin(A,f);var R=A;t.exports=R},"4fac":function(t,e,n){var i=n("620b"),r=n("9c2c");function a(t,e,n){var a=e.points,o=e.smooth;if(a&&a.length>=2){if(o&&"spline"!==o){var s=r(a,o,n,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var l=a.length,c=0;c<(n?l:l-1);c++){var h=s[2*c],u=s[2*c+1],d=a[(c+1)%l];t.bezierCurveTo(h[0],h[1],u[0],u[1],d[0],d[1])}}else{"spline"===o&&(a=i(a,n)),t.moveTo(a[0][0],a[0][1]);c=1;for(var f=a.length;cc&&(o=n+i,n*=c/o,i*=c/o),r+a>c&&(o=r+a,r*=c/o,a*=c/o),i+r>h&&(o=i+r,i*=h/o,r*=h/o),n+a>h&&(o=n+a,n*=h/o,a*=h/o),t.moveTo(s+n,l),t.lineTo(s+c-i,l),0!==i&&t.arc(s+c-i,l+i,i,-Math.PI/2,0),t.lineTo(s+c,l+h-r),0!==r&&t.arc(s+c-r,l+h-r,r,0,Math.PI/2),t.lineTo(s+a,l+h),0!==a&&t.arc(s+a,l+h-a,a,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}e.buildPath=n},"585a":function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n("c8ba"))},"5aa9":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),a=r.isObject,o=r.each,s=r.map,l=r.indexOf,c=(r.retrieve,n("f934")),h=c.getLayoutRect,u=n("697e"),d=u.createScaleByModel,f=u.ifAxisCrossZero,p=u.niceScaleExtent,g=u.estimateLabelUnionRect,v=n("cbe9"),m=n("ec02"),y=n("2039"),x=n("ee1a"),_=x.getStackedDimension;function b(t,e,n){return t.getCoordSysModel()===e}function w(t,e,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,n),this.model=t}n("8ed2");var S=w.prototype;function M(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,a=t[e],o=n.model,s=o.get("axisLine.onZero"),l=o.get("axisLine.onZeroAxisIndex");if(s){if(null!=l)T(a[l])&&(r=a[l]);else for(var c in a)if(a.hasOwnProperty(c)&&T(a[c])&&!i[h(a[c])]){r=a[c];break}r&&(i[h(r)]=!0)}function h(t){return t.dim+"_"+t.index}}function T(t){return t&&"category"!==t.type&&"time"!==t.type&&f(t)}function A(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}S.type="grid",S.axisPointerEnabled=!0,S.getRect=function(){return this._rect},S.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model),o(n.x,function(t){p(t.scale,t.model)}),o(n.y,function(t){p(t.scale,t.model)});var i={};o(n.x,function(t){M(n,"y",t,i)}),o(n.y,function(t){M(n,"x",t,i)}),this.resize(this.model,e)},S.resize=function(t,e,n){var i=h(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=i;var r=this._axesList;function a(){o(r,function(t){var e=t.isHorizontal(),n=e?[0,i.width]:[0,i.height],r=t.inverse?1:0;t.setExtent(n[r],n[1-r]),A(t,e?i.x:i.y)})}a(),!n&&t.get("containLabel")&&(o(r,function(t){if(!t.model.get("axisLabel.inside")){var e=g(t);if(e){var n=t.isHorizontal()?"height":"width",r=t.model.get("axisLabel.margin");i[n]-=e[n]+r,"top"===t.position?i.y+=e.height+r:"left"===t.position&&(i.x+=e.width+r)}}}),a())},S.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n){if(null==e)for(var i in n)if(n.hasOwnProperty(i))return n[i];return n[e]}},S.getAxes=function(){return this._axesList.slice()},S.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}a(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i=0;if(r){var a="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];a&&l(t,a,e,n)}else l(t,e,e,n),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var s=e.button;return null==e.which&&void 0!==s&&o.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function u(t,e,n){a?t.addEventListener(e,n):t.attachEvent("on"+e,n)}function d(t,e,n){a?t.removeEventListener(e,n):t.detachEvent("on"+e,n)}var f=a?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};function p(t){return 2===t.which||3===t.which}function g(t){return t.which>1}e.clientToLocal=l,e.normalizeEvent=h,e.addEventListener=u,e.removeEventListener=d,e.stop=f,e.isMiddleOrRightButtonOnMouseUpDown=p,e.notLeftMouse=g},6179:function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),a=n("4319"),o=n("80f0"),s=n("ec6f"),l=n("2b17"),c=l.defaultDimValueGetters,h=l.DefaultDataProvider,u=n("2f45"),d=u.summarizeDimensions,f=r.isObject,p="undefined",g=-1,v="e\0\0",m={float:typeof Float64Array===p?Array:Float64Array,int:typeof Int32Array===p?Array:Int32Array,ordinal:Array,number:Array,time:Array},y=typeof Uint32Array===p?Array:Uint32Array,x=typeof Int32Array===p?Array:Int32Array,_=typeof Uint16Array===p?Array:Uint16Array;function b(t){return t._rawCount>65535?y:_}function w(t){var e=t.constructor;return e===Array?t.slice():new e(t)}var S=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],M=["_extent","_approximateExtent","_rawExtent"];function T(t,e){r.each(S.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,r.each(M,function(n){t[n]=r.clone(e[n])}),t._calculationInfo=r.extend(e._calculationInfo)}var A=function(t,e){t=t||["x","y"];for(var n={},i=[],a={},o=0;o=0?this._indices[t]:-1}function L(t,e){var n=t._idList[e];return null==n&&(n=k(t,t._idDimIdx,e)),null==n&&(n=v+e),n}function E(t){return r.isArray(t)||(t=[t]),t}function R(t,e){var n=t.dimensions,i=new A(r.map(n,t.getDimensionInfo,t),t.hostModel);T(i,t);for(var a=i._storage={},o=t._storage,s=0;s=0?(a[l]=N(o[l]),i._rawExtent[l]=z(),i._extent[l]=null):a[l]=o[l])}return i}function N(t){for(var e=new Array(t.length),n=0;nx[1]&&(x[1]=y)}e&&(this._nameList[f]=e[p])}this._rawCount=this._count=l,this._extent={},D(this)},I._initDataFromProvider=function(t,e){if(!(t>=e)){for(var n,i=this._chunkSize,r=this._rawData,a=this._storage,o=this.dimensions,s=o.length,l=this._dimensionInfos,c=this._nameList,h=this._idList,u=this._rawExtent,d=this._nameRepeatCount={},f=this._chunkCount,p=0;pM[1]&&(M[1]=S)}if(!r.pure){var T=c[y];if(m&&null==T)if(null!=m.name)c[y]=T=m.name;else if(null!=n){var A=o[n],I=a[A][x];if(I){T=I[_];var k=l[A].ordinalMeta;k&&k.categories.length&&(T=k.categories[T])}}var O=null==m?null:m.id;null==O&&null!=T&&(d[T]=d[T]||0,O=T,d[T]>0&&(O+="__ec__"+d[T]),d[T]++),null!=O&&(h[y]=O)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent={},D(this)}},I.count=function(){return this._count},I.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array){r=new e(n);for(var i=0;i=0&&e=0&&es&&(s=c)}return i=[o,s],this._extent[t]=i,i},I.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},I.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},I.getCalculationInfo=function(t){return this._calculationInfo[t]},I.setCalculationInfo=function(t,e){f(t)?r.extend(this._calculationInfo,t):this._calculationInfo[t]=e},I.getSum=function(t){var e=this._storage[t],n=0;if(e)for(var i=0,r=this.count();i=this._rawCount||t<0)return-1;var e=this._indices,n=e[t];if(null!=n&&nt))return a;r=a-1}}return-1},I.indicesOfNearest=function(t,e,n){var i=this._storage,r=i[t],a=[];if(!r)return a;null==n&&(n=1/0);for(var o=Number.MAX_VALUE,s=-1,l=0,c=this.count();l=0&&s<0)&&(o=u,s=h,a.length=0),a.push(l))}return a},I.getRawIndex=O,I.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n=c&&y<=h||isNaN(y))&&(o[s++]=d),d++}u=!0}else if(2===i){f=this._storage[l];var x=this._storage[e[1]],_=t[e[1]][0],w=t[e[1]][1];for(p=0;p=c&&y<=h||isNaN(y))&&(M>=_&&M<=w||isNaN(M))&&(o[s++]=d),d++}}u=!0}}if(!u)if(1===i)for(m=0;m=c&&y<=h||isNaN(y))&&(o[s++]=T)}else for(m=0;mt[I][1])&&(A=!1)}A&&(o[s++]=this.getRawIndex(m))}return sw[1]&&(w[1]=b)}}}return a},I.downSample=function(t,e,n,i){for(var r=R(this,[t]),a=r._storage,o=[],s=Math.floor(1/e),l=a[t],c=this.count(),h=this._chunkSize,u=r._rawExtent[t],d=new(b(this))(c),f=0,p=0;pc-p&&(s=c-p,o.length=s);for(var g=0;gu[1]&&(u[1]=x),d[f++]=_}return r._count=f,r._indices=d,r.getRawIndex=P,r},I.getItemModel=function(t){var e=this.hostModel;return new a(this.getRawDataItem(t),e,e&&e.ecModel)},I.diff=function(t){var e=this;return new o(t?t.getIndices():[],this.getIndices(),function(e){return L(t,e)},function(t){return L(e,t)})},I.getVisual=function(t){var e=this._visual;return e&&e[t]},I.setVisual=function(t,e){if(f(t))for(var n in t)t.hasOwnProperty(n)&&this.setVisual(n,t[n]);else this._visual=this._visual||{},this._visual[t]=e},I.setLayout=function(t,e){if(f(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},I.getLayout=function(t){return this._layout[t]},I.getItemLayout=function(t){return this._itemLayouts[t]},I.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?r.extend(this._itemLayouts[t]||{},e):e},I.clearItemLayouts=function(){this._itemLayouts.length=0},I.getItemVisual=function(t,e,n){var i=this._itemVisuals[t],r=i&&i[e];return null!=r||n?r:this.getVisual(e)},I.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{},r=this.hasItemVisual;if(this._itemVisuals[t]=i,f(e))for(var a in e)e.hasOwnProperty(a)&&(i[a]=e[a],r[a]=!0);else i[e]=n,r[e]=!0},I.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var B=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};I.setItemGraphicEl=function(t,e){var n=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(B,e)),this._graphicEls[t]=e},I.getItemGraphicEl=function(t){return this._graphicEls[t]},I.eachItemGraphicEl=function(t,e){r.each(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},I.cloneShallow=function(t){if(!t){var e=r.map(this.dimensions,this.getDimensionInfo,this);t=new A(e,this.hostModel)}if(t._storage=this._storage,T(t,this),this._indices){var n=this._indices.constructor;t._indices=new n(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?P:O,t},I.wrapMethod=function(t,e){var n=this[t];"function"===typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(r.slice(arguments)))})},I.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],I.CHANGABLE_METHODS=["filterSelf","selectRange"];var F=A;t.exports=F},"620b":function(t,e,n){var i=n("401b"),r=i.distance;function a(t,e,n,i,r,a,o){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*o+(-3*(e-n)-2*s-l)*a+s*r+e}function o(t,e){for(var n=t.length,i=[],o=0,s=1;sn-2?n-1:f+1],u=t[f>n-3?n-1:f+2]);var v=p*p,m=p*v;i.push([a(c[0],g[0],h[0],u[0],p,v,m),a(c[1],g[1],h[1],u[1],p,v,m)])}return i}t.exports=o},"625e":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),a=".",o="___EC__COMPONENT__CONTAINER___";function s(t){var e={main:"",sub:""};return t&&(t=t.split(a),e.main=t[0]||"",e.sub=t[1]||""),e}function l(t){r.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function c(t,e){t.$constructor=t,t.extend=function(t){var e=this,n=function(){t.$constructor?t.$constructor.apply(this,arguments):e.apply(this,arguments)};return r.extend(n.prototype,t),n.extend=this.extend,n.superCall=d,n.superApply=f,r.inherits(n,this),n.superClass=e,n}}var h=0;function u(t){var e=["__\0is_clz",h++,Math.random().toFixed(3)].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function d(t,e){var n=r.slice(arguments,2);return this.superClass.prototype[e].apply(t,n)}function f(t,e,n){return this.superClass.prototype[e].apply(t,n)}function p(t,e){e=e||{};var n={};function i(t){var e=n[t.main];return e&&e[o]||(e=n[t.main]={},e[o]=!0),e}if(t.registerClass=function(t,e){if(e)if(l(e),e=s(e),e.sub){if(e.sub!==o){var r=i(e);r[e.sub]=t}}else n[e.main]=t;return t},t.getClass=function(t,e,i){var r=n[t];if(r&&r[o]&&(r=e?r[e]:null),i&&!r)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){t=s(t);var e=[],i=n[t.main];return i&&i[o]?r.each(i,function(t,n){n!==o&&e.push(t)}):e.push(i),e},t.hasClass=function(t){return t=s(t),!!n[t.main]},t.getAllClassMainTypes=function(){var t=[];return r.each(n,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){t=s(t);var e=n[t.main];return e&&e[o]},t.parseClassType=s,e.registerWhenExtend){var a=t.extend;a&&(t.extend=function(e){var n=a.call(this,e);return t.registerClass(n,e.type)})}return t}function g(t,e){}e.parseClassType=s,e.enableClassExtend=c,e.enableClassCheck=u,e.enableClassManagement=p,e.setReadOnly=g},6679:function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("3eba")),a=n("cd33"),o=r.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,e,n,i){this.axisPointerClass&&a.fixValue(t),o.superApply(this,"render",arguments),s(this,t,e,n,i,!0)},updateAxisPointer:function(t,e,n,i,r){s(this,t,e,n,i,!1)},remove:function(t,e){var n=this._axisPointer;n&&n.remove(e),o.superApply(this,"remove",arguments)},dispose:function(t,e){l(this,e),o.superApply(this,"dispose",arguments)}});function s(t,e,n,i,r,s){var c=o.getAxisPointerClass(t.axisPointerClass);if(c){var h=a.getAxisPointerModel(e);h?(t._axisPointer||(t._axisPointer=new c)).render(e,h,i,s):l(t,i)}}function l(t,e,n){var i=t._axisPointer;i&&i.dispose(e,n),t._axisPointer=null}var c=[];o.registerAxisPointerClass=function(t,e){c[t]=e},o.getAxisPointerClass=function(t){return t&&c[t]};var h=o;t.exports=h},"68ab":function(t,e,n){var i=n("4a3f"),r=i.quadraticProjectPoint;function a(t,e,n,i,a,o,s,l,c){if(0===s)return!1;var h=s;if(c>e+h&&c>i+h&&c>o+h||ct+h&&l>n+h&&l>a+h||l0&&c>0&&!d&&(s=0),s<0&&c<0&&!f&&(c=0));var v=e.ecModel;if(v&&"time"===o){var m,y=h("bar",v);if(r.each(y,function(t){m|=t.getBaseAxis()===e.axis}),m){var x=u(y),_=g(s,c,e,x);s=_.min,c=_.max}}return[s,c]}function g(t,e,n,i){var a=n.axis.getExtent(),o=a[1]-a[0],s=d(i,n.axis);if(void 0===s)return{min:t,max:e};var l=1/0;r.each(s,function(t){l=Math.min(t.offset,l)});var c=-1/0;r.each(s,function(t){c=Math.max(t.offset+t.width,c)}),l=Math.abs(l),c=Math.abs(c);var h=l+c,u=e-t,f=1-(l+c)/o,p=u/f-u;return e+=p*(c/h),t-=p*(l/h),{min:t,max:e}}function v(t,e){var n=p(t,e),i=null!=e.getMin(),r=null!=e.getMax(),a=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var o=t.type;t.setExtent(n[0],n[1]),t.niceExtent({splitNumber:a,fixMin:i,fixMax:r,minInterval:"interval"===o||"time"===o?e.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?e.get("maxInterval"):null});var s=e.get("interval");null!=s&&t.setInterval&&t.setInterval(s)}function m(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new a(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new o;default:return(s.getClass(e)||o).create(t)}}function y(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}function x(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"string"===typeof e?(e=function(e){return function(n){return n=t.scale.getLabel(n),e.replace("{value}",null!=n?n:"")}}(e),e):"function"===typeof e?function(i,r){return null!=n&&(r=i-n),e(_(t,i),r)}:function(e){return t.scale.getLabel(e)}}function _(t,e){return"category"===t.type?t.scale.getLabel(e):e}function b(t){var e=t.model,n=t.scale;if(e.get("axisLabel.show")&&!n.isBlank()){var i,r,a="category"===t.type,o=n.getExtent();a?r=n.count():(i=n.getTicks(),r=i.length);var s,l=t.getLabelModel(),c=x(t),h=1;r>40&&(h=Math.ceil(r/40));for(var u=0;un.blockIndex,a=r?n.step:null,o=i&&i.modDataCount,s=null!=o?Math.ceil(o/a):null;return{step:a,modBy:s,modDataCount:o}}},y.getPipeline=function(t){return this._pipelineMap.get(t)},y.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),r=i.count(),a=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,o=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:a,modDataCount:s,large:o}},y.restorePipelines=function(t){var e=this,n=e._pipelineMap=s();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),P(e,t,t.dataTask)})},y.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),n=this.api;r(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,[]);i.reset&&b(this,i,r,e,n),i.overallReset&&w(this,i,r,e,n)},this)},y.prepareView=function(t,e,n,i){var r=t.renderTask,a=r.context;a.model=e,a.ecModel=n,a.api=i,r.__block=!t.incrementalPrepareRender,P(this,e,r)},y.performDataProcessorTasks=function(t,e){x(this,this._dataProcessorHandlers,t,e,{block:!0})},y.performVisualTasks=function(t,e,n){x(this,this._visualHandlers,t,e,n)},y.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e|=t.dataTask.perform()}),this.unfinished|=e},y.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})};var _=y.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)};function b(t,e,n,i,r){var a=n.seriesTaskMap||(n.seriesTaskMap=s()),o=e.seriesType,l=e.getTargetSeries;function c(n){var o=n.uid,s=a.get(o)||a.set(o,h({plan:I,reset:C,count:O}));s.context={model:n,ecModel:i,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},P(t,n,s)}e.createOnAllSeries?i.eachRawSeries(c):o?i.eachRawSeriesByType(o,c):l&&l(i,r).each(c);var u=t._pipelineMap;a.each(function(t,e){u.get(e)||(t.dispose(),a.removeKey(e))})}function w(t,e,n,i,a){var o=n.overallTask=n.overallTask||h({reset:S});o.context={ecModel:i,api:a,overallReset:e.overallReset,scheduler:t};var l=o.agentStubMap=o.agentStubMap||s(),c=e.seriesType,u=e.getTargetSeries,d=!0,f=e.modifyOutputEnd;function p(e){var n=e.uid,i=l.get(n);i||(i=l.set(n,h({reset:M,onDirty:A})),o.dirty()),i.context={model:e,overallProgress:d,modifyOutputEnd:f},i.agent=o,i.__block=d,P(t,e,i)}c?i.eachRawSeriesByType(c,p):u?u(i,a).each(p):(d=!1,r(i.getSeries(),p));var g=t._pipelineMap;l.each(function(t,e){g.get(e)||(t.dispose(),o.dirty(),l.removeKey(e))})}function S(t){t.overallReset(t.ecModel,t.api,t.payload)}function M(t,e){return t.overallProgress&&T}function T(){this.agent.dirty(),this.getDownstream().dirty()}function A(){this.agent&&this.agent.dirty()}function I(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function C(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=v(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?a(e,function(t,e){return k(e)}):D}var D=k(0);function k(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var a=e.start;ax?"left":"right",f=Math.abs(u[1]-_)/y<.3?"middle":u[1]>_?"top":"bottom"}return{position:u,align:d,verticalAlign:f}}var d={line:function(t,e,n,i,r){return"angle"===t.dim?{type:"Line",shape:o.makeLineShape(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i,r){var a=Math.max(1,t.getBandWidth()),s=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:o.makeSectorShape(e.cx,e.cy,i[0],i[1],(-n-a/2)*s,(a/2-n)*s)}:{type:"Sector",shape:o.makeSectorShape(e.cx,e.cy,n-a/2,n+a/2,0,2*Math.PI)}}};c.registerAxisPointerClass("PolarAxisPointer",h);var f=h;t.exports=f},"6cb7":function(t,e,n){var i=n("6d8b"),r=n("4319"),a=n("8918"),o=n("625e"),s=o.enableClassManagement,l=o.parseClassType,c=n("e0d3"),h=c.makeInner,u=n("f934"),d=n("de1c"),f=h(),p=r.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,n,i){r.call(this,t,e,n,i),this.uid=a.getUID("ec_cpt_model")},init:function(t,e,n,i){this.mergeDefaultAndTheme(t,n)},mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,r=n?u.getLayoutParams(t):{},a=e.getTheme();i.merge(t,a.get(this.mainType)),i.merge(t,this.getDefaultOption()),n&&u.mergeLayoutParam(t,r,n)},mergeOption:function(t,e){i.merge(this.option,t,!0);var n=this.layoutMode;n&&u.mergeLayoutParam(this.option,t,n)},optionUpdated:function(t,e){},getDefaultOption:function(){var t=f(this);if(!t.defaultOption){var e=[],n=this.constructor;while(n){var r=n.prototype.defaultOption;r&&e.push(r),n=n.superClass}for(var a={},o=e.length-1;o>=0;o--)a=i.merge(a,e[o],!0);t.defaultOption=a}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});function g(t){var e=[];return i.each(p.getClassesByMainType(t),function(t){e=e.concat(t.prototype.dependencies||[])}),e=i.map(e,function(t){return l(t).main}),"dataset"!==t&&i.indexOf(e,"dataset")<=0&&e.unshift("dataset"),e}s(p,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(p),a.enableTopologicalTravel(p,g),i.mixin(p,d);var v=p;t.exports=v},"6d8b":function(t,e){var n={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},i={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},r=Object.prototype.toString,a=Array.prototype,o=a.forEach,s=a.filter,l=a.slice,c=a.map,h=a.reduce,u={};function d(t,e){"createCanvas"===t&&(y=null),u[t]=e}function f(t){if(null==t||"object"!==typeof t)return t;var e=t,a=r.call(t);if("[object Array]"===a){if(!$(t)){e=[];for(var o=0,s=t.length;o1?arguments[1]:void 0)}}),n("9c6c")(a)},"76a5":function(t,e,n){var i=n("19eb"),r=n("6d8b"),a=n("e86a"),o=n("a73c"),s=n("82eb"),l=s.ContextCachedBy,c=function(t){i.call(this,t)};c.prototype={constructor:c,type:"text",brush:function(t,e){var n=this.style;this.__dirty&&o.normalizeTextStyle(n,!0),n.fill=n.stroke=n.shadowBlur=n.shadowColor=n.shadowOffsetX=n.shadowOffsetY=null;var i=n.text;null!=i&&(i+=""),o.needDrawText(i,n)?(this.setTransform(t),o.renderText(this,t,i,n,null,e),this.restoreTransform(t)):t.__attrCachedBy=l.NONE},getBoundingRect:function(){var t=this.style;if(this.__dirty&&o.normalizeTextStyle(t,!0),!this._rect){var e=t.text;null!=e?e+="":e="";var n=a.getBoundingRect(t.text+"",t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich);if(n.x+=t.x||0,n.y+=t.y||0,o.getStroke(t.textStroke,t.textStrokeWidth)){var i=t.textStrokeWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect}},r.inherits(c,i);var h=c;t.exports=h},"78f0":function(t,e,n){var i=n("3eba");n("d9f1");var r=i.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e,n=this.ecModel;return n.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});t.exports=r},"792e":function(t,e,n){n("1ccf"),n("14d3")},"7d6d":function(t,e){var n={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function i(t,e,i){return n.hasOwnProperty(e)?i*t.dpr:i}t.exports=i},"7d7b":function(t,e,n){var i=n("e4ae"),r=n("7cd6");t.exports=n("584a").getIterator=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return i(e.call(t))}},"7e63":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),a=r.each,o=r.filter,s=r.map,l=r.isArray,c=r.indexOf,h=r.isObject,u=r.isString,d=r.createHashMap,f=r.assert,p=r.clone,g=r.merge,v=r.extend,m=r.mixin,y=n("e0d3"),x=n("4319"),_=n("6cb7"),b=n("8971"),w=n("e47b"),S=n("0f99"),M=S.resetSourceDefaulter,T="\0_ec_inner",A=x.extend({init:function(t,e,n,i){n=n||{},this.option=null,this._theme=new x(n),this._optionManager=i},setOption:function(t,e){f(!(T in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e=!1,n=this._optionManager;if(!t||"recreate"===t){var i=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(i)):D.call(this,i),e=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var r=n.getTimelineOption(this);r&&(this.mergeOption(r),e=!0)}if(!t||"recreate"===t||"media"===t){var o=n.getMediaOption(this,this._api);o.length&&a(o,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){var e=this.option,n=this._componentsMap,i=[];function r(i,r){var o=y.normalizeToArray(t[i]),s=y.mappingToExists(n.get(i),o);y.makeIdAndName(s),a(s,function(t,e){var n=t.option;h(n)&&(t.keyInfo.mainType=i,t.keyInfo.subType=O(i,n,t.exist))});var l=k(n,r);e[i]=[],n.set(i,[]),a(s,function(t,r){var a=t.exist,o=t.option;if(f(h(o)||a,"Empty component definition"),o){var s=_.getClass(i,t.keyInfo.subType,!0);if(a&&a instanceof s)a.name=t.keyInfo.name,a.mergeOption(o,this),a.optionUpdated(o,!1);else{var c=v({dependentModels:l,componentIndex:r},t.keyInfo);a=new s(o,this,this,c),v(a,c),a.init(o,this,this,c),a.optionUpdated(null,!0)}}else a.mergeOption({},this),a.optionUpdated({},!1);n.get(i)[r]=a,e[i][r]=a.option},this),"series"===i&&P(this,n.get("series"))}M(this),a(t,function(t,n){null!=t&&(_.hasClass(n)?n&&i.push(n):e[n]=null==e[n]?p(t):g(e[n],t,!0))}),_.topologicalTravel(i,_.getAllClassMainTypes(),r,this),this._seriesIndicesMap=d(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var t=p(this.option);return a(t,function(e,n){if(_.hasClass(n)){e=y.normalizeToArray(e);for(var i=e.length-1;i>=0;i--)y.isIdInner(e[i])&&e.splice(i,1);t[n]=e}}),delete t[T],t},getTheme:function(){return this._theme},getComponent:function(t,e){var n=this._componentsMap.get(t);if(n)return n[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,a=t.name,h=this._componentsMap.get(e);if(!h||!h.length)return[];if(null!=i)l(i)||(i=[i]),n=o(s(i,function(t){return h[t]}),function(t){return!!t});else if(null!=r){var u=l(r);n=o(h,function(t){return u&&c(r,t.id)>=0||!u&&t.id===r})}else if(null!=a){var d=l(a);n=o(h,function(t){return d&&c(a,t.name)>=0||!d&&t.name===a})}else n=h.slice();return L(n,t)},findComponents:function(t){var e=t.query,n=t.mainType,i=a(e),r=i?this.queryComponents(i):this._componentsMap.get(n);return s(L(r,t));function a(t){var e=n+"Index",i=n+"Id",r=n+"Name";return!t||null==t[e]&&null==t[i]&&null==t[r]?null:{mainType:n,index:t[e],id:t[i],name:t[r]}}function s(e){return t.filter?o(e,t.filter):e}},eachComponent:function(t,e,n){var i=this._componentsMap;if("function"===typeof t)n=e,e=t,i.each(function(t,i){a(t,function(t,r){e.call(n,i,t,r)})});else if(u(t))a(i.get(t),e,n);else if(h(t)){var r=this.findComponents(t);a(r,e,n)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return o(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return o(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(t,e){E(this),a(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},eachRawSeries:function(t,e){a(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,n){E(this),a(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)},this)},eachRawSeriesByType:function(t,e,n){return a(this.getSeriesByType(t),e,n)},isSeriesFiltered:function(t){return E(this),null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){E(this);var n=o(this._componentsMap.get("series"),t,e);P(this,n)},restoreData:function(t){var e=this._componentsMap;P(this,e.get("series"));var n=[];e.each(function(t,e){n.push(e)}),_.topologicalTravel(n,_.getAllClassMainTypes(),function(n,i){a(e.get(n),function(e){("series"!==n||!I(e,t))&&e.restoreData()})})}});function I(t,e){if(e){var n=e.seiresIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}function C(t,e){var n=t.color&&!t.colorLayer;a(e,function(e,i){"colorLayer"===i&&n||_.hasClass(i)||("object"===typeof e?t[i]=t[i]?g(t[i],e,!1):p(e):null==t[i]&&(t[i]=e))})}function D(t){t=t,this.option={},this.option[T]=1,this._componentsMap=d({series:[]}),this._seriesIndices,this._seriesIndicesMap,C(t,this._theme.option),g(t,b,!1),this.mergeOption(t)}function k(t,e){l(e)||(e=e?[e]:[]);var n={};return a(e,function(e){n[e]=(t.get(e)||[]).slice()}),n}function O(t,e,n){var i=e.type?e.type:n?n.subType:_.determineSubType(t,e);return i}function P(t,e){t._seriesIndicesMap=d(t._seriesIndices=s(e,function(t){return t.componentIndex})||[])}function L(t,e){return e.hasOwnProperty("subType")?o(t,function(t){return t.subType===e.subType}):t}function E(t){}m(A,w);var R=A;t.exports=R},"7f96":function(t,e){function n(t,e,n){return{seriesType:t,performRawSeries:!0,reset:function(t,i,r){var a=t.getData(),o=t.get("symbol")||e,s=t.get("symbolSize"),l=t.get("symbolKeepAspect");if(a.setVisual({legendSymbol:n||o,symbol:o,symbolSize:s,symbolKeepAspect:l}),!i.isSeriesFiltered(t)){var c="function"===typeof s;return{dataEach:a.hasItemOption||c?h:null}}function h(e,n){if("function"===typeof s){var i=t.getRawValue(n),r=t.getDataParams(n);e.setItemVisual(n,"symbolSize",s(i,r))}if(e.hasItemOption){var a=e.getItemModel(n),o=a.getShallow("symbol",!0),l=a.getShallow("symbolSize",!0),c=a.getShallow("symbolKeepAspect",!0);null!=o&&e.setItemVisual(n,"symbol",o),null!=l&&e.setItemVisual(n,"symbolSize",l),null!=c&&e.setItemVisual(n,"symbolKeepAspect",c)}}}}}t.exports=n},"80f0":function(t,e){function n(t){return t}function i(t,e,i,r,a){this._old=t,this._new=e,this._oldKeyGetter=i||n,this._newKeyGetter=r||n,this.context=a}function r(t,e,n,i,r){for(var a=0;a0&&(t.coord-=c/(2*(e+1)))}),s={coord:e[o-1].coord+c},e.push(s)}var h=l[0]>l[1];u(e[0].coord,l[0])&&(a?e[0].coord=l[0]:e.shift()),a&&u(l[0],e[0].coord)&&e.unshift({coord:l[0]}),u(l[1],s.coord)&&(a?s.coord=l[1]:e.pop()),a&&u(s.coord,l[1])&&e.push({coord:l[1]})}function u(t,e){return h?t>e:t=n&&t<=i},containData:function(t){return this.contain(this.dataToCoord(t))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return l(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var n=this._extent;n[0]=t,n[1]=e},dataToCoord:function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&(n=n.slice(),g(n,i.count())),s(t,f,n,e)},coordToData:function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),g(n,i.count()));var r=s(t,n,f,e);return this.scale.scale(r)},pointToData:function(t,e){},getTicksCoords:function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=h(this,e),i=n.ticks,r=a(i,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this),o=e.get("alignWithLabel");return v(this,r,n.tickCategoryInterval,o,t.clamp),r},getViewLabels:function(){return u(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return d(this)}};var m=p;t.exports=m},"857d":function(t,e){var n=2*Math.PI;function i(t){return t%=n,t<0&&(t+=n),t}e.normalizeRadian=i},"862d":function(t,e,n){var i=n("6d8b"),r=i.createHashMap,a=i.each,o=i.isString,s=i.defaults,l=i.extend,c=i.isObject,h=i.clone,u=n("e0d3"),d=u.normalizeToArray,f=n("0f99"),p=f.guessOrdinal,g=n("ec6f"),v=n("2f45"),m=v.OTHER_DIMENSIONS;function y(t,e,n){g.isInstance(e)||(e=g.seriesDataToSource(e)),n=n||{},t=(t||[]).slice();for(var i=(n.dimsDef||[]).slice(),u=r(n.encodeDef),f=r(),v=r(),y=[],b=x(e,t,i,n.dimCount),w=0;we&&a>i||ar?o:0}t.exports=n},"87b1":function(t,e,n){var i=n("cbe5"),r=n("4fac"),a=i.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){r.buildPath(t,e,!0)}});t.exports=a},"87c3":function(t,e,n){var i=n("6d8b"),r=i.map,a=n("cccd"),o=n("ee1a"),s=o.isDimensionStacked;function l(t){return{seriesType:t,plan:a(),reset:function(t){var e=t.getData(),n=t.coordinateSystem,i=t.pipelineContext,a=i.large;if(n){var o=r(n.dimensions,function(t){return e.mapDimension(t)}).slice(0,2),l=o.length,c=e.getCalculationInfo("stackResultDimension");return s(e,o[0])&&(o[0]=c),s(e,o[1])&&(o[1]=c),l&&{progress:h}}function h(t,e){for(var i=t.end-t.start,r=a&&new Float32Array(i*l),s=t.start,c=0,h=[],u=[];s=0?u():h=setTimeout(u,-r),l=i};return d.clear=function(){h&&(clearTimeout(h),h=null)},d.debounceNextCall=function(t){s=t},d}function o(t,e,o,s){var l=t[e];if(l){var c=l[n]||l,h=l[r],u=l[i];if(u!==o||h!==s){if(null==o||!s)return t[e]=c;l=t[e]=a(c,o,"debounce"===s),l[n]=c,l[r]=s,l[i]=o}return l}}function s(t,e){var i=t[e];i&&i[n]&&(t[e]=i[n])}e.throttle=a,e.createOrUpdate=o,e.clear=s},8918:function(t,e,n){var i=n("6d8b"),r=n("625e"),a=r.parseClassType,o=0;function s(t){return[t||"",o++,Math.random().toFixed(5)].join("_")}function l(t){var e={};return t.registerSubTypeDefaulter=function(t,n){t=a(t),e[t.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=a(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r},t}function c(t,e){function n(t){var n={},o=[];return i.each(t,function(s){var l=r(n,s),c=l.originalDeps=e(s),h=a(c,t);l.entryCount=h.length,0===l.entryCount&&o.push(s),i.each(h,function(t){i.indexOf(l.predecessor,t)<0&&l.predecessor.push(t);var e=r(n,t);i.indexOf(e.successor,t)<0&&e.successor.push(s)})}),{graph:n,noEntryList:o}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function a(t,e){var n=[];return i.each(t,function(t){i.indexOf(e,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,e,r,a){if(t.length){var o=n(e),s=o.graph,l=o.noEntryList,c={};i.each(t,function(t){c[t]=!0});while(l.length){var h=l.pop(),u=s[h],d=!!c[h];d&&(r.call(a,h,u.originalDeps.slice()),delete c[h]),i.each(u.successor,d?p:f)}i.each(c,function(){throw new Error("Circle dependency may exists")})}function f(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function p(t){c[t]=!0,f(t)}}}e.getUID=s,e.enableSubTypeDefaulter=l,e.enableTopologicalTravel=c},8971:function(t,e){var n="";"undefined"!==typeof navigator&&(n=navigator.platform||"");var i={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:n.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};t.exports=i},"897a":function(t,e,n){var i=n("22d1"),r=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function a(t){return i.browser.ie&&i.browser.version>=11?function(){var e,n=this.__clipPaths,i=this.style;if(n)for(var a=0;ae[1]&&(e[1]=t[1]),l.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=o.getIntervalPrecision(t)},getTicks:function(){return o.intervalScaleGetTicks(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getLabel:function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=i.getPrecisionSafe(t)||0:"auto"===n&&(n=this._intervalPrecision),t=s(t,n,!0),r.addCommas(t)},niceTicks:function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var a=o.intervalScaleNiceTicks(i,t,e,n);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax?e[0]-=n/2:(e[1]+=n/2,e[0]-=n/2)}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=s(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=s(Math.ceil(e[1]/r)*r))}});l.create=function(){return new l};var c=l;t.exports=c},"8b7f":function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),a=r.createHashMap,o=(r.retrieve,r.each);function s(t){var e=t.get("coordinateSystem"),n={coordSysName:e,coordSysDims:[],axisMap:a(),categoryAxisMap:a()},i=l[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}var l={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis")[0],a=t.getReferringComponents("yAxis")[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",a),c(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),c(a)&&(i.set("y",a),e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis")[0];e.coordSysDims=["single"],n.set("single",r),c(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar")[0],a=r.findAxisModel("radiusAxis"),o=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",o),c(a)&&(i.set("radius",a),e.firstCategoryDimIndex=0),c(o)&&(i.set("angle",o),e.firstCategoryDimIndex=1)},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,a=r.getComponent("parallel",t.get("parallelIndex")),s=e.coordSysDims=a.dimensions.slice();o(a.parallelAxisIndex,function(t,a){var o=r.getComponent("parallelAxis",t),l=s[a];n.set(l,o),c(o)&&null==e.firstCategoryDimIndex&&(i.set(l,o),e.firstCategoryDimIndex=a)})}};function c(t){return"category"===t.get("type")}e.getCoordSysDefineBySeries=s},"8c2a":function(t,e,n){var i=n("6d8b"),r=n("e0d8"),a=n("3842"),o=n("89e3"),s=r.prototype,l=o.prototype,c=a.getPrecisionSafe,h=a.round,u=Math.floor,d=Math.ceil,f=Math.pow,p=Math.log,g=r.extend({type:"log",base:10,$constructor:function(){r.apply(this,arguments),this._originalScale=new o},getTicks:function(){var t=this._originalScale,e=this._extent,n=t.getExtent();return i.map(l.getTicks.call(this),function(i){var r=a.round(f(this.base,i));return r=i===e[0]&&t.__fixMin?v(r,n[0]):r,r=i===e[1]&&t.__fixMax?v(r,n[1]):r,r},this)},getLabel:l.getLabel,scale:function(t){return t=s.scale.call(this,t),f(this.base,t)},setExtent:function(t,e){var n=this.base;t=p(t)/p(n),e=p(e)/p(n),l.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=s.getExtent.call(this);e[0]=f(t,e[0]),e[1]=f(t,e[1]);var n=this._originalScale,i=n.getExtent();return n.__fixMin&&(e[0]=v(e[0],i[0])),n.__fixMax&&(e[1]=v(e[1],i[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=p(t[0])/p(e),t[1]=p(t[1])/p(e),s.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},niceTicks:function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=a.quantity(n),r=t/n*i;r<=.5&&(i*=10);while(!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0)i*=10;var o=[a.round(d(e[0]/i)*i),a.round(u(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},niceExtent:function(t){l.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});function v(t,e){return h(t,c(e))}i.each(["contain","normalize"],function(t){g.prototype[t]=function(e){return e=p(e)/p(this.base),s[t].call(this,e)}}),g.create=function(){return new g};var m=g;t.exports=m},"8d32":function(t,e,n){var i=n("cbe5"),r=i.extend({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 n=e.cx,i=e.cy,r=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,l=Math.cos(a),c=Math.sin(a);t.moveTo(l*r+n,c*r+i),t.arc(n,i,r,a,o,!s)}});t.exports=r},"8e43":function(t,e,n){var i=n("6d8b"),r=i.createHashMap,a=i.isObject,o=i.map;function s(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this._map}s.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&o(n,h);return new s({categories:i,needCollect:!i,deduplication:!1!==e.dedplication})};var l=s.prototype;function c(t){return t._map||(t._map=r(t.categories))}function h(t){return a(t)&&null!=t.value?t.value:t+""}l.getOrdinal=function(t){return c(this).get(t)},l.parseAndCollect=function(t){var e,n=this._needCollect;if("string"!==typeof t&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=c(this);return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e};var u=s;t.exports=u},"8ed2":function(t,e,n){n("48c7");var i=n("6cb7"),r=i.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});t.exports=r},9273:function(t,e,n){var i=n("6d8b"),r=n("84ce");function a(t,e){r.call(this,"radius",t,e),this.type="category"}a.prototype={constructor:a,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToRadius:r.prototype.dataToCoord,radiusToData:r.prototype.coordToData},i.inherits(a,r);var o=a;t.exports=o},"93d0":function(t,e){var n="original",i="arrayRows",r="objectRows",a="keyedColumns",o="unknown",s="typedArray",l="column",c="row";e.SOURCE_FORMAT_ORIGINAL=n,e.SOURCE_FORMAT_ARRAY_ROWS=i,e.SOURCE_FORMAT_OBJECT_ROWS=r,e.SOURCE_FORMAT_KEYED_COLUMNS=a,e.SOURCE_FORMAT_UNKNOWN=o,e.SOURCE_FORMAT_TYPED_ARRAY=s,e.SERIES_LAYOUT_BY_COLUMN=l,e.SERIES_LAYOUT_BY_ROW=c},"944e":function(t,e,n){var i=n("3842"),r=i.round;function a(t,e,n,a){var s={},c=t[1]-t[0],h=s.interval=i.nice(c/e,!0);null!=n&&ha&&(h=s.interval=a);var u=s.intervalPrecision=o(h),d=s.niceTickExtent=[r(Math.ceil(t[0]/h)*h,u),r(Math.floor(t[1]/h)*h,u)];return l(d,t),s}function o(t){return i.getPrecisionSafe(t)+2}function s(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function l(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),s(t,0,e),s(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function c(t,e,n,i){var a=[];if(!t)return a;var o=1e4;e[0]o)return[]}return e[1]>(a.length?a[a.length-1]:n[1])&&a.push(e[1]),a}e.intervalScaleNiceTicks=a,e.getIntervalPrecision=o,e.fixExtent=l,e.intervalScaleGetTicks=c},9680:function(t,e){function n(t,e,n,i,r,a,o){if(0===r)return!1;var s=r,l=0,c=t;if(o>e+s&&o>i+s||ot+s&&a>n+s||a=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},clone:function(){return new l(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},l.create=function(t){return new l(t.x,t.y,t.width,t.height)};var c=l;t.exports=c},"98b7":function(t,e){var n="undefined"!==typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)};t.exports=n},9983:function(t,e,n){},"998c":function(t,e,n){var i=n("6d8b"),r=n("2306"),a=Math.PI;function o(t,e){e=e||{},i.defaults(e,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var n=new r.Rect({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),o=new r.Arc({shape:{startAngle:-a/2,endAngle:-a/2+.1,r:10},style:{stroke:e.color,lineCap:"round",lineWidth:5},zlevel:e.zlevel,z:10001}),s=new r.Rect({style:{fill:"none",text:e.text,textPosition:"right",textDistance:10,textFill:e.textColor},zlevel:e.zlevel,z:10001});o.animateShape(!0).when(1e3,{endAngle:3*a/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*a/2}).delay(300).start("circularInOut");var l=new r.Group;return l.add(o),l.add(s),l.add(n),l.resize=function(){var e=t.getWidth()/2,i=t.getHeight()/2;o.setShape({cx:e,cy:i});var r=o.shape.r;s.setShape({x:e-r,y:i-r,width:2*r,height:2*r}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},l.resize(),l}t.exports=o},"9bdb":function(t,e,n){var i=n("282b1"),r=i([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),a={getAreaStyle:function(t,e){return r(this,t,e)}};t.exports=a},"9c2c":function(t,e,n){var i=n("401b"),r=i.min,a=i.max,o=i.scale,s=i.distance,l=i.add,c=i.clone,h=i.sub;function u(t,e,n,i){var u,d,f,p,g=[],v=[],m=[],y=[];if(i){f=[1/0,1/0],p=[-1/0,-1/0];for(var x=0,_=t.length;x<_;x++)r(f,f,t[x]),a(p,p,t[x]);r(f,f,i[0]),a(p,p,i[1])}for(x=0,_=t.length;x<_;x++){var b=t[x];if(n)u=t[x?x-1:_-1],d=t[(x+1)%_];else{if(0===x||x===_-1){g.push(c(t[x]));continue}u=t[x-1],d=t[x+1]}h(v,d,u),o(v,v,e);var w=s(b,u),S=s(b,d),M=w+S;0!==M&&(w/=M,S/=M),o(m,v,-w),o(y,v,S);var T=l([],b,m),A=l([],b,y);i&&(a(T,T,f),r(T,T,p),a(A,A,f),r(A,A,p)),g.push(T),g.push(A)}return n&&g.push(g.shift()),g}t.exports=u},"9cf9":function(t,e){var n=Math.round;function i(t,e,i){var r=i&&i.lineWidth;if(e&&r){var o=e.x1,s=e.x2,l=e.y1,c=e.y2;n(2*o)===n(2*s)?t.x1=t.x2=a(o,r,!0):(t.x1=o,t.x2=s),n(2*l)===n(2*c)?t.y1=t.y2=a(l,r,!0):(t.y1=l,t.y2=c)}}function r(t,e,n){var i=n&&n.lineWidth;if(e&&i){var r=e.x,o=e.y,s=e.width,l=e.height;t.x=a(r,i,!0),t.y=a(o,i,!0),t.width=Math.max(a(r+s,i,!1)-t.x,0===s?0:1),t.height=Math.max(a(o+l,i,!1)-t.y,0===l?0:1)}}function a(t,e,i){var r=n(2*t);return(r+n(e))%2===0?r/2:(r+(i?1:-1))/2}e.subPixelOptimizeLine=i,e.subPixelOptimizeRect=r,e.subPixelOptimize=a},"9d57":function(t,e,n){var i=n("6d8b"),r=n("3842"),a=r.parsePercent,o=n("ee1a"),s=o.isDimensionStacked,l=n("cccd"),c="__ec_stack_",h=.5,u="undefined"!==typeof Float32Array?Float32Array:Array;function d(t){return t.get("stack")||c+t.seriesIndex}function f(t){return t.dim+t.index}function p(t){var e=[],n=t.axis,r="axis0";if("category"===n.type){for(var a=n.getBandWidth(),o=0;o=0?"p":"n",O=_;if(y&&(a[l][T]||(a[l][T]={p:_,n:_}),O=a[l][T][k]),x){var P=n.dataToPoint([M,T]);A=O,I=P[1]+h,C=P[0]-_,D=u,Math.abs(C)h||(c=h),{progress:d}}function d(t,e){var h,d=new u(2*t.count),f=[],p=[],g=0;while(null!=(h=t.next()))p[l]=e.get(a,h),p[1-l]=e.get(o,h),f=n.dataToPoint(p,null,f),d[g++]=f[0],d[g++]=f[1];e.setLayout({largePoints:d,barWidth:c,valueAxisStart:S(i,r,!1),valueAxisHorizontal:s})}}};function b(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function w(t){return t.pipelineContext&&t.pipelineContext.large}function S(t,e,n){var i,r,a=e.getGlobalExtent();a[0]>a[1]?(i=a[1],r=a[0]):(i=a[0],r=a[1]);var o=e.toGlobalCoord(e.dataToCoord(0));return or&&(o=r),o}e.getLayoutOnAxis=p,e.prepareLayoutBarSeries=g,e.makeColumnLayout=v,e.retrieveColumnLayout=y,e.layout=x,e.largeLayout=_},"9e2e":function(t,e,n){var i=n("a73c"),r=n("9850"),a=n("82eb"),o=a.WILL_BE_RESTORED,s=new r,l=function(){};l.prototype={constructor:l,drawRectText:function(t,e){var n=this.style;e=n.textRect||e,this.__dirty&&i.normalizeTextStyle(n,!0);var r=n.text;if(null!=r&&(r+=""),i.needDrawText(r,n)){t.save();var a=this.transform;n.transformText?this.setTransform(t):a&&(s.copy(e),s.applyTransform(a),e=s),i.renderText(this,t,r,n,e,o),t.restore()}}};var c=l;t.exports=c},"9e47":function(t,e,n){var i=n("6d8b"),r=n("71ad"),a=n("6cb7"),o=n("f934"),s=o.getLayoutParams,l=o.mergeLayoutParam,c=n("8e43"),h=["value","category","time","log"];function u(t,e,n,o){i.each(h,function(a){e.extend({type:t+"Axis."+a,mergeDefaultAndTheme:function(e,r){var o=this.layoutMode,c=o?s(e):{},h=r.getTheme();i.merge(e,h.get(a+"Axis")),i.merge(e,this.getDefaultOption()),e.type=n(t,e),o&&l(e,c,o)},optionUpdated:function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=c.createByAxisModel(this))},getCategories:function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:i.mergeAll([{},r[a+"Axis"],o],!0)})}),a.registerSubTypeDefaulter(t+"Axis",i.curry(n,t))}t.exports=u},"9e69":function(t,e,n){var i=n("2b3e"),r=i.Symbol;t.exports=r},"9f51":function(t,e,n){var i=n("857d"),r=i.normalizeRadian,a=2*Math.PI;function o(t,e,n,i,o,s,l,c,h){if(0===l)return!1;var u=l;c-=t,h-=e;var d=Math.sqrt(c*c+h*h);if(d-u>n||d+uo&&(o+=a);var p=Math.atan2(h,c);return p<0&&(p+=a),p>=i&&p<=o||p+a>=i&&p+a<=o}e.containStroke=o},"9f82":function(t,e,n){var i=n("ee1a"),r=i.isDimensionStacked,a=n("6d8b"),o=a.map;function s(t,e,n){var i,a=t.getBaseAxis(),s=t.getOtherAxis(a),c=l(s,n),h=a.dim,u=s.dim,d=e.mapDimension(u),f=e.mapDimension(h),p="x"===u||"radius"===u?1:0,g=o(t.dimensions,function(t){return e.mapDimension(t)}),v=e.getCalculationInfo("stackResultDimension");return(i|=r(e,g[0]))&&(g[0]=v),(i|=r(e,g[1]))&&(g[1]=v),{dataDimsForPoint:g,valueStart:c,valueAxisDim:u,baseAxisDim:h,stacked:!!i,valueDim:d,baseDim:f,baseDataOffset:p,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function l(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function c(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=n.get(t.baseDim,i),o[1-a]=r,e.dataToPoint(o)}e.prepareDataCoordInfo=s,e.getStackedOnPoint=c},a15a:function(t,e,n){var i=n("6d8b"),r=n("2306"),a=n("9850"),o=r.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,a=e.height/2;t.moveTo(n,i-a),t.lineTo(n+r,i+a),t.lineTo(n-r,i+a),t.closePath()}}),s=r.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,a=e.height/2;t.moveTo(n,i-a),t.lineTo(n+r,i),t.lineTo(n,i+a),t.lineTo(n-r,i),t.closePath()}}),l=r.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,a=Math.max(r,e.height),o=r/2,s=o*o/(a-o),l=i-a+o+s,c=Math.asin(s/o),h=Math.cos(c)*o,u=Math.sin(c),d=Math.cos(c),f=.6*o,p=.7*o;t.moveTo(n-h,l+s),t.arc(n,l,o,Math.PI-c,2*Math.PI+c),t.bezierCurveTo(n+h-u*f,l+s+d*f,n,i-p,n,i),t.bezierCurveTo(n,i-p,n-h+u*f,l+s+d*f,n-h,l+s),t.closePath()}}),c=r.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,a=e.y,o=i/3*2;t.moveTo(r,a),t.lineTo(r+o,a+n),t.lineTo(r,a+n/4*3),t.lineTo(r-o,a+n),t.lineTo(r,a),t.closePath()}}),h={line:r.Line,rect:r.Rect,roundRect:r.Rect,square:r.Rect,circle:r.Circle,diamond:s,pin:l,arrow:c,triangle:o},u={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var a=Math.min(n,i);r.x=t,r.y=e,r.width=a,r.height=a},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},d={};i.each(h,function(t,e){d[e]=new t});var f=r.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style,e=this.shape;"pin"===e.symbolType&&"inside"===t.textPosition&&(t.textPosition=["50%","40%"],t.textAlign="center",t.textVerticalAlign="middle")},buildPath:function(t,e,n){var i=e.symbolType,r=d[i];"none"!==e.symbolType&&(r||(i="rect",r=d[i]),u[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n))}});function p(t,e){if("image"!==this.type){var n=this.style,i=this.shape;i&&"line"===i.symbolType?n.stroke=t:this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff"):(n.fill&&(n.fill=t),n.stroke&&(n.stroke=t)),this.dirty(!1)}}function g(t,e,n,i,o,s,l){var c,h=0===t.indexOf("empty");return h&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),c=0===t.indexOf("image://")?r.makeImage(t.slice(8),new a(e,n,i,o),l?"center":"cover"):0===t.indexOf("path://")?r.makePath(t.slice(7),{},new a(e,n,i,o),l?"center":"cover"):new f({shape:{symbolType:t,x:e,y:n,width:i,height:o}}),c.__isEmptyBrush=h,c.setColor=p,c.setColor(s),c}e.createSymbol=g},a219:function(t,e,n){},a73c:function(t,e,n){var i=n("6d8b"),r=i.retrieve2,a=i.retrieve3,o=i.each,s=i.normalizeCssArray,l=i.isString,c=i.isObject,h=n("e86a"),u=n("5693"),d=n("5e76"),f=n("7d6d"),p=n("82eb"),g=p.ContextCachedBy,v=p.WILL_BE_RESTORED,m=h.DEFAULT_FONT,y={left:1,right:1,center:1},x={top:1,bottom:1,middle:1},_=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]];function b(t){return w(t),o(t.rich,w),t}function w(t){if(t){t.font=h.makeFont(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||y[e]?e:"left";var n=t.textVerticalAlign||t.textBaseline;"center"===n&&(n="middle"),t.textVerticalAlign=null==n||x[n]?n:"top";var i=t.textPadding;i&&(t.textPadding=s(t.textPadding))}}function S(t,e,n,i,r,a){i.rich?T(t,e,n,i,r,a):M(t,e,n,i,r,a)}function M(t,e,n,i,r,a){"use strict";var o,s=D(i),l=!1,c=e.__attrCachedBy===g.PLAIN_TEXT;a!==v?(a&&(o=a.style,l=!s&&c&&o),e.__attrCachedBy=s?g.NONE:g.PLAIN_TEXT):c&&(e.__attrCachedBy=g.NONE);var u=i.font||m;l&&u===(o.font||m)||(e.font=u);var d=t.__computedFont;t.__styleFont!==u&&(t.__styleFont=u,d=t.__computedFont=e.font);var p=i.textPadding,y=i.textLineHeight,x=t.__textCotentBlock;x&&!t.__dirtyText||(x=t.__textCotentBlock=h.parsePlainText(n,d,p,y,i.truncate));var b=x.outerHeight,w=x.lines,S=x.lineHeight,M=P(b,i,r),T=M.baseX,A=M.baseY,C=M.textAlign||"left",O=M.textVerticalAlign;I(e,i,r,T,A);var L=h.adjustTextY(A,b,O),N=T,B=L;if(s||p){var F=h.getWidth(n,d),W=F;p&&(W+=p[1]+p[3]);var H=h.adjustTextX(T,W,C);s&&k(t,e,i,H,L,W,b),p&&(N=z(T,C,p),B+=p[0])}e.textAlign=C,e.textBaseline="middle",e.globalAlpha=i.opacity||1;for(var V=0;V<_.length;V++){var G=_[V],j=G[0],U=G[1],Y=i[j];l&&Y===o[j]||(e[U]=f(e,U,Y||G[2]))}B+=S/2;var q=i.textStrokeWidth,X=l?o.textStrokeWidth:null,$=!l||q!==X,Z=!l||$||i.textStroke!==o.textStroke,K=E(i.textStroke,q),J=R(i.textFill);if(K&&($&&(e.lineWidth=q),Z&&(e.strokeStyle=K)),J&&(l&&i.textFill===o.textFill||(e.fillStyle=J)),1===w.length)K&&e.strokeText(w[0],N,B),J&&e.fillText(w[0],N,B);else for(V=0;V=0&&(b=S[R],"right"===b.textAlign))C(t,e,b,i,T,y,E,"right"),A-=b.width,E-=b.width,R--;L+=(a-(L-m)-(x-E)-A)/2;while(O<=R)b=S[O],C(t,e,b,i,T,y,L+b.width/2,"center"),L+=b.width,O++;y+=T}}function I(t,e,n,i,r){if(n&&e.textRotation){var a=e.textOrigin;"center"===a?(i=n.width/2+n.x,r=n.height/2+n.y):a&&(i=a[0]+n.x,r=a[1]+n.y),t.translate(i,r),t.rotate(-e.textRotation),t.translate(-i,-r)}}function C(t,e,n,i,o,s,l,c){var h=i.rich[n.styleName]||{};h.text=n.text;var u=n.textVerticalAlign,d=s+o/2;"top"===u?d=s+n.height/2:"bottom"===u&&(d=s+o-n.height/2),!n.isLineHolder&&D(h)&&k(t,e,h,"right"===c?l-n.width:"center"===c?l-n.width/2:l,d-n.height/2,n.width,n.height);var f=n.textPadding;f&&(l=z(l,c,f),d-=n.height/2-f[2]-n.textHeight/2),L(e,"shadowBlur",a(h.textShadowBlur,i.textShadowBlur,0)),L(e,"shadowColor",h.textShadowColor||i.textShadowColor||"transparent"),L(e,"shadowOffsetX",a(h.textShadowOffsetX,i.textShadowOffsetX,0)),L(e,"shadowOffsetY",a(h.textShadowOffsetY,i.textShadowOffsetY,0)),L(e,"textAlign",c),L(e,"textBaseline","middle"),L(e,"font",n.font||m);var p=E(h.textStroke||i.textStroke,v),g=R(h.textFill||i.textFill),v=r(h.textStrokeWidth,i.textStrokeWidth);p&&(L(e,"lineWidth",v),L(e,"strokeStyle",p),e.strokeText(n.text,l,d)),g&&(L(e,"fillStyle",g),e.fillText(n.text,l,d))}function D(t){return!!(t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor)}function k(t,e,n,i,r,a,o){var s=n.textBackgroundColor,h=n.textBorderWidth,f=n.textBorderColor,p=l(s);if(L(e,"shadowBlur",n.textBoxShadowBlur||0),L(e,"shadowColor",n.textBoxShadowColor||"transparent"),L(e,"shadowOffsetX",n.textBoxShadowOffsetX||0),L(e,"shadowOffsetY",n.textBoxShadowOffsetY||0),p||h&&f){e.beginPath();var g=n.textBorderRadius;g?u.buildPath(e,{x:i,y:r,width:a,height:o,r:g}):e.rect(i,r,a,o),e.closePath()}if(p)if(L(e,"fillStyle",s),null!=n.fillOpacity){var v=e.globalAlpha;e.globalAlpha=n.fillOpacity*n.opacity,e.fill(),e.globalAlpha=v}else e.fill();else if(c(s)){var m=s.image;m=d.createOrUpdateImage(m,null,t,O,s),m&&d.isImageReady(m)&&e.drawImage(m,i,r,a,o)}if(h&&f)if(L(e,"lineWidth",h),L(e,"strokeStyle",f),null!=n.strokeOpacity){v=e.globalAlpha;e.globalAlpha=n.strokeOpacity*n.opacity,e.stroke(),e.globalAlpha=v}else e.stroke()}function O(t,e){e.image=t}function P(t,e,n){var i=e.x||0,r=e.y||0,a=e.textAlign,o=e.textVerticalAlign;if(n){var s=e.textPosition;if(s instanceof Array)i=n.x+N(s[0],n.width),r=n.y+N(s[1],n.height);else{var l=h.adjustTextPositionOnRect(s,n,e.textDistance);i=l.x,r=l.y,a=a||l.textAlign,o=o||l.textVerticalAlign}var c=e.textOffset;c&&(i+=c[0],r+=c[1])}return{baseX:i,baseY:r,textAlign:a,textVerticalAlign:o}}function L(t,e,n){return t[e]=f(t,e,n),t[e]}function E(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function R(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function N(t,e){return"string"===typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function z(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function B(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}e.normalizeTextStyle=b,e.renderText=S,e.getStroke=E,e.getFill=R,e.needDrawText=B},a991:function(t,e,n){var i=n("6d8b"),r=n("e86a"),a=n("84ce"),o=n("e0d3"),s=o.makeInner,l=s();function c(t,e){e=e||[0,360],a.call(this,"angle",t,e),this.type="category"}c.prototype={constructor:c,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToAngle:a.prototype.dataToCoord,angleToData:a.prototype.coordToData,calculateCategoryInterval:function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),a=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],s=t.dataToCoord(o+1)-t.dataToCoord(o),c=Math.abs(s),h=r.getBoundingRect(o,e.getFont(),"center","top"),u=Math.max(h.height,7),d=u/c;isNaN(d)&&(d=1/0);var f=Math.max(0,Math.floor(d)),p=l(t.model),g=p.lastAutoInterval,v=p.lastTickCount;return null!=g&&null!=v&&Math.abs(g-f)<=1&&Math.abs(v-a)<=1&&g>f?f=g:(p.lastTickCount=a,p.lastAutoInterval=f),f}},i.inherits(c,a);var h=c;t.exports=h},ac0f:function(t,e,n){var i=n("cbe5"),r=n("401b"),a=n("4a3f"),o=a.quadraticSubdivide,s=a.cubicSubdivide,l=a.quadraticAt,c=a.cubicAt,h=a.quadraticDerivativeAt,u=a.cubicDerivativeAt,d=[];function f(t,e,n){var i=t.cpx2,r=t.cpy2;return null===i||null===r?[(n?u:c)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?u:c)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?h:l)(t.x1,t.cpx1,t.x2,e),(n?h:l)(t.y1,t.cpy1,t.y2,e)]}var p=i.extend({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 n=e.x1,i=e.y1,r=e.x2,a=e.y2,l=e.cpx1,c=e.cpy1,h=e.cpx2,u=e.cpy2,f=e.percent;0!==f&&(t.moveTo(n,i),null==h||null==u?(f<1&&(o(n,l,r,f,d),l=d[1],r=d[2],o(i,c,a,f,d),c=d[1],a=d[2]),t.quadraticCurveTo(l,c,r,a)):(f<1&&(s(n,l,h,r,f,d),l=d[1],h=d[2],r=d[3],s(i,c,u,a,f,d),c=d[1],u=d[2],a=d[3]),t.bezierCurveTo(l,c,h,u,r,a)))},pointAt:function(t){return f(this.shape,t,!1)},tangentAt:function(t){var e=f(this.shape,t,!0);return r.normalize(e,e)}});t.exports=p},ae69:function(t,e,n){var i=n("cbe5"),r=i.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(t,e){var n=.5522848,i=e.cx,r=e.cy,a=e.rx,o=e.ry,s=a*n,l=o*n;t.moveTo(i-a,r),t.bezierCurveTo(i-a,r-l,i-s,r-o,i,r-o),t.bezierCurveTo(i+s,r-o,i+a,r-l,i+a,r),t.bezierCurveTo(i+a,r+l,i+s,r+o,i,r+o),t.bezierCurveTo(i-s,r+o,i-a,r+l,i-a,r),t.closePath()}});t.exports=r},af24:function(t,e,n){n("48c7"),n("f273")},afa0:function(t,e,n){var i=n("6d8b"),r=n("22d1"),a=n("e1fc"),o=n("04f6");function s(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var l=function(){this._roots=[],this._displayList=[],this._displayListLen=0};l.prototype={constructor:l,traverse:function(t,e){for(var n=0;n=0&&(this.delFromStorage(t),this._roots.splice(o,1),t instanceof a&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:s};var c=l;t.exports=c},b047:function(t,e,n){var i=n("1a8c"),r=n("408c"),a=n("b4b0"),o="Expected a function",s=Math.max,l=Math.min;function c(t,e,n){var c,h,u,d,f,p,g=0,v=!1,m=!1,y=!0;if("function"!=typeof t)throw new TypeError(o);function x(e){var n=c,i=h;return c=h=void 0,g=e,d=t.apply(i,n),d}function _(t){return g=t,f=setTimeout(S,e),v?x(t):d}function b(t){var n=t-p,i=t-g,r=e-n;return m?l(r,u-i):r}function w(t){var n=t-p,i=t-g;return void 0===p||n>=e||n<0||m&&i>=u}function S(){var t=r();if(w(t))return M(t);f=setTimeout(S,b(t))}function M(t){return f=void 0,y&&c?x(t):(c=h=void 0,d)}function T(){void 0!==f&&clearTimeout(f),g=0,c=p=h=f=void 0}function A(){return void 0===f?d:M(r())}function I(){var t=r(),n=w(t);if(c=arguments,h=this,p=t,n){if(void 0===f)return _(p);if(m)return f=setTimeout(S,e),x(p)}return void 0===f&&(f=setTimeout(S,e)),d}return e=a(e)||0,i(n)&&(v=!!n.leading,m="maxWait"in n,u=m?s(a(n.maxWait)||0,e):u,y="trailing"in n?!!n.trailing:y),I.cancel=T,I.flush=A,I}t.exports=c},b12f:function(t,e,n){var i=n("e1fc"),r=n("8918"),a=n("625e"),o=function(){this.group=new i,this.uid=r.getUID("viewComponent")};o.prototype={constructor:o,init:function(t,e){},render:function(t,e,n,i){},dispose:function(){},filterForExposedEvent:null};var s=o.prototype;s.updateView=s.updateLayout=s.updateVisual=function(t,e,n,i){},a.enableClassExtend(o),a.enableClassManagement(o,{registerWhenExtend:!0});var l=o;t.exports=l},b17e:function(t,e,n){"use strict";var i=n("55d4"),r=n.n(i);r.a},b1d4:function(t,e,n){var i=n("862d");function r(t,e){return e=e||{},i(e.coordDimensions||[],t,{dimsDef:e.dimensionsDefine||t.dimensionsDefine,encodeDef:e.encodeDefine||t.encodeDefine,dimCount:e.dimensionsCount,generateCoord:e.generateCoord,generateCoordCount:e.generateCoordCount})}t.exports=r},b419:function(t,e,n){var i=n("6d8b"),r=n("2306"),a=n("4319"),o=n("6679"),s=["axisLine","axisLabel","axisTick","splitLine","splitArea"];function l(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function c(t){var e=t.getRadiusAxis();return e.inverse?0:1}function h(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var u=o.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,r=n.polar,a=r.getRadiusAxis().getExtent(),o=n.getTicksCoords(),l=i.map(n.getViewLabels(),function(t){t=i.clone(t);return t.coord=n.dataToCoord(t.tickValue),t});h(l),h(o),i.each(s,function(e){!t.get(e+".show")||n.scale.isBlank()&&"axisLine"!==e||this["_"+e](t,r,o,a,l)},this)}},_axisLine:function(t,e,n,i){var a=t.getModel("axisLine.lineStyle"),o=new r.Circle({shape:{cx:e.cx,cy:e.cy,r:i[c(e)]},style:a.getLineStyle(),z2:1,silent:!0});o.style.fill=null,this.group.add(o)},_axisTick:function(t,e,n,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),h=a[c(e)],u=i.map(n,function(t){return new r.Line({shape:l(e,[h,h+s],t.coord)})});this.group.add(r.mergePath(u,{style:i.defaults(o.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_axisLabel:function(t,e,n,o,s){var l=t.getCategories(!0),h=t.getModel("axisLabel"),u=h.get("margin");i.each(s,function(n,i){var s=h,d=n.tickValue,f=o[c(e)],p=e.coordToPoint([f+u,n.coord]),g=e.cx,v=e.cy,m=Math.abs(p[0]-g)/f<.3?"center":p[0]>g?"left":"right",y=Math.abs(p[1]-v)/f<.3?"middle":p[1]>v?"top":"bottom";l&&l[d]&&l[d].textStyle&&(s=new a(l[d].textStyle,h,h.ecModel));var x=new r.Text({silent:!0});this.group.add(x),r.setTextStyle(x.style,s,{x:p[0],y:p[1],textFill:s.getTextColor()||t.get("axisLine.lineStyle.color"),text:n.formattedLabel,textAlign:m,textVerticalAlign:y})},this)},_splitLine:function(t,e,n,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),c=s.get("color"),h=0;c=c instanceof Array?c:[c];for(var u=[],d=0;d1?"series.multiple.prefix":"series.single.prefix";s+=p(g(f),{seriesCount:a}),e.eachSeries(function(t,e){if(e1?"multiple":"single")+".";n=g(i?r+"withName":r+"withoutName"),n=p(n,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:m(t.subType)});var s=t.getData();window.data=s,s.count()>l?n+=p(g("data.partialData"),{displayCnt:l}):n+=g("data.allData");for(var c=[],u=0;u0&&t.animate(e,!1).when(null==r?500:r,s).delay(a||0)}function p(t,e,n,i){if(e){var r={};r[e]={},r[e][n]=i,t.attr(r)}else t.attr(n,i)}u.prototype={constructor:u,animate:function(t,e){var n,a=!1,o=this,s=this.__zr;if(t){var l=t.split("."),c=o;a="shape"===l[0];for(var u=0,d=l.length;u>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=a,r=s,a=l,i.push([s/n,l/n])}return i}function s(t){return a(t),i.map(i.filter(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var e=t.properties,n=t.geometry,a=n.coordinates,o=[];"Polygon"===n.type&&o.push({type:"polygon",exterior:a[0],interiors:a.slice(1)}),"MultiPolygon"===n.type&&i.each(a,function(t){t[0]&&o.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})});var s=new r(e.name,o,e.cp);return s.properties=e,s})}t.exports=s},c533:function(t,e){var n=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],i={color:n,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],n]};t.exports=i},c775:function(t,e,n){var i=n("2b17"),r=i.retrieveRawValue;function a(t,e){var n=t.mapDimension("defaultedLabel",!0),i=n.length;if(1===i)return r(t,e,n[0]);if(i){for(var a=[],o=0;o=e:"max"===n?t<=e:t===e}function g(t,e){return t.join(",")===e.join(",")}function v(t,e){e=e||{},o(e,function(e,n){if(null!=e){var i=t[n];if(a.hasClass(n)){e=r.normalizeToArray(e),i=r.normalizeToArray(i);var o=r.mappingToExists(i,e);t[n]=l(o,function(t){return t.option&&t.exist?c(t.exist,t.option,!0):t.exist||t.option})}else t[n]=c(i,e,!0)}})}u.prototype={constructor:u,setOption:function(t,e){t&&i.each(r.normalizeToArray(t.series),function(t){t&&t.data&&i.isTypedArray(t.data)&&i.setAsPrimitive(t.data)}),t=s(t,!0);var n=this._optionBackup,a=d.call(this,t,e,!n);this._newBaseOption=a.baseOption,n?(v(n.baseOption,a.baseOption),a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=l(e.timelineOptions,s),this._mediaList=l(e.mediaList,s),this._mediaDefault=s(e.mediaDefault),this._currentMediaIndices=[],s(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=s(n[i.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,a=[],o=[];if(!i.length&&!r)return o;for(var c=0,h=i.length;c1e-10&&(r.width+=o/s,r.height+=o/s,r.x-=o/s/2,r.y-=o/s/2)}return r}return t},contain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var a=this.path.data;if(r.hasStroke()){var s=r.lineWidth,l=r.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(r.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),o.containStroke(a,s/l,t,e)))return!0}if(r.hasFill())return o.contain(a,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):i.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var n=this.shape;if(n){if(r.isObject(t))for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);else n[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&c(t[0]-1)>1e-10&&c(t[3]-1)>1e-10?Math.sqrt(c(t[0]*t[3]-t[2]*t[1])):1}},u.extend=function(t){var e=function(e){u.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var i=this.shape;for(var r in n)!i.hasOwnProperty(r)&&n.hasOwnProperty(r)&&(i[r]=n[r])}t.init&&t.init.call(this,e)};for(var n in r.inherits(e,u),t)"style"!==n&&"shape"!==n&&(e.prototype[n]=t[n]);return e},r.inherits(u,i);var d=u;t.exports=d},cbe9:function(t,e,n){var i=n("6d8b"),r=n("cf7e");function a(t){r.call(this,t)}a.prototype={constructor:a,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoint:function(t,e,n){var i=this.getAxis("x"),r=this.getAxis("y");return n=n||[],n[0]=i.toGlobalCoord(i.dataToCoord(t[0])),n[1]=r.toGlobalCoord(r.dataToCoord(t[1])),n},clampData:function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),a=i.getExtent(),o=n.parse(t[0]),s=i.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),o),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),e},pointToData:function(t,e){var n=this.getAxis("x"),i=this.getAxis("y");return e=e||[],e[0]=n.coordToData(n.toLocalCoord(t[0])),e[1]=i.coordToData(i.toLocalCoord(t[1])),e},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")}},i.inherits(a,r);var o=a;t.exports=o},cccd:function(t,e,n){var i=n("e0d3"),r=i.makeInner;function a(){var t=r();return function(e){var n=t(e),i=e.pipelineContext,r=n.large,a=n.progressiveRender,o=n.large=i.large,s=n.progressiveRender=i.progressiveRender;return!!(r^o||a^s)&&"reset"}}t.exports=a},cd1c:function(t,e,n){var i=n("e853");t.exports=function(t,e){return new(i(t))(e)}},cd33:function(t,e,n){var i=n("6d8b"),r=n("4319"),a=i.each,o=i.curry;function s(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return l(n,t,e),n.seriesInvolved&&h(n,t),n}function l(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),s=r.get("link",!0)||[],l=[];a(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var h=m(n.model),d=t.coordSysAxesInfo[h]={};t.coordSysMap[h]=n;var f=n.model,p=f.getModel("tooltip",i);if(a(n.getAxes(),o(_,!1,null)),n.getTooltipAxes&&i&&p.get("show")){var g="axis"===p.get("trigger"),y="cross"===p.get("axisPointer.type"),x=n.getTooltipAxes(p.get("axisPointer.axis"));(g||y)&&a(x.baseAxes,o(_,!y||"cross",g)),y&&a(x.otherAxes,o(_,"cross",!1))}}function _(i,a,o){var h=o.model.getModel("axisPointer",r),f=h.get("show");if(f&&("auto"!==f||i||v(h))){null==a&&(a=h.get("triggerTooltip")),h=i?c(o,p,r,e,i,a):h;var g=h.get("snap"),y=m(o.model),x=a||g||"category"===o.type,_=t.axesInfo[y]={key:y,axis:o,coordSys:n,axisPointerModel:h,triggerTooltip:a,involveSeries:x,snap:g,useHandle:v(h),seriesModels:[]};d[y]=_,t.seriesInvolved|=x;var b=u(s,o);if(null!=b){var w=l[b]||(l[b]={axesInfo:{}});w.axesInfo[y]=_,w.mapper=s[b].mapper,_.linkGroup=w}}}})}function c(t,e,n,o,s,l){var c=e.getModel("axisPointer"),h={};a(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){h[t]=i.clone(c.get(t))}),h.snap="category"!==t.type&&!!l,"cross"===c.get("type")&&(h.type="line");var u=h.label||(h.label={});if(null==u.show&&(u.show=!1),"cross"===s){var d=c.get("label.show");if(u.show=null==d||d,!l){var f=h.lineStyle=c.get("crossStyle");f&&i.defaults(u,f.textStyle)}}return t.model.getModel("axisPointer",new r(h,n,o))}function h(t,e){e.eachSeries(function(e){var n=e.coordinateSystem,i=e.get("tooltip.trigger",!0),r=e.get("tooltip.show",!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get("axisPointer.show",!0)&&a(t.coordSysAxesInfo[m(n.model)],function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})},this)}function u(t,e){for(var n=e.model,i=e.dim,r=0;r=0||t===e}function f(t){var e=p(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,a=n.get("status"),o=n.get("value");null!=o&&(o=i.parse(o));var s=v(n);null==a&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o=0;p--){var g=t[p];if(s||(u=g.data.rawIndexOf(g.stackedByDimension,h)),u>=0){var v=g.data.getByRawIndex(g.stackResultDimension,u);if(d>=0&&v>0||d<=0&&v<0){d+=v,f=v;break}}}return i[0]=d,i[1]=f,i});o.hostModel.setData(l),e.data=l})}t.exports=o},d2cf:function(t,e,n){var i=n("6d8b"),r=n("401b"),a=n("cb6d"),o=n("1fab"),s=n("607d"),l=n("0b44"),c="silent";function h(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:u}}function u(t){s.stop(this.event)}function d(){}d.prototype.dispose=function(){};var f=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],p=function(t,e,n,i){o.call(this),this.storage=t,this.painter=e,this.painterRoot=i,n=n||new d,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,a.call(this),this.setHandlerProxy(n)};function g(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){var i,r=t;while(r){if(r.clipPath&&!r.clipPath.contain(e,n))return!1;r.silent&&(i=!0),r=r.parent}return!i||c}return!1}p.prototype={constructor:p,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(i.each(f,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,n=t.zrY,i=this._hovered,r=i.target;r&&!r.__zr&&(i=this.findHover(i.x,i.y),r=i.target);var a=this._hovered=this.findHover(e,n),o=a.target,s=this.proxy;s.setCursor&&s.setCursor(o?o.cursor:"default"),r&&o!==r&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),o&&o!==r&&this.dispatchToElement(a,"mouseover",t)},mouseout:function(t){this.dispatchToElement(this._hovered,"mouseout",t);var e,n=t.toElement||t.relatedTarget;do{n=n&&n.parentNode}while(n&&9!==n.nodeType&&!(e=n===this.painterRoot));!e&&this.trigger("globalout",{event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){var n=this[t];n&&n.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,n){t=t||{};var i=t.target;if(!i||!i.silent){var r="on"+e,a=h(e,t,n);while(i)if(i[r]&&(a.cancelBubble=i[r].call(i,a)),i.trigger(e,a),i=i.parent,a.cancelBubble)break;a.cancelBubble||(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer(function(t){"function"===typeof t[r]&&t[r].call(t,a),t.trigger&&t.trigger(e,a)}))}},findHover:function(t,e,n){for(var i=this.storage.getDisplayList(),r={x:t,y:e},a=i.length-1;a>=0;a--){var o;if(i[a]!==n&&!i[a].ignore&&(o=g(i[a],t,e))&&(!r.topTarget&&(r.topTarget=i[a]),o!==c)){r.target=i[a];break}}return r},processGesture:function(t,e){this._gestureMgr||(this._gestureMgr=new l);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r,this.dispatchToElement({target:i.target},r,i.event)}}},i.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){p.prototype[t]=function(e){var n=this.findHover(e.zrX,e.zrY),i=n.target;if("mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||r.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}),i.mixin(p,o),i.mixin(p,a);var v=p;t.exports=v},d498:function(t,e,n){var i=n("cbe5"),r=n("4fac"),a=i.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){r.buildPath(t,e,!1)}});t.exports=a},d4b1:function(t,e,n){var i=n("3eba"),r=n("17d6"),a=i.extendComponentView({type:"axisPointer",render:function(t,e,n){var i=e.getComponent("tooltip"),a=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";r.register("axisPointer",n,function(t,e,n){"none"!==a&&("leave"===t||a.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},remove:function(t,e){r.unregister(e.getZr(),"axisPointer"),a.superApply(this._model,"remove",arguments)},dispose:function(t,e){r.unregister("axisPointer",e),a.superApply(this._model,"dispose",arguments)}}),o=a;t.exports=o},d4c6:function(t,e,n){var i=n("cbe5"),r=i.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,n=0;n=r||v<0)break;if(f(y)){if(p){v+=a;continue}break}if(v===n)t[a>0?"moveTo":"lineTo"](y[0],y[1]);else if(l>0){var x=e[g],_="y"===h?1:0,b=(y[_]-x[_])*l;c(u,x),u[_]=x[_]+b,c(d,y),d[_]=y[_]-b,t.bezierCurveTo(u[0],u[1],d[0],d[1],y[0],y[1])}else t.lineTo(y[0],y[1]);g=v,v+=a}return m}function v(t,e,n,i,a,p,g,v,m,y,x){for(var _=0,b=n,w=0;w=a||b<0)break;if(f(S)){if(x){b+=p;continue}break}if(b===n)t[p>0?"moveTo":"lineTo"](S[0],S[1]),c(u,S);else if(m>0){var M=b+p,T=e[M];if(x)while(T&&f(e[M]))M+=p,T=e[M];var A=.5,I=e[_];T=e[M];if(!T||f(T))c(d,S);else{var C,D;if(f(T)&&!x&&(T=S),r.sub(h,T,I),"x"===y||"y"===y){var k="x"===y?0:1;C=Math.abs(S[k]-I[k]),D=Math.abs(S[k]-T[k])}else C=r.dist(S,I),D=r.dist(S,T);A=D/(D+C),l(d,S,h,-m*(1-A))}o(u,u,v),s(u,u,g),o(d,d,v),s(d,d,g),t.bezierCurveTo(u[0],u[1],d[0],d[1],S[0],S[1]),l(u,S,h,m*A)}else t.lineTo(S[0],S[1]);_=b,b+=p}return w}function m(t,e){var n=[1/0,1/0],i=[-1/0,-1/0];if(e)for(var r=0;ri[0]&&(i[0]=a[0]),a[1]>i[1]&&(i[1]=a[1])}return{min:e?n:i,max:e?i:n}}var y=i.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:a(i.prototype.brush),buildPath:function(t,e){var n=e.points,i=0,r=n.length,a=m(n,e.smoothConstraint);if(e.connectNulls){for(;r>0;r--)if(!f(n[r-1]))break;for(;i0;a--)if(!f(n[a-1]))break;for(;r=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return a},o.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},o.clear=function(){this._list.clear(),this._map={}};var s=a;t.exports=s},d5b7:function(t,e,n){var i=n("de00"),r=n("1fab"),a=n("0cde"),o=n("bd6b"),s=n("6d8b"),l=function(t){a.call(this,t),r.call(this,t),o.call(this,t),this.id=t.id||i()};l.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var n=this[t];n||(n=this[t]=[]),n[0]=e[0],n[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(s.isObject(t))for(var n in t)t.hasOwnProperty(n)&&this.attrKV(n,t[n]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var n=0;ne&&c>i&&c>a&&c>s||c1&&y(),d=h.cubicAt(e,i,a,s,m[0]),g>1&&(f=h.cubicAt(e,i,a,s,m[1]))),2===g?_e&&s>i&&s>a||s=0&&c<=1){for(var u=0,d=h.quadraticAt(e,i,a,c),f=0;fn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);v[0]=-l,v[1]=l;var h=Math.abs(i-r);if(h<1e-4)return 0;if(h%f<1e-4){i=0,r=f;var u=a?1:-1;return o>=v[0]+t&&o<=v[1]+t?u:0}if(a){l=i;i=c(r),r=c(l)}else i=c(i),r=c(r);i>r&&(r+=f);for(var d=0,p=0;p<2;p++){var g=v[p];if(g+t>o){var m=Math.atan2(s,g);u=a?1:-1;m<0&&(m=f+m),(m>=i&&m<=r||m+f>=i&&m+f<=r)&&(m>Math.PI/2&&m<1.5*Math.PI&&(u=-u),d+=u)}}return d}function w(t,e,n,i,l){for(var c=0,h=0,f=0,p=0,v=0,m=0;m1&&(n||(c+=u(h,f,p,v,i,l))),1===m&&(h=t[m],f=t[m+1],p=h,v=f),y){case d.M:p=t[m++],v=t[m++],h=p,f=v;break;case d.L:if(n){if(r.containStroke(h,f,t[m],t[m+1],e,i,l))return!0}else c+=u(h,f,t[m],t[m+1],i,l)||0;h=t[m++],f=t[m++];break;case d.C:if(n){if(a.containStroke(h,f,t[m++],t[m++],t[m++],t[m++],t[m],t[m+1],e,i,l))return!0}else c+=x(h,f,t[m++],t[m++],t[m++],t[m++],t[m],t[m+1],i,l)||0;h=t[m++],f=t[m++];break;case d.Q:if(n){if(o.containStroke(h,f,t[m++],t[m++],t[m],t[m+1],e,i,l))return!0}else c+=_(h,f,t[m++],t[m++],t[m],t[m+1],i,l)||0;h=t[m++],f=t[m++];break;case d.A:var w=t[m++],S=t[m++],M=t[m++],T=t[m++],A=t[m++],I=t[m++];m+=1;var C=1-t[m++],D=Math.cos(A)*M+w,k=Math.sin(A)*T+S;m>1?c+=u(h,f,D,k,i,l):(p=D,v=k);var O=(i-w)*T/M+w;if(n){if(s.containStroke(w,S,T,A,A+I,C,e,O,l))return!0}else c+=b(w,S,T,A,A+I,C,O,l);h=Math.cos(A+I)*M+w,f=Math.sin(A+I)*T+S;break;case d.R:p=h=t[m++],v=f=t[m++];var P=t[m++],L=t[m++];D=p+P,k=v+L;if(n){if(r.containStroke(p,v,D,v,e,i,l)||r.containStroke(D,v,D,k,e,i,l)||r.containStroke(D,k,p,k,e,i,l)||r.containStroke(p,k,p,v,e,i,l))return!0}else c+=u(D,v,D,k,i,l),c+=u(p,k,p,v,i,l);break;case d.Z:if(n){if(r.containStroke(h,f,p,v,e,i,l))return!0}else c+=u(h,f,p,v,i,l);h=p,f=v;break}}return n||g(f,v)||(c+=u(h,f,p,v,i,l)||0),0!==c}function S(t,e,n){return w(t,0,!1,e,n)}function M(t,e,n,i){return w(t,e,!0,n,i)}e.contain=S,e.containStroke=M},d9f1:function(t,e,n){var i=n("6d8b"),r=n("6cb7"),a=n("9e47"),o=n("2023"),s=r.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});i.merge(s.prototype,o);var l={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function c(t,e){return e.type||(e.data?"category":"value")}a("angle",s,c,l.angle),a("radius",s,c,l.radius)},d9fc:function(t,e,n){var i=n("cbe5"),r=i.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,n){n&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}});t.exports=r},dc2f:function(t,e){var n=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};n.prototype.getCanvasPattern=function(t){return t.createPattern(this.image,this.repeat||"repeat")};var i=n;t.exports=i},dcb3:function(t,e,n){var i=n("6d8b"),r=n("625e"),a=n("2306"),o=n("cd33"),s=n("607d"),l=n("88b3"),c=n("e0d3"),h=c.makeInner,u=h(),d=i.clone,f=i.bind;function p(){}function g(t,e,n,i){v(u(n).lastProp,i)||(u(n).lastProp=i,e?a.updateProps(n,i,t):(n.stopAnimation(),n.attr(i)))}function v(t,e){if(i.isObject(t)&&i.isObject(e)){var n=!0;return i.each(e,function(e,i){n=n&&v(t[i],e)}),!!n}return t===e}function m(t,e){t[e.get("label.show")?"show":"hide"]()}function y(t){return{position:t.position.slice(),rotation:t.rotation||0}}function x(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}p.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,n,r){var o=e.get("value"),s=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,r||this._lastValue!==o||this._lastStatus!==s){this._lastValue=o,this._lastStatus=s;var l=this._group,c=this._handle;if(!s||"hide"===s)return l&&l.hide(),void(c&&c.hide());l&&l.show(),c&&c.show();var h={};this.makeElOption(h,o,t,e,n);var u=h.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var d=this._moveAnimation=this.determineAnimation(t,e);if(l){var f=i.curry(g,e,d);this.updatePointerEl(l,h,f,e),this.updateLabelEl(l,h,f,e)}else l=this._group=new a.Group,this.createPointerEl(l,h,t,e),this.createLabelEl(l,h,t,e),n.getZr().add(l);x(l,e,!0),this._renderHandle(o)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,a=e.get("snap");if(!a&&!r)return!1;if("auto"===n||null==n){var s=this.animationThreshold;if(r&&i.getBandWidth()>s)return!0;if(a){var l=o.getAxisInfo(t).seriesDataCount,c=i.getExtent();return Math.abs(c[0]-c[1])/l>s}return!1}return!0===n},makeElOption:function(t,e,n,i,r){},createPointerEl:function(t,e,n,i){var r=e.pointer;if(r){var o=u(t).pointerEl=new a[r.type](d(e.pointer));t.add(o)}},createLabelEl:function(t,e,n,i){if(e.label){var r=u(t).labelEl=new a.Rect(d(e.label));t.add(r),m(r,i)}},updatePointerEl:function(t,e,n){var i=u(t).pointerEl;i&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,n,i){var r=u(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{shape:e.label.shape,position:e.label.position}),m(r,i))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),o=this._handle,c=n.getModel("handle"),h=n.get("status");if(!c.get("show")||!h||"hide"===h)return o&&r.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=a.createIcon(c.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){s.stop(t.event)},onmousedown:f(this._onHandleDragMove,this,0,0),drift:f(this._onHandleDragMove,this),ondragend:f(this._onHandleDragEnd,this)}),r.add(o)),x(o,n,!1);var u=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];o.setStyle(c.getItemStyle(null,u));var d=c.get("size");i.isArray(d)||(d=[d,d]),o.attr("scale",[d[0]/2,d[1]/2]),l.createOrUpdate(this,"_doDispatchAxisPointer",c.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},_moveHandleToValue:function(t,e){g(this._axisPointerModel,!e&&this._moveAnimation,this._handle,y(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(y(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(y(i)),u(n).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},_onHandleDragEnd:function(t){this._dragging=!1;var e=this._handle;if(e){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}},p.prototype.constructor=p,r.enableClassExtend(p);var _=p;t.exports=_},dded:function(t,e,n){var i=n("6d8b"),r=n("42e5"),a=function(t,e,n,i,a){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,this.type="radial",this.global=a||!1,r.call(this,i)};a.prototype={constructor:a},i.inherits(a,r);var o=a;t.exports=o},de00:function(t,e){var n=2311;function i(){return n++}t.exports=i},de1c:function(t,e){var n={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}};t.exports=n},e073:function(t,e,n){var i=n("6d8b"),r=n("e86a"),a=n("e0d3"),o=a.makeInner,s=n("697e"),l=s.makeLabelFormatter,c=s.getOptionCategoryInterval,h=s.shouldShowAllLabels,u=o();function d(t){return"category"===t.type?p(t):m(t)}function f(t,e){return"category"===t.type?v(t,e):{ticks:t.scale.getTicks()}}function p(t){var e=t.getLabelModel(),n=g(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function g(t,e){var n,r,a=y(t,"labels"),o=c(e),s=x(a,o);return s||(i.isFunction(o)?n=T(t,o):(r="auto"===o?b(t):o,n=M(t,r)),_(a,o,{labels:n,labelCategoryInterval:r}))}function v(t,e){var n,r,a=y(t,"ticks"),o=c(e),s=x(a,o);if(s)return s;if(e.get("show")&&!t.scale.isBlank()||(n=[]),i.isFunction(o))n=T(t,o,!0);else if("auto"===o){var l=g(t,t.getLabelModel());r=l.labelCategoryInterval,n=i.map(l.labels,function(t){return t.tickValue})}else r=o,n=M(t,r,!0);return _(a,o,{ticks:n,tickCategoryInterval:r})}function m(t){var e=t.scale.getTicks(),n=l(t);return{labels:i.map(e,function(e,i){return{formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e}})}}function y(t,e){return u(t)[e]||(u(t)[e]=[])}function x(t,e){for(var n=0;n40&&(c=Math.max(1,Math.floor(s/40)));for(var h=o[0],d=t.dataToCoord(h+1)-t.dataToCoord(h),f=Math.abs(d*Math.cos(i)),p=Math.abs(d*Math.sin(i)),g=0,v=0;h<=o[1];h+=c){var m=0,y=0,x=r.getBoundingRect(n(h),e.font,"center","top");m=1.3*x.width,y=1.3*x.height,g=Math.max(g,m,7),v=Math.max(v,y,7)}var _=g/f,b=v/p;isNaN(_)&&(_=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(_,b))),M=u(t.model),T=M.lastAutoInterval,A=M.lastTickCount;return null!=T&&null!=A&&Math.abs(T-w)<=1&&Math.abs(A-s)<=1&&T>w?w=T:(M.lastTickCount=s,M.lastAutoInterval=w),w}function S(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function M(t,e,n){var i=l(t),r=t.scale,a=r.getExtent(),o=t.getLabelModel(),s=[],c=Math.max((e||0)+1,1),u=a[0],d=r.count();0!==u&&c>1&&d/c>2&&(u=Math.round(Math.ceil(u/c)*c));var f=h(t),p=o.get("showMinLabel")||f,g=o.get("showMaxLabel")||f;p&&u!==a[0]&&m(a[0]);for(var v=u;v<=a[1];v+=c)m(v);function m(t){s.push(n?t:{formattedLabel:i(t),rawLabel:r.getLabel(t),tickValue:t})}return g&&v!==a[1]&&m(a[1]),s}function T(t,e,n){var r=t.scale,a=l(t),o=[];return i.each(r.getTicks(),function(t){var i=r.getLabel(t);e(t,i)&&o.push(n?t:{formattedLabel:a(t),rawLabel:i,tickValue:t})}),o}e.createAxisLabels=d,e.createAxisTicks=f,e.calculateCategoryInterval=w},e0d3:function(t,e,n){var i=n("6d8b"),r=n("22d1"),a=i.each,o=i.isObject,s=i.isArray,l="series\0";function c(t){return t instanceof Array?t:null==t?[]:[t]}function h(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i=n.length&&n.push({option:t})}}),n}function g(t){var e=i.createHashMap();a(t,function(t,n){var i=t.exist;i&&e.set(i.id,t)}),a(t,function(t,n){var r=t.option;i.assert(!r||null==r.id||!e.get(r.id)||e.get(r.id)===t,"id duplicates: "+(r&&r.id)),r&&null!=r.id&&e.set(r.id,t),!t.keyInfo&&(t.keyInfo={})}),a(t,function(t,n){var i=t.exist,r=t.option,a=t.keyInfo;if(o(r)){if(a.name=null!=r.name?r.name+"":i?i.name:l+n,i)a.id=i.id;else if(null!=r.id)a.id=r.id+"";else{var s=0;do{a.id="\0"+a.name+"\0"+s++}while(e.get(a.id))}e.set(a.id,t)}})}function v(t){var e=t.name;return!(!e||!e.indexOf(l))}function m(t){return o(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}function y(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[a(n),a(i)];function r(t,e,n){for(var i=0,r=t.length;i=e[0]&&t<=e[1]},r.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},r.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r.prototype.getLabel=null,i.enableClassExtend(r),i.enableClassManagement(r,{registerWhenExtend:!0});var a=r;t.exports=a},e1fc:function(t,e,n){var i=n("6d8b"),r=n("d5b7"),a=n("9850"),o=function(t){for(var e in t=t||{},r.call(this,t),t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};o.prototype={constructor:o,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,n=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof o&&t.addChildrenToStorage(e)),n&&n.refresh()},remove:function(t){var e=this.__zr,n=this.__storage,r=this._children,a=i.indexOf(r,t);return a<0?this:(r.splice(a,1),t.parent=null,n&&(n.delFromStorage(t),t instanceof o&&t.delChildrenFromStorage(n)),e&&e.refresh(),this)},removeAll:function(){var t,e,n=this._children,i=this.__storage;for(e=0;e1e-4)return p[0]=t-n,p[1]=e-r,g[0]=t+n,void(g[1]=e+r);if(h[0]=l(a)*n+t,h[1]=s(a)*r+e,u[0]=l(o)*n+t,u[1]=s(o)*r+e,v(p,h,u),m(g,h,u),a%=c,a<0&&(a+=c),o%=c,o<0&&(o+=c),a>o&&!f?o+=c:aa&&(d[0]=l(_)*n+t,d[1]=s(_)*r+e,v(p,d,p),m(g,d,g))}e.fromPoints=f,e.fromLine=p,e.fromCubic=m,e.fromQuadratic=y,e.fromArc=x},e47b:function(t,e,n){var i=n("e0d3"),r=i.makeInner,a=i.normalizeToArray,o=r();function s(t,e){for(var n=t.length,i=0;ie)return t[i];return t[n-1]}var l={clearColorPalette:function(){o(this).colorIdx=0,o(this).colorNameMap={}},getColorFromPalette:function(t,e,n){e=e||this;var i=o(e),r=i.colorIdx||0,l=i.colorNameMap=i.colorNameMap||{};if(l.hasOwnProperty(t))return l[t];var c=a(this.get("color",!0)),h=this.get("colorLayer",!0),u=null!=n&&h?s(h,n):c;if(u=u||c,u&&u.length){var d=u[r];return t&&(l[t]=d),i.colorIdx=(r+1)%u.length,d}}};t.exports=l},e7d2:function(t,e,n){var i=n("4a3f");function r(t,e,n,r,a,o,s,l,c,h,u){if(0===c)return!1;var d=c;if(u>e+d&&u>r+d&&u>o+d&&u>l+d||ut+d&&h>n+d&&h>a+d&&h>s+d||hf&&(d=0,u={}),d++,u[n]=r,r}function x(t,e,n,i,r,a,o,s){return o?b(t,e,n,i,r,a,o,s):_(t,e,n,i,r,a,s)}function _(t,e,n,r,a,o,s){var l=O(t,e,a,o,s),c=y(t,e);a&&(c+=a[1]+a[3]);var h=l.outerHeight,u=w(0,c,n),d=S(0,h,r),f=new i(u,d,c,h);return f.lineHeight=l.lineHeight,f}function b(t,e,n,r,a,o,s,l){var c=P(t,{rich:s,truncate:l,font:e,textAlign:n,textPadding:a,textLineHeight:o}),h=c.outerWidth,u=c.outerHeight,d=w(0,h,n),f=S(0,u,r);return new i(d,f,h,u)}function w(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function S(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function M(t,e,n){var i=e.x,r=e.y,a=e.height,o=e.width,s=a/2,l="left",c="top";switch(t){case"left":i-=n,r+=s,l="right",c="middle";break;case"right":i+=n+o,r+=s,c="middle";break;case"top":i+=o/2,r-=n,l="center",c="bottom";break;case"bottom":i+=o/2,r+=a+n,l="center";break;case"inside":i+=o/2,r+=s,l="center",c="middle";break;case"insideLeft":i+=n,r+=s,c="middle";break;case"insideRight":i+=o-n,r+=s,l="right",c="middle";break;case"insideTop":i+=o/2,r+=n,l="center";break;case"insideBottom":i+=o/2,r+=a-n,l="center",c="bottom";break;case"insideTopLeft":i+=n,r+=n;break;case"insideTopRight":i+=o-n,r+=n,l="right";break;case"insideBottomLeft":i+=n,r+=a-n,c="bottom";break;case"insideBottomRight":i+=o-n,r+=a-n,l="right",c="bottom";break}return{x:i,y:r,textAlign:l,textVerticalAlign:c}}function T(t,e,n,i,r){if(!e)return"";var a=(t+"").split("\n");r=A(e,n,i,r);for(var o=0,s=a.length;o=a;c++)o-=a;var h=y(n,e);return h>o&&(n="",h=0),o=t-h,i.ellipsis=n,i.ellipsisWidth=h,i.contentWidth=o,i.containerWidth=t,i}function I(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var a=y(t,i);if(a<=n)return t;for(var o=0;;o++){if(a<=r||o>=e.maxIterations){t+=e.ellipsis;break}var s=0===o?C(t,r,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*r/a):0;t=t.substr(0,s),a=y(t,i)}return""===t&&(t=e.placeholder),t}function C(t,e,n,i){for(var r=0,a=0,o=t.length;ah)t="",o=[];else if(null!=u)for(var d=A(u-(n?n[1]+n[3]:0),e,r.ellipsis,{minChar:r.minChar,placeholder:r.placeholder}),f=0,p=o.length;fa&&L(n,t.substring(a,o)),L(n,i[2],i[1]),a=p.lastIndex}am)return{lines:[],width:0,height:0};M.textWidth=y(M.text,C);var O=A.textWidth,P=null==O||"auto"===O;if("string"===typeof O&&"%"===O.charAt(O.length-1))M.percentWidth=O,d.push(M),O=0;else{if(P){O=M.textWidth;var E=A.textBackgroundColor,R=E&&E.image;R&&(R=r.findExistImage(R),r.isImageReady(R)&&(O=Math.max(O,R.width*k/R.height)))}var N=I?I[1]+I[3]:0;O+=N;var z=null!=v?v-w:null;null!=z&&z=0&&s<0)&&(o=g,s=p,r=h,a.length=0),l(u,function(t){a.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:a,snapToValue:r}}function p(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function g(t,e,n,i){var r=n.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;if(e.triggerTooltip&&r.length){var c=e.coordSys.model,h=o.makeKey(c),u=t.map[h];u||(u=t.map[h]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},t.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:i,valueLabelOpt:{precision:l.get("label.precision"),formatter:l.get("label.formatter")},seriesDataIndices:r.slice()})}}function v(t,e,n){var i=n.axesInfo=[];l(e,function(e,n){var r=e.axisPointerModel.option,a=t[n];a?(!e.useHandle&&(r.status="show"),r.value=a.value,r.seriesDataIndices=(a.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}function m(t,e,n,i){if(!b(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}function y(t,e,n){var r=n.getZr(),a="axisPointerLastHighlights",o=h(r)[a]||{},s=h(r)[a]={};l(t,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&l(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;s[e]=t})});var c=[],u=[];i.each(o,function(t,e){!s[e]&&u.push(t)}),i.each(s,function(t,e){!o[e]&&c.push(t)}),u.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,batch:u}),c.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,batch:c})}function x(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function _(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function b(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}t.exports=u},ec02:function(t,e,n){var i=n("6d8b"),r=n("84ce"),a=function(t,e,n,i,a){r.call(this,t,e,n),this.type=i||"value",this.position=a||"bottom"};a.prototype={constructor:a,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},i.inherits(a,r);var o=a;t.exports=o},ec34:function(t,e,n){var i=n("4e08"),r=(i.__DEV__,n("6d8b")),a=r.createHashMap,o=r.isString,s=r.isArray,l=r.each,c=(r.assert,n("3041")),h=c.parseXML,u=a(),d={registerMap:function(t,e,n){var i;return s(e)?i=e:e.svg?i=[{type:"svg",source:e.svg,specialAreas:e.specialAreas}]:(e.geoJson&&!e.features&&(n=e.specialAreas,e=e.geoJson),i=[{type:"geoJSON",source:e,specialAreas:n}]),l(i,function(t){var e=t.type;"geoJson"===e&&(e=t.type="geoJSON");var n=f[e];n(t)}),u.set(t,i)},retrieveMap:function(t){return u.get(t)}},f={geoJSON:function(t){var e=t.source;t.geoJSON=o(e)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e},svg:function(t){t.svgXML=h(t.source)}};t.exports=d},ec6f:function(t,e,n){var i=n("6d8b"),r=i.createHashMap,a=i.isTypedArray,o=n("625e"),s=o.enableClassCheck,l=n("93d0"),c=l.SOURCE_FORMAT_ORIGINAL,h=l.SERIES_LAYOUT_BY_COLUMN,u=l.SOURCE_FORMAT_UNKNOWN,d=l.SOURCE_FORMAT_TYPED_ARRAY,f=l.SOURCE_FORMAT_KEYED_COLUMNS;function p(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===f?{}:[]),this.sourceFormat=t.sourceFormat||u,this.seriesLayoutBy=t.seriesLayoutBy||h,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&r(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}p.seriesDataToSource=function(t){return new p({data:t,sourceFormat:a(t)?d:c,fromDataset:!1})},s(p);var g=p;t.exports=g},ed21:function(t,e,n){var i=n("2cf4"),r=i.devicePixelRatio,a=n("6d8b"),o=n("4942"),s=n("9850"),l=n("04f6"),c=n("5e68"),h=n("98b7"),u=n("0da8"),d=n("22d1"),f=1e5,p=314159,g=.01,v=.001;function m(t){return parseInt(t,10)}function y(t){return!!t&&(!!t.__builtin__||"function"===typeof t.resize&&"function"===typeof t.refresh)}var x=new s(0,0,0,0),_=new s(0,0,0,0);function b(t,e,n){return x.copy(t.getBoundingRect()),t.transform&&x.applyTransform(t.transform),_.width=e,_.height=n,!x.intersect(_)}function w(t,e){if(t===e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n=0&&n.splice(i,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,n=0;n15)break}}o.__drawIndex=m,o.__drawIndex0&&t>i[0]){for(s=0;st)break;a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var c=a.dom;c.nextSibling?l.insertBefore(e.dom,c.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom)}else o("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){var n,i,r=this._zlevelList;for(i=0;i0?g:0),this._needsManuallyCompositing),s.__builtin__||o("ZLevel "+l+" has been used by unkown layer "+s.id),s!==r&&(s.__used=!0,s.__startIndex!==n&&(s.__dirty=!0),s.__startIndex=n,s.incremental?s.__drawIndex=-1:s.__drawIndex=n,e(n),r=s),i.__dirty&&(s.__dirty=!0,s.incremental&&s.__drawIndex<0&&(s.__drawIndex=n))}e(n),this.eachBuiltinLayer(function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},configLayer:function(t,e){if(e){var n=this._layerConfig;n[t]?a.merge(n[t],e,!0):n[t]=e;for(var i=0;i1?"."+t[1]:""))}function s(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var l=i.normalizeCssArray,c=/([&<>"'])/g,h={"&":"&","<":"<",">":">",'"':""","'":"'"};function u(t){return null==t?"":(t+"").replace(c,function(t,e){return h[e]})}var d=["a","b","c","d","e","f","g"],f=function(t,e){return"{"+t+(null==e?"":e)+"}"};function p(t,e,n){i.isArray(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],o=0;o':'':{renderMode:a,content:"{marker"+o+"|} ",style:{color:n}}:""}function m(t,e){return t+="","0000".substr(0,e-t.length)+t}function y(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=a.parseDate(e),r=n?"UTC":"",o=i["get"+r+"FullYear"](),s=i["get"+r+"Month"]()+1,l=i["get"+r+"Date"](),c=i["get"+r+"Hours"](),h=i["get"+r+"Minutes"](),u=i["get"+r+"Seconds"](),d=i["get"+r+"Milliseconds"]();return t=t.replace("MM",m(s,2)).replace("M",s).replace("yyyy",o).replace("yy",o%100).replace("dd",m(l,2)).replace("d",l).replace("hh",m(c,2)).replace("h",c).replace("mm",m(h,2)).replace("m",h).replace("ss",m(u,2)).replace("s",u).replace("SSS",m(d,3)),t}function x(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}var _=r.truncateText;function b(t){return r.getBoundingRect(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)}function w(t,e,n,i,a,o,s,l){return r.getBoundingRect(t,e,n,i,a,l,o,s)}e.addCommas=o,e.toCamelCase=s,e.normalizeCssArray=l,e.encodeHTML=u,e.formatTpl=p,e.formatTplSimple=g,e.getTooltipMarker=v,e.formatTime=y,e.capitalFirst=x,e.truncateText=_,e.getTextBoundingRect=b,e.getTextRect=w},ee1a:function(t,e,n){var i=n("6d8b"),r=i.each,a=i.isString;function o(t,e,n){n=n||{};var i,o,s,l,c=n.byIndex,h=n.stackedCoordDimension,u=!(!t||!t.get("stack"));if(r(e,function(t,n){a(t)&&(e[n]=t={name:t}),u&&!t.isExtraCoord&&(c||i||!t.ordinalMeta||(i=t),o||"ordinal"===t.type||"time"===t.type||h&&h!==t.coordDim||(o=t))}),!o||c||i||(c=!0),o){s="__\0ecstackresult",l="__\0ecstackedover",i&&(i.createInvertedIndices=!0);var d=o.coordDim,f=o.type,p=0;r(e,function(t){t.coordDim===d&&p++}),e.push({name:s,coordDim:d,coordDimIndex:p,type:f,isExtraCoord:!0,isCalculationCoord:!0}),p++,e.push({name:l,coordDim:l,coordDimIndex:p,type:f,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:o&&o.name,stackedByDimension:i&&i.name,isStackedByIndex:c,stackedOverDimension:l,stackResultDimension:s}}function s(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function l(t,e){return s(t,e)?t.getCalculationInfo("stackResultDimension"):e}e.enableDataStack=o,e.isDimensionStacked=s,e.getStackedDimension=l},ee84:function(t,e,n){var i=n("20c8"),r=n("401b"),a=r.applyTransform,o=i.CMD,s=[[],[],[]],l=Math.sqrt,c=Math.atan2;function h(t,e){var n,i,r,h,u,d=t.data,f=o.M,p=o.C,g=o.L,v=o.R,m=o.A,y=o.Q;for(r=0,h=0;re[0]?1:-1;e[0]+=i*n,e[1]-=i*n}return e}function w(t,e,n){if(!n.valueDim)return[];for(var i=[],r=0,a=e.count();ro[1]&&o.reverse();var s=r.getExtent(),c=Math.PI/180;n&&(o[0]-=.5,o[1]+=.5);var h=new l.Sector({shape:{cx:g(t.cx,1),cy:g(t.cy,1),r0:g(o[0],1),r:g(o[1],1),startAngle:-s[0]*c,endAngle:-s[1]*c,clockwise:r.inverse}});return e&&(h.shape.endAngle=-s[0]*c,l.initProps(h,{shape:{endAngle:-s[1]*c}},i)),h}function T(t,e,n,i){return"polar"===t.type?M(t,e,n,i):S(t,e,n,i)}function A(t,e,n){for(var i=e.getBaseAxis(),r="x"===i.dim||"radius"===i.dim?0:1,a=[],o=0;o=0;o--){var s=n[o].dimension,c=t.dimensions[s],h=t.getDimensionInfo(c);if(i=h&&h.coordDim,"x"===i||"y"===i){a=n[o];break}}if(a){var u=e.getAxis(i),d=r.map(a.stops,function(t){return{coord:u.toGlobalCoord(u.dataToCoord(t.value)),color:t.color}}),f=d.length,p=a.outerColors.slice();f&&d[0].coord>d[f-1].coord&&(d.reverse(),p.reverse());var g=10,v=d[0].coord-g,m=d[f-1].coord+g,y=m-v;if(y<.001)return"transparent";r.each(d,function(t){t.offset=(t.coord-v)/y}),d.push({offset:f?d[f-1].offset:.5,color:p[1]||"transparent"}),d.unshift({offset:f?d[0].offset:.5,color:p[0]||"transparent"});var x=new l.LinearGradient(0,0,0,0,d,!0);return x[i]=v,x[i+"2"]=m,x}}}function C(t,e,n){var i=t.get("showAllSymbol"),a="auto"===i;if(!i||a){var o=n.getAxesByScale("ordinal")[0];if(o&&(!a||!D(o,e))){var s=e.mapDimension(o.dim),l={};return r.each(o.getViewLabels(),function(t){l[t.tickValue]=1}),function(t){return!l.hasOwnProperty(e.get(s,t))}}}}function D(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),a=Math.max(1,Math.round(r/5)),s=0;si)return!1;return!0}var k=f.extend({type:"line",init:function(){var t=new l.Group,e=new a;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,n){var i=t.coordinateSystem,a=this.group,o=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),c=o.mapArray(o.getItemLayout),h="polar"===i.type,u=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,g=this._lineGroup,v=t.get("animation"),y=!l.isEmpty(),b=l.get("origin"),S=m(i,o,b),M=w(i,o,S),D=t.get("showSymbol"),k=D&&!h&&C(t,o,i),O=this._data;O&&O.eachItemGraphicEl(function(t,e){t.__temp&&(a.remove(t),O.setItemGraphicEl(e,null))}),D||d.remove(),a.add(g);var P=!h&&t.get("step");f&&u.type===i.type&&P===this._step?(y&&!p?p=this._newPolygon(c,M,i,v):p&&!y&&(g.remove(p),p=this._polygon=null),g.setClipPath(T(i,!1,!1,t)),D&&d.updateData(o,{isIgnore:k,clipShape:T(i,!1,!0,t)}),o.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),x(this._stackedOnPoints,M)&&x(this._points,c)||(v?this._updateAnimation(o,M,i,n,P,b):(P&&(c=A(c,i,P),M=A(M,i,P)),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:M})))):(D&&d.updateData(o,{isIgnore:k,clipShape:T(i,!1,!0,t)}),P&&(c=A(c,i,P),M=A(M,i,P)),f=this._newPolyline(c,i,v),y&&(p=this._newPolygon(c,M,i,v)),g.setClipPath(T(i,!0,!1,t)));var L=I(o,i)||o.getVisual("color");f.useStyle(r.defaults(s.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"}));var E=t.get("smooth");if(E=_(t.get("smooth")),f.setShape({smooth:E,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),p){var R=o.getCalculationInfo("stackedOnSeries"),N=0;p.useStyle(r.defaults(l.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel"})),R&&(N=_(R.get("smooth"))),p.setShape({smooth:E,stackedOnSmooth:N,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=o,this._coordSys=i,this._stackedOnPoints=M,this._points=c,this._step=P,this._valueOrigin=b},dispose:function(){},highlight:function(t,e,n,i){var r=t.getData(),a=c.queryDataIndex(r,i);if(!(a instanceof Array)&&null!=a&&a>=0){var s=r.getItemGraphicEl(a);if(!s){var l=r.getItemLayout(a);if(!l)return;s=new o(r,a),s.position=l,s.setZ(t.get("zlevel"),t.get("z")),s.ignore=isNaN(l[0])||isNaN(l[1]),s.__temp=!0,r.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else f.prototype.highlight.call(this,t,e,n,i)},downplay:function(t,e,n,i){var r=t.getData(),a=c.queryDataIndex(r,i);if(null!=a&&a>=0){var o=r.getItemGraphicEl(a);o&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else f.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new u({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new d({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_updateAnimation:function(t,e,n,i,r,a){var o=this._polyline,c=this._polygon,h=t.hostModel,u=s(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,g=u.stackedOnNext;r&&(d=A(u.current,n,r),f=A(u.stackedOnCurrent,n,r),p=A(u.next,n,r),g=A(u.stackedOnNext,n,r)),o.shape.__points=u.current,o.shape.points=d,l.updateProps(o,{shape:{points:p}},h),c&&(c.setShape({points:d,stackedOnPoints:f}),l.updateProps(c,{shape:{points:p,stackedOnPoints:g}},h));for(var v=[],m=u.status,y=0;y=1)&&(t=1),t}s===c&&l===d||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=u(this,i)),this._modBy=c,this._modDataCount=d;var p=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var g=this._dueIndex,v=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(o||g1&&i>0?s:o}};return a;function o(){return e=t?null:ai||l.newline?(a=0,h=v,o+=s+n,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(g?-g.y+f.y:0);u=o+m,u>r||l.newline?(a+=s+n,o=0,u=m,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=a,d[1]=o,"horizontal"===t?a=h+n:o=u+n)})}var d=u,f=i.curry(u,"vertical"),p=i.curry(u,"horizontal");function g(t,e,n){var i=e.width,r=e.height,a=o(t.x,i),l=o(t.y,r),c=o(t.x2,i),h=o(t.y2,r);return(isNaN(a)||isNaN(parseFloat(t.x)))&&(a=0),(isNaN(c)||isNaN(parseFloat(t.x2)))&&(c=i),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(h)||isNaN(parseFloat(t.y2)))&&(h=r),n=s.normalizeCssArray(n||0),{width:Math.max(c-a-n[1]-n[3],0),height:Math.max(h-l-n[0]-n[2],0)}}function v(t,e,n){n=s.normalizeCssArray(n||0);var i=e.width,a=e.height,l=o(t.left,i),c=o(t.top,a),h=o(t.right,i),u=o(t.bottom,a),d=o(t.width,i),f=o(t.height,a),p=n[2]+n[0],g=n[1]+n[3],v=t.aspect;switch(isNaN(d)&&(d=i-h-g-l),isNaN(f)&&(f=a-u-p-c),null!=v&&(isNaN(d)&&isNaN(f)&&(v>i/a?d=.8*i:f=.8*a),isNaN(d)&&(d=v*f),isNaN(f)&&(f=d/v)),isNaN(l)&&(l=i-h-d-g),isNaN(c)&&(c=a-u-f-p),t.left||t.right){case"center":l=i/2-d/2-n[3];break;case"right":l=i-d-g;break}switch(t.top||t.bottom){case"middle":case"center":c=a/2-f/2-n[0];break;case"bottom":c=a-f-p;break}l=l||0,c=c||0,isNaN(d)&&(d=i-g-l-(h||0)),isNaN(f)&&(f=a-p-c-(u||0));var m=new r(l+n[3],c+n[0],d,f);return m.margin=n,m}function m(t,e,n,a,o){var s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],c=o&&o.boundingMode||"all";if(s||l){var h;if("raw"===c)h="group"===t.type?new r(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(h=t.getBoundingRect(),t.needLocalTransform()){var u=t.getLocalTransform();h=h.clone(),h.applyTransform(u)}e=v(i.defaults({width:h.width,height:h.height},e),n,a);var d=t.position,f=s?e.x-h.x:0,p=l?e.y-h.y:0;t.attr("position","raw"===c?[f,p]:[d[0]+f,d[1]+p])}}function y(t,e){return null!=t[h[e][0]]||null!=t[h[e][1]]&&null!=t[h[e][2]]}function x(t,e,n){!i.isObject(n)&&(n={});var r=n.ignoreSize;!i.isArray(r)&&(r=[r,r]);var a=s(h[0],0),o=s(h[1],1);function s(n,i){var a={},o=0,s={},h=0,d=2;if(l(n,function(e){s[e]=t[e]}),l(n,function(t){c(e,t)&&(a[t]=s[t]=e[t]),u(a,t)&&o++,u(s,t)&&h++}),r[i])return u(e,n[1])?s[n[2]]=null:u(e,n[2])&&(s[n[1]]=null),s;if(h!==d&&o){if(o>=d)return a;for(var f=0;ff[1]?-1:1,g=["start"===s?f[0]-p*d:"end"===s?f[1]+p*d:(f[0]+f[1])/2,O(s)?t.labelOffset+h*d:0],v=e.get("nameRotate");null!=v&&(v=v*b/180),O(s)?i=T(t.rotation,null!=v?v:t.rotation,h):(i=A(t,s,v||0,f),a=t.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(i.rotation)),!isFinite(a)&&(a=null)));var m=u.getFont(),y=e.get("nameTruncate",!0)||{},x=y.ellipsis,_=r(t.nameTruncateMaxWidth,y.maxWidth,a),S=null!=x&&null!=_?l.truncateText(n,_,m,x,{minChar:2,placeholder:y.placeholder}):n,M=e.get("tooltip",!0),C=e.mainType,D={componentType:C,name:n,$vars:["name"]};D[C+"Index"]=e.componentIndex;var k=new c.Text({anid:"name",__fullText:n,__truncatedText:S,position:g,rotation:i.rotation,silent:I(e),z2:1,tooltip:M&&M.show?o({content:n,formatter:function(){return n},formatterParams:D},M):null});c.setTextStyle(k.style,u,{text:S,textFont:m,textFill:u.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:i.textAlign,textVerticalAlign:i.textVerticalAlign}),e.get("triggerEvent")&&(k.eventData=w(e),k.eventData.targetType="axisName",k.eventData.name=n),this._dumbGroup.add(k),k.updateTransform(),this.group.add(k),k.decomposeTransform()}}},T=S.innerTextLayout=function(t,e,n){var i,r,a=f(e-t);return d(a)?(r=n>0?"top":"bottom",i="center"):d(a-b)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=a>0&&a0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:r}};function A(t,e,n,i){var r,a,o=f(n-t.rotation),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return d(o-b/2)?(a=l?"bottom":"top",r="center"):d(o-1.5*b)?(a=l?"top":"bottom",r="center"):(a="middle",r=o<1.5*b&&o>b/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:r,textVerticalAlign:a}}function I(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}function C(t,e,n){if(!_(t.axis)){var i=t.get("axisLabel.showMinLabel"),r=t.get("axisLabel.showMaxLabel");e=e||[],n=n||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],c=n[0],h=n[1],u=n[n.length-1],d=n[n.length-2];!1===i?(D(a),D(c)):k(a,o)&&(i?(D(o),D(h)):(D(a),D(c))),!1===r?(D(s),D(u)):k(l,s)&&(r?(D(l),D(d)):(D(s),D(u)))}}function D(t){t&&(t.ignore=!0)}function k(t,e,n){var i=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(i&&r){var a=v.identity([]);return v.rotate(a,a,-t.rotation),i.applyTransform(v.mul([],a,t.getLocalTransform())),r.applyTransform(v.mul([],a,e.getLocalTransform())),i.intersect(r)}}function O(t){return"middle"===t||"center"===t}function P(t,e,n){var i=e.axis;if(e.get("axisTick.show")&&!i.scale.isBlank()){for(var r=e.getModel("axisTick"),o=r.getModel("lineStyle"),s=r.get("length"),l=i.getTicksCoords(),h=[],u=[],d=t._transform,f=[],p=0;po)l+=360*c;return[s,l]},coordToPoint:function(t){var e=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*e+this.cx,r=-Math.sin(n)*e+this.cy;return[i,r]}};var o=a;t.exports=o},fd63:function(t,e,n){var i=n("42e5"),r={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=(t.visualColorAccessPath||"itemStyle.color").split("."),a=t.get(r)||t.getColorFromPalette(t.name,null,e.getSeriesCount());if(n.setVisual("color",a),!e.isSeriesFiltered(t)){"function"!==typeof a||a instanceof i||n.each(function(e){n.setItemVisual(e,"color",a(t.getDataParams(e)))});var o=function(t,e){var n=t.getItemModel(e),i=n.get(r,!0);null!=i&&t.setItemVisual(e,"color",i)};return{dataEach:n.hasItemOption?o:null}}}};t.exports=r},fdde:function(t,e){var n={average:function(t){for(var e=0,n=0,i=0;ie&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n1)"string"===typeof o?l=n[o]:"function"===typeof o&&(l=o),l&&t.setData(a.downSample(a.mapDimension(h.dim),1/f,l,i))}}}}t.exports=r},fe21:function(t,e,n){var i=n("e86a"),r=n("2306"),a=["textStyle","color"],o={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(a):null)},getFont:function(){return r.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return i.getBoundingRect(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};t.exports=o},ff2e:function(t,e,n){var i=n("6d8b"),r=n("2306"),a=n("e86a"),o=n("eda2"),s=n("1687"),l=n("697e"),c=n("fab22");function h(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle(),e.fill=null):"shadow"===n&&(e=i.getAreaStyle(),e.stroke=null),e}function u(t,e,n,i,r){var s=n.get("value"),l=f(s,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get("label.precision"),formatter:n.get("label.formatter")}),c=n.getModel("label"),h=o.normalizeCssArray(c.get("padding")||0),u=c.getFont(),p=a.getBoundingRect(l,u),g=r.position,v=p.width+h[1]+h[3],m=p.height+h[0]+h[2],y=r.align;"right"===y&&(g[0]-=v),"center"===y&&(g[0]-=v/2);var x=r.verticalAlign;"bottom"===x&&(g[1]-=m),"middle"===x&&(g[1]-=m/2),d(g,v,m,i);var _=c.get("backgroundColor");_&&"auto"!==_||(_=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:v,height:m,r:c.get("borderRadius")},position:g.slice(),style:{text:l,textFont:u,textFill:c.getTextColor(),textPosition:"inside",fill:_,stroke:c.get("borderColor")||"transparent",lineWidth:c.get("borderWidth")||0,shadowBlur:c.get("shadowBlur"),shadowColor:c.get("shadowColor"),shadowOffsetX:c.get("shadowOffsetX"),shadowOffsetY:c.get("shadowOffsetY")},z2:10}}function d(t,e,n,i){var r=i.getWidth(),a=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,a)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function f(t,e,n,r,a){t=e.scale.parse(t);var o=e.scale.getLabel(t,{precision:a.precision}),s=a.formatter;if(s){var c={value:l.getAxisRawValue(e,t),seriesData:[]};i.each(r,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&c.seriesData.push(r)}),i.isString(s)?o=s.replace("{value}",o):i.isFunction(s)&&(o=s(c))}return o}function p(t,e,n){var i=s.create();return s.rotate(i,i,n.rotation),s.translate(i,i,n.position),r.applyTransform([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function g(t,e,n,i,r,a){var o=c.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get("label.margin"),u(e,i,r,a,{position:p(i.axis,t,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function v(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function m(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function y(t,e,n,i,r,a){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:a,clockwise:!0}}e.buildElStyle=h,e.buildLabelElOption=u,e.getValueLabel=f,e.getTransformedPosition=p,e.buildCartesianSingleLabelElOption=g,e.makeLineShape=v,e.makeRectShape=m,e.makeSectorShape=y},ffd6:function(t,e,n){var i=n("3729"),r=n("1310"),a="[object Symbol]";function o(t){return"symbol"==typeof t||r(t)&&i(t)==a}t.exports=o}}]); //# sourceMappingURL=chunk-03addcd9.64fd1552.js.map