chunk-0aa3293a.c57e601b.js 68 KB

123456
  1. /*!
  2. * build: Hopaheal
  3. * copyright: Mead
  4. * time: 2022-9-23 10:41:22
  5. */
  6. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0aa3293a"],{3499:function(e,t,a){"use strict";a.d(t,"a",(function(){return f}));var o=a("7b1d"),n=a("08c2"),i=a("773a"),r=a("e241"),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["a"])(t,e),t.prototype.getInitialData=function(e,t){return Object(i["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,d=a("c492"),u=a("8465"),c=a("cf04"),h=a("a2d24"),p=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){var o=e.getData(),n=this._updateSymbolDraw(o,e);n.updateData(o,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,a){var o=e.getData(),n=this._updateSymbolDraw(o,e);n.incrementalPrepareUpdate(o),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 o=e.getData();if(this.group.dirty(),!this._finished||o.count()>1e4)return{update:!0};var n=Object(c["a"])("").reset(e,t,a);n.progress&&n.progress({start:0,end:o.count(),count:o.count()},o),this._symbolDraw.updateLayout(o)},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,o=t.pipelineContext,n=o.large;return a&&n===this._isLargeDraw||(a&&a.remove(),a=this._symbolDraw=n?new u["a"]:new d["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}(h["a"]),g=p,y=a("4ae6");function f(e){Object(o["a"])(y["a"]),e.registerSeriesModel(s),e.registerChartView(g),e.registerLayout(Object(c["a"])("scatter"))}},"479e":function(e,t,a){"use strict";a.d(t,"a",(function(){return T}));var o=a("08c2"),n=a("b339"),i=a("19da"),r=a("21dd"),l=a("97c5"),s=a("c7f9"),d=a("eae5"),u=a("ba54"),c=a("9bbf"),h=a("a2d24"),p=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a._layers=[],a}return Object(o["a"])(t,e),t.prototype.render=function(e,t,a){var o=e.getData(),l=this,h=this.group,p=e.getLayerSeries(),y=o.getLayout("layoutInfo"),f=y.rect,v=y.boundaryGap;function m(e){return e.name}h.x=0,h.y=f.y+v[0];var b=new c["a"](this._layersSeries||[],p,m,m),x=[];function w(t,a,u){var c=l._layers;if("remove"!==t){for(var y,f,v=[],m=[],b=p[a].indices,w=0;w<b.length;w++){var I=o.getItemLayout(b[w]),L=I.x,_=I.y0,M=I.y;v.push(L,_),m.push(L,_+M),y=o.getItemVisual(b[w],"style")}var O=o.getItemLayout(b[0]),N=e.getModel("label"),S=N.get("margin"),j=e.getModel("emphasis");if("add"===t){var D=x[a]=new i["a"];f=new n["a"]({shape:{points:v,stackedOnPoints:m,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),D.add(f),h.add(D),e.isAnimationEnabled()&&f.setClipPath(g(f.getBoundingRect(),e,(function(){f.removeClipPath()})))}else{D=c[u];f=D.childAt(0),h.add(D),x[a]=D,r["h"](f,{shape:{points:v,stackedOnPoints:m}},e),Object(r["g"])(f)}Object(d["g"])(f,Object(d["e"])(e),{labelDataIndex:b[w-1],defaultText:o.getName(b[w-1]),inheritColor:y.fill},{normal:{verticalAlign:"middle"}}),f.setTextConfig({position:null,local:!0});var T=f.getTextContent();T&&(T.x=O.x-S,T.y=O.y0+O.y/2),f.useStyle(y),o.setItemGraphicEl(a,f),Object(s["I"])(f,e),Object(s["J"])(f,j.get("focus"),j.get("blurScope"),j.get("disabled"))}else h.remove(c[a])}b.add(Object(u["c"])(w,this,"add")).update(Object(u["c"])(w,this,"update")).remove(Object(u["c"])(w,this,"remove")).execute(),this._layersSeries=p,this._layers=x},t.type="themeRiver",t}(h["a"]);function g(e,t,a){var o=new l["a"]({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return r["c"](o,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,a),o}var y=p,f=a("e241"),v=a("8187"),m=a("6bd7"),b=a("3ff4"),x=a("6d8b"),w=a("5ee72"),I=a("4a78"),L=2,_=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(o["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new w["a"](u["c"](this.getData,this),u["c"](this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,a={},o=Object(x["j"])(e,(function(e){return a.hasOwnProperty(e[0]+"")||(a[e[0]+""]=-1),e[2]})),n=[];o.buckets.each((function(e,t){n.push({name:t,dataList:e})}));for(var i=n.length,r=0;r<i;++r){for(var l=n[r].name,s=0;s<n[r].dataList.length;++s){var d=n[r].dataList[s][0]+"";a[d]=r}for(var d in a)a.hasOwnProperty(d)&&a[d]!==r&&(a[d]=r,e[t]=[d,0,l],t++)}return e},t.prototype.getInitialData=function(e,t){for(var a=this.getReferringComponents("singleAxis",x["b"]).models[0],o=a.get("type"),n=u["n"](e.data,(function(e){return void 0!==e[2]})),i=this.fixData(n||[]),r=[],l=this.nameMap=u["f"](),s=0,d=0;d<i.length;++d)r.push(i[d][L]),l.get(i[d][L])||(l.set(i[d][L],s),s++);var c=Object(v["a"])(i,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Object(m["a"])(o)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new b["a"](c,this);return h.initData(i),h},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),a=[],o=0;o<t;++o)a[o]=o;var n=e.mapDimension("single"),i=Object(x["j"])(a,(function(t){return e.get("name",t)})),r=[];return i.buckets.each((function(t,a){t.sort((function(t,a){return e.get(n,t)-e.get(n,a)})),r.push({name:a,indices:t})})),r},t.prototype.getAxisTooltipData=function(e,t,a){u["t"](e)||(e=e?[e]:[]);for(var o,n=this.getData(),i=this.getLayerSeries(),r=[],l=i.length,s=0;s<l;++s){for(var d=Number.MAX_VALUE,c=-1,h=i[s].indices.length,p=0;p<h;++p){var g=n.get(e[0],i[s].indices[p]),y=Math.abs(g-t);y<=d&&(o=g,d=y,c=i[s].indices[p])}r.push(c)}return{dataIndices:r,nestestValue:o}},t.prototype.formatTooltip=function(e,t,a){var o=this.getData(),n=o.getName(e),i=o.get(o.mapDimension("value"),e);return Object(I["c"])("nameValue",{name:n,value:i})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(f["b"]),M=_,O=a("fa5c");function N(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),a=e.coordinateSystem,o={},n=a.getRect();o.rect=n;var i=e.get("boundaryGap"),r=a.getAxis();if(o.boundaryGap=i,"horizontal"===r.orient){i[0]=O["o"](i[0],n.height),i[1]=O["o"](i[1],n.height);var l=n.height-i[0]-i[1];S(t,e,l)}else{i[0]=O["o"](i[0],n.width),i[1]=O["o"](i[1],n.width);var s=n.width-i[0]-i[1];S(t,e,s)}t.setLayout("layoutInfo",o)}))}function S(e,t,a){if(e.count())for(var o,n=t.coordinateSystem,i=t.getLayerSeries(),r=e.mapDimension("single"),l=e.mapDimension("value"),s=u["H"](i,(function(t){return u["H"](t.indices,(function(t){var a=n.dataToPoint(e.get(r,t));return a[1]=e.get(l,t),a}))})),d=j(s),c=d.y0,h=a/d.max,p=i.length,g=i[0].indices.length,y=0;y<g;++y){o=c[y]*h,e.setItemLayout(i[0].indices[y],{layerIndex:0,x:s[0][y][0],y0:o,y:s[0][y][1]*h});for(var f=1;f<p;++f)o+=s[f-1][y][1]*h,e.setItemLayout(i[f].indices[y],{layerIndex:f,x:s[f][y][0],y0:o,y:s[f][y][1]*h})}}function j(e){for(var t=e.length,a=e[0].length,o=[],n=[],i=0,r=0;r<a;++r){for(var l=0,s=0;s<t;++s)l+=e[s][r][1];l>i&&(i=l),o.push(l)}for(var d=0;d<a;++d)n[d]=(i-o[d])/2;i=0;for(var u=0;u<a;++u){var c=o[u]+n[u];c>i&&(i=c)}return{y0:n,max:i}}var D=a("9271");function T(e){e.registerChartView(y),e.registerSeriesModel(M),e.registerLayout(N),e.registerProcessor(Object(D["a"])("themeRiver"))}},5563:function(e,t,a){"use strict";a.d(t,"a",(function(){return Ee}));var o=a("ea49"),n=a("ba54"),i=["treemapZoomToNode","treemapRender","treemapMove"];function r(e){for(var t=0;t<i.length;t++)e.registerAction({type:i[t],update:"updateView"},n["L"]);e.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){function a(t,a){var n=["treemapZoomToNode","treemapRootToNode"],i=o["c"](e,n,t);if(i){var r=t.getViewRoot();r&&(e.direction=o["a"](r,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}t.eachComponent({mainType:"series",subType:"treemap",query:e},a)}))}var l=a("08c2"),s=a("e241"),d=a("29e2"),u=a("d0e2"),c=a("6d8b"),h=a("4a78"),p=a("9998"),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(l["a"])(t,e),t.prototype.getInitialData=function(e,t){var a={name:e.name,children:e.data};y(a);var o=e.levels||[],i=this.designatedVisualItemStyle={},r=new u["a"]({itemStyle:i},this,t);o=e.levels=f(o,t);var l=n["H"](o||[],(function(e){return new u["a"](e,r,t)}),this),s=d["a"].createTree(a,this,c);function c(e){e.wrapMethod("getItemModel",(function(e,t){var a=s.getNodeByDataIndex(t),o=a?l[a.depth]:null;return e.parentModel=o||r,e}))}return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,a){var o=this.getData(),n=this.getRawValue(e),i=o.getName(e);return Object(h["c"])("nameValue",{name:i,value:n})},t.prototype.getDataParams=function(t){var a=e.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=Object(o["d"])(n,this),a.treePathInfo=a.treeAncestors,a},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},n["m"](this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=n["f"](),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%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(s["b"]);function y(e){var t=0;n["k"](e.children,(function(e){y(e);var a=e.value;n["t"](a)&&(a=a[0]),t+=a}));var a=e.value;n["t"](a)&&(a=a[0]),(null==a||isNaN(a))&&(a=t),a<0&&(a=0),n["t"](e.value)?e.value[0]=a:e.value=a}function f(e,t){var a=Object(c["r"])(t.get("color")),o=Object(c["r"])(t.get(["aria","decal","decals"]));if(a){var i,r;e=e||[],n["k"](e,(function(e){var t=new u["a"](e),a=t.get("color"),o=t.get("decal");(t.get(["itemStyle","color"])||a&&"none"!==a)&&(i=!0),(t.get(["itemStyle","decal"])||o&&"none"!==o)&&(r=!0)}));var l=e[0]||(e[0]={});return i||(l.color=a.slice()),!r&&o&&(l.decal=o.slice()),e}}var v=g,m=a("19da"),b=a("97c5"),x=a("aa7d"),w=a("c7f9"),I=a("9bbf"),L=a("9c3a"),_=a("bf392"),M=a("70b8"),O=8,N=8,S=5,j=function(){function e(e){this.group=new m["a"],e.add(this.group)}return e.prototype.render=function(e,t,a,o){var n=e.getModel("breadcrumb"),i=this.group;if(i.removeAll(),n.get("show")&&a){var r=n.getModel("itemStyle"),l=r.getModel("textStyle"),s={pos:{left:n.get("left"),right:n.get("right"),top:n.get("top"),bottom:n.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:n.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(a,s,l),this._renderContent(e,s,r,l,o),M["i"](i,s.pos,s.box)}},e.prototype._prepare=function(e,t,a){for(var o=e;o;o=o.parentNode){var n=Object(c["e"])(o.getModel().get("name"),""),i=a.getTextRect(n),r=Math.max(i.width+2*O,t.emptyItemWidth);t.totalWidth+=r+N,t.renderList.push({node:o,text:n,width:r})}},e.prototype._renderContent=function(e,t,a,o,i){for(var r=0,l=t.emptyItemWidth,s=e.get(["breadcrumb","height"]),d=M["e"](t.pos,t.box),u=t.totalWidth,c=t.renderList,h=c.length-1;h>=0;h--){var p=c[h],g=p.node,y=p.width,f=p.text;u>d.width&&(u-=y-l,y=l,f=null);var v=new L["a"]({shape:{points:D(r,0,y,s,h===c.length-1,0===h)},style:Object(n["i"])(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new _["a"]({style:{text:f,fill:o.getTextColor(),font:o.getFont()}}),textConfig:{position:"inside"},z2:1e4*w["j"],onclick:Object(n["h"])(i,g)});v.disableLabelAnimation=!0,this.group.add(v),T(v,e,g),r+=y+N}},e.prototype.remove=function(){this.group.removeAll()},e}();function D(e,t,a,o,n,i){var r=[[n?e:e-S,t],[e+a,t],[e+a,t+o],[n?e:e-S,t+o]];return!i&&r.splice(2,0,[e+a+S,t+o/2]),!n&&r.push([e,t+o/2]),r}function T(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(o["d"])(a,t)}}var R=j,C=a("9b60"),V=a("6677"),k=a("4e14"),A=a("4e25"),P=a("b5d3"),E=a("a2d24"),G=a("9ada"),B=a("599e"),z=a("eae5"),W=m["a"],X=b["a"],H=3,Y="label",Z="upperLabel",U=10*w["j"],F=2*w["j"],q=3*w["j"],J=Object(P["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(c["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,i){var r=t.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Object(n["r"])(r,e)<0)){this.seriesModel=e,this.api=a,this.ecModel=t;var l=["treemapZoomToNode","treemapRootToNode"],s=o["c"](i,l,e),d=i&&i.type,u=e.layoutInfo,c=!this._oldTree,h=this._storage,p="treemapRootToNode"===d&&s&&h?{rootNodeGroup:h.nodeGroup[s.node.getRawIndex()],direction:i.direction}:null,g=this._giveContainerGroup(u),y=e.get("animation"),f=this._doRender(g,e,p);!y||c||d&&"treemapZoomToNode"!==d&&"treemapRootToNode"!==d?f.renderFinally():this._doAnimation(g,f,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 W,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,a){var o=t.getData().tree,i=this._oldTree,r=ee(),l=ee(),s=this._storage,d=[];function u(e,o,n,i){return te(t,l,s,a,r,d,e,o,n,i)}h(o.root?[o.root]:[],i&&i.root?[i.root]:[],e,o===i||!i,0);var c=p(s);return this._oldTree=o,this._storage=l,{lastsForAnimation:r,willDeleteEls:c,renderFinally:g};function h(e,t,a,o,i){function r(e){return e.getId()}function l(n,r){var l=null!=n?e[n]:null,s=null!=r?t[r]:null,d=u(l,s,a,i);d&&h(l&&l.viewChildren||[],s&&s.viewChildren||[],d,o,i+1)}o?(t=e,Object(n["k"])(e,(function(e,t){!e.isRemoved()&&l(t,t)}))):new I["a"](t,e,r,r).add(l).update(l).remove(Object(n["h"])(l,null)).execute()}function p(e){var t=ee();return e&&Object(n["k"])(e,(function(e,a){var o=t[a];Object(n["k"])(e,(function(e){e&&(o.push(e),Q(e).willDelete=!0)}))})),t}function g(){Object(n["k"])(c,(function(e){Object(n["k"])(e,(function(e){e.parent&&e.parent.remove(e)}))})),Object(n["k"])(d,(function(e){e.invisible=!0,e.dirty()}))}},t.prototype._doAnimation=function(e,t,a,o){var i=a.get("animationDurationUpdate"),r=a.get("animationEasing"),l=(Object(n["w"])(i)?0:i)||0,s=(Object(n["w"])(r)?null:r)||"cubicOut",d=A["a"]();Object(n["k"])(t.willDeleteEls,(function(e,t){Object(n["k"])(e,(function(e,a){if(!e.invisible){var n,i=e.parent,r=Q(i);if(o&&"drillDown"===o.direction)n=i===o.rootNodeGroup?{shape:{x:0,y:0,width:r.nodeWidth,height:r.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,c=0;r.willDelete||(u=r.nodeWidth/2,c=r.nodeHeight/2),n="nodeGroup"===t?{x:u,y:c,style:{opacity:0}}:{shape:{x:u,y:c,width:0,height:0},style:{opacity:0}}}n&&d.add(e,n,l,0,s)}}))})),Object(n["k"])(this._storage,(function(e,a){Object(n["k"])(e,(function(e,o){var i=t.lastsForAnimation[a][o],r={};i&&(e instanceof m["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(n["m"])({},e.shape),e.setShape(i.oldShape)),i.fadein?(e.setStyle("opacity",0),r.style={opacity:1}):1!==e.style.opacity&&(r.style={opacity:1})),d.add(e,r,l,0,s))}))}),this),this._state="animating",d.finished(Object(n["c"])((function(){this._state="ready",t.renderFinally()}),this)).start()},t.prototype._resetController=function(e){var t=this._controller;t||(t=this._controller=new C["a"](e.getZr()),t.enable(this.seriesModel.get("roam")),t.on("pan",Object(n["c"])(this._onPan,this)),t.on("zoom",Object(n["c"])(this._onZoom,this)));var a=new V["a"](0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,o){return a.contain(t,o)}))},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)>H||Math.abs(e.dy)>H)){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 o=this.seriesModel.getData().tree.root;if(!o)return;var n=o.getLayout();if(!n)return;var i=new V["a"](n.x,n.y,n.width,n.height),r=this.seriesModel.layoutInfo;t-=r.x,a-=r.y;var l=k["c"]();k["i"](l,l,[-t,-a]),k["h"](l,l,[e.scale,e.scale]),k["i"](l,l,[t,a]),i.applyTransform(l),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x,y:i.y,width:i.width,height:i.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 o=t.findTarget(e.offsetX,e.offsetY);if(o){var n=o.node;if(n.getLayout().isLeafRoot)t._rootToNode(o);else if("zoomToNode"===a)t._zoomToNode(o);else if("link"===a){var i=n.hostTree.data.getItemModel(n.dataIndex),r=i.get("link",!0),l=i.get("target",!0)||"blank";r&&Object(B["j"])(r,l)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,a){var n=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 R(this.group))).render(e,t,a.node,(function(t){"animating"!==n._state&&(o["a"](e.getViewRoot(),t)?n._rootToNode({node:t}):n._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,o=this.seriesModel.getViewRoot();return o.eachNode({attr:"viewChildren",order:"preorder"},(function(o){var n=this._storage.background[o.getRawIndex()];if(n){var i=n.transformCoordToLocal(e,t),r=n.shape;if(!(r.x<=i[0]&&i[0]<=r.x+r.width&&r.y<=i[1]&&i[1]<=r.y+r.height))return!1;a={node:o,offsetX:i[0],offsetY:i[1]}}}),this),a},t.type="treemap",t}(E["a"]);function ee(){return{nodeGroup:[],background:[],content:[]}}function te(e,t,a,o,i,r,l,s,d,u){if(l){var h=l.getLayout(),p=e.getData(),g=l.getModel();if(p.setItemGraphicEl(l.dataIndex,null),h&&h.isInView){var y=h.width,f=h.height,v=h.borderWidth,b=h.invisible,I=l.getRawIndex(),L=s&&s.getRawIndex(),_=l.viewChildren,M=h.upperHeight,O=_&&_.length,N=g.getModel("itemStyle"),S=g.getModel(["emphasis","itemStyle"]),j=g.getModel(["blur","itemStyle"]),D=g.getModel(["select","itemStyle"]),T=N.get("borderRadius")||0,R=oe("nodeGroup",W);if(R){if(d.add(R),R.x=h.x||0,R.y=h.y||0,R.markRedraw(),Q(R).nodeWidth=y,Q(R).nodeHeight=f,h.isAboveViewRoot)return R;var C=oe("background",X,u,F);C&&H(R,C,O&&h.upperLabelHeight);var V=g.getModel("emphasis"),k=V.get("focus"),A=V.get("blurScope"),P=V.get("disabled"),E="ancestor"===k?l.getAncestorsIndices():"descendant"===k?l.getDescendantIndices():k;if(O)Object(w["y"])(R)&&Object(w["F"])(R,!1),C&&(Object(w["F"])(C,!P),p.setItemGraphicEl(l.dataIndex,C),Object(w["p"])(C,E,A));else{var B=oe("content",X,u,q);B&&U(R,B),C.disableMorphing=!0,C&&Object(w["y"])(C)&&Object(w["F"])(C,!1),Object(w["F"])(R,!P),p.setItemGraphicEl(l.dataIndex,R),Object(w["p"])(R,E,A)}return R}}}function H(t,a,o){var n=Object(x["a"])(a);if(n.dataIndex=l.dataIndex,n.seriesIndex=e.seriesIndex,a.setShape({x:0,y:0,width:y,height:f,r:T}),b)$(a);else{a.invisible=!1;var i=l.getVisual("style"),r=i.stroke,s=K(N);s.fill=r;var d=J(S);d.fill=S.get("borderColor");var u=J(j);u.fill=j.get("borderColor");var c=J(D);if(c.fill=D.get("borderColor"),o){var h=y-2*v;ee(a,r,i.opacity,{x:v,y:0,width:h,height:M})}else a.removeTextContent();a.setStyle(s),a.ensureState("emphasis").style=d,a.ensureState("blur").style=u,a.ensureState("select").style=c,Object(w["G"])(a)}t.add(a)}function U(t,a){var o=Object(x["a"])(a);o.dataIndex=l.dataIndex,o.seriesIndex=e.seriesIndex;var n=Math.max(y-2*v,0),i=Math.max(f-2*v,0);if(a.culling=!0,a.setShape({x:v,y:v,width:n,height:i,r:T}),b)$(a);else{a.invisible=!1;var r=l.getVisual("style"),s=r.fill,d=K(N);d.fill=s,d.decal=r.decal;var u=J(S),c=J(j),h=J(D);ee(a,s,r.opacity,null),a.setStyle(d),a.ensureState("emphasis").style=u,a.ensureState("blur").style=c,a.ensureState("select").style=h,Object(w["G"])(a)}t.add(a)}function $(e){!e.invisible&&r.push(e)}function ee(t,a,o,i){var r=g.getModel(i?Z:Y),s=Object(c["e"])(g.get("name"),null),d=r.getShallow("show");Object(z["g"])(t,Object(z["e"])(g,i?Z:Y),{defaultText:d?s:null,inheritColor:a,defaultOpacity:o,labelFetcher:e,labelDataIndex:l.dataIndex});var u=t.getTextContent();if(u){var p=u.style,y=Object(n["M"])(p.padding||0);i&&(t.setTextConfig({layoutRect:i}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-y[1]-y[3],0),a=Math.max((i?i.height:t.shape.height)-y[0]-y[2],0);p.width===e&&p.height===a||u.setStyle({width:e,height:a})},p.truncateMinChar=2,p.lineOverflow="truncate",te(p,i,h);var f=u.getState("emphasis");te(f?f.style:null,i,h)}}function te(t,a,o){var n=t?t.text:null;if(!a&&o.isLeafRoot&&null!=n){var i=e.get("drillDownIcon",!0);t.text=i?i+" "+n:n}}function oe(e,o,n,r){var l=null!=L&&a[e][L],s=i[e];return l?(a[e][L]=null,ne(s,l)):b||(l=new o,l instanceof G["c"]&&(l.z2=ae(n,r)),ie(s,l)),t[e][I]=l}function ne(e,t){var a=e[I]={};t instanceof W?(a.oldX=t.x,a.oldY=t.y):a.oldShape=Object(n["m"])({},t.shape)}function ie(e,t){var a=e[I]={},n=l.parentNode,r=t instanceof m["a"];if(n&&(!o||"drillDown"===o.direction)){var s=0,d=0,u=i.background[n.getRawIndex()];!o&&u&&u.oldShape&&(s=u.oldShape.width,d=u.oldShape.height),r?(a.oldX=0,a.oldY=d):a.oldShape={x:s,y:d,width:0,height:0}}a.fadein=!r}}function ae(e,t){return e*U+t}var oe=$,ne=a("6306"),ie=a("1eb8"),re="itemStyle",le=Object(c["o"])(),se={seriesType:"treemap",reset:function(e){var t=e.getData().tree,a=t.root;a.isRemoved()||de(a,{},e.getViewRoot().getAncestors(),e)}};function de(e,t,a,o){var i=e.getModel(),r=e.getLayout(),l=e.hostTree.data;if(r&&!r.invisible&&r.isInView){var s,d=i.getModel(re),u=ue(d,t,o),c=l.ensureUniqueItemVisual(e.dataIndex,"style"),h=d.get("borderColor"),p=d.get("borderColorSaturation");null!=p&&(s=ce(u),h=he(p,s)),c.stroke=h;var g=e.viewChildren;if(g&&g.length){var y=ge(e,i,r,d,u,g);Object(n["k"])(g,(function(e,t){if(e.depth>=a.length||e===a[e.depth]){var n=fe(i,u,e,t,y,o);de(e,n,a,o)}}))}else s=ce(u),c.fill=s}}function ue(e,t,a){var o=Object(n["m"])({},t),i=a.designatedVisualItemStyle;return Object(n["k"])(["color","colorAlpha","colorSaturation"],(function(a){i[a]=t[a];var n=e.get(a);i[a]=null,null!=n&&(o[a]=n)})),o}function ce(e){var t=pe(e,"color");if(t){var a=pe(e,"colorAlpha"),o=pe(e,"colorSaturation");return o&&(t=Object(ie["f"])(t,null,null,o)),a&&(t=Object(ie["e"])(t,a)),t}}function he(e,t){return null!=t?Object(ie["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,o,n,i){if(i&&i.length){var r=ye(t,"color")||null!=n.color&&"none"!==n.color&&(ye(t,"colorAlpha")||ye(t,"colorSaturation"));if(r){var l=t.get("visualMin"),s=t.get("visualMax"),d=a.dataExtent.slice();null!=l&&l<d[0]&&(d[0]=l),null!=s&&s>d[1]&&(d[1]=s);var u=t.get("colorMappingBy"),c={type:r.name,dataExtent:d,visual:r.range};"color"!==c.type||"index"!==u&&"id"!==u?c.mappingMethod="linear":(c.mappingMethod="category",c.loop=!0);var h=new ne["a"](c);return le(h).drColorMappingBy=u,h}}}function ye(e,t){var a=e.get(t);return Object(n["t"])(a)&&a.length?{name:t,range:a}:null}function fe(e,t,a,o,i,r){var l=Object(n["m"])({},t);if(i){var s=i.type,d="color"===s&&le(i).drColorMappingBy,u="index"===d?o:"id"===d?r.mapIdToIndex(a.getId()):a.getValue(e.get("visualDimension"));l[s]=i.mapValueToVisual(u)}return l}var ve=a("fa5c"),me=Math.max,be=Math.min,xe=n["O"],we=n["k"],Ie=["itemStyle","borderWidth"],Le=["itemStyle","gapWidth"],_e=["upperLabel","show"],Me=["upperLabel","height"],Oe={seriesType:"treemap",reset:function(e,t,a,i){var r=a.getWidth(),l=a.getHeight(),s=e.option,d=M["g"](e.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()}),u=s.size||[],c=Object(ve["o"])(xe(d.width,u[0]),r),h=Object(ve["o"])(xe(d.height,u[1]),l),p=i&&i.type,g=["treemapZoomToNode","treemapRootToNode"],y=o["c"](i,g,e),f="treemapRender"===p||"treemapMove"===p?i.rootRect:null,v=e.getViewRoot(),m=o["b"](v);if("treemapMove"!==p){var b="treemapZoomToNode"===p?Ve(e,y,v,c,h):f?[f.width,f.height]:[c,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 I={x:0,y:0,width:b[0],height:b[1],area:b[0]*b[1]};v.setLayout(I),Ne(v,w,!1,0),I=v.getLayout(),we(m,(function(e,t){var a=(m[t+1]||v).getValue();e.setLayout(n["m"]({dataExtent:[a,a],borderWidth:0,upperHeight:0},I))}))}var L=e.getData().tree.root;L.setLayout(ke(d,f,y),!0),e.setLayoutInfo(d),Ae(L,new V["a"](-d.x,-d.y,r,l),m,v,0)}};function Ne(e,t,a,o){var n,i;if(!e.isRemoved()){var r=e.getLayout();n=r.width,i=r.height;var l=e.getModel(),s=l.get(Ie),d=l.get(Le)/2,u=Pe(l),c=Math.max(s,u),h=s-d,p=c-d;e.setLayout({borderWidth:s,upperHeight:c,upperLabelHeight:u},!0),n=me(n-2*h,0),i=me(i-h-p,0);var g=n*i,y=Se(e,l,g,t,a,o);if(y.length){var f={x:h,y:p,width:n,height:i},v=be(n,i),m=1/0,b=[];b.area=0;for(var x=0,w=y.length;x<w;){var I=y[x];b.push(I),b.area+=I.getLayout().area;var L=Re(b,v,t.squareRatio);L<=m?(x++,m=L):(b.area-=b.pop().getLayout().area,Ce(b,v,f,d,!1),v=be(f.width,f.height),b.length=b.area=0,m=1/0)}if(b.length&&Ce(b,v,f,d,!0),!a){var _=l.get("childrenVisibleMin");null!=_&&g<_&&(a=!0)}for(x=0,w=y.length;x<w;x++)Ne(y[x],t,a,o+1)}}}function Se(e,t,a,o,i,r){var l=e.children||[],s=o.sort;"asc"!==s&&"desc"!==s&&(s=null);var d=null!=o.leafDepth&&o.leafDepth<=r;if(i&&!d)return e.viewChildren=[];l=n["n"](l,(function(e){return!e.isRemoved()})),De(l,s);var u=Te(t,l,s);if(0===u.sum)return e.viewChildren=[];if(u.sum=je(t,a,u.sum,s,l),0===u.sum)return e.viewChildren=[];for(var c=0,h=l.length;c<h;c++){var p=l[c].getValue()/u.sum*a;l[c].setLayout({area:p})}return d&&(l.length&&e.setLayout({isLeafRoot:!0},!0),l.length=0),e.viewChildren=l,e.setLayout({dataExtent:u.dataExtent},!0),l}function je(e,t,a,o,n){if(!o)return a;for(var i=e.get("visibleMin"),r=n.length,l=r,s=r-1;s>=0;s--){var d=n["asc"===o?r-s-1:s].getValue();d/a*t<i&&(l=s,a-=d)}return"asc"===o?n.splice(0,r-l):n.splice(l,r-l),a}function De(e,t){return t&&e.sort((function(e,a){var o="asc"===t?e.getValue()-a.getValue():a.getValue()-e.getValue();return 0===o?"asc"===t?e.dataIndex-a.dataIndex:a.dataIndex-e.dataIndex:o})),e}function Te(e,t,a){for(var o=0,n=0,i=t.length;n<i;n++)o+=t[n].getValue();var r,l=e.get("visualDimension");return t&&t.length?"value"===l&&a?(r=[t[t.length-1].getValue(),t[0].getValue()],"asc"===a&&r.reverse()):(r=[1/0,-1/0],we(t,(function(e){var t=e.getValue(l);t<r[0]&&(r[0]=t),t>r[1]&&(r[1]=t)}))):r=[NaN,NaN],{sum:o,dataExtent:r}}function Re(e,t,a){for(var o=0,n=1/0,i=0,r=void 0,l=e.length;i<l;i++)r=e[i].getLayout().area,r&&(r<n&&(n=r),r>o&&(o=r));var s=e.area*e.area,d=t*t*a;return s?me(d*o/s,s/(d*n)):1/0}function Ce(e,t,a,o,n){var i=t===a.width?0:1,r=1-i,l=["x","y"],s=["width","height"],d=a[l[i]],u=t?e.area/t:0;(n||u>a[s[r]])&&(u=a[s[r]]);for(var c=0,h=e.length;c<h;c++){var p=e[c],g={},y=u?p.getLayout().area/u:0,f=g[s[r]]=me(u-2*o,0),v=a[l[i]]+a[s[i]]-d,m=c===h-1||v<y?v:y,b=g[s[i]]=me(m-2*o,0);g[l[r]]=a[l[r]]+be(o,f/2),g[l[i]]=d+be(o,b/2),d+=m,p.setLayout(g,!0)}a[l[r]]+=u,a[s[r]]-=u}function Ve(e,t,a,o,n){var i,r=(t||{}).node,l=[o,n];if(!r||r===a)return l;var s=o*n,d=s*e.option.zoomToNodeRatio;while(i=r.parentNode){for(var u=0,c=i.children,h=0,p=c.length;h<p;h++)u+=c[h].getValue();var g=r.getValue();if(0===g)return l;d*=u/g;var y=i.getModel(),f=y.get(Ie),v=Math.max(f,Pe(y));d+=4*f*f+(3*f+v)*Math.pow(d,.5),d>ve["a"]&&(d=ve["a"]),r=i}d<s&&(d=s);var m=Math.pow(d/s,.5);return[o*m,n*m]}function ke(e,t,a){if(t)return{x:t.x,y:t.y};var o={x:0,y:0};if(!a)return o;var n=a.node,i=n.getLayout();if(!i)return o;var r=[i.width/2,i.height/2],l=n;while(l){var s=l.getLayout();r[0]+=s.x,r[1]+=s.y,l=l.parentNode}return{x:e.width/2-r[0],y:e.height/2-r[1]}}function Ae(e,t,a,o,n){var i=e.getLayout(),r=a[n],l=r&&r===e;if(!(r&&!l||n===a.length&&e!==o)){e.setLayout({isInView:!0,invisible:!l&&!t.intersect(i),isAboveViewRoot:l},!0);var s=new V["a"](t.x-i.x,t.y-i.y,t.width,t.height);we(e.viewChildren||[],(function(e){Ae(e,s,a,o,n+1)}))}}function Pe(e){return e.get(_e)?e.get(Me):0}function Ee(e){e.registerSeriesModel(v),e.registerChartView(oe),e.registerVisual(se),e.registerLayout(Oe),r(e)}},"6b59":function(e,t,a){"use strict";a.d(t,"a",(function(){return W}));var o=a("08c2"),n=a("ba54"),i=a("a2d24"),r=a("bf392"),l=a("21dd"),s=a("dbe4"),d=a("c7f9"),u=a("eae5"),c=a("aa7d"),h=a("ea0f"),p=a("973e"),g=2,y=4,f=function(e){function t(t,a,o,n){var i=e.call(this)||this;i.z2=g,i.textConfig={inside:!0},Object(c["a"])(i).seriesIndex=a.seriesIndex;var l=new r["a"]({z2:y,silent:t.getModel().get(["label","silent"])});return i.setTextContent(l),i.updateData(!0,t,a,o,n),i}return Object(o["a"])(t,e),t.prototype.updateData=function(e,t,a,o,i){this.node=t,t.piece=this,a=a||this._seriesModel,o=o||this._ecModel;var r=this;Object(c["a"])(r).dataIndex=t.dataIndex;var s=t.getModel(),u=s.getModel("emphasis"),g=t.getLayout(),y=n["m"]({},g);y.label=null;var f=t.getVisual("style");f.lineJoin="bevel";var v=t.getVisual("decal");v&&(f.decal=Object(p["a"])(v,i));var m=Object(h["a"])(s.getModel("itemStyle"),y,!0);n["m"](y,m),n["k"](d["g"],(function(e){var t=r.ensureState(e),a=s.getModel([e,"itemStyle"]);t.style=a.getItemStyle();var o=Object(h["a"])(a,y);o&&(t.shape=o)})),e?(r.setShape(y),r.shape.r=g.r0,l["h"](r,{shape:{r:g.r}},a,t.dataIndex)):(l["h"](r,{shape:y},a),Object(l["g"])(r)),r.useStyle(f),this._updateLabel(a);var b=s.getShallow("cursor");b&&r.attr("cursor",b),this._seriesModel=a||this._seriesModel,this._ecModel=o||this._ecModel;var x=u.get("focus"),w="ancestor"===x?t.getAncestorsIndices():"descendant"===x?t.getDescendantIndices():x;Object(d["J"])(this,w,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,a=this.node.getModel(),o=a.getModel("label"),i=this.node.getLayout(),r=i.endAngle-i.startAngle,l=(i.startAngle+i.endAngle)/2,s=Math.cos(l),c=Math.sin(l),h=this,p=h.getTextContent(),g=this.node.dataIndex,y=o.get("minAngle")/180*Math.PI,f=o.get("show")&&!(null!=y&&Math.abs(r)<y);function v(e,t){var a=e.get(t);return null==a?o.get(t):a}p.ignore=!f,n["k"](d["a"],(function(o){var d="normal"===o?a.getModel("label"):a.getModel([o,"label"]),y="normal"===o,f=y?p:p.ensureState(o),m=e.getFormattedLabel(g,o);y&&(m=m||t.node.name),f.style=Object(u["c"])(d,{},null,"normal"!==o,!0),m&&(f.style.text=m);var b=d.get("show");null==b||y||(f.ignore=!b);var x,w=v(d,"position"),I=y?h:h.states[o],L=I.style.fill;I.textConfig={outsideFill:"inherit"===d.get("color")?L:null,inside:"outside"!==w};var _=v(d,"distance")||0,M=v(d,"align");"outside"===w?(x=i.r+_,M=l>Math.PI/2?"right":"left"):M&&"center"!==M?"left"===M?(x=i.r0+_,l>Math.PI/2&&(M="right")):"right"===M&&(x=i.r-_,l>Math.PI/2&&(M="left")):(x=r===2*Math.PI&&0===i.r0?0:(i.r+i.r0)/2,M="center"),f.style.align=M,f.style.verticalAlign=v(d,"verticalAlign")||"middle",f.x=x*s+i.cx,f.y=x*c+i.cy;var O=v(d,"rotate"),N=0;"radial"===O?(N=-l,N<-Math.PI/2&&(N+=Math.PI)):"tangential"===O?(N=Math.PI/2-l,N>Math.PI/2?N-=Math.PI:N<-Math.PI/2&&(N+=Math.PI)):n["z"](O)&&(N=O*Math.PI/180),f.rotation=N})),p.dirtyStyle()},t}(s["a"]),v=f,m=a("9bbf"),b=a("ea49"),x="sunburstRootToNode",w="sunburstHighlight",I="sunburstUnhighlight";function L(e){e.registerAction({type:x,update:"updateView"},(function(e,t){function a(t,a){var o=Object(b["c"])(e,[x],t);if(o){var n=t.getViewRoot();n&&(e.direction=Object(b["a"])(n,o.node)?"rollUp":"drillDown"),t.resetViewRoot(o.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},a)})),e.registerAction({type:w,update:"none"},(function(e,t,a){function o(t){var a=Object(b["c"])(e,[w],t);a&&(e.dataIndex=a.node.dataIndex)}e=Object(n["m"])({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},o),a.dispatchAction(Object(n["m"])(e,{type:"highlight"}))})),e.registerAction({type:I,update:"updateView"},(function(e,t,a){e=Object(n["m"])({},e),a.dispatchAction(Object(n["m"])(e,{type:"downplay"}))}))}var _=a("599e"),M=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(o["a"])(t,e),t.prototype.render=function(e,t,a,o){var i=this;this.seriesModel=e,this.api=a,this.ecModel=t;var r=e.getData(),l=r.tree.root,s=e.getViewRoot(),d=this.group,u=e.get("renderLabelForZeroData"),c=[];s.eachNode((function(e){c.push(e)}));var h=this._oldChildren||[];function p(e,t){function a(e){return e.getId()}function o(a,o){var n=null==a?null:e[a],i=null==o?null:t[o];g(n,i)}0===e.length&&0===t.length||new m["a"](t,e,a,a).add(o).update(o).remove(n["h"](o,null)).execute()}function g(o,n){if(u||!o||o.getValue()||(o=null),o!==l&&n!==l)if(n&&n.piece)o?(n.piece.updateData(!1,o,e,t,a),r.setItemGraphicEl(o.dataIndex,n.piece)):y(n);else if(o){var i=new v(o,e,t,a);d.add(i),r.setItemGraphicEl(o.dataIndex,i)}}function y(e){e&&e.piece&&(d.remove(e.piece),e.piece=null)}function f(o,n){n.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,o,e,t,a):(i.virtualPiece=new v(o,e,t,a),d.add(i.virtualPiece)),n.piece.off("click"),i.virtualPiece.on("click",(function(e){i._rootToNode(n.parentNode)}))):i.virtualPiece&&(d.remove(i.virtualPiece),i.virtualPiece=null)}p(c,h),f(l,s),this._initEvents(),this._oldChildren=c},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var a=!1,o=e.seriesModel.getViewRoot();o.eachNode((function(o){if(!a&&o.piece&&o.piece===t.target){var n=o.getModel().get("nodeClick");if("rootToNode"===n)e._rootToNode(o);else if("link"===n){var i=o.getModel(),r=i.get("link");if(r){var l=i.get("target",!0)||"_blank";Object(_["j"])(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(),o=a.getItemLayout(0);if(o){var n=e[0]-o.cx,i=e[1]-o.cy,r=Math.sqrt(n*n+i*i);return r<=o.r&&r>=o.r0}},t.type="sunburst",t}(i["a"]),O=M,N=a("e241"),S=a("29e2"),j=a("d0e2"),D=a("9998"),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(o["a"])(t,e),t.prototype.getInitialData=function(e,t){var a={name:e.name,children:e.data};R(a);var o=this._levelModels=n["H"](e.levels||[],(function(e){return new j["a"](e,this,t)}),this),i=S["a"].createTree(a,this,r);function r(e){e.wrapMethod("getItemModel",(function(e,t){var a=i.getNodeByDataIndex(t),n=o[a.depth];return n&&(e.parentModel=n),e}))}return i.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var a=e.prototype.getDataParams.apply(this,arguments),o=this.getData().tree.getNodeByDataIndex(t);return a.treePathInfo=Object(b["d"])(o,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(D["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}(N["b"]);function R(e){var t=0;n["k"](e.children,(function(e){R(e);var a=e.value;n["t"](a)&&(a=a[0]),t+=a}));var a=e.value;n["t"](a)&&(a=a[0]),(null==a||isNaN(a))&&(a=t),a<0&&(a=0),n["t"](e.value)?e.value[0]=a:e.value=a}var C=T,V=a("fa5c"),k=Math.PI/180;function A(e,t,a){t.eachSeriesByType(e,(function(e){var t=e.get("center"),o=e.get("radius");n["t"](o)||(o=[0,o]),n["t"](t)||(t=[t,t]);var i=a.getWidth(),r=a.getHeight(),l=Math.min(i,r),s=Object(V["o"])(t[0],i),d=Object(V["o"])(t[1],r),u=Object(V["o"])(o[0],l/2),c=Object(V["o"])(o[1],l/2),h=-e.get("startAngle")*k,p=e.get("minAngle")*k,g=e.getData().tree.root,y=e.getViewRoot(),f=y.depth,v=e.get("sort");null!=v&&P(y,v);var m=0;n["k"](y.children,(function(e){!isNaN(e.getValue())&&m++}));var b=y.getValue(),x=Math.PI/(b||m)*2,w=y.depth>0,I=y.height-(w?-1:1),L=(c-u)/(I||1),_=e.get("clockwise"),M=e.get("stillShowZeroSum"),O=_?1:-1,N=function(t,a){if(t){var o=a;if(t!==g){var i=t.getValue(),r=0===b&&M?x:i*x;r<p&&(r=p),o=a+O*r;var c=t.depth-f-(w?-1:1),h=u+L*c,y=u+L*(c+1),v=e.getLevelModel(t);if(v){var m=v.get("r0",!0),I=v.get("r",!0),S=v.get("radius",!0);null!=S&&(m=S[0],I=S[1]),null!=m&&(h=Object(V["o"])(m,l/2)),null!=I&&(y=Object(V["o"])(I,l/2))}t.setLayout({angle:r,startAngle:a,endAngle:o,clockwise:_,cx:s,cy:d,r0:h,r:y})}if(t.children&&t.children.length){var j=0;n["k"](t.children,(function(e){j+=N(e,a+j)}))}return o-a}};if(w){var S=u,j=u+L,D=2*Math.PI;g.setLayout({angle:D,startAngle:h,endAngle:h+D,clockwise:_,cx:s,cy:d,r0:S,r:j})}N(y,h)}))}function P(e,t){var a=e.children||[];e.children=E(a,t),a.length&&n["k"](e.children,(function(e){P(e,t)}))}function E(e,t){if(n["w"](t)){var a=n["H"](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)})),n["H"](a,(function(t){return e[t.index]}))}var o="asc"===t;return e.sort((function(e,t){var a=(e.getValue()-t.getValue())*(o?1:-1);return 0===a?(e.dataIndex-t.dataIndex)*(o?-1:1):a}))}var G=a("1eb8");function B(e){var t={};function a(e,a,o){var i=e;while(i&&i.depth>1)i=i.parentNode;var r=a.getColorFromPalette(i.name||i.dataIndex+"",t);return e.depth>1&&Object(n["C"])(r)&&(r=Object(G["c"])(r,(e.depth-1)/(o-1)*.5)),r}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),o=t.tree;o.eachNode((function(i){var r=i.getModel(),l=r.getModel("itemStyle").getItemStyle();l.fill||(l.fill=a(i,e,o.root.height));var s=t.ensureUniqueItemVisual(i.dataIndex,"style");Object(n["m"])(s,l)}))}))}var z=a("9271");function W(e){e.registerChartView(O),e.registerSeriesModel(C),e.registerLayout(Object(n["h"])(A,"sunburst")),e.registerProcessor(Object(n["h"])(z["a"],"sunburst")),e.registerVisual(B),L(e)}},a9ec:function(e,t,a){"use strict";a.d(t,"a",(function(){return K}));var o=a("08c2"),n=a("f566"),i=a("9a51"),r=a("97c5"),l=a("21dd"),s=a("c7f9"),d=a("a2d24"),u=a("eae5"),c=a("aa7d"),h=a("ba54"),p=function(){function e(){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}return e}(),g=function(e){function t(t){return e.call(this,t)||this}return Object(o["a"])(t,e),t.prototype.getDefaultShape=function(){return new p},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(s["r"])(this)},t.prototype.downplay=function(){Object(s["C"])(this)},t}(n["b"]),y=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a._focusAdjacencyDisabled=!1,a}return Object(o["a"])(t,e),t.prototype.render=function(e,t,a){var o=this,n=e.getGraph(),l=this.group,d=e.layoutInfo,p=d.width,y=d.height,v=e.getData(),m=e.getData("edge"),b=e.get("orient");this._model=e,l.removeAll(),l.x=d.x,l.y=d.y,n.eachEdge((function(t){var a=new g,o=Object(c["a"])(a);o.dataIndex=t.dataIndex,o.seriesIndex=e.seriesIndex,o.dataType="edge";var n,r,d,u,f,v,x,w,I=t.getModel(),L=I.getModel("lineStyle"),_=L.get("curveness"),M=t.node1.getLayout(),O=t.node1.getModel(),N=O.get("localX"),S=O.get("localY"),j=t.node2.getLayout(),D=t.node2.getModel(),T=D.get("localX"),R=D.get("localY"),C=t.getLayout();switch(a.shape.extent=Math.max(1,C.dy),a.shape.orient=b,"vertical"===b?(n=(null!=N?N*p:M.x)+C.sy,r=(null!=S?S*y:M.y)+M.dy,d=(null!=T?T*p:j.x)+C.ty,u=null!=R?R*y:j.y,f=n,v=r*(1-_)+u*_,x=d,w=r*_+u*(1-_)):(n=(null!=N?N*p:M.x)+M.dx,r=(null!=S?S*y:M.y)+C.sy,d=null!=T?T*p:j.x,u=(null!=R?R*y:j.y)+C.ty,f=n*(1-_)+d*_,v=r,x=n*_+d*(1-_),w=u),a.setShape({x1:n,y1:r,x2:d,y2:u,cpx1:f,cpy1:v,cpx2:x,cpy2:w}),a.useStyle(L.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 V=t.node1.getVisual("color"),k=t.node2.getVisual("color");Object(h["C"])(V)&&Object(h["C"])(k)&&(a.style.fill=new i["a"](0,0,+("horizontal"===b),+("vertical"===b),[{color:V,offset:0},{color:k,offset:1}]))}var A=I.getModel("emphasis");Object(s["I"])(a,I,"lineStyle",(function(e){return e.getItemStyle()})),l.add(a),m.setItemGraphicEl(t.dataIndex,a);var P=A.get("focus");Object(s["J"])(a,"adjacency"===P?t.getAdjacentDataIndices():P,A.get("blurScope"),A.get("disabled")),Object(c["a"])(a).dataType="edge"})),n.eachNode((function(t){var a=t.getLayout(),o=t.getModel(),n=o.get("localX"),i=o.get("localY"),d=o.getModel("emphasis"),h=new r["a"]({shape:{x:null!=n?n*p:a.x,y:null!=i?i*y:a.y,width:a.dx,height:a.dy},style:o.getModel("itemStyle").getItemStyle(),z2:10});Object(u["g"])(h,Object(u["e"])(o),{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(s["I"])(h,o),l.add(h),v.setItemGraphicEl(t.dataIndex,h),Object(c["a"])(h).dataType="node";var g=d.get("focus");Object(s["J"])(h,"adjacency"===g?t.getAdjacentDataIndices():g,d.get("blurScope"),d.get("disabled"))})),v.eachItemGraphicEl((function(t,n){var i=v.getItemModel(n);i.get("draggable")&&(t.drift=function(t,i){o._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=i,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:v.getRawIndex(n),localX:this.shape.x/p,localY:this.shape.y/y})},t.ondragend=function(){o._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&l.setClipPath(f(l.getBoundingRect(),e,(function(){l.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(d["a"]);function f(e,t,a){var o=new r["a"]({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return l["c"](o,{shape:{width:e.width+20}},t,a),o}var v=y,m=a("e241"),b=a("b8f9"),x=a("d0e2"),w=a("4a78"),I=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a}return Object(o["a"])(t,e),t.prototype.getInitialData=function(e,t){var a=e.edges||e.links,o=e.data||e.nodes,n=e.levels;this.levelModels=[];for(var i=this.levelModels,r=0;r<n.length;r++)null!=n[r].depth&&n[r].depth>=0&&(i[n[r].depth]=new x["a"](n[r],this,t));if(o&&a){var l=Object(b["a"])(o,a,this,!0,s);return l.data}function s(e,t){e.wrapMethod("getItemModel",(function(e,t){var a=e.parentModel,o=a.getData().getItemLayout(t);if(o){var n=o.depth,i=a.levelModels[n];i&&(e.parentModel=i)}return e})),t.wrapMethod("getItemModel",(function(e,t){var a=e.parentModel,o=a.getGraph().getEdgeByIndex(t),n=o.node1.getLayout();if(n){var i=n.depth,r=a.levelModels[i];r&&(e.parentModel=r)}return e}))}},t.prototype.setNodePosition=function(e,t){var a=this.option.data||this.option.nodes,o=a[e];o.localX=t[0],o.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 o(e){return isNaN(e)||null==e}if("edge"===a){var n=this.getDataParams(e,a),i=n.data,r=n.value,l=i.source+" -- "+i.target;return Object(w["c"])("nameValue",{name:l,value:r,noValue:o(r)})}var s=this.getGraph().getNodeByIndex(e),d=s.getLayout().value,u=this.getDataParams(e,a).data.name;return Object(w["c"])("nameValue",{name:null!=u?u+"":null,value:d,noValue:o(d)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,a){var o=e.prototype.getDataParams.call(this,t,a);if(null==o.value&&"node"===a){var n=this.getGraph().getNodeByIndex(t),i=n.getLayout().value;o.value=i}return o},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"]),L=I,_=a("70b8"),M=a("6d8b");function O(e,t){e.eachSeriesByType("sankey",(function(e){var a=e.get("nodeWidth"),o=e.get("nodeGap"),n=N(e,t);e.layoutInfo=n;var i=n.width,r=n.height,l=e.getGraph(),s=l.nodes,d=l.edges;j(s);var u=h["n"](s,(function(e){return 0===e.getLayout().value})),c=0!==u.length?0:e.get("layoutIterations"),p=e.get("orient"),g=e.get("nodeAlign");S(s,d,a,o,i,r,c,p,g)}))}function N(e,t){return _["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function S(e,t,a,o,n,i,r,l,s){D(e,t,a,n,i,l,s),k(e,t,i,n,o,r,l),F(e,l)}function j(e){h["k"](e,(function(e){var t=Z(e.outEdges,Y),a=Z(e.inEdges,Y),o=e.getValue()||0,n=Math.max(t,a,o);e.setLayout({value:n},!0)}))}function D(e,t,a,o,n,i,r){for(var l=[],s=[],d=[],u=[],c=0,h=0;h<t.length;h++)l[h]=1;for(h=0;h<e.length;h++)s[h]=e[h].inEdges.length,0===s[h]&&d.push(e[h]);var p=-1;while(d.length){for(var g=0;g<d.length;g++){var y=d[g],f=y.hostGraph.data.getRawDataItem(y.dataIndex),v=null!=f.depth&&f.depth>=0;v&&f.depth>p&&(p=f.depth),y.setLayout({depth:v?f.depth:c},!0),"vertical"===i?y.setLayout({dy:a},!0):y.setLayout({dx:a},!0);for(var m=0;m<y.outEdges.length;m++){var b=y.outEdges[m],x=t.indexOf(b);l[x]=0;var w=b.node2,I=e.indexOf(w);0===--s[I]&&u.indexOf(w)<0&&u.push(w)}}++c,d=u,u=[]}for(h=0;h<l.length;h++)if(1===l[h])throw new Error("Sankey is a DAG, the original data has cycle!");var L=p>c-1?p:c-1;r&&"left"!==r&&R(e,r,i,L);var _="vertical"===i?(n-a)/L:(o-a)/L;V(e,_,i)}function T(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function R(e,t,a,o){if("right"===t){var n=[],i=e,r=0;while(i.length){for(var l=0;l<i.length;l++){var s=i[l];s.setLayout({skNodeHeight:r},!0);for(var d=0;d<s.inEdges.length;d++){var u=s.inEdges[d];n.indexOf(u.node1)<0&&n.push(u.node1)}}i=n,n=[],++r}h["k"](e,(function(e){T(e)||e.setLayout({depth:Math.max(0,o-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&C(e,o)}function C(e,t){h["k"](e,(function(e){T(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}function V(e,t,a){h["k"](e,(function(e){var o=e.getLayout().depth*t;"vertical"===a?e.setLayout({y:o},!0):e.setLayout({x:o},!0)}))}function k(e,t,a,o,n,i,r){var l=A(e,r);P(l,t,a,o,n,r),E(l,n,a,o,r);for(var s=1;i>0;i--)s*=.99,G(l,s,r),E(l,n,a,o,r),U(l,s,r),E(l,n,a,o,r)}function A(e,t){var a=[],o="vertical"===t?"y":"x",n=Object(M["j"])(e,(function(e){return e.getLayout()[o]}));return n.keys.sort((function(e,t){return e-t})),h["k"](n.keys,(function(e){a.push(n.buckets.get(e))})),a}function P(e,t,a,o,n,i){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"===i?(o-(t-1)*n)/l:(a-(t-1)*n)/l;s<r&&(r=s)})),h["k"](e,(function(e){h["k"](e,(function(e,t){var a=e.getLayout().value*r;"vertical"===i?(e.setLayout({x:t},!0),e.setLayout({dx:a},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:a},!0))}))})),h["k"](t,(function(e){var t=+e.getValue()*r;e.setLayout({dy:t},!0)}))}function E(e,t,a,o,n){var i="vertical"===n?"x":"y";h["k"](e,(function(e){var r,l,s;e.sort((function(e,t){return e.getLayout()[i]-t.getLayout()[i]}));for(var d=0,u=e.length,c="vertical"===n?"dx":"dy",h=0;h<u;h++)l=e[h],s=d-l.getLayout()[i],s>0&&(r=l.getLayout()[i]+s,"vertical"===n?l.setLayout({x:r},!0):l.setLayout({y:r},!0)),d=l.getLayout()[i]+l.getLayout()[c]+t;var p="vertical"===n?o:a;if(s=d-t-p,s>0){r=l.getLayout()[i]-s,"vertical"===n?l.setLayout({x:r},!0):l.setLayout({y:r},!0),d=r;for(h=u-2;h>=0;--h)l=e[h],s=l.getLayout()[i]+l.getLayout()[c]+t-d,s>0&&(r=l.getLayout()[i]-s,"vertical"===n?l.setLayout({x:r},!0):l.setLayout({y:r},!0)),d=l.getLayout()[i]}}))}function G(e,t,a){h["k"](e.slice().reverse(),(function(e){h["k"](e,(function(e){if(e.outEdges.length){var o=Z(e.outEdges,B,a)/Z(e.outEdges,Y);if(isNaN(o)){var n=e.outEdges.length;o=n?Z(e.outEdges,z,a)/n:0}if("vertical"===a){var i=e.getLayout().x+(o-H(e,a))*t;e.setLayout({x:i},!0)}else{var r=e.getLayout().y+(o-H(e,a))*t;e.setLayout({y:r},!0)}}}))}))}function B(e,t){return H(e.node2,t)*e.getValue()}function z(e,t){return H(e.node2,t)}function W(e,t){return H(e.node1,t)*e.getValue()}function X(e,t){return H(e.node1,t)}function H(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function Y(e){return e.getValue()}function Z(e,t,a){var o=0,n=e.length,i=-1;while(++i<n){var r=+t(e[i],a);isNaN(r)||(o+=r)}return o}function U(e,t,a){h["k"](e,(function(e){h["k"](e,(function(e){if(e.inEdges.length){var o=Z(e.inEdges,W,a)/Z(e.inEdges,Y);if(isNaN(o)){var n=e.inEdges.length;o=n?Z(e.inEdges,X,a)/n:0}if("vertical"===a){var i=e.getLayout().x+(o-H(e,a))*t;e.setLayout({x:i},!0)}else{var r=e.getLayout().y+(o-H(e,a))*t;e.setLayout({y:r},!0)}}}))}))}function F(e,t){var a="vertical"===t?"x":"y";h["k"](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]}))})),h["k"](e,(function(e){var t=0,a=0;h["k"](e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),h["k"](e.inEdges,(function(e){e.setLayout({ty:a},!0),a+=e.getLayout().dy}))}))}var q=a("6306");function J(e){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),a=t.nodes;if(a.length){var o=1/0,n=-1/0;h["k"](a,(function(e){var t=e.getLayout().value;t<o&&(o=t),t>n&&(n=t)})),h["k"](a,(function(t){var a=new q["a"]({type:"color",mappingMethod:"linear",dataExtent:[o,n],visual:e.get("color")}),i=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",i),t.setVisual("style",{fill:i}))}))}}))}function K(e){e.registerChartView(v),e.registerSeriesModel(L),e.registerLayout(O),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])}))}))}},bc6b:function(e,t,a){"use strict";a.d(t,"a",(function(){return ne}));var o=a("08c2"),n=a("ba54"),i=a("19da"),r=a("21dd"),l=a("7574"),s=a("aa7d"),d=a("7a10"),u=a("70b8");function c(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var a,o,n=[t];while(a=n.pop())if(o=a.children,a.isExpand&&o.length)for(var i=o.length,r=i-1;r>=0;r--){var l=o[r];l.hierNode={defaultAncestor:null,ancestor:l,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},n.push(l)}}function h(e,t){var a=e.isExpand?e.children:[],o=e.parentNode.children,n=e.hierNode.i?o[e.hierNode.i-1]:null;if(a.length){v(e);var i=(a[0].hierNode.prelim+a[a.length-1].hierNode.prelim)/2;n?(e.hierNode.prelim=n.hierNode.prelim+t(e,n),e.hierNode.modifier=e.hierNode.prelim-i):e.hierNode.prelim=i}else n&&(e.hierNode.prelim=n.hierNode.prelim+t(e,n));e.parentNode.hierNode.defaultAncestor=m(e,n,e.parentNode.hierNode.defaultAncestor||o[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:L}function y(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function f(e,t){return u["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function v(e){var t=e.children,a=t.length,o=0,n=0;while(--a>=0){var i=t[a];i.hierNode.prelim+=o,i.hierNode.modifier+=o,n+=i.hierNode.change,o+=i.hierNode.shift+n}}function m(e,t,a,o){if(t){var n=e,i=e,r=i.parentNode.children[0],l=t,s=n.hierNode.modifier,d=i.hierNode.modifier,u=r.hierNode.modifier,c=l.hierNode.modifier;while(l=b(l),i=x(i),l&&i){n=b(n),r=x(r),n.hierNode.ancestor=e;var h=l.hierNode.prelim+c-i.hierNode.prelim-d+o(l,i);h>0&&(I(w(l,e,a),e,h),d+=h,s+=h),c+=l.hierNode.modifier,d+=i.hierNode.modifier,s+=n.hierNode.modifier,u+=r.hierNode.modifier}l&&!b(n)&&(n.hierNode.thread=l,n.hierNode.modifier+=c-s),i&&!x(r)&&(r.hierNode.thread=i,r.hierNode.modifier+=d-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 I(e,t,a){var o=a/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=o,t.hierNode.shift+=a,t.hierNode.modifier+=a,t.hierNode.prelim+=a,e.hierNode.change+=o}function L(e,t){return e.parentNode===t.parentNode?1:2}var _=a("9ccc"),M=a("e89f"),O=a("4107"),N=a("9b60"),S=a("3978"),j=a("fa5c"),D=a("a2d24"),T=a("f566"),R=a("c7f9"),C=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),V=function(e){function t(t){return e.call(this,t)||this}return Object(o["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new C},t.prototype.buildPath=function(e,t){var a=t.childPoints,o=a.length,n=t.parentPoint,i=a[0],r=a[o-1];if(1===o)return e.moveTo(n[0],n[1]),void e.lineTo(i[0],i[1]);var l=t.orient,s="TB"===l||"BT"===l?0:1,d=1-s,u=Object(j["o"])(t.forkPosition,1),c=[];c[s]=n[s],c[d]=n[d]+(r[d]-n[d])*u,e.moveTo(n[0],n[1]),e.lineTo(c[0],c[1]),e.moveTo(i[0],i[1]),c[s]=i[s],e.lineTo(c[0],c[1]),c[s]=r[s],e.lineTo(c[0],c[1]),e.lineTo(r[0],r[1]);for(var h=1;h<o-1;h++){var p=a[h];e.moveTo(p[0],p[1]),c[s]=p[s],e.lineTo(c[0],c[1])}},t}(T["b"]),k=function(e){function t(){var a=null!==e&&e.apply(this,arguments)||this;return a.type=t.type,a._mainGroup=new i["a"],a}return Object(o["a"])(t,e),t.prototype.init=function(e,t){this._controller=new N["a"](t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,a){var o=e.getData(),n=e.layoutInfo,i=this._mainGroup,r=e.get("layout");"radial"===r?(i.x=n.x+n.width/2,i.y=n.y+n.height/2):(i.x=n.x,i.y=n.y),this._updateViewCoordSys(e,a),this._updateController(e,t,a);var l=this._data;o.diff(l).add((function(t){A(o,t)&&P(o,t,null,i,e)})).update((function(t,a){var n=l.getItemGraphicEl(a);A(o,t)?P(o,t,n,i,e):n&&z(l,a,n,i,e)})).remove((function(t){var a=l.getItemGraphicEl(t);a&&z(l,t,a,i,e)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&o.eachItemGraphicEl((function(t,o){t.off("click").on("click",(function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:o})}))})),this._data=o},t.prototype._updateViewCoordSys=function(e,t){var a=e.getData(),o=[];a.each((function(e){var t=a.getItemLayout(e);!t||isNaN(t.x)||isNaN(t.y)||o.push([+t.x,+t.y])}));var n=[],i=[];_["d"](o,n,i);var r=this._min,l=this._max;i[0]-n[0]===0&&(n[0]=r?r[0]:n[0]-1,i[0]=l?l[0]:i[0]+1),i[1]-n[1]===0&&(n[1]=r?r[1]:n[1]-1,i[1]=l?l[1]:i[1]+1);var s=e.coordinateSystem=new M["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"),t),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 o=this,n=this._controller,i=this._controllerHost,r=this.group;n.setPointerChecker((function(t,o,n){var i=r.getBoundingRect();return i.applyTransform(r.transform),i.contain(o,n)&&!Object(S["a"])(t,a,e)})),n.enable(e.get("roam")),i.zoomLimit=e.get("scaleLimit"),i.zoom=e.coordinateSystem.getZoom(),n.off("pan").off("zoom").on("pan",(function(t){O["a"](i,t.dx,t.dy),a.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){O["b"](i,t.scale,t.originX,t.originY),a.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),o._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,o=t.scaleX||1,n=t.getZoom(),i=(n-1)*a+1;return i/o},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}(D["a"]);function A(e,t){var a=e.getItemLayout(t);return a&&!isNaN(a.x)&&!isNaN(a.y)}function P(e,t,a,o,i){var l=!a,u=e.tree.getNodeByDataIndex(t),c=u.getModel(),h=u.getVisual("style").fill,p=!1===u.isExpand&&0!==u.children.length?h:"#fff",g=e.tree.root,y=u.parentNode===g?u:u.parentNode||u,f=e.getItemGraphicEl(y.dataIndex),v=y.getLayout(),m=f?{x:f.__oldX,y:f.__oldY,rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:v,b=u.getLayout();l?(a=new d["a"](e,t,null,{symbolInnerColor:p,useNameLabel:!0}),a.x=m.x,a.y=m.y):a.updateData(e,t,null,{symbolInnerColor:p,useNameLabel:!0}),a.__radialOldRawX=a.__radialRawX,a.__radialOldRawY=a.__radialRawY,a.__radialRawX=b.rawX,a.__radialRawY=b.rawY,o.add(a),e.setItemGraphicEl(t,a),a.__oldX=a.x,a.__oldY=a.y,r["h"](a,{x:b.x,y:b.y},i);var x=a.getSymbolPath();if("radial"===i.get("layout")){var w=g.children[0],I=w.getLayout(),L=w.children.length,_=void 0,M=void 0;if(b.x===I.x&&!0===u.isExpand&&w.children.length){var O={x:(w.children[0].getLayout().x+w.children[L-1].getLayout().x)/2,y:(w.children[0].getLayout().y+w.children[L-1].getLayout().y)/2};_=Math.atan2(O.y-I.y,O.x-I.x),_<0&&(_=2*Math.PI+_),M=O.x<I.x,M&&(_-=Math.PI)}else _=Math.atan2(b.y-I.y,b.x-I.x),_<0&&(_=2*Math.PI+_),0===u.children.length||0!==u.children.length&&!1===u.isExpand?(M=b.x<I.x,M&&(_-=Math.PI)):(M=b.x>I.x,M||(_-=Math.PI));var N=M?"left":"right",S=c.getModel("label"),j=S.get("rotate"),D=j*(Math.PI/180),T=x.getTextContent();T&&(x.setTextConfig({position:S.get("position")||N,rotation:null==j?-_:D,origin:"center"}),T.setStyle("verticalAlign","middle"))}var C=c.get(["emphasis","focus"]),V="relative"===C?n["e"](u.getAncestorsIndices(),u.getDescendantIndices()):"ancestor"===C?u.getAncestorsIndices():"descendant"===C?u.getDescendantIndices():null;V&&(Object(s["a"])(a).focus=V),E(i,u,g,a,m,v,b,o),a.__edge&&(a.onHoverStateChange=function(t){if("blur"!==t){var o=u.parentNode&&e.getItemGraphicEl(u.parentNode.dataIndex);o&&o.hoverState===R["d"]||Object(R["H"])(a.__edge,t)}})}function E(e,t,a,o,i,s,d,u){var c=t.getModel(),h=e.get("edgeShape"),p=e.get("layout"),g=e.getOrient(),y=e.get(["lineStyle","curveness"]),f=e.get("edgeForkPosition"),v=c.getModel("lineStyle").getLineStyle(),m=o.__edge;if("curve"===h)t.parentNode&&t.parentNode!==a&&(m||(m=o.__edge=new l["a"]({shape:W(p,g,y,i,i)})),r["h"](m,{shape:W(p,g,y,s,d)},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;w<b.length;w++){var I=b[w].getLayout();x.push([I.x,I.y])}m||(m=o.__edge=new V({shape:{parentPoint:[d.x,d.y],childPoints:[[d.x,d.y]],orient:g,forkPosition:f}})),r["h"](m,{shape:{parentPoint:[d.x,d.y],childPoints:x}},e)}}else 0;m&&("polyline"!==h||t.isExpand)&&(m.useStyle(n["i"]({strokeNoScale:!0,fill:null},v)),Object(R["I"])(m,c,"lineStyle"),Object(R["G"])(m),u.add(m))}function G(e,t,a,o,n){var i=t.tree.root,l=B(i,e),s=l.source,d=l.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),h=c.__edge,p=u.__edge||(!1===s.isExpand||1===s.children.length?h:void 0),g=o.get("edgeShape"),y=o.get("layout"),f=o.get("orient"),v=o.get(["lineStyle","curveness"]);p&&("curve"===g?r["e"](p,{shape:W(y,f,v,d,d),style:{opacity:0}},o,{cb:function(){a.remove(p)},removeOpt:n}):"polyline"===g&&"orthogonal"===o.get("layout")&&r["e"](p,{shape:{parentPoint:[d.x,d.y],childPoints:[[d.x,d.y]]},style:{opacity:0}},o,{cb:function(){a.remove(p)},removeOpt:n}))}}function B(e,t){var a,o=t.parentNode===e?t:t.parentNode||t;while(a=o.getLayout(),null==a)o=o.parentNode===e?o:o.parentNode||o;return{source:o,sourceLayout:a}}function z(e,t,a,o,n){var i=e.tree.getNodeByDataIndex(t),l=e.tree.root,s=B(l,i).sourceLayout,d={duration:n.get("animationDurationUpdate"),easing:n.get("animationEasingUpdate")};r["e"](a,{x:s.x+1,y:s.y+1},n,{cb:function(){o.remove(a),e.setItemGraphicEl(t,null)},removeOpt:d}),a.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:d}),i.children.forEach((function(t){G(t,e,o,n,d)})),G(i,e,o,n,d)}function W(e,t,a,o,n){var i,r,l,s,d,u,c,h;if("radial"===e){d=o.rawX,c=o.rawY,u=n.rawX,h=n.rawY;var p=y(d,c),g=y(d,c+(h-c)*a),f=y(u,h+(c-h)*a),v=y(u,h);return{x1:p.x||0,y1:p.y||0,x2:v.x||0,y2:v.y||0,cpx1:g.x||0,cpy1:g.y||0,cpx2:f.x||0,cpy2:f.y||0}}return d=o.x,c=o.y,u=n.x,h=n.y,"LR"!==t&&"RL"!==t||(i=d+(u-d)*a,r=c,l=u+(d-u)*a,s=h),"TB"!==t&&"BT"!==t||(i=d,r=c+(h-c)*a,l=u,s=h+(c-h)*a),{x1:d,y1:c,x2:u,y2:h,cpx1:i,cpy1:r,cpx2:l,cpy2:s}}var X=k,H=a("e241"),Y=a("29e2"),Z=a("d0e2"),U=a("4a78"),F=a("ea49"),q=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return Object(o["a"])(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},a=e.leaves||{},o=new Z["a"](a,this,this.ecModel),n=Y["a"].createTree(t,this,i);function i(e){e.wrapMethod("getItemModel",(function(e,t){var a=n.getNodeByDataIndex(t);return a&&a.children.length&&a.isExpand||(e.parentModel=o),e}))}var r=0;n.eachNode("preorder",(function(e){e.depth>r&&(r=e.depth)}));var l=e.expandAndCollapse,s=l&&e.initialTreeDepth>=0?e.initialTreeDepth:r;return n.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=s})),n.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 o=this.getData().tree,n=o.root.children[0],i=o.getNodeByDataIndex(e),r=i.getValue(),l=i.name;while(i&&i!==n)l=i.parentNode.name+"."+l,i=i.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),o=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=Object(F["d"])(o,this),a.collapsed=!o.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}(H["b"]),J=q;function K(e,t,a){var o,n=[e],i=[];while(o=n.pop())if(i.push(o),o.isExpand){var r=o.children;if(r.length)for(var l=0;l<r.length;l++)n.push(r[l])}while(o=i.pop())t(o,a)}function Q(e,t){var a,o=[e];while(a=o.pop())if(t(a),a.isExpand){var n=a.children;if(n.length)for(var i=n.length-1;i>=0;i--)o.push(n[i])}}function $(e,t){e.eachSeriesByType("tree",(function(e){ee(e,t)}))}function ee(e,t){var a=f(e,t);e.layoutInfo=a;var o=e.get("layout"),n=0,i=0,r=null;"radial"===o?(n=2*Math.PI,i=Math.min(a.height,a.width)/2,r=g((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(n=a.width,i=a.height,r=g());var l=e.getData().tree.root,s=l.children[0];if(s){c(l),K(s,h,r),l.hierNode.modifier=-s.hierNode.prelim,Q(s,p);var d=s,u=s,v=s;Q(s,(function(e){var t=e.getLayout().x;t<d.getLayout().x&&(d=e),t>u.getLayout().x&&(u=e),e.depth>v.depth&&(v=e)}));var m=d===u?1:r(d,u)/2,b=m-d.getLayout().x,x=0,w=0,I=0,L=0;if("radial"===o)x=n/(u.getLayout().x+m+b),w=i/(v.depth-1||1),Q(s,(function(e){I=(e.getLayout().x+b)*x,L=(e.depth-1)*w;var t=y(I,L);e.setLayout({x:t.x,y:t.y,rawX:I,rawY:L},!0)}));else{var _=e.getOrient();"RL"===_||"LR"===_?(w=i/(u.getLayout().x+m+b),x=n/(v.depth-1||1),Q(s,(function(e){L=(e.getLayout().x+b)*w,I="LR"===_?(e.depth-1)*x:n-(e.depth-1)*x,e.setLayout({x:I,y:L},!0)}))):"TB"!==_&&"BT"!==_||(x=n/(u.getLayout().x+m+b),w=i/(v.depth-1||1),Q(s,(function(e){I=(e.getLayout().x+b)*x,L="TB"===_?(e.depth-1)*w:i-(e.depth-1)*w,e.setLayout({x:I,y:L},!0)})))}}}function te(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),a=t.tree;a.eachNode((function(e){var a=e.getModel(),o=a.getModel("itemStyle").getItemStyle(),i=t.ensureUniqueItemVisual(e.dataIndex,"style");Object(n["m"])(i,o)}))}))}var ae=a("bee1");function oe(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,o=t.getData().tree,n=o.getNodeByDataIndex(a);n.isExpand=!n.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,a){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var o=t.coordinateSystem,n=Object(ae["a"])(o,e,void 0,a);t.setCenter&&t.setCenter(n.center),t.setZoom&&t.setZoom(n.zoom)}))}))}function ne(e){e.registerChartView(X),e.registerSeriesModel(J),e.registerLayout($),e.registerVisual(te),oe(e)}}}]);