/*! * build: admin-pro * copyright: chuzhixin 1204505056@qq.com * time: 2022-11-22 15:52:37 */ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-936ecb75"],{"0227":function(e,t,a){"use strict";a.d(t,"a",(function(){return Ee}));var n=a("db1f"),i=a("3cee"),o=["treemapZoomToNode","treemapRender","treemapMove"];function r(e){for(var t=0;t=0;f--){var y=p[f],v=y.node,m=y.width,b=y.text;h>d.width&&(h-=m-c,m=c,b=null);var x=new O["a"]({shape:{points:T(s,0,m,u,f===p.length-1,0===f)},style:Object(i["i"])(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new _["a"]({style:Object(L["c"])(o,{text:b})}),textConfig:{position:"inside"},z2:1e4*w["j"],onclick:Object(i["h"])(l,v)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=Object(L["c"])(r,{text:b}),x.ensureState("emphasis").style=g,Object(w["J"])(x,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(x),C(x,e,v),s+=m+M}},e.prototype.remove=function(){this.group.removeAll()},e}();function T(e,t,a,n,i,o){var r=[[i?e:e-j,t],[e+a,t],[e+a,t+n],[i?e:e-j,t+n]];return!o&&r.splice(2,0,[e+a+j,t+n/2]),!i&&r.push([e,t+n/2]),r}function C(e,t,a){Object(x["a"])(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:a&&a.dataIndex,name:a&&a.name},treePathInfo:a&&Object(n["d"])(a,t)}}var A=N,k=a("2a1b"),P=a("a772"),V=a("2897"),R=a("c78a"),E=a("6dc1"),G=a("de8a"),z=a("09a8"),H=a("1871"),B=m["a"],W=b["a"],F=3,X="label",Y="upperLabel",U=10*w["j"],Z=2*w["j"],q=3*w["j"],J=Object(E["a"])([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),K=function(e){var t=J(e);return t.stroke=t.fill=t.lineWidth=null,t},Q=Object(d["o"])(),$=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a._state="ready",a._storage=ee(),a}return Object(l["a"])(t,e),t.prototype.render=function(e,t,a,o){var r=t.findComponents({mainType:"series",subType:"treemap",query:o});if(!(Object(i["r"])(r,e)<0)){this.seriesModel=e,this.api=a,this.ecModel=t;var l=["treemapZoomToNode","treemapRootToNode"],s=n["c"](o,l,e),c=o&&o.type,u=e.layoutInfo,d=!this._oldTree,h=this._storage,p="treemapRootToNode"===c&&s&&h?{rootNodeGroup:h.nodeGroup[s.node.getRawIndex()],direction:o.direction}:null,g=this._giveContainerGroup(u),f=e.get("animation"),y=this._doRender(g,e,p);!f||d||c&&"treemapZoomToNode"!==c&&"treemapRootToNode"!==c?y.renderFinally():this._doAnimation(g,y,e,p),this._resetController(a),this._renderBreadcrumb(e,a,s)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new B,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,o=this._oldTree,r=ee(),l=ee(),s=this._storage,c=[];function u(e,n,i,o){return te(t,l,s,a,r,c,e,n,i,o)}h(n.root?[n.root]:[],o&&o.root?[o.root]:[],e,n===o||!o,0);var d=p(s);return this._oldTree=n,this._storage=l,{lastsForAnimation:r,willDeleteEls:d,renderFinally:g};function h(e,t,a,n,o){function r(e){return e.getId()}function l(i,r){var l=null!=i?e[i]:null,s=null!=r?t[r]:null,c=u(l,s,a,o);c&&h(l&&l.viewChildren||[],s&&s.viewChildren||[],c,n,o+1)}n?(t=e,Object(i["k"])(e,(function(e,t){!e.isRemoved()&&l(t,t)}))):new S["a"](t,e,r,r).add(l).update(l).remove(Object(i["h"])(l,null)).execute()}function p(e){var t=ee();return e&&Object(i["k"])(e,(function(e,a){var n=t[a];Object(i["k"])(e,(function(e){e&&(n.push(e),Q(e).willDelete=!0)}))})),t}function g(){Object(i["k"])(d,(function(e){Object(i["k"])(e,(function(e){e.parent&&e.parent.remove(e)}))})),Object(i["k"])(c,(function(e){e.invisible=!0,e.dirty()}))}},t.prototype._doAnimation=function(e,t,a,n){var o=a.get("animationDurationUpdate"),r=a.get("animationEasing"),l=(Object(i["w"])(o)?0:o)||0,s=(Object(i["w"])(r)?null:r)||"cubicOut",c=R["a"]();Object(i["k"])(t.willDeleteEls,(function(e,t){Object(i["k"])(e,(function(e,a){if(!e.invisible){var i,o=e.parent,r=Q(o);if(n&&"drillDown"===n.direction)i=o===n.rootNodeGroup?{shape:{x:0,y:0,width:r.nodeWidth,height:r.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,d=0;r.willDelete||(u=r.nodeWidth/2,d=r.nodeHeight/2),i="nodeGroup"===t?{x:u,y:d,style:{opacity:0}}:{shape:{x:u,y:d,width:0,height:0},style:{opacity:0}}}i&&c.add(e,i,l,0,s)}}))})),Object(i["k"])(this._storage,(function(e,a){Object(i["k"])(e,(function(e,n){var o=t.lastsForAnimation[a][n],r={};o&&(e instanceof m["a"]?null!=o.oldX&&(r.x=e.x,r.y=e.y,e.x=o.oldX,e.y=o.oldY):(o.oldShape&&(r.shape=Object(i["m"])({},e.shape),e.setShape(o.oldShape)),o.fadein?(e.setStyle("opacity",0),r.style={opacity:1}):1!==e.style.opacity&&(r.style={opacity:1})),c.add(e,r,l,0,s))}))}),this),this._state="animating",c.finished(Object(i["c"])((function(){this._state="ready",t.renderFinally()}),this)).start()},t.prototype._resetController=function(e){var t=this._controller;t||(t=this._controller=new k["a"](e.getZr()),t.enable(this.seriesModel.get("roam")),t.on("pan",Object(i["c"])(this._onPan,this)),t.on("zoom",Object(i["c"])(this._onZoom,this)));var a=new P["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)>F||Math.abs(e.dy)>F)){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 o=new P["a"](i.x,i.y,i.width,i.height),r=this.seriesModel.layoutInfo;t-=r.x,a-=r.y;var l=V["c"]();V["i"](l,l,[-t,-a]),V["h"](l,l,[e.scale,e.scale]),V["i"](l,l,[t,a]),o.applyTransform(l),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.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 o=i.hostTree.data.getItemModel(i.dataIndex),r=o.get("link",!0),l=o.get("target",!0)||"blank";r&&Object(H["i"])(r,l)}}}}}),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||(a={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new A(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=ee(),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,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},(function(n){var i=this._storage.background[n.getRawIndex()];if(i){var o=i.transformCoordToLocal(e,t),r=i.shape;if(!(r.x<=o[0]&&o[0]<=r.x+r.width&&r.y<=o[1]&&o[1]<=r.y+r.height))return!1;a={node:n,offsetX:o[0],offsetY:o[1]}}}),this),a},t.type="treemap",t}(G["a"]);function ee(){return{nodeGroup:[],background:[],content:[]}}function te(e,t,a,n,o,r,l,s,c,u){if(l){var h=l.getLayout(),p=e.getData(),g=l.getModel();if(p.setItemGraphicEl(l.dataIndex,null),h&&h.isInView){var f=h.width,y=h.height,v=h.borderWidth,b=h.invisible,S=l.getRawIndex(),O=s&&s.getRawIndex(),_=l.viewChildren,I=h.upperHeight,D=_&&_.length,M=g.getModel("itemStyle"),j=g.getModel(["emphasis","itemStyle"]),N=g.getModel(["blur","itemStyle"]),T=g.getModel(["select","itemStyle"]),C=M.get("borderRadius")||0,A=ne("nodeGroup",B);if(A){if(c.add(A),A.x=h.x||0,A.y=h.y||0,A.markRedraw(),Q(A).nodeWidth=f,Q(A).nodeHeight=y,h.isAboveViewRoot)return A;var k=ne("background",W,u,Z);k&&F(A,k,D&&h.upperLabelHeight);var P=g.getModel("emphasis"),V=P.get("focus"),R=P.get("blurScope"),E=P.get("disabled"),G="ancestor"===V?l.getAncestorsIndices():"descendant"===V?l.getDescendantIndices():V;if(D)Object(w["y"])(A)&&Object(w["F"])(A,!1),k&&(Object(w["F"])(k,!E),p.setItemGraphicEl(l.dataIndex,k),Object(w["p"])(k,G,R));else{var H=ne("content",W,u,q);H&&U(A,H),k.disableMorphing=!0,k&&Object(w["y"])(k)&&Object(w["F"])(k,!1),Object(w["F"])(A,!E),p.setItemGraphicEl(l.dataIndex,A),Object(w["p"])(A,G,R)}return A}}}function F(t,a,n){var i=Object(x["a"])(a);if(i.dataIndex=l.dataIndex,i.seriesIndex=e.seriesIndex,a.setShape({x:0,y:0,width:f,height:y,r:C}),b)$(a);else{a.invisible=!1;var o=l.getVisual("style"),r=o.stroke,s=K(M);s.fill=r;var c=J(j);c.fill=j.get("borderColor");var u=J(N);u.fill=N.get("borderColor");var d=J(T);if(d.fill=T.get("borderColor"),n){var h=f-2*v;ee(a,r,o.opacity,{x:v,y:0,width:h,height:I})}else a.removeTextContent();a.setStyle(s),a.ensureState("emphasis").style=c,a.ensureState("blur").style=u,a.ensureState("select").style=d,Object(w["G"])(a)}t.add(a)}function U(t,a){var n=Object(x["a"])(a);n.dataIndex=l.dataIndex,n.seriesIndex=e.seriesIndex;var i=Math.max(f-2*v,0),o=Math.max(y-2*v,0);if(a.culling=!0,a.setShape({x:v,y:v,width:i,height:o,r:C}),b)$(a);else{a.invisible=!1;var r=l.getVisual("style"),s=r.fill,c=K(M);c.fill=s,c.decal=r.decal;var u=J(j),d=J(N),h=J(T);ee(a,s,r.opacity,null),a.setStyle(c),a.ensureState("emphasis").style=u,a.ensureState("blur").style=d,a.ensureState("select").style=h,Object(w["G"])(a)}t.add(a)}function $(e){!e.invisible&&r.push(e)}function ee(t,a,n,o){var r=g.getModel(o?Y:X),s=Object(d["e"])(g.get("name"),null),c=r.getShallow("show");Object(L["g"])(t,Object(L["e"])(g,o?Y:X),{defaultText:c?s:null,inheritColor:a,defaultOpacity:n,labelFetcher:e,labelDataIndex:l.dataIndex});var u=t.getTextContent();if(u){var p=u.style,f=Object(i["M"])(p.padding||0);o&&(t.setTextConfig({layoutRect:o}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var e=Math.max((o?o.width:t.shape.width)-f[1]-f[3],0),a=Math.max((o?o.height:t.shape.height)-f[0]-f[2],0);p.width===e&&p.height===a||u.setStyle({width:e,height:a})},p.truncateMinChar=2,p.lineOverflow="truncate",te(p,o,h);var y=u.getState("emphasis");te(y?y.style:null,o,h)}}function te(t,a,n){var i=t?t.text:null;if(!a&&n.isLeafRoot&&null!=i){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+i:i}}function ne(e,n,i,r){var l=null!=O&&a[e][O],s=o[e];return l?(a[e][O]=null,ie(s,l)):b||(l=new n,l instanceof z["c"]&&(l.z2=ae(i,r)),oe(s,l)),t[e][S]=l}function ie(e,t){var a=e[S]={};t instanceof B?(a.oldX=t.x,a.oldY=t.y):a.oldShape=Object(i["m"])({},t.shape)}function oe(e,t){var a=e[S]={},i=l.parentNode,r=t instanceof m["a"];if(i&&(!n||"drillDown"===n.direction)){var s=0,c=0,u=o.background[i.getRawIndex()];!n&&u&&u.oldShape&&(s=u.oldShape.width,c=u.oldShape.height),r?(a.oldX=0,a.oldY=c):a.oldShape={x:s,y:c,width:0,height:0}}a.fadein=!r}}function ae(e,t){return e*U+t}var ne=$,ie=a("d1fc"),oe=a("ab78"),re="itemStyle",le=Object(d["o"])(),se={seriesType:"treemap",reset:function(e){var t=e.getData().tree,a=t.root;a.isRemoved()||ce(a,{},e.getViewRoot().getAncestors(),e)}};function ce(e,t,a,n){var o=e.getModel(),r=e.getLayout(),l=e.hostTree.data;if(r&&!r.invisible&&r.isInView){var s,c=o.getModel(re),u=ue(c,t,n),d=l.ensureUniqueItemVisual(e.dataIndex,"style"),h=c.get("borderColor"),p=c.get("borderColorSaturation");null!=p&&(s=de(u),h=he(p,s)),d.stroke=h;var g=e.viewChildren;if(g&&g.length){var f=ge(e,o,r,c,u,g);Object(i["k"])(g,(function(e,t){if(e.depth>=a.length||e===a[e.depth]){var i=ye(o,u,e,t,f,n);ce(e,i,a,n)}}))}else s=de(u),d.fill=s}}function ue(e,t,a){var n=Object(i["m"])({},t),o=a.designatedVisualItemStyle;return Object(i["k"])(["color","colorAlpha","colorSaturation"],(function(a){o[a]=t[a];var i=e.get(a);o[a]=null,null!=i&&(n[a]=i)})),n}function de(e){var t=pe(e,"color");if(t){var a=pe(e,"colorAlpha"),n=pe(e,"colorSaturation");return n&&(t=Object(oe["f"])(t,null,null,n)),a&&(t=Object(oe["e"])(t,a)),t}}function he(e,t){return null!=t?Object(oe["f"])(t,null,null,e):null}function pe(e,t){var a=e[t];if(null!=a&&"none"!==a)return a}function ge(e,t,a,n,i,o){if(o&&o.length){var r=fe(t,"color")||null!=i.color&&"none"!==i.color&&(fe(t,"colorAlpha")||fe(t,"colorSaturation"));if(r){var l=t.get("visualMin"),s=t.get("visualMax"),c=a.dataExtent.slice();null!=l&&lc[1]&&(c[1]=s);var u=t.get("colorMappingBy"),d={type:r.name,dataExtent:c,visual:r.range};"color"!==d.type||"index"!==u&&"id"!==u?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var h=new ie["a"](d);return le(h).drColorMappingBy=u,h}}}function fe(e,t){var a=e.get(t);return Object(i["t"])(a)&&a.length?{name:t,range:a}:null}function ye(e,t,a,n,o,r){var l=Object(i["m"])({},t);if(o){var s=o.type,c="color"===s&&le(o).drColorMappingBy,u="index"===c?n:"id"===c?r.mapIdToIndex(a.getId()):a.getValue(e.get("visualDimension"));l[s]=o.mapValueToVisual(u)}return l}var ve=a("74ca"),me=Math.max,be=Math.min,xe=i["O"],we=i["k"],Se=["itemStyle","borderWidth"],Oe=["itemStyle","gapWidth"],_e=["upperLabel","show"],Ie=["upperLabel","height"],Le={seriesType:"treemap",reset:function(e,t,a,o){var r=a.getWidth(),l=a.getHeight(),s=e.option,c=I["g"](e.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()}),u=s.size||[],d=Object(ve["o"])(xe(c.width,u[0]),r),h=Object(ve["o"])(xe(c.height,u[1]),l),p=o&&o.type,g=["treemapZoomToNode","treemapRootToNode"],f=n["c"](o,g,e),y="treemapRender"===p||"treemapMove"===p?o.rootRect:null,v=e.getViewRoot(),m=n["b"](v);if("treemapMove"!==p){var b="treemapZoomToNode"===p?ke(e,f,v,d,h):y?[y.width,y.height]:[d,h],x=s.sort;x&&"asc"!==x&&"desc"!==x&&(x="desc");var w={squareRatio:s.squareRatio,sort:x,leafDepth:s.leafDepth};v.hostTree.clearLayouts();var S={x:0,y:0,width:b[0],height:b[1],area:b[0]*b[1]};v.setLayout(S),De(v,w,!1,0),S=v.getLayout(),we(m,(function(e,t){var a=(m[t+1]||v).getValue();e.setLayout(i["m"]({dataExtent:[a,a],borderWidth:0,upperHeight:0},S))}))}var O=e.getData().tree.root;O.setLayout(Pe(c,y,f),!0),e.setLayoutInfo(c),Ve(O,new P["a"](-c.x,-c.y,r,l),m,v,0)}};function De(e,t,a,n){var i,o;if(!e.isRemoved()){var r=e.getLayout();i=r.width,o=r.height;var l=e.getModel(),s=l.get(Se),c=l.get(Oe)/2,u=Re(l),d=Math.max(s,u),h=s-c,p=d-c;e.setLayout({borderWidth:s,upperHeight:d,upperLabelHeight:u},!0),i=me(i-2*h,0),o=me(o-h-p,0);var g=i*o,f=Me(e,l,g,t,a,n);if(f.length){var y={x:h,y:p,width:i,height:o},v=be(i,o),m=1/0,b=[];b.area=0;for(var x=0,w=f.length;x=0;s--){var c=i["asc"===n?r-s-1:s].getValue();c/a*tr[1]&&(r[1]=t)}))):r=[NaN,NaN],{sum:n,dataExtent:r}}function Ce(e,t,a){for(var n=0,i=1/0,o=0,r=void 0,l=e.length;on&&(n=r));var s=e.area*e.area,c=t*t*a;return s?me(c*n/s,s/(c*i)):1/0}function Ae(e,t,a,n,i){var o=t===a.width?0:1,r=1-o,l=["x","y"],s=["width","height"],c=a[l[o]],u=t?e.area/t:0;(i||u>a[s[r]])&&(u=a[s[r]]);for(var d=0,h=e.length;dve["a"]&&(c=ve["a"]),r=o}c-1&&(c.style.stroke=c.style.fill,c.style.fill="#fff",c.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={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},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,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(o["b"]),c=s,u=a("3cee"),d=a("2273"),h=a("fb92"),p=a("cc8b");function g(e,t,a){var n=e.getBaseAxis(),i=e.getOtherAxis(n),o=f(i,a),r=n.dim,l=i.dim,s=t.mapDimension(l),c=t.mapDimension(r),d="x"===l||"radius"===l?1:0,h=Object(u["H"])(e.dimensions,(function(e){return t.mapDimension(e)})),g=!1,y=t.getCalculationInfo("stackResultDimension");return Object(p["c"])(t,h[0])&&(g=!0,h[0]=y),Object(p["c"])(t,h[1])&&(g=!0,h[1]=y),{dataDimsForPoint:h,valueStart:o,valueAxisDim:l,baseAxisDim:r,stacked:!!g,valueDim:s,baseDim:c,baseDataOffset:d,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function f(e,t){var a=0,n=e.scale.getExtent();return"start"===t?a=n[0]:"end"===t?a=n[1]:Object(u["z"])(t)&&!isNaN(t)?a=t:n[0]>0?a=n[0]:n[1]<0&&(a=n[1]),a}function y(e,t,a,n){var i=NaN;e.stacked&&(i=a.get(a.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,r=[];return r[o]=a.get(e.baseDim,n),r[1-o]=i,t.dataToPoint(r)}var v=a("b918");function m(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}function b(e,t,a,n,i,o,r,l){for(var s=m(e,t),c=[],u=[],d=[],h=[],p=[],f=[],b=[],x=g(i,t,r),w=e.getLayout("points")||[],S=t.getLayout("points")||[],O=0;Ot){n?i.push(r(n,s,t)):a&&i.push(r(a,s,0),r(a,s,t));break}a&&(i.push(r(a,s,0)),a=null),i.push(s),n=s}}return i}function H(e,t,a){var n=e.getVisual("visualMeta");if(n&&n.length&&e.count()&&"cartesian2d"===t.type){for(var i,o,r=n.length-1;r>=0;r--){var l=e.getDimensionInfo(n[r].dimension);if(i=l&&l.coordDim,"x"===i||"y"===i){o=n[r];break}}if(o){var s=t.getAxis(i),c=u["H"](o.stops,(function(e){return{coord:s.toGlobalCoord(s.dataToCoord(e.value)),color:e.color}})),d=c.length,h=o.outerColors.slice();d&&c[0].coord>c[d-1].coord&&(c.reverse(),h.reverse());var p=z(c,"x"===i?a.getWidth():a.getHeight()),g=p.length;if(!g&&d)return c[0].coord<0?h[1]?h[1]:c[d-1].color:h[0]?h[0]:c[0].color;var f=10,y=p[0].coord-f,v=p[g-1].coord+f,m=v-y;if(m<.001)return"transparent";u["k"](p,(function(e){e.offset=(e.coord-y)/m})),p.push({offset:g?p[g-1].offset:.5,color:h[1]||"transparent"}),p.unshift({offset:g?p[0].offset:.5,color:h[0]||"transparent"});var b=new x["a"](0,0,0,0,p,!0);return b[i]=y,b[i+"2"]=v,b}}}function B(e,t,a){var n=e.get("showAllSymbol"),i="auto"===n;if(!n||i){var o=a.getAxesByScale("ordinal")[0];if(o&&(!i||!W(o,t))){var r=t.mapDimension(o.dim),l={};return u["k"](o.getViewLabels(),(function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);l[t]=1})),function(e){return!l.hasOwnProperty(t.get(r,e))}}}}function W(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(),o=Math.max(1,Math.round(i/5)),r=0;rn)return!1;return!0}function F(e,t){return isNaN(e)||isNaN(t)}function X(e){for(var t=e.length/2;t>0;t--)if(!F(e[2*t-2],e[2*t-1]))break;return t-1}function Y(e,t){return[e[2*t],e[2*t+1]]}function U(e,t,a){for(var n,i,o=e.length/2,r="x"===a?0:1,l=0,s=-1,c=0;c=t||n>=t&&i<=t){s=c;break}l=c,n=i}else n=i;return{range:[l,s],t:(t-n)/(i-n)}}function Z(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var Y=f.getState("emphasis").style;Y.lineWidth=+f.style.lineWidth+1}Object(T["a"])(f).seriesIndex=e.seriesIndex,Object(M["J"])(f,W,F,X);var U=R(e.get("smooth")),Z=e.get("smoothMonotone");if(f.setShape({smooth:U,smoothMonotone:Z,connectNulls:I}),y){var J=r.getCalculationInfo("stackedOnSeries"),K=0;y.useStyle(u["i"](s.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:r.getVisual("style").decal})),J&&(K=R(J.get("smooth"))),y.setShape({smooth:U,stackedOnSmooth:K,smoothMonotone:Z,connectNulls:I}),Object(M["I"])(y,e,"areaStyle"),Object(T["a"])(y).seriesIndex=e.seriesIndex,Object(M["J"])(y,W,F,X)}var Q=function(e){n._changePolyState(e)};r.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=Q)})),this._polyline.onHoverStateChange=Q,this._data=r,this._coordSys=i,this._stackedOnPoints=O,this._points=c,this._step=N,this._valueOrigin=x,e.get("triggerLineEvent")&&(this.packEventData(e,f),y&&this.packEventData(e,y))},t.prototype.packEventData=function(e,t){Object(T["a"])(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,a,n){var i=e.getData(),o=O["u"](i,n);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var r=i.getLayout("points"),l=i.getItemGraphicEl(o);if(!l){var s=r[2*o],c=r[2*o+1];if(isNaN(s)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s,c))return;var u=e.get("zlevel")||0,d=e.get("z")||0;l=new h["a"](i,o),l.x=s,l.y=c,l.setZ(u,d);var p=l.getSymbolPath().getTextContent();p&&(p.zlevel=u,p.z=d,p.z2=this._polyline.z2+1),l.__temp=!0,i.setItemGraphicEl(o,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else I["a"].prototype.highlight.call(this,e,t,a,n)},t.prototype.downplay=function(e,t,a,n){var i=e.getData(),o=O["u"](i,n);if(this._changePolyState("normal"),null!=o&&o>=0){var r=i.getItemGraphicEl(o);r&&(r.__temp?(i.setItemGraphicEl(o,null),this.group.remove(r)):r.downplay())}else I["a"].prototype.downplay.call(this,e,t,a,n)},t.prototype._changePolyState=function(e){var t=this._polygon;Object(M["H"])(this._polyline,e),t&&Object(M["H"])(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new _["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 _["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,o=t.getBaseAxis(),r=o.inverse;"cartesian2d"===t.type?(n=o.isHorizontal(),i=!1):"polar"===t.type&&(n="angle"===o.dim,i=!0);var l=e.hostModel,s=l.get("animationDuration");u["w"](s)&&(s=s(null));var c=l.get("animationDelay")||0,d=u["w"](c)?c(null):c;e.eachItemGraphicEl((function(e,o){var l=e;if(l){var h=[e.x,e.y],p=void 0,g=void 0,f=void 0;if(a)if(i){var y=a,v=t.pointToCoord(h);n?(p=y.startAngle,g=y.endAngle,f=-v[1]/180*Math.PI):(p=y.r0,g=y.r,f=v[0])}else{var m=a;n?(p=m.x,g=m.x+m.width,f=e.x):(p=m.y+m.height,g=m.y,f=e.y)}var b=g===p?0:(f-p)/(g-p);r&&(b=1-b);var x=u["w"](c)?c(o):s*b+d,w=l.getSymbolPath(),S=w.getTextContent();l.attr({scaleX:0,scaleY:0}),l.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),S&&S.animateFrom({style:{opacity:0}},{duration:300,delay:x}),w.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,a){var n=e.getModel("endLabel");if(Z(e)){var i=e.getData(),o=this._polyline,r=i.getLayout("points");if(!r)return o.removeTextContent(),void(this._endLabel=null);var l=this._endLabel;l||(l=this._endLabel=new S["a"]({z2:200}),l.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var s=X(r);s>=0&&(Object(j["g"])(o,Object(j["e"])(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:s,defaultText:function(e,t,a){return null!=a?Object(N["a"])(i,a):Object(N["b"])(i,e)},enableTextSetter:!0},J(n,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,a,n,i,o,r){var l=this._endLabel,s=this._polyline;if(l){e<1&&null==n.originalX&&(n.originalX=l.x,n.originalY=l.y);var c=a.getLayout("points"),u=a.hostModel,d=u.get("connectNulls"),h=o.get("precision"),p=o.get("distance")||0,g=r.getBaseAxis(),f=g.isHorizontal(),y=g.inverse,v=t.shape,m=y?f?v.x:v.y+v.height:f?v.x+v.width:v.y,b=(f?p:0)*(y?-1:1),x=(f?0:-p)*(y?-1:1),w=f?"x":"y",S=U(c,m,w),_=S.range,I=_[1]-_[0],L=void 0;if(I>=1){if(I>1&&!d){var D=Y(c,_[0]);l.attr({x:D[0]+b,y:D[1]+x}),i&&(L=u.getRawValue(_[0]))}else{D=s.getPointOn(m,w);D&&l.attr({x:D[0]+b,y:D[1]+x});var M=u.getRawValue(_[0]),N=u.getRawValue(_[1]);i&&(L=O["k"](a,h,M,N,S.t))}n.lastFrameIndex=_[0]}else{var T=1===e||n.lastFrameIndex>0?_[0]:0;D=Y(c,T);i&&(L=u.getRawValue(T)),l.attr({x:D[0]+b,y:D[1]+x})}i&&Object(j["f"])(l).setLabelText(L)}},t.prototype._doUpdateAnimation=function(e,t,a,n,i,o,r){var l=this._polyline,s=this._polygon,c=e.hostModel,u=b(this._data,e,this._stackedOnPoints,t,this._coordSys,a,this._valueOrigin,o),d=u.current,h=u.stackedOnCurrent,p=u.next,g=u.stackedOnNext;if(i&&(d=G(u.current,a,i,r),h=G(u.stackedOnCurrent,a,i,r),p=G(u.next,a,i,r),g=G(u.stackedOnNext,a,i,r)),V(d,p)>3e3||s&&V(h,g)>3e3)return l.stopAnimation(),l.setShape({points:p}),void(s&&(s.stopAnimation(),s.setShape({points:p,stackedOnPoints:g})));l.shape.__points=u.current,l.shape.points=d;var f={shape:{points:p}};u.current!==d&&(f.shape.__points=u.next),l.stopAnimation(),w["h"](l,f,c),s&&(s.setShape({points:d,stackedOnPoints:h}),s.stopAnimation(),w["h"](s,{shape:{stackedOnPoints:g}},c),l.shape.points!==s.shape.points&&(s.shape.points=l.shape.points));for(var y=[],v=u.status,m=0;m=0&&(o[i[r].depth]=new x["a"](i[r],this,t));if(n&&a){var l=Object(b["a"])(n,a,this,!0,s);return l.data}function s(e,t){e.wrapMethod("getItemModel",(function(e,t){var a=e.parentModel,n=a.getData().getItemLayout(t);if(n){var i=n.depth,o=a.levelModels[i];o&&(e.parentModel=o)}return e})),t.wrapMethod("getItemModel",(function(e,t){var a=e.parentModel,n=a.getGraph().getEdgeByIndex(t),i=n.node1.getLayout();if(i){var o=i.depth,r=a.levelModels[o];r&&(e.parentModel=r)}return e}))}},t.prototype.setNodePosition=function(e,t){var a=this.option.data||this.option.nodes,n=a[e];n.localX=t[0],n.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),o=i.data,r=i.value,l=o.source+" -- "+o.target;return Object(w["c"])("nameValue",{name:l,value:r,noValue:n(r)})}var s=this.getGraph().getNodeByIndex(e),c=s.getLayout().value,u=this.getDataParams(e,a).data.name;return Object(w["c"])("nameValue",{name:null!=u?u+"":null,value:c,noValue:n(c)})},t.prototype.optionUpdated=function(){},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),o=i.getLayout().value;n.value=o}return n},t.type="series.sankey",t.defaultOption={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}(m["b"]),O=S,_=a("90b9"),I=a("ebab");function L(e,t){e.eachSeriesByType("sankey",(function(e){var a=e.get("nodeWidth"),n=e.get("nodeGap"),i=D(e,t);e.layoutInfo=i;var o=i.width,r=i.height,l=e.getGraph(),s=l.nodes,c=l.edges;j(s);var u=h["n"](s,(function(e){return 0===e.getLayout().value})),d=0!==u.length?0:e.get("layoutIterations"),p=e.get("orient"),g=e.get("nodeAlign");M(s,c,a,n,o,r,d,p,g)}))}function D(e,t){return _["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function M(e,t,a,n,i,o,r,l,s){N(e,t,a,i,o,l,s),P(e,t,o,i,n,r,l),Z(e,l)}function j(e){h["k"](e,(function(e){var t=Y(e.outEdges,X),a=Y(e.inEdges,X),n=e.getValue()||0,i=Math.max(t,a,n);e.setLayout({value:i},!0)}))}function N(e,t,a,n,i,o,r){for(var l=[],s=[],c=[],u=[],d=0,h=0;h=0;v&&y.depth>p&&(p=y.depth),f.setLayout({depth:v?y.depth:d},!0),"vertical"===o?f.setLayout({dy:a},!0):f.setLayout({dx:a},!0);for(var m=0;md-1?p:d-1;r&&"left"!==r&&C(e,r,o,O);var _="vertical"===o?(i-a)/O:(n-a)/O;k(e,_,o)}function T(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function C(e,t,a,n){if("right"===t){var i=[],o=e,r=0;while(o.length){for(var l=0;l0;o--)s*=.99,G(l,s,r),E(l,i,a,n,r),U(l,s,r),E(l,i,a,n,r)}function V(e,t){var a=[],n="vertical"===t?"y":"x",i=Object(I["j"])(e,(function(e){return e.getLayout()[n]}));return i.keys.sort((function(e,t){return e-t})),h["k"](i.keys,(function(e){a.push(i.buckets.get(e))})),a}function R(e,t,a,n,i,o){var r=1/0;h["k"](e,(function(e){var t=e.length,l=0;h["k"](e,(function(e){l+=e.getLayout().value}));var s="vertical"===o?(n-(t-1)*i)/l:(a-(t-1)*i)/l;s0&&(r=l.getLayout()[o]+s,"vertical"===i?l.setLayout({x:r},!0):l.setLayout({y:r},!0)),c=l.getLayout()[o]+l.getLayout()[d]+t;var p="vertical"===i?n:a;if(s=c-t-p,s>0){r=l.getLayout()[o]-s,"vertical"===i?l.setLayout({x:r},!0):l.setLayout({y:r},!0),c=r;for(h=u-2;h>=0;--h)l=e[h],s=l.getLayout()[o]+l.getLayout()[d]+t-c,s>0&&(r=l.getLayout()[o]-s,"vertical"===i?l.setLayout({x:r},!0):l.setLayout({y:r},!0)),c=l.getLayout()[o]}}))}function G(e,t,a){h["k"](e.slice().reverse(),(function(e){h["k"](e,(function(e){if(e.outEdges.length){var n=Y(e.outEdges,z,a)/Y(e.outEdges,X);if(isNaN(n)){var i=e.outEdges.length;n=i?Y(e.outEdges,H,a)/i:0}if("vertical"===a){var o=e.getLayout().x+(n-F(e,a))*t;e.setLayout({x:o},!0)}else{var r=e.getLayout().y+(n-F(e,a))*t;e.setLayout({y:r},!0)}}}))}))}function z(e,t){return F(e.node2,t)*e.getValue()}function H(e,t){return F(e.node2,t)}function B(e,t){return F(e.node1,t)*e.getValue()}function W(e,t){return F(e.node1,t)}function F(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function X(e){return e.getValue()}function Y(e,t,a){var n=0,i=e.length,o=-1;while(++oi&&(i=t)})),h["k"](a,(function(t){var a=new q["a"]({type:"color",mappingMethod:"linear",dataExtent:[n,i],visual:e.get("color")}),o=a.mapValueToVisual(t.getLayout().value),r=t.getModel().get(["itemStyle","color"]);null!=r?(t.setVisual("color",r),t.setVisual("style",{fill:r})):(t.setVisual("color",o),t.setVisual("style",{fill:o}))}))}}))}function K(e){e.registerChartView(v),e.registerSeriesModel(O),e.registerLayout(L),e.registerVisual(J),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])}))}))}},"2a88":function(e,t,a){"use strict";a.d(t,"a",(function(){return ie}));var n=a("08c2"),i=a("3cee"),o=a("2ecf"),r=a("c8b6"),l=a("72e6"),s=a("7717"),c=a("fb92"),u=a("90b9");function d(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var a,n,i=[t];while(a=i.pop())if(n=a.children,a.isExpand&&n.length)for(var o=n.length,r=o-1;r>=0;r--){var l=n[r];l.hierNode={defaultAncestor:null,ancestor:l,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},i.push(l)}}function h(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){v(e);var o=(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-o):e.hierNode.prelim=o}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=m(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function p(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function g(e){return arguments.length?e:O}function f(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function y(e,t){return u["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function v(e){var t=e.children,a=t.length,n=0,i=0;while(--a>=0){var o=t[a];o.hierNode.prelim+=n,o.hierNode.modifier+=n,i+=o.hierNode.change,n+=o.hierNode.shift+i}}function m(e,t,a,n){if(t){var i=e,o=e,r=o.parentNode.children[0],l=t,s=i.hierNode.modifier,c=o.hierNode.modifier,u=r.hierNode.modifier,d=l.hierNode.modifier;while(l=b(l),o=x(o),l&&o){i=b(i),r=x(r),i.hierNode.ancestor=e;var h=l.hierNode.prelim+d-o.hierNode.prelim-c+n(l,o);h>0&&(S(w(l,e,a),e,h),c+=h,s+=h),d+=l.hierNode.modifier,c+=o.hierNode.modifier,s+=i.hierNode.modifier,u+=r.hierNode.modifier}l&&!b(i)&&(i.hierNode.thread=l,i.hierNode.modifier+=d-s),o&&!x(r)&&(r.hierNode.thread=o,r.hierNode.modifier+=c-u,a=e)}return a}function b(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function x(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function w(e,t,a){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:a}function S(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 O(e,t){return e.parentNode===t.parentNode?1:2}var _=a("3470"),I=a("38e4"),L=a("be60"),D=a("2a1b"),M=a("375c"),j=a("74ca"),N=a("de8a"),T=a("aedf"),C=a("c20a"),A=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),k=function(e){function t(t){return e.call(this,t)||this}return Object(n["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new A},t.prototype.buildPath=function(e,t){var a=t.childPoints,n=a.length,i=t.parentPoint,o=a[0],r=a[n-1];if(1===n)return e.moveTo(i[0],i[1]),void e.lineTo(o[0],o[1]);var l=t.orient,s="TB"===l||"BT"===l?0:1,c=1-s,u=Object(j["o"])(t.forkPosition,1),d=[];d[s]=i[s],d[c]=i[c]+(r[c]-i[c])*u,e.moveTo(i[0],i[1]),e.lineTo(d[0],d[1]),e.moveTo(o[0],o[1]),d[s]=o[s],e.lineTo(d[0],d[1]),d[s]=r[s],e.lineTo(d[0],d[1]),e.lineTo(r[0],r[1]);for(var h=1;hS.x,I||(_-=Math.PI));var D=I?"left":"right",M=d.getModel("label"),j=M.get("rotate"),N=j*(Math.PI/180),T=x.getTextContent();T&&(x.setTextConfig({position:M.get("position")||D,rotation:null==j?-_:N,origin:"center"}),T.setStyle("verticalAlign","middle"))}var A=d.get(["emphasis","focus"]),k="relative"===A?i["e"](u.getAncestorsIndices(),u.getDescendantIndices()):"ancestor"===A?u.getAncestorsIndices():"descendant"===A?u.getDescendantIndices():null;k&&(Object(s["a"])(a).focus=k),E(o,u,g,a,m,v,b,n),a.__edge&&(a.onHoverStateChange=function(t){if("blur"!==t){var n=u.parentNode&&e.getItemGraphicEl(u.parentNode.dataIndex);n&&n.hoverState===C["d"]||Object(C["H"])(a.__edge,t)}})}function E(e,t,a,n,o,s,c,u){var d=t.getModel(),h=e.get("edgeShape"),p=e.get("layout"),g=e.getOrient(),f=e.get(["lineStyle","curveness"]),y=e.get("edgeForkPosition"),v=d.getModel("lineStyle").getLineStyle(),m=n.__edge;if("curve"===h)t.parentNode&&t.parentNode!==a&&(m||(m=n.__edge=new l["a"]({shape:B(p,g,f,o,o)})),r["h"](m,{shape:B(p,g,f,s,c)},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=[],w=0;wr&&(r=e.depth)}));var l=e.expandAndCollapse,s=l&&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<=s})),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){var n=this.getData().tree,i=n.root.children[0],o=n.getNodeByDataIndex(e),r=o.getValue(),l=o.name;while(o&&o!==i)l=o.parentNode.name+"."+l,o=o.parentNode;return Object(U["c"])("nameValue",{name:l,value:r,noValue:isNaN(r)||null==r})},t.prototype.getDataParams=function(t){var a=e.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=Object(Z["d"])(n,this),a.collapsed=!n.isExpand,a},t.type="series.tree",t.layoutMode="box",t.defaultOption={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}(F["b"]),J=q;function K(e,t,a){var n,i=[e],o=[];while(n=i.pop())if(o.push(n),n.isExpand){var r=n.children;if(r.length)for(var l=0;l=0;o--)n.push(i[o])}}function $(e,t){e.eachSeriesByType("tree",(function(e){ee(e,t)}))}function ee(e,t){var a=y(e,t);e.layoutInfo=a;var n=e.get("layout"),i=0,o=0,r=null;"radial"===n?(i=2*Math.PI,o=Math.min(a.height,a.width)/2,r=g((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(i=a.width,o=a.height,r=g());var l=e.getData().tree.root,s=l.children[0];if(s){d(l),K(s,h,r),l.hierNode.modifier=-s.hierNode.prelim,Q(s,p);var c=s,u=s,v=s;Q(s,(function(e){var t=e.getLayout().x;tu.getLayout().x&&(u=e),e.depth>v.depth&&(v=e)}));var m=c===u?1:r(c,u)/2,b=m-c.getLayout().x,x=0,w=0,S=0,O=0;if("radial"===n)x=i/(u.getLayout().x+m+b),w=o/(v.depth-1||1),Q(s,(function(e){S=(e.getLayout().x+b)*x,O=(e.depth-1)*w;var t=f(S,O);e.setLayout({x:t.x,y:t.y,rawX:S,rawY:O},!0)}));else{var _=e.getOrient();"RL"===_||"LR"===_?(w=o/(u.getLayout().x+m+b),x=i/(v.depth-1||1),Q(s,(function(e){O=(e.getLayout().x+b)*w,S="LR"===_?(e.depth-1)*x:i-(e.depth-1)*x,e.setLayout({x:S,y:O},!0)}))):"TB"!==_&&"BT"!==_||(x=i/(u.getLayout().x+m+b),w=o/(v.depth-1||1),Q(s,(function(e){S=(e.getLayout().x+b)*x,O="TB"===_?(e.depth-1)*w:o-(e.depth-1)*w,e.setLayout({x:S,y:O},!0)})))}}}function te(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),a=t.tree;a.eachNode((function(e){var a=e.getModel(),n=a.getModel("itemStyle").getItemStyle(),o=t.ensureUniqueItemVisual(e.dataIndex,"style");Object(i["m"])(o,n)}))}))}var ae=a("fdb0");function ne(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,i=n.getNodeByDataIndex(a);i.isExpand=!i.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,a){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=t.coordinateSystem,i=Object(ae["a"])(n,e,void 0,a);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}function ie(e){e.registerChartView(W),e.registerSeriesModel(J),e.registerLayout($),e.registerVisual(te),ne(e)}},"2cae":function(e,t,a){"use strict";a.d(t,"a",(function(){return T}));var n=a("08c2"),i=a("c12d"),o=a("2ecf"),r=a("c8b6"),l=a("3e0c"),s=a("c20a"),c=a("f015"),u=a("3cee"),d=a("d0ee"),h=a("de8a"),p=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a._layers=[],a}return Object(n["a"])(t,e),t.prototype.render=function(e,t,a){var n=e.getData(),l=this,h=this.group,p=e.getLayerSeries(),f=n.getLayout("layoutInfo"),y=f.rect,v=f.boundaryGap;function m(e){return e.name}h.x=0,h.y=y.y+v[0];var b=new d["a"](this._layersSeries||[],p,m,m),x=[];function w(t,a,u){var d=l._layers;if("remove"!==t){for(var f,y,v=[],m=[],b=p[a].indices,w=0;wo&&(o=l),n.push(l)}for(var c=0;co&&(o=d)}return{y0:i,max:o}}var N=a("aead");function T(e){e.registerChartView(f),e.registerSeriesModel(I),e.registerLayout(D),e.registerProcessor(Object(N["a"])("themeRiver"))}},"7ae3":function(e,t,a){"use strict";a.d(t,"a",(function(){return y}));var n=a("3f8f"),i=a("08c2"),o=a("0d42"),r=a("ed27"),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(i["a"])(t,e),t.prototype.getInitialData=function(e,t){return Object(o["a"])(null,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.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(r["b"]),s=l,c=a("2273"),u=a("71b9"),d=a("5a25"),h=a("de8a"),p=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(i["a"])(t,e),t.prototype.render=function(e,t,a){var n=e.getData(),i=this._updateSymbolDraw(n,e);i.updateData(n,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,a){var n=e.getData(),i=this._updateSymbolDraw(n,e);i.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)return{update:!0};var i=Object(d["a"])("").reset(e,t,a);i.progress&&i.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},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,i=n.large;return a&&i===this._isLargeDraw||(a&&a.remove(),a=this._symbolDraw=i?new u["a"]:new c["a"],this._isLargeDraw=i,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}(h["a"]),g=p,f=a("7649");function y(e){Object(n["a"])(f["a"]),e.registerSeriesModel(s),e.registerChartView(g),e.registerLayout(Object(d["a"])("scatter"))}},"85aa":function(e,t,a){"use strict";a.d(t,"a",(function(){return j}));var n=a("08c2"),i=a("f1c9"),o=a("84dc"),r=a("a2c9"),l=a("6149"),s=a("8c6d"),c=a("7a8a"),u=a("6023"),d={seriesType:"lines",plan:Object(u["a"])(),reset:function(e){var t=e.coordinateSystem;if(t){var a=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(i,o){var r=[];if(n){var l=void 0,s=i.end-i.start;if(a){for(var c=0,u=i.start;u0&&(s||l.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(r/10+.9,1),0)})),i.updateData(n);var c=e.get("clip",!0)&&Object(p["a"])(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,a){var n=e.getData(),i=this._updateLineDraw(n,e);i.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.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,a){var n=e.getData(),i=e.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var o=h.reset(e,t,a);o.progress&&o.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),u=!!t.get("polyline"),d=t.pipelineContext,h=d.large;return a&&n===this._hasEffet&&u===this._isPolyline&&h===this._isLargeDraw||(a&&a.remove(),a=this._lineDraw=h?new c["a"]:new i["a"](u?n?s["a"]:l["a"]:n?o["a"]:r["a"]),this._hasEffet=n,this._isPolyline=u,this._isLargeDraw=h),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(),a="svg"===t.painter.getType();a||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.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(g["a"]),y=f,v=a("ed27"),m=a("76d1"),b=a("3cee"),x=a("b256"),w="undefined"===typeof Uint32Array?Array:Uint32Array,S="undefined"===typeof Float64Array?Array:Float64Array;function O(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Object(b["H"])(t,(function(e){var t=[e[0].coord,e[1].coord],a={coords:t};return e[0].name&&(a.fromName=e[0].name),e[1].name&&(a.toName=e[1].name),Object(b["J"])([a,e[0],e[1]])})))}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(n["a"])(t,e),t.prototype.init=function(t){t.data=t.data||[],O(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(O(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(b["e"])(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Object(b["e"])(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),a=t.option instanceof Array?t.option:t.getShallow("coords");return a},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 ")})},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.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",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}(v["b"]),I=_;function L(e){return e instanceof Array||(e=[e,e]),e}var D={seriesType:"lines",reset:function(e){var t=L(e.get("symbol")),a=L(e.get("symbolSize")),n=e.getData();function i(e,t){var a=e.getItemModel(t),n=L(a.getShallow("symbol",!0)),i=L(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[1])}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?i:null}}},M=D;function j(e){e.registerChartView(y),e.registerSeriesModel(I),e.registerLayout(h),e.registerVisual(M)}},"912c":function(e,t,a){"use strict";a.d(t,"a",(function(){return N}));var n=a("3f8f"),i=a("3cee");function o(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),a=[],n=e.coordinateSystem;if(n){var o=n.getIndicatorAxes();i["k"](o,(function(e,i){t.each(t.mapDimension(o[i].dim),(function(e,t){a[t]=a[t]||[];var o=n.dataToPoint(e,i);a[t][i]=r(o)?o:l(n)}))})),t.each((function(e){var o=i["o"](a[e],(function(e){return r(e)}))||l(n);a[e].push(o.slice()),t.setItemLayout(e,a[e])}))}}))}function r(e){return!isNaN(e[0])&&!isNaN(e[1])}function l(e){return[e.cx,e.cy]}var s=a("aead");function c(e){var t=e.polar;if(t){i["t"](t)||(t=[t]);var a=[];i["k"](t,(function(t,n){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],i["t"](e.radar)||(e.radar=[e.radar]),e.radar.push(t)):a.push(t)})),e.polar=a}i["k"](e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}var u=a("08c2"),d=a("89b2"),h=a("a209"),p=a("b307"),g=a("c8b6"),f=a("2ecf"),y=a("c20a"),v=a("a175"),m=a("de8a"),b=a("f015"),x=a("16c8"),w=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(u["a"])(t,e),t.prototype.render=function(e,t,a){var n=e.coordinateSystem,o=this.group,r=e.getData(),l=this._data;function s(e,t){var a=e.getItemVisual(t,"symbol")||"circle";if("none"!==a){var n=v["c"](e.getItemVisual(t,"symbolSize")),i=v["a"](a,-1,-1,2,2),o=e.getItemVisual(t,"symbolRotate")||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:n[0]/2,scaleY:n[1]/2,rotation:o*Math.PI/180||0}),i}}function c(t,a,n,i,o,r){n.removeAll();for(var l=0;la?r:o,u=Math.abs(s.label.y-a);if(u>=c.maxY){var d=s.label.x-t-s.len2*i,h=n+s.len,g=Math.abs(d)e.unconstrainedWidth?null:p:null;n.setStyle("width",g)}var f=n.getBoundingRect();o.width=f.width;var y=(n.style.margin||0)+2.1;o.height=f.height+y,o.y-=(o.height-d)/2}}}function D(e){return"center"===e.position}function M(e){var t,a,n=e.getData(),o=[],l=!1,s=(e.get("minShowLabelAngle")||0)*O,c=n.getLayout("viewRect"),u=n.getLayout("r"),d=c.width,h=c.x,p=c.y,g=c.height;function f(e){e.ignore=!0}function y(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}n.each((function(e){var c=n.getItemGraphicEl(e),p=c.shape,g=c.getTextContent(),v=c.getTextGuideLine(),m=n.getItemModel(e),b=m.getModel("label"),w=b.get("position")||m.get(["emphasis","label","position"]),S=b.get("distanceToLabelLine"),O=b.get("alignTo"),_=Object(i["o"])(b.get("edgeDistance"),d),I=b.get("bleedMargin"),L=m.getModel("labelLine"),D=L.get("length");D=Object(i["o"])(D,d);var M=L.get("length2");if(M=Object(i["o"])(M,d),Math.abs(p.endAngle-p.startAngle)0?"right":"left":k>0?"left":"right"}var W=Math.PI,F=0,X=b.get("rotate");if(Object(r["z"])(X))F=X*(W/180);else if("center"===w)F=0;else if("radial"===X||!0===X){var Y=k<0?-A+W:-A;F=Y}else if("tangential"===X&&"outside"!==w&&"outer"!==w){var U=Math.atan2(k,P);U<0&&(U=2*W+U);var Z=P>0;Z&&(U=W+U),F=U-W}if(l=!!F,g.x=j,g.y=N,g.rotation=F,g.setStyle({verticalAlign:"middle"}),V){g.setStyle({align:C});var q=g.states.select;q&&(q.x+=g.x,q.y+=g.y)}else{var J=g.getBoundingRect().clone();J.applyTransform(g.getComputedTransform());var K=(g.style.margin||0)+2.1;J.y-=K/2,J.height+=K,o.push({label:g,labelLine:v,position:w,len:D,len2:M,minTurnAngle:L.get("minTurnAngle"),maxSurfaceAngle:L.get("maxSurfaceAngle"),surfaceNormal:new x["a"](k,P),linePoints:T,textAlign:C,labelDistance:S,labelAlignTo:O,edgeDistance:_,bleedMargin:I,rect:J,unconstrainedWidth:J.width,labelStyleWidth:g.style.width})}c.setTextConfig({inside:V})}})),!l&&e.get("avoidLabelOverlap")&&I(o,t,a,u,d,g,h,p);for(var v=0;v0){for(var s=o.getItemLayout(0),c=1;isNaN(s&&s.startAngle)&&c=n.r0}},t.type="pie",t}(b["a"]),A=C,k=a("7b35"),P=a("ebab"),V=a("b214"),R=a("c4b0"),E=a("ed27"),G=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(p["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new R["a"](r["c"](this.getData,this),r["c"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){var e=Object(k["a"])(this,{coordDimensions:["value"],encodeDefaulter:r["h"](V["d"],this)}),t=[];return e.each(e.mapDimension("value"),(function(e){t.push(e)})),this.seats=Object(i["e"])(t,e.hostModel.get("percentPrecision")),e},t.prototype.getDataParams=function(t){var a=e.prototype.getDataParams.call(this,t);return a.percent=this.seats[t],a.$vars.push("percent"),a},t.prototype._defaultLabelLine=function(e){P["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={z:2,legendHoverLink:!0,colorBy:"data",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,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(E["b"]),z=G,H=a("fa31");function B(e){e.registerChartView(A),e.registerSeriesModel(z),Object(n["a"])("pie",e.registerAction),e.registerLayout(Object(r["h"])(d,"pie")),e.registerProcessor(Object(h["a"])("pie")),e.registerProcessor(Object(H["a"])("pie"))}},b89d:function(e,t,a){"use strict";a.d(t,"a",(function(){return C}));var n=a("3f8f"),i=a("08c2"),o=a("2ecf"),r=a("c8b6"),l=a("3e0c"),s=a("b307"),c=a("c20a"),u=a("de8a"),d=a("74ca"),h=a("3cee"),p=.3,g=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a._dataGroup=new o["a"],a._initialized=!1,a}return Object(i["a"])(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,a,n){this._progressiveEls=null;var i=this._dataGroup,o=e.getData(),l=this._data,s=e.coordinateSystem,c=s.dimensions,u=m(e);function d(e){var t=v(o,i,e,c,s);b(t,o,e,u)}function h(t,a){var n=l.getItemGraphicEl(a),i=y(o,t,c,s);o.setItemGraphicEl(t,n),r["h"](n,{shape:{points:i}},e,t),Object(r["g"])(n),b(n,o,t,u)}function p(e){var t=l.getItemGraphicEl(e);i.remove(t)}if(o.diff(l).add(d).update(h).remove(p).execute(),!this._initialized){this._initialized=!0;var g=f(s,e,(function(){setTimeout((function(){i.removeClipPath()}))}));i.setClipPath(g)}this._data=o},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,o=i.dimensions,r=m(t),l=this._progressiveEls=[],s=e.start;sMath.PI/2?"right":"left"):I&&"center"!==I?"left"===I?(x=o.r0+_,l>Math.PI/2&&(I="right")):"right"===I&&(x=o.r-_,l>Math.PI/2&&(I="left")):(x=r===2*Math.PI&&0===o.r0?0:(o.r+o.r0)/2,I="center"),y.style.align=I,y.style.verticalAlign=v(c,"verticalAlign")||"middle",y.x=x*s+o.cx,y.y=x*d+o.cy;var L=v(c,"rotate"),D=0;"radial"===L?(D=-l,D<-Math.PI/2&&(D+=Math.PI)):"tangential"===L?(D=Math.PI/2-l,D>Math.PI/2?D-=Math.PI:D<-Math.PI/2&&(D+=Math.PI)):i["z"](L)&&(D=L*Math.PI/180),y.rotation=D})),p.dirtyStyle()},t}(s["a"]),v=y,m=a("d0ee"),b=a("db1f"),x="sunburstRootToNode",w="sunburstHighlight",S="sunburstUnhighlight";function O(e){e.registerAction({type:x,update:"updateView"},(function(e,t){function a(t,a){var n=Object(b["c"])(e,[x],t);if(n){var i=t.getViewRoot();i&&(e.direction=Object(b["a"])(i,n.node)?"rollUp":"drillDown"),t.resetViewRoot(n.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},a)})),e.registerAction({type:w,update:"none"},(function(e,t,a){function n(t){var a=Object(b["c"])(e,[w],t);a&&(e.dataIndex=a.node.dataIndex)}e=Object(i["m"])({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},n),a.dispatchAction(Object(i["m"])(e,{type:"highlight"}))})),e.registerAction({type:S,update:"updateView"},(function(e,t,a){e=Object(i["m"])({},e),a.dispatchAction(Object(i["m"])(e,{type:"downplay"}))}))}var _=a("1871"),I=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(n["a"])(t,e),t.prototype.render=function(e,t,a,n){var o=this;this.seriesModel=e,this.api=a,this.ecModel=t;var r=e.getData(),l=r.tree.root,s=e.getViewRoot(),c=this.group,u=e.get("renderLabelForZeroData"),d=[];s.eachNode((function(e){d.push(e)}));var h=this._oldChildren||[];function p(e,t){function a(e){return e.getId()}function n(a,n){var i=null==a?null:e[a],o=null==n?null:t[n];g(i,o)}0===e.length&&0===t.length||new m["a"](t,e,a,a).add(n).update(n).remove(i["h"](n,null)).execute()}function g(n,i){if(u||!n||n.getValue()||(n=null),n!==l&&i!==l)if(i&&i.piece)n?(i.piece.updateData(!1,n,e,t,a),r.setItemGraphicEl(n.dataIndex,i.piece)):f(i);else if(n){var o=new v(n,e,t,a);c.add(o),r.setItemGraphicEl(n.dataIndex,o)}}function f(e){e&&e.piece&&(c.remove(e.piece),e.piece=null)}function y(n,i){i.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,n,e,t,a):(o.virtualPiece=new v(n,e,t,a),c.add(o.virtualPiece)),i.piece.off("click"),o.virtualPiece.on("click",(function(e){o._rootToNode(i.parentNode)}))):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}p(d,h),y(l,s),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,n=e.seriesModel.getViewRoot();n.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 o=n.getModel(),r=o.get("link");if(r){var l=o.get("target",!0)||"_blank";Object(_["i"])(r,l)}}a=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:x,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var a=t.getData(),n=a.getItemLayout(0);if(n){var i=e[0]-n.cx,o=e[1]-n.cy,r=Math.sqrt(i*i+o*o);return r<=n.r&&r>=n.r0}},t.type="sunburst",t}(o["a"]),L=I,D=a("ed27"),M=a("54d2"),j=a("171a"),N=a("58af"),T=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["a"])(t,e),t.prototype.getInitialData=function(e,t){var a={name:e.name,children:e.data};C(a);var n=this._levelModels=i["H"](e.levels||[],(function(e){return new j["a"](e,this,t)}),this),o=M["a"].createTree(a,this,r);function r(e){e.wrapMethod("getItemModel",(function(e,t){var a=o.getNodeByDataIndex(t),i=n[a.depth];return i&&(e.parentModel=i),e}))}return o.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(b["d"])(n,this),a},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},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(N["a"])(this)},t.type="series.sunburst",t.defaultOption={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}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(D["b"]);function C(e){var t=0;i["k"](e.children,(function(e){C(e);var a=e.value;i["t"](a)&&(a=a[0]),t+=a}));var a=e.value;i["t"](a)&&(a=a[0]),(null==a||isNaN(a))&&(a=t),a<0&&(a=0),i["t"](e.value)?e.value[0]=a:e.value=a}var A=T,k=a("74ca"),P=Math.PI/180;function V(e,t,a){t.eachSeriesByType(e,(function(e){var t=e.get("center"),n=e.get("radius");i["t"](n)||(n=[0,n]),i["t"](t)||(t=[t,t]);var o=a.getWidth(),r=a.getHeight(),l=Math.min(o,r),s=Object(k["o"])(t[0],o),c=Object(k["o"])(t[1],r),u=Object(k["o"])(n[0],l/2),d=Object(k["o"])(n[1],l/2),h=-e.get("startAngle")*P,p=e.get("minAngle")*P,g=e.getData().tree.root,f=e.getViewRoot(),y=f.depth,v=e.get("sort");null!=v&&R(f,v);var m=0;i["k"](f.children,(function(e){!isNaN(e.getValue())&&m++}));var b=f.getValue(),x=Math.PI/(b||m)*2,w=f.depth>0,S=f.height-(w?-1:1),O=(d-u)/(S||1),_=e.get("clockwise"),I=e.get("stillShowZeroSum"),L=_?1:-1,D=function(t,a){if(t){var n=a;if(t!==g){var o=t.getValue(),r=0===b&&I?x:o*x;r1)o=o.parentNode;var r=a.getColorFromPalette(o.name||o.dataIndex+"",t);return e.depth>1&&Object(i["C"])(r)&&(r=Object(G["c"])(r,(e.depth-1)/(n-1)*.5)),r}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(o){var r=o.getModel(),l=r.getModel("itemStyle").getItemStyle();l.fill||(l.fill=a(o,e,n.root.height));var s=t.ensureUniqueItemVisual(o.dataIndex,"style");Object(i["m"])(s,l)}))}))}var H=a("aead");function B(e){e.registerChartView(L),e.registerSeriesModel(A),e.registerLayout(Object(i["h"])(V,"sunburst")),e.registerProcessor(Object(i["h"])(H["a"],"sunburst")),e.registerVisual(z),O(e)}},c12d:function(e,t,a){"use strict";a.d(t,"b",(function(){return h})),a.d(t,"a",(function(){return g}));var n=a("08c2"),i=a("aedf"),o=a("186b"),r=a("346f"),l=Math.min,s=Math.max;function c(e,t){return isNaN(e)||isNaN(t)}function u(e,t,a,n,i,o,r,u,d){for(var h,p,g,f,y,v,m=a,b=0;b=i||m<0)break;if(c(x,w)){if(d){m+=o;continue}break}if(m===a)e[o>0?"moveTo":"lineTo"](x,w),g=x,f=w;else{var S=x-h,O=w-p;if(S*S+O*O<.5){m+=o;continue}if(r>0){var _=m+o,I=t[2*_],L=t[2*_+1];while(I===x&&L===w&&b=n||c(I,L))y=x,v=w;else{j=I-h,N=L-p;var A=x-h,k=I-x,P=w-p,V=L-w,R=void 0,E=void 0;if("x"===u){R=Math.abs(A),E=Math.abs(k);var G=j>0?1:-1;y=x-G*R*r,v=w,T=x+G*E*r,C=w}else if("y"===u){R=Math.abs(P),E=Math.abs(V);var z=N>0?1:-1;y=x,v=w-z*R*r,T=x,C=w+z*E*r}else R=Math.sqrt(A*A+P*P),E=Math.sqrt(k*k+V*V),M=E/(E+R),y=x-j*r*(1-M),v=w-N*r*(1-M),T=x+j*r*M,C=w+N*r*M,T=l(T,s(I,x)),C=l(C,s(L,w)),T=s(T,l(I,x)),C=s(C,l(L,w)),j=T-x,N=C-w,y=x-j*R/E,v=w-N*R/E,y=l(y,s(h,x)),v=l(v,s(p,w)),y=s(y,l(h,x)),v=s(v,l(p,w)),j=x-y,N=w-v,T=x+j*E/R,C=w+N*E/R}e.bezierCurveTo(g,f,y,v,x,w),g=T,f=C}else e.lineTo(x,w)}h=x,p=w,m+=o}return b}var d=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),h=function(e){function t(t){var a=e.call(this,t)||this;return a.type="ec-polyline",a}return Object(n["a"])(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;i--)if(!c(a[2*i-2],a[2*i-1]))break;for(;n=0){var x=c?(g-n)*b+n:(p-a)*b+a;return c?[e,x]:[x,e]}a=p,n=g;break;case s.C:p=l[d++],g=l[d++],f=l[d++],y=l[d++],v=l[d++],m=l[d++];var w=c?Object(r["f"])(a,p,f,v,e,u):Object(r["f"])(n,g,y,m,e,u);if(w>0)for(var S=0;S=0){x=c?Object(r["a"])(n,g,y,m,O):Object(r["a"])(a,p,f,v,O);return c?[e,x]:[x,e]}}a=v,n=m;break}}},t}(i["b"]),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(n["a"])(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["a"])(t,e),t.prototype.getDefaultShape=function(){return new p},t.prototype.buildPath=function(e,t){var a=t.points,n=t.stackedOnPoints,i=0,o=a.length/2,r=t.smoothMonotone;if(t.connectNulls){for(;o>0;o--)if(!c(a[2*o-2],a[2*o-1]))break;for(;i-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={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}(g["b"]),x=b;function w(e,t){var a={};return h["k"](e,(function(e){e.each(e.mapDimension("value"),(function(t,n){var i="ec-"+e.getName(n);a[i]=a[i]||[],isNaN(t)||a[i].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(n,i){for(var o,r="ec-"+e[0].getName(i),l=0,s=1/0,c=-1/0,u=a[r].length,d=0;d