=0?n:null}),30,!1);function UD(e,t,n){for(var r=e.baseDimIdx,i=1-r,o=e.shape.points,a=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,d=o.length/3;c=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function qD(e,t,n){if(WT(n,"cartesian2d")){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}i=n.getArea();var o=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:o.r0,r:e?i.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:2*Math.PI}}function XD(e,t,n){var r="polar"===e.type?Gm:Cs;return new r({shape:qD(t,n,e),silent:!0,z2:0})}var ZD=OD;function KD(e){e.registerChartView(ZD),e.registerSeriesModel(vD),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,g["curry"](Zw,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Kw("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,fD("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}var JD=2*Math.PI,QD=Math.PI/180;function eO(e,t){return cd(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function tO(e,t){var n=eO(e,t),r=e.get("center"),i=e.get("radius");g["isArray"](i)||(i=[0,i]);var o,a,s=ii(n.width,t.getWidth()),l=ii(n.height,t.getHeight()),u=Math.min(s,l),c=ii(i[0],u/2),d=ii(i[1],u/2),f=e.coordinateSystem;if(f){var h=f.dataToPoint(r);o=h[0]||0,a=h[1]||0}else g["isArray"](r)||(r=[r,r]),o=ii(r[0],s)+n.x,a=ii(r[1],l)+n.y;return{cx:o,cy:a,r0:c,r:d}}function nO(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),r=t.mapDimension("value"),i=eO(e,n),o=tO(e,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-e.get("startAngle")*QD,d=e.get("endAngle"),f=e.get("padAngle")*QD;d="auto"===d?c-JD:-d*QD;var h=e.get("minAngle")*QD,p=h+f,m=0;t.each(r,(function(e){!isNaN(e)&&m++}));var g=t.getSum(r),v=Math.PI/(g||m)*2,y=e.get("clockwise"),_=e.get("roseType"),b=e.get("stillShowZeroSum"),x=t.getDataExtent(r);x[0]=0;var w=y?1:-1,M=[c,d],k=w*f/2;Ha(M,!y),c=M[0],d=M[1];var S=rO(e);S.startAngle=c,S.endAngle=d,S.clockwise=y;var L=Math.abs(d-c),T=L,D=0,O=c;if(t.setLayout({viewRect:i,r:l}),t.each(r,(function(e,n){var r;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:a,cy:s,r0:u,r:_?NaN:l});else{r="area"!==_?0===g&&b?v:e*v:L/m,rr?(o=O+w*r/2,c=o):(o=O+k,c=i-k),t.setItemLayout(n,{angle:r,startAngle:o,endAngle:c,clockwise:y,cx:a,cy:s,r0:u,r:_?ri(e,x,[u,l]):l}),O=i}})),Tn?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var d=l.label.x-t-l.len2*i,f=r+l.len,p=Math.abs(d)e.unconstrainedWidth?null:h:null;r.setStyle("width",p)}var m=r.getBoundingRect();o.width=m.width;var g=(r.style.margin||0)+2.1;o.height=m.height+g,o.y-=(o.height-d)/2}}}function uO(e){return"center"===e.position}function cO(e){var t,n,r=e.getData(),i=[],o=!1,a=(e.get("minShowLabelAngle")||0)*oO,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,c=s.x,d=s.y,f=s.height;function h(e){e.ignore=!0}function p(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}r.each((function(e){var s=r.getItemGraphicEl(e),d=s.shape,f=s.getTextContent(),m=s.getTextGuideLine(),v=r.getItemModel(e),y=v.getModel("label"),_=y.get("position")||v.get(["emphasis","label","position"]),b=y.get("distanceToLabelLine"),x=y.get("alignTo"),w=ii(y.get("edgeDistance"),u),M=y.get("bleedMargin"),k=v.getModel("labelLine"),S=k.get("length");S=ii(S,u);var L=k.get("length2");if(L=ii(L,u),Math.abs(d.endAngle-d.startAngle)0?"right":"left":I>0?"left":"right"}var F=Math.PI,B=0,W=y.get("rotate");if(Object(g["isNumber"])(W))B=W*(F/180);else if("center"===_)B=0;else if("radial"===W||!0===W){var V=I<0?-A+F:-A;B=V}else if("tangential"===W&&"outside"!==_&&"outer"!==_){var G=Math.atan2(I,j);G<0&&(G=2*F+G);var $=j>0;$&&(G=F+G),B=G-F}if(o=!!B,f.x=T,f.y=D,f.rotation=B,f.setStyle({verticalAlign:"middle"}),E){f.setStyle({align:C});var U=f.states.select;U&&(U.x+=f.x,U.y+=f.y)}else{var q=f.getBoundingRect().clone();q.applyTransform(f.getComputedTransform());var X=(f.style.margin||0)+2.1;q.y-=X/2,q.height+=X,i.push({label:f,labelLine:m,position:_,len:S,len2:L,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new Ee(I,j),linePoints:O,textAlign:C,labelDistance:b,labelAlignTo:x,edgeDistance:w,bleedMargin:M,rect:q,unconstrainedWidth:q.width,labelStyleWidth:f.style.width})}s.setTextConfig({inside:E})}})),!o&&e.get("avoidLabelOverlap")&&sO(i,t,n,l,u,f,c,d);for(var m=0;m0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u=r.r0}},t.type="pie",t}(yv),hO=fO;function pO(e,t,n){t=Object(g["isArray"])(t)&&{coordDimensions:t}||Object(g["extend"])({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=ew(r,t).dimensions,o=new Jx(i,e);return o.initData(r,n),o}var mO=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},e.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},e.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},e}(),gO=mO,vO=Qi(),yO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new gO(g["bind"](this.getData,this),g["bind"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return pO(this,{coordDimensions:["value"],encodeDefaulter:g["curry"](Nd,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=vO(n),i=r.seats;if(!i){var o=[];n.each(n.mapDimension("value"),(function(e){o.push(e)})),i=r.seats=di(o,n.hostModel.get("percentPrecision"))}var a=e.prototype.getDataParams.call(this,t);return a.percent=i[t]||0,a.$vars.push("percent"),a},t.prototype._defaultLabelLine=function(e){Ii(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.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,endAngle:"auto",padAngle:0,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}(Xp),_O=yO;function bO(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),r=n.get(t,e);return!(Object(g["isNumber"])(r)&&!isNaN(r)&&r<0)}))}}}function xO(e){e.registerChartView(hO),e.registerSeriesModel(_O),py("pie",e.registerAction),e.registerLayout(Object(g["curry"])(nO,"pie")),e.registerProcessor(iO("pie")),e.registerProcessor(bO("pie"))}var wO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return p(t,e),t.prototype.getInitialData=function(e,t){return vw(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,n){return n.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}(Xp),MO=wO,kO=4,SO=function(){function e(){}return e}(),LO=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return p(t,e),t.prototype.getDefaultShape=function(){return new SO},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,r=t.points,i=t.size,o=this.symbolProxy,a=o.shape,s=e.getContext?e.getContext():e,l=s&&i[0]=0;s--){var l=2*s,u=r[l]-o/2,c=r[l+1]-a/2;if(e>=u&&t>=c&&e<=u+o&&t<=c+a)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();if(e=n[0],t=n[1],r.contain(e,t)){var i=this.hoverDataIdx=this.findDataIndex(e,t);return i>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],o=r[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c=0&&(l.dataIndex=n+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),DO=TO,OO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._updateSymbolDraw(r,e);i.updateData(r,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData(),i=this._updateSymbolDraw(r,e);i.incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=uD("").reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var t=e.coordinateSystem;return t&&t.getArea&&t.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext,i=r.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new DO:new LT,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(yv),CO=OO,AO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(bd),IO=AO,jO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ro).models[0]},t.type="cartesian2dAxis",t}(bd);g["mixin"](jO,BM);var EO={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},YO=g["merge"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},EO),PO=g["merge"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},EO),NO=g["merge"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},PO),RO=g["defaults"]({logBase:10},PO),HO={category:YO,value:PO,time:NO,log:RO},zO={value:1,category:1,time:1,log:1};function FO(e,t,n,r){Object(g["each"])(zO,(function(i,o){var a=Object(g["merge"])(Object(g["merge"])({},HO[o],!0),r,!0),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+o,n}return p(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=hd(this),r=n?md(e):{},i=t.getTheme();Object(g["merge"])(e,i.get(o+"Axis")),Object(g["merge"])(e,this.getDefaultOption()),e.type=BO(e),n&&pd(e,r,n)},n.prototype.optionUpdated=function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=Mw.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+o,n.defaultOption=a,n}(n);e.registerComponentModel(s)})),e.registerSubTypeDefaulter(t+"Axis",BO)}function BO(e){return e.type||(e.data?"category":"value")}var WO=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return g["map"](this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),g["filter"](this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),VO=WO,GO=["x","y"];function $O(e){return"interval"===e.type||"time"===e.type}var UO=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=GO,t}return p(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if($O(e)&&$O(t)){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-n[0]*l,d=i[1]-r[0]*u,f=this._transform=[l,0,0,u,c,d];this._invTransform=Ae([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),o=new Ve(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(o)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var r=e[0],i=e[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return F(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,t)),n[1]=a.toGlobalCoord(a.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(e[0]),s=r.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return F(n,e,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(e){e=e||0;var t=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e,o=Math.max(t[0],t[1])-r+e,a=Math.max(n[0],n[1])-i+e;return new Ve(r,i,o,a)},t}(VO),qO=UO,XO=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return p(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Ak),ZO=XO;function KO(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,p="x"===u?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(a){var m=a.toGlobalCoord(a.dataToCoord(0));p[f.onZero]=Math.max(Math.min(m,p[1]),p[0])}o.position=["y"===u?p[f[l]]:d[0],"x"===u?p[f[l]]:d[3]],o.rotation=Math.PI/2*("x"===u?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[s],o.labelOffset=a?p[f[s]]-p[f.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),g["retrieve"](n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=t.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-y:y,o.z2=1,o}function JO(e){return"cartesian2d"===e.get("coordinateSystem")}function QO(e){var t={xAxisModel:null,yAxisModel:null};return g["each"](t,(function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,ro).models[0];t[r]=o})),t}var eC=Math.log;function tC(e,t,n){var r=Nw.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=OM(e,t),u=l.extent,c=l.fixMin,d=l.fixMax;if("log"===e.type){var f=eC(e.base);u=[eC(u[0])/f,eC(u[1])/f]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:d});var h=r.getExtent.call(e);c&&(u[0]=h[0]),d&&(u[1]=h[1]);var p=r.getInterval.call(e),m=u[0],g=u[1];if(c&&d)p=(g-m)/a;else if(c){g=u[0]+p*a;while(gu[0]&&isFinite(m)&&isFinite(u[0]))p=Lw(p),m=u[1]-p*a}else{var v=e.getTicks().length-1;v>a&&(p=Lw(p));var y=p*a;g=Math.ceil(u[1]/p)*p,m=oi(g-y),m<0&&u[0]>=0?(m=0,g=oi(y)):g>0&&u[1]<=0&&(g=0,m=-oi(y))}var _=(i[0].value-o[0].value)/s,b=(i[a].value-o[a].value)/s;r.setExtent.call(e,m+p*_,g+p*b),r.setInterval.call(e,p),(_||b)&&r.setNiceExtent.call(e,m+p,g-p)}var nC=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=GO,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function r(e){var t,n=Object(g["keys"])(e),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=+n[o],s=e[a],l=s.model,u=s.scale;kw(u)&&l.get("alignTicks")&&null==l.get("interval")?i.push(s):(AM(u,l),kw(u)&&(t=s))}i.length&&(t||(t=i.pop(),AM(t.scale,t.model)),Object(g["each"])(i,(function(e){tC(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),r(n.x),r(n.y);var i={};Object(g["each"])(n.x,(function(e){iC(n,"y",e,i)})),Object(g["each"])(n.y,(function(e){iC(n,"x",e,i)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),o=cd(r,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var a=this._axesList;function s(){Object(g["each"])(a,(function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),aC(e,t?o.x:o.y)}))}s(),i&&(Object(g["each"])(a,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=PM(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+r,"top"===e.position?o.y+=t.height+r:"left"===e.position&&(o.x+=t.width+r)}}})),s()),Object(g["each"])(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}Object(g["isObject"])(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r0?"top":"bottom",r="center"):mi(o-lC)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),cC={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if("auto"===i&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),i){var o=t.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(F(s,s,a),F(l,l,a));var c=Object(g["extend"])({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new ag({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Gg(d.shape,d.style.lineWidth),d.anid="line",n.add(d);var f=t.get(["axisLine","symbol"]);if(null!=f){var h=t.get(["axisLine","symbolSize"]);Object(g["isString"])(f)&&(f=[f,f]),(Object(g["isString"])(h)||Object(g["isNumber"])(h))&&(h=[h,h]);var p=jy(t.get(["axisLine","symbolOffset"])||0,h),m=h[0],v=h[1];Object(g["each"])([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0},{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(t,r){if("none"!==f[r]&&null!=f[r]){var i=Ay(f[r],-m/2,-v/2,m,v,c.stroke,!0),o=t.r+t.offset,a=u?l:s;i.attr({rotation:t.rotate,x:a[0]+o*Math.cos(e.rotation),y:a[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(e,t,n,r){var i=vC(n,r,t,e),o=_C(n,r,t,e);if(fC(t,o,i),yC(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=aS(Object(g["map"])(o,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));cS(a)}},axisName:function(e,t,n,r){var i=Object(g["retrieve"])(e.axisName,t.get("name"));if(i){var o,a,s=t.get("nameLocation"),l=e.nameDirection,u=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,d=t.axis.getExtent(),f=d[0]>d[1]?-1:1,h=["start"===s?d[0]-f*c:"end"===s?d[1]+f*c:(d[0]+d[1])/2,mC(s)?e.labelOffset+l*c:0],p=t.get("nameRotate");null!=p&&(p=p*lC/180),mC(s)?o=uC.innerTextLayout(e.rotation,null!=p?p:e.rotation,l):(o=dC(e.rotation,s,p||0,d),a=e.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var m=u.getFont(),v=t.get("nameTruncate",!0)||{},y=v.ellipsis,_=Object(g["retrieve"])(e.nameTruncateMaxWidth,v.maxWidth,a),b=new qs({x:h[0],y:h[1],rotation:o.rotation,silent:uC.isLabelSilent(t),style:Su(u,{text:i,font:m,overflow:"truncate",width:_,ellipsis:y,fill:u.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(sv({el:b,componentModel:t,itemName:i}),b.__fullText=i,b.anid="name",t.get("triggerEvent")){var x=uC.makeAxisEventDataBase(t);x.targetType="axisName",x.name=i,Xs(b).eventData=x}r.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function dC(e,t,n,r){var i,o,a=pi(n-e),s=r[0]>r[1],l="start"===t&&!s||"start"!==t&&s;return mi(a-lC/2)?(o=l?"bottom":"top",i="center"):mi(a-1.5*lC)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*lC&&a>lC/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function fC(e,t,n){if(!HM(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],d=n[n.length-1],f=n[n.length-2];!1===r?(hC(o),hC(u)):pC(o,a)&&(r?(hC(a),hC(c)):(hC(o),hC(u))),!1===i?(hC(s),hC(d)):pC(l,s)&&(i?(hC(l),hC(f)):(hC(s),hC(d)))}}function hC(e){e&&(e.ignore=!0)}function pC(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){var i=Se([]);return Oe(i,i,-e.rotation),n.applyTransform(Te([],i,e.getLocalTransform())),r.applyTransform(Te([],i,t.getLocalTransform())),n.intersect(r)}}function mC(e){return"middle"===e||"center"===e}function gC(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l=0||e===t}function TC(e){var t=DC(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=CC(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a0&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var f=a;null!=d.color&&(f=g["defaults"]({color:d.color},a));var h=g["merge"](g["clone"](d),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:i,axisLabel:o,name:d.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:f,triggerEvent:c},!1);if(g["isString"](l)){var p=h.name;h.name=l.replace("{value}",null!=p?p:"")}else g["isFunction"](l)&&(h.name=l(h.name,h));var m=new Xu(h,null,this.ecModel);return g["mixin"](m,BM.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m}),this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:g["merge"]({lineStyle:{color:"#bbb"}},nA.axisLine),axisLabel:rA(nA.axisLabel,!1),axisTick:rA(nA.axisTick,!1),splitLine:rA(nA.splitLine,!0),splitArea:rA(nA.splitArea,!0),indicator:[]},t}(bd),oA=iA,aA=["axisLine","axisTickLabel","axisName"],sA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n){var r=this.group;r.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),r=g["map"](n,(function(e){var n=e.model.get("showName")?e.name:"",r=new bC(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return r}));g["each"](r,(function(e){g["each"](aA,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var r=e.get("shape"),i=e.getModel("splitLine"),o=e.getModel("splitArea"),a=i.getModel("lineStyle"),s=o.getModel("areaStyle"),l=i.get("show"),u=o.get("show"),c=a.get("color"),d=s.get("color"),f=g["isArray"](c)?c:[c],h=g["isArray"](d)?d:[d],p=[],m=[];if("circle"===r)for(var v=n[0].getTicksCoords(),y=t.cx,_=t.cy,b=0;b3?1.4:i>1?1.2:1.1,l=r>0?s:1/s;xA(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(r),c=(r>0?1:-1)*(u>3?.4:u>1?.15:.05);xA(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:o,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!yA(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;xA(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(q);function xA(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&(ye(r.event),wA(e,t,n,r,i))}function wA(e,t,n,r,i){i.isAvailableBehavior=Object(g["bind"])(MA,null,n,r),e.trigger(t,i)}function MA(e,t,n){var r=n[e];return!e||r&&(!Object(g["isString"])(r)||t.event[r+"Key"])}var kA=bA;function SA(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function LA(e,t,n,r){var i=e.target,o=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/e.zoom;e.zoom=a,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var TA,DA={axisPointer:1,tooltip:1,brush:1};function OA(e,t,n){var r=t.getComponentByElement(e.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!DA.hasOwnProperty(r.mainType)&&i&&i.model!==n}function CA(e){if(Object(g["isString"])(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var AA={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},IA=Object(g["keys"])(AA),jA={"alignment-baseline":"textBaseline","stop-color":"stopColor"},EA=Object(g["keys"])(jA),YA=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=CA(e);this._defsUsePending=[];var r=new Hr;this._root=r;var i=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),s=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),FA(n,r,null,!0,!1);var l,u,c=n.firstChild;while(c)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;if(GA(this._defs,this._defsUsePending),this._defsUsePending=[],o){var d=UA(o);d.length>=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&null!=a&&null!=s&&(u=eI(l,{x:0,y:0,width:a,height:s}),!t.ignoreViewBox)){var f=r;r=new Hr,r.add(f),f.scaleX=f.scaleY=u.scale,f.x=u.x,f.y=u.y}return t.ignoreRootClip||null==a||null==s||r.setClipPath(new Cs({shape:{x:0,y:0,width:a,height:s}})),{root:r,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},e.prototype._parseNode=function(e,t,n,r,i,o){var a,s=e.nodeName.toLowerCase(),l=r;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=t;else{if(!i){var u=TA[s];if(u&&Object(g["hasOwn"])(TA,s)){a=u.call(this,e,t);var c=e.getAttribute("name");if(c){var d={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(d),"g"===s&&(l=d)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:a});t.add(a)}}var f=PA[s];if(f&&Object(g["hasOwn"])(PA,s)){var h=f.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=h)}}if(a&&a.isGroup){var m=e.firstChild;while(m)1===m.nodeType?this._parseNode(m,a,n,l,i,o):3===m.nodeType&&o&&this._parseText(m,a),m=m.nextSibling}},e.prototype._parseText=function(e,t){var n=new gs({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});HA(t,n),FA(e,n,this._defsUsePending,!1,!1),BA(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=o;var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=function(){TA={g:function(e,t){var n=new Hr;return HA(t,n),FA(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new Cs;return HA(t,n),FA(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new km;return HA(t,n),FA(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new ag;return HA(t,n),FA(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new Tm;return HA(t,n),FA(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n,r=e.getAttribute("points");r&&(n=zA(r));var i=new Qm({shape:{points:n||[]},silent:!0});return HA(t,i),FA(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n,r=e.getAttribute("points");r&&(n=zA(r));var i=new ng({shape:{points:n||[]},silent:!0});return HA(t,i),FA(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new xs;return HA(t,n),FA(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",r=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(o);var a=new Hr;return HA(t,a),FA(e,a,this._defsUsePending,!1,!0),a},tspan:function(e,t){var n=e.getAttribute("x"),r=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",a=new Hr;return HA(t,a),FA(e,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),a},path:function(e,t){var n=e.getAttribute("d")||"",r=ym(n);return HA(t,r),FA(e,r,this._defsUsePending,!1,!1),r.silent=!0,r}}}(),e}(),PA={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),o=new bg(t,n,r,i);return NA(e,o),RA(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),r=parseInt(e.getAttribute("r")||"0",10),i=new wg(t,n,r);return NA(e,i),RA(e,i),i}};function NA(e,t){var n=e.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(t.global=!0)}function RA(e,t){var n=e.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};JA(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function HA(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Object(g["defaults"])(t.__inheritedStyle,e.__inheritedStyle))}function zA(e){for(var t=UA(e),n=[],r=0;r0;o-=2){var a=r[o],s=r[o-1],l=UA(a);switch(i=i||ke(),s){case"translate":De(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Ce(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Oe(i,i,-parseFloat(l[0])*XA,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*XA);Te(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*XA);Te(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var KA=/([^\s:;]+)\s*:\s*([^:;]+)/g;function JA(e,t,n){var r=e.getAttribute("style");if(r){var i;KA.lastIndex=0;while(null!=(i=KA.exec(r))){var o=i[1],a=Object(g["hasOwn"])(AA,o)?AA[o]:null;a&&(t[a]=i[2]);var s=Object(g["hasOwn"])(jA,o)?jA[o]:null;s&&(n[s]=i[2])}}}function QA(e,t,n){for(var r=0;r0,m={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:d};"geoJSON"===s.resourceType?this._buildGeoJSON(m):"geoSVG"===s.resourceType&&this._buildSVG(m),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,r)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=g["createHashMap"](),n=g["createHashMap"](),r=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,a=e.data,s=e.geo.projection,l=s&&s.stream;function u(e,t){return t&&(e=t(e)),e&&[e[0]*i.scaleX+i.x,e[1]*i.scaleY+i.y]}function c(e){for(var t=[],n=!l&&s&&s.project,r=0;r=0)&&(f=i);var h=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Mu(t,ku(r),{labelFetcher:f,labelDataIndex:d,defaultText:n},h);var p=t.getTextContent();if(p&&(LI(p).ignore=p.ignore,t.textConfig&&a)){var m=t.getBoundingRect().clone();t.textConfig.layoutRect=m,t.textConfig.position=[(a[0]-m.x)/m.width*100+"%",(a[1]-m.y)/m.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function II(e,t,n,r,i,o){e.data?e.data.setItemGraphicEl(o,t):Xs(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function jI(e,t,n,r,i){e.data||sv({el:t,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function EI(e,t,n,r,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return Kl(t,a,o.get("blurScope"),o.get("disabled")),e.isGeo&&iu(t,i,n),a}function YI(e,t,n){var r,i=[];function o(){r=[]}function a(){r.length&&(i.push(r),r=[])}var s=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(e,t){isFinite(e)&&isFinite(t)&&r.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),g["each"](e,(function(e){s.lineStart();for(var t=0;t-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},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}(Xp),zI=HI;function FI(e,t){var n={};return g["each"](e,(function(e){e.each(e.mapDimension("value"),(function(t,r){var i="ec-"+e.getName(r);n[i]=n[i]||[],isNaN(t)||n[i].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(r,i){for(var o,a="ec-"+e[0].getName(i),s=0,l=1/0,u=-1/0,c=n[a].length,d=0;d1?(h.width=f,h.height=f/_):(h.height=f,h.width=f*_),h.y=d[1]-h.height/2,h.x=d[0]-h.width/2;else{var x=e.getBoxLayoutParams();x.aspect=_,h=cd(x,{width:v,height:y})}this.setViewRect(h.x,h.y,h.width,h.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function ej(e,t){g["each"](t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var tj=function(){function e(){this.dimensions=XI}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,i){var o=e.get("map"),a=new JI(o+i,o,g["extend"]({nameMap:e.get("nameMap")},r(e)));a.zoomLimit=e.get("scaleLimit"),n.push(a),e.coordinateSystem=a,a.model=e,a.resize=QI,a.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var r=e.get("geoIndex")||0;e.coordinateSystem=n[r]}}));var i={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();i[t]=i[t]||[],i[t].push(e)}})),g["each"](i,(function(e,i){var o=g["map"](e,(function(e){return e.get("nameMap")})),a=new JI(i,i,g["extend"]({nameMap:g["mergeAll"](o)},r(e[0])));a.zoomLimit=g["retrieve"].apply(null,g["map"](e,(function(e){return e.get("scaleLimit")}))),n.push(a),a.resize=QI,a.resize(e[0],t),g["each"](e,(function(e){e.coordinateSystem=a,ej(a,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),o=g["createHashMap"](),a=0;a=0;a--){var s=r[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},i.push(s)}}function pj(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){_j(e);var o=(n[0].hierNode.prelim+n[n.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=bj(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function mj(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function gj(e){return arguments.length?e:Sj}function vj(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function yj(e,t){return cd(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function _j(e){var t=e.children,n=t.length,r=0,i=0;while(--n>=0){var o=t[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}function bj(e,t,n,r){if(t){var i=e,o=e,a=o.parentNode.children[0],s=t,l=i.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,d=s.hierNode.modifier;while(s=xj(s),o=wj(o),s&&o){i=xj(i),a=wj(a),i.hierNode.ancestor=e;var f=s.hierNode.prelim+d-o.hierNode.prelim-u+r(s,o);f>0&&(kj(Mj(s,e,n),e,f),u+=f,l+=f),d+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=i.hierNode.modifier,c+=a.hierNode.modifier}s&&!xj(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-l),o&&!wj(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=e)}return n}function xj(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function wj(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function Mj(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function kj(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function Sj(e,t){return e.parentNode===t.parentNode?1:2}var Lj=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),Tj=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Lj},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,o=n[0],a=n[r-1];if(1===r)return e.moveTo(i[0],i[1]),void e.lineTo(o[0],o[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=ii(t.forkPosition,1),d=[];d[l]=i[l],d[u]=i[u]+(a[u]-i[u])*c,e.moveTo(i[0],i[1]),e.lineTo(d[0],d[1]),e.moveTo(o[0],o[1]),d[l]=o[l],e.lineTo(d[0],d[1]),d[l]=a[l],e.lineTo(d[0],d[1]),e.lineTo(a[0],a[1]);for(var f=1;f_.x,w||(x-=Math.PI));var k=w?"left":"right",S=s.getModel("label"),L=S.get("rotate"),T=L*(Math.PI/180),D=v.getTextContent();D&&(v.setTextConfig({position:S.get("position")||k,rotation:null==L?-x:T,origin:"center"}),D.setStyle("verticalAlign","middle"))}var O=s.get(["emphasis","focus"]),C="relative"===O?g["concatArray"](a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===O?a.getAncestorsIndices():"descendant"===O?a.getDescendantIndices():null;C&&(Xs(n).focus=C),Aj(i,a,c,n,p,h,m,r),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var r=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);r&&r.hoverState===nl||Ml(n.__edge,t)}})}function Aj(e,t,n,r,i,o,a,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),d=e.getOrient(),f=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),m=r.__edge;if("curve"===u)t.parentNode&&t.parentNode!==n&&(m||(m=r.__edge=new dg({shape:Yj(c,d,f,i,i)})),fu(m,{shape:Yj(c,d,f,o,a)},e));else if("polyline"===u)if("orthogonal"===c){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var v=t.children,y=[],_=0;_t&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var r=n.getData().tree.root,i=e.targetNode;if(g["isString"](i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var o=e.targetNodeId;if(null!=o&&(i=r.getNodeById(o)))return{node:i}}}function Qj(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function eE(e,t){var n=Qj(e);return g["indexOf"](n,t)>=0}function tE(e,t){var n=[];while(e){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var nE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return p(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},r=new Xu(n,this,this.ecModel),i=Kj.createTree(t,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=i.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=r),e}))}var a=0;i.eachNode("preorder",(function(e){e.depth>a&&(a=e.depth)}));var s=e.expandAndCollapse,l=s&&e.initialTreeDepth>=0?e.initialTreeDepth:a;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<=l})),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,n){var r=this.getData().tree,i=r.root.children[0],o=r.getNodeByDataIndex(e),a=o.getValue(),s=o.name;while(o&&o!==i)s=o.parentNode.name+"."+s,o=o.parentNode;return _p("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=tE(r,this),n.collapsed=!r.isExpand,n},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}(Xp),rE=nE;function iE(e,t,n){var r,i=[e],o=[];while(r=i.pop())if(o.push(r),r.isExpand){var a=r.children;if(a.length)for(var s=0;s=0;o--)r.push(i[o])}}function aE(e,t){e.eachSeriesByType("tree",(function(e){sE(e,t)}))}function sE(e,t){var n=yj(e,t);e.layoutInfo=n;var r=e.get("layout"),i=0,o=0,a=null;"radial"===r?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,a=gj((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(i=n.width,o=n.height,a=gj());var s=e.getData().tree.root,l=s.children[0];if(l){hj(s),iE(l,pj,a),s.hierNode.modifier=-l.hierNode.prelim,oE(l,mj);var u=l,c=l,d=l;oE(l,(function(e){var t=e.getLayout().x;tc.getLayout().x&&(c=e),e.depth>d.depth&&(d=e)}));var f=u===c?1:a(u,c)/2,h=f-u.getLayout().x,p=0,m=0,g=0,v=0;if("radial"===r)p=i/(c.getLayout().x+f+h),m=o/(d.depth-1||1),oE(l,(function(e){g=(e.getLayout().x+h)*p,v=(e.depth-1)*m;var t=vj(g,v);e.setLayout({x:t.x,y:t.y,rawX:g,rawY:v},!0)}));else{var y=e.getOrient();"RL"===y||"LR"===y?(m=o/(c.getLayout().x+f+h),p=i/(d.depth-1||1),oE(l,(function(e){v=(e.getLayout().x+h)*m,g="LR"===y?(e.depth-1)*p:i-(e.depth-1)*p,e.setLayout({x:g,y:v},!0)}))):"TB"!==y&&"BT"!==y||(p=i/(c.getLayout().x+f+h),m=o/(d.depth-1||1),oE(l,(function(e){g=(e.getLayout().x+h)*p,v="TB"===y?(e.depth-1)*m:o-(e.depth-1)*m,e.setLayout({x:g,y:v},!0)})))}}}function lE(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(e){var n=e.getModel(),r=n.getModel("itemStyle").getItemStyle(),i=t.ensureUniqueItemVisual(e.dataIndex,"style");Object(g["extend"])(i,r)}))}))}function uE(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,r=t.getData().tree,i=r.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var r=t.coordinateSystem,i=sj(r,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}function cE(e){e.registerChartView(Pj),e.registerSeriesModel(rE),e.registerLayout(aE),e.registerVisual(lE),uE(e)}var dE=["treemapZoomToNode","treemapRender","treemapMove"];function fE(e){for(var t=0;t1)n=n.parentNode;var i=qd(e.ecModel,n.name||n.dataIndex+"",r);t.setVisual("decal",i)}))}var pE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return p(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};mE(n);var r=e.levels||[],i=this.designatedVisualItemStyle={},o=new Xu({itemStyle:i},this,t);r=e.levels=gE(r,t);var a=g["map"](r||[],(function(e){return new Xu(e,o,t)}),this),s=Kj.createTree(n,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),r=n?a[n.depth]:null;return e.parentModel=r||o,e}))}return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),o=r.getName(e);return _p("nameValue",{name:o,value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=tE(r,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},g["extend"](this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=g["createHashMap"](),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},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(){hE(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,scaleLimit:null,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"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},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}(Xp);function mE(e){var t=0;g["each"](e.children,(function(e){mE(e);var n=e.value;g["isArray"](n)&&(n=n[0]),t+=n}));var n=e.value;g["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),g["isArray"](e.value)?e.value[0]=n:e.value=n}function gE(e,t){var n=Ai(t.get("color")),r=Ai(t.get(["aria","decal","decals"]));if(n){var i,o;e=e||[],g["each"](e,(function(e){var t=new Xu(e),n=t.get("color"),r=t.get("decal");(t.get(["itemStyle","color"])||n&&"none"!==n)&&(i=!0),(t.get(["itemStyle","decal"])||r&&"none"!==r)&&(o=!0)}));var a=e[0]||(e[0]={});return i||(a.color=n.slice()),!o&&r&&(a.decal=r.slice()),e}}var vE=pE,yE=8,_E=8,bE=5,xE=function(){function e(e){this.group=new Hr,e.add(this.group)}return e.prototype.render=function(e,t,n,r){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),i.get("show")&&n){var a=i.getModel("itemStyle"),s=i.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(e,c,a,s,l,u,r),dd(o,c.pos,c.box)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=Gi(r.getModel().get("name"),""),o=n.getTextRect(i),a=Math.max(o.width+2*yE,t.emptyItemWidth);t.totalWidth+=a+_E,t.renderList.push({node:r,text:i,width:a})}},e.prototype._renderContent=function(e,t,n,r,i,o,a){for(var s=0,l=t.emptyItemWidth,u=e.get(["breadcrumb","height"]),c=ud(t.pos,t.box),d=t.totalWidth,f=t.renderList,h=r.getModel("itemStyle").getItemStyle(),p=f.length-1;p>=0;p--){var m=f[p],v=m.node,y=m.width,_=m.text;d>c.width&&(d-=y-l,y=l,_=null);var b=new Qm({shape:{points:wE(s,0,y,u,p===f.length-1,0===p)},style:Object(g["defaults"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new qs({style:Su(i,{text:_})}),textConfig:{position:"inside"},z2:1e4*al,onclick:Object(g["curry"])(a,v)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=Su(o,{text:_}),b.ensureState("emphasis").style=h,Kl(b,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(b),ME(b,e,v),s+=y+_E}},e.prototype.remove=function(){this.group.removeAll()},e}();function wE(e,t,n,r,i,o){var a=[[i?e:e-bE,t],[e+n,t],[e+n,t+r],[i?e:e-bE,t+r]];return!o&&a.splice(2,0,[e+n+bE,t+r/2]),!i&&a.push([e,t+r/2]),a}function ME(e,t,n){Xs(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&tE(n,t)}}var kE=xE,SE=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:i}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},r=0,i=this._storage.length;rOE||Math.abs(e.dy)>OE)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY,r=e.scale;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var a=new Ve(o.x,o.y,o.width,o.height),s=null,l=this._controllerHost;s=l.zoomLimit;var u=l.zoom=l.zoom||1;if(u*=r,s){var c=s.min||0,d=s.max||1/0;u=Math.max(Math.min(d,u),c)}var f=u/l.zoom;l.zoom=u;var h=this.seriesModel.layoutInfo;t-=h.x,n-=h.y;var p=ke();De(p,p,[-t,-n]),Ce(p,p,[f,f]),De(p,p,[t,n]),a.applyTransform(p),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x,y:a.y,width:a.width,height:a.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var r=t.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)t._rootToNode(r);else if("zoomToNode"===n)t._zoomToNode(r);else if("link"===n){var o=i.hostTree.data.getItemModel(i.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&rd(a,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new kE(this.group))).render(e,t,n.node,(function(t){"animating"!==r._state&&(eE(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=HE(),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 n,r=this.seriesModel.getViewRoot();return r.eachNode({attr:"viewChildren",order:"preorder"},(function(r){var i=this._storage.background[r.getRawIndex()];if(i){var o=i.transformCoordToLocal(e,t),a=i.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:r,offsetX:o[0],offsetY:o[1]}}}),this),n},t.type="treemap",t}(yv);function HE(){return{nodeGroup:[],background:[],content:[]}}function zE(e,t,n,r,i,o,a,s,l,u){if(a){var c=a.getLayout(),d=e.getData(),f=a.getModel();if(d.setItemGraphicEl(a.dataIndex,null),c&&c.isInView){var h=c.width,p=c.height,m=c.borderWidth,v=c.invisible,y=a.getRawIndex(),_=s&&s.getRawIndex(),b=a.viewChildren,x=c.upperHeight,w=b&&b.length,M=f.getModel("itemStyle"),k=f.getModel(["emphasis","itemStyle"]),S=f.getModel(["blur","itemStyle"]),L=f.getModel(["select","itemStyle"]),T=M.get("borderRadius")||0,D=B("nodeGroup",TE);if(D){if(l.add(D),D.x=c.x||0,D.y=c.y||0,D.markRedraw(),NE(D).nodeWidth=h,NE(D).nodeHeight=p,c.isAboveViewRoot)return D;var O=B("background",DE,u,jE);O&&N(D,O,w&&c.upperLabelHeight);var C=f.getModel("emphasis"),A=C.get("focus"),I=C.get("blurScope"),j=C.get("disabled"),E="ancestor"===A?a.getAncestorsIndices():"descendant"===A?a.getDescendantIndices():A;if(w)ru(D)&&nu(D,!1),O&&(nu(O,!j),d.setItemGraphicEl(a.dataIndex,O),Jl(O,E,I));else{var Y=B("content",DE,u,EE);Y&&R(D,Y),O.disableMorphing=!0,O&&ru(O)&&nu(O,!1),nu(D,!j),d.setItemGraphicEl(a.dataIndex,D);var P=f.getShallow("cursor");P&&Y.attr("cursor",P),Jl(D,E,I)}return D}}}function N(t,n,r){var i=Xs(n);if(i.dataIndex=a.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:h,height:p,r:T}),v)H(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=PE(M);l.fill=s;var u=YE(k);u.fill=k.get("borderColor");var c=YE(S);c.fill=S.get("borderColor");var d=YE(L);if(d.fill=L.get("borderColor"),r){var f=h-2*m;z(n,s,o.opacity,{x:m,y:0,width:f,height:x})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=d,Ol(n)}t.add(n)}function R(t,n){var r=Xs(n);r.dataIndex=a.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(h-2*m,0),o=Math.max(p-2*m,0);if(n.culling=!0,n.setShape({x:m,y:m,width:i,height:o,r:T}),v)H(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=PE(M);u.fill=l,u.decal=s.decal;var c=YE(k),d=YE(S),f=YE(L);z(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=d,n.ensureState("select").style=f,Ol(n)}t.add(n)}function H(e){!e.invisible&&o.push(e)}function z(t,n,r,i){var o=f.getModel(i?AE:CE),s=Gi(f.get("name"),null),l=o.getShallow("show");Mu(t,ku(f,i?AE:CE),{defaultText:l?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:a.dataIndex});var u=t.getTextContent();if(u){var d=u.style,h=Object(g["normalizeCssArray"])(d.padding||0);i&&(t.setTextConfig({layoutRect:i}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-h[1]-h[3],0),n=Math.max((i?i.height:t.shape.height)-h[0]-h[2],0);d.width===e&&d.height===n||u.setStyle({width:e,height:n})},d.truncateMinChar=2,d.lineOverflow="truncate",F(d,i,c);var p=u.getState("emphasis");F(p?p.style:null,i,c)}}function F(t,n,r){var i=t?t.text:null;if(!n&&r.isLeafRoot&&null!=i){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+i:i}}function B(e,r,o,a){var s=null!=_&&n[e][_],l=i[e];return s?(n[e][_]=null,W(l,s)):v||(s=new r,s instanceof aa&&(s.z2=FE(o,a)),V(l,s)),t[e][y]=s}function W(e,t){var n=e[y]={};t instanceof TE?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Object(g["extend"])({},t.shape)}function V(e,t){var n=e[y]={},o=a.parentNode,s=t instanceof Hr;if(o&&(!r||"drillDown"===r.direction)){var l=0,u=0,c=i.background[o.getRawIndex()];!r&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}function FE(e,t){return e*IE+t}var BE=RE,WE=g["each"],VE=g["isObject"],GE=-1,$E=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=g["clone"](t);this.type=r,this.mappingMethod=n,this._normalizeData=iY[n];var o=e.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(XE(i),UE(i)):"category"===n?i.categories?qE(i):XE(i,!0):(g["assert"]("linear"!==n||i.dataExtent),XE(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return g["bind"](this._normalizeData,this)},e.listVisualTypes=function(){return g["keys"](e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){g["isObject"](e)?g["each"](e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,o=g["isArray"](t)?[]:g["isObject"](t)?{}:(i=!0,null);return e.eachVisual(t,(function(e,t){var a=n.call(r,e,t);i?o=a:o[t]=a})),o},e.retrieveVisuals=function(t){var n,r={};return t&&WE(e.visualHandlers,(function(e,i){t.hasOwnProperty(i)&&(r[i]=t[i],n=!0)})),n?r:null},e.prepareVisualTypes=function(e){if(g["isArray"](e))e=e.slice();else{if(!VE(e))return[];var t=[];WE(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,o=0,a=t.length;o=0;o--)null==r[o]&&(delete n[t[o]],t.pop())}function XE(e,t){var n=e.visual,r=[];g["isObject"](n)?WE(n,(function(e){r.push(e)})):null!=n&&r.push(n);var i={color:1,symbol:1};t||1!==r.length||i.hasOwnProperty(e.type)||(r[1]=r[0]),rY(e,r)}function ZE(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r("color",e(n("color"),i))},_normalizedToVisual:tY([0,1])}}function KE(e){var t=this.option.visual;return t[Math.round(ri(e,[0,1],[0,t.length-1],!0))]||{}}function JE(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function QE(e){var t=this.option.visual;return t[this.option.loop&&e!==GE?e%t.length:e]}function eY(){return this.option.visual[0]}function tY(e){return{linear:function(t){return ri(t,e,this.option.visual,!0)},category:QE,piecewise:function(t,n){var r=nY.call(this,n);return null==r&&(r=ri(t,e,this.option.visual,!0)),r},fixed:eY}}function nY(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=$E.findPieceIndex(e,n),i=n[r];if(i&&i.visual)return i.visual[this.type]}}function rY(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=g["map"](t,(function(e){var t=en["parse"](e);return t||[0,0,0,1]}))),t}var iY={linear:function(e){return ri(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=$E.findPieceIndex(e,t,!0);if(null!=n)return ri(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?GE:t},fixed:g["noop"]};function oY(e,t,n){return e?t<=n:t=n.length||e===n[e.depth]){var o=vY(i,u,e,t,p,r);cY(e,o,n,r)}}))}else s=fY(u),c.fill=s}}function dY(e,t,n){var r=Object(g["extend"])({},t),i=n.designatedVisualItemStyle;return Object(g["each"])(["color","colorAlpha","colorSaturation"],(function(n){i[n]=t[n];var o=e.get(n);i[n]=null,null!=o&&(r[n]=o)})),r}function fY(e){var t=pY(e,"color");if(t){var n=pY(e,"colorAlpha"),r=pY(e,"colorSaturation");return r&&(t=Object(en["modifyHSL"])(t,null,null,r)),n&&(t=Object(en["modifyAlpha"])(t,n)),t}}function hY(e,t){return null!=t?Object(en["modifyHSL"])(t,null,null,e):null}function pY(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function mY(e,t,n,r,i,o){if(o&&o.length){var a=gY(t,"color")||null!=i.color&&"none"!==i.color&&(gY(t,"colorAlpha")||gY(t,"colorSaturation"));if(a){var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();null!=s&&su[1]&&(u[1]=l);var c=t.get("colorMappingBy"),d={type:a.name,dataExtent:u,visual:a.range};"color"!==d.type||"index"!==c&&"id"!==c?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var f=new aY(d);return lY(f).drColorMappingBy=c,f}}}function gY(e,t){var n=e.get(t);return Object(g["isArray"])(n)&&n.length?{name:t,range:n}:null}function vY(e,t,n,r,i,o){var a=Object(g["extend"])({},t);if(i){var s=i.type,l="color"===s&&lY(i).drColorMappingBy,u="index"===l?r:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[s]=i.mapValueToVisual(u)}return a}var yY=Math.max,_Y=Math.min,bY=g["retrieve"],xY=g["each"],wY=["itemStyle","borderWidth"],MY=["itemStyle","gapWidth"],kY=["upperLabel","show"],SY=["upperLabel","height"],LY={seriesType:"treemap",reset:function(e,t,n,r){var i=n.getWidth(),o=n.getHeight(),a=e.option,s=cd(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=ii(bY(s.width,l[0]),i),c=ii(bY(s.height,l[1]),o),d=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],h=Jj(r,f,e),p="treemapRender"===d||"treemapMove"===d?r.rootRect:null,m=e.getViewRoot(),v=Qj(m);if("treemapMove"!==d){var y="treemapZoomToNode"===d?EY(e,h,m,u,c):p?[p.width,p.height]:[u,c],_=a.sort;_&&"asc"!==_&&"desc"!==_&&(_="desc");var b={squareRatio:a.squareRatio,sort:_,leafDepth:a.leafDepth};m.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};m.setLayout(x),TY(m,b,!1,0),x=m.getLayout(),xY(v,(function(e,t){var n=(v[t+1]||m).getValue();e.setLayout(g["extend"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))}))}var w=e.getData().tree.root;w.setLayout(YY(s,p,h),!0),e.setLayoutInfo(s),PY(w,new Ve(-s.x,-s.y,i,o),v,m,0)}};function TY(e,t,n,r){var i,o;if(!e.isRemoved()){var a=e.getLayout();i=a.width,o=a.height;var s=e.getModel(),l=s.get(wY),u=s.get(MY)/2,c=NY(s),d=Math.max(l,c),f=l-u,h=d-u;e.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),i=yY(i-2*f,0),o=yY(o-f-h,0);var p=i*o,m=DY(e,s,p,t,n,r);if(m.length){var g={x:f,y:h,width:i,height:o},v=_Y(i,o),y=1/0,_=[];_.area=0;for(var b=0,x=m.length;b=0;l--){var u=i["asc"===r?a-l-1:l].getValue();u/n*ta[1]&&(a[1]=t)}))):a=[NaN,NaN],{sum:r,dataExtent:a}}function IY(e,t,n){for(var r=0,i=1/0,o=0,a=void 0,s=e.length;or&&(r=a));var l=e.area*e.area,u=t*t*n;return l?yY(u*r/l,l/(u*i)):1/0}function jY(e,t,n,r,i){var o=t===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=t?e.area/t:0;(i||c>n[l[a]])&&(c=n[l[a]]);for(var d=0,f=e.length;dhi&&(u=hi),a=o}ur&&(r=t);var o=r%2?r+2:r+3;i=[];for(var a=0;a0&&(y[0]=-y[0],y[1]=-y[1]);var b=v[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var x=-Math.atan2(v[1],v[0]);u[0].8?"left":c[0]<-.8?"right":"center",f=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":r.x=-c[0]*p+l[0],r.y=-c[1]*m+l[1],d=c[0]>.8?"right":c[0]<-.8?"left":"center",f=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":r.x=p*b+l[0],r.y=l[1]+w,d=v[0]<0?"right":"left",r.originX=-p*b,r.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":r.x=_[0],r.y=_[1]+w,d="center",r.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":r.x=-p*b+u[0],r.y=u[1]+w,d=v[0]>=0?"right":"left",r.originX=p*b,r.originY=-w;break}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||f,align:r.__align||d})}}}function M(e,t){var n=e.__specifiedRotation;if(null==n){var r=a.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else e.attr("rotation",n)}},t}(Hr),OP=DP,CP=function(){function e(e){this.group=new Hr,this._LineCtor=e||OP}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var o=IP(e);e.diff(i).add((function(n){t._doAdd(e,n,o)})).update((function(n,r){t._doUpdate(i,e,r,n,o)})).remove((function(e){r.remove(i.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=IP(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||AP(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=e.start;r0}function IP(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:ku(t)}}function jP(e){return isNaN(e[0])||isNaN(e[1])}function EP(e){return e&&!jP(e[0])&&!jP(e[1])}var YP=CP,PP=[],NP=[],RP=[],HP=Wt,zP=R,FP=Math.abs;function BP(e,t,n){for(var r,i=e[0],o=e[1],a=e[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){PP[0]=HP(i[0],o[0],a[0],c),PP[1]=HP(i[1],o[1],a[1],c);var d=FP(zP(PP,t)-l);d=0?r+=u:r-=u:p>=0?r-=u:r+=u}return r}function WP(e,t){var n=[],r=Ut,i=[[],[],[]],o=[[],[]],a=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),u=e.getVisual("fromSymbol"),c=e.getVisual("toSymbol");l.__original||(l.__original=[x(l[0]),x(l[1])],l[2]&&l.__original.push(x(l[2])));var d=l.__original;if(null!=l[2]){if(b(i[0],d[0]),b(i[1],d[2]),b(i[2],d[1]),u&&"none"!==u){var f=iP(e.node1),h=BP(i,d[0],f*t);r(i[0][0],i[1][0],i[2][0],h,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],h,n),i[0][1]=n[3],i[1][1]=n[4]}if(c&&"none"!==c){f=iP(e.node2),h=BP(i,d[1],f*t);r(i[0][0],i[1][0],i[2][0],h,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],h,n),i[1][1]=n[1],i[2][1]=n[2]}b(l[0],i[0]),b(l[1],i[2]),b(l[2],i[1])}else{if(b(o[0],d[0]),b(o[1],d[1]),S(a,o[1],o[0]),E(a,a),u&&"none"!==u){f=iP(e.node1);k(o[0],o[0],a,f*t)}if(c&&"none"!==c){f=iP(e.node2);k(o[1],o[1],a,-f*t)}b(l[0],o[0]),b(l[1],o[1])}}))}function VP(e){return"view"===e.type}var GP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.init=function(e,t){var n=new LT,r=new YP,i=this.group;this._controller=new kA(t.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem;this._model=e;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(VP(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(l):fu(s,l,e)}WP(e.getGraph(),rP(e));var u=e.getData();o.updateData(u);var c=e.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,f=e.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,f);var h=e.get("layout");u.graph.eachNode((function(t){var n=t.dataIndex,i=t.getGraphicEl(),o=t.getModel();if(i){i.off("drag").off("dragend");var a=o.get("draggable");a&&i.on("drag",(function(o){switch(h){case"force":d.warmUp(),!r._layouting&&r._startForceLayoutIteration(d,f),d.setFixed(n),u.setItemLayout(n,[i.x,i.y]);break;case"circular":u.setItemLayout(n,[i.x,i.y]),t.setLayout({fixed:!0},!0),sP(e,"symbolSize",t,[o.offsetX,o.offsetY]),r.updateLayout(e);break;case"none":default:u.setItemLayout(n,[i.x,i.y]),tP(e.getGraph(),e),r.updateLayout(e);break}})).on("dragend",(function(){d&&d.setUnfixed(n)})),i.setDraggable(a,!!o.get("cursor"));var s=o.get(["emphasis","focus"]);"adjacency"===s&&(Xs(i).focus=t.getAdjacentDataIndices())}})),u.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(Xs(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var p="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),m=u.getLayout("cx"),g=u.getLayout("cy");u.graph.eachNode((function(e){uP(e,p,m,g)})),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;(function r(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(r,16):r())}))})()},t.prototype._updateController=function(e,t,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(t,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!OA(t,n,e)})),VP(e.coordinateSystem)?(i.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){SA(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){LA(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(),WP(e.getGraph(),rP(e)),r._lineDraw.updateLayout(),n.updateLabelLayout()}))):i.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=rP(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){WP(e.getGraph(),rP(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(yv),$P=GP;function UP(e){return"_EC_"+e}var qP=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[UP(e)]){var r=new XP(e,t);return r.hostGraph=this,this.nodes.push(r),n[UP(e)]=r,r}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[UP(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if(g["isNumber"](e)&&(e=this.nodes[e]),g["isNumber"](t)&&(t=this.nodes[t]),e instanceof XP||(e=r[UP(e)]),t instanceof XP||(t=r[UP(t)]),e&&t){var o=e.id+"-"+t.id,a=new ZP(e,t,n);return a.hostGraph=this,this._directed&&(e.outEdges.push(a),t.inEdges.push(a)),e.edges.push(a),e!==t&&t.edges.push(a),this.edges.push(a),i[o]=a,a}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof XP&&(e=e.id),t instanceof XP&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,r=n.length,i=0;i=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof XP||(t=this._nodesMap[UP(t)]),t){for(var i="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0}));for(i=0,o=r.length;i=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}g["mixin"](XP,KP("hostGraph","data")),g["mixin"](ZP,KP("hostGraph","edgeData"));var JP=qP;function QP(e,t,n,r,i){for(var o=new JP(r),a=0;a "+f)),u++)}var h,p=n.get("coordinateSystem");if("cartesian2d"===p||"polar"===p)h=vw(e,n);else{var m=yf.get(p),v=m&&m.dimensions||[];g["indexOf"](v,"value")<0&&v.concat(["value"]);var y=ew(e,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;h=new Jx(y,n),h.initData(e)}var _=new Jx(["value"],n);return _.initData(l,s),i&&i(h,_),Uj({mainData:h,struct:o,structAttr:"graph",datas:{node:h,edge:_},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var eN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return p(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new gO(r,r),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Ii(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=this;if(r&&n){KY(this);var o=QP(r,n,this,!0,a);return g["each"](o.edges,(function(e){JY(e.node1,e.node2,this,e.dataIndex)}),this),o.data}function a(e,t){e.wrapMethod("getItemModel",(function(e){var t=i._categoriesModels,n=e.getShallow("category"),r=t[n];return r&&(r.parentModel=e.parentModel,e.parentModel=r),e}));var n=Xu.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=o,r}function o(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=o,e.getModel=r,e}))}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var r=this.getData(),i=this.getDataParams(e,n),o=r.graph.getEdgeByIndex(e),a=r.getName(o.node1.dataIndex),s=r.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),_p("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}var u=Yp({series:this,dataIndex:e,multipleSeries:t});return u},t.prototype._updateCategoriesData=function(){var e=g["map"](this.option.categories||[],(function(e){return null!=e.value?e:g["extend"]({value:0},e)})),t=new Jx(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Xp),tN=eN,nN={type:"graphRoam",event:"graphRoam",update:"none"};function rN(e){e.registerChartView($P),e.registerSeriesModel(tN),e.registerProcessor(HY),e.registerVisual(zY),e.registerVisual(BY),e.registerLayout(nP),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,cP),e.registerLayout(hP),e.registerCoordinateSystem("graphView",{dimensions:UI.dimensions,create:mP}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},g["noop"]),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},g["noop"]),e.registerAction(nN,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var r=t.coordinateSystem,i=sj(r,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}var iN=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),oN=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return p(t,e),t.prototype.getDefaultShape=function(){return new iN},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,i=t.r,o=t.width,a=t.angle,s=t.x-n(a)*o*(o>=i/3?1:2),l=t.y-r(a)*o*(o>=i/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(a)*o,t.y+r(a)*o),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(a)*o,t.y-r(a)*o),e.lineTo(s,l)},t}(hs),aN=oN;function sN(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),o=Math.min(r,i),a=ii(n[0],t.getWidth()),s=ii(n[1],t.getHeight()),l=ii(e.get("radius"),o/2);return{cx:a,cy:s,r:l}}function lN(e,t){var n=null==e?"":e+"";return t&&(Object(g["isString"])(t)?n=t.replace("{value}",n):Object(g["isFunction"])(t)&&(n=t(e))),n}var uN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var r=e.get(["axisLine","lineStyle","color"]),i=sN(e,n);this._renderMain(e,t,n,r,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,i){var o=this.group,a=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,u=e.getModel("axisLine"),c=u.get("roundCap"),d=c?bD:Gm,f=u.get("show"),h=u.getModel("lineStyle"),p=h.get("width"),m=[s,l];Ha(m,!a),s=m[0],l=m[1];for(var v=l-s,y=s,_=[],b=0;f&&b=e&&(0===t?0:r[t-1][0])Math.PI/2&&(H+=Math.PI)):"tangential"===R?H=-S-Math.PI/2:Object(g["isNumber"])(R)&&(H=R*Math.PI/180),0===H?d.add(new qs({style:Su(b,{text:E,x:P,y:N,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:Y}),silent:!0})):d.add(new qs({style:Su(b,{text:E,x:P,y:N,verticalAlign:"middle",align:"center"},{inheritColor:Y}),silent:!0,originX:P,originY:N,rotation:H}))}if(_.get("show")&&A!==x){I=_.get("distance");I=I?I+l:l;for(var z=0;z<=w;z++){u=Math.cos(S),c=Math.sin(S);var F=new ag({shape:{x1:u*(p-I)+f,y1:c*(p-I)+h,x2:u*(p-k-I)+f,y2:c*(p-k-I)+h},silent:!0,style:O});"auto"===O.stroke&&F.setStyle({stroke:r((A+z/w)/x)}),d.add(F),S+=T}S-=T}else S+=L}},t.prototype._renderPointer=function(e,t,n,r,i,o,a,s,l){var u=this.group,c=this._data,d=this._progressEls,f=[],h=e.get(["pointer","show"]),p=e.getModel("progress"),m=p.get("show"),v=e.getData(),y=v.mapDimension("value"),_=+e.get("min"),b=+e.get("max"),x=[_,b],w=[o,a];function M(t,n){var r,o=v.getItemModel(t),a=o.getModel("pointer"),s=ii(a.get("width"),i.r),l=ii(a.get("length"),i.r),u=e.get(["pointer","icon"]),c=a.get("offsetCenter"),d=ii(c[0],i.r),f=ii(c[1],i.r),h=a.get("keepAspect");return r=u?Ay(u,d-s/2,f-l,s,l,null,h):new aN({shape:{angle:-Math.PI/2,width:s,r:l,x:d,y:f}}),r.rotation=-(n+Math.PI/2),r.x=i.cx,r.y=i.cy,r}function k(e,t){var n=p.get("roundCap"),r=n?bD:Gm,a=p.get("overlap"),u=a?p.get("width"):l/v.count(),c=a?i.r-u:i.r-(e+1)*u,d=a?i.r:i.r-e*u,f=new r({shape:{startAngle:o,endAngle:t,cx:i.cx,cy:i.cy,clockwise:s,r0:c,r:d}});return a&&(f.z2=ri(v.get(y,e),[_,b],[100,0],!0)),f}(m||h)&&(v.diff(c).add((function(t){var n=v.get(y,t);if(h){var r=M(t,o);hu(r,{rotation:-((isNaN(+n)?w[0]:ri(n,x,w,!0))+Math.PI/2)},e),u.add(r),v.setItemGraphicEl(t,r)}if(m){var i=k(t,o),a=p.get("clip");hu(i,{shape:{endAngle:ri(n,x,w,a)}},e),u.add(i),Zs(e.seriesIndex,v.dataType,t,i),f[t]=i}})).update((function(t,n){var r=v.get(y,t);if(h){var i=c.getItemGraphicEl(n),a=i?i.rotation:o,s=M(t,a);s.rotation=a,fu(s,{rotation:-((isNaN(+r)?w[0]:ri(r,x,w,!0))+Math.PI/2)},e),u.add(s),v.setItemGraphicEl(t,s)}if(m){var l=d[n],g=l?l.shape.endAngle:o,_=k(t,g),b=p.get("clip");fu(_,{shape:{endAngle:ri(r,x,w,b)}},e),u.add(_),Zs(e.seriesIndex,v.dataType,t,_),f[t]=_}})).execute(),v.each((function(e){var t=v.getItemModel(e),n=t.getModel("emphasis"),i=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(h){var s=v.getItemGraphicEl(e),l=v.getItemVisual(e,"style"),u=l.fill;if(s instanceof xs){var c=s.style;s.useStyle(Object(g["extend"])({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",r(ri(v.get(y,e),x,[0,1],!0))),s.z2EmphasisLift=0,tu(s,t),Kl(s,i,o,a)}if(m){var d=f[e];d.useStyle(v.getItemVisual(e,"style")),d.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,tu(d,t),Kl(d,i,o,a)}})),this._progressEls=f)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor"),r=n.get("show");if(r){var i=n.get("size"),o=n.get("icon"),a=n.get("offsetCenter"),s=n.get("keepAspect"),l=Ay(o,t.cx-i/2+ii(a[0],t.r),t.cy-i/2+ii(a[1],t.r),i,i,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},t.prototype._renderTitleAndDetail=function(e,t,n,r,i){var o=this,a=e.getData(),s=a.mapDimension("value"),l=+e.get("min"),u=+e.get("max"),c=new Hr,d=[],f=[],h=e.isAnimationEnabled(),p=e.get(["pointer","showAbove"]);a.diff(this._data).add((function(e){d[e]=new qs({silent:!0}),f[e]=new qs({silent:!0})})).update((function(e,t){d[e]=o._titleEls[t],f[e]=o._detailEls[t]})).execute(),a.each((function(t){var n=a.getItemModel(t),o=a.get(s,t),m=new Hr,g=r(ri(o,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var y=v.get("offsetCenter"),_=i.cx+ii(y[0],i.r),b=i.cy+ii(y[1],i.r),x=d[t];x.attr({z2:p?0:2,style:Su(v,{x:_,y:b,text:a.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:g})}),m.add(x)}var w=n.getModel("detail");if(w.get("show")){var M=w.get("offsetCenter"),k=i.cx+ii(M[0],i.r),S=i.cy+ii(M[1],i.r),L=ii(w.get("width"),i.r),T=ii(w.get("height"),i.r),D=e.get(["progress","show"])?a.getItemVisual(t,"style").fill:g,O=(x=f[t],w.get("formatter"));x.attr({z2:p?0:2,style:Su(w,{x:k,y:S,text:lN(o,O),width:isNaN(L)?null:L,height:isNaN(T)?null:T,align:"center",verticalAlign:"middle"},{inheritColor:D})}),Yu(x,{normal:w},o,(function(e){return lN(e,O)})),h&&Pu(x,t,a,e,{getFormattedLabel:function(e,t,n,r,i,a){return lN(a?a.interpolatedValue:o,O)}}),m.add(x)}c.add(m)})),this.group.add(c),this._titleEls=d,this._detailEls=f},t.type="gauge",t}(yv),cN=uN,dN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return p(t,e),t.prototype.getInitialData=function(e,t){return pO(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Xp),fN=dN;function hN(e){e.registerChartView(cN),e.registerSeriesModel(fN)}var pN=["itemStyle","opacity"],mN=function(e){function t(t,n){var r=e.call(this)||this,i=r,o=new ng,a=new qs;return i.setTextContent(a),r.setTextGuideLine(o),r.updateData(t,n,!0),r}return p(t,e),t.prototype.updateData=function(e,t,n){var r=this,i=e.hostModel,o=e.getItemModel(t),a=e.getItemLayout(t),s=o.getModel("emphasis"),l=o.get(pN);l=null==l?1:l,n||yu(r),r.useStyle(e.getItemVisual(t,"style")),r.style.lineJoin="round",n?(r.setShape({points:a.points}),r.style.opacity=0,hu(r,{style:{opacity:l}},i,t)):fu(r,{style:{opacity:l},shape:{points:a.points}},i,t),tu(r,o),this._updateLabel(e,t),Kl(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),o=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,u=e.getItemVisual(t,"style"),c=u.fill;Mu(i,ku(a),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:u.opacity,defaultText:e.getName(t)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var d=l.linePoints;r.setShape({points:d}),n.textGuideLineConfig={anchor:d?new Ee(d[0][0],d[0][1]):null},fu(i,{style:{x:l.x,y:l.y}},o,t),i.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),iS(n,oS(a),{stroke:c})},t}(Qm),gN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return p(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,o=this.group;r.diff(i).add((function(e){var t=new mN(r,e);r.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),o.add(n),r.setItemGraphicEl(e,n)})).remove((function(t){var n=i.getItemGraphicEl(t);vu(n,e,t)})).execute(),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(yv),vN=gN,yN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new gO(g["bind"](this.getData,this),g["bind"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return pO(this,{coordDimensions:["value"],encodeDefaulter:g["curry"](Nd,this)})},t.prototype._defaultLabelLine=function(e){Ii(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=n.mapDimension("value"),o=n.getSum(i);return r.percent=o?+(n.get(i,t)/o*100).toFixed(2):0,r.$vars.push("percent"),r},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Xp),_N=yN;function bN(e,t){return cd(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function xN(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,(function(e){return e})),i=[],o="ascending"===t,a=0,s=e.count();aVN)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&UN(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r?null:{duration:0}})}}};function UN(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var qN=GN,XN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&g["merge"](t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){g["each"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=g["filter"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);g["each"](n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(bd),ZN=XN,KN=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r)||this;return a.type=i||"value",a.axisIndex=o,a}return p(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(Ak),JN=KN;function QN(e,t,n,r,i,o){e=e||0;var a=n[1]-n[0];if(null!=i&&(i=tR(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r){var s=Math.abs(t[1]-t[0]);s=tR(s,[0,a]),i=o=tR(s,[i,o]),r=0}t[0]=tR(t[0],n),t[1]=tR(t[1],n);var l=eR(t,r);t[r]+=e;var u,c=i||0,d=n.slice();return l.sign<0?d[0]+=c:d[1]-=c,t[r]=tR(t[r],d),u=eR(t,r),null!=i&&(u.sign!==l.sign||u.span