PageSourceSearch

https://qzd-web-group-oss.qizhidao.com/pc/static/prod/-/e070fb9.js

js qizhidao.com collected 2026-10-02 07:24:33 UTC 251,148 bytes, 1 lines download raw bytes

1(this.webpackJsonp=this.webpackJsonp||[]).push([[34],{1181:function(e,t,a){"use strict";a.d(t,"a",(function(){return E}));var n=a(396),i=a(6),r=a(27),o=a(0),s=2*Math.PI,l=Math.PI/180;function u(e,t,a){t.eachSeriesByType(e,(function(e){var t=e.getData(),n=t.mapDimension("value"),u=function(e,t){return r.g(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,a),c=e.get("center"),d=e.get("radius");o.isArray(d)||(d=[0,d]),o.isArray(c)||(c=[c,c]);var h=Object(i.o)(u.width,a.getWidth()),p=Object(i.o)(u.height,a.getHeight()),g=Math.min(h,p),f=Object(i.o)(c[0],h)+u.x,y=Object(i.o)(c[1],p)+u.y,m=Object(i.o)(d[0],g/2),v=Object(i.o)(d[1],g/2),b=-e.get("startAngle")*l,x=e.get("minAngle")*l,_=0;t.each(n,(function(e){!isNaN(e)&&_++}));var S=t.getSum(n),O=Math.PI/(S||_)*2,w=e.get("clockwise"),I=e.get("roseType"),M=e.get("stillShowZeroSum"),L=t.getDataExtent(n);L[0]=0;var D=s,j=0,A=b,C=w?1:-1;if(t.setLayout({viewRect:u,r:v}),t.each(n,(function(e,a){var n;if(isNaN(e))t.setItemLayout(a,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:f,cy:y,r0:m,r:I?NaN:v});else{(n="area"!==I?0===S&&M?O:e*O:s/_)<x?(n=x,D-=x):j+=e;var r=A+C*n;t.setItemLayout(a,{angle:n,startAngle:A,endAngle:r,clockwise:w,cx:f,cy:y,r0:m,r:I?Object(i.k)(e,L,[m,v]):v}),A=r}})),D<s&&_)if(D<=.001){var N=s/_;t.each(n,(function(e,a){if(!isNaN(e)){var n=t.getItemLayout(a);n.angle=N,n.startAngle=b+C*a*N,n.endAngle=b+C*(a+1)*N}}))}else O=D/j,A=b,t.each(n,(function(e,a){if(!isNaN(e)){var n=t.getItemLayout(a),i=n.angle===x?x:e*O;n.startAngle=A,n.endAngle=A+C*i,A+=C*i}}))}))}var c=a(237),d=a(3),h=a(112),p=a(11),g=a(323),f=a(327),y=a(82),m=a(15),v=a(56),b=a(67),x=a(177),_=a(329),S=Math.PI/180;function O(e,t,a,n,i,r,o,s,l,u){if(!(e.length<2)){for(var c=e.length,d=0;d<c;d++)if("outer"===e[d].position&&"labelLine"===e[d].labelAlignTo){var h=e[d].label.x-u;e[d].linePoints[1][0]+=h,e[d].label.x=u}Object(_.d)(e,l,l+o)&&function(e){for(var r={list:[],maxY:0},o={list:[],maxY:0},s=0;s<e.length;s++)if("none"===e[s].labelAlignTo){var l=e[s],u=l.label.y>a?o:r,c=Math.abs(l.label.y-a);if(c>u.maxY){var d=l.label.x-t-l.len2*i,h=n+l.len,g=Math.abs(d)<h?Math.sqrt(c*c/(1-d*d/h/h)):h;u.rB=g,u.maxY=c}u.list.push(l)}p(r),p(o)}(e)}function p(e){for(var r=e.rB,o=r*r,s=0;s<e.list.length;s++){var l=e.list[s],u=Math.abs(l.label.y-a),c=n+l.len,d=c*c,h=Math.sqrt((1-Math.abs(u*u/o))*d);l.label.x=t+(h+l.len2)*i}}}function w(e){return"center"===e.position}function I(e){var t,a,n=e.getData(),r=[],s=!1,l=(e.get("minShowLabelAngle")||0)*S,u=n.getLayout("viewRect"),c=n.getLayout("r"),d=u.width,h=u.x,p=u.y,g=u.height;function f(e){e.ignore=!0}n.each((function(e){var u=n.getItemGraphicEl(e),p=u.shape,g=u.getTextContent(),y=u.getTextGuideLine(),m=n.getItemModel(e),v=m.getModel("label"),x=v.get("position")||m.get(["emp
1hasis","label","position"]),_=v.get("distanceToLabelLine"),S=v.get("alignTo"),O=Object(i.o)(v.get("edgeDistance"),d),w=v.get("bleedMargin"),I=m.getModel("labelLine"),M=I.get("length");M=Object(i.o)(M,d);var L=I.get("length2");if(L=Object(i.o)(L,d),Math.abs(p.endAngle-p.startAngle)<l)return Object(o.each)(g.states,f),void(g.ignore=!0);if(function(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}(g)){var D,j,A,C,N=(p.startAngle+p.endAngle)/2,P=Math.cos(N),T=Math.sin(N);t=p.cx,a=p.cy;var E,R="inside"===x||"inner"===x;if("center"===x)D=p.cx,j=p.cy,C="center";else{var V=(R?(p.r+p.r0)/2*P:p.r*P)+t,z=(R?(p.r+p.r0)/2*T:p.r*T)+a;if(D=V+3*P,j=z+3*T,!R){var k=V+P*(M+c-p.r),G=z+T*(M+c-p.r),B=k+(P<0?-1:1)*L;D="edge"===S?P<0?h+O:h+d-O:B+(P<0?-_:_),j=G,A=[[V,z],[k,G],[B,G]]}C=R?"center":"edge"===S?P>0?"right":"left":P>0?"left":"right"}var F=v.get("rotate");if(E="number"==typeof F?F*(Math.PI/180):F?P<0?-N+Math.PI:-N:0,s=!!E,g.x=D,g.y=j,g.rotation=E,g.setStyle({verticalAlign:"middle"}),R){g.setStyle({align:C});var Y=g.states.select;Y&&(Y.x+=g.x,Y.y+=g.y)}else{var X=g.getBoundingRect().clone();X.applyTransform(g.getComputedTransform());var W=(g.style.margin||0)+2.1;X.y-=W/2,X.height+=W,r.push({label:g,labelLine:y,position:x,len:M,len2:L,minTurnAngle:I.get("minTurnAngle"),maxSurfaceAngle:I.get("maxSurfaceAngle"),surfaceNormal:new b.a(P,T),linePoints:A,textAlign:C,labelDistance:_,labelAlignTo:S,edgeDistance:O,bleedMargin:w,rect:X})}u.setTextConfig({inside:R})}})),!s&&e.get("avoidLabelOverlap")&&function(e,t,a,n,i,r,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,d=-Number.MAX_VALUE,h=0;h<e.length;h++){var p=e[h].label;w(e[h])||(p.x<t?(c=Math.min(c,p.x),l.push(e[h])):(d=Math.max(d,p.x),u.push(e[h])))}for(O(u,t,a,n,1,0,r,0,s,d),O(l,t,a,n,-1,0,r,0,s,c),h=0;h<e.length;h++){var g=e[h];p=g.label;if(!w(g)){var f=g.linePoints;if(f){var y="edge"===g.labelAlignTo,m=g.rect.width,v=void 0;(v=y?p.x<t?f[2][0]-g.labelDistance-o-g.edgeDistance:o+i-g.edgeDistance-f[2][0]-g.labelDistance:p.x<t?p.x-o-g.bleedMargin:o+i-p.x-g.bleedMargin)<g.rect.width&&(g.label.style.width=v,"edge"===g.labelAlignTo&&(m=v));var b=f[1][0]-f[2][0];y?p.x<t?f[2][0]=o+g.edgeDistance+m+g.labelDistance:f[2][0]=o+i-g.edgeDistance-m-g.labelDistance:(p.x<t?f[2][0]=p.x+g.labelDistance:f[2][0]=p.x-g.labelDistance,f[1][0]=f[2][0]+b),f[1][1]=f[2][1]=p.y}}}}(r,t,a,c,d,g,h,p);for(var y=0;y<r.length;y++){var m=r[y],v=m.label,_=m.labelLine,I=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:m.textAlign}),I&&(Object(o.each)(v.states,f),v.ignore=!0);var M=v.states.select;M&&(M.x+=v.x,M.y+=v.y)}if(_){var L=m.linePoints;I||!L?(Object(o.each)(_.states,f),_.ignore=!0):(Object(x.c)(L,m.minTurnAngle),Object(x.b)(L,m.surfaceNormal,m.maxSurfaceAngle),_.setShape({points:L}),v.__hostTarget.textGuideLineConfig={anchor:new b.a(L[0][0],L[0][1])})}}}var M=a(21),L=a(301),D=function(e){function t(t,a,n){var i=e.call(this)||this;i.z2=2;var r=new h.a;return i.setTextContent(r),i.updateData(t,a,n,!0),i}return Object(d.b)(t,e),t.prototype.updateData=function(e,t,a,n){var i=e.hostModel,r=e.getItemModel(t),s=r.getModel("emphasis"),l=e.getItemLayout(t),u=Object(o.extend)(Object(L.a)(r.getModel("itemStyle"),l)||{},l);if(isNaN(u.startAngle))this.setShape(u);else{if(n)this.setShape(u),"scale"===i.getShallow("animationType")?(this.shape.r=l.r0,p.initProps(this,{shape:{r:l.r}},i,t)):null!=a?(this.setShape({startAngle:a,endAngle:a}),p.initProps(this,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},i,t)):(this.shape.endAngle=l.startAngle,p.updateProps(this,{shape:{endAngle:l.endAngle}},i,t));else p.updateProps(this,{shape:u},i,t);this.useStyle(e.getItemVisual(t,"style")),Object(m.I)(this,r);var c=(l.startAngle+l.endAngle)/2,h=i.get("selectedOffset"),g=Math.cos(c)*h,f=Math.sin(c)*h,y=r.getShallow("cursor");y&&this.attr("cursor",y),this._updateLabel(i,e,t),this.ensureState("emphasis").shape=Object(d.a)({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},Object(L.a)(s.getModel("itemStyle"),l)),Object(o.extend)(this.ensureState("select"),{x:g,y:f,shape:Object(L.a)(r.getModel(["select","itemStyle"]),l)}),Object(o.extend)(this.ensureState("blur"),{shape:Object(L.a)(r.getModel(["blur","itemStyle"]),l)});var v=this.getTextGuideLine(),b=this.getTextContent();v&&Object(o.extend)(v.ensureState("select"),{x:g,y:f}),Object(o.extend)(b.ensureState("select"),{x:g,y:f}),Object(m.o)(this,s.get("focus"),s.get("blurScope"))}},t.prototype._updateLabel=function(e,t,a){var n=t.getItemModel(a),i=n.getModel("labelLine"),r=t.getItemVisual(a,"style"),s=r&&r.fill,l=r&&r.opacity;Object(M.h)(this,Object(M.f)(n),{labelFetcher:t.hostModel,labelDataIndex:a,inheritColor:s,defaultOpacity:l,defaultText:e.getFormattedLabel(a,"normal")||t.getName(a)});var u=this.getTextContent();this.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=e.get(["label","position"]);if("outside"!==c&&"outer"!==c)this.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new g.a,this.setTextGuideLine(d)),Object(x.d)(this,Object(x.a)(n),{stroke:s,opacity:Object(o.retrieve3)(i.get(["lineStyle","opacity"]),l,1)})}},t}(f.a),j=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return Object(d.b)(t,e),t.prototype.init=function(){var e=new y.a;this._sectorGroup=e},t.prototype.render=function(e,t,a,n){var i,r=e.getData(),o=this._data,s=this.group;if(!o&&r.count()>0){for(var l=r.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<r.count();++u)l=r.getItemLayout(u);l&&(i=l.startAngle)}r.diff(o).add((function(e){var t=new D(r,e,i);r.setItemGraphicEl(e,t),s.add(t)})).update((function(e,t){var a=o.getItemGraphicEl(t);
1a.updateData(r,e,i),a.off("click"),s.add(a),r.setItemGraphicEl(e,a)})).remove((function(t){var a=o.getItemGraphicEl(t);p.removeElementWithFadeOut(a,e,t)})).execute(),I(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=r)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var a=t.getData().getItemLayout(0);if(a){var n=e[0]-a.cx,i=e[1]-a.cy,r=Math.sqrt(n*n+i*i);return r<=a.r&&r>=a.r0}},t.type="pie",t}(v.a),A=a(198),C=a(10),N=a(139),P=a(236),T=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.useColorPaletteOnData=!0,t}return Object(d.b)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new P.a(o.bind(this.getData,this),o.bind(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Object(A.a)(this,{coordDimensions:["value"],encodeDefaulter:o.curry(N.d,this)})},t.prototype.getDataParams=function(t){var a=this.getData(),n=e.prototype.getDataParams.call(this,t),r=[];return a.each(a.mapDimension("value"),(function(e){r.push(e)})),n.percent=Object(i.d)(r,t,a.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},t.prototype._defaultLabelLine=function(e){C.f(e,"labelLine",["show"]);var t=e.labelLine,a=e.emphasis.labelLine;t.show=t.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={zlevel:0,z:2,legendHoverLink:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(a(58).a);function E(e){e.registerChartView(j),e.registerSeriesModel(T),Object(n.a)("pie",e.registerAction),e.registerLayout(Object(o.curry)(u,"pie")),e.registerProcessor(Object(c.a)("pie"))}},1182:function(e,t,a){"use strict";a.d(t,"a",(function(){return L}));var n=a(43),i=a(0);function r(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),a=[],n=e.coordinateSystem;if(n){var r=n.getIndicatorAxes();i.each(r,(function(e,i){t.each(t.mapDimension(r[i].dim),(function(e,t){a[t]=a[t]||[];var r=n.dataToPoint(e,i);a[t][i]=o(r)?r:s(n)}))})),t.each((function(e){var r=i.find(a[e],(function(e){return o(e)}))||s(n);a[e].push(r.slice()),t.setItemLayout(e,a[e])}))}}))}function o(e){return!isNaN(e[0])&&!isNaN(e[1])}function s(e){return[e.cx,e.cy]}var l=a(237);function u(e){var t=e.polar;if(t){i.isArray(t)||(t=[t]);var a=[];i.each(t,(function(t,n){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],i.isArray(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):a.push(t)})),e.polar=a}i.each(e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}var c=a(3),d=a(11),h=a(296),p=a(323),g=a(82),f=a(15),y=a(71),m=a(56),v=a(21),b=a(93);var x=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(c.b)(t,e),t.prototype.render=function(e,t,a){var n=e.coordinateSystem,r=this.group,o=e.getData(),s=this._data;function l(e,t){var a=e.getItemVisual(t,"symbol")||"circle";if("none"!==a){var n=function(e){return i.isArray(e)||(e=[+e,+e]),e}(e.getItemVisual(t,"symbolSize")),r=y.a(a,-1,-1,2,2),o=e.getItemVisual(t,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:n[0]/2,scaleY:n[1]/2,rotation:o*Math.PI/180||0}),r}}function u(t,a,n,i,r,o){n.removeAll();for(var s=0;s<a.length-1;s++){var u=l(i,r);u&&(u.__dimIdx=s,t[s]?(u.setPosition(t[s]),d[o?"initProps":"updateProps"](u,{x:a[s][0],y:a[s][1]},e,r)):u.setPosition(a[s]),n.add(u))}}function c(e){return i.map(e,(function(e){return[n.cx,n.cy]}))}o.diff(s).add((function(t){var a=o.getItemLayout(t);if(a){var n=new h.a,i=new p.a,r={shape:{points:a}};n.shape.points=c(a),i.shape.points=c(a),d.initProps(n,r,e,t),d.initProps(i,r,e,t);var s=new g.a,l=new g.a;s.add(i),s.add(n),s.add(l),u(i.shape.points,a,l,o,t,!0),o.setItemGraphicEl(t,s)}})).update((function(t,a){var n=s.getItemGraphicEl(a),i=n.childAt(0),r=n.childAt(1),l=n.childAt(2),c={shape:{points:o.getItemLayout(t)}};c.shape.points&&(u(i.shape.points,c.shape.points,l,o,t,!1),d.updateProps(i,c,e),d.updateProps(r,c,e),o.setItemGraphicEl(t,n))})).remove((function(e){r.remove(s.getItemGraphicEl(e))})).execute(),o.eachItemGraphicEl((function(e,t){var a=o.getItemModel(t),n=e.childAt(0),s=e.childAt(1),l=e.childAt(2),u=o.getItemVisual(t,"style"),c=u.fill;r.add(e),n.useStyle(i.defaults(a.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),Object(f.I)(n,a,"lineStyle"),Object(f.I)(s,a,"areaStyle");var d=a.getModel("areaStyle"),h=d.isEmpty()&&d.parentModel.isEmpty();s.ignore=h,i.each(["emphasis","select","blur"],(function(e){var t=a.getModel([e,"areaStyle"]),n=t.isEmpty()&&t.parentModel.isEmpty();s.ensureState(e).ignore=n&&h}
1)),s.useStyle(i.defaults(d.getAreaStyle(),{fill:c,opacity:.7,decal:u.decal}));var p=a.getModel("emphasis"),g=p.getModel("itemStyle").getItemStyle();l.eachChild((function(e){if(e instanceof b.a){var n=e.style;e.useStyle(i.extend({image:n.image,x:n.x,y:n.y,width:n.width,height:n.height},u))}else e.useStyle(u),e.setColor(c);e.ensureState("emphasis").style=i.clone(g);var r=o.get(o.dimensions[e.__dimIdx],t);(null==r||isNaN(r))&&(r=""),Object(v.h)(e,Object(v.f)(a),{labelFetcher:o.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:r,inheritColor:c,defaultOpacity:u.opacity})})),Object(f.o)(e,p.get("focus"),p.get("blurScope"))})),this._data=o},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(m.a),_=a(58),S=a(198),O=a(236),w=a(70),I=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a.useColorPaletteOnData=!0,a.hasSymbolVisual=!0,a}return Object(c.b)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new O.a(i.bind(this.getData,this),i.bind(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return Object(S.a)(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,a){var n=this.getData(),r=this.coordinateSystem.getIndicatorAxes(),o=this.getData().getName(e),s=""===o?this.name:o,l=Object(w.e)(this,e);return Object(w.c)("section",{header:s,sortBlocks:!0,blocks:i.map(r,(function(t){var a=n.get(n.mapDimension(t.dim),e);return Object(w.c)("nameValue",{markerType:"subItem",markerColor:l,name:t.name,value:a,sortParam:a})}))})},t.prototype.getTooltipPosition=function(e){if(null!=e)for(var t=this.getData(),a=this.coordinateSystem,n=t.getValues(i.map(a.dimensions,(function(e){return t.mapDimension(e)})),e),r=0,o=n.length;r<o;r++)if(!isNaN(n[r])){var s=a.getIndicatorAxes();return a.coordToPoint(s[r].dataToCoord(n[r]),r)}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbolSize:8},t}(_.a),M=a(1172);function L(e){Object(n.a)(M.a),e.registerChartView(x),e.registerSeriesModel(I),e.registerLayout(r),e.registerProcessor(Object(l.a)("radar")),e.registerPreprocessor(u)}},1183:function(e,t,a){"use strict";a.d(t,"a",(function(){return G}));var n=a(0),i=a(218),r=a(566),o=a(3),s=a(412),l=a(124),u=a(94),c=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(o.b)(t,e),t.prototype.getInitialData=function(){return Object(l.a)(this.getSource(),this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,a){return a.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Object(u.d)(s.a.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(s.a),d=a(45),h=a(82),p=a(11),g=a(108),f=a(327),y=a(23),m=a(15),v=a(21),b=a(138),x=a(217),_=a(477),S=a(56),O=a(176),w=a(187),I=[0,0],M=Math.max,L=Math.min;var D=function(e){function t(){var a=e.call(this)||this;return a.type=t.type,a._isFirstFrame=!0,a}return Object(o.b)(t,e),t.prototype.render=function(e,t,a,n){this._model=e,this._removeOnRenderedListener(a),this._updateDrawMode(e);var i=e.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._isLargeDraw?this._renderLarge(e,t,a):this._renderNormal(e,t,a,n))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._incrementalRenderLarge(e,t)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,a,n){var i,r=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=e.isAnimationEnabled()?e:null,d=function(e,t){var a=e.get("realtimeSort",!0),n=t.getBaseAxis();0;if(a&&"category"===n.type&&"cartesian2d"===t.type)return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}(e,l);d&&this._enableRealtimeSort(d,o,a);
1var y=e.get("clip",!0)||d,m=function(e,t){var a=e.getArea&&e.getArea();if(Object(O.a)(e,"cartesian2d")){var n=e.getBaseAxis();if("category"!==n.type||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(a.x-=i,a.width+=2*i):(a.y-=i,a.height+=2*i)}}return a}(l,o);r.removeClipPath();var v=e.get("roundCap",!0),b=e.get("showBackground",!0),x=e.getModel("backgroundStyle"),_=x.get("borderRadius")||0,S=[],w=this._backgroundEls,I=n&&n.isInitSort,M=n&&"changeAxisOrder"===n.type;function L(e){var t=N[l.type](o,e),a=function(e,t,a){return new("polar"===e.type?f.a:g.a)({shape:z(t,a,e),silent:!0,z2:0})}(l,i,t);return a.useStyle(x.getItemStyle()),"cartesian2d"===l.type&&a.setShape("r",_),S[e]=a,a}o.diff(s).add((function(t){var a=o.getItemModel(t),n=N[l.type](o,t,a);if(b&&L(t),o.hasValue(t)){var s=!1;y&&(s=j[l.type](m,n));var h=A[l.type](e,o,t,n,i,c,u.model,!1,v);P(h,o,t,a,n,e,i,"polar"===l.type),I?h.attr({shape:n}):d?C(d,c,h,n,t,i,!1,!1):Object(p.initProps)(h,{shape:n},e,t),o.setItemGraphicEl(t,h),r.add(h),h.ignore=s}})).update((function(t,a){var n=o.getItemModel(t),h=N[l.type](o,t,n);if(b){var g=void 0;0===w.length?g=L(a):((g=w[a]).useStyle(x.getItemStyle()),"cartesian2d"===l.type&&g.setShape("r",_),S[t]=g);var f=N[l.type](o,t),O=z(i,f,l);Object(p.updateProps)(g,{shape:O},c,t)}var D=s.getItemGraphicEl(a);if(!o.hasValue(t))return r.remove(D),void(D=null);var T=!1;y&&(T=j[l.type](m,h))&&r.remove(D),D||(D=A[l.type](e,o,t,h,i,c,u.model,!!D,v)),M||P(D,o,t,n,h,e,i,"polar"===l.type),I?D.attr({shape:h}):d?C(d,c,D,h,t,i,!0,M):Object(p.updateProps)(D,{shape:h},e,t,null),o.setItemGraphicEl(t,D),D.ignore=T,r.add(D)})).remove((function(t){var a=s.getItemGraphicEl(t);a&&Object(p.removeElementWithFadeOut)(a,e,t)})).execute();var D=this._backgroundGroup||(this._backgroundGroup=new h.a);D.removeAll();for(var T=0;T<S.length;++T)D.add(S[T]);r.add(D),this._backgroundEls=S,this._data=o},t.prototype._renderLarge=function(e,t,a){this._clear(),R(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),R(t,this.group,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)?Object(x.a)(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,a){var n=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,a),this._isFirstFrame=!1;else{var r=function(e){var a=t.getItemGraphicEl(e);if(a){var n=a.shape;return(i.isHorizontal()?Math.abs(n.height):Math.abs(n.width))||0}return 0};this._onRendered=function(){n._updateSortWithinSameData(t,r,i,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,a){var i=[];return e.each(e.mapDimension(t.dim),(function(e,t){var n=a(t);n=null==n?NaN:n,i.push({dataIndex:t,mappedValue:n,ordinalNumber:e})})),i.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:Object(n.map)(i,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,a){for(var n=a.scale,i=e.mapDimension(a.dim),r=Number.MAX_VALUE,o=0,s=n.getOrdinalMeta().categories.length;o<s;++o){var l=e.rawIndexOf(i,n.getRawOrdinalNumber(o)),u=l<0?Number.MIN_VALUE:t(e.indexOfRawIndex(l));if(u>r)return!0;r=u}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var a=t.scale,n=a.getExtent(),i=Math.max(0,n[0]),r=Math.min(n[1],a.getOrdinalMeta().categories.length-1);i<=r;++i)if(e.ordinalNumbers[i]!==a.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,a,n){if(this._isOrderChangedWithinSameData(e,t,a)){var i=this._dataSort(e,a,t);this._isOrderDifferentInView(i,a)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,a){var n=t.baseAxis,i=this._dataSort(e,n,(function(a){return e.get(e.mapDimension(t.otherAxis.dim),a)}));a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:i,animation:{duration:0}})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,a=this._data;
1e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl((function(t){Object(p.removeElementWithFadeOut)(t,e,Object(y.a)(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(S.a),j={cartesian2d:function(e,t){var a=t.width<0?-1:1,n=t.height<0?-1:1;a<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,r=e.y+e.height,o=M(t.x,e.x),s=L(t.x+t.width,i),l=M(t.y,e.y),u=L(t.y+t.height,r),c=s<o,d=u<l;return t.x=c&&o>i?s:o,t.y=d&&l>r?u:l,t.width=c?0:s-o,t.height=d?0:u-l,a<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||d},polar:function(e,t){var a=t.r0<=t.r?1:-1;if(a<0){var n=t.r;t.r=t.r0,t.r0=n}var i=L(t.r,e.r),r=M(t.r0,e.r0);t.r=i,t.r0=r;var o=i-r<0;if(a<0){n=t.r;t.r=t.r0,t.r0=n}return o}},A={cartesian2d:function(e,t,a,i,r,o,s,l,u){var c=new g.a({shape:Object(n.extend)({},i),z2:1});(c.__dataIndex=a,c.name="item",o)&&(c.shape[r?"height":"width"]=0);return c},polar:function(e,t,a,i,r,o,s,l,u){var c=i.startAngle<i.endAngle,d=new(!r&&u?_.a:f.a)({shape:Object(n.defaults)({clockwise:c},i),z2:1});if(d.name="item",o){var h=r?"r":"endAngle",g={};d.shape[h]=r?0:i.startAngle,g[h]=i[h],(l?p.updateProps:p.initProps)(d,{shape:g},o)}return d}};function C(e,t,a,n,i,r,o,s){var l,u;r?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?p.updateProps:p.initProps)(a,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?p.updateProps:p.initProps)(a,{shape:u},c,i)}var N={cartesian2d:function(e,t,a){var n=e.getItemLayout(t),i=a?function(e,t){var a=e.get(["itemStyle","borderColor"]);if(!a||"none"===a)return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),r=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,r)}(a,n):0,r=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+r*i/2,y:n.y+o*i/2,width:n.width-r*i,height:n.height-o*i}},polar:function(e,t,a){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle}}};function P(e,t,a,i,r,o,s,l){var u=t.getItemVisual(a,"style");l||e.setShape("r",i.get(["itemStyle","borderRadius"])||0),e.useStyle(u);var c=i.getShallow("cursor");if(c&&e.attr("cursor",c),!l){var d=s?r.height>0?"bottom":"top":r.width>0?"left":"right",h=Object(v.f)(i);Object(v.h)(e,h,{labelFetcher:o,labelDataIndex:a,defaultText:Object(w.b)(o.getData(),a),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:d});var p=e.getTextContent();Object(v.i)(p,h,o.getRawValue(a),(function(e){return Object(w.a)(t,e)}))}var g=i.getModel(["emphasis"]);Object(m.o)(e,g.get("focus"),g.get("blurScope")),Object(m.I)(e,i),function(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}(r)&&(e.style.fill="none",e.style.stroke="none",Object(n.each)(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}var T=function(){},E=function(e){function t(t){var a=e.call(this,t)||this;return a.type="largeBar",a}return Object(o.b)(t,e),t.prototype.getDefaultShape=function(){return new T},t.prototype.buildPath=function(e,t){for(var a=t.points,n=this.__startPoint,i=this.__baseDimIdx,r=0;r<a.length;r+=2)n[i]=a[r+i],e.moveTo(n[0],n[1]),e.lineTo(a[r],a[r+1])},t}(d.b);function R(e,t,a){var i=e.getData(),r=[],o=i.getLayout("valueAxisHorizontal")?1:0;r[1-o]=i.getLayout("valueAxisStart");var s=i.getLayout("largeDataIndices"),l=i.getLayout("barWidth"),u=e.getModel("backgroundStyle");if(e.get("showBackground",!0)){var c=i.getLayout("largeBackgroundPoints"),d=[];d[1-o]=i.getLayout("backgroundStart");var h=new E({shape:{points:c},incremental:!!a,silent:!0,z2:0});h.__startPoint=d,h.__baseDimIdx=o,h.__largeDataIndices=s,h.__barWidth=l,function(e,t,a){var n=t.get("borderColor")||t.get("color"),i=t.getItemStyle();e.useStyle(i),e.style.fill=null,e.style.stroke=n,e.style.lineWidth=a.getLayout("barWidth")}(h,u,i),t.add(h)}var p=new E({shape:{points:i.getLayout("largePoints")},incremental:!!a});p.__startPoint=r,p.__baseDimIdx=o,p.__largeDataIndices=s,p.__barWidth=l,t.add(p),function(e,t,a){var i=a.getVisual("style");e.useStyle(Object(n.extend)({},i)),e.style.fill=null,e.style.stroke=i.fill,e.style.lineWidth=a.getLayout("barWidth")}(p,0,i),Object(y.a)(p).seriesIndex=e.seriesIndex,e.get("silent")||(p.on("mousedown",V),p.on("mousemove",V))}var V=Object(b.c)((function(e){var t=function(e,t,a){var n=e.__baseDimIdx,i=1-n,r=e.shape.points,o=e.__largeDataIndices,s=Math.abs(e.__barWidth/2),l=e.__startPoint[i];I[0]=t,I[1]=a;for(var u=I[n],c=I[1-n],d=u-s,h=u+s,p=0,g=r.length/2;p<g;p++){var f=2*p,y=r[f+n],m=r[f+i];if(y>=d&&y<=h&&(l<=m?c>=l&&c<=m:c>=m&&c<=l))return o[p]}return-1}(this,e.offsetX,e.offsetY);Object(y.a)(this).dataIndex=t>=0?t:null}),30,!1);function z(e,t,a){if(Object(O.a)(a,"cartesian2d")){var n=t,i=a.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}var r=t;return{cx:(i=a.getArea()).cx,cy:i.cy,r0:e?i.r0:r.r0,r:e?i.r:r.r,startAngle:e?r.startAngle:0,endAngle:e?r.endAngle:2*Math.PI}}var k=D;function G(e){e.registerChartView(k),e.registerSeriesModel(c),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,n.curry(i.c,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,i.b),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Object(r.a)("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var a=e.componentType||"series";t.eachComponent({mainType:a,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}},124:function(e,t,a){"use strict";var n=a(0),i=a(100),r=a(194),o=a(264),s=a(10),l=a(215),u=a(1089),c=a(140),d=a(115),h=a(139),p=a(24);t.a=function(e,t,a){a=a||{},Object(c.e)(e)||(e=Object(c.c)(e));var g,f=t.get("coordinateSystem"),y=l.a.get(f),m=Object(u.a)(t);m&&m.coordSysDims&&(g=n.map(m.coordSysDims,(function(e){var t={name:e},a=m.axisMap.get(e);if(a){var n=a.get("type");t.type=Object(o.a)(n)}return t}))),g||(g=y&&(y.getDimensionsInfo?y.getDimensionsInfo():y.dimensions.slice())||["x","y"]);var v,b,x=a.useEncodeDefaulter,_=Object(r.a)(e,{coordDimensions:g,generateCoord:a.generateCoord,encodeDefaulter:n.isFunction(x)?x:x?n.curry(h.c,g,t):null});m&&n.each(_,(function(e,t){var n=e.coordDim,i=m.categoryAxisMap.get(n);i&&(null==v&&(v=t),e.ordinalMeta=i.getOrdinalMeta(),a.createInvertedIndices&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(b=!0)})),b||null==v||(_[v].otherDims.itemName=0);var S=Object(d.a)(t,_),O=new i.a(_,t);O.setCalculationInfo(S);var w=null!=v&&function(e){if(e.sourceFormat===p.f){var t=function(e){var t=0;for(;t<e.length&&null==e[t];)t++;return e[t]}(e.data||[]);return null!=t&&!n.isArray(Object(s.h)(t))}}(e)?function(e,t,a,n){return n===v?a:this.defaultDimValueGetter(e,t,a,n)}:null;return O.hasItemOption=!1,O.initData(e,null,w),O}},134:function(e,t,a){"use strict";a.d(t,"c",(function(){return i})),a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return o}
1)),a.d(t,"d",(function(){return s}));var n=a(0);function i(e,t,a){if(e&&n.indexOf(t,e.type)>=0){var i=a.getData().tree.root,r=e.targetNode;if("string"==typeof r&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=e.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function r(e){for(var t=[];e;)(e=e.parentNode)&&t.push(e);return t.reverse()}function o(e,t){var a=r(e);return n.indexOf(a,t)>=0}function s(e,t){for(var a=[];e;){var n=e.dataIndex;a.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return a.reverse(),a}},1727:function(e,t,a){"use strict";a.d(t,"a",(function(){return Me}));var n=a(3),i=a(0),r=a(11),o=a(93),s=a(112),l=a(82),u=a(45),c=a(15),d=a(21),h=a(187),p=a(124),g=a(218),f=a(163),y=a(58),m=a(56),v=a(217),b=a(1098),x=a(1099),_=a(1100),S=a(1101),O=a(1102),w=a(10),I=a(303),M=a(173),L=a(220),D=a(41),j=a(332),A=a(29),C=a(263),N=Object(w.o)(),P=(Object(i.keys)({x:1,y:1,scaleX:1,scaleY:1,originX:1,originY:1,rotation:1}).join(", "),{color:"fill",borderColor:"stroke"}),T={symbol:1,symbolSize:1,symbolKeepAspect:1,legendSymbol:1,visualMeta:1,liftZ:1,decal:1},E=["normal","emphasis","blur","select"],R={normal:["itemStyle"],emphasis:["emphasis","itemStyle"],blur:["blur","itemStyle"],select:["select","itemStyle"]},V={normal:["label"],emphasis:["emphasis","label"],blur:["blur","label"],select:["select","label"]},z={normal:{},emphasis:{},blur:{},select:{}},k={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},G=new M.a,B={cartesian2d:b.a,geo:x.a,singleAxis:_.a,polar:S.a,calendar:O.a},F=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(n.b)(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return Object(p.a)(this.getSource(),this)},t.prototype.getDataParams=function(t,a,n){var i=e.prototype.getDataParams.call(this,t,a);return n&&(i.info=N(n).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,clip:!1},t}(y.a),Y=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(n.b)(t,e),t.prototype.render=function(e,t,a,n){var i=this._data,r=e.getData(),o=this.group,s=ue(e,r,t,a),l=e.__transientTransitionOpt;if(!l||null!=l.from&&null!=l.to){var u=new we(e,l),c=l?"multiple":"oneToOne";new f.a(i?i.getIndices():[],r.getIndices(),X(i,c,l&&l.from),X(r,c,l&&l.to),null,c).add((function(t){de(a,null,t,s(t,n),e,o,r,null)})).remove((function(t){xe(i.getItemGraphicEl(t),e,o)})).update((function(t,l){u.reset("oneToOne");var c=i.getItemGraphicEl(l);u.findAndAddFrom(c),u.hasFrom()&&(Oe(c,o),c=null),de(a,c,t,s(t,n),e,o,r,u),u.applyMorphing()})).updateManyToOne((function(t,l){u.reset("manyToOne");for(var c=0;c<l.length;c++){var d=i.getItemGraphicEl(l[c]);u.findAndAddFrom(d),Oe(d,o)}de(a,null,t,s(t,n),e,o,r,u),u.applyMorphing()})).updateOneToMany((function(t,l){u.reset("oneToMany");var c=t.length,d=i.getItemGraphicEl(l);u.findAndAddFrom(d),Oe(d,o);for(var h=0;h<c;h++)de(a,null,t[h],s(t[h],n),e,o,r,u);u.applyMorphing()})).execute()}else i&&i.each((function(t){xe(i.getItemGraphicEl(t),e,o)})),r.each((function(t){de(a,null,t,s(t,n),e,o,r,null)}));var d=e.get("clip",!0)?Object(v.a)(e.coordinateSystem,!1,e):null;d?o.setClipPath(d):o.removeClipPath(),this._data=r},t.prototype.incrementalPrepareRender=function(e,t,a){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,a,n,i){var r=t.getData(),o=ue(t,r,a,n);function s(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var l=e.start;l<e.end;l++){de(null,null,l,o(l,i),t,this.group,r,null).traverse(s)}},t.prototype.filterForExposedEvent=function(e,t,a,n){var i=t.element;if(null==i||a.name===i)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===i)return!0;return!1},t.type="custom",t}(m.a);function X(e,t,a){if(e){if("oneToOne"===t)return function(t,a){return e.getId(a)};
1var n=e.getDimension(a),r=e.getDimensionInfo(n);if(!r){0,Object(D.b)("")}var o=r.ordinalMeta;return function(t,a){var r=e.get(n,a);return o&&(r=o.categories[r]),null==r||Object(i.eqNaN)(r)?t+"":"_ec_"+r}}}function W(e){var t,a=e.type;if("path"===a){var n=e.shape,i=null!=n.width&&null!=n.height?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,u=_e(n);t=r.makePath(u,null,i,n.layout||"center"),N(t).customPathData=u}else if("image"===a)t=new o.a({}),N(t).customImagePath=e.style.image;else if("text"===a)t=new s.a({});else if("group"===a)t=new l.a;else{if("compoundPath"===a)throw new Error('"compoundPath" is not supported yet.');var c=r.getShapeClass(a);if(!c){0,Object(D.b)("")}t=new c}return N(t).customGraphicType=a,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function H(e,t,a,n,r,o,s,l,u,c){var d={},h={},p=t.isGroup?null:t;!a&&q("shape",t,null,r,d,u),J("shape",r,h),!a&&q("extra",t,null,r,d,u),J("extra",r,h),!a&&K(t,null,r,d,u),function(e,t){oe(e,t,"position"),oe(e,t,"scale"),oe(e,t,"origin"),se(e,t,"x"),se(e,t,"y"),se(e,t,"scaleX"),se(e,t,"scaleY"),se(e,t,"originX"),se(e,t,"originY"),se(e,t,"rotation")}(r,h);var g=s&&s.normal.cfg;if(g&&t.setTextConfig(g),"text"===t.type&&o){var f=o;Object(i.hasOwn)(f,"textFill")&&(f.fill=f.textFill),Object(i.hasOwn)(f,"textStroke")&&(f.stroke=f.textStroke)}if(o){var y=void 0,m=Se(t)?o.decal:null;e&&m&&(m.dirty=!0,y=Object(C.a)(m,e)),o.__decalPattern=y}return!a&&Q(t,null,r,o,d,u),p&&Object(i.hasOwn)(r,"invisible")&&(p.invisible=r.invisible),a||(U(t,h,o),Z(t,n,r,l,d,u)),Object(i.hasOwn)(r,"silent")&&(t.silent=r.silent),Object(i.hasOwn)(r,"ignore")&&(t.ignore=r.ignore),c||Object(i.hasOwn)(r,"info")&&(N(t).info=r.info),o?t.dirty():t.markRedraw(),a?h:null}function U(e,t,a){var n=e.isGroup?null:e;if(n&&a){var i=a.__decalPattern,r=void 0;i&&(r=a.decal,a.decal=i),n.useStyle(a),i&&(a.decal=r);for(var o=n.animators,s=0;s<o.length;s++){var l=o[s];"style"===l.targetName&&l.changeTarget(n.style)}}t&&e.attr(t)}function Z(e,t,a,n,o,s){if(o){var l=a.during;N(e).userDuring=l;var u={dataIndex:t,isFrom:!0,during:l?Object(i.bind)(ne,{el:e,userDuring:l}):null};s?r.initProps(e,o,n,u):r.updateProps(e,o,n,u)}}function q(e,t,a,n,r,o){var s=n[e];if(s){var l,u=t[e],c=s.enterFrom;if(o&&c){!l&&(l=r[e]={});for(var d=Object(i.keys)(c),h=0;h<d.length;h++){l[x=d[h]]=c[x]}}if(!o&&u&&(null==a||"shape"!==e))if(s.transition){!l&&(l=r[e]={});var p=Object(w.r)(s.transition);for(h=0;h<p.length;h++){var g=u[x=p[h]];0,l[x]=g}}else if(Object(i.indexOf)(n.transition,e)>=0){!l&&(l=r[e]={});var f=Object(i.keys)(u);for(h=0;h<f.length;h++){g=u[x=f[h]];$(s[x],g)&&(l[x]=g)}}var y=s.leaveTo;if(y){var m=ee(t),v=m[e]||(m[e]={}),b=Object(i.keys)(y);for(h=0;h<b.length;h++){var x;v[x=b[h]]=y[x]}}}}function J(e,t,a){var n=t[e];if(n)for(var r=a[e]={},o=Object(i.keys)(n),s=0;s<o.length;s++){var l=o[s];r[l]=Object(L.a)(n[l])}}function K(e,t,a,n,r){var o=a.enterFrom;if(r&&o)for(var s=Object(i.keys)(o),l=0;l<s.length;l++){0,n[f=s[l]]=o[f]}if(!r)if(t){var u=function(e,t){if(!e||e===t||e.parent===t.parent)return e;var a=G.transform||(G.transform=A.identity([])),n=e.getComputedTransform();n?A.copy(a,n):A.identity(a);var i=t.parent;i&&i.getComputedTransform();return G.originX=e.originX,G.originY=e.originY,G.parent=i,G.decomposeTransform(),G}(t,e);le(n,"x",u),le(n,"y",u),le(n,"scaleX",u),le(n,"scaleY",u),le(n,"originX",u),le(n,"originY",u),le(n,"rotation",u)}else if(a.transition){var c=Object(w.r)(a.transition);for(l=0;l<c.length;l++){if("style"!==(f=c[l])&&"shape"!==f&&"extra"!==f){var d=e[f];0,n[f]=d}}}else le(n,"x",e),le(n,"y",e);var h=a.leaveTo;if(h){var p=ee(e),g=Object(i.keys)(h);for(l=0;l<g.length;l++){var f;0,p[f=g[l]]=h[f]}}}function Q(e,t,a,n,r,o){if(n){var s,l=(t||e).style,u=n.enterFrom;if(o&&u){var c=Object(i.keys)(u);!s&&(s=r.style={});for(var d=0;d<c.length;d++){s[_=c[d]]=u[_]}}if(!o&&l)if(n.transition){var h=Object(w.r)(n.transition);!s&&(s=r.style={});for(d=0;d<h.length;d++){var p=l[_=h[d]];s[_]=p}}else if(e.getAnimationStyleProps&&Object(i.indexOf)(a.transition,"style")>=0){var g=e.getAnimationStyleProps(),f=g?g.style:null;if(f){!s&&(s=r.style={});var y=Object(i.keys)(n);for(d=0;d<y.length;d++){if(f[_=y[d]]){p=l[_];s[_]=p}}}}var m=n.leaveTo;if(m){var v=Object(i.keys)(m),b=ee(e),x=b.style||(b.style={});for(d=0;d<v.length;d++){var _;x[_=v[d]]=m[_]}}}}function $(e,t){return Object(i.isArrayLike)(e)?e!==t:null!=e&&isFinite(e)}function ee(e){var t=N(e);return t.leaveToProps||(t.leaveToProps={})}var te={},ae={setTransform:function(e,t){return te.el[e]=t,this},getTransform:function(e){return te.el[e]},setShape:function(e,t){return(te.el.shape||(te.el.shape={}))[e]=t,te.isShapeDirty=!0,this},getShape:function(e){var t=te.el.shape;if(t)return t[e]},setStyle:function(e,t){var a=te.el.style;return a&&(a[e]=t,te.isStyleDirty=!0),this},getStyle:function(e){var t=te.el.style;if(t)return t[e]},setExtra:function(e,t){return(te.el.extra||(te.el.extra={}))[e]=t,this},getExtra:function(e){var t=te.el.extra;if(t)return t[e]}};function ne(){var e=this.el;if(e){var t=N(e).userDuring,a=this.userDuring;t===a?(te.el=e,te.isShapeDirty=!1,te.isStyleDirty=!1,a(ae),te.isShapeDirty&&e.dirtyShape&&e.dirtyShape(),te.isStyleDirty&&e.dirtyStyle&&e.dirtyStyle()):this.el=this.userDuring=null}}function ie(e,t,a,n,i,r,o){var s=t.isGroup?null:t,l=i&&i[e].cfg;if(s){var u=s.ensureState(e);
1if(!1===n){var d=s.getState(e);d&&(d.style=null)}else u.style=n||null;l&&(u.textConfig=l),Object(c.G)(s)}}function re(e,t,a){var n="normal"===a,i=n?t:fe(t,a),r=i?i.z2:null;null!=r&&((n?e:e.ensureState(a)).z2=r||0)}function oe(e,t,a,n){var i=e[a],r=k[a];i&&(n?(t[r[0]]=n[r[0]],t[r[1]]=n[r[1]]):(t[r[0]]=i[0],t[r[1]]=i[1]))}function se(e,t,a,n){null!=e[a]&&(t[a]=n?n[a]:e[a])}function le(e,t,a){a&&(e[t]=a[t])}function ue(e,t,a,n){var r=e.get("renderItem"),o=e.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):B[o.type](o));for(var l,u,c=Object(i.defaults)({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:function(e,a){return null==a&&(a=l),t.get(t.getDimension(e||0),a)},style:function(a,n){0;null==n&&(n=l);var r=t.getItemVisual(n,"style"),o=r&&r.fill,s=r&&r.opacity,u=S(n,"normal").getItemStyle();null!=o&&(u.fill=o),null!=s&&(u.opacity=s);var c={inheritColor:Object(i.isString)(o)?o:"#000"},p=O(n,"normal"),g=d.c(p,null,c,!1,!0);g.text=p.getShallow("show")?Object(i.retrieve2)(e.getFormattedLabel(n,"normal"),Object(h.b)(t,n)):null;var f=d.b(p,c,!1);return M(a,u),u=Object(I.b)(u,g,f),a&&w(u,a),u.legacy=!0,u},ordinalRawValue:function(e,a){null==a&&(a=l);var n=t.getDimensionInfo(e||0);if(!n)return;var i=t.get(n.name,a),r=n&&n.ordinalMeta;return r?r.categories[i]:i},styleEmphasis:function(a,n){0;null==n&&(n=l);var r=S(n,"emphasis").getItemStyle(),o=O(n,"emphasis"),s=d.c(o,null,null,!0,!0);s.text=o.getShallow("show")?Object(i.retrieve3)(e.getFormattedLabel(n,"emphasis"),e.getFormattedLabel(n,"normal"),Object(h.b)(t,n)):null;var u=d.b(o,null,!0);return M(a,r),r=Object(I.b)(r,s,u),a&&w(r,a),r.legacy=!0,r},visual:function(e,a){if(null==a&&(a=l),Object(i.hasOwn)(P,e)){var n=t.getItemVisual(a,"style");return n?n[P[e]]:null}if(Object(i.hasOwn)(T,e))return t.getItemVisual(a,e)},barLayout:function(e){if("cartesian2d"===o.type){var t=o.getBaseAxis();return Object(g.a)(Object(i.defaults)({axis:t},e))}},currentSeriesIndices:function(){return a.getCurrentSeriesIndices()},font:function(e){return d.e(e,a)}},s.api||{}),p={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:s.coordSys,dataInsideLength:t.count(),encode:ce(e.getData())},f={},y={},m={},v={},b=0;b<E.length;b++){var x=E[b];m[x]=e.getModel(R[x]),v[x]=e.getModel(V[x])}function _(e){return e===l?u||(u=t.getItemModel(e)):t.getItemModel(e)}function S(e,a){return t.hasItemOption?e===l?f[a]||(f[a]=_(e).getModel(R[a])):_(e).getModel(R[a]):m[a]}function O(e,a){return t.hasItemOption?e===l?y[a]||(y[a]=_(e).getModel(V[a])):_(e).getModel(V[a]):v[a]}return function(e,a){return l=e,u=null,f={},y={},r&&r(Object(i.defaults)({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:a?a.type:null},p),c)};function w(e,t){for(var a in t)Object(i.hasOwn)(t,a)&&(e[a]=t[a])}function M(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}}function ce(e){var t={};return Object(i.each)(e.dimensions,(function(a,n){var i=e.getDimensionInfo(a);if(!i.isExtraCoord){var r=i.coordDim;(t[r]=t[r]||[])[i.coordDimIndex]=n}})),t}function de(e,t,a,n,i,r,o,s){if(n)return(t=he(e,t,a,n,i,r,!0,s))&&o.setItemGraphicEl(a,t),Object(c.o)(t,n.focus,n.blurScope),t;Oe(t,r)}function he(e,t,a,n,i,r,o,s){var l=-1;t&&pe(t,n)&&(l=r.childrenRef().indexOf(t),t=null);var u=!t;t?t.clearStates():t=W(n);var c=(N(t).canMorph=n.morph&&Se(t))&&s&&s.hasFrom(),d=u&&!c;z.normal.cfg=z.normal.conOpt=z.emphasis.cfg=z.emphasis.conOpt=z.blur.cfg=z.blur.conOpt=z.select.cfg=z.select.conOpt=null,z.isLegacy=!1,function(e,t,a,n,i,r){if(e.isGroup)return;ge(a,null,r),ge(a,"emphasis",r);var o=r.normal.conOpt,s=r.emphasis.conOpt,l=r.blur.conOpt,u=r.select.conOpt;if(null!=o||null!=s||null!=u||null!=l){var c=e.getTextContent();if(!1===o)c&&e.removeTextContent();else{o=r.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=W(o),e.setTextContent(c));var d=o&&o.style;H(null,c,null,t,o,d,null,n,i,!0);for(var h=0;h<E.length;h++){var p=E[h];if("normal"!==p){var g=r[p].conOpt;ie(p,c,0,ye(o,g,p),null)}}d?c.dirty():c.markRedraw()}}}(t,a,n,i,d,z),function(e,t,a,n,i){var r=a.clipPath;if(!1===r)e&&e.getClipPath()&&e.removeClipPath();else if(r){var o=e.getClipPath();o&&pe(o,r)&&(o=null),o||(o=W(r),e.setClipPath(o)),H(null,o,null,t,r,null,null,n,i,!1)}}(t,a,n,i,d);var h=H(e,t,c,a,n,n.style,z,i,d,!1);c&&s.addTo(t,n,a,h);for(var p=0;p<E.length;p++){var g=E[p];if("normal"!==g){var y=fe(n,g);ie(g,t,0,ye(n,y,g),z)}}return function(e,t,a,n){if(!e.isGroup){var i=e,r=a.currentZ,o=a.currentZLevel;i.z=r,i.zlevel=o;var s=t.z2;null!=s&&(i.z2=s||0);for(var l=0;l<E.length;l++)re(i,t,E[l])}}(t,n,i),"group"===n.type&&function(e,t,a,n,i,r){var o=n.children,s=o?o.length:0,l=n.$mergeChildren,u="byName"===l||n.diffChildrenByName,c=!1===l;if(!s&&!u&&!c)return;if(u)return d={api:e,oldChildren:t.children()||[],newChildren:o||[],dataIndex:a,seriesModel:i,group:t,morphPreparation:r},void new f.a(d.oldChildren,d.newChildren,me,me,d).add(ve).update(ve).remove(be).execute();var d;c&&t.removeAll();for(var h=0;h<s;h++)o[h]&&he(e,t.childAt(h),a,o[h],i,t,!1,r);for(var p=t.childCount()-1;p>=h;p--)xe(t.childAt(p),i,t)}(e,t,a,n,i,s),l>=0?r.replaceAt(t,l):r.add(t),t}function pe(e,t){var a,n=N(e),r=t.type,o=t.shape,s=t.style;return null!=r&&r!==n.customGraphicType||"path"===r&&((a=o)&&(Object(i.hasOwn)(a,"pathData")||Object(i.hasOwn)(a,"d")))&&_e(o)!==n.customPathData||"image"===r&&Object(i.hasOwn)(s,"image")&&s.image!==n.customImagePath}function ge(e,t,a){var n=t?fe(e,t):e,i=t?ye(e,n,"emphasis"):e.style,r=e.type,o=n?n.textConfig:null,s=e.textContent,l=s?t?fe(s,t):s:null;if(i&&(a.isLegacy||Object(I.c)(i,r,!!o,!!l))){a.isLegacy=!0;var u=Object(I.a)(i,r,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var d=t?a[t]:a.normal;d.cfg=o,d.conOpt=l}function fe(e,t){return t?e?e[t]:null:e}function ye(e,t,a){var n=t&&t.style;return null==n&&"emphasis"===a&&e&&(n=e.styleEmphasis),n}function me(e,t){var a=e&&e.name;return null!=a?a:"e\0\0"+t}function ve(e,t){var a=this.context,n=null!=e?a.newChildren[e]:null,i=null!=t?a.oldChildren[t]:null;he(a.api,i,a.dataIndex,n,a.seriesModel,a.group,0,a.morphPreparation)}function be(e){var t=this.context;xe(t.oldChildren[e],t.seriesModel,t.group)}function xe(e,t,a){if(e){var n=N(e).leaveToProps;n?r.updateProps(e,n,t,{cb:function(){a.remove(e)}}):a.remove(e)}}function _e(e){return e&&(e.pathData||e.d)}function Se(e){return e&&e instanceof u.b}function Oe(e,t){e&&t.remove(e)}var we=function(){function e(e,t){this._fromList=[],this._toList=[],this._toElOptionList=[],this._allPropsFinalList=[],this._toDataIndices=[],this._morphConfigList=[],this._seriesModel=e,this._transOpt=t}return e.prototype.hasFrom=function(){return!!this._fromList.length},e.prototype.findAndAddFrom=function(e){if(e&&(N(e).canMorph&&this._fromList.push(e),e.isGroup))for(var t=e.childrenRef(),a=0;a<t.length;a++)this.findAndAddFrom(t[a])},e.prototype.addTo=function(e,t,a,n){e&&(this._toList.push(e),this._toElOptionList.push(t),this._toDataIndices.push(a),this._allPropsFinalList.push(n))},e.prototype.applyMorphing=function(){var e=this._type,t=this._fromList,a=this._toList.length,n=t.length;if(n&&a)if("oneToOne"===e)for(var i=0;i<a;i++)this._oneToOneForSingleTo(i,i);else if("manyToOne"===e)for(var r=Math.max(1,Math.floor(n/a)),o=(i=0,0);i<a;i++,o+=r){var s=i+1>=a?n-o:r;this._manyToOneForSingleTo(i,o>=n?null:o,s)}else if("oneToMany"===e)for(var l=Math.max(1,Math.floor(a/n)),u=0,c=0;u<a;u+=l,c++){var d=u+l>=a?a-u:l;this._oneToManyForSingleFrom(u,d,c>=n?null:c)}},e.prototype._oneToOneForSingleTo=function(e,t){var a=this._toList[e],n=this._toElOptionList[e],i=this._toDataIndices[e],r=this._allPropsFinalList[e],o=this._fromList[t],s=this._getOrCreateMorphConfig(i),l=s.duration;if(o&&Object(j.b)(o)){if(U(a,r,n.style),l){var u=Object(j.a)([o],a,s,Ie);this._processResultIndividuals(u,e,null)}}else{var c=l&&o&&(o!==a||Object(j.c)(o))?o:null,d={};q("shape",a,c,n,d,!1),q("extra",a,c,n,d,!1),K(a,c,n,d,!1),Q(a,c,n,n.style,d,!1),U(a,r,n.style),c&&Object(j.d)(c,a,s),Z(a,i,n,this._seriesModel,d,!1)}},e.prototype._manyToOneForSingleTo=function(e,t,a){var n=this._toList[e],i=this._toElOptionList[e];U(n,this._allPropsFinalList[e],i.style);var r=this._getOrCreateMorphConfig(this._toDataIndices[e]);if(r.duration&&null!=t){for(var o=[],s=t;s<a;s++)o.push(this._fromList[s]);var l=Object(j.a)(o,n,r,Ie);this._processResultIndividuals(l,e,null)}},e.prototype._oneToManyForSingleFrom=function(e,t,a){for(var n=null==a?null:this._fromList[a],i=this._toList,r=[],o=e;o<t;o++){var s=i[o];U(s,this._allPropsFinalList[o],this._toElOptionList[o].style),r.push(s)}var l=this._getOrCreateMorphConfig(this._toDataIndices[e]);if(l.duration&&n){var u=Object(j.e)(n,r,l,Ie);this._processResultIndividuals(u,e,t)}},e.prototype._processResultIndividuals=function(e,t,a){for(var n=null!=a,i=0;i<e.count;i++){var r=e.fromIndividuals[i],o=e.toIndividuals[i],s=t+(n?i:0),l=this._toElOptionList[s],u=this._toDataIndices[s],c={};K(o,r,l,c,!1),Q(o,r,l,l.style,c,!1),Z(o,u,l,this._seriesModel,c,!1)}},e.prototype._getOrCreateMorphConfig=function(e){var t,a,n,r=this._morphConfigList,o=r[e];if(o)return o;var s=this._seriesModel,l=this._transOpt;if(s.isAnimationEnabled()){var u=void 0;if(s&&s.ecModel){var c=s.ecModel.getUpdatePayload();u=c&&c.animation}if(u)t=u.duration||0,a=u.easing||"cubicOut",n=u.delay||0;else{a=s.get("animationEasingUpdate");var d=s.get("animationDelayUpdate");n=Object(i.isFunction)(d)?d(e):d;var h=s.get("animationDurationUpdate");t=Object(i.isFunction)(h)?h(e):h}}return o={duration:t||0,delay:n,easing:a,dividingMethod:l?l.dividingMethod:null},r[e]=o,o},e.prototype.reset=function(e){this._type=e,this._fromList.length=this._toList.length=this._toElOptionList.length=this._allPropsFinalList.length=this._toDataIndices.length=0},e}();function Ie(e,t,a){t.style=a?Object(i.clone)(e.style):e.style,t.zlevel=e.zlevel,t.z=e.z,t.z2=e.z2}function Me(e){e.registerChartView(Y),e.registerSeriesModel(F)}},1731:function(e,t,a){"use strict";function n(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var a=e.getCategoriesData(),n=e.getGraph().data,i=a.mapArray(a.getName);n.filterSelf((function(e){var a=n.getItemModel(e).getShallow("category");if(null!=a){"number"==typeof a&&(a=i[a]);for(var r=0;r<t.length;r++)if(!t[r].isSelected(a))return!1}return!0}))}))}a.d(t,"a",(function(){return ue}));var i=a(0);function r(e){var t={};e.eachSeriesByType("graph",(function(e){var a=e.getCategoriesData(),n=e.getData(),r={};a.each((function(n){var i=a.getName(n);r["ec-"+i]=n;var o=a.getItemModel(n),s=o.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e.getColorFromPalette(i,t)),a.setItemVisual(n,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=o.getShallow(l[u],!0);null!=c&&a.setItemVisual(n,l[u],c)}})),a.count()&&n.each((function(e){var t=n.getItemModel(e).getShallow("category");if(null!=t){"string"==typeof t&&(t=r["ec-"+t]);var o=a.getItemVisual(t,"style"),s=n.ensureUniqueItemVisual(e,"style");Object(i.extend)(s,o);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++)n.setItemVisual(e,l[u],a.getItemVisual(t,l[u]))}}))}))}function o(e){return e instanceof Array||(e=[e,e]),e}function s(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),a=e.getEdgeData(),n=o(e.get("edgeSymbol")),r=o(e.get("edgeSymbolSize"));a.setVisual("fromSymbol",n&&n[0]),a.setVisual("toSymbol",n&&n[1]),a.setVisual("fromSymbolSize",r&&r[0]),a.setVisual("toSymbolSize",r&&r[1]),a.setVisual("style",e.getModel("lineStyle").getLineStyle()),a.each((function(e){var n=a.getItemModel(e),r=t.getEdgeByIndex(e),s=o(n.get
1Shallow("symbol",!0)),l=o(n.getShallow("symbolSize",!0)),u=n.getModel("lineStyle").getLineStyle(),c=a.ensureUniqueItemVisual(e,"style");switch(Object(i.extend)(c,u),c.stroke){case"source":var d=r.node1.getVisual("style");c.stroke=d&&d.fill;break;case"target":d=r.node2.getVisual("style");c.stroke=d&&d.fill}s[0]&&r.setVisual("fromSymbol",s[0]),s[1]&&r.setVisual("toSymbol",s[1]),l[0]&&r.setVisual("fromSymbolSize",l[0]),l[1]&&r.setVisual("toSymbolSize",l[1])}))}))}var l=a(16),u=function(e){return e.get("autoCurveness")||null},c=function(e,t){var a=u(e),n=20,r=[];if("number"==typeof a)n=a;else if(i.isArray(a))return void(e.__curvenessList=a);t>n&&(n=t);var o=n%2?n+2:n+3;r=[];for(var s=0;s<o;s++)r.push((s%2?s+1:s)/10*(s%2?-1:1));e.__curvenessList=r},d=function(e,t,a){var n=[e.id,e.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[a.uid,n,i].join("--\x3e")},h=function(e){var t=e.split("--\x3e");return[t[0],t[2],t[1]].join("--\x3e")},p=function(e,t){var a=t.__edgeMap;return a[e]?a[e].length:0};function g(e,t,a,n){var r=u(t),o=i.isArray(r);if(!r)return null;var s=function(e,t){var a=d(e.node1,e.node2,t);return t.__edgeMap[a]}(e,t);if(!s)return null;for(var l=-1,g=0;g<s.length;g++)if(s[g]===a){l=g;break}var f=function(e,t){return p(d(e.node1,e.node2,t),t)+p(d(e.node2,e.node1,t),t)}(e,t);c(t,f),e.lineStyle=e.lineStyle||{};var y=d(e.node1,e.node2,t),m=t.__curvenessList,v=o||f%2?0:1;if(s.isForward)return m[v+l];var b=h(y),x=p(b,t),_=m[l+x+v];return n?o?r&&0===r[0]?(x+v)%2?_:-_:((x%2?0:1)+v)%2?_:-_:(x+v)%2?_:-_:m[l+x+v]}function f(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var a=e.getGraph();a.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),y(a,e)}}function y(e,t){e.eachEdge((function(e,a){var n=i.retrieve3(e.getModel().get(["lineStyle","curveness"]),-g(e,t,a,!0),0),r=l.clone(e.node1.getLayout()),o=l.clone(e.node2.getLayout()),s=[r,o];+n&&s.push([(r[0]+o[0])/2-(r[1]-o[1])*n,(r[1]+o[1])/2-(o[0]-r[0])*n]),e.setLayout(s)}))}function m(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),a=e.coordinateSystem;if(a&&"view"!==a.type){var n=e.getData(),r=[];Object(i.each)(a.dimensions,(function(e){r=r.concat(n.mapDimensionsAll(e))}));for(var o=0;o<n.count();o++){for(var s=[],l=!1,u=0;u<r.length;u++){var c=n.get(r[u],o);isNaN(c)||(l=!0),s.push(c)}l?n.setItemLayout(o,a.dataToPoint(s)):n.setItemLayout(o,[NaN,NaN])}y(n.graph,e)}else t&&"none"!==t||f(e)}))}function v(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var a=e.option.nodeScaleRatio,n=t.scaleX;return((t.getZoom()-1)*a+1)/n}function b(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var x=Math.PI,_=[];function S(e,t){var a=e.coordinateSystem;if(!a||"view"===a.type){var n=a.getBoundingRect(),r=e.getData(),o=r.graph,s=n.width/2+n.x,u=n.height/2+n.y,c=Math.min(n.width,n.height)/2,d=r.count();r.setLayout({cx:s,cy:u}),d&&(O[t](e,o,r,c,s,u,d),o.eachEdge((function(t,a){var n,r=i.retrieve3(t.getModel().get(["lineStyle","curveness"]),g(t,e,a),0),o=l.clone(t.node1.getLayout()),c=l.clone(t.node2.getLayout()),d=(o[0]+c[0])/2,h=(o[1]+c[1])/2;+r&&(n=[s*(r*=3)+d*(1-r),u*r+h*(1-r)]),t.setLayout([o,c,n])})))}}var O={value:function(e,t,a,n,i,r,o){var s=0,l=a.getSum("value"),u=2*Math.PI/(l||o);t.eachNode((function(e){var t=e.getValue("value"),a=u*(l?t:1)/2;s+=a,e.setLayout([n*Math.cos(s)+i,n*Math.sin(s)+r]),s+=a}))},symbolSize:function(e,t,a,n,i,r,o){var s=0;_.length=o;var l=v(e);t.eachNode((function(e){var t=b(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=l;var a=Math.asin(t/2/n);isNaN(a)&&(a=x/2),_[e.dataIndex]=a,s+=2*a}));var u=(2*x-s)/o/2,c=0;t.eachNode((function(e){var t=u+_[e.dataIndex];c+=t,e.setLayout([n*Math.cos(c)+i,n*Math.sin(c)+r]),c+=t}))}};function w(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&S(e,"symbolSize")}))}var I=l.scaleAndAdd;var M=a(6);function L(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var a=e.preservedPoints||{},n=e.getGraph(),r=n.data,o=n.edgeData,s=e.getModel("force"),u=s.get("initLayout");e.preservedPoints?r.each((function(e){var t=r.getId(e);r.setItemLayout(e,a[t]||[NaN,NaN])}
1)):u&&"none"!==u?"circular"===u&&S(e,"value"):f(e);var c=r.getDataExtent("value"),d=o.getDataExtent("value"),h=s.get("repulsion"),p=s.get("edgeLength"),y=i.isArray(h)?h:[h,h],m=i.isArray(p)?p:[p,p];m=[m[1],m[0]];var v=r.mapArray("value",(function(e,t){var a=r.getItemLayout(t),n=Object(M.k)(e,c,y);return isNaN(n)&&(n=(y[0]+y[1])/2),{w:n,rep:n,fixed:r.getItemModel(t).get("fixed"),p:!a||isNaN(a[0])||isNaN(a[1])?null:a}})),b=o.mapArray("value",(function(t,a){var r=n.getEdgeByIndex(a),o=Object(M.k)(t,d,m);isNaN(o)&&(o=(m[0]+m[1])/2);var s=r.getModel(),l=i.retrieve3(r.getModel().get(["lineStyle","curveness"]),-g(r,e,a,!0),0);return{n1:v[r.node1.dataIndex],n2:v[r.node2.dataIndex],d:o,curveness:l,ignoreForceLayout:s.get("ignoreForceLayout")}})),x=t.getBoundingRect(),_=function(e,t,a){for(var n=e,i=t,r=a.rect,o=r.width,s=r.height,u=[r.x+o/2,r.y+s/2],c=null==a.gravity?.1:a.gravity,d=0;d<n.length;d++){var h=n[d];h.p||(h.p=l.create(o*(Math.random()-.5)+u[0],s*(Math.random()-.5)+u[1])),h.pp=l.clone(h.p),h.edges=null}var p,g,f=null==a.friction?.6:a.friction,y=f;return{warmUp:function(){y=.8*f},setFixed:function(e){n[e].fixed=!0},setUnfixed:function(e){n[e].fixed=!1},beforeStep:function(e){p=e},afterStep:function(e){g=e},step:function(e){p&&p(n,i);for(var t=[],a=n.length,r=0;r<i.length;r++){var o=i[r];if(!o.ignoreForceLayout){var s=o.n1,d=o.n2;l.sub(t,d.p,s.p);var h=l.len(t)-o.d,f=d.w/(s.w+d.w);isNaN(f)&&(f=0),l.normalize(t,t),!s.fixed&&I(s.p,s.p,t,f*h*y),!d.fixed&&I(d.p,d.p,t,-(1-f)*h*y)}}for(r=0;r<a;r++){(x=n[r]).fixed||(l.sub(t,u,x.p),I(x.p,x.p,t,c*y))}for(r=0;r<a;r++){s=n[r];for(var m=r+1;m<a;m++){d=n[m];l.sub(t,d.p,s.p),0===(h=l.len(t))&&(l.set(t,Math.random()-.5,Math.random()-.5),h=1);var v=(s.rep+d.rep)/h/h;!s.fixed&&I(s.pp,s.pp,t,v),!d.fixed&&I(d.pp,d.pp,t,-v)}}var b=[];for(r=0;r<a;r++){var x;(x=n[r]).fixed||(l.sub(b,x.p,x.pp),I(x.p,x.p,b,y),l.copy(x.pp,x.p))}var _=(y*=.992)<.01;g&&g(n,i,_),e&&e(_)}}}(v,b,{rect:x,gravity:s.get("gravity"),friction:s.get("friction")});_.beforeStep((function(e,t){for(var a=0,i=e.length;a<i;a++)e[a].fixed&&l.copy(e[a].p,n.getNodeByIndex(a).getLayout())})),_.afterStep((function(e,t,i){for(var o=0,s=e.length;o<s;o++)e[o].fixed||n.getNodeByIndex(o).setLayout(e[o].p),a[r.getId(o)]=e[o].p;for(o=0,s=t.length;o<s;o++){var u=t[o],c=n.getEdgeByIndex(o),d=u.n1.p,h=u.n2.p,p=c.getLayout();(p=p?p.slice():[])[0]=p[0]||[],p[1]=p[1]||[],l.copy(p[0],d),l.copy(p[1],h),+u.curveness&&(p[2]=[(d[0]+h[0])/2-(d[1]-h[1])*u.curveness,(d[1]+h[1])/2-(h[0]-d[0])*u.curveness]),c.setLayout(p)}})),e.forceLayout=_,e.preservedPoints=a,_.step()}else e.forceLayout=null}))}var D=a(240),j=a(27),A=a(200);function C(e,t){var a=[];return e.eachSeriesByType("graph",(function(e){var n=e.get("coordinateSystem");if(!n||"view"===n){var r=e.getData(),o=r.mapArray((function(e){var t=r.getItemModel(e);return[+t.get("x"),+t.get("y")]})),s=[],l=[];A.d(o,s,l),l[0]-s[0]==0&&(l[0]+=1,s[0]-=1),l[1]-s[1]==0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=function(e,t,a){var n=Object(i.extend)(e.getBoxLayoutParams(),{aspect:a});return Object(j.g)(n,{width:t.getWidth(),height:t.getHeight()})}(e,t,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var d=l[0]-s[0],h=l[1]-s[1],p=c.width,g=c.height,f=e.coordinateSystem=new D.a;f.zoomLimit=e.get("scaleLimit"),f.setBoundingRect(s[0],s[1],d,h),f.setViewRect(c.x,c.y,p,g),f.setCenter(e.get("center")),f.setZoom(e.get("zoom")),a.push(f)}})),a}var N=a(3),P=a(234),T=a(400),E=a(238),R=a(270),V=a(292),z=a(11),k=a(46),G=[],B=[],F=[],Y=k.h,X=l.distSquare,W=Math.abs;function H(e,t,a){for(var n,i=e[0],r=e[1],o=e[2],s=1/0,l=a*a,u=.1,c=.1;c<=.9;c+=.1){G[0]=Y(i[0],r[0],o[0],c),G[1]=Y(i[1],r[1],o[1],c),(p=W(X(G,t)-l))<s&&(s=p,n=c)}for(var d=0;d<32;d++){var h=n+u;B[0]=Y(i[0],r[0],o[0],n),B[1]=Y(i[1],r[1],o[1],n),F[0]=Y(i[0],r[0],o[0],h),F[1]=Y(i[1],r[1],o[1],h);var p=X(B,t)-l;if(W(p)<.01)break;var g=X(F,t)-l;u/=2,p<0?g>=0?n+=u:n-=u:g>=0?n-=u:n+=u}return n}function U(e,t){var a=[],n=k.n,i=[[],[],[]],r=[[],[]],o=[];t/=2,e.eachEdge((function(e,s){var u=e.getLayout(),c=e.getVisual("fromSymbol"),d=e.getVisual("toSymbol");u.__original||(u.__original=[l.clone(u[0]),l.clone(u[1])],u[2]&&u.__original.push(l.clone(u[2])));var h=u.__original;if(null!=u[2]){if(l.copy(i[0],h[0]),l.copy(i[1],h[2]),l.copy(i[2],h[1]),c&&"none"!==c){var p=b(e.node1),g=H(i,h[0],p*t);n(i[0][0],i[1][0],i[2][0],g,a),i[0][0]=a[3],i[1][0]=a[4],n(i[0][1],i[1][1],i[2][1],g,a),i[0][1]=a[3],i[1][1]=a[4]}if(d&&"none"!==d){p=b(e.node2),g=H(i,h[1],p*t);n(i[0][0],i[1][0],i[2][0],g,a),i[1][0]=a[1],i[2][0]=a[2],n(i[0][1],i[1][1],i[2][1],g,a),i[1][1]=a[1],i[2][1]=a[2]}l.copy(u[0],i[0]),l.copy(u[1],i[2]),l.copy(u[2],i[1])}else{if(l.copy(r[0],h[0]),l.copy(r[1],h[1]),l.sub(o,r[1],r[0]),l.normalize(o,o),c&&"none"!==c){p=b(e.node1);l.scaleAndAdd(r[0],r[0],o,p*t)}if(d&&"none"!==d){p=b(e.node2);l.scaleAndAdd(r[1],r[1],o,-p*t)}l.copy(u[0],r[0]),l.copy(u[1],r[1])}}))}var Z=a(56),q=a(23);function J(e){return"view"===e.type}var K=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(N.b)(t,e),t.prototype.init=function(e,t){var a=new P.a,n=new T.a,i=this.group;this._controller=new E.a(t.getZr()),this._controllerHost={target:i},i.add(a.group),i.add(n.group),this._symbolDraw=a,this._lineDraw=n,this._firstRen
1der=!0},t.prototype.render=function(e,t,a){var n=this,r=e.coordinateSystem;this._model=e;var o=this._symbolDraw,s=this._lineDraw,l=this.group;if(J(r)){var u={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?l.attr(u):z.updateProps(l,u,e)}U(e.getGraph(),v(e));var c=e.getData();o.updateData(c);var d=e.getEdgeData();s.updateData(d),this._updateNodeAndLinkScale(),this._updateController(e,t,a),clearTimeout(this._layoutTimeout);var h=e.forceLayout,p=e.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p),c.graph.eachNode((function(e){var t=e.dataIndex,a=e.getGraphicEl(),i=e.getModel();a.off("drag").off("dragend");var r=i.get("draggable");r&&a.on("drag",(function(){h&&(h.warmUp(),!n._layouting&&n._startForceLayoutIteration(h,p),h.setFixed(t),c.setItemLayout(t,[a.x,a.y]))})).on("dragend",(function(){h&&h.setUnfixed(t)})),a.setDraggable(r&&!!h),"adjacency"===i.get(["emphasis","focus"])&&(Object(q.a)(a).focus=e.getAdjacentDataIndices())})),c.graph.eachEdge((function(e){var t=e.getGraphicEl();"adjacency"===e.getModel().get(["emphasis","focus"])&&(Object(q.a)(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var g="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),f=c.getLayout("cx"),y=c.getLayout("cy");c.eachItemGraphicEl((function(e,t){var a=c.getItemModel(t).get(["label","rotate"])||0,n=e.getSymbolPath();if(g){var r=c.getItemLayout(t),o=Math.atan2(r[1]-y,r[0]-f);o<0&&(o=2*Math.PI+o);var s=r[0]<f;s&&(o-=Math.PI);var l=s?"left":"right";n.setTextConfig({rotation:-o,position:l,origin:"center"});var u=n.ensureState("emphasis");i.extend(u.textConfig||(u.textConfig={}),{position:l})}else n.setTextConfig({rotation:a*=Math.PI/180})})),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var a=this;!function n(){e.step((function(e){a.updateLayout(a._model),(a._layouting=!e)&&(t?a._layoutTimeout=setTimeout(n,16):n())}))}()},t.prototype._updateController=function(e,t,a){var n=this,i=this._controller,r=this._controllerHost,o=this.group;i.setPointerChecker((function(t,n,i){var r=o.getBoundingRect();return r.applyTransform(o.transform),r.contain(n,i)&&!Object(V.a)(t,a,e)})),J(e.coordinateSystem)?(i.enable(e.get("roam")),r.zoomLimit=e.get("scaleLimit"),r.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){R.a(r,t.dx,t.dy),a.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){R.b(r,t.scale,t.originX,t.originY),a.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),n._updateNodeAndLinkScale(),U(e.getGraph(),v(e)),n._lineDraw.updateLayout(),a.updateLabelLayout()}))):i.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),a=v(e);t.eachItemGraphicEl((function(e,t){e.setSymbolScale(a)}))},t.prototype.updateLayout=function(e){U(e.getGraph(),v(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(Z.a),Q=a(100),$=a(10),ee=a(57),te=a(571),ae=a(236),ne=a(58),ie=a(70),re=a(563),oe=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a.hasSymbolVisual=!0,a}return Object(N.b)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new ae.a(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Object($.f)(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var a,n=e.edges||e.links||[],r=e.data||e.nodes||[],o=this;if(r&&n){u(a=this)&&(a.__curvenessList=[],a.__edgeMap={},c(a));var s=Object(te.a)(r,n,this,!0,(function(e,t){e.wrapMethod("getItemModel",(function(e){var t=o._categoriesModels[e.getShallow("category")];return t&&(t.parentModel=e.parentModel,e.parentModel=t),e}));var a=ee.a.prototype.getModel;function n(e,t){var n=a.call(this,e,t);return n.resolveParentPath=i,n}function i(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=i,e.getModel=n,e}))}));return i.each(s.edges,(function(e){!function(e,t,a,n){if(u(a)){var i=d(e,t,a),r=a.__edgeMap,o=r[h(i)];
1r[i]&&!o?r[i].isForward=!0:o&&r[i]&&(o.isForward=!0,r[i].isForward=!1),r[i]=r[i]||[],r[i].push(n)}}(e.node1,e.node2,this,e.dataIndex)}),this),s.data}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,a){if("edge"===a){var n=this.getData(),i=this.getDataParams(e,a),r=n.graph.getEdgeByIndex(e),o=n.getName(r.node1.dataIndex),s=n.getName(r.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),Object(ie.c)("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}return Object(re.a)({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=i.map(this.option.categories||[],(function(e){return null!=e.value?e:i.extend({value:0},e)})),t=new Q.a(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(ne.a),se=a(398),le={type:"graphRoam",event:"graphRoam",update:"none"};function ue(e){e.registerChartView(K),e.registerSeriesModel(oe),e.registerProcessor(n),e.registerVisual(r),e.registerVisual(s),e.registerLayout(m),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,w),e.registerLayout(L),e.registerCoordinateSystem("graphView",{dimensions:D.a.dimensions,create:C}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},(function(){})),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},(function(){})),e.registerAction(le,(function(e,t){t.eachComponent({mainType:"series",query:e},(function(t){var a=t.coordinateSystem,n=Object(se.a)(a,e);t.setCenter&&t.setCenter(n.center),t.setZoom&&t.setZoom(n.zoom)}))}))}},1733:function(e,t,a){"use strict";a.d(t,"a",(function(){return z}));var n=a(3),i=a(400),r=a(82),o=a(408),s=a(0),l=a(71),u=a(16),c=a(46),d=function(e){function t(t,a,n){var i=e.call(this)||this;return i.add(i.createLine(t,a,n)),i._updateEffectSymbol(t,a),i}return Object(n.b)(t,e),t.prototype.createLine=function(e,t,a){return new o.a(e,t,a)},t.prototype._updateEffectSymbol=function(e,t){var a=e.getItemModel(t).getModel("effect"),n=a.get("symbolSize"),i=a.get("symbol");s.isArray(n)||(n=[n,n]);var r=e.getItemVisual(t,"style"),o=a.get("color")||r&&r.stroke,u=this.childAt(1);this._symbolType!==i&&(this.remove(u),(u=Object(l.a)(i,-.5,-.5,1,1,o)).z2=100,u.culling=!0,this.add(u)),u&&(u.setStyle("shadowColor",o),u.setStyle(a.getItemStyle(["color"])),u.scaleX=n[0],u.scaleY=n[1],u.setColor(o),this._symbolType=i,this._symbolScale=n,this._updateEffectAnimation(e,a,t))},t.prototype._updateEffectAnimation=function(e,t,a){var n=this.childAt(1);if(n){var i=this,r=e.getItemLayout(a),o=1e3*t.get("period"),l=t.get("loop"),u=t.get("constantSpeed"),c=s.retrieve(t.get("delay"),(function(t){return t/e.count()*o/3}));if(n.ignore=!0,this._updateAnimationPoints(n,r),u>0&&(o=this._getLineLength(n)/u*1e3),(o!==this._period||l!==this._loop)&&(n.stopAnimation(),o>0)){var d=void 0;d="function"==typeof c?c(a):c,n.__t>0&&(d=-o*n.__t),n.__t=0;var h=n.animate("",l).when(o,{__t:1}).delay(d).during((function(){i._updateSymbolPosition(n)}));l||h.done((function(){i.remove(n)})),h.start()}this._period=o,this._loop=l}},t.prototype._getLineLength=function(e){return u.dist(e.__p1,e.__cp1)+u.dist(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,a){this.childAt(0).updateData(e,t,a),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,a=e.__p2,
1n=e.__cp1,i=e.__t,r=[e.x,e.y],o=r.slice(),s=c.h,l=c.i;r[0]=s(t[0],n[0],a[0],i),r[1]=s(t[1],n[1],a[1],i);var d=l(t[0],n[0],a[0],i),h=l(t[1],n[1],a[1],i);e.rotation=-Math.atan2(h,d)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*u.dist(o,r),1===i&&(r[0]=o[0]+(r[0]-o[0])/2,r[1]=o[1]+(r[1]-o[1])/2)):1===e.__lastT?e.scaleY=2*u.dist(t,r):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=r[0],e.y=r[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var a=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,a,t)},t}(r.a),h=a(323),p=a(11),g=a(15),f=function(e){function t(t,a,n){var i=e.call(this)||this;return i._createPolyline(t,a,n),i}return Object(n.b)(t,e),t.prototype._createPolyline=function(e,t,a){var n=e.getItemLayout(t),i=new h.a({shape:{points:n}});this.add(i),this._updateCommonStl(e,t,a)},t.prototype.updateData=function(e,t,a){var n=e.hostModel,i=this.childAt(0),r={shape:{points:e.getItemLayout(t)}};p.updateProps(i,r,n,t),this._updateCommonStl(e,t,a)},t.prototype._updateCommonStl=function(e,t,a){var n=this.childAt(0),i=e.getItemModel(t),r=a&&a.emphasisLineStyle;a&&!e.hasItemOption||(r=i.getModel(["emphasis","lineStyle"]).getLineStyle()),n.useStyle(e.getItemVisual(t,"style")),n.style.fill=null,n.style.strokeNoScale=!0,n.ensureState("emphasis").style=r,Object(g.o)(this)},t.prototype.updateLayout=function(e,t){this.childAt(0).setShape("points",e.getItemLayout(t))},t}(r.a),y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return Object(n.b)(t,e),t.prototype.createLine=function(e,t,a){return new f(e,t,a)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var a=[0],n=0,i=1;i<t.length;i++){var r=t[i-1],o=t[i];n+=u.dist(r,o),a.push(n)}if(0!==n){for(i=0;i<a.length;i++)a[i]/=n;this._offsets=a,this._length=n}else this._length=0},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t,a=this._points,n=this._offsets,i=a.length;if(n){var r,o=this._lastFrame;if(t<this._lastFramePercent){for(r=Math.min(o+1,i-1);r>=0&&!(n[r]<=t);r--);r=Math.min(r,i-2)}else{for(r=o;r<i&&!(n[r]>t);r++);r=Math.min(r-1,i-2)}var s=(t-n[r])/(n[r+1]-n[r]),l=a[r],u=a[r+1];e.x=l[0]*(1-s)+s*u[0],e.y=l[1]*(1-s)+s*u[1];var c=u[0]-l[0],d=u[1]-l[1];e.rotation=-Math.atan2(d,c)-Math.PI/2,this._lastFrame=r,this._lastFramePercent=t,e.ignore=!1}},t}(d),m=a(45),v=a(289),b=a(246),x=a(558),_=a(23),S=function(){this.polyline=!1,this.curveness=0,this.segs=[]},O=function(e){function t(t){return e.call(this,t)||this}return Object(n.b)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new S},t.prototype.buildPath=function(e,t){var a=t.segs,n=t.curveness;if(t.polyline)for(var i=0;i<a.length;){var r=a[i++];if(r>0){e.moveTo(a[i++],a[i++]);for(var o=1;o<r;o++)e.lineTo(a[i++],a[i++])}}else for(i=0;i<a.length;){var s=a[i++],l=a[i++],u=a[i++],c=a[i++];if(e.moveTo(s,l),n>0){var d=(s+u)/2-(l-c)*n,h=(l+c)/2-(u-s)*n;e.quadraticCurveTo(d,h,u,c)}else e.lineTo(u,c)}},t.prototype.findDataIndex=function(e,t){var a=this.shape,n=a.segs,i=a.curveness,r=this.style.lineWidth;if(a.polyline)for(var o=0,s=0;s<n.length;){var l=n[s++];if(l>0)for(var u=n[s++],c=n[s++],d=1;d<l;d++){var h=n[s++],p=n[s++];if(b.a(u,c,h,p,r,e,t))return o}o++}else for(o=0,s=0;s<n.length;){u=n[s++],c=n[s++],h=n[s++],p=n[s++];if(i>0){var g=(u+h)/2-(c-p)*i,f=(c+p)/2-(h-u)*i;if(x.a(u,c,g,f,h,p,r,e,t))return o}else if(b.a(u,c,h,p,r,e,t))return o;o++}return-1},t}(m.b),w=function(){function e(){this.group=new r.a}return e.prototype.isPersistent=function(){return!this._incremental},e.prototype.updateData=function(e){this.group.removeAll();var t=new O({rectHover:!0,cursor:"default"});t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e),this.group.add(t),this._incremental=null},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>5e5?(this._incremental||(this._incremental=new v.a({silent:!0})),this.group.add(this._incremental)):this._incremental=null},e.prototype.incrementalUpdate=function(e,t){var a=new O;a.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(a,t,!!this._incremental),this._incremental?this._incremental.addDisplayable(a,!0):(a.rectHover=!0,a.cursor="default",a.__startIndex=e.start,this.group.add(a))},e.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},e.prototype._setCommon=function(e,t,a){var n=t.hostModel;e.setShape({polyline:n.get("polyline"),curveness:n.get(["lineStyle","curveness"])}),e.useStyle(n.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");if(i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null),!a){var r=Object(_.a)(e);r.seriesIndex=n.seriesIndex,e.on("mousemove",(function(t){r.dataIndex=null;var a=e.findDataIndex(t.offsetX,t.offsetY);a>0&&(r.dataIndex=a+e.__startIndex)}))}},e.prototype._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},e}(),I=a(196),M={seriesType:"lines",plan:Object(I.a)(),reset:function(e){var t=e.coordinateSystem,a=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(i,r){var o=[];if(n){var s=void 0,l=i.end-i.start;if(a){for(var u=0,c=i.start;c<i.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var d=0,h=[];for(c=i.start;c<i.end;c++){var p=e.getLineCoords(c,o);a&&(s[d++]=p);for(var g=0;g<p;g++)h=t.dataToPoint(o[g],!1,h),s[d++]=h[0],s[d++]=h[1]}r.setLayout("linesPoints",s)}else for(c=i.start;c<i.end;c++){var f=r.getItemModel(c),y=(p=e.getLineCoords(c,o),[]);if(a)for(var m=0;m<p;m++)y.push(t.dataToPoint(o[m]));else{y[0]=t.dataToPoint(o[0]),y[1]=t.dataToPoint(o[1]);var v=f.get(["lineStyle","curveness"]);+v&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*v,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*v])}r.setItemLayout(c,y)}}}}},L=a(217),D=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(n.b)(t,e),t.prototype.render=function(e,t,a){var n=e.getData(),i=this._updateLineDraw(n,e),r=e.get("zlevel"),o=e.get(["effect","trailLength"]),s=a.getZr(),l="svg"===s.painter.getType();(l||s.painter.getLayer(r).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&o)&&(l||s.configLayer(r,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)}));i.updateData(n);var u=e.get("clip",!0)&&Object(L.a)(e.coordinateSystem,!1,e);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=r,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,a){var n=e.getData();this._updateLineDraw(n,e).incrementalPrepareUpdate(n),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(e,t,a){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,a){var n=e.getData(),i=e.pipelineContext;
1if(!this._finished||i.large||i.progressiveRender)return{update:!0};var r=M.reset(e,t,a);r.progress&&r.progress({start:0,end:n.count(),count:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(e,t){var a=this._lineDraw,n=this._showEffect(t),r=!!t.get("polyline"),s=t.pipelineContext.large;return a&&n===this._hasEffet&&r===this._isPolyline&&s===this._isLargeDraw||(a&&a.remove(),a=this._lineDraw=s?new w:new i.a(r?n?y:f:n?d:o.a),this._hasEffet=n,this._isPolyline=r,this._isLargeDraw=s,this.group.removeAll()),this.group.add(a.group),a},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr();"svg"===t.painter.getType()||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.type="lines",t}(a(56).a),j=a(58),A=a(100),C=a(70),N="undefined"==typeof Uint32Array?Array:Uint32Array,P="undefined"==typeof Float64Array?Array:Float64Array;function T(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Object(s.map)(t,(function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),Object(s.mergeAll)([t,e[0],e[1]])})))}var E=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a.visualStyleAccessPath="lineStyle",a.visualDrawType="stroke",a}return Object(n.b)(t,e),t.prototype.init=function(t){t.data=t.data||[],T(t);var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(T(t),t.data){var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Object(s.concatArray)(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Object(s.concatArray)(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e);return t.option instanceof Array?t.option:t.getShallow("coords")},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[2*e],n=this._flatCoordsOffset[2*e+1],i=0;i<n;i++)t[i]=t[i]||[],t[i][0]=this._flatCoords[a+2*i],t[i][1]=this._flatCoords[a+2*i+1];return n}var r=this._getCoordsFromItemModel(e);for(i=0;i<r.length;i++)t[i]=t[i]||[],t[i][0]=r[i][0],t[i][1]=r[i][1];return r.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),"number"==typeof e[0]){for(var a=e.length,n=new N(a),i=new P(a),r=0,o=0,s=0,l=0;l<a;){s++;var u=e[l++];n[o++]=r+t,n[o++]=u;for(var c=0;c<u;c++){var d=e[l++],h=e[l++];i[r++]=d,i[r++]=h}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,o),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var a=new A.a(["value"],this);return a.hasItemOption=!1,a.initData(e.data,[],(function(e,t,n,i){if(e instanceof Array)return NaN;a.hasItemOption=!0;var r=e.value;return null!=r?r instanceof Array?r[i]:r:void 0})),a},t.prototype.formatTooltip=function(e,t,a){var n=this.getData().getItemModel(e),i=n.get("name");if(i)return i;var r=n.get("fromName"),o=n.get("toName"),s=[];return null!=r&&s.push(r),null!=o&&s.push(o),Object(C.c)("nameValue",{name:s.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!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,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(j.a);function R(e){return e instanceof Array||(e=[e,e]),e}var V={seriesType:"lines",reset:function(e){var t=R(e.get("symbol")),a=R(e.get("symbolSize")),n=e.getData();return n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),{dataEach:n.hasItemOption?function(e,t){var a=e.getItemModel(t),n=R(a.getShallow("symbol",!0)),i=R(a.getShallow("symbolSize",!0));n[0]&&e.setItemVisual(t,"fromSymbol",n[0]),n[1]&&e.setItemVisual(t,"toSymbol",n[1]),i[0]&&e.setItemVisual(t,"fromSymbolSize",i[0]),i[1]&&e.setItemVisual(t,"toSymbolSize",i[
vendor: 4,495 bytes, line 1
11])}:null}}};function z(e){e.registerChartView(D),e.registerSeriesModel(E),e.registerLayout(M),e.registerVisual(V)}},1734:function(e,t,a){"use strict";a.d(t,"a",(function(){return W}));var n=a(3),i=a(0),r=a(82),o=a(11),s=a(691),l=a(23),u=a(265),c=a(27);function d(e,t){var a=e.isExpand?e.children:[],n=e.parentNode.children,i=e.hierNode.i?n[e.hierNode.i-1]:null;if(a.length){!function(e){var t=e.children,a=t.length,n=0,i=0;for(;--a>=0;){var r=t[a];r.hierNode.prelim+=n,r.hierNode.modifier+=n,i+=r.hierNode.change,n+=r.hierNode.shift+i}}(e);var r=(a[0].hierNode.prelim+a[a.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-r):e.hierNode.prelim=r}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=function(e,t,a,n){if(t){for(var i=e,r=e,o=r.parentNode.children[0],s=t,l=i.hierNode.modifier,u=r.hierNode.modifier,c=o.hierNode.modifier,d=s.hierNode.modifier;s=f(s),r=y(r),s&&r;){i=f(i),o=y(o),i.hierNode.ancestor=e;var h=s.hierNode.prelim+d-r.hierNode.prelim-u+n(s,r);h>0&&(v(m(s,e,a),e,h),u+=h,l+=h),d+=s.hierNode.modifier,u+=r.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!f(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-l),r&&!y(o)&&(o.hierNode.thread=r,o.hierNode.modifier+=u-c,a=e)}return a}(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function h(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function p(e){return arguments.length?e:b}function g(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function f(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function y(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function m(e,t,a){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:a}function v(e,t,a){var n=a/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=a,t.hierNode.modifier+=a,t.hierNode.prelim+=a,e.hierNode.change+=n}function b(e,t){return e.parentNode===t.parentNode?1:2}var x=a(200),_=a(240),S=a(270),O=a(238),w=a(292),I=a(6),M=a(56),L=a(45),D=a(15),j=function(){this.parentPoint=[],this.childPoints=[]},A=function(e){function t(t){return e.call(this,t)||this}return Object(n.b)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new j},t.prototype.buildPath=function(e,t){var a=t.childPoints,n=a.length,i=t.parentPoint,r=a[0],o=a[n-1];if(1===n)return e.moveTo(i[0],i[1]),void e.lineTo(r[0],r[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=Object(I.o)(t.forkPosition,1),d=[];d[l]=i[l],d[u]=i[u]+(o[u]-i[u])*c,e.moveTo(i[0],i[1]),e.lineTo(d[0],d[1]),e.moveTo(r[0],r[1]),d[l]=r[l],e.lineTo(d[0],d[1]),d[l]=o[l],e.lineTo(d[0],d[1]),e.lineTo(o[0],o[1]);for(var h=1;h<n-1;h++){var p=a[h];e.moveTo(p[0],p[1]),d[l]=p[l],e.lineTo(d[0],d[1])}},t}(L.b);function C(e,t){var a=e.getItemLayout(t);return a&&!isNaN(a.x)&&!isNaN(a.y)}function N(e,t,a,n,r){var c=!a,d=e.tree.getNodeByDataIndex(t),h=d.getModel(),p=d.getVisual("style").fill,g=!1===d.isExpand&&0!==d.children.length?p:"#fff",f=e.tree.root,y=d.parentNode===f?d:d.parentNode||d,m=e.getItemGraphicEl(y.dataIndex),v=y.getLayout(),b=m?{x:m.__oldX,y:m.__oldY,rawX:m.__radialOldRawX,rawY:m.__radialOldRawY}:v,x=d.getLayout();c?((a=new u.a(e,t,null,{symbolInnerColor:g,useNameLabel:!0})).x=b.x,a.y=b.y):a.updateData(e,t,null,{symbolInnerColor:g,useNameLabel:!0}),a.__radialOldRawX=a.__radialRawX,a.__radialOldRawY=a.__radialRawY,a.__radialRawX=x.rawX,a.__radialRawY=x.rawY,n.add(a),e.setItemGraphicEl(t,a),a.__oldX=a.x,a.__oldY=a.y,o.updateProps(a,{x:x.x,y:x.y},r);var _=a.getSymbolPath();if("radial"===r.get("layout")){var S=f.children[0],O=S.getLayout(),w=S.children.length,I=void 0,M=void 0;if(x.x===O.x&&!0===d.isExpand){var L={x:(S.children[0].getLayout().x+S.children[w-1].getLayout().x)/2,y:(S.children[0].getLayout().y+S.children[w-1].getLayout().y)/2};(I=Math.atan2(L.y-O.y,L.x-O.x))<0&&(I=2*Math.PI+I),(M=L.x<O.x)&&(I-=Math.PI)}else(I=Math.atan2(x.y-O.y,x.x-O.x))<0&&(I=2*Math.PI+I),0===d.children.length||0!==d.children.length&&!1===d.isExpand?(M=x.x<O.x)&&(I-=Math.PI):(M=x.x>O.x)||(I-=Math.PI);var j=M?"left":"right",C=h.getModel("label"),N=C.get("rotate"),P=N*(Math.PI/180),E=_.getTextContent();E&&(_.setTextConfig({position:C.get("position")||j,rotation:null==N?-I:P,origin:"center"}),E.setStyle("verticalAlign","middle"))}
1var R=h.get(["emphasis","focus"]),V="ancestor"===R?d.getAncestorsIndices():"descendant"===R?d.getDescendantIndices():null;V&&(Object(l.a)(a).focus=V),function(e,t,a,n,r,l,u,c){var d=t.getModel(),h=e.get("edgeShape"),p=e.get("layout"),g=e.getOrient(),f=e.get(["lineStyle","curveness"]),y=e.get("edgeForkPosition"),m=d.getModel("lineStyle").getLineStyle(),v=n.__edge;if("curve"===h)t.parentNode&&t.parentNode!==a&&(v||(v=n.__edge=new s.a({shape:T(p,g,f,r,r)})),o.updateProps(v,{shape:T(p,g,f,l,u)},e));else if("polyline"===h)if("orthogonal"===p){if(t!==a&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var b=t.children,x=[],_=0;_<b.length;_++){var S=b[_].getLayout();x.push([S.x,S.y])}v||(v=n.__edge=new A({shape:{parentPoint:[u.x,u.y],childPoints:[[u.x,u.y]],orient:g,forkPosition:y}})),o.updateProps(v,{shape:{parentPoint:[u.x,u.y],childPoints:x}},e)}}else 0;v&&(v.useStyle(i.defaults({strokeNoScale:!0,fill:null},m)),Object(D.I)(v,d,"lineStyle"),Object(D.G)(v),c.add(v))}(r,d,f,a,b,v,x,n),a.__edge&&(a.onHoverStateChange=function(t){if("blur"!==t){var n=d.parentNode&&e.getItemGraphicEl(d.parentNode.dataIndex);n&&n.hoverState===D.d||Object(D.H)(a.__edge,t)}})}function P(e,t,a,n,i){for(var r,s=e.tree.getNodeByDataIndex(t),l=e.tree.root,u=s.parentNode===l?s:s.parentNode||s;null==(r=u.getLayout());)u=u.parentNode===l?u:u.parentNode||u;var c={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};o.removeElement(a,{x:r.x+1,y:r.y+1},i,{cb:function(){n.remove(a),e.setItemGraphicEl(t,null)},removeOpt:c}),a.fadeOut(null,{fadeLabel:!0,animation:c});var d=e.getItemGraphicEl(u.dataIndex).__edge,h=a.__edge||(!1===u.isExpand||1===u.children.length?d:void 0),p=i.get("edgeShape"),g=i.get("layout"),f=i.get("orient"),y=i.get(["lineStyle","curveness"]);h&&("curve"===p?o.removeElement(h,{shape:T(g,f,y,r,r),style:{opacity:0}},i,{cb:function(){n.remove(h)},removeOpt:c}):"polyline"===p&&"orthogonal"===i.get("layout")&&o.removeElement(h,{shape:{parentPoint:[r.x,r.y],childPoints:[[r.x,r.y]]},style:{opacity:0}},i,{cb:function(){n.remove(h)},removeOpt:c}))}function T(e,t,a,n,i){var r,o,s,l,u,c,d,h;if("radial"===e){u=n.rawX,d=n.rawY,c=i.rawX,h=i.rawY;var p=g(u,d),f=g(u,d+(h-d)*a),y=g(c,h+(d-h)*a),m=g(c,h);return{x1:p.x||0,y1:p.y||0,x2:m.x||0,y2:m.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:y.x||0,cpy2:y.y||0}}return u=n.x,d=n.y,c=i.x,h=i.y,"LR"!==t&&"RL"!==t||(r=u+(c-u)*a,o=d,s=c+(u-c)*a,l=h),"TB"!==t&&"BT"!==t||(r=u,o=d+(h-d)*a,s=c,l=h+(d-h)*a),{x1:u,y1:d,x2:c,y2:h,cpx1:r,cpy1:o,cpx2:s,cpy2:l}}var E=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a._mainGroup=new r.a,a}return Object(n.b)(t,e),t.prototype.init=function(e,t){this._controller=new O.a(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,a){var n=e.getData(),i=e.layoutInfo,r=this._mainGroup;"radial"===e.get("layout")?(r.x=i.x+i.width/2,r.y=i.y+i.height/2):(r.x=i.x,r.y=i.y),this._updateViewCoordSys(e),this._updateController(e,t,a);var o=this._data;n.diff(o).add((function(t){C(n,t)&&N(n,t,null,r,e)})).update((function(t,a){var i=o.getItemGraphicEl(a);C(n,t)?N(n,t,i,r,e):i&&P(o,a,i,r,e)})).remove((function(t){var a=o.getItemGraphicEl(t);a&&P(o,t,a,r,e)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&n.eachItemGraphicEl((function(t,n){t.off("click").on("click",(function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:n})}))})),this._data=n},t.prototype._updateViewCoordSys=function(e){var t=e.getData(),a=[];t.each((function(e){var n=t.getItemLayout(e);!n||isNaN(n.x)||isNaN(n.y)||a.push([+n.x,+n.y])}));var n=[],i=[];x.d(a,n,i);var r=this._min,o=this._max;i[0]-n[0]==0&&(n[0]=r?r[0]:n[0]-1,i[0]=o?o[0]:i[0]+1),i[1]-n[1]==0&&(n[1]=r?r[1]:n[1]-1,i[1]=o?o[1]:i[1]+1);var s=e.coordinateSystem=new _.a;s.zoomLimit=e.get("scaleLimit"),s.setBoundingRect(n[0],n[1],i[0]-n[0],i[1]-n[1]),s.setCenter(e.get("center")),s.setZoom(e.get("zoom")),this.group.attr({x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY}),this._min=n,this._max=i},t.prototype._updateController=function(e,t,a){var n=this,i=this._controller,r=this._controllerHost,o=this.group;
vendor: 4,508 bytes, line 1
1i.setPointerChecker((function(t,n,i){var r=o.getBoundingRect();return r.applyTransform(o.transform),r.contain(n,i)&&!Object(w.a)(t,a,e)})),i.enable(e.get("roam")),r.zoomLimit=e.get("scaleLimit"),r.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){S.a(r,t.dx,t.dy),a.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){S.b(r,t.scale,t.originX,t.originY),a.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),n._updateNodeAndLinkScale(e),a.updateLabelLayout()}))},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),a=this._getNodeGlobalScale(e);t.eachItemGraphicEl((function(e,t){e.setSymbolScale(a)}))},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var a=this._nodeScaleRatio,n=t.scaleX||1;return((t.getZoom()-1)*a+1)/n},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(M.a),R=a(58),V=a(399),z=a(57),k=a(70),G=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return Object(n.b)(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},a=e.leaves||{},n=new z.a(a,this,this.ecModel),i=V.a.createTree(t,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var a=i.getNodeByDataIndex(t);return a.children.length&&a.isExpand||(e.parentModel=n),e}))}));var r=0;i.eachNode("preorder",(function(e){e.depth>r&&(r=e.depth)}));var o=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:r;return i.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=o})),i.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,a){for(var n=this.getData().tree,i=n.root.children[0],r=n.getNodeByDataIndex(e),o=r.getValue(),s=r.name;r&&r!==i;)s=r.parentNode.name+"."+s,r=r.parentNode;return Object(k.c)("nameValue",{name:s,value:o,noValue:isNaN(o)||null==o})},t.type="series.tree",t.layoutMode="box",t.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(R.a);function B(e,t){for(var a,n=[e];a=n.pop();)if(t(a),a.isExpand){var i=a.children;if(i.length)for(var r=i.length-1;r>=0;r--)n.push(i[r])}}function F(e,t){e.eachSeriesByType("tree",(function(e){!function(e,t){var a=function(e,t){return c.g(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=a;var n=e.get("layout"),i=0,r=0,o=null;"radial"===n?(i=2*Math.PI,r=Math.min(a.height,a.width)/2,o=p((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(i=a.width,r=a.height,o=p());var s=e.getData().tree.root,l=s.children[0];if(l){!function(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var a,n,i=[t];a=i.pop();)if(n=a.children,a.isExpand&&n.length)for(var r=n.length-1;r>=0;r--){var o=n[r];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},i.push(o)}}(s),function(e,t,a){for(var n,i=[e],r=[];n=i.pop();)if(r.push(n),n.isExpand){var o=n.children;if(o.length)for(var s=0;s<o.length;s++)i.push(o[s])}for(;n=r.pop();)t(n,a)}(l,d,o),s.hierNode.modifier=-l.hierNode.prelim,B(l,h);var u=l,f=l,y=l;B(l,(function(e){var t=e.getLayout().x;t<u.getLayout().x&&(u=e),t>f.getLayout().x&&(f=e),e.depth>y.depth&&(y=e)}));var m=u===f?1:o(u,f)/2,v=m-u.getLayout().x,b=0,x=0,_=0,S=0;if("radial"===n)b=i/(f.getLayout().x+m+v),x=r/(y.depth-1||1),B(l,(function(e){_=(e.getLayout().x+v)*b,S=(e.depth-1)*x;var t=g(_,S);e.setLayout({x:t.x,y:t.y,rawX:_,rawY:S},!0)}));else{var O=e.getOrient();"RL"===O||"LR"===O?(x=r/(f.getLayout().x+m+v),b=i/(y.depth-1||1),B(l,(function(e){
1S=(e.getLayout().x+v)*x,_="LR"===O?(e.depth-1)*b:i-(e.depth-1)*b,e.setLayout({x:_,y:S},!0)}))):"TB"!==O&&"BT"!==O||(b=i/(f.getLayout().x+m+v),x=r/(y.depth-1||1),B(l,(function(e){_=(e.getLayout().x+v)*b,S="TB"===O?(e.depth-1)*x:r-(e.depth-1)*x,e.setLayout({x:_,y:S},!0)})))}}}(e,t)}))}function Y(e){e.eachSeriesByType("tree",(function(e){var t=e.getData();t.tree.eachNode((function(e){var a=e.getModel().getModel("itemStyle").getItemStyle(),n=t.ensureUniqueItemVisual(e.dataIndex,"style");Object(i.extend)(n,a)}))}))}var X=a(398);function W(e){e.registerChartView(E),e.registerSeriesModel(G),e.registerLayout(F),e.registerVisual(Y),function(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var a=e.dataIndex,n=t.getData().tree.getNodeByDataIndex(a);n.isExpand=!n.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var a=t.coordinateSystem,n=Object(X.a)(a,e);t.setCenter&&t.setCenter(n.center),t.setZoom&&t.setZoom(n.zoom)}))}))}(e)}},1736:function(e,t,a){"use strict";a.d(t,"a",(function(){return ce}));var n=a(134),i=function(){},r=["treemapZoomToNode","treemapRender","treemapMove"];var o=a(3),s=a(0),l=a(58),u=a(399),c=a(57),d=a(10),h=a(70),p=a(570);var g=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a.preventUsingHoverLayer=!0,a}return Object(o.b)(t,e),t.prototype.getInitialData=function(e,t){var a={name:e.name,children:e.data};!function e(t){var a=0;s.each(t.children,(function(t){e(t);var n=t.value;s.isArray(n)&&(n=n[0]),a+=n}));var n=t.value;s.isArray(n)&&(n=n[0]);(null==n||isNaN(n))&&(n=a);n<0&&(n=0);s.isArray(t.value)?t.value[0]=n:t.value=n}(a);var n=e.levels||[],i=this.designatedVisualItemStyle={},r=new c.a({itemStyle:i},this,t);n=e.levels=function(e,t){var a,n,i=Object(d.r)(t.get("color")),r=Object(d.r)(t.get(["aria","decal","decals"]));if(!i)return;e=e||[],s.each(e,(function(e){var t=new c.a(e),i=t.get("color"),r=t.get("decal");(t.get(["itemStyle","color"])||i&&"none"!==i)&&(a=!0),(t.get(["itemStyle","decal"])||r&&"none"!==r)&&(n=!0)}));var o=e[0]||(e[0]={});a||(o.color=i.slice());!n&&r&&(o.decal=r.slice());return e}(n,t);var o=s.map(n||[],(function(e){return new c.a(e,r,t)}),this),l=u.a.createTree(a,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var a=l.getNodeByDataIndex(t),n=o[a.depth];return e.parentModel=n||r,e}))}));return l.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,a){var n=this.getData(),i=this.getRawValue(e),r=n.getName(e);return Object(h.c)("nameValue",{name:r,value:i})},t.prototype.getDataParams=function(t){var a=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return a.treePathInfo=Object(n.d)(i,this),a},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},s.extend(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=s.createHashMap(),this._idIndexMapCount=0);var a=t.get(e);return null==a&&t.set(e,a=this._idIndexMapCount++),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){Object(p.a)(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",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:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],ellipsis:!0,verticalAlign:"middle"}}
1,visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(l.a),f=a(82),y=a(108),m=a(23),v=a(15),b=a(163),x=a(296),_=a(112),S=a(27);function O(e,t,a,n,i,r){var o=[[i?e:e-5,t],[e+a,t],[e+a,t+n],[i?e:e-5,t+n]];return!r&&o.splice(2,0,[e+a+5,t+n/2]),!i&&o.push([e,t+n/2]),o}function w(e,t,a){Object(m.a)(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.componentIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:a&&a.dataIndex,name:a&&a.name},treePathInfo:a&&Object(n.d)(a,t)}}var I=function(){function e(e){this.group=new f.a,e.add(this.group)}return e.prototype.render=function(e,t,a,n){var i=e.getModel("breadcrumb"),r=this.group;if(r.removeAll(),i.get("show")&&a){var o=i.getModel("itemStyle"),s=o.getModel("textStyle"),l={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(a,l,s),this._renderContent(e,l,o,s,n),S.i(r,l.pos,l.box)}},e.prototype._prepare=function(e,t,a){for(var n=e;n;n=n.parentNode){var i=Object(d.e)(n.getModel().get("name"),""),r=a.getTextRect(i),o=Math.max(r.width+16,t.emptyItemWidth);t.totalWidth+=o+8,t.renderList.push({node:n,text:i,width:o})}},e.prototype._renderContent=function(e,t,a,n,i){for(var r=0,o=t.emptyItemWidth,l=e.get(["breadcrumb","height"]),u=S.e(t.pos,t.box),c=t.totalWidth,d=t.renderList,h=d.length-1;h>=0;h--){var p=d[h],g=p.node,f=p.width,y=p.text;c>u.width&&(c-=f-o,f=o,y=null);var m=new x.a({shape:{points:O(r,0,f,l,h===d.length-1,0===h)},style:Object(s.defaults)(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new _.a({style:{text:y,fill:n.getTextColor(),font:n.getFont()}}),textConfig:{position:"inside"},z2:1e4*v.j,onclick:Object(s.curry)(i,g)});m.disableLabelAnimation=!0,this.group.add(m),w(m,e,g),r+=f+8}},e.prototype.remove=function(){this.group.removeAll()},e}(),M=a(238),L=a(34),D=a(29),j=a(1094),A=a(184),C=a(56),N=a(106),P=a(48),T=a(21),E=f.a,R=y.a,V=10*v.j,z=2*v.j,k=3*v.j,G=Object(A.a)([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),B=function(e){var t=G(e);return t.stroke=t.fill=t.lineWidth=null,t},F=Object(d.o)();var Y=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a._state="ready",a._storage={nodeGroup:[],background:[],content:[]},a}return Object(o.b)(t,e),t.prototype.render=function(e,t,a,i){var r=t.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Object(s.indexOf)(r,e)<0)){this.seriesModel=e,this.api=a,this.ecModel=t;var o=n.c(i,["treemapZoomToNode","treemapRootToNode"],e),l=i&&i.type,u=e.layoutInfo,c=!this._oldTree,d=this._storage,h="treemapRootToNode"===l&&o&&d?{rootNodeGroup:d.nodeGroup[o.node.getRawIndex()],direction:i.direction}:null,p=this._giveContainerGroup(u),g=this._doRender(p,e,h);c||l&&"treemapZoomToNode"!==l&&"treemapRootToNode"!==l?g.renderFinally():this._doAnimation(p,g,e,h),this._resetController(a),this._renderBreadcrumb(e,a,o)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new E,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,a){var n=t.getData().tree,i=this._oldTree,r={nodeGroup:[],background:[],content:[]},o={nodeGroup:[],background:[],content:[]},l=this._storage,u=[];function c(e,n,i,c){return function(e,t,a,n,i,r,o,l,u,c){if(!o)return;var h=o.getLayout(),p=e.getData(),g=o.getModel();if(p.setItemGraphicEl(o.dataIndex,null),!h||!h.isInView)return;var y=h.width,b=h.height,x=h.borderWidth,_=h.invisible,S=o.getRawIndex(),O=l&&l.getRawIndex(),w=o.viewChildren,I=h.upperHeight,M=w&&w.length,L=g.getModel("itemStyle"),D=g.getModel(["emphasis","itemStyle"]),j=g.getModel(["blur","itemStyle"]),A=g.getModel(["select","itemStyle"]),C=L.get("borderRadius")||0,P=K("nodeGroup",E);if(!P)return;
1if(u.add(P),P.x=h.x||0,P.y=h.y||0,P.markRedraw(),F(P).nodeWidth=y,F(P).nodeHeight=b,h.isAboveViewRoot)return P;var Y=K("background",R,c,z);Y&&function(t,a,n){var i=Object(m.a)(a);if(i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex,a.setShape({x:0,y:0,width:y,height:b,r:C}),_)Z(a);else{a.invisible=!1;var r=o.getVisual("style"),s=r.stroke,l=B(L);l.fill=s;var u=G(D);u.fill=D.get("borderColor");var c=G(j);c.fill=j.get("borderColor");var d=G(A);if(d.fill=A.get("borderColor"),n){var h=y-2*x;q(a,s,r.opacity,{x:x,y:0,width:h,height:I})}else a.removeTextContent();a.setStyle(l),a.ensureState("emphasis").style=u,a.ensureState("blur").style=c,a.ensureState("select").style=d,Object(v.G)(a)}t.add(a)}(P,Y,M&&h.upperLabelHeight);var X=g.get(["emphasis","focus"]),W=g.get(["emphasis","blurScope"]),H="ancestor"===X?o.getAncestorsIndices():"descendant"===X?o.getDescendantIndices():X;if(M)Object(v.y)(P)&&Object(v.F)(P,!1),Y&&(Object(v.F)(Y,!0),p.setItemGraphicEl(o.dataIndex,Y),Object(v.p)(Y,H,W));else{var U=K("content",R,c,k);U&&function(t,a){var n=Object(m.a)(a);n.dataIndex=o.dataIndex,n.seriesIndex=e.seriesIndex;var i=Math.max(y-2*x,0),r=Math.max(b-2*x,0);if(a.culling=!0,a.setShape({x:x,y:x,width:i,height:r,r:C}),_)Z(a);else{a.invisible=!1;var s=o.getVisual("style"),l=s.fill,u=B(L);u.fill=l,u.decal=s.decal;var c=G(D),d=G(j),h=G(A);q(a,l,s.opacity,null),a.setStyle(u),a.ensureState("emphasis").style=c,a.ensureState("blur").style=d,a.ensureState("select").style=h,Object(v.G)(a)}t.add(a)}(P,U),Y&&Object(v.y)(Y)&&Object(v.F)(Y,!1),Object(v.F)(P,!0),p.setItemGraphicEl(o.dataIndex,P),Object(v.p)(P,H,W)}return P;function Z(e){!e.invisible&&r.push(e)}function q(t,a,n,i){var r=g.getModel(i?"upperLabel":"label"),l=Object(d.e)(g.get("name"),null),u=r.getShallow("show");Object(T.h)(t,Object(T.f)(g,i?"upperLabel":"label"),{defaultText:u?l:null,inheritColor:a,defaultOpacity:n,labelFetcher:e,labelDataIndex:o.dataIndex});var c=t.getTextContent(),p=c.style,f=Object(s.normalizeCssArray)(p.padding||0);i&&(t.setTextConfig({layoutRect:i}),c.disableLabelLayout=!0),c.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-f[1]-f[3],0),a=Math.max((i?i.height:t.shape.height)-f[0]-f[2],0);p.width===e&&p.height===a||c.setStyle({width:e,height:a})},p.truncateMinChar=2,p.lineOverflow="truncate",J(p,i,h);var y=c.getState("emphasis");J(y?y.style:null,i,h)}function J(t,a,n){var i=t?t.text:null;if(!a&&n.isLeafRoot&&null!=i){var r=e.get("drillDownIcon",!0);t.text=r?r+" "+i:i}}function K(e,r,l,u){var c=null!=O&&a[e][O],d=i[e];return c?(a[e][O]=null,function(e,t){var a=e[S]={};t instanceof E?(a.oldX=t.x,a.oldY=t.y):a.oldShape=Object(s.extend)({},t.shape)}(d,c)):_||((c=new r)instanceof N.c&&(c.z2=function(e,t){return e*V+t}(l,u)),function(e,t){var a=e[S]={},r=o.parentNode,s=t instanceof f.a;if(r&&(!n||"drillDown"===n.direction)){var l=0,u=0,c=i.background[r.getRawIndex()];!n&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(a.oldX=0,a.oldY=u):a.oldShape={x:l,y:u,width:0,height:0}}a.fadein=!s}(d,c)),t[e][S]=c}}(t,o,l,a,r,u,e,n,i,c)}!function e(t,a,n,i,r){i?(a=t,Object(s.each)(t,(function(e,t){!e.isRemoved()&&l(t,t)}))):new b.a(a,t,o,o).add(l).update(l).remove(Object(s.curry)(l,null)).execute();function o(e){return e.getId()}function l(o,s){var l=null!=o?t[o]:null,u=null!=s?a[s]:null,d=c(l,u,n,r);d&&e(l&&l.viewChildren||[],u&&u.viewChildren||[],d,i,r+1)}}(n.root?[n.root]:[],i&&i.root?[i.root]:[],e,n===i||!i,0);var h=function(e){var t={nodeGroup:[],background:[],content:[]};return e&&Object(s.each)(e,(function(e,a){var n=t[a];Object(s.each)(e,(function(e){e&&(n.push(e),F(e).willDelete=!0)}))})),t}(l);return this._oldTree=n,this._storage=o,{lastsForAnimation:r,willDeleteEls:h,renderFinally:function(){Object(s.each)(h,(function(e){Object(s.each)(e,(function(e){e.parent&&e.parent.remove(e)}))})),Object(s.each)(u,(function(e){e.invisible=!0,e.dirty()}))}}},t.prototype._doAnimation=function(e,t,a,n){if(a.get("animation")){var i=a.get("animationDurationUpdate"),r=a.get("animationEasing"),o=(Object(s.isFunction)(i)?0:i)||0,l=(Object(s.isFunction)(r)?null:r)||"cubicOut",u=j.a();Object(s.each)(t.willDeleteEls,(function(e,t){Object(s.each)(e,(function(e,a){if(!e.invisible){var i,r=e.parent,s=F(r);if(n&&"drillDown"===n.direction)i=r===n.rootNodeGroup?{shape:{x:0,y:0,width:s.nodeWidth,height:s.nodeHeight},style:{opacity:0}
1}:{style:{opacity:0}};else{var c=0,d=0;s.willDelete||(c=s.nodeWidth/2,d=s.nodeHeight/2),i="nodeGroup"===t?{x:c,y:d,style:{opacity:0}}:{shape:{x:c,y:d,width:0,height:0},style:{opacity:0}}}i&&u.add(e,i,o,0,l)}}))})),Object(s.each)(this._storage,(function(e,a){Object(s.each)(e,(function(e,n){var i=t.lastsForAnimation[a][n],r={};i&&(e instanceof f.a?null!=i.oldX&&(r.x=e.x,r.y=e.y,e.x=i.oldX,e.y=i.oldY):(i.oldShape&&(r.shape=Object(s.extend)({},e.shape),e.setShape(i.oldShape)),i.fadein?(e.setStyle("opacity",0),r.style={opacity:1}):1!==e.style.opacity&&(r.style={opacity:1})),u.add(e,r,o,0,l))}))}),this),this._state="animating",u.finished(Object(s.bind)((function(){this._state="ready",t.renderFinally()}),this)).start()}},t.prototype._resetController=function(e){var t=this._controller;t||((t=this._controller=new M.a(e.getZr())).enable(this.seriesModel.get("roam")),t.on("pan",Object(s.bind)(this._onPan,this)),t.on("zoom",Object(s.bind)(this._onZoom,this)));var a=new L.a(0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,n){return a.contain(t,n)}))},t.prototype._clearController=function(){var e=this._controller;e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>3||Math.abs(e.dy)>3)){var t=this.seriesModel.getData().tree.root;if(!t)return;var a=t.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+e.dx,y:a.y+e.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(e){var t=e.originX,a=e.originY;if("animating"!==this._state){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;var r=new L.a(i.x,i.y,i.width,i.height),o=this.seriesModel.layoutInfo;t-=o.x,a-=o.y;var s=D.create();D.translate(s,s,[-t,-a]),D.scale(s,s,[e.scale,e.scale]),D.translate(s,s,[t,a]),r.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x,y:r.y,width:r.width,height:r.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var a=t.seriesModel.get("nodeClick",!0);if(a){var n=t.findTarget(e.offsetX,e.offsetY);if(n){var i=n.node;if(i.getLayout().isLeafRoot)t._rootToNode(n);else if("zoomToNode"===a)t._zoomToNode(n);else if("link"===a){var r=i.hostTree.data.getItemModel(i.dataIndex),o=r.get("link",!0),s=r.get("target",!0)||"blank";o&&Object(P.l)(o,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,a){var i=this;a||(a=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2))||(a={node:e.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new I(this.group))).render(e,t,a.node,(function(t){"animating"!==i._state&&(n.a(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var a;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(n){var i=this._storage.background[n.getRawIndex()];if(i){var r=i.transformCoordToLocal(e,t),o=i.shape;if(!(o.x<=r[0]&&r[0]<=o.x+o.width&&o.y<=r[1]&&r[1]<=o.y+o.height))return!1;a={node:n,offsetX:r[0],offsetY:r[1]}}}),this),a},t.type="treemap",t}(C.a),X=a(110),W=a(64),H=Object(d.o)(),U={seriesType:"treemap",reset:function(e){var t=e.getData().tree.root;t.isRemoved()||function e(t,a,n,i){var r=t.getModel(),o=t.getLayout(),l=t.hostTree.data;if(!o||o.invisible||!o.isInView)return;var u,c=r.getModel("itemStyle"),d=function(e,t,a){var n=Object(s.extend)({},t),i=a.designatedVisualItemStyle;return Object(s.each)(["color","colorAlpha","colorSaturation"],(function(a){i[a]=t[a];var r=e.get(a);i[a]=null,null!=r&&(n[a]=r)})),n}(c,a,i),h=l.ensureUniqueItemVisual(t.dataIndex,"style"),p=c.get("borderColor"),g=c.get("borderColorSaturation");null!=g&&(u=Z(d),p=function(e,t){return null!=t?Object(W.modifyHSL)(t,null,null,e):null}(g,u));h.stroke=p;var f=t.viewChildren;if(f&&f.length){var y=function(e,t,a,n,i,r){if(!r||!r.length)return;var o=J(t,"color")||null!=i.color&&"none"!==i.color&&(J(t,"colorAlpha")||J(t,"colorSaturation"));if(!o)return;
1var s=t.get("visualMin"),l=t.get("visualMax"),u=a.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),d={type:o.name,dataExtent:u,visual:o.range};"color"!==d.type||"index"!==c&&"id"!==c?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var h=new X.a(d);return H(h).drColorMappingBy=c,h}(0,r,o,0,d,f);Object(s.each)(f,(function(t,a){if(t.depth>=n.length||t===n[t.depth]){var o=function(e,t,a,n,i,r){var o=Object(s.extend)({},t);if(i){var l=i.type,u="color"===l&&H(i).drColorMappingBy,c="index"===u?n:"id"===u?r.mapIdToIndex(a.getId()):a.getValue(e.get("visualDimension"));o[l]=i.mapValueToVisual(c)}return o}(r,d,t,a,y,i);e(t,o,n,i)}}))}else u=Z(d),h.fill=u}(t,{},e.getViewRoot().getAncestors(),e)}};function Z(e){var t=q(e,"color");if(t){var a=q(e,"colorAlpha"),n=q(e,"colorSaturation");return n&&(t=Object(W.modifyHSL)(t,null,null,n)),a&&(t=Object(W.modifyAlpha)(t,a)),t}}function q(e,t){var a=e[t];if(null!=a&&"none"!==a)return a}function J(e,t){var a=e.get(t);return Object(s.isArray)(a)&&a.length?{name:t,range:a}:null}var K=a(6),Q=Math.max,$=Math.min,ee=s.retrieve,te=s.each,ae=["itemStyle","borderWidth"],ne=["itemStyle","gapWidth"],ie=["upperLabel","show"],re=["upperLabel","height"],oe={seriesType:"treemap",reset:function(e,t,a,i){var r=a.getWidth(),o=a.getHeight(),l=e.option,u=S.g(e.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()}),c=l.size||[],d=Object(K.o)(ee(u.width,c[0]),r),h=Object(K.o)(ee(u.height,c[1]),o),p=i&&i.type,g=n.c(i,["treemapZoomToNode","treemapRootToNode"],e),f="treemapRender"===p||"treemapMove"===p?i.rootRect:null,y=e.getViewRoot(),m=n.b(y);if("treemapMove"!==p){var v="treemapZoomToNode"===p?function(e,t,a,n,i){var r,o=(t||{}).node,s=[n,i];if(!o||o===a)return s;var l=n*i,u=l*e.option.zoomToNodeRatio;for(;r=o.parentNode;){for(var c=0,d=r.children,h=0,p=d.length;h<p;h++)c+=d[h].getValue();var g=o.getValue();if(0===g)return s;u*=c/g;var f=r.getModel(),y=f.get(ae),m=Math.max(y,ue(f));(u+=4*y*y+(3*y+m)*Math.pow(u,.5))>K.a&&(u=K.a),o=r}u<l&&(u=l);var v=Math.pow(u/l,.5);return[n*v,i*v]}(e,g,y,d,h):f?[f.width,f.height]:[d,h],b=l.sort;b&&"asc"!==b&&"desc"!==b&&(b="desc");var x={squareRatio:l.squareRatio,sort:b,leafDepth:l.leafDepth};y.hostTree.clearLayouts();var _={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]};y.setLayout(_),function e(t,a,n,i){var r,o;if(t.isRemoved())return;var l=t.getLayout();r=l.width,o=l.height;var u=t.getModel(),c=u.get(ae),d=u.get(ne)/2,h=ue(u),p=Math.max(c,h),g=c-d,f=p-d;t.setLayout({borderWidth:c,upperHeight:p,upperLabelHeight:h},!0),r=Q(r-2*g,0),o=Q(o-g-f,0);var y=r*o,m=function(e,t,a,n,i,r){var o=e.children||[],l=n.sort;"asc"!==l&&"desc"!==l&&(l=null);var u=null!=n.leafDepth&&n.leafDepth<=r;if(i&&!u)return e.viewChildren=[];!function(e,t){t&&e.sort((function(e,a){var n="asc"===t?e.getValue()-a.getValue():a.getValue()-e.getValue();return 0===n?"asc"===t?e.dataIndex-a.dataIndex:a.dataIndex-e.dataIndex:n}))}(o=s.filter(o,(function(e){return!e.isRemoved()})),l);var c=function(e,t,a){for(var n=0,i=0,r=t.length;i<r;i++)n+=t[i].getValue();var o,s=e.get("visualDimension");t&&t.length?"value"===s&&a?(o=[t[t.length-1].getValue(),t[0].getValue()],"asc"===a&&o.reverse()):(o=[1/0,-1/0],te(t,(function(e){var t=e.getValue(s);t<o[0]&&(o[0]=t),t>o[1]&&(o[1]=t)}))):o=[NaN,NaN];return{sum:n,dataExtent:o}}(t,o,l);if(0===c.sum)return e.viewChildren=[];if(c.sum=function(e,t,a,n,i){if(!n)return a;for(var r=e.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i["asc"===n?o-l-1:l].getValue();u/a*t<r&&(s=l,a-=u)}return"asc"===n?i.splice(0,o-s):i.splice(s,o-s),a}(t,a,c.sum,l,o),0===c.sum)return e.viewChildren=[];for(var d=0,h=o.length;d<h;d++){var p=o[d].getValue()/c.sum*a;o[d].setLayout({area:p})}u&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0);return e.viewChildren=o,e.setLayout({dataExtent:c.dataExtent},!0),o}(t,u,y,a,n,i);if(!m.length)return;var v={x:g,y:f,width:r,height:o},b=$(r,o),x=1/0,_=[];_.area=0;for(var S=0,O=m.length;S<O;){var w=m[S];_.push(w),_.area+=w.getLayout().area;var I=se(_,b,a.squareRatio);I<=x?(S++,x=I):(_.area-=_.pop().getLayout().area,le(_,b,v,d,!1),b=$(v.width,v.height),_.length=_.area=0,x=1/0)}_.length&&le(_,b,v,d,!0);
1if(!n){var M=u.get("childrenVisibleMin");null!=M&&y<M&&(n=!0)}for(S=0,O=m.length;S<O;S++)e(m[S],a,n,i+1)}(y,x,!1,0),_=y.getLayout(),te(m,(function(e,t){var a=(m[t+1]||y).getValue();e.setLayout(s.extend({dataExtent:[a,a],borderWidth:0,upperHeight:0},_))}))}var O=e.getData().tree.root;O.setLayout(function(e,t,a){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!a)return n;var i=a.node,r=i.getLayout();if(!r)return n;var o=[r.width/2,r.height/2],s=i;for(;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}(u,f,g),!0),e.setLayoutInfo(u),function e(t,a,n,i,r){var o=t.getLayout(),s=n[r],l=s&&s===t;if(s&&!l||r===n.length&&t!==i)return;t.setLayout({isInView:!0,invisible:!l&&!a.intersect(o),isAboveViewRoot:l},!0);var u=new L.a(a.x-o.x,a.y-o.y,a.width,a.height);te(t.viewChildren||[],(function(t){e(t,u,n,i,r+1)}))}(O,new L.a(-u.x,-u.y,r,o),m,y,0)}};function se(e,t,a){for(var n=0,i=1/0,r=0,o=void 0,s=e.length;r<s;r++)(o=e[r].getLayout().area)&&(o<i&&(i=o),o>n&&(n=o));var l=e.area*e.area,u=t*t*a;return l?Q(u*n/l,l/(u*i)):1/0}function le(e,t,a,n,i){var r=t===a.width?0:1,o=1-r,s=["x","y"],l=["width","height"],u=a[s[r]],c=t?e.area/t:0;(i||c>a[l[o]])&&(c=a[l[o]]);for(var d=0,h=e.length;d<h;d++){var p=e[d],g={},f=c?p.getLayout().area/c:0,y=g[l[o]]=Q(c-2*n,0),m=a[s[r]]+a[l[r]]-u,v=d===h-1||m<f?m:f,b=g[l[r]]=Q(v-2*n,0);g[s[o]]=a[s[o]]+$(n,y/2),g[s[r]]=u+$(n,b/2),u+=v,p.setLayout(g,!0)}a[s[o]]+=c,a[l[o]]-=c}function ue(e){return e.get(ie)?e.get(re):0}function ce(e){e.registerSeriesModel(g),e.registerChartView(Y),e.registerVisual(U),e.registerLayout(oe),function(e){for(var t=0;t<r.length;t++)e.registerAction({type:r[t],update:"updateView"},i);e.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){t.eachComponent({mainType:"series",subType:"treemap",query:e},(function(t,a){var i=n.c(e,["treemapZoomToNode","treemapRootToNode"],t);if(i){var r=t.getViewRoot();r&&(e.direction=n.a(r,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}))}))}(e)}},1737:function(e,t,a){"use strict";a.d(t,"a",(function(){return L}));var n=a(3),i=a(58),r=a(572),o=a(0),s=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],a.visualDrawType="stroke",a}return Object(n.b)(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(i.a);Object(o.mixin)(s,r.a,!0);var l=s,u=a(56),c=a(11),d=a(15),h=a(45),p=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(n.b)(t,e),t.prototype.render=function(e,t,a){var n=e.getData(),i=this.group,r=this._data;this._data||i.removeAll();var o="horizontal"===e.get("layout")?1:0;n.diff(r).add((function(e){if(n.hasValue(e)){var t=y(n.getItemLayout(e),n,e,o,!0);n.setItemGraphicEl(e,t),i.add(t)}})).update((function(e,t){var a=r.getItemGraphicEl(t);if(n.hasValue(e)){var s=n.getItemLayout(e);a?m(s,a,n,e):a=y(s,n,e,o),i.add(a),n.setItemGraphicEl(e,a)}else i.remove(a)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=n},t.prototype.remove=function(e){var t=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(u.a),g=function(){},f=function(e){function t(t){var a=e.call(this,t)||this;return a.type="boxplotBoxPath",a}return Object(n.b)(t,e),t.prototype.getDefaultShape=function(){return new g},t.prototype.buildPath=function(e,t){var a=t.points,n=0;for(e.moveTo(a[n][0],a[n][1]),n++;n<4;n++)e.lineTo(a[n][0],a[n][1]);for(e.closePath();n<a.length;n++)e.moveTo(a[n][0],a[n][1]),n++,e.lineTo(a[n][0],a[n][1])},t}(h.b);function y(e,t,a,n,i){var r=e.ends,o=new f({shape:{points:i?v(r,
1n,e):r}});return m(e,o,t,a,i),o}function m(e,t,a,n,i){var r=a.hostModel;(0,c[i?"initProps":"updateProps"])(t,{shape:{points:e.ends}},r,n),t.useStyle(a.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.z2=100;var o=a.getItemModel(n);Object(d.I)(t,o),Object(d.o)(t,o.get(["emphasis","focus"]),o.get(["emphasis","blurScope"]))}function v(e,t,a){return o.map(e,(function(e){return(e=e.slice())[t]=a.initBaseline,e}))}var b=p;function x(e,t){}var _=a(6),S=o.each;function O(e){var t=function(e){var t=[],a=[];return e.eachSeriesByType("boxplot",(function(e){var n=e.getBaseAxis(),i=o.indexOf(a,n);i<0&&(i=a.length,a[i]=n,t[i]={axis:n,seriesModels:[]}),t[i].seriesModels.push(e)})),t}(e);S(t,(function(e){var t=e.seriesModels;t.length&&(!function(e){var t,a,n=e.axis,i=e.seriesModels,r=i.length,s=e.boxWidthList=[],l=e.boxOffsetList=[],u=[];if("category"===n.type)a=n.getBandWidth();else{var c=0;S(i,(function(e){c=Math.max(c,e.getData().count())})),t=n.getExtent(),Math.abs(t[1]-t[0])}S(i,(function(e){var t=e.get("boxWidth");o.isArray(t)||(t=[t,t]),u.push([Object(_.o)(t[0],a)||0,Object(_.o)(t[1],a)||0])}));var d=.8*a-2,h=d/r*.3,p=(d-h*(r-1))/r,g=p/2-d/2;S(i,(function(e,t){l.push(g),g+=h+p,s.push(Math.min(Math.max(p,u[t][0]),u[t][1]))}))}(e),S(t,(function(t,a){!function(e,t,a){var n=e.coordinateSystem,i=e.getData(),r=a/2,o="horizontal"===e.get("layout")?0:1,s=1-o,l=["x","y"],u=i.mapDimension(l[o]),c=i.mapDimensionsAll(l[s]);if(null==u||c.length<5)return;for(var d=0;d<i.count();d++){var h=i.get(u,d),p=b(h,c[2],d),g=b(h,c[0],d),f=b(h,c[1],d),y=b(h,c[3],d),m=b(h,c[4],d),v=[];x(v,f,!1),x(v,y,!0),v.push(g,f,m,y),_(v,g),_(v,m),_(v,p),i.setItemLayout(d,{initBaseline:p[s],ends:v})}function b(e,a,r){var l,u=i.get(a,r),c=[];return c[o]=e,c[s]=u,isNaN(e)||isNaN(u)?l=[NaN,NaN]:(l=n.dataToPoint(c))[o]+=t,l}function x(e,t,a){var n=t.slice(),i=t.slice();n[o]+=r,i[o]-=r,a?e.push(n,i):e.push(i,n)}function _(e,t){var a=t.slice(),n=t.slice();a[o]-=r,n[o]+=r,e.push(a,n)}}(t,e.boxOffsetList[a],e.boxWidthList[a])})))}))}var w=a(41),I=a(24),M={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==I.c){0,Object(w.b)("")}var a=function(e,t){for(var a=[],n=[],i=(t=t||{}).boundIQR,r="none"===i||0===i,s=0;s<e.length;s++){var l=Object(_.b)(e[s].slice()),u=Object(_.p)(l,.25),c=Object(_.p)(l,.5),d=Object(_.p)(l,.75),h=l[0],p=l[l.length-1],g=(null==i?1.5:i)*(d-u),f=r?h:Math.max(h,u-g),y=r?p:Math.min(p,d+g),m=t.itemNameFormatter,v=Object(o.isFunction)(m)?m({value:s}):Object(o.isString)(m)?m.replace("{value}",s+""):s+"";a.push([v,f,u,c,d,y]);for(var b=0;b<l.length;b++){var x=l[b];if(x<f||x>y){var S=[v,x];n.push(S)}}}return{boxData:a,outliers:n}}(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function L(e){e.registerSeriesModel(l),e.registerChartView(b),e.registerVisual(x),e.registerLayout(O),e.registerTransform(M)}},1738:function(e,t,a){"use strict";a.d(t,"a",(function(){return A}));var n=a(3),i=a(0),r=a(56),o=a(112),s=a(11),l=a(327),u=a(15),c=a(21),d=a(23),h=a(301),p=a(263),g=function(e){function t(t,a,n,i){var r=e.call(this)||this;r.z2=2,r.textConfig={inside:!0},Object(d.a)(r).seriesIndex=a.seriesIndex;var s=new o.a({z2:4,silent:t.getModel().get(["label","silent"])});return r.setTextContent(s),r.updateData(!0,t,a,n,i),r}return Object(n.b)(t,e),t.prototype.updateData=function(e,t,a,n,r){this.node=t,t.piece=this,a=a||this._seriesModel,n=n||this._ecModel;var o=this;Object(d.a)(o).dataIndex=t.dataIndex;var l=t.getModel(),c=l.getModel("emphasis"),g=t.getLayout(),f=i.extend({},g);f.label=null;var y=t.getVisual("style");y.lineJoin="bevel";var m=t.getVisual("decal");m&&(y.decal=Object(p.a)(m,r));var v=Object(h.a)(l.getModel("itemStyle"),f);i.extend(f,v),i.each(u.g,(function(e){var t=o.ensureState(e),a=l.getModel([e,"itemStyle"]);t.style=a.getItemStyle();var n=Object(h.a)(a,f);n&&(t.shape=n)})),e?(o.setShape(f),o.shape.r=g.r0,s.updateProps(o,{shape:{r:g.r}},a,t.dataIndex)):s.updateProps(o,{shape:f},a),o.useStyle(y),this._updateLabel(a);var b=l.getShallow("cursor");b&&o.attr("cursor",b),this._seriesModel=a||this._seriesModel,this._ecModel=n||this._ecModel;var x=c.get("focus"),_="ancestor"===x?t.getAncestorsIndices():"descendant"===x?t.getDescendantIndices():x;Object(u.o)(this,_,c.get("blurScope"))},t.prototype._updateLabel=function(e){var t=this,a=this.node.getModel(),n=a.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,s=(r.startAngle+r.endAngle)/2,l=Math.cos(s),d=Math.sin(s),h=this,p=h.getTextContent(),g=this.node.dataIndex,f=n.get("minA
1ngle")/180*Math.PI,y=n.get("show")&&!(null!=f&&Math.abs(o)<f);function m(e,t){var a=e.get(t);return null==a?n.get(t):a}p.ignore=!y,i.each(u.a,(function(n){var i="normal"===n?a.getModel("label"):a.getModel([n,"label"]),o="normal"===n,u=o?p:p.ensureState(n),f=e.getFormattedLabel(g,n);o&&(f=f||t.node.name),u.style=Object(c.c)(i,{},null,"normal"!==n,!0),f&&(u.style.text=f);var y=i.get("show");null==y||o||(u.ignore=!y);var v,b=m(i,"position"),x=o?h:h.states[n],_=x.style.fill;x.textConfig={outsideFill:"inherit"===i.get("color")?_:null,inside:"outside"!==b};var S=m(i,"distance")||0,O=m(i,"align");"outside"===b?(v=r.r+S,O=s>Math.PI/2?"right":"left"):O&&"center"!==O?"left"===O?(v=r.r0+S,s>Math.PI/2&&(O="right")):"right"===O&&(v=r.r-S,s>Math.PI/2&&(O="left")):(v=(r.r+r.r0)/2,O="center"),u.style.align=O,u.style.verticalAlign=m(i,"verticalAlign")||"middle",u.x=v*l+r.cx,u.y=v*d+r.cy;var w=m(i,"rotate"),I=0;"radial"===w?(I=-s)<-Math.PI/2&&(I+=Math.PI):"tangential"===w?(I=Math.PI/2-s)>Math.PI/2?I-=Math.PI:I<-Math.PI/2&&(I+=Math.PI):"number"==typeof w&&(I=w*Math.PI/180),u.rotation=I})),p.dirtyStyle()},t}(l.a),f=a(163),y=a(134);var m=a(48),v=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(n.b)(t,e),t.prototype.render=function(e,t,a,n){var r=this;this.seriesModel=e,this.api=a,this.ecModel=t;var o=e.getData(),s=o.tree.root,l=e.getViewRoot(),u=this.group,c=e.get("renderLabelForZeroData"),d=[];l.eachNode((function(e){d.push(e)}));var h=this._oldChildren||[];!function(n,r){if(0===n.length&&0===r.length)return;function l(e){return e.getId()}function d(i,l){!function(n,i){c||!n||n.getValue()||(n=null);if(n!==s&&i!==s)if(i&&i.piece)n?(i.piece.updateData(!1,n,e,t,a),o.setItemGraphicEl(n.dataIndex,i.piece)):function(e){if(!e)return;e.piece&&(u.remove(e.piece),e.piece=null)}(i);else if(n){var r=new g(n,e,t,a);u.add(r),o.setItemGraphicEl(n.dataIndex,r)}}(null==i?null:n[i],null==l?null:r[l])}new f.a(r,n,l,l).add(d).update(d).remove(i.curry(d,null)).execute()}(d,h),function(n,i){i.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,n,e,t,a):(r.virtualPiece=new g(n,e,t,a),u.add(r.virtualPiece)),i.piece.off("click"),r.virtualPiece.on("click",(function(e){r._rootToNode(i.parentNode)}))):r.virtualPiece&&(u.remove(r.virtualPiece),r.virtualPiece=null)}(s,l),this._initEvents(),this._oldChildren=d},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var a=!1;e.seriesModel.getViewRoot().eachNode((function(n){if(!a&&n.piece&&n.piece===t.target){var i=n.getModel().get("nodeClick");if("rootToNode"===i)e._rootToNode(n);else if("link"===i){var r=n.getModel(),o=r.get("link");if(o){var s=r.get("target",!0)||"_blank";Object(m.l)(o,s)}}a=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:"sunburstRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var a=t.getData().getItemLayout(0);if(a){var n=e[0]-a.cx,i=e[1]-a.cy,r=Math.sqrt(n*n+i*i);return r<=a.r&&r>=a.r0}},t.type="sunburst",t}(r.a),b=a(58),x=a(399),_=a(57),S=a(570);var O=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a.ignoreStyleOnData=!0,a}return Object(n.b)(t,e),t.prototype.getInitialData=function(e,t){var a={name:e.name,children:e.data};!function e(t){var a=0;i.each(t.children,(function(t){e(t);var n=t.value;i.isArray(n)&&(n=n[0]),a+=n}));var n=t.value;i.isArray(n)&&(n=n[0]);(null==n||isNaN(n))&&(n=a);n<0&&(n=0);i.isArray(t.value)?t.value[0]=n:t.value=n}(a);var n=i.map(e.levels||[],(function(e){return new _.a(e,this,t)}),this),r=x.a.createTree(a,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var a=r.getNodeByDataIndex(t),i=n[a.depth];return i&&(e.parentModel=i),e}))}));return r.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var a=e.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treePathInfo=Object(y.d)(n,this),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){Object(S.a)(this)},t.type="series.sunburst",t.defaultOption={zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}}
1,animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],levels:[],sort:"desc"},t}(b.a),w=a(6),I=Math.PI/180;function M(e,t,a){t.eachSeriesByType(e,(function(e){var t=e.get("center"),n=e.get("radius");i.isArray(n)||(n=[0,n]),i.isArray(t)||(t=[t,t]);var r=a.getWidth(),o=a.getHeight(),s=Math.min(r,o),l=Object(w.o)(t[0],r),u=Object(w.o)(t[1],o),c=Object(w.o)(n[0],s/2),d=Object(w.o)(n[1],s/2),h=-e.get("startAngle")*I,p=e.get("minAngle")*I,g=e.getData().tree.root,f=e.getViewRoot(),y=f.depth,m=e.get("sort");null!=m&&function e(t,a){var n=t.children||[];t.children=function(e,t){if("function"==typeof t){var a=i.map(e,(function(e,t){var a=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return a}},index:t}}));return a.sort((function(e,a){return t(e.params,a.params)})),i.map(a,(function(t){return e[t.index]}))}var n="asc"===t;return e.sort((function(e,t){var a=(e.getValue()-t.getValue())*(n?1:-1);return 0===a?(e.dataIndex-t.dataIndex)*(n?-1:1):a}))}(n,a),n.length&&i.each(t.children,(function(t){e(t,a)}))}(f,m);var v=0;i.each(f.children,(function(e){!isNaN(e.getValue())&&v++}));var b=f.getValue(),x=Math.PI/(b||v)*2,_=f.depth>0,S=f.height-(_?-1:1),O=(d-c)/(S||1),M=e.get("clockwise"),L=e.get("stillShowZeroSum"),D=M?1:-1,j=function(e,t){if(e){var a=t;if(e!==g){var n=e.getValue(),r=0===b&&L?x:n*x;r<p&&(r=p),a=t+D*r;var o=e.depth-y-(_?-1:1),d=c+O*o,h=c+O*(o+1),f=e.getModel();null!=f.get("r0")&&(d=Object(w.o)(f.get("r0"),s/2)),null!=f.get("r")&&(h=Object(w.o)(f.get("r"),s/2)),e.setLayout({angle:r,startAngle:t,endAngle:a,clockwise:M,cx:l,cy:u,r0:d,r:h})}if(e.children&&e.children.length){var m=0;i.each(e.children,(function(e){m+=j(e,t+m)}))}return a-t}};if(_){var A=c,C=c+O,N=2*Math.PI;g.setLayout({angle:N,startAngle:h,endAngle:h+N,clockwise:M,cx:l,cy:u,r0:A,r:C})}j(f,h)}))}var L=a(64);function D(e){var t={};e.eachSeriesByType("sunburst",(function(e){var a=e.getData(),n=a.tree;n.eachNode((function(r){var o=r.getModel().getModel("itemStyle").getItemStyle();o.fill||(o.fill=function(e,a,n){for(var i=e;i&&i.depth>1;)i=i.parentNode;var r=a.getColorFromPalette(i.name||i.dataIndex+"",t);return e.depth>1&&"string"==typeof r&&(r=Object(L.lift)(r,(e.depth-1)/(n-1)*.5)),r}(r,e,n.root.height));var s=a.ensureUniqueItemVisual(r.dataIndex,"style");Object(i.extend)(s,o)}))}))}var j=a(237);function A(e){e.registerChartView(v),e.registerSeriesModel(O),e.registerLayout(Object(i.curry)(M,"sunburst")),e.registerProcessor(Object(i.curry)(j.a,"sunburst")),e.registerVisual(D),function(e){e.registerAction({type:"sunburstRootToNode",update:"updateView"},(function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},(function(t,a){var n=Object(y.c)(e,["sunburstRootToNode"],t);if(n){var i=t.getViewRoot();i&&(e.direction=Object(y.a)(i,n.node)?"rollUp":"drillDown"),t.resetViewRoot(n.node)}}))})),e.registerAction({type:"sunburstHighlight",update:"none"},(function(e,t,a){e=Object(i.extend)({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},(function(t){var a=Object(y.c)(e,["sunburstHighlight"],t);a&&(e.dataIndex=a.node.dataIndex)})),a.dispatchAction(Object(i.extend)(e,{type:"highlight"}))})),e.registerAction({type:"sunburstUnhighlight",update:"updateView"},(function(e,t,a){e=Object(i.extend)({},e),a.dispatchAction(Object(i.extend)(e,{type:"downplay"}))}))}(e)}},1740:function(e,t,a){"use strict";a.d(t,"a",(function(){return z}));var n=a(3),i=a(0),r=a(56),o=a(11),s=a(15),l=a(45),u=a(217),c=["color","borderColor"],d=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(n.b)(t,e),t.prototype.render=function(e,t,a){this.group.removeClipPath(),this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,a){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,a,n){this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),a=this._data,n=this.group,i=t.getLayout("isSimpleBox"),r=e.get("clip",!0),s=e.coordinateSystem,l=s.getArea&&s.getArea();
1this._data||n.removeAll(),t.diff(a).add((function(a){if(t.hasValue(a)){var s=t.getItemLayout(a);if(r&&f(l,s))return;var u=g(s,a,!0);o.initProps(u,{shape:{points:s.ends}},e,a),y(u,t,a,i),n.add(u),t.setItemGraphicEl(a,u)}})).update((function(s,u){var c=a.getItemGraphicEl(u);if(t.hasValue(s)){var d=t.getItemLayout(s);r&&f(l,d)?n.remove(c):(c?o.updateProps(c,{shape:{points:d.ends}},e,s):c=g(d,s),y(c,t,s,i),n.add(c),t.setItemGraphicEl(s,c))}else n.remove(c)})).remove((function(e){var t=a.getItemGraphicEl(e);t&&n.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),x(e,this.group);var t=e.get("clip",!0)?Object(u.a)(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){for(var a,n=t.getData(),i=n.getLayout("isSimpleBox");null!=(a=e.next());){var r=g(n.getItemLayout(a),a);y(r,n,a,i),r.incremental=!0,this.group.add(r)}},t.prototype._incrementalRenderLarge=function(e,t){x(t,this.group,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(r.a),h=function(){},p=function(e){function t(t){var a=e.call(this,t)||this;return a.type="normalCandlestickBox",a}return Object(n.b)(t,e),t.prototype.getDefaultShape=function(){return new h},t.prototype.buildPath=function(e,t){var a=t.points;this.__simpleBox?(e.moveTo(a[4][0],a[4][1]),e.lineTo(a[6][0],a[6][1])):(e.moveTo(a[0][0],a[0][1]),e.lineTo(a[1][0],a[1][1]),e.lineTo(a[2][0],a[2][1]),e.lineTo(a[3][0],a[3][1]),e.closePath(),e.moveTo(a[4][0],a[4][1]),e.lineTo(a[5][0],a[5][1]),e.moveTo(a[6][0],a[6][1]),e.lineTo(a[7][0],a[7][1]))},t}(l.b);function g(e,t,a){var n=e.ends;return new p({shape:{points:a?m(n,e):n},z2:100})}function f(e,t){for(var a=!0,n=0;n<t.ends.length;n++)if(e.contain(t.ends[n][0],t.ends[n][1])){a=!1;break}return a}function y(e,t,a,n){var i=t.getItemModel(a);e.useStyle(t.getItemVisual(a,"style")),e.style.strokeNoScale=!0,e.__simpleBox=n,Object(s.I)(e,i)}function m(e,t){return i.map(e,(function(e){return(e=e.slice())[1]=t.initBaseline,e}))}var v=function(){},b=function(e){function t(t){var a=e.call(this,t)||this;return a.type="largeCandlestickBox",a}return Object(n.b)(t,e),t.prototype.getDefaultShape=function(){return new v},t.prototype.buildPath=function(e,t){for(var a=t.points,n=0;n<a.length;)if(this.__sign===a[n++]){var i=a[n++];e.moveTo(i,a[n++]),e.lineTo(i,a[n++])}else n+=3},t}(l.b);function x(e,t,a){var n=e.getData(),i=n.getLayout("largePoints"),r=new b({shape:{points:i},__sign:1});t.add(r);var o=new b({shape:{points:i},__sign:-1});t.add(o),_(1,r,e,n),_(-1,o,e,n),a&&(r.incremental=!0,o.incremental=!0)}function _(e,t,a,n){var i=a.get(["itemStyle",e>0?"borderColor":"borderColor0"])||a.get(["itemStyle",e>0?"color":"color0"]),r=a.getModel("itemStyle").getItemStyle(c);t.useStyle(r),t.style.fill=null,t.style.stroke=i}var S=d,O=a(58),w=a(572),I=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],a}return Object(n.b)(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,a){var n=t.getItemLayout(e);return n&&a.rect(n.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(O.a);Object(i.mixin)(I,w.a,!0);var M=I;function L(e){e&&i.isArray(e.series)&&i.each(e.series,(function(e){i.isObject(e)&&"k"===e.type&&(e.type="candlestick")}))}var D=a(196),j=["itemStyle","borderColor"],A=["itemStyle","borderColor0"],C=["itemStyle","color"],N=["itemStyle","color0"],P={seriesType:"candlestick",plan:Object(D.a)(),performRawSeries:!0,reset:function(e,t){function a(e,t){return t.get(e>0?C:N)}function n(e,t){return t.get(e>0?j:A)}e.getData();if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var r;null!=(r=e.next());){var o=t.getItemModel(r),s=t.getItemLayout(r).sign,l=o.getItemStyle();l.fill=a(s,o),l.stroke=n(s,o)||l.fill;var u=t.ensureUniqueItemVisual(r,"style");Object(i.extend)(u,l)}}}}},T=a(6),E="undefined"!=typeof Float32Array?Float32Array:Array;function R(e,t,a,n,i){return a>n?-1:a<n?1:t>0?e.get(i,t-1)<=n?1:-1:1}var V={seriesType:"candlestick",plan:Object(D.a)(),reset:function(e){var t=e.coordinateSystem,a=e.getData(),n=function(e,t){var a,n=e.getBaseAxis(),r="category"===n.type?n.getBandWidth():(a=n.getExtent(),Math.abs(a[1]-a[0])/t.count()),o=Object(T.o)(Object(i.retrieve2)(e.get("barMaxWidth"),r),r),s=Object(T.o)(Object(i.retrieve2)(e.get("barMinWidth"),
11),r),l=e.get("barWidth");return null!=l?Object(T.o)(l,r):Math.max(Math.min(r/2,o),s)}(e,a),r=["x","y"],s=a.mapDimension(r[0]),l=a.mapDimensionsAll(r[1]),u=l[0],c=l[1],d=l[2],h=l[3];if(a.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),!(null==s||l.length<4))return{progress:e.pipelineContext.large?function(e,a){var n,i,r=new E(4*e.count),o=0,l=[],p=[];for(;null!=(i=e.next());){var g=a.get(s,i),f=a.get(u,i),y=a.get(c,i),m=a.get(d,i),v=a.get(h,i);isNaN(g)||isNaN(m)||isNaN(v)?(r[o++]=NaN,o+=3):(r[o++]=R(a,i,f,y,c),l[0]=g,l[1]=m,n=t.dataToPoint(l,null,p),r[o++]=n?n[0]:NaN,r[o++]=n?n[1]:NaN,l[1]=v,n=t.dataToPoint(l,null,p),r[o++]=n?n[1]:NaN)}a.setLayout("largePoints",r)}:function(e,a){var i;for(;null!=(i=e.next());){var r=a.get(s,i),l=a.get(u,i),p=a.get(c,i),g=a.get(d,i),f=a.get(h,i),y=Math.min(l,p),m=Math.max(l,p),v=O(y,r),b=O(m,r),x=O(g,r),_=O(f,r),S=[];w(S,b,0),w(S,v,1),S.push(M(_),M(b),M(x),M(v)),a.setItemLayout(i,{sign:R(a,i,l,p,c),initBaseline:l>p?b[1]:v[1],ends:S,brushRect:I(g,f,r)})}function O(e,a){var n=[];return n[0]=a,n[1]=e,isNaN(a)||isNaN(e)?[NaN,NaN]:t.dataToPoint(n)}function w(e,t,a){var i=t.slice(),r=t.slice();i[0]=Object(o.subPixelOptimize)(i[0]+n/2,1,!1),r[0]=Object(o.subPixelOptimize)(r[0]-n/2,1,!0),a?e.push(i,r):e.push(r,i)}function I(e,t,a){var i=O(e,a),r=O(t,a);return i[0]-=n/2,r[0]-=n/2,{x:i[0],y:i[1],width:n,height:r[1]-i[1]}}function M(e){return e[0]=Object(o.subPixelOptimize)(e[0],1),e}}}}};function z(e){e.registerChartView(S),e.registerSeriesModel(M),e.registerPreprocessor(L),e.registerVisual(P),e.registerLayout(V)}},1741:function(e,t,a){"use strict";a.d(t,"a",(function(){return G}));var n=a(3),i=a(124),r=a(58),o=a(71),s=a(82),l=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a.hasSymbolVisual=!0,a}return Object(n.b)(t,e),t.prototype.getInitialData=function(e){return Object(i.a)(this.getSource(),this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new s.a,a=Object(o.a)("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(a),a.setStyle(e.lineStyle);var n=this.getData().getVisual("symbol"),i="none"===n?"circle":n,r=.8*e.itemHeight,l=Object(o.a)(i,(e.itemWidth-r)/2,(e.itemHeight-r)/2,r,r,e.itemStyle.fill,e.symbolKeepAspect);return t.add(l),l.setStyle(e.itemStyle),i.indexOf("empty")>-1&&(l.style.stroke=l.style.fill,l.style.fill="#fff",l.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={zlevel:0,z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0,lineStyle:{width:"bolder"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0},t}(r.a),u=a(0),c=a(234),d=a(265),h=a(115);function p(e,t,a){var n=e.getBaseAxis(),i=e.getOtherAxis(n),r=function(e,t){var a=0,n=e.scale.getExtent();"start"===t?a=n[0]:"end"===t?a=n[1]:n[0]>0?a=n[0]:n[1]<0&&(a=n[1]);return a}(i,a),o=n.dim,s=i.dim,l=t.mapDimension(s),c=t.mapDimension(o),d="x"===s||"radius"===s?1:0,p=Object(u.map)(e.dimensions,(function(e){return t.mapDimension(e)})),g=!1,f=t.getCalculationInfo("stackResultDimension");return Object(h.c)(t,p[0])&&(g=!0,p[0]=f),Object(h.c)(t,p[1])&&(g=!0,p[1]=f),{dataDimsForPoint:p,valueStart:r,valueAxisDim:s,baseAxisDim:o,stacked:!!g,valueDim:l,baseDim:c,baseDataOffset:d,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function g(e,t,a,n){var i=NaN;e.stacked&&(i=a.get(a.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var r=e.baseDataOffset,o=[];return o[r]=a.get(e.baseDim,n),o[1-r]=i,t.dataToPoint(o)}var f=a(269);var y=a(389),m=a(112),v=a(11),b=a(10),x=a(476),_=a(56),S=a(217),O=a(176),w=a(15),I=a(21),M=a(187),L=a(23),D=a(48);function j(e,t){if(e.length===t.length){for(var a=0;a<e.length;a++)if(e[a]!==t[a])return;return!0}}function A(e){for(var t=1/0,a=1/0,n=-1/0,i=-1/0,r=0;r<e.length;){var o=e[r++],s=e[r++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(a=Math.min(s,a),i=Math.max(s,i))}return[[t,a],[n,i]]}function C(e,t){var a=A(e),n=a[0],i=a[1],r=A(t),o=r[0],s=r[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function N(e){return"number"==typeof e?e:e?.5:0}function P(e,t,a){for(var n=t.getBaseAxis(),i="x"===n.dim||"radius"===n.dim?0:1,r=[],o=0,s=[],l=[],u=[];o<e.length-2;o+=2)switch(u[0]=e[o+2],u[1]=e[o+3],l[0]=e[o],l[1]=e[o+1],r.push(l[0],l[1]),a){case"end":s[i]=u[i],s[1-i]=l[1-i],r.push(s[0],s[1]);break;case"middle":var c=(l[i]+u[i])/2,d=[];s[i]=d[i]=c,s[1-i]=l[1-i],d[1-i]=u[1-i],r.push(s[0],s[1]),r.push(d[0],d[1]);break;default:s[i]=l[i],s[1-i]=u[1-i],r.push(s[0],s[1])}
1return r.push(e[o++],e[o++]),r}function T(e,t,a){var n=e.get("showAllSymbol"),i="auto"===n;if(!n||i){var r=a.getAxesByScale("ordinal")[0];if(r&&(!i||!function(e,t){var a=e.getExtent(),n=Math.abs(a[1]-a[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),r=Math.max(1,Math.round(i/5)),o=0;o<i;o+=r)if(1.5*d.a.getSymbolSize(t,o)[e.isHorizontal()?1:0]>n)return!1;return!0}(r,t))){var o=t.mapDimension(r.dim),s={};return u.each(r.getViewLabels(),(function(e){var t=r.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function E(e,t){return[e[2*t],e[2*t+1]]}function R(e,t,a,n){if(Object(O.a)(t,"cartesian2d")){var i=n.getModel("endLabel"),r=i.get("show"),o=i.get("valueAnimation"),s=n.getData(),l={lastFrameIndex:0},u=r?function(a,n){e._endLabelOnDuring(a,n,s,l,o,i,t)}:null,c=t.getBaseAxis().isHorizontal(),d=Object(S.b)(t,a,n,(function(){var t=e._endLabel;t&&a&&null!=l.originalX&&t.attr({x:l.originalX,y:l.originalY})}),u);if(!n.get("clip",!0)){var h=d.shape,p=Math.max(h.width,h.height);c?(h.y-=p,h.height+=2*p):(h.x-=p,h.width+=2*p)}return u&&u(1,d),d}return Object(S.c)(t,a,n)}var V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(n.b)(t,e),t.prototype.init=function(){var e=new s.a,t=new c.a;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,a){var n=this,i=e.coordinateSystem,r=this.group,o=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),c=o.getLayout("points")||[],d="polar"===i.type,h=this._coordSys,m=this._symbolDraw,v=this._polyline,b=this._polygon,x=this._lineGroup,_=e.get("animation"),S=!l.isEmpty(),O=l.get("origin"),I=p(i,o,O),M=S&&function(e,t,a){if(!a.valueDim)return[];for(var n=t.count(),i=Object(f.a)(2*n),r=0;r<n;r++){var o=g(a,e,t,r);i[2*r]=o[0],i[2*r+1]=o[1]}return i}(i,o,I),A=e.get("showSymbol"),C=A&&!d&&T(e,o,i),E=this._data;E&&E.eachItemGraphicEl((function(e,t){e.__temp&&(r.remove(e),E.setItemGraphicEl(t,null))})),A||m.remove(),r.add(x);var V,z=!d&&e.get("step");i&&i.getArea&&e.get("clip",!0)&&(null!=(V=i.getArea()).width?(V.x-=.1,V.y-=.1,V.width+=.2,V.height+=.2):V.r0&&(V.r0-=.5,V.r+=.5)),this._clipShapeForSymbol=V;var k=function(e,t){var a=e.getVisual("visualMeta");if(a&&a.length&&e.count()&&"cartesian2d"===t.type){for(var n,i,r=a.length-1;r>=0;r--){var o=a[r].dimension,s=e.dimensions[o],l=e.getDimensionInfo(s);if("x"===(n=l&&l.coordDim)||"y"===n){i=a[r];break}}if(i){var c=t.getAxis(n),d=u.map(i.stops,(function(e){return{offset:0,coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}})),h=d.length,p=i.outerColors.slice();h&&d[0].coord>d[h-1].coord&&(d.reverse(),p.reverse());var g=d[0].coord-10,f=d[h-1].coord+10,m=f-g;if(m<.001)return"transparent";u.each(d,(function(e){e.offset=(e.coord-g)/m})),d.push({offset:h?d[h-1].offset:.5,color:p[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:p[0]||"transparent"});var v=new y.a(0,0,0,0,d,!0);return v[n]=g,v[n+"2"]=f,v}}}(o,i)||o.getVisual("style")[o.getVisual("drawType")];v&&h.type===i.type&&z===this._step?(S&&!b?b=this._newPolygon(c,M):b&&!S&&(x.remove(b),b=this._polygon=null),d||this._initOrUpdateEndLabel(e,i,Object(D.c)(k)),x.setClipPath(R(this,i,!1,e)),A&&m.updateData(o,{isIgnore:C,clipShape:V,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),j(this._stackedOnPoints,M)&&j(this._points,c)||(_?this._doUpdateAnimation(o,M,i,a,z,O):(z&&(c=P(c,i,z),M&&(M=P(M,i,z))),v.setShape({points:c}),b&&b.setShape({points:c,stackedOnPoints:M})))):(A&&m.updateData(o,{isIgnore:C,clipShape:V,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),_&&this._initSymbolLabelAnimation(o,i,V),z&&(c=P(c,i,z),M&&(M=P(M,i,z))),v=this._newPolyline(c),S&&(b=this._newPolygon(c,M)),d||this._initOrUpdateEndLabel(e,i,Object(D.c)(k)),x.setClipPath(R(this,i,!0,e)));var G=e.get(["emphasis","focus"]),B=e.get(["emphasis","blurScope"]);(v.useStyle(u.defaults(s.getLineStyle(),{fill:"none",stroke:k,lineJoin:"bevel"})),Object(w.I)(v,e,"lineStyle"),v.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"]))&&(v.getState("emphasis").style.lineWidth=+v.style.lineWidth+1);Object(L.a)(v).seriesIndex=e.seriesIndex,Object(w.o)(v,G,B);
1var F=N(e.get("smooth")),Y=e.get("smoothMonotone"),X=e.get("connectNulls");if(v.setShape({smooth:F,smoothMonotone:Y,connectNulls:X}),b){var W=o.getCalculationInfo("stackedOnSeries"),H=0;b.useStyle(u.defaults(l.getAreaStyle(),{fill:k,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),W&&(H=N(W.get("smooth"))),b.setShape({smooth:F,stackedOnSmooth:H,smoothMonotone:Y,connectNulls:X}),Object(w.I)(b,e,"areaStyle"),Object(L.a)(b).seriesIndex=e.seriesIndex,Object(w.o)(b,G,B)}var U=function(e){n._changePolyState(e)};o.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=U)})),this._polyline.onHoverStateChange=U,this._data=o,this._coordSys=i,this._stackedOnPoints=M,this._points=c,this._step=z,this._valueOrigin=O},t.prototype.dispose=function(){},t.prototype.highlight=function(e,t,a,n){var i=e.getData(),r=b.u(i,n);if(this._changePolyState("emphasis"),!(r instanceof Array)&&null!=r&&r>=0){var o=i.getLayout("points"),s=i.getItemGraphicEl(r);if(!s){var l=o[2*r],u=o[2*r+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;(s=new d.a(i,r)).x=l,s.y=u,s.setZ(e.get("zlevel"),e.get("z"));var c=s.getSymbolPath().getTextContent();c&&(c.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(r,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else _.a.prototype.highlight.call(this,e,t,a,n)},t.prototype.downplay=function(e,t,a,n){var i=e.getData(),r=b.u(i,n);if(this._changePolyState("normal"),null!=r&&r>=0){var o=i.getItemGraphicEl(r);o&&(o.__temp?(i.setItemGraphicEl(r,null),this.group.remove(o)):o.downplay())}else _.a.prototype.downplay.call(this,e,t,a,n)},t.prototype._changePolyState=function(e){var t=this._polygon;Object(w.H)(this._polyline,e),t&&Object(w.H)(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new x.b({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new x.a({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,t,a){var n,i,r=t.getBaseAxis(),o=r.inverse;"cartesian2d"===t.type?(n=r.isHorizontal(),i=!1):"polar"===t.type&&(n="angle"===r.dim,i=!0);var s=e.hostModel,l=s.get("animationDuration");"function"==typeof l&&(l=l(null));var u=s.get("animationDelay")||0,c="function"==typeof u?u(null):u;e.eachItemGraphicEl((function(e,r){var s=e;if(s){var d=[e.x,e.y],h=void 0,p=void 0,g=void 0;if(i){var f=a,y=t.pointToCoord(d);n?(h=f.startAngle,p=f.endAngle,g=-y[1]/180*Math.PI):(h=f.r0,p=f.r,g=y[0])}else{var m=a;n?(h=m.x,p=m.x+m.width,g=e.x):(h=m.y+m.height,p=m.y,g=e.y)}var v=p===h?0:(g-h)/(p-h);o&&(v=1-v);var b="function"==typeof u?u(r):l*v+c,x=s.getSymbolPath(),_=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,delay:b}),_&&_.animateFrom({style:{opacity:0}},{duration:300,delay:b}),x.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,a){var n=e.getModel("endLabel");if(n.get("show")){var i=e.getData(),r=this._polyline,o=this._endLabel;o||((o=this._endLabel=new m.a({z2:200})).ignoreClip=!0,r.setTextContent(this._endLabel),r.disableLabelAnimation=!0);var s=function(e){for(var t,a,n=e.length/2;n>0&&(t=e[2*n-2],a=e[2*n-1],isNaN(t)||isNaN(a));n--);return n-1}(i.getLayout("points"));s>=0&&(Object(I.h)(r,Object(I.f)(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:s,defaultText:function(e,t,a){return null!=a?Object(M.a)(i,a):Object(M.b)(i,e)},enableTextSetter:!0},function(e,t){var a=t.getBaseAxis(),n=a.isHorizontal(),i=a.inverse,r=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||r,verticalAlign:e.get("verticalAlign")||o}}}(n,t)),r.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,a,n,i,r,o){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==n.originalX&&(n.originalX=s.x,n.originalY=s.y);var u=a.getLayout("points"),c=a.hostModel,d=c.get("connectNulls"),h=r.get("precision"),p=r.get("distance")||0,g=o.getBaseAxis(),f=g.isHorizontal(),y=g.inverse,m=t.shape,v=y?f?m.x:m.y+m.height:f?m.x+m.width:m.y,x=(f?p:0)*(y?-1:1),_=(f?0:-p)*(y?-1:1),S=f?"x":"y",O=function(e,t,a){for(var n,i,r=e.length/2,o="x"===a?0:1,s=0,l=-1,u=0;u<r;u++)if(i=e[2*u+o],!isNaN(i)&&!isNaN(e[2*u+1-o]))if(0!==u){if(n<=t&&i>=t||n>=t&&i<=t){l=u;break}s=u,n=i}else n=i;return{range:[s,l],t:(t-n)/(i-n)}}(u,v,S),w=O.range,M=w[1]-w[0],L=void 0;if(M>=1){if(M>1&&!d){var D=E(u,w[0]);s.attr({x:D[0]+x,y:D[1]+_}),i&&(L=c.getRawValue(w[0]))}else{(D=l.getPointOn(v,S))&&s.attr({x:D[0]+x,y:D[1]+_});var j=c.getRawValue(w[0]),A=c.getRawValue(w[1]);i&&(L=b.k(a,h,j,A,O.t))}n.lastFrameIndex=w[0]}else{var C=1===e||n.lastFrameIndex>
10?w[0]:0;D=E(u,C);i&&(L=c.getRawValue(C)),s.attr({x:D[0]+x,y:D[1]+_})}i&&Object(I.g)(s).setLabelText(L)}},t.prototype._doUpdateAnimation=function(e,t,a,n,i,r){var o=this._polyline,s=this._polygon,l=e.hostModel,u=function(e,t,a,n,i,r,o,s){for(var l=function(e,t){var a=[];return t.diff(e).add((function(e){a.push({cmd:"+",idx:e})})).update((function(e,t){a.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){a.push({cmd:"-",idx:e})})).execute(),a}(e,t),u=[],c=[],d=[],h=[],y=[],m=[],v=[],b=p(i,t,o),x=(p(r,e,s),e.getLayout("points")||[]),_=t.getLayout("points")||[],S=0;S<l.length;S++){var O=l[S],w=!0,I=void 0,M=void 0;switch(O.cmd){case"=":I=2*O.idx,M=2*O.idx1;var L=x[I],D=x[I+1],j=_[M],A=_[M+1];(isNaN(L)||isNaN(D))&&(L=j,D=A),u.push(L,D),c.push(j,A),d.push(a[I],a[I+1]),h.push(n[M],n[M+1]),v.push(t.getRawIndex(O.idx1));break;case"+":var C=O.idx,N=b.dataDimsForPoint,P=i.dataToPoint([t.get(N[0],C),t.get(N[1],C)]);M=2*C,u.push(P[0],P[1]),c.push(_[M],_[M+1]);var T=g(b,i,t,C);d.push(T[0],T[1]),h.push(n[M],n[M+1]),v.push(t.getRawIndex(C));break;case"-":w=!1}w&&(y.push(O),m.push(m.length))}m.sort((function(e,t){return v[e]-v[t]}));var E=u.length,R=Object(f.a)(E),V=Object(f.a)(E),z=Object(f.a)(E),k=Object(f.a)(E),G=[];for(S=0;S<m.length;S++){var B=m[S],F=2*S,Y=2*B;R[F]=u[Y],R[F+1]=u[Y+1],V[F]=c[Y],V[F+1]=c[Y+1],z[F]=d[Y],z[F+1]=d[Y+1],k[F]=h[Y],k[F+1]=h[Y+1],G[S]=y[B]}return{current:R,next:V,stackedOnCurrent:z,stackedOnNext:k,status:G}}(this._data,e,this._stackedOnPoints,t,this._coordSys,a,this._valueOrigin,r),c=u.current,d=u.stackedOnCurrent,h=u.next,y=u.stackedOnNext;if(i&&(c=P(u.current,a,i),d=P(u.stackedOnCurrent,a,i),h=P(u.next,a,i),y=P(u.stackedOnNext,a,i)),C(c,h)>3e3||s&&C(d,y)>3e3)return o.setShape({points:h}),void(s&&s.setShape({points:h,stackedOnPoints:y}));o.shape.__points=u.current,o.shape.points=c;var m={shape:{points:h}};u.current!==c&&(m.shape.__points=u.next),o.stopAnimation(),v.updateProps(o,m,l),s&&(s.setShape({points:c,stackedOnPoints:d}),s.stopAnimation(),v.updateProps(s,{shape:{stackedOnPoints:y}},l),o.shape.points!==s.shape.points&&(s.shape.points=o.shape.points));for(var b=[],x=u.status,_=0;_<x.length;_++){if("="===x[_].cmd){var S=e.getItemGraphicEl(x[_].idx1);S&&b.push({el:S,ptIdx:_})}}o.animators&&o.animators.length&&o.animators[0].during((function(){s&&s.dirtyShape();for(var e=o.shape.__points,t=0;t<b.length;t++){var a=b[t].el,n=2*b[t].ptIdx;a.x=e[n],a.y=e[n+1],a.markRedraw()}}))},t.prototype.remove=function(e){var t=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl((function(e,n){e.__temp&&(t.remove(e),a.setItemGraphicEl(n,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(_.a),z=a(235),k=a(566);function G(e){e.registerChartView(V),e.registerSeriesModel(l),e.registerLayout(Object(z.a)("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",a)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Object(k.a)("line"))}},1742:function(e,t,a){"use strict";a.d(t,"a",(function(){return O}));var n=a(43),i=a(3),r=a(395),o=a(568),s=a(56),l=a(21),u=a(15),c=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(i.b)(t,e),t.prototype.render=function(e,t,a,n){if(!n||"mapToggleSelect"!==n.type||n.from!==this.uid){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&n&&"geoRoam"===n.type&&this._mapDraw.resetForLabelLayout(),n&&"geoRoam"===n.type&&"series"===n.componentType&&n.seriesId===e.id)(r=this._mapDraw)&&i.add(r.group);else if(e.needsDrawMap){var r=this._mapDraw||new o.a(a);i.add(r.group),r.draw(e,t,a,this,n),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,a)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,a){var n=e.originalData,i=this.group;n.each(n.mapDimension("value"),(function(t,a){if(!isNaN(t)){var o=n.getItemLayout(a);if(o&&o.point){var s=o.point,c=o.offset,d=new r.a({style:{fill:e.getData().getVisual("style").fill},shape:{cx:s[0]+9*c,cy:s[1],r:3},silent:!0,z2:8+(c?0:u.j+1)});if(!c){var h=e.mainSeries.getData(),p=n.getName(a),g=h.indexOfName(p),f=n.getItemModel(a),y=f.getModel("label"),m=h.getItemGraphicEl(g);
1Object(l.h)(d,Object(l.f)(f),{labelFetcher:{getFormattedLabel:function(t,a){return e.getFormattedLabel(g,a)}}}),d.disableLabelAnimation=!0,y.get("position")||d.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(e){Object(u.H)(d,e)}}i.add(d)}}}))},t.type="map",t}(s.a),d=a(0),h=a(198),p=a(58),g=a(166),f=a(139),y=a(70),m=a(71),v=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a.needsDrawMap=!1,a.seriesGroup=[],a.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),a=this.coordinateSystem,n=a.getRegion(t);return n&&a.dataToPoint(n.getCenter())}},a}return Object(i.b)(t,e),t.prototype.getInitialData=function(e){for(var t=Object(h.a)(this,{coordDimensions:["value"],encodeDefaulter:d.curry(f.d,this)}),a=d.createHashMap(),n=[],i=0,r=t.count();i<r;i++){var o=t.getName(i);a.set(o,!0)}var s=g.a.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return d.each(s.regions,(function(e){var t=e.name;a.get(t)||n.push(t)})),t.appendValues([],n),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,a){for(var n=this.getData(),i=this.getRawValue(e),r=n.getName(e),o=this.seriesGroup,s=[],l=0;l<o.length;l++){var u=o[l].originalData.indexOfName(r),c=n.mapDimension("value");isNaN(o[l].originalData.get(c,u))||s.push(o[l].name)}return Object(y.c)("section",{header:s.join(", "),noHeader:!s.length,blocks:[Object(y.c)("nameValue",{name:r,value:i})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.symbolType||"roundRect",a=Object(m.a)(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return a.setStyle(e.itemStyle),a.style.stroke="none",t.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(p.a);function b(e){var t={};e.eachSeriesByType("map",(function(e){var a=e.getHostGeoModel(),n=a?"o"+a.id:"i"+e.getMapType();(t[n]=t[n]||[]).push(e)})),d.each(t,(function(e,t){for(var a,n,i,r=(a=d.map(e,(function(e){return e.getData()})),n=e[0].get("mapValueCalculation"),i={},d.each(a,(function(e){e.each(e.mapDimension("value"),(function(t,a){var n="ec-"+e.getName(a);i[n]=i[n]||[],isNaN(t)||i[n].push(t)}))})),a[0].map(a[0].mapDimension("value"),(function(e,t){for(var r,o="ec-"+a[0].getName(t),s=0,l=1/0,u=-1/0,c=i[o].length,d=0;d<c;d++)l=Math.min(l,i[o][d]),u=Math.max(u,i[o][d]),s+=i[o][d];return r="min"===n?l:"max"===n?u:"average"===n?s/c:s,0===c?NaN:r}))),o=0;o<e.length;o++)e[o].originalData=e[o].getData();for(o=0;o<e.length;o++)e[o].seriesGroup=e,e[o].needsDrawMap=0===o&&!e[o].getHostGeoModel(),e[o].setData(r.cloneShallow()),e[o].mainSeries=e[0]}))}function x(e){var t={};e.eachSeriesByType("map",(function(a){var n=a.getMapType();if(!a.getHostGeoModel()&&!t[n]){var i={};d.each(a.seriesGroup,(function(t){var a=t.coordinateSystem,n=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&n.each(n.mapDimension("value"),(function(e,t){var r=n.getName(t),o=a.getRegion(r);if(o&&!isNaN(e)){var s=i[r]||0,l=a.dataToPoint(o.getCenter());i[r]=s+1,n.setItemLayout(t,{point:l,offset:s})}}))}));var r=a.getData();r.each((function(e){var t=r.getName(e),a=r.getItemLayout(e)||{};a.showLabel=!i[t],r.setItemLayout(e,a)})),t[n]=!0}}))}var _=a(396),S=a(739);function O(e){Object(n.a)(S.a),e.registerChartView(c),e.registerSeriesModel(v),e.registerLayout(x),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,b),Object(_.a)("map",e.registerAction)}},1743:function(e,t,a){"use strict";a.d(t,"a",(function(){return V}));var n=a(3),i=a(45),r=a(389),o=a(108),s=a(11),l=a(15),u=a(56),c=a(21),d=a(23),h=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0},p=function(e){function t(t){return e.call(this,t)||this}return Object(n.b)(t,e),t.prototype.getDefaultShape=function(){return new h},t.prototype.buildPath=function(e,t){var a=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+a,t.y2),e.bezierCurveTo(t.cpx2+a,t.cpy2,t.cpx1+a,t.cpy1,t.x1+a,t.y1)):(e.lineTo(t.x2,t.y2+a),e.bezierCurveTo(t.cpx2,t.cpy2+a,t.cpx1,t.cpy1+a,t.x1,t.y1+a)),e.closePath()},t.prototype.highlight=function(){Object(l.r)(this)},t.prototype.downplay=function(){Object(l.C)(this)},t}(i.b);var g=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a._focusAdjacencyDisabled=!1,a}
1return Object(n.b)(t,e),t.prototype.render=function(e,t,a){var n=this,i=e.getGraph(),u=this.group,h=e.layoutInfo,g=h.width,f=h.height,y=e.getData(),m=e.getData("edge"),v=e.get("orient");this._model=e,u.removeAll(),u.x=h.x,u.y=h.y,i.eachEdge((function(t){var a=new p,n=Object(d.a)(a);n.dataIndex=t.dataIndex,n.seriesIndex=e.seriesIndex,n.dataType="edge";var i,o,s,c,h,y,b,x,_=t.getModel(),S=_.getModel("lineStyle"),O=S.get("curveness"),w=t.node1.getLayout(),I=t.node1.getModel(),M=I.get("localX"),L=I.get("localY"),D=t.node2.getLayout(),j=t.node2.getModel(),A=j.get("localX"),C=j.get("localY"),N=t.getLayout();switch(a.shape.extent=Math.max(1,N.dy),a.shape.orient=v,"vertical"===v?(i=(null!=M?M*g:w.x)+N.sy,o=(null!=L?L*f:w.y)+w.dy,s=(null!=A?A*g:D.x)+N.ty,h=i,y=o*(1-O)+(c=null!=C?C*f:D.y)*O,b=s,x=o*O+c*(1-O)):(i=(null!=M?M*g:w.x)+w.dx,o=(null!=L?L*f:w.y)+N.sy,h=i*(1-O)+(s=null!=A?A*g:D.x)*O,y=o,b=i*O+s*(1-O),x=c=(null!=C?C*f:D.y)+N.ty),a.setShape({x1:i,y1:o,x2:s,y2:c,cpx1:h,cpy1:y,cpx2:b,cpy2:x}),a.useStyle(S.getItemStyle()),a.style.fill){case"source":a.style.fill=t.node1.getVisual("color"),a.style.decal=t.node1.getVisual("style").decal;break;case"target":a.style.fill=t.node2.getVisual("color"),a.style.decal=t.node2.getVisual("style").decal;break;case"gradient":var P=t.node1.getVisual("color"),T=t.node2.getVisual("color");"string"==typeof P&&"string"==typeof T&&(a.style.fill=new r.a(0,0,1,0,[{color:P,offset:0},{color:T,offset:1}]))}var E=_.getModel("emphasis");Object(l.I)(a,_,"lineStyle",(function(e){return e.getItemStyle()})),u.add(a),m.setItemGraphicEl(t.dataIndex,a);var R=E.get("focus");Object(l.o)(a,"adjacency"===R?t.getAdjacentDataIndices():R,E.get("blurScope")),Object(d.a)(a).dataType="edge"})),i.eachNode((function(t){var a=t.getLayout(),n=t.getModel(),i=n.get("localX"),r=n.get("localY"),s=n.getModel("emphasis"),h=new o.a({shape:{x:null!=i?i*g:a.x,y:null!=r?r*f:a.y,width:a.dx,height:a.dy},style:n.getModel("itemStyle").getItemStyle(),z2:10});Object(c.h)(h,Object(c.f)(n),{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id}),h.disableLabelAnimation=!0,h.setStyle("fill",t.getVisual("color")),h.setStyle("decal",t.getVisual("style").decal),Object(l.I)(h,n),u.add(h),y.setItemGraphicEl(t.dataIndex,h),Object(d.a)(h).dataType="node";var p=s.get("focus");Object(l.o)(h,"adjacency"===p?t.getAdjacentDataIndices():p,s.get("blurScope"))})),y.eachItemGraphicEl((function(t,i){y.getItemModel(i).get("draggable")&&(t.drift=function(t,r){n._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=r,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:y.getRawIndex(i),localX:this.shape.x/g,localY:this.shape.y/f})},t.ondragend=function(){n._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&u.setClipPath(function(e,t,a){var n=new o.a({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return s.initProps(n,{shape:{width:e.width+20}},t,a),n}(u.getBoundingRect(),e,(function(){u.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(u.a),f=a(58),y=a(571),m=a(57),v=a(70),b=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(n.b)(t,e),t.prototype.getInitialData=function(e,t){var a=e.edges||e.links,n=e.data||e.nodes,i=e.levels;this.levelModels=[];for(var r=this.levelModels,o=0;o<i.length;o++)null!=i[o].depth&&i[o].depth>=0&&(r[i[o].depth]=new m.a(i[o],this,t));if(n&&a)return Object(y.a)(n,a,this,!0,(function(e,t){e.wrapMethod("getItemModel",(function(e,t){var a=e.parentModel,n=a.getData().getItemLayout(t);if(n){var i=n.depth,r=a.levelModels[i];r&&(e.parentModel=r)}return e})),t.wrapMethod("getItemModel",(function(e,t){var a=e.parentModel,n=a.getGraph().getEdgeByIndex(t).node1.getLayout();if(n){var i=n.depth,r=a.levelModels[i];r&&(e.parentModel=r)}return e}))})).data},t.prototype.setNodePosition=function(e,t){var a=this.option.data[e];a.localX=t[0],a.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,a){function n(e){return isNaN(e)||null==e}if("edge"===a){var i=this.getDataParams(e,a),r=i.data,o=i.value,s=r.source+" -- "+r.target;return Object(v.c)("nameValue",{name:s,value:o,noValue:n(o)})}var l=this.getGraph().getNodeByIndex(e).getLayout().value,u=this.getDataParams(e,a).data.name;return Object(v.c)("nameValue",{name:null!=u?u+"":null,value:l,noValue:n(l)})},t.prototype.optionUpdated=function(){this.option},t.prototype.getDataParams=function(t,a){var n=e.prototype.getDataParams.call(this,t,a);if(null==n.value&&"node"===a){var i=this.getGraph().getNodeByIndex(t).getLayout().value;n.value=i}return n},t.type="series.sankey",t.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(f.a),x=a(27),_=a(0),S=a(10);function O(e,t){e.eachSeriesByType("sankey",(function(e){var a=e.get("nodeWidth"),n=e.get("nodeGap"),i=function(e,t){return x.g(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=i;var r=i.width,o=i.height,s=e.getGraph(),l=s.nodes,u=s.edges;!function(e){_.each(e,(function(e){var t=P(e.outEdges,N),a=P(e.inEdges,N),n=e.getValue()||0,i=Math.max(t,a,n);e.setLayout({value:i},!0)}))}(l),function(e,t,a,n,i,r,o,s,l){(function(e,t,a,n,i,r,o){for(var s=[],l=[],u=[],c=[],d=0,h=0;h<t.length;h++)s[h]=1;for(h=0;h<e.length;h++)l[h]=e[h].inEdges.length,0===l[h]&&u.push(e[h]);var p=-1;for(;u.length;){for(var g=0;g<u.length;g++){var f=u[g],y=f.hostGraph.data.getRawDataItem(f.dataIndex),m=null!=y.depth&&y.depth>
1=0;m&&y.depth>p&&(p=y.depth),f.setLayout({depth:m?y.depth:d},!0),"vertical"===r?f.setLayout({dy:a},!0):f.setLayout({dx:a},!0);for(var v=0;v<f.outEdges.length;v++){var b=f.outEdges[v],x=t.indexOf(b);s[x]=0;var S=b.node2,O=e.indexOf(S);0==--l[O]&&c.indexOf(S)<0&&c.push(S)}}++d,u=c,c=[]}for(h=0;h<s.length;h++)if(1===s[h])throw new Error("Sankey is a DAG, the original data has cycle!");var I=p>d-1?p:d-1;o&&"left"!==o&&function(e,t,a,n){if("right"===t){for(var i=[],r=e,o=0;r.length;){for(var s=0;s<r.length;s++){var l=r[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];i.indexOf(c.node1)<0&&i.push(c.node1)}}r=i,i=[],++o}_.each(e,(function(e){w(e)||e.setLayout({depth:Math.max(0,n-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&function(e,t){_.each(e,(function(e){w(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}(e,n)}(e,o,0,I);!function(e,t,a){_.each(e,(function(e){var n=e.getLayout().depth*t;"vertical"===a?e.setLayout({y:n},!0):e.setLayout({x:n},!0)}))}(e,"vertical"===r?(i-a)/I:(n-a)/I,r)})(e,t,a,i,r,s,l),function(e,t,a,n,i,r,o){var s=function(e,t){var a=[],n="vertical"===t?"y":"x",i=Object(S.j)(e,(function(e){return e.getLayout()[n]}));return i.keys.sort((function(e,t){return e-t})),_.each(i.keys,(function(e){a.push(i.buckets.get(e))})),a}(e,o);(function(e,t,a,n,i,r){var o=1/0;_.each(e,(function(e){var t=e.length,s=0;_.each(e,(function(e){s+=e.getLayout().value}));var l="vertical"===r?(n-(t-1)*i)/s:(a-(t-1)*i)/s;l<o&&(o=l)})),_.each(e,(function(e){_.each(e,(function(e,t){var a=e.getLayout().value*o;"vertical"===r?(e.setLayout({x:t},!0),e.setLayout({dx:a},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:a},!0))}))})),_.each(t,(function(e){var t=+e.getValue()*o;e.setLayout({dy:t},!0)}))})(s,t,a,n,i,o),I(s,i,a,n,o);for(var l=1;r>0;r--)M(s,l*=.99,o),I(s,i,a,n,o),T(s,l,o),I(s,i,a,n,o)}(e,t,r,i,n,o,s),function(e,t){var a="vertical"===t?"x":"y";_.each(e,(function(e){e.outEdges.sort((function(e,t){return e.node2.getLayout()[a]-t.node2.getLayout()[a]})),e.inEdges.sort((function(e,t){return e.node1.getLayout()[a]-t.node1.getLayout()[a]}))})),_.each(e,(function(e){var t=0,a=0;_.each(e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),_.each(e.inEdges,(function(e){e.setLayout({ty:a},!0),a+=e.getLayout().dy}))}))}(e,s)}(l,u,a,n,r,o,0!==_.filter(l,(function(e){return 0===e.getLayout().value})).length?0:e.get("layoutIterations"),e.get("orient"),e.get("nodeAlign"))}))}function w(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function I(e,t,a,n,i){var r="vertical"===i?"x":"y";_.each(e,(function(e){var o,s,l;e.sort((function(e,t){return e.getLayout()[r]-t.getLayout()[r]}));for(var u=0,c=e.length,d="vertical"===i?"dx":"dy",h=0;h<c;h++)(l=u-(s=e[h]).getLayout()[r])>0&&(o=s.getLayout()[r]+l,"vertical"===i?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[r]+s.getLayout()[d]+t;if((l=u-t-("vertical"===i?n:a))>0){o=s.getLayout()[r]-l,"vertical"===i?s.setLayout({x:o},!0):s.setLayout({y:o},!0),u=o;for(h=c-2;h>=0;--h)(l=(s=e[h]).getLayout()[r]+s.getLayout()[d]+t-u)>0&&(o=s.getLayout()[r]-l,"vertical"===i?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[r]}}))}function M(e,t,a){_.each(e.slice().reverse(),(function(e){_.each(e,(function(e){if(e.outEdges.length){var n=P(e.outEdges,L,a)/P(e.outEdges,N);if(isNaN(n)){var i=e.outEdges.length;n=i?P(e.outEdges,D,a)/i:0}if("vertical"===a){var r=e.getLayout().x+(n-C(e,a))*t;e.setLayout({x:r},!0)}else{var o=e.getLayout().y+(n-C(e,a))*t;e.setLayout({y:o},!0)}}}))}))}function L(e,t){return C(e.node2,t)*e.getValue()}function D(e,t){return C(e.node2,t)}function j(e,t){return C(e.node1,t)*e.getValue()}function A(e,t){return C(e.node1,t)}function C(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function N(e){return e.getValue()}function P(e,t,a){for(var n=0,i=e.length,r=-1;++r<i;){var o=+t(e[r],a);isNaN(o)||(n+=o)}return n}function T(e,t,a){_.each(e,(function(e){_.each(e,(function(e){if(e.inEdges.length){var n=P(e.inEdges,j,a)/P(e.inEdges,N);if(isNaN(n)){var i=e.inEdges.length;n=i?P(e.inEdges,A,a)/i:0}if("vertical"===a){var r=e.getLayout().x+(n-C(e,a))*t;e.setLayout({x:r},!0)}else{var o=e.getLayout().y+(n-C(e,a))*t;e.setLayout({y:o},!0)}}}))}))}var E=a(110);function R(e){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph().nodes;if(t.length){var a=1/0,n=-1/0;_.each(t,(function(e){var t=e.getLayout().value;t<a&&(a=t),t>n&&(n=t)})),_.each(t,(function(t){var i=new E.a({type:"color",mappingMethod:"linear",dataExtent:[a,n],visual:e.get("color")}).mapValueToVisual(t.getLayout().value),r=t.getModel().get(["itemStyle","color"]);null!=r?(t.setVisual("color",r),t.setVisual("style",{fill:r})):(t.setVisual("color",i),t.setVisual("style",{fill:i}))}))}}))}function V(e){e.registerChartView(g),e.registerSeriesModel(b),e.registerLayout(O),e.registerVisual(R),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))}},1744:function(e,t,a){"use strict";a.d(t,"a",(function(){return b}));var n=a(43),i=a(3),r=a(124),o=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a.hasSymbolVisual=!0,a}return Object(i.b)(t,e),t.prototype.getInitialData=function(e,t){return Object(r.a)(this.getSource(),this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,a){return a.point(t.getItemLayout(e))},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}}},t}(a(58).a),s=a(234),l=a(45),u=a(82),c=a(71),d=a(289),h=a(23),p=function(){},g=function(e){function t(t){return e.call(this,t)||this}return Object(i.b)(t,e),t.prototype.getDefaultShape=function(){return new p},t.prototype.buildPath=function(e,t){var a=t.points,n=t.size,i=this.symbolProxy,r=i.shape,o=e.getContext?e.getContext():e;if(o&&n[0]<4)this._ctx=o;else{this._ctx=null;for(var s=0;s<a.length;){var l=a[s++],u=a[s++];isNaN(l)||isNaN(u)||(this.softClipShape&&!this.softClipShape.contain(l,u)||(r.x=l-n[0]/2,r.y=u-n[1]/2,r.width=n[0],r.height=n[1],i.buildPath(e,r,!0)))}}},t.prototype.afterBrush=function(){var e=this.shape,t=e.points,a=e.size,n=this._ctx;if(n)for(var i=0;i<t.length;){var r=t[i++],o=t[i++];isNaN(r)||isNaN(o)||(this.softClipShape&&!this.softClipShape.contain(r,o)||n.fillRect(r-a[0]/2,o-a[1]/2,a[0],a[1]))}},t.prototype.findDataIndex=function(e,t){for(var a=this.shape,n=a.points,i=a.size,r=Math.max(i[0],4),o=Math.max(i[1],4),s=n.length/2-1;s>=0;s--){var l=2*s,u=n[l]-r/2,c=n[l+1]-o/2;if(e>=u&&t>=c&&e<=u+r&&t<=c+o)return s}return-1},t}(l.b),f=function(){function e(){this.group=new u.a}return e.prototype.isPersistent=function(){return!this._incremental},e.prototype.updateData=function(e,t){this.group.removeAll();var a=new g({rectHover:!0,cursor:"default"});a.setShape({points:e.getLayout("points")}),this._setCommon(a,e,!1,t),this.group.add(a),this._incremental=null},e.prototype.updateLayout=function(e){if(!this._incremental){var t=e.getLayout("points");this.group.eachChild((function(e){if(null!=e.startIndex){var a=2*(e.endIndex-e.startIndex),n=4*e.startIndex*2;t=new Float32Array(t.buffer,n,a)}e.setShape("points",t)}))}},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>2e6?(this._incremental||(this._incremental=new d.a({silent:!0})),this.group.add(this._incremental)):this._incremental=null},e.prototype.incrementalUpdate=function(e,t,a){var n;this._incremental?(n=new g,this._incremental.addDisplayable(n,!0)):((n=new g({rectHover:!0,cursor:"default",startIndex:e.start,endIndex:e.end})).incremental=!0,this.group.add(n)),n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,!!this._incremental,a)},e.prototype._setCommon=function(e,t,a,n){var i=t.hostModel;n=n||{};var r=t.getVisual("symbolSize");e.setShape("size",r instanceof Array?r:[r,r]),e.softClipShape=n.clipShape||null,e.symbolProxy=Object(c.a)(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<4;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;if(l&&e.setColor(l),!a){var u=Object(h.a)(e);u.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){u.dataIndex=null;var a=e.findDataIndex(t.offsetX,t.offsetY);a>
1=0&&(u.dataIndex=a+(e.startIndex||0))}))}},e.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},e.prototype._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},e}(),y=a(235),m=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(i.b)(t,e),t.prototype.render=function(e,t,a){var n=e.getData();this._updateSymbolDraw(n,e).updateData(n,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,a){var n=e.getData();this._updateSymbolDraw(n,e).incrementalPrepareUpdate(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,a){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,a){var n=e.getData();if(this.group.dirty(),!this._finished||n.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var i=Object(y.a)("").reset(e,t,a);i.progress&&i.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,a=t&&t.getArea&&t.getArea();return e.get("clip",!0)?a:null},t.prototype._updateSymbolDraw=function(e,t){var a=this._symbolDraw,n=t.pipelineContext.large;return a&&n===this._isLargeDraw||(a&&a.remove(),a=this._symbolDraw=n?new f:new s.a,this._isLargeDraw=n,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(a(56).a),v=a(583);function b(e){Object(n.a)(v.a),e.registerSeriesModel(o),e.registerChartView(m),e.registerLayout(Object(y.a)("scatter"))}},1745:function(e,t,a){"use strict";a.d(t,"a",(function(){return I}));var n=a(3),i=a(45),r=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},o=function(e){function t(t){var a=e.call(this,t)||this;return a.type="pointer",a}return Object(n.b)(t,e),t.prototype.getDefaultShape=function(){return new r},t.prototype.buildPath=function(e,t){var a=Math.cos,n=Math.sin,i=t.r,r=t.width,o=t.angle,s=t.x-a(o)*r*(r>=i/3?1:2),l=t.y-n(o)*r*(r>=i/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+a(o)*r,t.y+n(o)*r),e.lineTo(t.x+a(t.angle)*i,t.y+n(t.angle)*i),e.lineTo(t.x-a(o)*r,t.y-n(o)*r),e.lineTo(s,l)},t}(i.b),s=a(327),l=a(297),u=a(112),c=a(11),d=a(82),h=a(15),p=a(21),g=a(56),f=a(6),y=a(477),m=a(71),v=a(93),b=a(0);function x(e,t){var a=null==e?"":e+"";return t&&("string"==typeof t?a=t.replace("{value}",a):"function"==typeof t&&(a=t(e))),a}var _=2*Math.PI,S=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(n.b)(t,e),t.prototype.render=function(e,t,a){this.group.removeAll();var n=e.get(["axisLine","lineStyle","color"]),i=function(e,t){var a=e.get("center"),n=t.getWidth(),i=t.getHeight(),r=Math.min(n,i);return{cx:Object(f.o)(a[0],t.getWidth()),cy:Object(f.o)(a[1],t.getHeight()),r:Object(f.o)(e.get("radius"),r/2)}}(e,a);this._renderMain(e,t,a,n,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,a,n,i){for(var r=this.group,o=e.get("clockwise"),l=-e.get("startAngle")/180*Math.PI,u=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),d=c.get("roundCap")?y.a:s.a,h=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),f=(u-l)%_||u===l?(u-l)%_:_,m=l,v=0;h&&v<n.length;v++){var b=new d({shape:{startAngle:m,endAngle:u=l+f*Math.min(Math.max(n[v][0],0),1),cx:i.cx,cy:i.cy,clockwise:o,r0:i.r-g,r:i.r},silent:!0});b.setStyle({fill:n[v][1]}),b.setStyle(p.getLineStyle(["color","width"])),r.add(b),m=u}var x=function(e){if(e<=0)return n[0][1];var t;for(t=0;t<n.length;t++)if(n[t][0]>=e&&(0===t?0:n[t-1][0])<e)return n[t][1];return n[t-1][1]};if(!o){var S=l;l=u,u=S}this._renderTicks(e,t,a,x,i,l,u,o,g),this._renderTitleAndDetail(e,t,a,x,i),this._renderAnchor(e,i),this._renderPointer(e,t,a,x,i,l,u,o,g)},t.prototype._renderTicks=function(e,t,a,n,i,r,o,s,c){for(var d,h,g=this.group,y=i.cx,m=i.cy,v=i.r,b=+e.get("min"),_=+e.get("max"),S=e.getModel("splitLine"),O=e.getModel("axisTick"),w=e.getModel("axisLabel"),I=e.get("splitNumber"),M=O.get("splitNumber"),L=Object(f.o)(S.get("length"),v),D=Object(f.o)(O.get("length"),v),j=r,A=(o-r)/I,C=A/M,N=S.getModel("lineStyle").getLineStyle(),P=O.getModel("lineStyle").getLineStyle(),T=S.get("distance"),E=0;E<=I;E++){if(d=Math.cos(j),h=Math.sin(j),S.get("show")){var R=T?T+c:c,V=new l.a({shape:{x1:d*(v-R)+y,y1:h*(v-R)+m,x2:d*(v-L-R)+y,y2:h*(v-L-R)+m},style:N,silent:!0});"auto"===N.stroke&&V.setStyle({stroke:n(E/I)}),g.add(V)}if(w.get("show")){R=w.get("distance")+T;var z=x(Object(f.u)(E/I*(_-b)+b),w.get("formatter")),k=n(E/I);g.add(new u.a({style:Object(p.c)(w,{text:z,x:d*(v-L-R)+y,y:h*(v-L-R)+m,verticalAlign:h<-.8?"top":h>
1.8?"bottom":"middle",align:d<-.4?"left":d>.4?"right":"center"},{inheritColor:k}),silent:!0}))}if(O.get("show")&&E!==I){R=(R=O.get("distance"))?R+c:c;for(var G=0;G<=M;G++){d=Math.cos(j),h=Math.sin(j);var B=new l.a({shape:{x1:d*(v-R)+y,y1:h*(v-R)+m,x2:d*(v-D-R)+y,y2:h*(v-D-R)+m},silent:!0,style:P});"auto"===P.stroke&&B.setStyle({stroke:n((E+G/M)/I)}),g.add(B),j+=C}j-=C}else j+=A}},t.prototype._renderPointer=function(e,t,a,n,i,r,l,u,d){var p=this.group,g=this._data,x=this._progressEls,_=[],S=e.get(["pointer","show"]),O=e.getModel("progress"),w=O.get("show"),I=e.getData(),M=I.mapDimension("value"),L=+e.get("min"),D=+e.get("max"),j=[L,D],A=[r,l];function C(t,a){var n,r=I.getItemModel(t).getModel("pointer"),s=Object(f.o)(r.get("width"),i.r),l=Object(f.o)(r.get("length"),i.r),u=e.get(["pointer","icon"]),c=r.get("offsetCenter"),d=Object(f.o)(c[0],i.r),h=Object(f.o)(c[1],i.r),p=r.get("keepAspect");return(n=u?Object(m.a)(u,d-s/2,h-l,s,l,null,p):new o({shape:{angle:-Math.PI/2,width:s,r:l,x:d,y:h}})).rotation=-(a+Math.PI/2),n.x=i.cx,n.y=i.cy,n}function N(e,t){var a=O.get("roundCap")?y.a:s.a,n=O.get("overlap"),o=n?O.get("width"):d/I.count(),l=n?i.r-o:i.r-(e+1)*o,c=n?i.r:i.r-e*o,h=new a({shape:{startAngle:r,endAngle:t,cx:i.cx,cy:i.cy,clockwise:u,r0:l,r:c}});return n&&(h.z2=D-I.get(M,e)%D),h}(w||S)&&(I.diff(g).add((function(t){if(S){var a=C(t,r);c.initProps(a,{rotation:-(Object(f.k)(I.get(M,t),j,A,!0)+Math.PI/2)},e),p.add(a),I.setItemGraphicEl(t,a)}if(w){var n=N(t,r),i=O.get("clip");c.initProps(n,{shape:{endAngle:Object(f.k)(I.get(M,t),j,A,i)}},e),p.add(n),_[t]=n}})).update((function(t,a){if(S){var n=g.getItemGraphicEl(a),i=n?n.rotation:r,o=C(t,i);o.rotation=i,c.updateProps(o,{rotation:-(Object(f.k)(I.get(M,t),j,A,!0)+Math.PI/2)},e),p.add(o),I.setItemGraphicEl(t,o)}if(w){var s=x[a],l=N(t,s?s.shape.endAngle:r),u=O.get("clip");c.updateProps(l,{shape:{endAngle:Object(f.k)(I.get(M,t),j,A,u)}},e),p.add(l),_[t]=l}})).execute(),I.each((function(e){var t=I.getItemModel(e),a=t.getModel("emphasis");if(S){var i=I.getItemGraphicEl(e),r=I.getItemVisual(e,"style"),o=r.fill;if(i instanceof v.a){var s=i.style;i.useStyle(Object(b.extend)({image:s.image,x:s.x,y:s.y,width:s.width,height:s.height},r))}else i.useStyle(r),"pointer"!==i.type&&i.setColor(o);i.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===i.style.fill&&i.setStyle("fill",n(Object(f.k)(I.get(M,e),j,[0,1],!0))),i.z2EmphasisLift=0,Object(h.I)(i,t),Object(h.o)(i,a.get("focus"),a.get("blurScope"))}if(w){var l=_[e];l.useStyle(I.getItemVisual(e,"style")),l.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),l.z2EmphasisLift=0,Object(h.I)(l,t),Object(h.o)(l,a.get("focus"),a.get("blurScope"))}})),this._progressEls=_)},t.prototype._renderAnchor=function(e,t){var a=e.getModel("anchor");if(a.get("show")){var n=a.get("size"),i=a.get("icon"),r=a.get("offsetCenter"),o=a.get("keepAspect"),s=Object(m.a)(i,t.cx-n/2+Object(f.o)(r[0],t.r),t.cy-n/2+Object(f.o)(r[1],t.r),n,n,null,o);s.z2=a.get("showAbove")?1:0,s.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(s)}},t.prototype._renderTitleAndDetail=function(e,t,a,n,i){var r=this,o=e.getData(),s=o.mapDimension("value"),l=+e.get("min"),c=+e.get("max"),h=new d.a,g=[],y=[],m=e.isAnimationEnabled();o.diff(this._data).add((function(e){g[e]=new u.a({silent:!0}),y[e]=new u.a({silent:!0})})).update((function(e,t){g[e]=r._titleEls[t],y[e]=r._detailEls[t]})).execute(),o.each((function(t){var a=o.getItemModel(t),r=o.get(s,t),u=new d.a,v=n(Object(f.k)(r,[l,c],[0,1],!0)),b=a.getModel("title");if(b.get("show")){var _=b.get("offsetCenter"),S=i.cx+Object(f.o)(_[0],i.r),O=i.cy+Object(f.o)(_[1],i.r);(C=g[t]).attr({style:Object(p.c)(b,{x:S,y:O,text:o.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:v})}),u.add(C)}var w=a.getModel("detail");if(w.get("show")){var I=w.get("offsetCenter"),M=i.cx+Object(f.o)(I[0],i.r),L=i.cy+Object(f.o)(I[1],i.r),D=Object(f.o)(w.get("width"),i.r),j=Object(f.o)(w.get("height"),i.r),A=e.get(["progress","show"])?o.getItemVisual(t,"style").fill:v,C=y[t],N=w.get("formatter");
1C.attr({style:Object(p.c)(w,{x:M,y:L,text:x(r,N),width:isNaN(D)?null:D,height:isNaN(j)?null:j,align:"center",verticalAlign:"middle"},{inheritColor:A})}),Object(p.i)(C,{normal:w},r,(function(e){return x(e,N)})),m&&Object(p.a)(C,t,o,e,{getFormattedLabel:function(e,t,a,n,i,o){return x(o?o.interpolatedValue:r,N)}}),u.add(C)}h.add(u)})),this.group.add(h),this._titleEls=g,this._detailEls=y},t.type="gauge",t}(g.a),O=a(198),w=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a.visualStyleAccessPath="itemStyle",a.useColorPaletteOnData=!0,a}return Object(n.b)(t,e),t.prototype.getInitialData=function(e,t){return Object(O.a)(this,["value"])},t.type="series.gauge",t.defaultOption={zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(a(58).a);function I(e){e.registerChartView(S),e.registerSeriesModel(w)}},1746:function(e,t,a){"use strict";a.d(t,"a",(function(){return M}));var n=a(3),i=a(323),r=a(112),o=a(11),s=a(67),l=a(296),u=a(15),c=a(56),d=a(177),h=a(21),p=["itemStyle","opacity"],g=function(e){function t(t,a){var n=e.call(this)||this,o=n,s=new i.a,l=new r.a;return o.setTextContent(l),n.setTextGuideLine(s),n.updateData(t,a,!0),n}return Object(n.b)(t,e),t.prototype.updateData=function(e,t,a){var n=e.hostModel,i=e.getItemModel(t),r=e.getItemLayout(t),s=i.getModel("emphasis"),l=i.get(p);l=null==l?1:l,this.useStyle(e.getItemVisual(t,"style")),this.style.lineJoin="round",a?(this.setShape({points:r.points}),this.style.opacity=0,o.initProps(this,{style:{opacity:l}},n,t)):o.updateProps(this,{style:{opacity:l},shape:{points:r.points}},n,t),Object(u.I)(this,i),this._updateLabel(e,t),Object(u.o)(this,s.get("focus"),s.get("blurScope"))},t.prototype._updateLabel=function(e,t){var a=this.getTextGuideLine(),n=this.getTextContent(),i=e.hostModel,r=e.getItemModel(t),l=e.getItemLayout(t).label,u=e.getItemVisual(t,"style"),c=u.fill;Object(h.h)(n,Object(h.f)(r),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:u.opacity,defaultText:e.getName(t)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),this.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var p=l.linePoints;a.setShape({points:p}),this.textGuideLineConfig={anchor:p?new s.a(p[0][0],p[0][1]):null},o.updateProps(n,{style:{x:l.x,y:l.y}},i,t),n.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),Object(d.d)(this,Object(d.a)(r),{stroke:c})},t}(l.a),f=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a.ignoreLabelLineUpdate=!0,a}return Object(n.b)(t,e),t.prototype.render=function(e,t,a){var n=e.getData(),i=this._data,r=this.group;n.diff(i).add((function(e){var t=new g(n,e);n.setItemGraphicEl(e,t),r.add(t)})).update((function(e,t){var a=i.getItemGraphicEl(t);a.updateData(n,e),r.add(a),n.setItemGraphicEl(e,a)})).remove((function(t){var a=i.getItemGraphicEl(t);o.removeElementWithFadeOut(a,e,t)})).execute(),this._data=n},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(c.a),y=a(0),m=a(198),v=a(10),b=a(139),x=a(236),_=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a.useColorPaletteOnData=!0,a}return Object(n.b)(t,e),t.prototype.init=function(t){e.prototype.init.a
1pply(this,arguments),this.legendVisualProvider=new x.a(y.bind(this.getData,this),y.bind(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return Object(m.a)(this,{coordDimensions:["value"],encodeDefaulter:y.curry(b.d,this)})},t.prototype._defaultLabelLine=function(e){Object(v.f)(e,"labelLine",["show"]);var t=e.labelLine,a=e.emphasis.labelLine;t.show=t.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var a=this.getData(),n=e.prototype.getDataParams.call(this,t),i=a.mapDimension("value"),r=a.getSum(i);return n.percent=r?+(a.get(i,t)/r*100).toFixed(2):0,n.$vars.push("percent"),n},t.type="series.funnel",t.defaultOption={zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(a(58).a),S=a(27),O=a(6);function w(e,t){e.eachSeriesByType("funnel",(function(e){var a=e.getData(),n=a.mapDimension("value"),i=e.get("sort"),r=function(e,t){return S.g(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t),o=e.get("orient"),s=r.width,l=r.height,u=function(e,t){for(var a=e.mapDimension("value"),n=e.mapArray(a,(function(e){return e})),i=[],r="ascending"===t,o=0,s=e.count();o<s;o++)i[o]=o;return"function"==typeof t?i.sort(t):"none"!==t&&i.sort((function(e,t){return r?n[e]-n[t]:n[t]-n[e]})),i}(a,i),c=r.x,d=r.y,h="horizontal"===o?[Object(O.o)(e.get("minSize"),l),Object(O.o)(e.get("maxSize"),l)]:[Object(O.o)(e.get("minSize"),s),Object(O.o)(e.get("maxSize"),s)],p=a.getDataExtent(n),g=e.get("min"),f=e.get("max");null==g&&(g=Math.min(p[0],0)),null==f&&(f=p[1]);var y=e.get("funnelAlign"),m=e.get("gap"),v=(("horizontal"===o?s:l)-m*(a.count()-1))/a.count(),b=function(e,t){if("horizontal"===o){var i=a.get(n,e)||0,r=Object(O.k)(i,[g,f],h,!0),u=void 0;switch(y){case"top":u=d;break;case"center":u=d+(l-r)/2;break;case"bottom":u=d+(l-r)}return[[t,u],[t,u+r]]}var p,m=a.get(n,e)||0,v=Object(O.k)(m,[g,f],h,!0);switch(y){case"left":p=c;break;case"center":p=c+(s-v)/2;break;case"right":p=c+s-v}return[[p,t],[p+v,t]]};"ascending"===i&&(v=-v,m=-m,"horizontal"===o?c+=s:d+=l,u=u.reverse());for(var x=0;x<u.length;x++){var _=u[x],w=u[x+1],I=a.getItemModel(_);if("horizontal"===o){var M=I.get(["itemStyle","width"]);null==M?M=v:(M=Object(O.o)(M,s),"ascending"===i&&(M=-M));var L=b(_,c),D=b(w,c+M);c+=M+m,a.setItemLayout(_,{points:L.concat(D.slice().reverse())})}else{var j=I.get(["itemStyle","height"]);null==j?j=v:(j=Object(O.o)(j,l),"ascending"===i&&(j=-j));L=b(_,d),D=b(w,d+j);d+=j+m,a.setItemLayout(_,{points:L.concat(D.slice().reverse())})}}!function(e){var t=e.hostModel.get("orient");e.each((function(a){var n,i,r,o,s=e.getItemModel(a),l=s.getModel("label").get("position"),u=s.getModel("labelLine"),c=e.getItemLayout(a),d=c.points,h="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(h)"insideLeft"===l?(i=(d[0][0]+d[3][0])/2+5,r=(d[0][1]+d[3][1])/2,n="left"):"insideRight"===l?(i=(d[1][0]+d[2][0])/2-5,r=(d[1][1]+d[2][1])/2,n="right"):(i=(d[0][0]+d[1][0]+d[2][0]+d[3][0])/4,r=(d[0][1]+d[1][1]+d[2][1]+d[3][1])/4,n="center"),o=[[i,r],[i,r]];else{var p=void 0,g=void 0,f=void 0,y=void 0,m=u.get("length");0,"left"===l?(p=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,i=(f=p-m)-5,n="right"):"right"===l?(p=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,i=(f=p+m)+5,n="left"):"top"===l?(p=(d[3][0]+d[0][0])/2,r=(y=(g=(d[3][1]+d[0][1])/2)-m)-5,n="center"):"bottom"===l?(p=(d[1][0]+d[2][0])/2,r=(y=(g=(d[1][1]+d[2][1])/2)+m)+5,n="center"):"rightTop"===l?(p="horizontal"===t?d[3][0]:d[1][0],g="horizontal"===t?d[3][1]:d[1][1],"horizontal"===t?(r=(y=g-m)-5,n="center"):(i=(f=p+m)+5,n="top")):"rightBottom"===l?(p=d[2][0],g=d[2][1],"horizontal"===t?(r=(y=g+m)+5,n="center"):(i=(f=p+m)+5,n="bottom")):"leftTop"===l?(p=d[0][0],g="horizontal"===t?d[0][1]:d[1][1],"horizontal"===t?(r=(y=g-m)-5,n="center"):(i=(f=p-m)-5,n="right")):"leftBottom"===l?(p="horizontal"===t?d[1][0]:d[3][0],g="horizontal"===t?d[1][1]:d[2][1],"horizontal"===t?(r=(y=g+m)+5,n="center"):(i=(f=p-m)-5,n="right")):(p=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,"horizontal"===t?(r=(y=g+m)+5,n="center"):(i=(f=p+m)+5,n="left")),"horizontal"===t?i=f=p:r=y=g,o=[[p,g],[f,y]]}c.label={linePoints:o,x:i,y:r,verticalAlign:"middle",textAlign:n,inside:h}}))}(a)}))}var I=a(237);function M(e){e.registerChartView(f),e.registerSeriesModel(_),e.registerLayout(w),e.registerProcessor(Object(I.a)("funnel"))}},1747:function(e,t,a){"use strict";a.d(t,"a",(function(){return I}));var n=a(43),i=a(3),r=a(82),o=a(11),s=a(108),l=a(323),u=a(15),c=a(56),d=a(6),h=a(0);function p(e,t,a,n){for(var i,r=[],o=0;o<a.length;o++){var s=a[o],l=e.get(e.mapDimension(s),t);i=l,("category"===n.getAxis(s).type?null==i:null==i||isNaN(i))||r.push(n.dataToPoint(l,s))}return r}function g(e,t,a,n,i){var r=p(e,a,n,i),o=new l.a({shape:{points:r},z2:10});return t.add(o),e.setItemGraphicEl(a,o),o}function f(e){var t=e.get("smooth",!0);return!0===t&&(t=.3),t=Object(d.m)(t),Object(h.eqNaN)(t)&&(t=0),{smooth:t}}function y(e,t,a,n){e.useStyle(t.getItemVisual(a,"style")),e.style.fill=null,e.setShape("smooth",n.smooth);var i=t.getItemModel(a),r=i.getModel("emphasis");Object(u.I)(e,i,"lineStyle"),Object(u.o)(e,r.get("focus"),r.get("blurScope"))}var m=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a._dataGroup=new r.a,a._initialized=!1,a}
1return Object(i.b)(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,a,n){var i=this._dataGroup,r=e.getData(),l=this._data,u=e.coordinateSystem,c=u.dimensions,d=f(e);if(r.diff(l).add((function(e){y(g(r,i,e,c,u),r,e,d)})).update((function(t,a){var n=l.getItemGraphicEl(a),i=p(r,t,c,u);r.setItemGraphicEl(t,n),o.updateProps(n,{shape:{points:i}},e,t),y(n,r,t,d)})).remove((function(e){var t=l.getItemGraphicEl(e);i.remove(t)})).execute(),!this._initialized){this._initialized=!0;var h=function(e,t,a){var n=e.model,i=e.getRect(),r=new s.a({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),l="horizontal"===n.get("layout")?"width":"height";return r.setShape(l,0),o.initProps(r,{shape:{width:i.width,height:i.height}},t,a),r}(u,e,(function(){setTimeout((function(){i.removeClipPath()}))}));i.setClipPath(h)}this._data=r},t.prototype.incrementalPrepareRender=function(e,t,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,a){for(var n=t.getData(),i=t.coordinateSystem,r=i.dimensions,o=f(t),s=e.start;s<e.end;s++){var l=g(n,this._dataGroup,s,r,i);l.incremental=!0,y(l,n,s,o)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(c.a),v=a(58),b=a(124);function x(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var a={};return Object(h.each)(t.dimensions,(function(e){var t=+e.replace("dim","");a[e]=t})),a}}var _=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a.visualStyleAccessPath="lineStyle",a.visualDrawType="stroke",a}return Object(i.b)(t,e),t.prototype.getInitialData=function(e,t){return Object(b.a)(this.getSource(),this,{useEncodeDefaulter:Object(h.bind)(x,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,a=this.getData(),n=[];return t.eachActiveState(a,(function(t,i){e===t&&n.push(a.getRawIndex(i))})),n},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(v.a),S=["lineStyle","opacity"],O={seriesType:"parallel",reset:function(e,t){var a=e.coordinateSystem,n={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){a.eachActiveState(t,(function(e,a){var i=n[e];if("normal"===e&&t.hasItemOption){var r=t.getItemModel(a).get(S,!0);null!=r&&(i=r)}t.ensureUniqueItemVisual(a,"style").opacity=i}),e.start,e.end)}}}},w=a(731);function I(e){Object(n.a)(w.a),e.registerChartView(m),e.registerSeriesModel(_),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,O)}},1748:function(e,t,a){"use strict";a.d(t,"a",(function(){return v}));var n=a(3),i=a(234),r=a(0),o=a(71),s=a(82),l=a(15),u=a(6),c=a(265);function d(e,t){var a=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?a:null,fill:"fill"===t.brushType?a:null}})}))}var h=function(e){function t(t,a){var n=e.call(this)||this,i=new c.a(t,a),r=new s.a;return n.add(i),n.add(r),n.updateData(t,a),n}return Object(n.b)(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,a=e.color,n=this.childAt(1),i=0;i<3;i++){var r=Object(o.a)(t,-1,-1,2,2,a);r.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-i/3*e.period+e.effectOffset;r.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),r.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),n.add(r)}d(n,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,a=this.childAt(1),n=["symbolType","period","rippleScale"],i=0;i<n.length;i++){var r=n[i];if(t[r]!==e[r])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}d(a,e)},t.prototype.highlight=function(){Object(l.r)(this)},t.prototype.downplay=function(){Object(l.C)(this)},t.prototype.updateData=function(e,t){var a=this,n=e.hostModel;this.childAt(0).updateData(e,t);var i=this.childAt(1),o=e.getItemModel(t),s=e.getItemVisual(t,"symbol"),c=function(e){return r.isArray(e)||(e=[+e,+e]),e}(e.getItemVisual(t,"symbolSize")),d=e.getItemVisual(t,"style"),h=d&&d.fill;i.setScale(c),i.traverse((function(e){e.setStyle("fill",h)}));var p=e.getItemVisual(t,"symbolOffset");p&&(r.isArray(p)||(p=[p,p]),i.x=Object(u.o)(p[0],c[0]),i.y=Object(u.o)(r.retrieve2(p[1],p[0])||0,c[1]));var g=e.getItemVisual(t,"symbolRotate");i.rotation=(g||0)*Math.PI/180||0;var f={};f.showEffectOn=n.get("showEffectOn"),f.rippleScale=o.get(["rippleEffect","scale"]),f.brushType=o.get(["rippleEffect","brushType"]),f.period=1e3*o.get(["rippleEffect","period"]),f.effectOff
1set=t/e.count(),f.z=n.getShallow("z")||0,f.zlevel=n.getShallow("zlevel")||0,f.symbolType=s,f.color=h,f.rippleEffectColor=o.get(["rippleEffect","color"]),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===f.showEffectOn?(this._effectCfg?this.updateEffectAnimation(f):this.startEffectAnimation(f),this._effectCfg=f):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==f.showEffectOn&&a.startEffectAnimation(f):"normal"===e&&"render"!==f.showEffectOn&&a.stopEffectAnimation()}),this._effectCfg=f,Object(l.o)(this)},t.prototype.fadeOut=function(e){this.off("mouseover").off("mouseout"),e&&e()},t}(s.a),p=a(29),g=a(235),f=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(n.b)(t,e),t.prototype.init=function(){this._symbolDraw=new i.a(h)},t.prototype.render=function(e,t,a){var n=e.getData(),i=this._symbolDraw;i.updateData(n,{clipShape:this._getClipShape(e)}),this.group.add(i.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,a=t&&t.getArea&&t.getArea();return e.get("clip",!0)?a:null},t.prototype.updateTransform=function(e,t,a){var n=e.getData();this.group.dirty();var i=Object(g.a)("").reset(e,t,a);i.progress&&i.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=p.clone(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(a(56).a),y=a(124),m=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a.hasSymbolVisual=!0,a}return Object(n.b)(t,e),t.prototype.getInitialData=function(e,t){return Object(y.a)(this.getSource(),this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,a){return a.point(t.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10},t}(a(58).a);function v(e){e.registerChartView(f),e.registerSeriesModel(m),e.registerLayout(Object(g.a)("effectScatter"))}},1749:function(e,t,a){"use strict";a.d(t,"a",(function(){return v}));var n=a(3),i=a(108),r=a(93),o=a(15),s=a(0),l=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=s.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,a,n,i,r){var o=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,d=c.getContext("2d"),h=e.length;c.width=t,c.height=a;for(var p=0;p<h;++p){var g=e[p],f=g[0],y=g[1],m=n(g[2]);d.globalAlpha=m,d.drawImage(o,f-u,y-u)}if(!c.width||!c.height)return c;for(var v=d.getImageData(0,0,c.width,c.height),b=v.data,x=0,_=b.length,S=this.minOpacity,O=this.maxOpacity-S;x<_;){m=b[x+3]/256;var w=4*Math.floor(255*m);if(m>0){var I=r(m)?s:l;m>0&&(m=m*O+S),b[x++]=I[w],b[x++]=I[w+1],b[x++]=I[w+2],b[x++]=I[w+3]*m*256}else x+=4}return d.putImageData(v,0,0),c},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=s.createCanvas()),t=this.pointSize+this.blurSize,a=2*t;e.width=a,e.height=a;var n=e.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-t,t,this.pointSize,0,2*Math.PI,!0),n.closePath(),n.fill(),e},e.prototype._getGradient=function(e,t){for(var a=this._gradientPixels,n=a[t]||(a[t]=new Uint8ClampedArray(1024)),i=[0,0,0,0],r=0,o=0;o<256;o++)e[t](o/255,!0,i),n[r++]=i[0],n[r++]=i[1],n[r++]=i[2],n[r++]=i[3];return n},e}(),u=a(56),c=a(176),d=a(21);function h(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var p=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(n.b)(t,e),t.prototype.render=function(e,t,a){var n;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(a){a===e&&(n=t)}))}
1)),this.group.removeAll(),this._incrementalDisplayable=null;var i=e.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(e,a,0,e.getData().count()):h(i)&&this._renderOnGeo(i,e,n,a)},t.prototype.incrementalPrepareRender=function(e,t,a){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,a,n){var i=t.coordinateSystem;i&&(h(i)?this.render(t,a,n):this._renderOnCartesianAndCalendar(t,n,e.start,e.end,!0))},t.prototype._renderOnCartesianAndCalendar=function(e,t,a,n,r){var s,l,u,h,p=e.coordinateSystem;if(Object(c.a)(p,"cartesian2d")){var g=p.getAxis("x"),f=p.getAxis("y");0,s=g.getBandWidth(),l=f.getBandWidth(),u=g.scale.getExtent(),h=f.scale.getExtent()}for(var y=this.group,m=e.getData(),v=e.getModel(["emphasis","itemStyle"]).getItemStyle(),b=e.getModel(["blur","itemStyle"]).getItemStyle(),x=e.getModel(["select","itemStyle"]).getItemStyle(),_=Object(d.f)(e),S=e.get(["emphasis","focus"]),O=e.get(["emphasis","blurScope"]),w=Object(c.a)(p,"cartesian2d")?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],I=a;I<n;I++){var M=void 0,L=m.getItemVisual(I,"style");if(Object(c.a)(p,"cartesian2d")){var D=m.get(w[0],I),j=m.get(w[1],I);if(isNaN(m.get(w[2],I))||D<u[0]||D>u[1]||j<h[0]||j>h[1])continue;var A=p.dataToPoint([D,j]);M=new i.a({shape:{x:Math.floor(Math.round(A[0])-s/2),y:Math.floor(Math.round(A[1])-l/2),width:Math.ceil(s),height:Math.ceil(l)},style:L})}else{if(isNaN(m.get(w[1],I)))continue;M=new i.a({z2:1,shape:p.dataToRect([m.get(w[0],I)]).contentShape,style:L})}var C=m.getItemModel(I);if(m.hasItemOption){var N=C.getModel("emphasis");v=N.getModel("itemStyle").getItemStyle(),b=C.getModel(["blur","itemStyle"]).getItemStyle(),x=C.getModel(["select","itemStyle"]).getItemStyle(),S=N.get("focus"),O=N.get("blurScope"),_=Object(d.f)(C)}var P=e.getRawValue(I),T="-";P&&null!=P[2]&&(T=P[2]+""),Object(d.h)(M,_,{labelFetcher:e,labelDataIndex:I,defaultOpacity:L.opacity,defaultText:T}),M.ensureState("emphasis").style=v,M.ensureState("blur").style=b,M.ensureState("select").style=x,Object(o.o)(M,S,O),M.incremental=r,r&&(M.states.emphasis.hoverLayer=!0),y.add(M),m.setItemGraphicEl(I,M)}},t.prototype._renderOnGeo=function(e,t,a,n){var i=a.targetVisuals.inRange,o=a.targetVisuals.outOfRange,u=t.getData(),c=this._hmLayer||this._hmLayer||new l;c.blurSize=t.get("blurSize"),c.pointSize=t.get("pointSize"),c.minOpacity=t.get("minOpacity"),c.maxOpacity=t.get("maxOpacity");var d=e.getViewRect().clone(),h=e.getRoamTransform();d.applyTransform(h);var p=Math.max(d.x,0),g=Math.max(d.y,0),f=Math.min(d.width+d.x,n.getWidth()),y=Math.min(d.height+d.y,n.getHeight()),m=f-p,v=y-g,b=[u.mapDimension("lng"),u.mapDimension("lat"),u.mapDimension("value")],x=u.mapArray(b,(function(t,a,n){var i=e.dataToPoint([t,a]);return i[0]-=p,i[1]-=g,i.push(n),i})),_=a.getExtent(),S="visualMap.continuous"===a.type?function(e,t){var a=e[1]-e[0];return t=[(t[0]-e[0])/a,(t[1]-e[0])/a],function(e){return e>=t[0]&&e<=t[1]}}(_,a.option.range):function(e,t,a){var n=e[1]-e[0],i=(t=s.map(t,(function(t){return{interval:[(t.interval[0]-e[0])/n,(t.interval[1]-e[0])/n]}}))).length,r=0;return function(e){var n;for(n=r;n<i;n++){if((o=t[n].interval)[0]<=e&&e<=o[1]){r=n;break}}if(n===i)for(n=r-1;n>=0;n--){var o;if((o=t[n].interval)[0]<=e&&e<=o[1]){r=n;break}}return n>=0&&n<i&&a[n]}}(_,a.getPieceList(),a.option.selected);c.update(x,m,v,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:o.color.getColorMapper()},S);var O=new r.a({style:{width:m,height:v,x:p,y:g,image:c.canvas},silent:!0});this.group.add(O)},t.type="heatmap",t}(u.a),g=a(58),f=a(124),y=a(215),m=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(n.b)(t,e),t.prototype.getInitialData=function(e,t){return Object(f.a)(this.getSource(),this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=y.a.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(g.a);function v(e){e.registerChartView(p),e.registerSeriesModel(m)}},1750:function(e,t,a){"use strict";a.d(t,"a",(function(){return I}));var n=a(3),i=a(476),r=a(82),o=a(11),s=a(108),l=a(15),u=a(21),c=a(0),d=a(163);var h=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a._layers=[],a}return Object(n.b)(t,e),t.prototype.render=function(e,t,a){var n=e.getData(),h=this,p=this.group,g=e.getLayerSeries(),f=n.getLayout("layoutInfo"),y=f.rect,m=f.boun
1daryGap;function v(e){return e.name}p.x=0,p.y=y.y+m[0];var b=new d.a(this._layersSeries||[],g,v,v),x=[];function _(t,a,c){var d=h._layers;if("remove"!==t){for(var f,y,m=[],v=[],b=g[a].indices,_=0;_<b.length;_++){var S=n.getItemLayout(b[_]),O=S.x,w=S.y0,I=S.y;m.push(O,w),v.push(O,w+I),f=n.getItemVisual(b[_],"style")}var M=n.getItemLayout(b[0]),L=e.getModel("label").get("margin"),D=e.getModel("emphasis");if("add"===t){var j=x[a]=new r.a;y=new i.a({shape:{points:m,stackedOnPoints:v,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),j.add(y),p.add(j),e.isAnimationEnabled()&&y.setClipPath(function(e,t,a){var n=new s.a({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return o.initProps(n,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,a),n}(y.getBoundingRect(),e,(function(){y.removeClipPath()})))}else{j=d[c];y=j.childAt(0),p.add(j),x[a]=j,o.updateProps(y,{shape:{points:m,stackedOnPoints:v}},e)}Object(u.h)(y,Object(u.f)(e),{labelDataIndex:b[_-1],defaultText:n.getName(b[_-1]),inheritColor:f.fill},{normal:{verticalAlign:"middle"}}),y.setTextConfig({position:null,local:!0});var A=y.getTextContent();A&&(A.x=M.x-L,A.y=M.y0+M.y/2),y.useStyle(f),n.setItemGraphicEl(a,y),Object(l.I)(y,e),Object(l.o)(y,D.get("focus"),D.get("blurScope"))}else p.remove(d[a])}b.add(Object(c.bind)(_,this,"add")).update(Object(c.bind)(_,this,"update")).remove(Object(c.bind)(_,this,"remove")).execute(),this._layersSeries=g,this._layers=x},t.type="themeRiver",t}(a(56).a),p=a(58),g=a(194),f=a(264),y=a(100),m=a(10),v=a(236),b=a(70),x=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a.useColorPaletteOnData=!0,a}return Object(n.b)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new v.a(c.bind(this.getData,this),c.bind(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,a={},n=Object(m.j)(e,(function(e){return a.hasOwnProperty(e[0]+"")||(a[e[0]+""]=-1),e[2]})),i=[];n.buckets.each((function(e,t){i.push({name:t,dataList:e})}));for(var r=i.length,o=0;o<r;++o){for(var s=i[o].name,l=0;l<i[o].dataList.length;++l){var u=i[o].dataList[l][0]+"";a[u]=o}for(var u in a)a.hasOwnProperty(u)&&a[u]!==o&&(a[u]=o,e[t]=[u,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var a=this.getReferringComponents("singleAxis",m.b).models[0].get("type"),n=c.filter(e.data,(function(e){return void 0!==e[2]})),i=this.fixData(n||[]),r=[],o=this.nameMap=c.createHashMap(),s=0,l=0;l<i.length;++l)r.push(i[l][2]),o.get(i[l][2])||(o.set(i[l][2],s),s++);var u=Object(g.a)(i,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Object(f.a)(a)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),d=new y.a(u,this);return d.initData(i),d},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),a=[],n=0;n<t;++n)a[n]=n;var i=e.mapDimension("single"),r=Object(m.j)(a,(function(t){return e.get("name",t)})),o=[];return r.buckets.each((function(t,a){t.sort((function(t,a){return e.get(i,t)-e.get(i,a)})),o.push({name:a,indices:t})})),o},t.prototype.getAxisTooltipData=function(e,t,a){c.isArray(e)||(e=e?[e]:[]);for(var n,i=this.getData(),r=this.getLayerSeries(),o=[],s=r.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,d=-1,h=r[l].indices.length,p=0;p<h;++p){var g=i.get(e[0],r[l].indices[p]),f=Math.abs(g-t);f<=u&&(n=g,u=f,d=r[l].indices[p])}o.push(d)}return{dataIndices:o,nestestValue:n}},t.prototype.formatTooltip=function(e,t,a){var n=this.getData(),i=n.getName(e),r=n.get(n.mapDimension("value"),e);return Object(b.c)("nameValue",{name:i,value:r})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(p.a),_=a(6);function S(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),a=e.coordinateSystem,n={},i=a.getRect();n.rect=i;var r=e.get("boundaryGap"),o=a.getAxis();(n.boundaryGap=r,"horizontal"===o.orient)?(r[0]=_.o(r[0],i.height),r[1]=_.o(r[1],i.height),O(t,e,i.height-r[0]-r[1])):(r[0]=_.o(r[0],i.width),r[1]=_.o(r[1],i.width),O(t,e,i.width-r[0]-r[1]));t.setLayout("layoutInfo",n)}))}function O(e,t,a){if(e.count())for(var n,i=t.coordinateSystem,r=t.getLayerSeries(),o=e.mapDimension("single"),s=e.mapDimension("value"),l=c.map(r,(function(t){return c.map(t.indices,(function(t){var a=i.dataToPoint(e.get(o,t));return a[1]=e.get(s,t),a}))}
1)),u=function(e){for(var t=e.length,a=e[0].length,n=[],i=[],r=0,o=0;o<a;++o){for(var s=0,l=0;l<t;++l)s+=e[l][o][1];s>r&&(r=s),n.push(s)}for(var u=0;u<a;++u)i[u]=(r-n[u])/2;r=0;for(var c=0;c<a;++c){var d=n[c]+i[c];d>r&&(r=d)}return{y0:i,max:r}}(l),d=u.y0,h=a/u.max,p=r.length,g=r[0].indices.length,f=0;f<g;++f){n=d[f]*h,e.setItemLayout(r[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:n,y:l[0][f][1]*h});for(var y=1;y<p;++y)n+=l[y-1][f][1]*h,e.setItemLayout(r[y].indices[f],{layerIndex:y,x:l[y][f][0],y0:n,y:l[y][f][1]*h})}}var w=a(237);function I(e){e.registerChartView(h),e.registerSeriesModel(x),e.registerLayout(S),e.registerProcessor(Object(w.a)("themeRiver"))}},1752:function(e,t,a){"use strict";a.d(t,"a",(function(){return F}));var n=a(3),i=a(0),r=a(395),o=a(108),s=a(11),l=a(82),u=a(15),c=a(71),d=a(6),h=a(56),p=a(187),g=a(21),f=a(93),y=a(23),m=["itemStyle","borderWidth"],v=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],b=new r.a;function x(e,t,a,n){var r=e.getItemLayout(t),o=a.get("symbolRepeat"),s=a.get("symbolClip"),l=a.get("symbolPosition")||"start",u=(a.get("symbolRotate")||0)*Math.PI/180||0,c=a.get("symbolPatternSize")||2,h=a.isAnimationEnabled(),p={dataIndex:t,layout:r,itemModel:a,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:s,symbolRepeat:o,symbolRepeatDirection:a.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?a:null,hoverScale:h&&a.get(["emphasis","scale"]),z2:a.getShallow("z",!0)||0};!function(e,t,a,n,r){var o,s=n.valueDim,l=e.get("symbolBoundingData"),u=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),c=u.toGlobalCoord(u.dataToCoord(0)),d=1-+(a[s.wh]<=0);if(i.isArray(l)){var h=[_(u,l[0])-c,_(u,l[1])-c];h[1]<h[0]&&h.reverse(),o=h[d]}else o=null!=l?_(u,l)-c:t?n.coordSysExtent[s.index][d]-c:a[s.wh];r.boundingLength=o,t&&(r.repeatCutLength=a[s.wh]);r.pxSign=o>0?1:o<0?-1:0}(a,o,r,n,p),function(e,t,a,n,r,o,s,l,u,c){var h,p=u.valueDim,g=u.categoryDim,f=Math.abs(a[g.wh]),y=e.getItemVisual(t,"symbolSize");h=i.isArray(y)?y.slice():null==y?["100%","100%"]:[y,y];h[g.index]=Object(d.o)(h[g.index],f),h[p.index]=Object(d.o)(h[p.index],n?f:Math.abs(o)),c.symbolSize=h,(c.symbolScale=[h[0]/l,h[1]/l])[p.index]*=(u.isHorizontal?-1:1)*s}(e,t,r,o,0,p.boundingLength,p.pxSign,c,n,p),function(e,t,a,n,i){var r=e.get(m)||0;r&&(b.attr({scaleX:t[0],scaleY:t[1],rotation:a}),b.updateTransform(),r/=b.getLineScale(),r*=t[n.valueDim.index]);i.valueLineWidth=r}(a,p.symbolScale,u,n,p);var g=p.symbolSize,f=a.get("symbolOffset");return i.isArray(f)&&(f=[Object(d.o)(f[0],g[0]),Object(d.o)(f[1],g[1])]),function(e,t,a,n,r,o,s,l,u,c,h,p){var g=h.categoryDim,f=h.valueDim,y=p.pxSign,m=Math.max(t[f.index]+l,0),v=m;if(n){var b=Math.abs(u),x=i.retrieve(e.get("symbolMargin"),"15%")+"",_=!1;x.lastIndexOf("!")===x.length-1&&(_=!0,x=x.slice(0,x.length-1));var S=Object(d.o)(x,t[f.index]),O=Math.max(m+2*S,0),w=_?0:2*S,I=Object(d.i)(n),M=I?n:R((b+w)/O);O=m+2*(S=(b-M*m)/2/(_?M:M-1)),w=_?0:2*S,I||"fixed"===n||(M=c?R((Math.abs(c)+w)/O):0),v=M*O-w,p.repeatTimes=M,p.symbolMargin=S}var L=y*(v/2),D=p.pathPosition=[];D[g.index]=a[g.wh]/2,D[f.index]="start"===s?L:"end"===s?u-L:u/2,o&&(D[0]+=o[0],D[1]+=o[1]);var j=p.bundlePosition=[];j[g.index]=a[g.xy],j[f.index]=a[f.xy];var A=p.barRectShape=i.extend({},a);A[f.wh]=y*Math.max(Math.abs(a[f.wh]),Math.abs(D[f.index]+L)),A[g.wh]=a[g.wh];var C=p.clipShape={};C[g.xy]=-a[g.xy],C[g.wh]=h.ecSize[g.wh],C[f.xy]=0,C[f.wh]=a[f.wh]}(a,g,r,o,0,f,l,p.valueLineWidth,p.boundingLength,p.repeatCutLength,n,p),p}function _(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function S(e){var t=e.symbolPatternSize,a=Object(c.a)(e.symbolType,-t/2,-t/2,t,t);return a.attr({culling:!0}),"image"!==a.type&&a.setStyle({strokeNoScale:!0}),a}function O(e,t,a,n){var i=e.__pictorialBundle,r=a.symbolSize,o=a.valueLineWidth,s=a.pathPosition,l=t.valueDim,u=a.repeatTimes||0,c=0,d=r[t.valueDim.index]+o+2*a.symbolMargin;for(P(e,(function(e){e.__pictorialAnimationIndex=c,e.__pictorialRepeatTimes=u,c<u?T(e,null,g(c),a,n):T(e,null,{scaleX:0,scaleY:0},a,n,(function(){i.remove(e)})),c++}));c<u;c++){var h=S(a);h.__pictorialAnimationIndex=c,h.__pictorialRepeatTimes=u,i.add(h);var p=g(c);T(h,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},a,n)}function g(e){var t=s.slice(),n=a.pxSign,i=e;return("start"===a.symbolRepeatDirection?n>
10:n<0)&&(i=u-1-e),t[l.index]=d*(i-u/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:a.symbolScale[0],scaleY:a.symbolScale[1],rotation:a.rotation}}}function w(e,t,a,n){var i=e.__pictorialBundle,r=e.__pictorialMainPath;r?T(r,null,{x:a.pathPosition[0],y:a.pathPosition[1],scaleX:a.symbolScale[0],scaleY:a.symbolScale[1],rotation:a.rotation},a,n):(r=e.__pictorialMainPath=S(a),i.add(r),T(r,{x:a.pathPosition[0],y:a.pathPosition[1],scaleX:0,scaleY:0,rotation:a.rotation},{scaleX:a.symbolScale[0],scaleY:a.symbolScale[1]},a,n))}function I(e,t,a){var n=i.extend({},t.barRectShape),r=e.__pictorialBarRect;r?T(r,null,{shape:n},t,a):(r=e.__pictorialBarRect=new o.a({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),e.add(r))}function M(e,t,a,n){if(a.symbolClip){var r=e.__pictorialClipPath,l=i.extend({},a.clipShape),u=t.valueDim,c=a.animationModel,d=a.dataIndex;if(r)s.updateProps(r,{shape:l},c,d);else{l[u.wh]=0,r=new o.a({shape:l}),e.__pictorialBundle.setClipPath(r),e.__pictorialClipPath=r;var h={};h[u.wh]=a.clipShape[u.wh],s[n?"updateProps":"initProps"](r,{shape:h},c,d)}}}function L(e,t){var a=e.getItemModel(t);return a.getAnimationDelayParams=D,a.isAnimationEnabled=j,a}function D(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function j(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function A(e,t,a,n){var i=new l.a,r=new l.a;return i.add(r),i.__pictorialBundle=r,r.x=a.bundlePosition[0],r.y=a.bundlePosition[1],a.symbolRepeat?O(i,t,a):w(i,0,a),I(i,a,n),M(i,t,a,n),i.__pictorialShapeStr=N(e,a),i.__pictorialSymbolMeta=a,i}function C(e,t,a,n){var r=n.__pictorialBarRect;r&&r.removeTextContent();var o=[];P(n,(function(e){o.push(e)})),n.__pictorialMainPath&&o.push(n.__pictorialMainPath),n.__pictorialClipPath&&(a=null),i.each(o,(function(e){s.removeElement(e,{scaleX:0,scaleY:0},a,t,(function(){n.parent&&n.parent.remove(n)}))})),e.setItemGraphicEl(t,null)}function N(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function P(e,t,a){i.each(e.__pictorialBundle.children(),(function(n){n!==e.__pictorialBarRect&&t.call(a,n)}))}function T(e,t,a,n,i,r){t&&e.attr(t),n.symbolClip&&!i?a&&e.attr(a):a&&s[i?"updateProps":"initProps"](e,a,n.animationModel,n.dataIndex,r)}function E(e,t,a){var n=a.dataIndex,r=a.itemModel,o=r.getModel("emphasis"),s=o.getModel("itemStyle").getItemStyle(),l=r.getModel(["blur","itemStyle"]).getItemStyle(),c=r.getModel(["select","itemStyle"]).getItemStyle(),d=r.getShallow("cursor"),h=o.get("focus"),y=o.get("blurScope"),m=o.get("scale");P(e,(function(e){if(e instanceof f.a){var t=e.style;e.useStyle(i.extend({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},a.style))}else e.useStyle(a.style);var n=e.ensureState("emphasis");n.style=s,m&&(n.scaleX=1.1*e.scaleX,n.scaleY=1.1*e.scaleY),e.ensureState("blur").style=l,e.ensureState("select").style=c,d&&(e.cursor=d),e.z2=a.z2}));var v=t.valueDim.posDesc[+(a.boundingLength>0)],b=e.__pictorialBarRect;Object(g.h)(b,Object(g.f)(r),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:Object(p.b)(t.seriesModel.getData(),n),inheritColor:a.style.fill,defaultOpacity:a.style.opacity,defaultOutsidePosition:v}),Object(u.o)(e,h,y)}function R(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var V=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(n.b)(t,e),t.prototype.render=function(e,t,a){var n=this.group,i=e.getData(),r=this._data,o=e.coordinateSystem,l=o.getBaseAxis().isHorizontal(),u=o.master.getRect(),c={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:v[+l],categoryDim:v[1-+l]};return i.diff(r).add((function(e){if(i.hasValue(e)){var t=L(i,e),a=x(i,e,t,c),r=A(i,c,a);i.setItemGraphicEl(e,r),n.add(r),E(r,c,a)}})).update((function(e,t){var a=r.getItemGraphicEl(t);if(i.hasValue(e)){var o=L(i,e),l=x(i,e,o,c),u=N(i,l);a&&u!==a.__pictorialShapeStr&&(n.remove(a),i.setItemGraphicEl(e,null),a=null),a?function(e,t,a){var n=a.animationModel,i=a.dataIndex,r=e.__pictorialBundle;s.updateProps(r,{x:a.bundlePosition[0],y:a.bundlePosition[1]},n,i),a.symbolRepeat?O(e,t,a,!0):w(e,t,a,!0);I(e,a,!0),M(e,t,a,!0)}(a,c,l):a=A(i,c,l,!0),i.setItemGraphicEl(e,a),a.__pictorialSymbolMeta=l,n.add(a),E(a,c,l)}else n.remove(a)}
1)).remove((function(e){var t=r.getItemGraphicEl(e);t&&C(r,e,t.__pictorialSymbolMeta.animationModel,t)})).execute(),this._data=i,this.group},t.prototype.remove=function(e,t){var a=this.group,n=this._data;e.get("animation")?n&&n.eachItemGraphicEl((function(t){C(n,Object(y.a)(t).dataIndex,e,t)})):a.removeAll()},t.type="pictorialBar",t}(h.a),z=a(412),k=a(94),G=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a.hasSymbolVisual=!0,a.defaultSymbol="roundRect",a}return Object(n.b)(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Object(k.d)(z.a.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,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(z.a),B=a(218);function F(e){e.registerChartView(V),e.registerSeriesModel(G),e.registerLayout(Object(i.curry)(B.c,"pictorialBar"))}},187:function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return o}));var n=a(149),i=a(0);function r(e,t){var a=e.mapDimensionsAll("defaultedLabel"),i=a.length;if(1===i){var r=Object(n.e)(e,t,a[0]);return null!=r?r+"":null}if(i){for(var o=[],s=0;s<a.length;s++)o.push(Object(n.e)(e,t,a[s]));return o.join(" ")}}function o(e,t){var a=e.mapDimensionsAll("defaultedLabel");if(!Object(i.isArray)(t))return t+"";for(var n=[],r=0;r<a.length;r++){var o=e.getDimensionInfo(a[r]);o&&n.push(t[o.index])}return n.join(" ")}},196:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n=a(10);function i(){var e=Object(n.o)();return function(t){var a=e(t),n=t.pipelineContext,i=!!a.large,r=!!a.progressiveRender,o=a.large=!(!n||!n.large),s=a.progressiveRender=!(!n||!n.progressiveRender);return!(i===o&&r===s)&&"reset"}}},198:function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var n=a(194),i=a(100),r=a(0);function o(e,t,a){t=Object(r.isArray)(t)&&{coordDimensions:t}||Object(r.extend)({},t);var o=e.getSource(),s=Object(n.a)(o,t),l=new i.a(s,e);return l.initData(o,a),l}},217:function(e,t,a){"use strict";a.d(t,"b",(function(){return s})),a.d(t,"c",(function(){return l})),a.d(t,"a",(function(){return u}));var n=a(108),i=a(11),r=a(327),o=a(6);function s(e,t,a,r,o){var s=e.getArea(),l=s.x,u=s.y,c=s.width,d=s.height,h=a.get(["lineStyle","width"])||2;l-=h/2,u-=h/2,c+=h,d+=h,l=Math.floor(l),c=Math.round(c);var p=new n.a({shape:{x:l,y:u,width:c,height:d}});if(t){var g=e.getBaseAxis(),f=g.isHorizontal(),y=g.inverse;f?(y&&(p.shape.x+=c),p.shape.width=0):(y||(p.shape.y+=d),p.shape.height=0);var m="function"==typeof o?function(e){o(e,p)}:null;i.initProps(p,{shape:{width:c,height:d,x:l,y:u}},a,null,r,m)}return p}function l(e,t,a){var n=e.getArea(),s=Object(o.u)(n.r0,1),l=Object(o.u)(n.r,1),u=new r.a({shape:{cx:Object(o.u)(e.cx,1),cy:Object(o.u)(e.cy,1),r0:s,r:l,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});t&&("angle"===e.getBaseAxis().dim?u.shape.endAngle=n.startAngle:u.shape.r=s,i.initProps(u,{shape:{endAngle:n.endAngle,r:l}},a));return u}function u(e,t,a,n,i){return e?"polar"===e.type?l(e,t,a):"cartesian2d"===e.type?s(e,t,a,n,i):null:null}},234:function(e,t,a){"use strict";var n=a(82),i=a(11),r=a(265),o=a(0),s=a(21);function l(e,t,a,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(a))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(a,"symbol")}function u(e){return null==e||Object(o.isObject)(e)||(e={isIgnore:e}),e||{}}function c(e){var t=e.hostModel,a=t.getModel("emphasis");return{emphasisItemStyle:a.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:a.get("focus"),blurScope:a.get("blurScope"),hoverScale:a.get("scale"),labelStatesModels:Object(s.f)(t),cursorStyle:t.get("cursor")}}var d=function(){function e(e){this.group=new n.a,this._SymbolCtor=e||r.a}return e.prototype.updateData=function(e,t){t=u(t);var a=this.group,n=e.hostModel,r=this._data,o=this._SymbolCtor,s=t.disableAnimation,d=c(e),h={disableAnimation:s},p=t.getSymbolPoint||function(t){return e.getItemLayout(t)};r||a.removeAll(),e.diff(r).add((function(n){var i=p(n);if(l(e,i,n,t)){var r=new o(e,n,d,h);r.setPosition(i),e.setItemGraphicEl(n,r),a.add(r)}})).update((function(u,c){var g=r.getItemGraphicEl(c),f=p(u);if(l(e,f,u,t)){if(g){g.updateData(e,u,d,h);var y={x:f[0],y:f[1]};s?g.attr(y):i.updateProps(g,y,n)}else(g=new o(e,u)).setPosition(f);a.add(g),e.setItemGraphicEl(u,g)}else a.remove(g)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&t.fadeOut((function(){a.remove(t)}))}
1)).execute(),this._getSymbolPoint=p,this._data=e},e.prototype.isPersistent=function(){return!0},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,a){var n=e._getSymbolPoint(a);t.setPosition(n),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=c(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,a){function n(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}a=u(a);for(var i=e.start;i<e.end;i++){var r=t.getItemLayout(i);if(l(t,r,i,a)){var o=new this._SymbolCtor(t,i,this._seriesScope);o.traverse(n),o.setPosition(r),this.group.add(o),t.setItemGraphicEl(i,o)}}},e.prototype.remove=function(e){var t=this.group,a=this._data;a&&e?a.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}))})):t.removeAll()},e}();t.a=d},265:function(e,t,a){"use strict";var n=a(3),i=a(71),r=a(11),o=a(82),s=a(23),l=a(15),u=a(6),c=a(187),d=a(0),h=a(21),p=a(93),g=function(e){function t(t,a,n,i){var r=e.call(this)||this;return r.updateData(t,a,n,i),r}return Object(n.b)(t,e),t.prototype._createSymbol=function(e,t,a,n,r){this.removeAll();
1var o=Object(i.a)(e,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),o.drift=f,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Object(l.r)(this.childAt(0))},t.prototype.downplay=function(){Object(l.C)(this.childAt(0))},t.prototype.setZ=function(e,t){var a=this.childAt(0);a.zlevel=e,a.z=t},t.prototype.setDraggable=function(e){var t=this.childAt(0);t.draggable=e,t.cursor=e?"move":t.cursor},t.prototype.updateData=function(e,a,n,i){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,a),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var d=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,l,d)}else{(p=this.childAt(0)).silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?p.attr(h):r.updateProps(p,h,s,a)}if(this._updateCommon(e,a,l,n,i),u){var p=this.childAt(0);if(!c){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,r.initProps(p,h,s,a)}}c&&this.childAt(0).stopAnimation("remove"),this._seriesModel=s},t.prototype._updateCommon=function(e,t,a,n,i){var r,o,s,g,f,y,m,v,b=this.childAt(0),x=e.hostModel;if(n&&(r=n.emphasisItemStyle,o=n.blurItemStyle,s=n.selectItemStyle,g=n.focus,f=n.blurScope,y=n.labelStatesModels,m=n.hoverScale,v=n.cursorStyle),!n||e.hasItemOption){var _=n&&n.itemModel?n.itemModel:e.getItemModel(t),S=_.getModel("emphasis");r=S.getModel("itemStyle").getItemStyle(),s=_.getModel(["select","itemStyle"]).getItemStyle(),o=_.getModel(["blur","itemStyle"]).getItemStyle(),g=S.get("focus"),f=S.get("blurScope"),y=Object(h.f)(_),m=S.getShallow("scale"),v=_.getShallow("cursor")}var O=e.getItemVisual(t,"symbolRotate");b.attr("rotation",(O||0)*Math.PI/180||0);var w=e.getItemVisual(t,"symbolOffset")||0;w&&(Object(d.isArray)(w)||(w=[w,w]),b.x=Object(u.o)(w[0],a[0]),b.y=Object(u.o)(Object(d.retrieve2)(w[1],w[0])||0,a[1])),v&&b.attr("cursor",v);var I=e.getItemVisual(t,"style"),M=I.fill;if(b instanceof p.a){var L=b.style;b.useStyle(Object(d.extend)({image:L.image,x:L.x,y:L.y,width:L.width,height:L.height},I))}else b.__isEmptyBrush?b.useStyle(Object(d.extend)({},I)):b.useStyle(I),b.style.decal=null,b.setColor(M,i&&i.symbolInnerColor),b.style.strokeNoScale=!0;var D=e.getItemVisual(t,"liftZ"),j=this._z2;null!=D?null==j&&(this._z2=b.z2,b.z2+=D):null!=j&&(b.z2=j,this._z2=null);var A=i&&i.useNameLabel;Object(h.h)(b,y,{labelFetcher:x,labelDataIndex:t,defaultText:function(t){return A?e.getName(t):Object(c.b)(e,t)},inheritColor:M,defaultOpacity:I.opacity}),this._sizeX=a[0]/2,this._sizeY=a[1]/2;var C=b.ensureState("emphasis");if(C.style=r,b.ensureState("select").style=s,b.ensureState("blur").style=o,m){var N=Math.max(1.1,3/this._sizeY);C.scaleX=this._sizeX*N,C.scaleY=this._sizeY*N}this.setSymbolScale(1),Object(l.o)(this,g,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t){var a=this.childAt(0),n=this._seriesModel,i=Object(s.a)(this).dataIndex,o=t&&t.animation;if(this.silent=a.silent=!0,t&&t.fadeLabel){var l=a.getTextContent();l&&r.removeElement(l,{style:{opacity:0}},n,{dataIndex:i,removeOpt:o,cb:function(){a.removeTextContent()}})}else a.removeTextContent();r.removeElement(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:i,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){var a=e.getItemVisual(t,"symbolSize");return Object(d.isArray)(a)?a.slice():[+a,+a]},t}(o.a);function f(e,t){this.parent.drift(e,t)}t.a=g},301:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a(0),i=a(49);function r(e,t){var a=e.get("borderRadius");return null==a?null:(Object(n.isArray)(a)||(a=[a,a]),{innerCornerRadius:Object(i.h)(a[0],t.r0),cornerRadius:Object(i.h)(a[1],t.r)})}},398:function(e,t,a){"use strict";function n(e,t,a){var n=e.getZoom(),i=e.getCenter(),r=t.zoom,o=e.dataToPoint(i);if(null!=t.dx&&null!=t.dy&&(o[0]-=t.dx,o[1]-=t.dy,e.setCenter(e.pointToData(o))),null!=r){if(a){var s=a.min||0,l=a.max||1/0;r=Math.max(Math.min(n*r,l),s)/n}e.scaleX*=r,e.scaleY*=r;var u=(t.originX-e.x)*(r-1),c=(t.originY-e.y)*(r-1);e.x-=u,e.y-=c,e.updateTransform(),e.setCenter(e.pointToData(o)),e.setZoom(r*n)}return{center:e.getCenter(),zoom:e.getZoom()}}a.d(t,"a",(function(){return n}))},400:function(e,t,a){"use strict";var n=a(82),i=a(408),r=a(21),o=function(){function e(e){this.group=new n.a,this._LineCtor=e||i.a}return e.prototype.isPersistent=function(){return!0},e.prototype.updateData=function(e){var t=this,a=this.group,n=this._lineData;this._lineData=e,n||a.removeAll();var i=s(e);e.diff(n).add((function(a){t._doAdd(e,a,i)})).update((function(a,r){t._doUpdate(n,e,r,a,i)})).remove((function(e){a.remove(n.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,a){t.updateLayout(e,a)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=s(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function a(e){e.isGroup||function(e){return e.animators&&e.animators.length>0}(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n<e.end;n++){if(u(t.getItemLayout(n))){var i=new this._LineCtor(t,n,this._seriesScope);i.traverse(a),this.group.add(i),t.setItemGraphicEl(n,i)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype._doAdd=function(e,t,a){if(u(e.getItemLayout(t))){var n=new this._LineCtor(e,t,a);e.setItemGraphicEl(t,n),this.group.add(n)}},e.prototype._doUpdate=function(e,t,a,n,i){var r=e.getItemGraphicEl(a);u(t.getItemLayout(n))?(r?r.updateData(t,n,i):r=new this._LineCtor(t,n,i),t.setItemGraphicEl(n,r),this.group.add(r)):this.group.remove(r)},e}();function s(e){var t=e.hostModel;return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["emphasis","lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),labelStatesModels:Object(r.f)(t)}}function l(e){return isNaN(e[0])||isNaN(e[1])}function u(e){return!l(e[0])&&!l(e[1])}t.a=o},408:function(e,t,a){"use strict";var n=a(3),i=a(0),r=a(16),o=a(71),s=a(297),l=a(691),u=a(45),c=s.a.prototype,d=l.a.prototype,h=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Object(n.b)(t,e)}(h);function p(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var g=function(e){function t(t){var a=e.call(this,t)||this;
1return a.type="ec-line",a}return Object(n.b)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new h},t.prototype.buildPath=function(e,t){p(t)?c.buildPath.call(this,e,t):d.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return p(this.shape)?c.pointAt.call(this,e):d.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,a=p(t)?[t.x2-t.x1,t.y2-t.y1]:d.tangentAt.call(this,e);return r.normalize(a,a)},t}(u.b),f=a(11),y=a(82),m=a(15),v=a(21),b=a(6),x=["fromSymbol","toSymbol"];function _(e){return"_"+e+"Type"}function S(e,t,a){var n=t.getItemVisual(a,e);if(n&&"none"!==n){var r=t.getItemVisual(a,e+"Size"),s=t.getItemVisual(a,e+"Rotate"),l=t.getItemVisual(a,e+"Offset")||0,u=t.getItemVisual(a,e+"KeepAspect"),c=Object(i.isArray)(r)?r:[r,r],d=Object(i.isArray)(l)?l:[l,l];d[0]=Object(b.o)(d[0],c[0]),d[1]=Object(b.o)(Object(i.retrieve2)(d[1],d[0]),c[1]);var h=o.a(n,-c[0]/2+d[0],-c[1]/2+d[1],c[0],c[1],null,u);return h.__specifiedRotation=null==s||isNaN(s)?void 0:+s*Math.PI/180||0,h.name=e,h}}function O(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var a=t[2];a?(e.cpx1=a[0],e.cpy1=a[1]):(e.cpx1=NaN,e.cpy1=NaN)}var w=function(e){function t(t,a,n){var i=e.call(this)||this;return i._createLine(t,a,n),i}return Object(n.b)(t,e),t.prototype._createLine=function(e,t,a){var n=e.hostModel,r=function(e){var t=new g({name:"line",subPixelOptimize:!0});return O(t.shape,e),t}(e.getItemLayout(t));r.shape.percent=0,f.initProps(r,{shape:{percent:1}},n,t),this.add(r),Object(i.each)(x,(function(a){var n=S(a,e,t);this.add(n),this[_(a)]=e.getItemVisual(t,a)}),this),this._updateCommonStl(e,t,a)},t.prototype.updateData=function(e,t,a){var n=e.hostModel,r=this.childOfName("line"),o=e.getItemLayout(t),s={shape:{}};O(s.shape,o),f.updateProps(r,s,n,t),Object(i.each)(x,(function(a){var n=e.getItemVisual(t,a),i=_(a);if(this[i]!==n){this.remove(this.childOfName(a));var r=S(a,e,t);this.add(r)}this[i]=n}),this),this._updateCommonStl(e,t,a)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,a){var n=e.hostModel,r=this.childOfName("line"),o=a&&a.emphasisLineStyle,s=a&&a.blurLineStyle,l=a&&a.selectLineStyle,u=a&&a.labelStatesModels;if(!a||e.hasItemOption){var c=e.getItemModel(t);o=c.getModel(["emphasis","lineStyle"]).getLineStyle(),s=c.getModel(["blur","lineStyle"]).getLineStyle(),l=c.getModel(["select","lineStyle"]).getLineStyle(),u=Object(v.f)(c)}var d=e.getItemVisual(t,"style"),h=d.stroke;r.useStyle(d),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=s,r.ensureState("select").style=l,Object(i.each)(x,(function(e){var t=this.childOfName(e);if(t){t.setColor(h),t.style.opacity=d.opacity;for(var a=0;a<m.g.length;a++){var n=m.g[a],i=r.getState(n);if(i){var o=i.style||{},s=t.ensureState(n),l=s.style||(s.style={});null!=o.stroke&&(l[t.__isEmptyBrush?"stroke":"fill"]=o.stroke),null!=o.opacity&&(l.opacity=o.opacity)}}t.markRedraw()}}),this);var p=n.getRawValue(t);Object(v.h)(this,u,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,a){return n.getFormattedLabel(t,a,e.dataType)}},inheritColor:h||"#000",defaultOpacity:d.opacity,defaultText:(null==p?e.getName(t):isFinite(p)?Object(b.u)(p):p)+""});var g=this.getTextContent();if(g){var f=u.normal;g.__align=g.style.align,g.__verticalAlign=g.style.verticalAlign,g.__position=f.get("position")||"middle";var y=f.get("distance");Object(i.isArray)(y)||(y=[y,y]),g.__labelDistance=y}this.setTextConfig({position:null,local:!0,inside:!1}),Object(m.o)(this)},t.prototype.highlight=function(){Object(m.r)(this)},t.prototype.downplay=function(){Object(m.C)(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");O(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this.childOfName("fromSymbol"),t=this.childOfName("toSymbol"),a=this.getTextContent();if(e||t||a&&!a.ignore){for(var n=1,i=this.parent;i;)i.scaleX&&(n/=i.scaleX),i=i.parent;var o=this.childOfName("line");if(this.__dirty||o.__dirty){var s=o.shape.percent,l=o.pointAt(0),u=o.pointAt(s),c=r.sub([],u,l);if(r.normalize(c,c),e&&(e.setPosition(l),O(e,0),e.scaleX=e.scaleY=n*s,e.markRedraw()),t&&(t.setPosition(u),O(t,1),t.scaleX=t.scaleY=n*s,t.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;
vendor: 5,409 bytes, line 1
1var d=void 0,h=void 0,p=a.__labelDistance,g=p[0]*n,f=p[1]*n,y=s/2,m=o.tangentAt(y),v=[m[1],-m[0]],b=o.pointAt(y);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]);var x=m[0]<0?-1:1;if("start"!==a.__position&&"end"!==a.__position){var _=-Math.atan2(m[1],m[0]);u[0]<l[0]&&(_=Math.PI+_),a.rotation=_}var S=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":S=-f,h="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":S=f,h="top";break;default:S=0,h="middle"}switch(a.__position){case"end":a.x=c[0]*g+u[0],a.y=c[1]*f+u[1],d=c[0]>.8?"left":c[0]<-.8?"right":"center",h=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":a.x=-c[0]*g+l[0],a.y=-c[1]*f+l[1],d=c[0]>.8?"right":c[0]<-.8?"left":"center",h=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=g*x+l[0],a.y=l[1]+S,d=m[0]<0?"right":"left",a.originX=-g*x,a.originY=-S;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=b[0],a.y=b[1]+S,d="center",a.originY=-S;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-g*x+u[0],a.y=u[1]+S,d=m[0]>=0?"right":"left",a.originX=g*x,a.originY=-S}a.scaleX=a.scaleY=n,a.setStyle({verticalAlign:a.__verticalAlign||h,align:a.__align||d})}}}function O(e,t){var a=e.__specifiedRotation;if(null==a){var n=o.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(n[1],n[0]))}else e.attr("rotation",a)}},t}(y.a);t.a=w},412:function(e,t,a){"use strict";var n=a(3),i=a(58),r=a(124),o=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(n.b)(t,e),t.prototype.getInitialData=function(e,t){return Object(r.a)(this.getSource(),this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var t=this.coordinateSystem;if(t){var a=t.dataToPoint(t.clampData(e)),n=this.getData(),i=n.getLayout("offset"),r=n.getLayout("size");return a[t.getBaseAxis().isHorizontal()?0:1]+=i+r/2,a}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(i.a);i.a.registerClass(o),t.a=o},476:function(e,t,a){"use strict";a.d(t,"b",(function(){return h})),a.d(t,"a",(function(){return g}));var n=a(3),i=a(45),r=a(126),o=a(46),s=Math.min,l=Math.max;function u(e,t){return isNaN(e)||isNaN(t)}function c(e,t,a,n,i,r,o,c,d){for(var h,p,g,f,y,m,v=a,b=0;b<n;b++){var x=t[2*v],_=t[2*v+1];if(v>=i||v<0)break;if(u(x,_)){if(d){v+=r;continue}break}if(v===a)e[r>0?"moveTo":"lineTo"](x,_),g=x,f=_;else{var S=x-h,O=_-p;if(S*S+O*O<.5){v+=r;continue}if(o>0){var w=v+r,I=t[2*w],M=t[2*w+1],L=b+1;if(d)for(;u(I,M)&&L<n;)L++,I=t[2*(w+=r)],M=t[2*w+1];var D=.5,j=0,A=0,C=void 0,N=void 0;if(L>=n||u(I,M))y=x,m=_;else{j=I-h,A=M-p;var P=x-h,T=I-x,E=_-p,R=M-_,V=void 0,z=void 0;"x"===c?(V=Math.abs(P),z=Math.abs(T),y=x-V*o,m=_,C=x+V*o,N=_):"y"===c?(V=Math.abs(E),z=Math.abs(R),y=x,m=_-V*o,C=x,N=_+V*o):(V=Math.sqrt(P*P+E*E),y=x-j*o*(1-(D=(z=Math.sqrt(T*T+R*R))/(z+V))),m=_-A*o*(1-D),N=_+A*o*D,C=s(C=x+j*o*D,l(I,x)),N=s(N,l(M,_)),C=l(C,s(I,x)),m=_-(A=(N=l(N,s(M,_)))-_)*V/z,y=s(y=x-(j=C-x)*V/z,l(h,x)),m=s(m,l(p,_)),C=x+(j=x-(y=l(y,s(h,x))))*z/V,N=_+(A=_-(m=l(m,s(p,_))))*z/V)}e.bezierCurveTo(g,f,y,m,x,_),g=C,f=N}else e.lineTo(x,_)}h=x,p=_,v+=r}return b}var d=function(){this.smooth=0,this.smoothConstraint=!0},h=function(e){function t(t){var a=e.call(this,t)||this;return a.type="ec-polyline",a}return Object(n.b)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new d},t.prototype.buildPath=function(e,t){var a=t.points,n=0,i=a.length/2;if(t.connectNulls){for(;i>0&&u(a[2*i-2],a[2*i-1]);i--);for(;n<i&&u(a[2*n],a[2*n+1]);n++);}for(;n<i;)n+=c(e,a,n,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a,n,i=this.path.data,s=r.a.CMD,l="x"===t,u=[],c=0;c<i.length;){var d=void 0,h=void 0,p=void 0,g=void 0,f=void 0,y=void 0,m=void 0;switch(i[c++]){case s.M:a=i[c++],n=i[c++];break;case s.L:if(d=i[c++],h=i[c++],(m=l?(e-a)/(d-a):(e-n)/(h-n))<=1&&m>=0){var v=l?(h-n)*m+n:(d-a)*m+a;return l?[e,v]:[v,e]}a=d,n=h;break;case s.C:d=i[c++],h=i[c++],p=i[c++],g=i[c++],f=i[c++],y=i[c++];var b=l?Object(o.f)(a,d,p,f,e,u):Object(o.f)(n,h,g,y,e,u);if(b>0)for(var x=0;x<b;x++){var _=u[x];if(_<=1&&_>=0){v=l?Object(o.a)(n,h,g,y,_):Object(o.a)(a,d,p,f,_);return l?[e,v]:[v,e]}}a=f,n=y}}},t}(i.b),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(n.b)(t,e),t}(d),g=function(e){function t(t){var a=e.call(this,t)||this;return a.type="ec-polygon",a}return Object(n.b)(t,e),t.prototype.getDefaultShape=function(){return new p},t.prototype.buildPath=function(e,t){var a=t.points,n=t.stackedOnPoints,i=0,r=a.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;r>0&&u(a[2*r-2],a[2*r-1]);r--);for(;i<r&&u(a[2*i],a[2*i+1]);i++);}for(;i<r;){var s=c(e,a,i,r,r,1,t.smooth,o,t.connectNulls);c(e,n,i+s-1,s,r,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(i.b)},570:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n=a(239);function i(e){var t=e.getData().tree,a={};t.eachNode((function(t){for(var i=t;i&&i.depth>
11;)i=i.parentNode;var r=Object(n.b)(e.ecModel,i.name||i.dataIndex+"",a);t.setVisual("decal",r)}))}},571:function(e,t,a){"use strict";a.d(t,"a",(function(){return d}));var n=a(0),i=a(100),r=a(1095),o=a(569),s=a(194),l=a(215),u=a(124),c=a(10);function d(e,t,a,d,h){for(var p=new r.a(d),g=0;g<e.length;g++)p.addNode(n.retrieve(e[g].id,e[g].name,g),g);var f=[],y=[],m=0;for(g=0;g<t.length;g++){var v=t[g],b=v.source,x=v.target;p.addEdge(b,x,m)&&(y.push(v),f.push(n.retrieve(Object(c.e)(v.id,null),b+" > "+x)),m++)}var _,S=a.get("coordinateSystem");if("cartesian2d"===S||"polar"===S)_=Object(u.a)(e,a);else{var O=l.a.get(S),w=O&&O.dimensions||[];n.indexOf(w,"value")<0&&w.concat(["value"]);var I=Object(s.a)(e,{coordDimensions:w});(_=new i.a(I,a)).initData(e)}var M=new i.a(["value"],a);return M.initData(y,f),h&&h(_,M),Object(o.a)({mainData:_,struct:p,structAttr:"graph",datas:{node:_,edge:M},datasAttr:{node:"data",edge:"edgeData"}}),p.update(),p}},572:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n=a(198),i=a(0),r=a(264),o=a(139),s=function(){function e(){}return e.prototype.getInitialData=function(e,t){var a,s,l=t.getComponent("xAxis",this.get("xAxisIndex")),u=t.getComponent("yAxis",this.get("yAxisIndex")),c=l.get("type"),d=u.get("type");"category"===c?(e.layout="horizontal",a=l.getOrdinalMeta(),s=!0):"category"===d?(e.layout="vertical",a=u.getOrdinalMeta(),s=!0):e.layout=e.layout||"horizontal";var h=["x","y"],p="horizontal"===e.layout?0:1,g=this._baseAxisDim=h[p],f=h[1-p],y=[l,u],m=y[p].get("type"),v=y[1-p].get("type"),b=e.data;if(b&&s){var x=[];i.each(b,(function(e,t){var a;i.isArray(e)?(a=e.slice(),e.unshift(t)):i.isArray(e.value)?(a=e.value.slice(),e.value.unshift(t)):a=e,x.push(a)})),e.data=x}var _=this.defaultValueDimensions,S=[{name:g,type:Object(r.a)(m),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:Object(r.a)(v),dimsDef:_.slice()}];return Object(n.a)(this,{coordDimensions:S,dimensionsCount:_.length+1,encodeDefaulter:i.curry(o.c,S,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.