=0?"p":"n",v=m[n],y=l[s][n][c],x=u[s][n][c];f.isHorizontal()?(i=y,o=v[1]+h,a=v[0]-x,r=d,u[s][n][c]+=a,Math.abs(a)t[1]&&(t[0]=t[1])},r.intervalScaleGetTicks=function(t,e,n,i){var o=[];if(!t)return o;e[0]1e4)return[];return e[1]>(o.length?o[o.length-1]:n[1])&&o.push(e[1]),o},t.exports=r},function(t,e,n){function i(){function t(e,i){if(i>=n.length)return e;for(var a=-1,r=e.length,s=n[i++],l={},u={};++a=n.length)return t;var r=[],s=i[a++];return o.each(t,function(t,n){r.push({key:n,values:e(t,a)})}),s?r.sort(function(t,e){return s(t.key,e.key)}):r}var n=[],i=[];return{key:function(t){return n.push(t),this},sortKeys:function(t){return i[n.length-1]=t,this},entries:function(n){return e(t(n,0),0)}}}var o=n(196);t.exports=i},function(t,e,n){var i=n(196),o={get:function(t,e,n){var o=i.clone((a[t]||{})[e]);return n&&i.isArray(o)?o[o.length-1]:o}},a={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};t.exports=o},function(t,e,n){"use strict";var i=n(345),o=n(238),a=n(287),r=n(618),s=n(196),l=function(t){a.call(this,t),o.call(this,t),r.call(this,t),this.id=t.id||i()};l.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var n=this[t];n||(n=this[t]=[]),n[0]=e[0],n[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(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;n.5?e:t}function s(t,e,n,i,o){var r=t.length;if(1==o)for(var s=0;so)t.length=o;else for(var a=i;a=0&&!(I[n]<=e);n--);n=Math.min(n,x-2)}else{for(n=G;ne);n++);n=Math.min(n-1,x-2)}G=n,F=e;var i=I[n+1]-I[n];if(0!==i)if(z=(e-I[n])/i,v)if(V=T[n],R=T[0===n?n:n-1],N=T[n>x-2?x-1:n+1],B=T[n>x-3?x-1:n+2],w)c(R,V,N,B,z,z*z,z*z*z,d(t,o),M);else{var l;if(S)l=c(R,V,N,B,z,z*z,z*z*z,H,1),l=f(H);else{if(A)return r(V,N,z);l=h(R,V,N,B,z,z*z,z*z*z)}p(t,o,l)}else if(w)s(T[n],T[n+1],z,d(t,o),M);else{var l;if(S)s(T[n],T[n+1],z,H,1),l=f(H);else{if(A)return r(T[n],T[n+1],z);l=a(T[n],T[n+1],z)}p(t,o,l)}},Z=new g({target:t._target,life:_,loop:t._loop,delay:t._delay,onframe:W,ondestroy:n});return e&&"spline"!==e&&(Z.easing=e),Z}}}var g=n(597),m=n(229),v=n(196),y=v.isArrayLike,x=Array.prototype.slice,_=function(t,e,n,a){this._tracks={},this._target=t,this._loop=e||!1,this._getter=n||i,this._setter=a||o,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};_.prototype={when:function(t,e){var n=this._tracks;for(var i in e)if(e.hasOwnProperty(i)){if(!n[i]){n[i]=[];var o=this._getter(this._target,i);if(null==o)continue;0!==t&&n[i].push({time:0,value:d(o)})}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;te+s&&r>i+s||rt+s&&a>n+s||ae+c&&u>o+c&&u>r+c||ut+c&&l>n+c&&l>a+c||le&&a>i||ao?r:0}},function(t,e){var n=function(){this.head=null,this.tail=null,this._len=0},i=n.prototype;i.insert=function(t){var e=new o(t);return this.insertEntry(e),e},i.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},i.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},i.len=function(){return this._len},i.clear=function(){this.head=this.tail=null,this._len=0};var o=function(t){this.value=t,this.next,this.prev},a=function(t){this._list=new n,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},r=a.prototype;r.put=function(t,e){var n=this._list,i=this._map,a=null;if(null==i[t]){var r=n.len(),s=this._lastRemovedEntry;if(r>=this._maxSize&&r>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new o(e),s.key=t,n.insertEntry(s),i[t]=s}return a},r.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},r.clear=function(){this._list.clear(),this._map={}},t.exports=a},function(t,e){var n=2311;t.exports=function(){return n++}},function(t,e,n){"use strict";var i=n(196),o=n(265),a=function(t,e,n,i,a,r){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==i?0:i,this.type="linear",this.global=r||!1,o.call(this,a)};a.prototype={constructor:a},i.inherits(a,o),t.exports=a},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")},t.exports=n},function(t,e){function n(t,e,n){var i=null==e.x?0:e.x,o=null==e.x2?1:e.x2,a=null==e.y?0:e.y,r=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,o=o*n.width+n.x,a=a*n.height+n.y,r=r*n.height+n.y),t.createLinearGradient(i,a,o,r)}function i(t,e,n){var i=n.width,o=n.height,a=Math.min(i,o),r=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(r=r*i+n.x,s=s*o+n.y,l*=a),t.createRadialGradient(r,s,0,r,s,l)}var o=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],a=function(t){this.extendFrom(t)};a.prototype={constructor:a,fill:"#000000",stroke:null,opacity:1,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,textFill:"#000",textStroke:null,textPosition:"inside",textOffset:null,textBaseline:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textTransform:!1,textRotation:0,blend:null,bind:function(t,e,n){for(var i=this,a=n&&n.style,r=!a,s=0;s0},extendFrom:function(t,e){if(t){var n=this;for(var i in t)!t.hasOwnProperty(i)||!e&&n.hasOwnProperty(i)||(n[i]=t[i])}},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,o){for(var a="radial"===e.type?i:n,r=a(t,e,o),s=e.colorStops,l=0;l=2){if(r&&"spline"!==r){var s=o(a,r,n,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var l=a.length,u=0;u<(n?l:l-1);u++){var c=s[2*u],h=s[2*u+1],d=a[(u+1)%l];t.bezierCurveTo(c[0],c[1],h[0],h[1],d[0],d[1])}}else{"spline"===r&&(a=i(a,n)),t.moveTo(a[0][0],a[0][1]);for(var u=1,f=a.length;u=0?parseFloat(t)/100*e:parseFloat(t):t}var o=n(227),a=n(205),r=new a,s=function(){};s.prototype={constructor:s,drawRectText:function(t,e,n){var a=this.style,s=a.text;if(null!=s&&(s+=""),s){t.save();var l,u,c=a.textPosition,h=a.textOffset,d=a.textDistance,f=a.textAlign,p=a.textFont||a.font,g=a.textBaseline,m=a.textVerticalAlign;n=n||o.getBoundingRect(s,p,f,g);var v=this.transform;if(a.textTransform?this.setTransform(t):v&&(r.copy(e),r.applyTransform(v),e=r),c instanceof Array){if(l=e.x+i(c[0],e.width),u=e.y+i(c[1],e.height),f=f||"left",g=g||"top",m){switch(m){case"middle":u-=n.height/2-n.lineHeight/2;break;case"bottom":u-=n.height-n.lineHeight/2;break;default:u+=n.lineHeight/2}g="middle"}}else{var y=o.adjustTextPositionOnRect(c,e,n,d);l=y.x,u=y.y,f=f||y.textAlign,g=g||y.textBaseline}h&&(l+=h[0],u+=h[1]),t.textAlign=f||"left",t.textBaseline=g||"alphabetic";var x=a.textFill,_=a.textStroke;x&&(t.fillStyle=x),_&&(t.strokeStyle=_),t.font=p||"12px sans-serif",t.shadowBlur=a.textShadowBlur,t.shadowColor=a.textShadowColor||"transparent",t.shadowOffsetX=a.textShadowOffsetX,t.shadowOffsetY=a.textShadowOffsetY;var b=s.split("\n");a.textRotation&&(v&&t.translate(v[4],v[5]),t.rotate(a.textRotation),v&&t.translate(-v[4],-v[5]));for(var w=0;w')}}catch(t){i=function(t){return r.createElement("<"+t+' xmlns="'+o+'" class="zrvml">')}}var l=function(){if(!s){s=!0;var t=r.styleSheets;t.length<31?r.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}};t.exports={doc:r,initVML:l,createNode:i}}},function(t,e,n){function i(t){delete f[t]}/*!
- * ZRender, a high performance 2d drawing library.
- *
- * Copyright (c) 2013, Baidu Inc.
- * All rights reserved.
- *
- * LICENSE
- * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
- */
-var o=n(345),a=n(208),r=n(196),s=n(592),l=n(595),u=n(596),c=n(603),h=!a.canvasSupported,d={canvas:n(594)},f={},p={};p.version="3.4.4",p.init=function(t,e){var n=new g(o(),t,e);return f[n.id]=n,n},p.dispose=function(t){if(t)t.dispose();else{for(var e in f)f.hasOwnProperty(e)&&f[e].dispose();f={}}return p},p.getInstance=function(t){return f[t]},p.registerPainter=function(t,e){d[t]=e};var g=function(t,e,n){n=n||{},this.dom=e,this.id=t;var i=this,o=new l,f=n.renderer;if(h){if(!d.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");f="vml"}else f&&d[f]||(f="canvas");var p=new d[f](e,o,n);this.storage=o,this.painter=p;var g=a.node?null:new c(p.getViewportRoot());this.handler=new s(o,p,g,p.root),this.animation=new u({stage:{update:r.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var m=o.delFromStorage,v=o.addToStorage;o.delFromStorage=function(t){m.call(o,t),t&&t.removeSelfFromZr(i)},o.addToStorage=function(t){v.call(o,t),t.addSelfToZr(i)}};g.prototype={constructor:g,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer(t,e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},flush:function(){this._needsRefresh&&this.refreshImmediately(),this._needsRefreshHover&&this.refreshHoverImmediately()},addHover:function(t,e){this.painter.addHover&&(this.painter.addHover(t,e),this.refreshHover())},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(t,e){return this.painter.pathToImage(t,e)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},findHover:function(t,e){return this.handler.findHover(t,e)},on:function(t,e,n){this.handler.on(t,e,n)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,i(this.id)}},t.exports=p},function(t,e,n){t.exports=n(197),n(407),n(356),n(428),n(443),n(433),n(416),n(451),n(384),n(380),n(376),n(423),n(438),n(362),n(367),n(373),n(411),n(397),n(427),n(446),n(492),n(493),n(494),n(532),n(245),n(509),n(490),n(315),n(316),n(471),n(478),n(522),n(480),n(536),n(501),n(500),n(499),n(513),n(523),n(624)},function(t,e,n){"use strict";function i(t){o.each(a,function(e){this[e]=o.bind(t[e],t)},this)}var o=n(196),a=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];t.exports=i},function(t,e,n){var i=n(196);n(277),n(357),n(358);var o=n(331),a=n(197);a.registerLayout(i.curry(o,"bar")),a.registerVisual(function(t){t.eachSeriesByType("bar",function(t){t.getData().setVisual("legendSymbol","roundRect")})}),n(248)},function(t,e,n){t.exports=n(291).extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect"})},function(t,e,n){"use strict";function i(t,e,n,i,o,a,r){var s=new u.Rect({shape:l.extend({},i)});if(a){var c=s.shape,h=o?"height":"width",d={};c[h]=0,d[h]=i[h],u[r?"updateProps":"initProps"](s,{shape:d},a,e)}return s}function o(t,e,n){n.style.text="",u.updateProps(n,{shape:{width:0}},e,t,function(){n.parent&&n.parent.remove(n)})}function a(t,e,n){var i=t.getItemLayout(e),o=s(n,i),a=i.width>0?1:-1,r=i.height>0?1:-1;return{x:i.x+a*o/2,y:i.y+r*o/2,width:i.width-a*o,height:i.height-r*o}}function r(t,e,n,i,o,a,r){var s=e.getItemVisual(n,"color"),h=e.getItemVisual(n,"opacity"),d=i.getModel("itemStyle.normal"),f=i.getModel("itemStyle.emphasis").getBarItemStyle();t.setShape("r",d.get("barBorderRadius")||0),t.useStyle(l.defaults({fill:s,opacity:h},d.getBarItemStyle()));var p=r?o.height>0?"bottom":"top":o.width>0?"left":"right";c.setLabel(t.style,f,i,s,a,n,p),u.setHoverStyle(t,f)}function s(t,e){var n=t.get(h)||0;return Math.min(n,Math.abs(e.width),Math.abs(e.height))}var l=n(196),u=n(198),c=n(292),h=["itemStyle","normal","barBorderWidth"];l.extend(n(204).prototype,n(361));var d=n(197).extendChartView({type:"bar",render:function(t,e,n){return"cartesian2d"===t.get("coordinateSystem")&&this._renderOnCartesian(t,e,n),this.group},dispose:l.noop,_renderOnCartesian:function(t,e,n){var s=this.group,l=t.getData(),c=this._data,h=t.coordinateSystem,d=h.getBaseAxis(),f=d.isHorizontal(),p=t.isAnimationEnabled()?t:null;l.diff(c).add(function(e){if(l.hasValue(e)){var n=l.getItemModel(e),o=a(l,e,n),u=i(l,e,n,o,f,p);l.setItemGraphicEl(e,u),s.add(u),r(u,l,e,n,o,t,f)}}).update(function(e,n){var o=c.getItemGraphicEl(n);if(!l.hasValue(e))return void s.remove(o);var h=l.getItemModel(e),d=a(l,e,h);o?u.updateProps(o,{shape:d},p,e):o=i(l,e,h,d,f,p,!0),l.setItemGraphicEl(e,o),s.add(o),r(o,l,e,h,d,t,f)}).remove(function(t){var e=c.getItemGraphicEl(t);e&&o(t,p,e)}).execute(),this._data=l},remove:function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(e){o(e.dataIndex,t,e)}):n.removeAll()}});t.exports=d},function(t,e,n){var i=n(291).extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(t){return t.stack=null,i.superApply(this,"getInitialData",arguments)}});t.exports=i},function(t,e,n){function i(t,e,n,i){var l=t.getItemLayout(e),u=n.get("symbolRepeat"),c=n.get("symbolClip"),h=n.get("symbolPosition")||"start",d=n.get("symbolRotate"),f=(d||0)*Math.PI/180||0,p=n.get("symbolPatternSize")||2,g=n.isAnimationEnabled(),m={dataIndex:e,layout:l,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",color:t.getItemVisual(e,"color"),symbolClip:c,symbolRepeat:u,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:p,rotation:f,animationModel:g?n:null,hoverAnimation:g&&n.get("hoverAnimation"),z2:n.getShallow("z",!0)||0};o(n,u,l,i,m),a(t,e,l,u,c,m.boundingLength,m.pxSign,p,i,m),r(n,m.symbolScale,f,i,m);var v=m.symbolSize,y=n.get("symbolOffset");return M.isArray(y)&&(y=[L(y[0],v[0]),L(y[1],v[1])]),s(n,v,l,u,c,y,h,m.valueLineWidth,m.boundingLength,m.repeatCutLength,i,m),m}function o(t,e,n,i,o){var a=i.valueDim,r=t.get("symbolBoundingData"),s=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=o.boundingLength=null!=r?s.toGlobalCoord(s.dataToCoord(s.scale.parse(r)))-l:e?i.coordSysExtent[a.index][1-+(n[a.wh]<=0)]-l:n[a.wh];e&&(o.repeatCutLength=n[a.wh]),o.pxSign=u>0?1:u<0?-1:0}function a(t,e,n,i,o,a,r,s,l,u){var c=l.valueDim,h=l.categoryDim,d=Math.abs(n[h.wh]),f=t.getItemVisual(e,"symbolSize");M.isArray(f)?f=f.slice():(null==f&&(f="100%"),f=[f,f]),f[h.index]=L(f[h.index],d),f[c.index]=L(f[c.index],i?d:Math.abs(a)),u.symbolSize=f,(u.symbolScale=[f[0]/s,f[1]/s])[c.index]*=(l.isHorizontal?-1:1)*r}function r(t,e,n,i,o){var a=t.get(P)||0;a&&(E.attr({scale:e.slice(),rotation:n}),E.updateTransform(),a/=E.getLineScale(),a*=e[i.valueDim.index]),o.valueLineWidth=a}function s(t,e,n,i,o,a,r,s,l,u,c,h){var d=c.categoryDim,f=c.valueDim,p=h.pxSign,g=Math.max(e[f.index]+s,0),m=g;if(i){var v=Math.abs(l),y=M.retrieve(t.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1)),y=L(y,e[f.index]);var _=Math.max(g+2*y,0),b=x?0:2*y,w=C.isNumeric(i),S=w?i:A((v+b)/_);y=(v-S*g)/2/(x?S:S-1),_=g+2*y,b=x?0:2*y,w||"fixed"===i||(S=u?A((Math.abs(u)+b)/_):0),m=S*_-b,h.repeatTimes=S,h.symbolMargin=y}var I=p*(m/2),T=h.pathPosition=[];T[d.index]=n[d.wh]/2,T[f.index]="start"===r?I:"end"===r?l-I:l/2,a&&(T[0]+=a[0],T[1]+=a[1]);var D=h.bundlePosition=[];D[d.index]=n[d.xy],D[f.index]=n[f.xy];var P=h.barRectShape=M.extend({},n);P[f.wh]=p*Math.max(Math.abs(n[f.wh]),Math.abs(T[f.index]+I)),P[d.wh]=n[d.wh];var k=h.clipShape={};k[d.xy]=-n[d.xy],k[d.wh]=c.ecSize[d.wh],k[f.xy]=0,k[f.wh]=n[f.wh]}function l(t){var e=t.symbolPatternSize,n=T.createSymbol(t.symbolType,-e/2,-e/2,e,e,t.color);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function u(t,e,n,i){function o(t){var e=h.slice(),i=n.pxSign,o=t;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(o=f-1-t),e[d.index]=g*(o-f/2+.5)+h[d.index],{position:e,scale:n.symbolScale.slice(),rotation:n.rotation}}function a(){b(t,function(t){t.trigger("emphasis")})}function r(){b(t,function(t){t.trigger("normal")})}var s=t.__pictorialBundle,u=n.symbolSize,c=n.valueLineWidth,h=n.pathPosition,d=e.valueDim,f=n.repeatTimes||0,p=0,g=u[e.valueDim.index]+c+2*n.symbolMargin;for(b(t,function(t){t.__pictorialAnimationIndex=p,t.__pictorialRepeatTimes=f,p0)],c=t.__pictorialBarRect;D.setLabel(c.style,l,a,i,e.seriesModel,o,u),I.setHoverStyle(c,l)}function A(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var M=n(196),I=n(198),T=n(220),C=n(199),D=n(292),L=C.parsePercent,P=["itemStyle","normal","borderWidth"],k=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],E=new I.Circle,O=n(197).extendChartView({type:"pictorialBar",render:function(t,e,n){var o=this.group,a=t.getData(),r=this._data,s=t.coordinateSystem,l=s.getBaseAxis(),u=!!l.isHorizontal(),c=s.grid.getRect(),h={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:s,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:u,valueDim:k[+u],categoryDim:k[1-u]};return a.diff(r).add(function(t){if(a.hasValue(t)){var e=f(a,t),n=i(a,t,e,h),r=v(a,h,n);a.setItemGraphicEl(t,r),o.add(r),S(r,h,n)}}).update(function(t,e){var n=r.getItemGraphicEl(e);if(!a.hasValue(t))return void o.remove(n);var s=f(a,t),l=i(a,t,s,h),u=_(a,l);n&&u!==n.__pictorialShapeStr&&(o.remove(n),a.setItemGraphicEl(t,null),n=null),n?y(n,h,l):n=v(a,h,l,!0),a.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=l,o.add(n),S(n,h,l)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&x(r,t,e.__pictorialSymbolMeta.animationModel,e)}).execute(),this._data=a,this.group},dispose:M.noop,remove:function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(e){x(i,e.dataIndex,t,e)}):n.removeAll()}});t.exports=O},function(t,e,n){var i=n(250)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);t.exports={getBarItemStyle:function(t){var e=i.call(this,t);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(e.lineDash=n)}return e}}},function(t,e,n){var i=n(197);n(363),n(364),i.registerVisual(n(366)),i.registerLayout(n(365))},function(t,e,n){"use strict";var i=n(196),o=n(209),a=n(251),r=o.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],valueDimensions:["min","Q1","median","Q3","max"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{normal:{color:"#fff",borderWidth:1},emphasis:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});i.mixin(r,a.seriesModelMixin,!0),t.exports=r},function(t,e,n){"use strict";function i(t,e,n){var i=e.getItemModel(n),o=i.getModel(u),a=e.getItemVisual(n,"color"),s=o.getItemStyle(["borderColor"]),l=t.childAt(t.whiskerIndex);l.style.set(s),l.style.stroke=a,l.dirty();var h=t.childAt(t.bodyIndex);h.style.set(s),h.style.stroke=a,h.dirty();var d=i.getModel(c).getItemStyle();r.setHoverStyle(t,d)}var o=n(196),a=n(232),r=n(198),s=n(251),l=a.extend({type:"boxplot",getStyleUpdater:function(){return i},dispose:o.noop});o.mixin(l,s.viewMixin,!0);var u=["itemStyle","normal"],c=["itemStyle","emphasis"];t.exports=l},function(t,e,n){function i(t){var e=[],n=[];return t.eachSeriesByType("boxplot",function(t){var i=t.getBaseAxis(),o=r.indexOf(n,i);o<0&&(o=n.length,n[o]=i,e[o]={axis:i,seriesModels:[]}),e[o].seriesModels.push(t)}),e}function o(t){var e,n,i=t.axis,o=t.seriesModels,a=o.length,s=t.boxWidthList=[],c=t.boxOffsetList=[],h=[];if("category"===i.type)n=i.getBandWidth();else{var d=0;u(o,function(t){d=Math.max(d,t.getData().count())}),e=i.getExtent(),Math.abs(e[1]-e[0])}u(o,function(t){var e=t.get("boxWidth");r.isArray(e)||(e=[e,e]),h.push([l(e[0],n)||0,l(e[1],n)||0])});var f=.8*n-2,p=f/a*.3,g=(f-p*(a-1))/a,m=g/2-f/2;u(o,function(t,e){c.push(m),m+=p+g,s.push(Math.min(Math.max(g,h[e][0]),h[e][1]))})}function a(t,e,n){var i=t.coordinateSystem,o=t.getData(),a=t.dimensions,r=t.get("layout"),s=n/2;o.each(a,function(){function t(t){var n=[];n[f]=h,n[p]=t;var o;return isNaN(h)||isNaN(t)?o=[NaN,NaN]:(o=i.dataToPoint(n),o[f]+=e),o}function n(t,e){var n=t.slice(),i=t.slice();n[f]+=s,i[f]-=s,e?x.push(n,i):x.push(i,n)}function l(t){var e=[t.slice(),t.slice()];e[0][f]-=s,e[1][f]+=s,y.push(e)}var u=arguments,c=a.length,h=u[0],d=u[c],f="horizontal"===r?0:1,p=1-f,g=t(u[3]),m=t(u[1]),v=t(u[5]),y=[[m,t(u[2])],[v,t(u[4])]];l(m),l(v),l(g);var x=[];n(y[0][1],0),n(y[1][1],1),o.setItemLayout(d,{chartLayout:r,initBaseline:g[p],median:g,bodyEnds:x,whiskerEnds:y})})}var r=n(196),s=n(199),l=s.parsePercent,u=r.each;t.exports=function(t){var e=i(t);u(e,function(t){var e=t.seriesModels;e.length&&(o(t),u(e,function(e,n){a(e,t.boxOffsetList[n],t.boxWidthList[n])}))})}},function(t,e){var n=["itemStyle","normal","borderColor"];t.exports=function(t,e){var i=t.get("color");t.eachRawSeriesByType("boxplot",function(e){var o=i[e.seriesIndex%i.length],a=e.getData();a.setVisual({legendSymbol:"roundRect",color:e.get(n)||o}),t.isSeriesFiltered(e)||a.each(function(t){var e=a.getItemModel(t);a.setItemVisual(t,{color:e.get(n,!0)})})})}},function(t,e,n){var i=n(197);n(368),n(369),i.registerPreprocessor(n(372)),i.registerVisual(n(371)),i.registerLayout(n(370))},function(t,e,n){"use strict";var i=n(196),o=n(209),a=n(251),r=n(200),s=r.encodeHTML,l=r.addCommas,u=o.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],valueDimensions:["open","close","lowest","highest"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,itemStyle:{normal:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},formatTooltip:function(t,e){var n=i.map(this.valueDimensions,function(e){return s(e+": "+l(this.getData().get(e,t)))},this).join("
"),o=[];return null!=this.name&&o.push(s(this.name)),null!=n&&o.push(n),o.join("
")},brushSelector:function(t,e,n){var i=e.getItemLayout(t);return n.rect(i.brushRect)}});i.mixin(u,a.seriesModelMixin,!0),t.exports=u},function(t,e,n){"use strict";function i(t,e,n){var i=e.getItemModel(n),o=i.getModel(u),a=e.getItemVisual(n,"color"),s=e.getItemVisual(n,"borderColor")||a,l=o.getItemStyle(["color","color0","borderColor","borderColor0"]),h=t.childAt(t.whiskerIndex);h.useStyle(l),h.style.stroke=s;var d=t.childAt(t.bodyIndex);d.useStyle(l),d.style.fill=a,d.style.stroke=s;var f=i.getModel(c).getItemStyle();r.setHoverStyle(t,f)}var o=n(196),a=n(232),r=n(198),s=n(251),l=a.extend({type:"candlestick",getStyleUpdater:function(){return i},dispose:o.noop});o.mixin(l,s.viewMixin,!0);var u=["itemStyle","normal"],c=["itemStyle","emphasis"];t.exports=l},function(t,e,n){function i(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),s=a(o(t.get("barMaxWidth"),r),r),l=a(o(t.get("barMinWidth"),1),r),u=t.get("barWidth");return null!=u?a(u,r):Math.max(Math.min(r/2,s),l)}var o=n(196).retrieve,a=n(199).parsePercent;t.exports=function(t){t.eachSeriesByType("candlestick",function(t){var e=t.coordinateSystem,n=t.getData(),o=t.dimensions,a=t.get("layout"),r=i(t,n);n.each(o,function(){function t(t){var n=[];return n[h]=u,n[d]=t,isNaN(u)||isNaN(t)?[NaN,NaN]:e.dataToPoint(n)}function i(t,e){var n=t.slice(),i=t.slice();n[h]+=r/2,i[h]-=r/2,e?A.push(n,i):A.push(i,n)}var s=arguments,l=o.length,u=s[0],c=s[l],h="horizontal"===a?0:1,d=1-h,f=s[1],p=s[2],g=s[3],m=s[4],v=Math.min(f,p),y=Math.max(f,p),x=t(v),_=t(y),b=t(g),w=t(m),S=[[w,_],[b,x]],A=[];i(_,0),i(x,1),n.setItemLayout(c,{chartLayout:a,sign:f>p?-1:fp?_[d]:x[d],bodyEnds:A,whiskerEnds:S,brushRect:function(){var e=t(Math.min(f,p,g,m)),n=t(Math.max(f,p,g,m));return e[h]-=r/2,n[h]-=r/2,{x:e[0],y:e[1],width:d?r:n[0]-e[0],height:d?n[1]-e[1]:r}}()})},!0)})}},function(t,e){var n=["itemStyle","normal","borderColor"],i=["itemStyle","normal","borderColor0"],o=["itemStyle","normal","color"],a=["itemStyle","normal","color0"];t.exports=function(t,e){t.eachRawSeriesByType("candlestick",function(e){var r=e.getData();r.setVisual({legendSymbol:"roundRect"}),t.isSeriesFiltered(e)||r.each(function(t){var e=r.getItemModel(t),s=r.getItemLayout(t).sign;r.setItemVisual(t,{color:e.get(s>0?o:a),borderColor:e.get(s>0?n:i)})})})}},function(t,e,n){var i=n(196);t.exports=function(t){t&&i.isArray(t.series)&&i.each(t.series,function(t){i.isObject(t)&&"k"===t.type&&(t.type="candlestick")})}},function(t,e,n){var i=n(196),o=n(197);n(374),n(375),o.registerVisual(i.curry(n(242),"effectScatter","circle",null)),o.registerLayout(i.curry(n(279),"effectScatter"))},function(t,e,n){"use strict";var i=n(234),o=n(209);t.exports=o.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(t,e){return i(t.data,this,e)},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}})},function(t,e,n){var i=n(244),o=n(402);n(197).extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new i(o)},render:function(t,e,n){var i=t.getData(),o=this._symbolDraw;o.updateData(i),this.group.add(o.group)},updateLayout:function(){this._symbolDraw.updateLayout()},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(e)},dispose:function(){}})},function(t,e,n){var i=n(196),o=n(197);n(377),n(378),o.registerVisual(i.curry(n(282),"funnel")),o.registerLayout(n(379)),o.registerProcessor(i.curry(n(258),"funnel"))},function(t,e,n){"use strict";var i=n(206),o=n(201),a=n(219),r=n(197).extendSeriesModel({type:"series.funnel",init:function(t){r.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this._defaultLabelLine(t)},getInitialData:function(t,e){var n=a(["value"],t.data),o=new i(n,this);return o.initData(t.data),o},_defaultLabelLine:function(t){o.defaultEmphasis(t.labelLine,["show"]);var e=t.labelLine.normal,n=t.labelLine.emphasis;e.show=e.show&&t.label.normal.show,n.show=n.show&&t.label.emphasis.show},getDataParams:function(t){var e=this.getData(),n=r.superCall(this,"getDataParams",t),i=e.getSum("value");return n.percent=i?+(e.get("value",t)/i*100).toFixed(2):0,n.$vars.push("percent"),n},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{normal:{show:!0,position:"outer"},emphasis:{show:!0}},labelLine:{normal:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},emphasis:{}},itemStyle:{normal:{borderColor:"#fff",borderWidth:1},emphasis:{}}}});t.exports=r},function(t,e,n){function i(t,e){function n(){r.ignore=r.hoverIgnore,s.ignore=s.hoverIgnore}function i(){r.ignore=r.normalIgnore,s.ignore=s.normalIgnore}a.Group.call(this);var o=new a.Polygon,r=new a.Polyline,s=new a.Text;this.add(o),this.add(r),this.add(s),this.updateData(t,e,!0),this.on("emphasis",n).on("normal",i).on("mouseover",n).on("mouseout",i)}function o(t,e,n,i){var o=i.getModel("textStyle"),a=i.get("position"),s="inside"===a||"inner"===a||"center"===a;return{fill:o.getTextColor()||(s?"#fff":t.getItemVisual(e,"color")),textFont:o.getFont(),text:r.retrieve(t.hostModel.getFormattedLabel(e,n),t.getName(e))}}var a=n(198),r=n(196),s=i.prototype,l=["itemStyle","normal","opacity"];s.updateData=function(t,e,n){var i=this.childAt(0),o=t.hostModel,s=t.getItemModel(e),u=t.getItemLayout(e),c=t.getItemModel(e).get(l);c=null==c?1:c,i.useStyle({}),n?(i.setShape({points:u.points}),i.setStyle({opacity:0}),a.initProps(i,{style:{opacity:c}},o,e)):a.updateProps(i,{style:{opacity:c},shape:{points:u.points}},o,e);var h=s.getModel("itemStyle"),d=t.getItemVisual(e,"color");i.setStyle(r.defaults({lineJoin:"round",fill:d},h.getModel("normal").getItemStyle(["opacity"]))),i.hoverStyle=h.getModel("emphasis").getItemStyle(),this._updateLabel(t,e),a.setHoverStyle(this)},s._updateLabel=function(t,e){var n=this.childAt(1),i=this.childAt(2),r=t.hostModel,s=t.getItemModel(e),l=t.getItemLayout(e),u=l.label,c=t.getItemVisual(e,"color");a.updateProps(n,{shape:{points:u.linePoints||u.linePoints}},r,e),a.updateProps(i,{style:{x:u.x,y:u.y}},r,e),i.attr({style:{textAlign:u.textAlign,textVerticalAlign:u.verticalAlign,textFont:u.font},rotation:u.rotation,origin:[u.x,u.y],z2:10});var h=s.getModel("label.normal"),d=s.getModel("label.emphasis"),f=s.getModel("labelLine.normal"),p=s.getModel("labelLine.emphasis");i.setStyle(o(t,e,"normal",h)),i.ignore=i.normalIgnore=!h.get("show"),i.hoverIgnore=!d.get("show"),n.ignore=n.normalIgnore=!f.get("show"),n.hoverIgnore=!p.get("show"),n.setStyle({stroke:c}),n.setStyle(f.getModel("lineStyle").getLineStyle()),i.hoverStyle=o(t,e,"emphasis",d),n.hoverStyle=p.getModel("lineStyle").getLineStyle()},r.inherits(i,a.Group);var u=n(232).extend({type:"funnel",render:function(t,e,n){var o=t.getData(),a=this._data,r=this.group;o.diff(a).add(function(t){var e=new i(o,t);o.setItemGraphicEl(t,e),r.add(e)}).update(function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t),r.add(n),o.setItemGraphicEl(t,n)}).remove(function(t){var e=a.getItemGraphicEl(t);r.remove(e)}).execute(),this._data=o},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});t.exports=u},function(t,e,n){function i(t,e){return r.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function o(t,e){for(var n=t.mapArray("value",function(t){return t}),i=[],o="ascending"===e,a=0,r=t.count();a=t&&(0===e?0:i[e-1][0]).4?"bottom":"middle",textAlign:k<-.4?"left":k>.4?"right":"center"},silent:!0});"auto"===V.style.fill&&V.setStyle({fill:i(P/b)}),d.add(V)}if(x.get("show")&&P!==b){for(var N=0;N<=w;N++){var k=Math.cos(M),E=Math.sin(M),B=new r.Line({shape:{x1:k*g+f,y1:E*g+p,x2:k*(g-A)+f,y2:E*(g-A)+p},silent:!0,style:D});"auto"===D.stroke&&B.setStyle({stroke:i((P+N/w)/b)}),d.add(B),M+=T}M-=T}else M+=I}},_renderPointer:function(t,e,n,i,o,u,c,h){var d=this.group,f=this._data;if(!t.get("pointer.show"))return void(f&&f.eachItemGraphicEl(function(t){d.remove(t)}));var p=[+t.get("min"),+t.get("max")],g=[u,c],m=t.getData();m.diff(f).add(function(e){var n=new a({shape:{angle:u}});r.initProps(n,{shape:{angle:s.linearMap(m.get("value",e),p,g,!0)}},t),d.add(n),m.setItemGraphicEl(e,n)}).update(function(e,n){var i=f.getItemGraphicEl(n);r.updateProps(i,{shape:{angle:s.linearMap(m.get("value",e),p,g,!0)}},t),d.add(i),m.setItemGraphicEl(e,i)}).remove(function(t){var e=f.getItemGraphicEl(t);d.remove(e)}).execute(),m.eachItemGraphicEl(function(t,e){var n=m.getItemModel(e),a=n.getModel("pointer");t.setShape({x:o.cx,y:o.cy,width:l(a.get("width"),o.r),r:l(a.get("length"),o.r)}),t.useStyle(n.getModel("itemStyle.normal").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",i(s.linearMap(m.get("value",e),p,[0,1],!0))),r.setHoverStyle(t,n.getModel("itemStyle.emphasis").getItemStyle())}),this._data=m},_renderTitle:function(t,e,n,i,o){var a=t.getModel("title");if(a.get("show")){var u=a.getModel("textStyle"),c=a.get("offsetCenter"),h=o.cx+l(c[0],o.r),d=o.cy+l(c[1],o.r),f=new r.Text({style:{x:h,y:d,text:t.getData().getName(0),fill:u.getTextColor(),textFont:u.getFont(),textAlign:"center",textVerticalAlign:"middle"}});if("auto"===f.style.fill){var p=+t.get("min"),g=+t.get("max"),m=t.getData().get("value",0);f.setStyle("fill",i(s.linearMap(m,[p,g],[0,1],!0)))}this.group.add(f)}},_renderDetail:function(t,e,n,i,a){var u=t.getModel("detail"),c=+t.get("min"),h=+t.get("max");if(u.get("show")){var d=u.getModel("textStyle"),f=u.get("offsetCenter"),p=a.cx+l(f[0],a.r),g=a.cy+l(f[1],a.r),m=l(u.get("width"),a.r),v=l(u.get("height"),a.r),y=t.getData().get("value",0),x=new r.Rect({shape:{x:p-m/2,y:g-v/2,width:m,height:v},style:{text:o(y,u.get("formatter")),fill:u.get("backgroundColor"),textFill:d.getTextColor(),textFont:d.getFont()}});"auto"===x.style.textFill&&x.setStyle("textFill",i(s.linearMap(y,[c,h],[0,1],!0))),x.setStyle(u.getItemStyle(["color"])),this.group.add(x)}}});t.exports=c},function(t,e,n){t.exports=n(210).extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(t,e){var n=Math.cos,i=Math.sin,o=e.r,a=e.width,r=e.angle,s=e.x-n(r)*a*(a>=o/3?1:2),l=e.y-i(r)*a*(a>=o/3?1:2);r=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(r)*a,e.y+i(r)*a),t.lineTo(e.x+n(e.angle)*o,e.y+i(e.angle)*o),t.lineTo(e.x-n(r)*a,e.y-i(r)*a),t.lineTo(s,l)}})},function(t,e,n){var i=n(197),o=n(196);n(385),n(386),n(395),i.registerProcessor(n(388)),i.registerVisual(o.curry(n(242),"graph","circle",null)),i.registerVisual(n(389)),i.registerVisual(n(392)),i.registerLayout(n(396)),i.registerLayout(n(390)),i.registerLayout(n(394)),i.registerCoordinateSystem("graphView",{create:n(391)})},function(t,e,n){"use strict";var i=n(206),o=n(196),a=n(201),r=n(204),s=n(200),l=n(298),u=n(197).extendSeriesModel({type:"series.graph",init:function(t){u.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){u.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){u.superApply(this,"mergeDefaultAndTheme",arguments),a.defaultEmphasis(t.edgeLabel,a.LABEL_OPTIONS)},getInitialData:function(t,e){function n(t,n){function i(t){return t=this.parsePath(t),t&&"label"===t[0]?s:this.parentModel}t.wrapMethod("getItemModel",function(t){var e=a._categoriesModels,n=t.getShallow("category"),i=e[n];return i&&(i.parentModel=t.parentModel,t.parentModel=i),t});var o=a.getModel("edgeLabel"),s=new r({label:o.option},o.parentModel,e);n.wrapMethod("getItemModel",function(t){return t.customizeGetParent(i),t})}var i=t.edges||t.links||[],o=t.data||t.nodes||[],a=this;if(o&&i)return l(o,i,this,!0,n).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,n){if("edge"===n){var i=this.getData(),o=this.getDataParams(t,n),a=i.graph.getEdgeByIndex(t),r=i.getName(a.node1.dataIndex),l=i.getName(a.node2.dataIndex),c=[];return null!=r&&c.push(r),null!=l&&c.push(l),c=s.encodeHTML(c.join(" > ")),o.value&&(c+=" : "+s.encodeHTML(o.value)),c}return u.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=o.map(this.option.categories||[],function(t){return null!=t.value?t:o.extend({value:0},t)}),e=new i(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t,!0)})},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return u.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{normal:{position:"middle"},emphasis:{}},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{normal:{show:!1,formatter:"{b}"},emphasis:{show:!0}},itemStyle:{normal:{},emphasis:{}},lineStyle:{normal:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{}}}});t.exports=u},function(t,e,n){function i(t,e){return t.getVisual("opacity")||t.getModel().get(e)}var o=n(244),a=n(267),r=n(254),s=n(314),l=n(272),u=n(198),c=n(387),h=n(196),d=["itemStyle","normal","opacity"],f=["lineStyle","normal","opacity"];n(197).extendChartView({type:"graph",init:function(t,e){var n=new o,i=new a,s=this.group;this._controller=new r(e.getZr()),this._controllerHost={target:s},s.add(n.group),s.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},render:function(t,e,n){var i=t.coordinateSystem;this._model=t,this._nodeScaleRatio=t.get("nodeScaleRatio");var o=this._symbolDraw,a=this._lineDraw,r=this.group;if("view"===i.type){var s={position:i.position,scale:i.scale};this._firstRender?r.attr(s):u.updateProps(r,s,t)}c(t.getGraph(),this._getNodeGlobalScale(t));var l=t.getData();o.updateData(l);var h=t.getEdgeData();a.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var d=t.forceLayout,f=t.get("force.layoutAnimation");d&&this._startForceLayoutIteration(d,f),l.eachItemGraphicEl(function(e,i){var o=l.getItemModel(i);e.off("drag").off("dragend");var a=l.getItemModel(i).get("draggable");a&&e.on("drag",function(){d&&(d.warmUp(),!this._layouting&&this._startForceLayoutIteration(d,f),d.setFixed(i),l.setItemLayout(i,e.position))},this).on("dragend",function(){d&&d.setUnfixed(i)},this),e.setDraggable(a&&d),e.off("mouseover",e.__focusNodeAdjacency),e.off("mouseout",e.__unfocusNodeAdjacency),o.get("focusNodeAdjacency")&&(e.on("mouseover",e.__focusNodeAdjacency=function(){n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.on("mouseout",e.__unfocusNodeAdjacency=function(){n.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t.id})}))},this);var p="circular"===t.get("layout")&&t.get("circular.rotateLabel"),g=l.getLayout("cx"),m=l.getLayout("cy");l.eachItemGraphicEl(function(t,e){var n=t.getSymbolPath();if(p){var i=l.getItemLayout(e),o=Math.atan2(i[1]-m,i[0]-g);o<0&&(o=2*Math.PI+o);var a=i[0]=0?i+=g:i-=g:_>=0?i-=g:i+=g}return i}var o=n(233),a=n(202),r=[],s=[],l=[],u=o.quadraticAt,c=a.distSquare,h=Math.abs;t.exports=function(t,e){function n(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),e}var r=[],s=o.quadraticSubdivide,l=[[],[],[]],u=[[],[]],c=[];e/=2,t.eachEdge(function(t,o){var h=t.getLayout(),d=t.getVisual("fromSymbol"),f=t.getVisual("toSymbol");h.__original||(h.__original=[a.clone(h[0]),a.clone(h[1])],h[2]&&h.__original.push(a.clone(h[2])));var p=h.__original;if(null!=h[2]){if(a.copy(l[0],p[0]),a.copy(l[1],p[2]),a.copy(l[2],p[1]),d&&"none"!=d){var g=n(t.node1),m=i(l,p[0],g*e);s(l[0][0],l[1][0],l[2][0],m,r),l[0][0]=r[3],l[1][0]=r[4],s(l[0][1],l[1][1],l[2][1],m,r),l[0][1]=r[3],l[1][1]=r[4]}if(f&&"none"!=f){var g=n(t.node2),m=i(l,p[1],g*e);s(l[0][0],l[1][0],l[2][0],m,r),l[1][0]=r[1],l[2][0]=r[2],s(l[0][1],l[1][1],l[2][1],m,r),l[1][1]=r[1],l[2][1]=r[2]}a.copy(h[0],l[0]),a.copy(h[1],l[2]),a.copy(h[2],l[1])}else{if(a.copy(u[0],p[0]),a.copy(u[1],p[1]),a.sub(c,u[1],u[0]),a.normalize(c,c),d&&"none"!=d){var g=n(t.node1);a.scaleAndAdd(u[0],u[0],c,g*e)}if(f&&"none"!=f){var g=n(t.node2);a.scaleAndAdd(u[1],u[1],c,-g*e)}a.copy(h[0],u[0]),a.copy(h[1],u[1])}})}},function(t,e){t.exports=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),i=t.getGraph(),o=i.data,a=n.mapArray(n.getName);o.filterSelf(function(t){var n=o.getItemModel(t),i=n.getShallow("category");if(null!=i){"number"==typeof i&&(i=a[i]);for(var r=0;r0){var T=a(y)?s:l;y>0&&(y=y*M+S),_[b++]=T[I],_[b++]=T[I+1],_[b++]=T[I+2],_[b++]=T[I+3]*y*256}else b+=4}return h.putImageData(x,0,0),c},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=o.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},_getGradient:function(t,e,n){for(var i=this._gradientPixels,o=i[n]||(i[n]=new Uint8ClampedArray(1024)),a=[0,0,0,0],r=0,s=0;s<256;s++)e[n](s/255,!0,a),o[r++]=a[0],o[r++]=a[1],o[r++]=a[2],o[r++]=a[3];return o}},t.exports=i},function(t,e,n){var i=n(209),o=n(234);t.exports=i.extend({type:"series.heatmap",getInitialData:function(t,e){return o(t.data,this,e)},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}})},function(t,e,n){function i(t,e,n){var i=t[1]-t[0];e=l.map(e,function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}});var o=e.length,a=0;return function(t){for(var i=a;i=0;i--){var r=e[i].interval;if(r[0]<=t&&t<=r[1]){a=i;break}}return i>=0&&i=e[0]&&t<=e[1]}}function a(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var r=n(198),s=n(398),l=n(196);t.exports=n(197).extendChartView({type:"heatmap",render:function(t,e,n){var i;if(e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(n){n===t&&(i=e)})}),__DEV__&&!i)throw new Error("Heatmap must use with visualMap");this.group.removeAll();var o=t.coordinateSystem;"cartesian2d"===o.type||"calendar"===o.type?this._renderOnCartesianAndCalendar(o,t,n):a(o)&&this._renderOnGeo(o,t,i,n)},dispose:function(){},_renderOnCartesianAndCalendar:function(t,e,n){if("cartesian2d"===t.type){var i=t.getAxis("x"),o=t.getAxis("y");if(__DEV__){if("category"!==i.type||"category"!==o.type)throw new Error("Heatmap on cartesian must have two category axes");if(!i.onBand||!o.onBand)throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}var a=i.getBandWidth(),s=o.getBandWidth()}var u=this.group,c=e.getData(),h=e.getModel("itemStyle.normal").getItemStyle(["color"]),d=e.getModel("itemStyle.emphasis").getItemStyle(),f=e.getModel("label.normal"),p=e.getModel("label.emphasis");c.each("cartesian2d"===t.type?["x","y","z"]:["time","value"],function(n,i,o,g){var m;if("cartesian2d"===t.type){if(isNaN(o))return;var v=t.dataToPoint([n,i]);m=new r.Rect({shape:{x:v[0]-a/2,y:v[1]-s/2,width:a,height:s},style:{fill:c.getItemVisual(g,"color"),opacity:c.getItemVisual(g,"opacity")}})}else{if(isNaN(i))return;g=o,m=new r.Rect({z2:1,shape:t.dataToRect([n,i]).contentShape,style:{fill:c.getItemVisual(g,"color"),opacity:c.getItemVisual(g,"opacity")}})}var y=c.getItemModel(g);c.hasItemOption&&(h=y.getModel("itemStyle.normal").getItemStyle(["color"]),d=y.getModel("itemStyle.emphasis").getItemStyle(),f=y.getModel("label.normal"),p=y.getModel("label.emphasis"));var x=e.getRawValue(g),_="-";x&&null!=x[2]&&(_=x[2]),f.getShallow("show")&&(r.setText(h,f),h.text=e.getFormattedLabel(g,"normal")||_),p.getShallow("show")&&(r.setText(d,p),d.text=e.getFormattedLabel(g,"emphasis")||_),m.setStyle(h),r.setHoverStyle(m,c.hasItemOption?d:l.extend({},d)),u.add(m),c.setItemGraphicEl(g,m)})},_renderOnGeo:function(t,e,n,a){var l=n.targetVisuals.inRange,u=n.targetVisuals.outOfRange,c=e.getData(),h=this._hmLayer||this._hmLayer||new s;h.blurSize=e.get("blurSize"),h.pointSize=e.get("pointSize"),h.minOpacity=e.get("minOpacity"),h.maxOpacity=e.get("maxOpacity");var d=t.getViewRect().clone(),f=t.getRoamTransform().transform;d.applyTransform(f);var p=Math.max(d.x,0),g=Math.max(d.y,0),m=Math.min(d.width+d.x,a.getWidth()),v=Math.min(d.height+d.y,a.getHeight()),y=m-p,x=v-g,_=c.mapArray(["lng","lat","value"],function(e,n,i){var o=t.dataToPoint([e,n]);return o[0]-=p,o[1]-=g,o.push(i),o}),b=n.getExtent(),w="visualMap.continuous"===n.type?o(b,n.option.range):i(b,n.getPieceList(),n.option.selected);h.update(_,y,x,l.color.getNormalizer(),{inRange:l.color.getColorMapper(),outOfRange:u.color.getColorMapper()},w);var S=new r.Image({style:{width:y,height:x,x:p,y:g,image:h.canvas},silent:!0});this.group.add(S)}})},function(t,e,n){function i(t,e,n){r.call(this,t,e,n),this._lastFrame=0,this._lastFramePercent=0}var o=n(297),a=n(196),r=n(296),s=n(202),l=i.prototype;l.createLine=function(t,e,n){return new o(t,e,n)},l.updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,o=1;o=0&&!(i[a]<=e);a--);a=Math.min(a,o-2)}else{for(var a=r;ae);a++);a=Math.min(a-1,o-2)}s.lerp(t.position,n[a],n[a+1],(e-i[a])/(i[a+1]-i[a]));var u=n[a+1][0]-n[a][0],c=n[a+1][1]-n[a][1];t.rotation=-Math.atan2(c,u)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=e,t.ignore=!1}},a.inherits(i,r),t.exports=i},function(t,e,n){function i(t){return r.isArray(t)||(t=[+t,+t]),t}function o(t,e){t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?e.color:null,fill:"fill"===e.brushType?e.color:null}})})}function a(t,e){h.call(this);var n=new c(t,e),i=new h;this.add(n),this.add(i),i.beforeUpdate=function(){this.attr(n.getScale())},this.updateData(t,e)}var r=n(196),s=n(220),l=n(198),u=n(199),c=n(268),h=l.Group,d=a.prototype;d.stopEffectAnimation=function(){this.childAt(1).removeAll()},d.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=this.childAt(1),a=0;a<3;a++){var r=s.createSymbol(e,-1,-1,2,2,n);r.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var l=-a/3*t.period+t.effectOffset;r.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(l).start(),r.animateStyle(!0).when(t.period,{opacity:0}).delay(l).start(),i.add(r)}o(i,t)},d.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale"],a=0;a2?t.quadraticCurveTo(a[2][0],a[2][1],a[1][0],a[1][1]):t.lineTo(a[1][0],a[1][1])}},findDataIndex:function(t,e){for(var n=this.shape,i=n.segs,o=n.polyline,s=Math.max(this.style.lineWidth,1),l=0;l2){if(a.containStroke(u[0][0],u[0][1],u[2][0],u[2][1],u[1][0],u[1][1],s,t,e))return l}else if(r.containStroke(u[0][0],u[0][1],u[1][0],u[1][1],s,t,e))return l}return-1}}),l=i.prototype;l.updateData=function(t){this.group.removeAll();var e=this._lineEl,n=t.hostModel;e.setShape({segs:t.mapArray(t.getItemLayout),polyline:n.get("polyline")}),e.useStyle(n.getModel("lineStyle.normal").getLineStyle());var i=t.getVisual("color");i&&e.setStyle("stroke",i),e.setStyle("fill"),e.seriesIndex=n.seriesIndex,e.on("mousemove",function(t){e.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>0&&(e.dataIndex=n)}),this.group.add(e)},l.updateLayout=function(t){var e=t.getData();this._lineEl.setShape({segs:e.mapArray(e.getItemLayout)})},l.remove=function(){this.group.removeAll()},t.exports=i},function(t,e,n){function i(){this.group=new o.Group,this._symbolEl=new r({})}var o=n(198),a=n(220),r=o.extendShape({shape:{points:null,sizes:null},symbolProxy:null,buildPath:function(t,e){for(var n=e.points,i=e.sizes,o=this.symbolProxy,a=o.shape,r=0;r=0;a--){var r=i[a],s=o[a],l=r[0]-s[0]/2,u=r[1]-s[1]/2;if(t>=l&&e>=u&&t<=l+s[0]&&e<=u+s[1])return a}return-1}}),s=i.prototype;s.updateData=function(t){this.group.removeAll();var e=this._symbolEl,n=t.hostModel;e.setShape({points:t.mapArray(t.getItemLayout),sizes:t.mapArray(function(e){var n=t.getItemVisual(e,"symbolSize");return n instanceof Array||(n=[n,n]),n})}),e.symbolProxy=a.createSymbol(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor,e.useStyle(n.getModel("itemStyle.normal").getItemStyle(["color"]));var i=t.getVisual("color");i&&e.setColor(i),e.seriesIndex=n.seriesIndex,e.on("mousemove",function(t){e.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>0&&(e.dataIndex=n)}),this.group.add(e)},s.updateLayout=function(t){var e=t.getData();this._symbolEl.setShape({points:e.mapArray(e.getItemLayout)})},s.remove=function(){this.group.removeAll()},t.exports=i},function(t,e,n){function i(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var o=n(198),a=n(202),r=o.Line.prototype,s=o.BezierCurve.prototype;t.exports=o.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){(i(e)?r:s).buildPath(t,e)},pointAt:function(t){return i(this.shape)?r.pointAt.call(this,t):s.pointAt.call(this,t)},tangentAt:function(t){var e=this.shape,n=i(e)?[e.x2-e.x1,e.y2-e.y1]:s.tangentAt.call(this,t);return a.normalize(n,n)}})},function(t,e,n){function i(t,e,n,i){l.Group.call(this),this.bodyIndex,this.whiskerIndex,this.styleUpdater=n,this._createContent(t,e,i),this.updateData(t,e,i),this._seriesModel}function o(t,e,n){return s.map(t,function(t){return t=t.slice(),t[e]=n.initBaseline,t})}function a(t){var e={};return s.each(t,function(t,n){e["ends"+n]=t}),e}function r(t){this.group=new l.Group,this.styleUpdater=t}var s=n(196),l=n(198),u=n(210),c=u.extend({type:"whiskerInBox",shape:{},buildPath:function(t,e){for(var n in e)if(e.hasOwnProperty(n)&&0===n.indexOf("ends")){var i=e[n];t.moveTo(i[0][0],i[0][1]),t.lineTo(i[1][0],i[1][1])}}}),h=i.prototype;h._createContent=function(t,e,n){var i=t.getItemLayout(e),r="horizontal"===i.chartLayout?1:0,u=0;this.add(new l.Polygon({shape:{points:n?o(i.bodyEnds,r,i):i.bodyEnds},style:{strokeNoScale:!0},z2:100})),this.bodyIndex=u++;var h=s.map(i.whiskerEnds,function(t){return n?o(t,r,i):t});this.add(new c({shape:a(h),style:{strokeNoScale:!0},z2:100})),this.whiskerIndex=u++},h.updateData=function(t,e,n){var i=this._seriesModel=t.hostModel,o=t.getItemLayout(e),r=l[n?"initProps":"updateProps"];r(this.childAt(this.bodyIndex),{shape:{points:o.bodyEnds}},i,e),r(this.childAt(this.whiskerIndex),{shape:a(o.whiskerEnds)},i,e),this.styleUpdater.call(null,this,t,e)},s.inherits(i,l.Group);var d=r.prototype;d.updateData=function(t){var e=this.group,n=this._data,o=this.styleUpdater;t.diff(n).add(function(n){if(t.hasValue(n)){var a=new i(t,n,o,!0);t.setItemGraphicEl(n,a),e.add(a)}}).update(function(a,r){var s=n.getItemGraphicEl(r);if(!t.hasValue(a))return void e.remove(s);s?s.updateData(t,a):s=new i(t,a,o),e.add(s),t.setItemGraphicEl(a,s)}).remove(function(t){var i=n.getItemGraphicEl(t);i&&e.remove(i)}).execute(),this._data=t},d.remove=function(){var t=this.group,e=this._data;this._data=null,e&&e.eachItemGraphicEl(function(e){e&&t.remove(e)})},t.exports=r},function(t,e,n){var i=n(196),o=n(197),a=o.PRIORITY;n(408),n(409),o.registerVisual(i.curry(n(242),"line","circle","line")),o.registerLayout(i.curry(n(279),"line")),o.registerProcessor(a.PROCESSOR.STATISTIC,i.curry(n(586),"line")),n(248)},function(t,e,n){"use strict";var i=n(234),o=n(209);t.exports=o.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,e){if(__DEV__){var n=t.coordinateSystem;if("polar"!==n&&"cartesian2d"!==n)throw new Error("Line not support coordinateSystem besides cartesian and polar")}return i(t.data,this,e)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clipOverflow:!0,label:{normal:{position:"top"}},lineStyle:{normal:{width:2,type:"solid"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:!1,connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}})},function(t,e,n){"use strict";function i(t,e){if(t.length===e.length){for(var n=0;ne[0]?1:-1;e[0]+=i*n,e[1]-=i*n}return e}function r(t){return t>=0?1:-1}function s(t,e){var n=t.getBaseAxis(),i=t.getOtherAxis(n),o=n.onZero?0:i.scale.getExtent()[0],a=i.dim,s="x"===a||"radius"===a?1:0;return e.mapArray([a],function(i,l){for(var u,c=e.stackedOn;c&&r(c.get(a,l))===r(i);){u=c;break}var h=[];return h[s]=e.get(n.dim,l),h[1-s]=u?u.get(a,l,!0):o,t.dataToPoint(h)},!0)}function l(t,e,n){var i=a(t.getAxis("x")),o=a(t.getAxis("y")),r=t.getBaseAxis().isHorizontal(),s=Math.min(i[0],i[1]),l=Math.min(o[0],o[1]),u=Math.max(i[0],i[1])-s,c=Math.max(o[0],o[1])-l,h=n.get("lineStyle.normal.width")||2,d=n.get("clipOverflow")?h/2:Math.max(u,c);r?(l-=d,c+=2*d):(s-=d,u+=2*d);var f=new v.Rect({shape:{x:s,y:l,width:u,height:c}});return e&&(f.shape[r?"width":"height"]=0,v.initProps(f,{shape:{width:u,height:c}},n)),f}function u(t,e,n){var i=t.getAngleAxis(),o=t.getRadiusAxis(),a=o.getExtent(),r=i.getExtent(),s=Math.PI/180,l=new v.Sector({shape:{cx:t.cx,cy:t.cy,r0:a[0],r:a[1],startAngle:-r[0]*s,endAngle:-r[1]*s,clockwise:i.inverse}});return e&&(l.shape.endAngle=-r[0]*s,v.initProps(l,{shape:{endAngle:-r[1]*s}},n)),l}function c(t,e,n){return"polar"===t.type?u(t,e,n):l(t,e,n)}function h(t,e,n){for(var i=e.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,a=[],r=0;r=0;o--)if(n[o].dimension<2){i=n[o];break}if(!i||"cartesian2d"!==e.type)return void(__DEV__&&console.warn("Visual map on line style only support x or y dimension."));var a=i.dimension,r=t.dimensions[a],s=e.getAxis(r),l=f.map(i.stops,function(t){return{coord:s.toGlobalCoord(s.dataToCoord(t.value)),color:t.color}}),u=l.length,c=i.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),c.reverse());var h=l[0].coord-10,d=l[u-1].coord+10,p=d-h;if(p<.001)return"transparent";f.each(l,function(t){t.offset=(t.coord-h)/p}),l.push({offset:u?l[u-1].offset:.5,color:c[1]||"transparent"}),l.unshift({offset:u?l[0].offset:.5,color:c[0]||"transparent"});var g=new v.LinearGradient(0,0,0,0,l,!0);return g[r]=h,g[r+"2"]=d,g}}var f=n(196),p=n(244),g=n(268),m=n(410),v=n(198),y=n(201),x=n(299),_=n(232);t.exports=_.extend({type:"line",init:function(){var t=new v.Group,e=new p;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,n){var a=t.coordinateSystem,r=this.group,l=t.getData(),u=t.getModel("lineStyle.normal"),p=t.getModel("areaStyle.normal"),g=l.mapArray(l.getItemLayout,!0),m="polar"===a.type,v=this._coordSys,y=this._symbolDraw,x=this._polyline,_=this._polygon,b=this._lineGroup,w=t.get("animation"),S=!p.isEmpty(),A=s(a,l),M=t.get("showSymbol"),I=M&&!m&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(l,a),T=this._data;T&&T.eachItemGraphicEl(function(t,e){t.__temp&&(r.remove(t),T.setItemGraphicEl(e,null))}),M||y.remove(),r.add(b);var C=!m&&t.get("step");x&&v.type===a.type&&C===this._step?(S&&!_?_=this._newPolygon(g,A,a,w):_&&!S&&(b.remove(_),_=this._polygon=null),b.setClipPath(c(a,!1,t)),M&&y.updateData(l,I),l.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),i(this._stackedOnPoints,A)&&i(this._points,g)||(w?this._updateAnimation(l,A,a,n,C):(C&&(g=h(g,a,C),A=h(A,a,C)),x.setShape({points:g}),_&&_.setShape({points:g,stackedOnPoints:A})))):(M&&y.updateData(l,I),C&&(g=h(g,a,C),A=h(A,a,C)),x=this._newPolyline(g,a,w),S&&(_=this._newPolygon(g,A,a,w)),b.setClipPath(c(a,!0,t)));var D=d(l,a)||l.getVisual("color");x.useStyle(f.defaults(u.getLineStyle(),{fill:"none",stroke:D,lineJoin:"bevel"}));var L=t.get("smooth");if(L=o(t.get("smooth")),x.setShape({smooth:L,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),_){var P=l.stackedOn,k=0;if(_.useStyle(f.defaults(p.getAreaStyle(),{fill:D,opacity:.7,lineJoin:"bevel"})),P){k=o(P.hostModel.get("smooth"))}_.setShape({smooth:L,stackedOnSmooth:k,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=l,this._coordSys=a,this._stackedOnPoints=A,this._points=g,this._step=C},dispose:function(){},highlight:function(t,e,n,i){var o=t.getData(),a=y.queryDataIndex(o,i);if(!(a instanceof Array)&&null!=a&&a>=0){var r=o.getItemGraphicEl(a);if(!r){var s=o.getItemLayout(a);if(!s)return;r=new g(o,a),r.position=s,r.setZ(t.get("zlevel"),t.get("z")),r.ignore=isNaN(s[0])||isNaN(s[1]),r.__temp=!0,o.setItemGraphicEl(a,r),r.stopSymbolAnimation(!0),this.group.add(r)}r.highlight()}else _.prototype.highlight.call(this,t,e,n,i)},downplay:function(t,e,n,i){var o=t.getData(),a=y.queryDataIndex(o,i);if(null!=a&&a>=0){var r=o.getItemGraphicEl(a);r&&(r.__temp?(o.setItemGraphicEl(a,null),this.group.remove(r)):r.downplay())}else _.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new x.Polyline({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 x.Polygon({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_getSymbolIgnoreFunc:function(t,e){var n=e.getAxesByScale("ordinal")[0];if(n&&n.isLabelIgnored)return f.bind(n.isLabelIgnored,n)},_updateAnimation:function(t,e,n,i,o){var a=this._polyline,r=this._polygon,s=t.hostModel,l=m(this._data,t,this._stackedOnPoints,e,this._coordSys,n),u=l.current,c=l.stackedOnCurrent,d=l.next,f=l.stackedOnNext;o&&(u=h(l.current,n,o),c=h(l.stackedOnCurrent,n,o),d=h(l.next,n,o),f=h(l.stackedOnNext,n,o)),a.shape.__points=l.current,a.shape.points=u,v.updateProps(a,{shape:{points:d}},s),r&&(r.setShape({points:u,stackedOnPoints:c}),v.updateProps(r,{shape:{points:d,stackedOnPoints:f}},s));for(var p=[],g=l.status,y=0;y=0?1:-1}function i(t,e,i){for(var o,a=t.getBaseAxis(),r=t.getOtherAxis(a),s=a.onZero?0:r.scale.getExtent()[0],l=r.dim,u="x"===l||"radius"===l?1:0,c=e.stackedOn,h=e.get(l,i);c&&n(c.get(l,i))===n(h);){o=c;break}var d=[];return d[u]=e.get(a.dim,i),d[1-u]=o?o.get(l,i,!0):s,t.dataToPoint(d)}function o(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}t.exports=function(t,e,n,a,r,s){for(var l=o(t,e),u=[],c=[],h=[],d=[],f=[],p=[],g=[],m=s.dimensions,v=0;v "))},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,label:{normal:{show:!1,position:"end"}},lineStyle:{normal:{opacity:.5}}}})},function(t,e,n){var i=n(267),o=n(296),a=n(266),r=n(297),s=n(401),l=n(403);n(197).extendChartView({type:"lines",init:function(){},render:function(t,e,n){var u=t.getData(),c=this._lineDraw,h=t.get("effect.show"),d=t.get("polyline"),f=t.get("large")&&u.count()>=t.get("largeThreshold");__DEV__&&h&&f&&console.warn("Large lines not support effect"),h===this._hasEffet&&d===this._isPolyline&&f===this._isLarge||(c&&c.remove(),c=this._lineDraw=f?new l:new i(d?h?s:r:h?o:a),this._hasEffet=h,this._isPolyline=d,this._isLarge=f);var p=t.get("zlevel"),g=t.get("effect.trailLength"),m=n.getZr();if(m.painter.getLayer(p).clear(!0),null!=this._lastZlevel&&m.configLayer(this._lastZlevel,{motionBlur:!1}),h&&g){if(__DEV__){var v=!1;e.eachSeries(function(e){e!==t&&e.get("zlevel")===p&&(v=!0)}),v&&console.warn("Lines with trail effect should have an individual zlevel")}m.configLayer(p,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(g/10+.9,1),0)})}this.group.add(c.group),c.updateData(u),this._lastZlevel=p},updateLayout:function(t,e,n){this._lineDraw.updateLayout(t),n.getZr().painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw.remove(e,!0)},dispose:function(){}})},function(t,e){t.exports=function(t){t.eachSeriesByType("lines",function(t){var e=t.coordinateSystem,n=t.getData();n.each(function(i){var o=n.getItemModel(i),a=o.option instanceof Array?o.option:o.get("coords");if(__DEV__&&!(a instanceof Array&&a.length>0&&a[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(a)+". Lines must have 2d coords array in data item.");var r=[];if(t.get("polyline"))for(var s=0;s"+l(i+" : "+n)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{normal:{show:!1,textStyle:{color:"#000"}},emphasis:{show:!0,textStyle:{color:"rgb(100,0,0)"}}},itemStyle:{normal:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{areaColor:"rgba(255,215,0,0.8)"}}}});a.mixin(d,c),t.exports=d},function(t,e,n){var i=n(198),o=n(310);n(197).extendChartView({type:"map",render:function(t,e,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var a=this.group;if(a.removeAll(),!t.getHostGeoModel()){if(i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id){var r=this._mapDraw;r&&a.add(r.group)}else if(t.needsDrawMap){var r=this._mapDraw||new o(n,!0);a.add(r.group),r.draw(t,e,n,this,i),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,e,n){var o=t.originalData,a=this.group;o.each("value",function(e,n){if(!isNaN(e)){var r=o.getItemLayout(n);if(r&&r.point){var s=r.point,l=r.offset,u=new i.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:s[0]+9*l,cy:s[1],r:3},silent:!0,z2:10});if(!l){var c=t.mainSeries.getData(),h=o.getName(n),d=h,f=c.indexOfName(h),p=o.getItemModel(n),g=p.getModel("label.normal"),m=p.getModel("label.emphasis"),v=g.getModel("textStyle"),y=m.getModel("textStyle"),x=c.getItemGraphicEl(f);u.setStyle({textPosition:"bottom"});var _=function(){u.setStyle({text:m.get("show")?d:"",textFill:y.getTextColor(),textFont:y.getFont()})},b=function(){u.setStyle({text:g.get("show")?d:"",textFill:v.getTextColor(),textFont:v.getFont()})};x.on("mouseover",_).on("mouseout",b).on("emphasis",_).on("normal",b),b()}a.add(u)}}})}})},function(t,e,n){var i=n(196);t.exports=function(t){var e=[];i.each(t.series,function(t){"map"===t.type&&e.push(t)}),i.each(e,function(t){t.map=t.map||t.mapType,i.defaults(t,t.mapLocation)})}},function(t,e,n){function i(t,e){var n={},i=["value"];return o.each(t,function(t){t.each(i,function(e,i){var o=t.getName(i);n[o]=n[o]||[],isNaN(e)||n[o].push(e)})}),t[0].map(i,function(i,o){for(var a=t[0].getName(o),r=0,s=1/0,l=-1/0,u=n[a].length,c=0;c=0?e:NaN}})}function o(t){return+t.replace("dim","")}function a(t,e){var n=0;s.each(t,function(t){var e=o(t);e>n&&(n=e)});var i=e[0];i&&i.length-1>n&&(n=i.length-1);for(var a=[],r=0;r<=n;r++)a.push("dim"+r);return a}var r=n(206),s=n(196),l=n(209),u=n(219);t.exports=l.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.normal.color",getInitialData:function(t,e){var n=e.getComponent("parallel",this.get("parallelIndex")),o=n.parallelAxisIndex,l=t.data,c=n.dimensions,h=a(c,l),d=s.map(h,function(t,n){var a=s.indexOf(c,t),r=a>=0&&e.getComponent("parallelAxis",o[a]);return r&&"category"===r.get("type")?(i(r,t,l),{name:t,type:"ordinal"}):a<0&&u.guessOrdinal(l,n)?{name:t,type:"ordinal"}:t}),f=new r(d,this);return f.initData(l),this.option.progressive&&(this.option.animation=!1),f},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,function(e,o){t===e&&i.push(n.getRawIndex(o))}),i},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{normal:{show:!1},emphasis:{show:!1}},inactiveOpacity:.05,activeOpacity:1,lineStyle:{normal:{width:1,opacity:.45,type:"solid"}},progressive:!1,smooth:!1,animationEasing:"linear"}})},function(t,e,n){function i(t,e,n){var i=t.model,o=t.getRect(),a=new l.Rect({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),r="horizontal"===i.get("layout")?"width":"height";return a.setShape(r,0),l.initProps(a,{shape:{width:o.width,height:o.height}},e,n),a}function o(t,e,n,i){for(var o=[],a=0;a0&&"scale"!==d){var g=r.getItemLayout(0),m=Math.max(n.getWidth(),n.getHeight())/2,v=l.bind(u.removeClipPath,u);u.setClipPath(this._createClipPath(g.cx,g.cy,m,g.startAngle,g.clockwise,v,t))}this._data=r}},dispose:function(){},_createClipPath:function(t,e,n,i,o,a,r){var l=new s.Sector({shape:{cx:t,cy:e,r0:0,r:n,startAngle:i,endAngle:i,clockwise:o}});return s.initProps(l,{shape:{endAngle:i+(o?1:-1)*Math.PI*2}},r,a),l},containPoint:function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,a=t[1]-i.cy,r=Math.sqrt(o*o+a*a);return r<=i.r&&r>=i.r0}}});t.exports=c},function(t,e,n){"use strict";function i(t,e,n,i,o,a,r){function s(e,n){for(var i=e;i>=0&&(t[i].y-=n,!(i>0&&t[i].y>t[i-1].y+t[i-1].height));i--);}function l(t,e,n,i,o,a){for(var r=e?Number.MAX_VALUE:0,s=0,l=t.length;s=r&&(d=r-10),!e&&d<=r&&(d=r+10),t[s].x=n+d*a,r=d}}t.sort(function(t,e){return t.y-e.y});for(var u,c=0,h=t.length,d=[],f=[],p=0;pe&&a+1t[a].y+t[a].height)return void s(a,i/2);s(n-1,i/2)}(p,h,-u),c=t[p].y+t[p].height;r-c<0&&s(h-1,c-r);for(var p=0;p=n?f.push(t[p]):d.push(t[p]);l(d,!1,e,n,i,o),l(f,!0,e,n,i,o)}function o(t,e,n,o,a,r){for(var s=[],l=[],u=0;u0?"left":"right"}var L=g.getModel("textStyle").getFont(),P=g.get("rotate")?b<0?-_+Math.PI:-_:0,k=t.getFormattedLabel(n,"normal")||l.getName(n),E=a.getBoundingRect(k,L,d,"top");c=!!P,f.label={x:i,y:o,position:m,height:E.height,len:y,len2:x,linePoints:h,textAlign:d,verticalAlign:"middle",font:L,rotation:P},S||u.push(f.label)}),!c&&t.get("avoidLabelOverlap")&&o(u,r,s,e,n,i)}},function(t,e,n){var i=n(199),o=i.parsePercent,a=n(431),r=n(196),s=2*Math.PI,l=Math.PI/180;t.exports=function(t,e,n,u){e.eachSeriesByType(t,function(t){var e=t.get("center"),u=t.get("radius");r.isArray(u)||(u=[0,u]),r.isArray(e)||(e=[e,e]);var c=n.getWidth(),h=n.getHeight(),d=Math.min(c,h),f=o(e[0],c),p=o(e[1],h),g=o(u[0],d/2),m=o(u[1],d/2),v=t.getData(),y=-t.get("startAngle")*l,x=t.get("minAngle")*l,_=v.getSum("value"),b=Math.PI/(_||v.count())*2,w=t.get("clockwise"),S=t.get("roseType"),A=t.get("stillShowZeroSum"),M=v.getDataExtent("value");M[0]=0;var I=s,T=0,C=y,D=w?1:-1;if(v.each("value",function(t,e){var n;if(isNaN(t))return void v.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:f,cy:p,r0:g,r:S?NaN:m});n="area"!==S?0===_&&A?b:t*b:s/(v.count()||1),n"+r.map(i,function(t,n){return s(t.name+" : "+e[n])}).join("
")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{normal:{width:2,type:"solid"}},label:{normal:{position:"top"}},symbol:"emptyCircle",symbolSize:4}});t.exports=l},function(t,e,n){function i(t){return a.isArray(t)||(t=[+t,+t]),t}var o=n(198),a=n(196),r=n(220);t.exports=n(197).extendChartView({type:"radar",render:function(t,e,n){function s(t,e){var n=t.getItemVisual(e,"symbol")||"circle",o=t.getItemVisual(e,"color");if("none"!==n){var a=r.createSymbol(n,-.5,-.5,1,1,o);return a.attr({style:{strokeNoScale:!0},z2:100,scale:i(t.getItemVisual(e,"symbolSize"))}),a}}function l(e,n,i,a,r,l){i.removeAll();for(var u=0;u0;o--)r*=.99,d(a,r),h(a,i,n),p(a,r),h(a,i,n)}function c(t,e,n,i,o){var a=[];I.each(e,function(t){var e=t.length,n=0;I.each(t,function(t){n+=t.getLayout().value});var r=(i-(e-1)*o)/n;a.push(r)}),a.sort(function(t,e){return t-e});var r=a[0];I.each(e,function(t){I.each(t,function(t,e){t.setLayout({y:e},!0);var n=t.getLayout().value*r;t.setLayout({dy:n},!0)})}),I.each(n,function(t){var e=+t.getValue()*r;t.setLayout({dy:e},!0)})}function h(t,e,n){I.each(t,function(t){var i,o,a,r=0,s=t.length;for(t.sort(b),a=0;a0){var l=i.getLayout().y+o;i.setLayout({y:l},!0)}r=i.getLayout().y+i.getLayout().dy+e}if((o=r-e-n)>0){var l=i.getLayout().y-o;for(i.setLayout({y:l},!0),r=i.getLayout().y,a=s-2;a>=0;--a)i=t[a],o=i.getLayout().y+i.getLayout().dy+e-r,o>0&&(l=i.getLayout().y-o,i.setLayout({y:l},!0)),r=i.getLayout().y}})}function d(t,e){I.each(t.slice().reverse(),function(t){I.each(t,function(t){if(t.outEdges.length){var n=x(t.outEdges,f)/x(t.outEdges,S),i=t.getLayout().y+(n-_(t))*e;t.setLayout({y:i},!0)}})})}function f(t){return _(t.node2)*t.getValue()}function p(t,e){I.each(t,function(t){I.each(t,function(t){if(t.inEdges.length){var n=x(t.inEdges,g)/x(t.inEdges,S),i=t.getLayout().y+(n-_(t))*e;t.setLayout({y:i},!0)}})})}function g(t){return _(t.node1)*t.getValue()}function m(t){I.each(t,function(t){t.outEdges.sort(v),t.inEdges.sort(y)}),I.each(t,function(t){var e=0,n=0;I.each(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),I.each(t.inEdges,function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy})})}function v(t,e){return t.node2.getLayout().y-e.node2.getLayout().y}function y(t,e){return t.node1.getLayout().y-e.node1.getLayout().y}function x(t,e){for(var n=0,i=t.length,o=-1;++oe?1:t===e?0:NaN}function S(t){return t.getValue()}var A=n(203),M=n(334),I=n(196);t.exports=function(t,e,n){t.eachSeriesByType("sankey",function(t){var n=t.get("nodeWidth"),r=t.get("nodeGap"),s=i(t,e);t.layoutInfo=s;var l=s.width,u=s.height,c=t.getGraph(),h=c.nodes,d=c.edges;a(h),o(h,d,n,r,l,u,0!==I.filter(h,function(t){return 0===t.getLayout().value}).length?0:t.get("layoutIterations"))})}},function(t,e,n){var i=n(237),o=n(196);t.exports=function(t,e){t.eachSeriesByType("sankey",function(t){var e=t.getGraph(),n=e.nodes;n.sort(function(t,e){return t.getLayout().value-e.getLayout().value});var a=n[0].getLayout().value,r=n[n.length-1].getLayout().value;o.each(n,function(e){var n=new i({type:"color",mappingMethod:"linear",dataExtent:[a,r],visual:t.get("color")}),o=n.mapValueToVisual(e.getLayout().value);e.setVisual("color",o);var s=e.getModel(),l=s.get("itemStyle.normal.color");null!=l&&e.setVisual("color",l)})})}},function(t,e,n){var i=n(196),o=n(197);n(444),n(445),o.registerVisual(i.curry(n(242),"scatter","circle",null)),o.registerLayout(i.curry(n(279),"scatter")),n(248)},function(t,e,n){"use strict";var i=n(234),o=n(209);t.exports=o.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis"],getInitialData:function(t,e){return i(t.data,this,e)},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{normal:{opacity:.8}}}})},function(t,e,n){var i=n(244),o=n(404);n(197).extendChartView({type:"scatter",init:function(){this._normalSymbolDraw=new i,this._largeSymbolDraw=new o},render:function(t,e,n){var i=t.getData(),o=this._largeSymbolDraw,a=this._normalSymbolDraw,r=this.group,s=t.get("large")&&i.count()>t.get("largeThreshold")?o:a;this._symbolDraw=s,s.updateData(i),r.add(s.group),r.remove(s===o?a.group:o.group)},updateLayout:function(t){this._symbolDraw.updateLayout(t)},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(e,!0)},dispose:function(){}})},function(t,e,n){var i=n(197),o=n(196);n(316),n(447),n(448),i.registerLayout(n(449)),i.registerVisual(n(450)),i.registerProcessor(o.curry(n(258),"themeRiver"))},function(t,e,n){"use strict";var i=n(219),o=n(209),a=n(206),r=n(196),s=n(200),l=s.encodeHTML,u=n(334),c=o.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){c.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(t){for(var e=t.length,n=u().key(function(t){return t[2]}).entries(t),i=r.map(n,function(t){return{name:t.key,dataList:t.values}}),o=i.length,a=-1,s=-1,l=0;la&&(a=c,s=l)}for(var h=0;hr&&(r=e),o.push(e)}for(var c=0;cr&&(r=d)}return s.y0=a,s.max=r,s}var a=n(196),r=n(199);t.exports=function(t,e){t.eachSeriesByType("themeRiver",function(t){var e=t.getData(),n=t.coordinateSystem,o={},a=n.getRect();o.rect=a;var s=t.get("boundaryGap"),l=n.getAxis();if(o.boundaryGap=s,"horizontal"===l.orient){s[0]=r.parsePercent(s[0],a.height),s[1]=r.parsePercent(s[1],a.height);i(e,t,a.height-s[0]-s[1])}else{s[0]=r.parsePercent(s[0],a.width),s[1]=r.parsePercent(s[1],a.width);i(e,t,a.width-s[0]-s[1])}e.setLayout("layoutInfo",o)})}},function(t,e){t.exports=function(t){t.eachSeriesByType("themeRiver",function(t){var e=t.getData(),n=t.getRawData(),i=t.get("color");e.each(function(o){var a=e.getName(o),r=i[(t.nameMap[a]-1)%i.length];n.setItemVisual(o,"color",r)})})}},function(t,e,n){var i=n(197);n(453),n(454),n(455),i.registerVisual(n(457)),i.registerLayout(n(456))},function(t,e,n){function i(t){this.group=new r.Group,t.add(this.group)}function o(t,e,n,i,o,a){var r=[[o?t:t-c,e],[t+n,e],[t+n,e+i],[o?t:t-c,e+i]];return!a&&r.splice(2,0,[t+n+c,e+i/2]),!o&&r.push([t,e+i/2]),r}function a(t,e,n){t.eventData={componentType:"series",componentSubType:"treemap",seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&u.wrapTreePathInfo(n,e)}}var r=n(198),s=n(203),l=n(196),u=n(239),c=5;i.prototype={constructor:i,render:function(t,e,n,i){var o=t.getModel("breadcrumb"),a=this.group;if(a.removeAll(),o.get("show")&&n){var r=o.getModel("itemStyle.normal"),l=r.getModel("textStyle"),u={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,l),this._renderContent(t,u,r,l,i),s.positionElement(a,u.pos,u.box)}},_prepare:function(t,e,n){for(var i=t;i;i=i.parentNode){var o=i.getModel().get("name"),a=n.getTextRect(o),r=Math.max(a.width+16,e.emptyItemWidth);e.totalWidth+=r+8,e.renderList.push({node:i,text:o,width:r})}},_renderContent:function(t,e,n,i,u){for(var c=0,h=e.emptyItemWidth,d=t.get("breadcrumb.height"),f=s.getAvailableSize(e.pos,e.box),p=e.totalWidth,g=e.renderList,m=g.length-1;m>=0;m--){var v=g[m],y=v.node,x=v.width,_=v.text;p>f.width&&(p-=x-h,x=h,_="");var b=new r.Polygon({shape:{points:o(c,0,x,d,m===g.length-1,0===m)},style:l.defaults(n.getItemStyle(),{lineJoin:"bevel",text:_,textFill:i.getTextColor(),textFont:i.getFont()}),z:10,onclick:l.curry(u,y)});this.group.add(b),a(b,t,y),c+=x+8}},remove:function(){this.group.removeAll()}},t.exports=i},function(t,e,n){function i(t){var e=0;s.each(t.children,function(t){i(t);var n=t.value;s.isArray(n)&&(n=n[0]),e+=n});var n=t.value;s.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),s.isArray(t.value)?t.value[0]=n:t.value=n}function o(t,e){var n=e.get("color");if(n){t=t||[];var i;if(s.each(t,function(t){var e=new l(t),n=e.get("color");(e.get("itemStyle.normal.color")||n&&"none"!==n)&&(i=!0)}),!i){(t[0]||(t[0]={})).color=n.slice()}return t}}var a=n(209),r=n(573),s=n(196),l=n(204),u=n(200),c=n(239),h=u.encodeHTML,d=u.addCommas;t.exports=a.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],_viewRoot:null,defaultOption:{progressive:0,hoverLayerThreshold:1/0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{normal:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}}},label:{normal:{show:!0,position:"inside",textStyle:{color:"#fff",ellipsis:!0}}},itemStyle:{normal:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(t,e){var n=t.name;null==n&&(n=t.name);var a={name:n,children:t.data};i(a);var s=t.levels||[];return s=t.levels=o(s,e),r.createTree(a,this,s).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var e=this.getData(),n=this.getRawValue(t),i=d(s.isArray(n)?n[0]:n),o=e.getName(t);return h(o+": "+i)},getDataParams:function(t){var e=a.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=c.wrapTreePathInfo(n,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},s.extend(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap={},this._idIndexMapCount=0);var n=e[t];return null==n&&(e[t]=n=this._idIndexMapCount++),n},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}})},function(t,e,n){function i(){return{nodeGroup:[],background:[],content:[]}}function o(t,e,n,i,o,l,u,c,h,d){function f(t,e){C?!t.invisible&&l.push(t):(e(),t.__tmWillVisible||(t.invisible=!1))}function p(e,n,i,o,a){var r=u.getModel(),s=r.get("name");if(M.isLeafRoot){var l=t.get("drillDownIcon",!0);s=l?l+" "+s:s}g(s,e,r,x,i,o,a),g(s,n,r,_,i,o,a)}function g(t,e,n,i,o,a,r){var l=n.getModel(i),u=l.getModel("textStyle");s.setText(e,l,o),e.textAlign=u.get("align"),e.textVerticalAlign=u.get("baseline");var c=u.getTextRect(t);!l.getShallow("show")||c.height>r?e.text="":c.width>a?e.text=u.get("ellipsis")?u.truncateText(t,a,null,{minChar:2}):"":e.text=t}function y(t,i,r,s){var l=null!=L&&n[t][L],u=o[t];return l?(n[t][L]=null,b(u,l,t)):C||(l=new i({z:a(r,s)}),l.__tmDepth=r,l.__tmStorageName=t,A(u,l,t)),e[t][D]=l}function b(t,e,n){(t[D]={}).old="nodeGroup"===n?e.position.slice():r.extend({},e.shape)}function A(t,e,n){var a=t[D]={},r=u.parentNode;if(r&&(!i||"drillDown"===i.direction)){var s=0,l=0,c=o.background[r.getRawIndex()];!i&&c&&c.old&&(s=c.old.width,l=c.old.height),a.old="nodeGroup"===n?[0,l]:{x:s,y:l,width:0,height:0}}a.fadein="nodeGroup"!==n}if(u){var M=u.getLayout();if(M&&M.isInView){var I=M.width,T=M.height,C=M.invisible,D=u.getRawIndex(),L=c&&c.getRawIndex(),P=y("nodeGroup",m);if(P){if(h.add(P),P.attr("position",[M.x||0,M.y||0]),P.__tmNodeWidth=I,P.__tmNodeHeight=T,M.isAboveViewRoot)return P;var k=y("background",v,d,w);k&&(k.setShape({x:0,y:0,width:I,height:T}),f(k,function(){k.setStyle("fill",u.getVisual("borderColor",!0))}),P.add(k));var E=u.viewChildren;if(!E||!E.length){var O=y("content",v,d,S);O&&function(e){O.dataIndex=u.dataIndex,O.seriesIndex=t.seriesIndex;var n=M.borderWidth,i=Math.max(I-2*n,0),o=Math.max(T-2*n,0);O.culling=!0,O.setShape({x:n,y:n,width:i,height:o});var a=u.getVisual("color",!0);f(O,function(){var t={fill:a},e=u.getModel("itemStyle.emphasis").getItemStyle();p(t,e,a,i,o),O.setStyle(t),s.setHoverStyle(O,e)}),e.add(O)}(P)}return P}}}}function a(t,e){var n=t*b+e;return(n-1)/n}var r=n(196),s=n(198),l=n(249),u=n(239),c=n(452),h=n(254),d=n(205),f=n(224),p=n(590),g=r.bind,m=s.Group,v=s.Rect,y=r.each,x=["label","normal"],_=["label","emphasis"],b=10,w=1,S=2;t.exports=n(197).extendChartView({type:"treemap",init:function(t,e){this._containerGroup,this._storage=i(),this._oldTree,this._breadcrumb,this._controller,this._state="ready",this._mayClick},render:function(t,e,n,i){var o=e.findComponents({mainType:"series",subType:"treemap",query:i});if(!(r.indexOf(o,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var a=u.retrieveTargetInfo(i,t),s=i&&i.type,l=t.layoutInfo,c=!this._oldTree,h=this._storage,d="treemapRootToNode"===s&&a&&h?{rootNodeGroup:h.nodeGroup[a.node.getRawIndex()],direction:i.direction}:null,f=this._giveContainerGroup(l),p=this._doRender(f,t,d);c||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?p.renderFinally():this._doAnimation(f,p,t,d),this._resetController(n),this._renderBreadcrumb(t,n,a)}},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new m,this._initEvents(e),this.group.add(e)),e.attr("position",[t.x,t.y]),e},_doRender:function(t,e,n){function a(t,e,n,i,o){function s(t){return t.getId()}function u(r,s){var l=null!=r?t[r]:null,u=null!=s?e[s]:null,c=g(l,u,n,o);c&&a(l&&l.viewChildren||[],u&&u.viewChildren||[],c,i,o+1)}i?(e=t,y(t,function(t,e){!t.isRemoved()&&u(e,e)})):new l(e,t,s,s).add(u).update(u).remove(r.curry(u,null)).execute()}function s(){y(m,function(t){y(t,function(t){t.parent&&t.parent.remove(t)})}),y(p,function(t){t.invisible=!0,t.dirty()})}var u=e.getData().tree,c=this._oldTree,h=i(),d=i(),f=this._storage,p=[],g=r.curry(o,e,d,f,n,h,p);a(u.root?[u.root]:[],c&&c.root?[c.root]:[],t,u===c||!c,0);var m=function(t){var e=i();return t&&y(t,function(t,n){var i=e[n];y(t,function(t){t&&(i.push(t),t.__tmWillDelete=1)})}),e}(f);return this._oldTree=u,this._storage=d,{lastsForAnimation:h,willDeleteEls:m,renderFinally:s}},_doAnimation:function(t,e,n,i){if(n.get("animation")){var o=n.get("animationDurationUpdate"),a=n.get("animationEasing"),s=p.createWrap();y(e.willDeleteEls,function(t,e){y(t,function(t,n){if(!t.invisible){var r,l=t.parent;if(i&&"drillDown"===i.direction)r=l===i.rootNodeGroup?{shape:{x:0,y:0,width:l.__tmNodeWidth,height:l.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,c=0;l.__tmWillDelete||(u=l.__tmNodeWidth/2,c=l.__tmNodeHeight/2),r="nodeGroup"===e?{position:[u,c],style:{opacity:0}}:{shape:{x:u,y:c,width:0,height:0},style:{opacity:0}}}r&&s.add(t,r,o,a)}})}),y(this._storage,function(t,n){y(t,function(t,i){var l=e.lastsForAnimation[n][i],u={};l&&("nodeGroup"===n?l.old&&(u.position=t.position.slice(),t.attr("position",l.old)):(l.old&&(u.shape=r.extend({},t.shape),t.setShape(l.old)),l.fadein?(t.setStyle("opacity",0),u.style={opacity:1}):1!==t.style.opacity&&(u.style={opacity:1})),s.add(t,u,o,a))})},this),this._state="animating",s.done(g(function(){this._state="ready",e.renderFinally()},this)).start()}},_resetController:function(t){var e=this._controller;e||(e=this._controller=new h(t.getZr()),e.enable(this.seriesModel.get("roam")),e.on("pan",g(this._onPan,this)),e.on("zoom",g(this._onZoom,this)));var n=new d(0,0,t.getWidth(),t.getHeight());e.setPointerChecker(function(t,e,i){return n.contain(e,i)})},_clearController:function(){var t=this._controller;t&&(t.dispose(),t=null)},_onPan:function(t,e){if(this._mayClick=!1,"animating"!==this._state&&(Math.abs(t)>3||Math.abs(e)>3)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+t,y:i.y+e,width:i.width,height:i.height}})}},_onZoom:function(t,e,n){if(this._mayClick=!1,"animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var a=new d(o.x,o.y,o.width,o.height),r=this.seriesModel.layoutInfo;e-=r.x,n-=r.y;var s=f.create();f.translate(s,s,[-e,-n]),f.scale(s,s,[t,t]),f.translate(s,s,[e,n]),a.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x,y:a.y,width:a.width,height:a.height}})}},_initEvents:function(t){function e(t){var e=this.seriesModel.get("nodeClick",!0);if(e){var n=this.findTarget(t.offsetX,t.offsetY);if(n){var i=n.node;if(i.getLayout().isLeafRoot)this._rootToNode(n);else if("zoomToNode"===e)this._zoomToNode(n);else if("link"===e){var o=i.hostTree.data.getItemModel(i.dataIndex),a=o.get("link",!0),r=o.get("target",!0)||"blank";a&&window.open(a,r)}}}}t.on("mousedown",function(t){"ready"===this._state&&(this._mayClick=!0)},this),t.on("mouseup",function(t){this._mayClick&&(this._mayClick=!1,"ready"===this._state&&e.call(this,t))},this)},_renderBreadcrumb:function(t,e,n){function i(e){"animating"!==this._state&&(u.aboveViewRoot(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))}n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new c(this.group))).render(t,e,n.node,g(i,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=i(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(i){var o=this._storage.background[i.getRawIndex()];if(o){var a=o.transformCoordToLocal(t,e),r=o.shape;if(!(r.x<=a[0]&&a[0]<=r.x+r.width&&r.y<=a[1]&&a[1]<=r.y+r.height))return!1;n={node:i,offsetX:a[0],offsetY:a[1]}}},this),n}})},function(t,e,n){for(var i=n(197),o=n(239),a=function(){},r=["treemapZoomToNode","treemapRender","treemapMove"],s=0;s=0;l--){var u=o["asc"===i?r-l-1:l].getValue();u/n*er[1]&&(r[1]=e)})}else r=[NaN,NaN];return{sum:i,dataExtent:r}}function u(t,e,n){for(var i,o=0,a=1/0,r=0,s=t.length;ro&&(o=i));var l=t.area*t.area,u=e*e*n;return l?x(u*o/l,l/(u*a)):1/0}function c(t,e,n,i,o){var a=e===n.width?0:1,r=1-a,s=["x","y"],l=["width","height"],u=n[s[a]],c=e?t.area/e:0;(o||c>n[l[r]])&&(c=n[l[r]]);for(var h=0,d=t.length;hg.MAX_SAFE_INTEGER&&(u=g.MAX_SAFE_INTEGER),a=s}u=u.length||t===u[t.depth]){i(t,c(d,x,t,e,S,h),n,s,u,h)}})}else m=a(x),t.setVisual("color",m)}}function o(t,e,n,i){var o=f.extend({},e);return f.each(["color","colorAlpha","colorSaturation"],function(a){var r=t.get(a,!0);null==r&&n&&(r=n[a]),null==r&&(r=e[a]),null==r&&(r=i.get(a)),null!=r&&(o[a]=r)}),o}function a(t){var e=s(t,"color");if(e){var n=s(t,"colorAlpha"),i=s(t,"colorSaturation");return i&&(e=d.modifyHSL(e,null,null,i)),n&&(e=d.modifyAlpha(e,n)),e}}function r(t,e){return null!=e?d.modifyHSL(e,null,null,t):null}function s(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function l(t,e,n,i,o,a){if(a&&a.length){var r=u(e,"color")||null!=o.color&&"none"!==o.color&&(u(e,"colorAlpha")||u(e,"colorSaturation"));if(r){var s=e.get("visualMin"),l=e.get("visualMax"),c=n.dataExtent.slice();null!=s&&sc[1]&&(c[1]=l);var d=e.get("colorMappingBy"),f={type:r.name,dataExtent:c,visual:r.range};"color"!==f.type||"index"!==d&&"id"!==d?f.mappingMethod="linear":(f.mappingMethod="category",f.loop=!0);var p=new h(f);return p.__drColorMappingBy=d,p}}}function u(t,e){var n=t.get(e);return p(n)&&n.length?{name:e,range:n}:null}function c(t,e,n,i,o,a){var r=f.extend({},e);if(o){var s=o.type,l="color"===s&&o.__drColorMappingBy,u="index"===l?i:"id"===l?a.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));r[s]=o.mapValueToVisual(u)}return r}var h=n(237),d=n(229),f=n(196),p=f.isArray,g="itemStyle.normal";t.exports=function(t,e,n){var o={mainType:"series",subType:"treemap",query:n};t.eachComponent(o,function(t){var e=t.getData().tree,n=e.root,o=t.getModel(g);if(!n.isRemoved()){i(n,{},f.map(e.levelModels,function(t){return t?t.get(g):null}),o,t.getViewRoot().getAncestors(),t)}})}},function(t,e,n){"use strict";n(278),n(460)},function(t,e,n){"use strict";n(326),n(461)},function(t,e,n){"use strict";function i(t,e,n,i){var o=t.coordToPoint([e,i]),a=t.coordToPoint([n,i]);return{x1:o[0],y1:o[1],x2:a[0],y2:a[1]}}var o=n(196),a=n(198),r=n(204),s=["axisLine","axisLabel","axisTick","splitLine","splitArea"];n(236).extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,a=i.getRadiusAxis().getExtent(),r=n.getTicksCoords();"category"!==n.type&&r.pop(),o.each(s,function(e){!t.get(e+".show")||n.scale.isBlank()&&"axisLine"!==e||this["_"+e](t,i,r,a)},this)}},_axisLine:function(t,e,n,i){var o=t.getModel("axisLine.lineStyle"),r=new a.Circle({shape:{cx:e.cx,cy:e.cy,r:i[1]},style:o.getLineStyle(),z2:1,silent:!0});r.style.fill=null,this.group.add(r)},_axisTick:function(t,e,n,r){var s=t.getModel("axisTick"),l=(s.get("inside")?-1:1)*s.get("length"),u=o.map(n,function(t){return new a.Line({shape:i(e,r[1],r[1]+l,t)})});this.group.add(a.mergePath(u,{style:o.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_axisLabel:function(t,e,n,i){for(var o=t.axis,s=t.get("data"),l=t.getModel("axisLabel"),u=l.getModel("textStyle"),c=t.getFormattedLabels(),h=l.get("margin"),d=o.getLabelsCoords(),f=0;fm?"left":"right",x=Math.abs(g[1]-v)/p<.3?"middle":g[1]>v?"top":"bottom",_=u;s&&s[f]&&s[f].textStyle&&(_=new r(s[f].textStyle,u)),this.group.add(new a.Text({style:{x:g[0],y:g[1],fill:_.getTextColor()||t.get("axisLine.lineStyle.color"),text:c[f],textAlign:y,textVerticalAlign:x,textFont:_.getFont()},silent:!0}))}},_splitLine:function(t,e,n,r){var s=t.getModel("splitLine"),l=s.getModel("lineStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=0;d=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},remove:function(t,e){i.disopse(e.getZr(),"axisPointer"),o.superApply(this._model,"remove",arguments)},dispose:function(t,e){i.unregister("axisPointer",e),o.superApply(this._model,"dispose",arguments)}})},function(t,e,n){"use strict";function i(t,e,n,i,o){var a=e.axis,s=a.dataToCoord(t),c=i.getAngleAxis().getExtent()[0];c=c/180*Math.PI;var h,d,f,p=i.getRadiusAxis().getExtent();if("radius"===a.dim){var g=l.create();l.rotate(g,g,c),l.translate(g,g,[i.cx,i.cy]),h=r.applyTransform([s,-o],g);var m=e.getModel("axisLabel").get("rotate")||0,v=u.innerTextLayout(c,m*Math.PI/180,-1);d=v.textAlign,f=v.textVerticalAlign}else{var y=p[1];h=i.coordToPoint([y+o,s]);var x=i.cx,_=i.cy;d=Math.abs(h[0]-x)/y<.3?"center":h[0]>x?"left":"right",f=Math.abs(h[1]-_)/y<.3?"middle":h[1]>_?"top":"bottom"}return{position:h,align:d,verticalAlign:f}}var o=n(200),a=n(269),r=n(198),s=n(253),l=n(224),u=n(235),c=n(236),h=a.extend({makeElOption:function(t,e,n,a,r){var l=n.axis;"angle"===l.dim&&(this.animationThreshold=Math.PI/18);var u,c=l.polar,h=c.getOtherAxis(l),f=h.getExtent();u=l["dataTo"+o.capitalFirst(l.dim)](e);var p=a.get("type");if(p&&"none"!==p){var g=s.buildElStyle(a),m=d[p](l,c,u,f,g);m.style=g,t.graphicKey=m.type,t.pointer=m}var v=a.get("label.margin"),y=i(e,n,a,c,v);s.buildLabelElOption(t,n,a,r,y)}}),d={line:function(t,e,n,i,o){return"angle"===t.dim?{type:"Line",shape:s.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,o){var a=t.getBandWidth(),r=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:s.makeSectorShape(e.cx,e.cy,i[0],i[1],(-n-a/2)*r,(a/2-n)*r)}:{type:"Sector",shape:s.makeSectorShape(e.cx,e.cy,n-a/2,n+a/2,0,2*Math.PI)}}};c.registerAxisPointerClass("PolarAxisPointer",h),t.exports=h},function(t,e,n){"use strict";function i(t){return t.isHorizontal()?0:1}function o(t,e){var n=t.getRect();return[n[c[e]],n[c[e]]+n[h[e]]]}var a=n(198),r=n(269),s=n(253),l=n(301),u=n(236),c=["x","y"],h=["width","height"],d=r.extend({makeElOption:function(t,e,n,a,r){var u=n.axis,c=u.coordinateSystem,h=o(c,1-i(u)),d=c.dataToPoint(e)[0],p=a.get("type");if(p&&"none"!==p){var g=s.buildElStyle(a),m=f[p](u,d,h,g);m.style=g,t.graphicKey=m.type,t.pointer=m}var v=l.layout(n);s.buildCartesianSingleLabelElOption(e,t,v,n,a,r)},getHandleTransform:function(t,e,n){var i=l.layout(e,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:s.getTransformedPosition(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,a){var r=n.axis,s=r.coordinateSystem,l=i(r),u=o(s,l),c=t.position;c[l]+=e[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var h=o(s,1-l),d=(h[1]+h[0])/2,f=[d,d];return f[l]=c[l],{position:c,rotation:t.rotation,cursorPoint:f,tooltipOption:{verticalAlign:"middle"}}}}),f={line:function(t,e,n,o){var r=s.makeLineShape([e,n[0]],[e,n[1]],i(t));return a.subPixelOptimizeLine({shape:r,style:o}),{type:"Line",shape:r}},shadow:function(t,e,n,o){var a=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:s.makeRectShape([e-a/2,n[0]],[a,r],i(t))}}};u.registerAxisPointerClass("SingleAxisPointer",d),t.exports=d},function(t,e,n){function i(t,e,n,i,a,g,m,v,b){i=i||{},n&&null!=n[0]&&null!=n[1]||(n=y({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},g).point);var w=t.axesInfo,S="leave"===e||p(n),A={},M={},I={list:[],map:{}},T=[],C={showPointer:_(r,M),showTooltip:_(s,I),highlight:_(l,T)};x(t.coordSysMap,function(e,a){var r=e.containPoint(n);x(t.coordSysAxesInfo[a],function(t,e){var a=t.axis;S||!r||d(i,a)||o(t,a.pointToData(n),C,!1,A)})});var D={};return x(w,function(t,e){var n=t.linkGroup;n&&!M[e]&&x(n.axesInfo,function(e,i){var o=M[i];if(e!==t&&o){var a=o.value;n.mapper&&(a=t.axis.scale.parse(n.mapper(a,f(e),f(t)))),D[t.key]=a}})}),x(D,function(t,e){o(w[e],t,C,!0,A)}),u(M,w),c(I,n,v,a),h(T,a,m,b),A}function o(t,e,n,i,o){var r=t.axis;if(!r.scale.isBlank()&&r.containData(e)){if(!t.involveSeries)return void n.showPointer(t,e);var s=a(e,t),l=s.payloadBatch,u=s.snapToValue;l[0]&&null==o.seriesIndex&&g.extend(o,l[0]),!i&&t.snap&&r.containData(u)&&null!=u&&(e=u),n.highlight("highlight",l),n.showPointer(t,e,l),n.showTooltip(t,s,u)}}function a(t,e){var n=e.axis,i=n.dim,o=t,a=[],r=Number.MAX_VALUE,s=-1;return x(e.seriesModels,function(e,l){var u,c,h=e.coordDimToDataDim(i);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);c=d.dataIndices,u=d.nestestValue}else{if(c=e.getData().indicesOfNearest(h[0],t,!1,"category"===n.type?.5:null),!c.length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var f=t-u,p=Math.abs(f);p<=r&&((p