0&&e.arc(c+pe.cx,h+pe.cy,ye,on(pe.y0,pe.x0),on(pe.y1,pe.x1),!f),e.arc(c,h,n,on(pe.cy+pe.y1,pe.cx+pe.x1),on(Te.cy+Te.y1,Te.cx+Te.x1),!f),Me>0&&e.arc(c+Te.cx,h+Te.cy,Me,on(Te.y1,Te.x1),on(Te.y0,Te.x0),!f))}else e.moveTo(c+H,h+W),e.arc(c,h,n,l,u,!f);if(!(i>Yi)||!Z)e.lineTo(c+V,h+z);else if(N>Yi){var ye=Ca(m,N),Me=Ca(y,N),pe=cm(V,z,D,O,i,-Me,f),Te=cm(H,W,R,F,i,-ye,f);e.lineTo(c+pe.cx+pe.x0,h+pe.cy+pe.y0),N0&&e.arc(c+pe.cx,h+pe.cy,Me,on(pe.y0,pe.x0),on(pe.y1,pe.x1),!f),e.arc(c,h,i,on(pe.cy+pe.y1,pe.cx+pe.x1),on(Te.cy+Te.y1,Te.cx+Te.x1),f),ye>0&&e.arc(c+Te.cx,h+Te.cy,ye,on(Te.y1,Te.x1),on(Te.y0,Te.x0),!f))}else e.lineTo(c+V,h+z),e.arc(c,h,i,u,l,f)}e.closePath()}}}var dJ=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),Qr=function(e){q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new dJ},t.prototype.buildPath=function(r,n){fJ(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Ke);Qr.prototype.type="sector";var vJ=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),cf=function(e){q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new vJ},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(Ke);cf.prototype.type="ring";function pJ(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,c,h;if(n){c=[1/0,1/0],h=[-1/0,-1/0];for(var f=0,d=e.length;f=2){if(n){var a=pJ(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;sOl[1]){if(a=!1,Or.negativeSize||n)return a;var l=hm(Ol[0]-Rl[1]),u=hm(Rl[0]-Ol[1]);Lb(l,u)>dm.len()&&(l=u||!Or.bidirectional)&&(Ne.scale(fm,s,-u*i),Or.useDir&&Or.calcDirMTV()))}}return a},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,l=o,u=1;u0){var h=c.duration,f=c.delay,d=c.easing,g={duration:h,delay:f||0,easing:d,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,g):t.animateTo(r,g)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function it(e,t,r,n,i,a){gA("update",e,t,r,n,i,a)}function Nt(e,t,r,n,i,a){gA("enter",e,t,r,n,i,a)}function bh(e){if(!e.__zr)return!0;for(var t=0;tja(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function tD(e){return!e.isGroup}function AJ(e){return e.shape!=null}function Up(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){tD(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return AJ(o)&&(s.shape=Se(o.shape)),s}var a=n(e);t.traverse(function(o){if(tD(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),it(o,l,r,De(o).dataIndex)}}})}function xA(e,t){return ae(e,function(r){var n=r[0];n=nr(n,t.x),n=ni(n,t.x+t.width);var i=r[1];return i=nr(i,t.y),i=ni(i,t.y+t.height),[n,i]})}function rV(e,t){var r=nr(e.x,t.x),n=ni(e.x+e.width,t.x+t.width),i=nr(e.y,t.y),a=ni(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function df(e,t,r){var n=Q({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),Ae(i,r),new Er(n)):Bh(e.replace("path://",""),n,r,"center")}function Ud(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var y=Nb(d,g,c,h)/f;return!(y<0||y>1)}function Nb(e,t,r,n){return e*n-r*t}function kJ(e){return e<=1e-6&&e>=-1e-6}function Bu(e,t,r,n,i){return t==null||(rt(t)?Ot[0]=Ot[1]=Ot[2]=Ot[3]=t:(Ot[0]=t[0],Ot[1]=t[1],Ot[2]=t[2],Ot[3]=t[3]),n&&(Ot[0]=nr(0,Ot[0]),Ot[1]=nr(0,Ot[1]),Ot[2]=nr(0,Ot[2]),Ot[3]=nr(0,Ot[3])),r&&(Ot[0]=-Ot[0],Ot[1]=-Ot[1],Ot[2]=-Ot[2],Ot[3]=-Ot[3]),rD(e,Ot,"x","width",3,1,i&&i[0]||0),rD(e,Ot,"y","height",0,2,i&&i[1]||0)),e}var Ot=[0,0,0,0];function rD(e,t,r,n,i,a,o){var s=t[a]+t[i],l=e[n];e[n]+=s,o=nr(0,ni(o,l)),e[n]=0?-t[i]:t[a]>=0?l+t[a]:ja(s)>1e-8?(l-o)*t[i]/s:0):e[r]-=t[i]}function Qo(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=he(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&j(Qe(l),function(c){ge(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=De(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Ae({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function aT(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function hl(e,t){if(e)if(re(e))for(var r=0;rt&&(t=o),ot&&(r=t=0),{min:r,max:t}}function w_(e,t,r){aV(e,t,r,-1/0)}function aV(e,t,r,n){if(e.ignoreModelZ)return n;var i=e.getTextContent(),a=e.getTextGuideLine(),o=e.isGroup;if(o)for(var s=e.childrenRef(),l=0;l=0&&s.push(l)}),s}}function fl(e,t){return Ge(Ge({},e,!0),t,!0)}const FJ={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},VJ={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var O0="ZH",SA="EN",wh=SA,Iy={},CA={},hV=Je.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||wh).toUpperCase();return e.indexOf(O0)>-1?O0:wh}():wh;function TA(e,t){e=e.toUpperCase(),CA[e]=new qe(t),Iy[e]=t}function GJ(e){if(he(e)){var t=Iy[e.toUpperCase()]||{};return e===O0||e===SA?Se(t):Ge(Se(t),Se(Iy[wh]),!1)}else return Ge(Se(e),Se(Iy[wh]),!1)}function sT(e){return CA[e]}function WJ(){return CA[wh]}TA(SA,FJ);TA(O0,VJ);var lT=null;function HJ(e){lT||(lT=e)}function vr(){return lT}var MA=1e3,AA=MA*60,xv=AA*60,Ti=xv*24,sD=Ti*365,UJ={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Dy={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},ZJ="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",pm="{yyyy}-{MM}-{dd}",lD={year:"{yyyy}",month:"{yyyy}-{MM}",day:pm,hour:pm+" "+Dy.hour,minute:pm+" "+Dy.minute,second:pm+" "+Dy.second,millisecond:ZJ},$n=["year","month","day","hour","minute","second","millisecond"],$J=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function YJ(e){return!he(e)&&!we(e)?XJ(e):e}function XJ(e){e=e||{};var t={},r=!0;return j($n,function(n){r&&(r=e[n]==null)}),j($n,function(n,i){var a=e[n];t[n]={};for(var o=null,s=i;s>=0;s--){var l=$n[s],u=ke(a)&&!re(a)?a[l]:a,c=void 0;re(u)?(c=u.slice(),o=c[0]||""):he(u)?(o=u,c=[o]):(o==null?o=Dy[n]:UJ[l].test(o)||(o=t[l][l][0]+" "+o),c=[o],r&&(c[1]="{primary|"+o+"}")),t[n][l]=c}}),t}function xn(e,t){return e+="","0000".substr(0,t-e.length)+e}function _v(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function qJ(e){return e===_v(e)}function KJ(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Zp(e,t,r,n){var i=to(e),a=i[fV(r)](),o=i[kA(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[LA(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[NA(r)](),h=(c-1)%12+1,f=i[PA(r)](),d=i[IA(r)](),g=i[DA(r)](),m=c>=12?"pm":"am",y=m.toUpperCase(),x=n instanceof qe?n:sT(n||hV)||WJ(),_=x.getModel("time"),w=_.get("month"),S=_.get("monthAbbr"),T=_.get("dayOfWeek"),M=_.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,xn(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,w[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,xn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,xn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,T[u]).replace(/{ee}/g,M[u]).replace(/{e}/g,u+"").replace(/{HH}/g,xn(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,xn(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,xn(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,xn(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,xn(g,3)).replace(/{S}/g,g+"")}function JJ(e,t,r,n,i){var a=null;if(he(r))a=r;else if(we(r)){var o={time:e.time,level:e.time.level},s=vr();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=r(e.value,t,o)}else{var l=e.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var c=uh(e.value,i);a=r[c][c][0]}}return Zp(new Date(e.value),a,i,n)}function uh(e,t){var r=to(e),n=r[kA(t)]()+1,i=r[LA(t)](),a=r[NA(t)](),o=r[PA(t)](),s=r[IA(t)](),l=r[DA(t)](),u=l===0,c=u&&s===0,h=c&&o===0,f=h&&a===0,d=f&&i===1,g=d&&n===1;return g?"year":d?"month":f?"day":h?"hour":c?"minute":u?"second":"millisecond"}function z0(e,t,r){switch(t){case"year":e[dV(r)](0);case"month":e[vV(r)](1);case"day":e[pV(r)](0);case"hour":e[gV(r)](0);case"minute":e[mV(r)](0);case"second":e[yV(r)](0)}return e}function fV(e){return e?"getUTCFullYear":"getFullYear"}function kA(e){return e?"getUTCMonth":"getMonth"}function LA(e){return e?"getUTCDate":"getDate"}function NA(e){return e?"getUTCHours":"getHours"}function PA(e){return e?"getUTCMinutes":"getMinutes"}function IA(e){return e?"getUTCSeconds":"getSeconds"}function DA(e){return e?"getUTCMilliseconds":"getMilliseconds"}function QJ(e){return e?"setUTCFullYear":"setFullYear"}function dV(e){return e?"setUTCMonth":"setMonth"}function vV(e){return e?"setUTCDate":"setDate"}function pV(e){return e?"setUTCHours":"setHours"}function gV(e){return e?"setUTCMinutes":"setMinutes"}function mV(e){return e?"setUTCSeconds":"setSeconds"}function yV(e){return e?"setUTCMilliseconds":"setMilliseconds"}function eQ(e,t,r,n,i,a,o,s){var l=new tt({style:{text:e,font:t,align:r,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function EA(e){if(!rA(e))return he(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function jA(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var gf=Rp;function uT(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Jn(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?to(e):e;if(isNaN(+l)){if(s)return"-"}else return Zp(l,n,r)}if(t==="ordinal")return y0(e)?i(e):rt(e)&&a(e)?e+"":"-";var u=Xa(e);return a(u)?EA(u):y0(e)?i(e):typeof e=="boolean"?e+"":"-"}var uD=["a","b","c","d","e","f","g"],Db=function(e,t){return"{"+e+(t??"")+"}"};function RA(e,t,r){re(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function rQ(e,t,r){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd
-yyyy`);var n=to(t),i=r?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),c=n[i+"Seconds"](),h=n[i+"Milliseconds"]();return e=e.replace("MM",xn(o,2)).replace("M",o).replace("yyyy",a).replace("yy",xn(a%100+"",2)).replace("dd",xn(s,2)).replace("d",s).replace("hh",xn(l,2)).replace("h",l).replace("mm",xn(u,2)).replace("m",u).replace("ss",xn(c,2)).replace("s",c).replace("SSS",xn(h,3)),e}function nQ(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function Vu(e,t){return t=t||"transparent",he(e)?e:ke(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function B0(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Ey={},Eb={},mf=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(t,r){this._nonSeriesBoxMasterList=n(Ey),this._normalMasterList=n(Eb);function n(i,a){var o=[];return j(i,function(s,l){var u=s.create(t,r);o=o.concat(u||[])}),o}},e.prototype.update=function(t,r){j(this._normalMasterList,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(t,r){if(t==="matrix"||t==="calendar"){Ey[t]=r;return}Eb[t]=r},e.get=function(t){return Eb[t]||Ey[t]},e}();function iQ(e){return!!Ey[e]}var cT={coord:1,coord2:2};function aQ(e){_V.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var _V=_e();function oQ(e){var t=e.getShallow("coord",!0),r=cT.coord;if(t==null){var n=_V.get(e.type);n&&n.getCoord2&&(r=cT.coord2,t=n.getCoord2(e))}return{coord:t,from:r}}var Da={none:0,dataCoordSys:1,boxCoordSys:2};function bV(e,t){var r=e.getShallow("coordinateSystem"),n=e.getShallow("coordinateSystemUsage",!0),i=Da.none;if(r){var a=e.mainType==="series";n==null&&(n=a?"data":"box"),n==="data"?(i=Da.dataCoordSys,a||(i=Da.none)):n==="box"&&(i=Da.boxCoordSys,!a&&!iQ(r)&&(i=Da.none))}return{coordSysType:r,kind:i}}function $p(e){var t=e.targetModel,r=e.coordSysType,n=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=bV(t),o=a.kind,s=a.coordSysType;if(i&&o!==Da.dataCoordSys&&(o=Da.dataCoordSys,s=r),o===Da.none||s!==r)return!1;var l=n(r,t);return l?(o===Da.dataCoordSys?t.coordinateSystem=l:t.boxCoordinateSystem=l,!0):!1}var wV=function(e,t){var r=t.getReferringComponents(e,Ht).models[0];return r&&r.coordinateSystem},jy=j,SV=["left","right","top","bottom","width","height"],du=[["width","left","right"],["height","top","bottom"]];function OA(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),h=t.childAt(u+1),f=h&&h.getBoundingRect(),d,g;if(e==="horizontal"){var m=c.width+(f?-f.x+c.x:0);d=a+m,d>n||l.newline?(a=0,d=m,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var y=c.height+(f?-f.y+c.y:0);g=o+y,g>i||l.newline?(a+=s+r,o=0,g=y,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=d+r:o=g+r)})}var wu=OA;Fe(OA,"vertical");Fe(OA,"horizontal");function CV(e,t){return{left:e.getShallow("left",t),top:e.getShallow("top",t),right:e.getShallow("right",t),bottom:e.getShallow("bottom",t),width:e.getShallow("width",t),height:e.getShallow("height",t)}}function sQ(e,t){var r=Tr(e,t,{enableLayoutOnlyByCenter:!0}),n=e.getBoxLayoutParams(),i,a;if(r.type===Zd.point)a=r.refPoint,i=It(n,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get("center"),s=re(o)?o:[o,o];i=It(n,r.refContainer),a=r.boxCoordFrom===cT.coord2?r.refPoint:[ce(s[0],i.width)+i.x,ce(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function TV(e,t){var r=sQ(e,t),n=r.viewRect,i=r.center,a=e.get("radius");re(a)||(a=[0,a]);var o=ce(n.width,t.getWidth()),s=ce(n.height,t.getHeight()),l=Math.min(o,s),u=ce(a[0],l/2),c=ce(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:c,viewRect:n}}function It(e,t,r){r=gf(r||0);var n=t.width,i=t.height,a=ce(e.left,n),o=ce(e.top,i),s=ce(e.right,n),l=ce(e.bottom,i),u=ce(e.width,n),c=ce(e.height,i),h=r[2]+r[0],f=r[1]+r[3],d=e.aspect;switch(isNaN(u)&&(u=n-s-f-a),isNaN(c)&&(c=i-l-h-o),d!=null&&(isNaN(u)&&isNaN(c)&&(d>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(a)&&(a=n-s-u-f),isNaN(o)&&(o=i-l-c-h),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-f;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-h;break}a=a||0,o=o||0,isNaN(u)&&(u=n-f-a-(s||0)),isNaN(c)&&(c=i-h-o-(l||0));var g=new Pe((t.x||0)+a+r[3],(t.y||0)+o+r[0],u,c);return g.margin=r,g}function MV(e,t,r){var n=e.getShallow("preserveAspect",!0);if(!n)return t;var i=t.width/t.height;if(Math.abs(Math.atan(r)-Math.atan(i))<1e-9)return t;var a=e.getShallow("preserveAspectAlign",!0),o=e.getShallow("preserveAspectVerticalAlign",!0),s={width:t.width,height:t.height},l=n==="cover";return i>r&&!l||i=m)return h;for(var y=0;y=0;l--)s=Ge(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return lf(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){return CV(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(qe);wF($e,qe);d_($e);zJ($e);BJ($e,cQ);function cQ(e){var t=[];return j($e.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=ae(t,function(r){return Ra(r).main}),e!=="dataset"&&Ve(t,"dataset")<=0&&t.unshift("dataset"),t}var K={color:{},darkColor:{},size:{}},er=K.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};Q(er,{primary:er.neutral80,secondary:er.neutral70,tertiary:er.neutral60,quaternary:er.neutral50,disabled:er.neutral20,border:er.neutral30,borderTint:er.neutral20,borderShade:er.neutral40,background:er.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:er.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:er.neutral70,axisLineTint:er.neutral40,axisTick:er.neutral70,axisTickMinor:er.neutral60,axisLabel:er.neutral70,axisSplitLine:er.neutral15,axisMinorSplitLine:er.neutral05});for(var zl in er)if(er.hasOwnProperty(zl)){var cD=er[zl];zl==="theme"?K.darkColor.theme=er.theme.slice():zl==="highlight"?K.darkColor.highlight="rgba(255,231,130,0.4)":zl.indexOf("accent")===0?K.darkColor[zl]=Io(cD,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):K.darkColor[zl]=Io(cD,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)})}K.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var kV="";typeof navigator<"u"&&(kV=navigator.platform||"");var Sc="rgba(0, 0, 0, 0.2)",LV=K.color.theme[0],hQ=Io(LV,null,null,.9);const fQ={darkMode:"auto",colorBy:"series",color:K.color.theme,gradientColor:[hQ,LV],aria:{decal:{decals:[{color:Sc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Sc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Sc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Sc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Sc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Sc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:kV.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var NV=_e(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),si="original",Wr="arrayRows",li="objectRows",va="keyedColumns",Zs="typedArray",PV="unknown",la="column",Qu="row",Zr={Must:1,Might:2,Not:3},IV=Ye();function dQ(e){IV(e).datasetMap=_e()}function DV(e,t,r){var n={},i=BA(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=IV(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,h;e=e.slice(),j(e,function(m,y){var x=ke(m)?m:e[y]={name:m};x.type==="ordinal"&&c==null&&(c=y,h=g(x)),n[x.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});j(e,function(m,y){var x=m.name,_=g(m);if(c==null){var w=f.valueWayDim;d(n[x],w,_),d(o,w,_),f.valueWayDim+=_}else if(c===y)d(n[x],0,_),d(a,0,_);else{var w=f.categoryWayDim;d(n[x],w,_),d(o,w,_),f.categoryWayDim+=_}});function d(m,y,x){for(var _=0;_t)return e[n];return e[r-1]}function RV(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:yQ(n,o);if(c=c||r,!(!c||!c.length)){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}function xQ(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var gm,hd,fD,dD="\0_ec_inner",_Q=1,VA=function(e){q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new qe(a),this._locale=new qe(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=gD(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,gD(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?fD(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&j(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=_e(),u=n&&n.replaceMergeMainTypeMap;dQ(this),j(r,function(h,f){h!=null&&($e.hasClass(f)?f&&(s.push(f),l.set(f,!0)):i[f]=i[f]==null?Se(h):Ge(i[f],h,!0))}),u&&u.each(function(h,f){$e.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),$e.topologicalTravel(s,$e.getAllClassMainTypes(),c,this);function c(h){var f=gQ(this,h,Tt(r[h])),d=a.get(h),g=d?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",m=mF(d,f,g);jq(m,h,$e),i[h]=null,a.set(h,null),o.set(h,0);var y=[],x=[],_=0,w;j(m,function(S,T){var M=S.existing,A=S.newOption;if(!A)M&&(M.mergeOption({},this),M.optionUpdated({},!1));else{var P=h==="series",I=$e.getClass(h,S.keyInfo.subType,!P);if(!I)return;if(h==="tooltip"){if(w)return;w=!0}if(M&&M.constructor===I)M.name=S.keyInfo.name,M.mergeOption(A,this),M.optionUpdated(A,!1);else{var N=Q({componentIndex:T},S.keyInfo);M=new I(A,this,this,N),Q(M,N),S.brandNew&&(M.__requireNewView=!0),M.init(A,this,this),M.optionUpdated(null,!0)}}M?(y.push(M.option),x.push(M),_++):(y.push(void 0),x.push(void 0))},this),i[h]=y,a.set(h,x),o.set(h,_),h==="series"&&gm(this)}this._seriesIndices||gm(this)},t.prototype.getOption=function(){var r=Se(this.option);return j(r,function(n,i){if($e.hasClass(i)){for(var a=Tt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!tp(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[dD],r},t.prototype.setTheme=function(r){this._theme=new qe(r),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:r==="max"?e<=t:e===t}function LQ(e,t){return e.join(",")===t.join(",")}var Zi=j,sp=ke,mD=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function jb(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=mD.length;r0?r[o-1].seriesModel:null)}),zQ(r)}})}function zQ(e){j(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,c,h){var f=o.get(t.stackedDimension,h);if(isNaN(f))return i;var d,g;s?g=o.getRawIndex(h):d=o.get(t.stackedByDimension,h);for(var m=NaN,y=r-1;y>=0;y--){var x=e[y];if(s||(g=x.data.rawIndexOf(x.stackedByDimension,d)),g>=0){var _=x.data.getByRawIndex(x.stackResultDimension,g);if(l==="all"||l==="positive"&&_>0||l==="negative"&&_<0||l==="samesign"&&f>=0&&_>0||l==="samesign"&&f<=0&&_<0){f=wq(f,_),m=_;break}}}return n[0]=f,n[1]=m,n})})}var T_=function(){function e(t){this.data=t.data||(t.sourceFormat===va?{}:[]),this.sourceFormat=t.sourceFormat||PV,this.seriesLayoutBy=t.seriesLayoutBy||la,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;nm&&(m=w)}d[0]=g,d[1]=m}},i=function(){return this._data?this._data.length/this._dimSize:0};CD=(t={},t[Wr+"_"+la]={pure:!0,appendData:a},t[Wr+"_"+Qu]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[li]={pure:!0,appendData:a},t[va]={pure:!0,appendData:function(o){var s=this._data;j(o,function(l,u){for(var c=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)c.push(l[h])})}},t[si]={appendData:a},t[Zs]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(m=o.interpolatedValue[y])}return m!=null?m+"":""})}},e.prototype.getRawValue=function(t,r){return Vh(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function kD(e){var t,r;return ke(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function bv(e){return new ZQ(e)}var ZQ=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(_){return!(_>=1)&&(_=1),_}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var f=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,g=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!n&&(h||d1&&n>0?s:o}};return a;function o(){return t=e?null:lt},gte:function(e,t){return e>=t}},YQ=function(){function e(t,r){if(!rt(r)){var n="";ft(n)}this._opFn=$V[t],this._rvalFloat=Xa(r)}return e.prototype.evaluate=function(t){return rt(t)?this._opFn(t,this._rvalFloat):this._opFn(Xa(t),this._rvalFloat)},e}(),YV=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=rt(t)?t:Xa(t),i=rt(r)?r:Xa(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=he(t),l=he(r);s&&(n=l?t:0),l&&(i=s?r:0)}return ni?-this._resultLT:0},e}(),XQ=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=Xa(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=Xa(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function qQ(e,t){return e==="eq"||e==="ne"?new XQ(e==="eq",t):ge($V,e)?new YQ(e,t):null}var KQ=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return $s(t,r)},e}();function JQ(e,t){var r=new KQ,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==la&&ft(o);var s=[],l={},u=e.dimensionsDefine;if(u)j(u,function(m,y){var x=m.name,_={index:y,name:x,displayName:m.displayName};if(s.push(_),x!=null){var w="";ge(l,x)&&ft(w),l[x]=_}});else for(var c=0;c65535?oee:see}function Tc(){return[1/0,-1/0]}function lee(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function PD(e,t,r,n,i){var a=KV[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;uy[1]&&(y[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=ae(o,function(_){return _.property}),c=0;cx[1]&&(x[1]=y)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&nt)a=o-1;else return o}return-1},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=h&&_<=f||isNaN(_))&&(l[u++]=m),m++}g=!0}else if(a===2){for(var y=d[i[0]],w=d[i[1]],S=t[i[1]][0],T=t[i[1]][1],x=0;x=h&&_<=f||isNaN(_))&&(M>=S&&M<=T||isNaN(M))&&(l[u++]=m),m++}g=!0}}if(!g)if(a===1)for(var x=0;x=h&&_<=f||isNaN(_))&&(l[u++]=A)}else for(var x=0;xt[N][1])&&(P=!1)}P&&(l[u++]=r.getRawIndex(x))}return ux[1]&&(x[1]=y)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,h,f,d=new(Cc(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));d[s++]=u;for(var g=1;gc&&(c=h,f=S)}D>0&&Ds&&(m=s-c);for(var y=0;yg&&(g=_,d=c+y)}var w=this.getRawIndex(h),S=this.getRawIndex(d);hc-g&&(l=c-g,s.length=l);for(var m=0;mh[1]&&(h[1]=x),f[d++]=_}return a._count=d,a._indices=f,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();al&&(l=h)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return $s(r[a],this._dimensions[a])}zb={arrayRows:t,objectRows:function(r,n,i,a){return $s(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return $s(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),JV=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(ym(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=Sn(s)?Zs:si,a=[];var h=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},d=be(h.seriesLayoutBy,f.seriesLayoutBy)||null,g=be(h.sourceHeader,f.sourceHeader),m=be(h.dimensions,f.dimensions),y=d!==f.seriesLayoutBy||!!g!=!!f.sourceHeader||m;i=y?[dT(s,{seriesLayoutBy:d,sourceHeader:g,dimensions:m},l)]:[]}else{var x=t;if(n){var _=this._applyTransform(r);i=_.sourceList,a=_.upstreamSignList}else{var w=x.get("source",!0);i=[dT(w,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&DD(a)}var o,s=[],l=[];return j(t,function(u){u.prepareSource();var c=u.getSource(i||0),h="";i!=null&&!c&&DD(h),s.push(c),l.push(u._getVersionSign())}),n?o=iee(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[BQ(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;rn||l.newline?(a=0,d=m,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var y=c.height+(f?-f.y+c.y:0);g=o+y,g>i||l.newline?(a+=s+r,o=0,g=y,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=d+r:o=g+r)})}var wu=OA;Fe(OA,"vertical");Fe(OA,"horizontal");function CV(e,t){return{left:e.getShallow("left",t),top:e.getShallow("top",t),right:e.getShallow("right",t),bottom:e.getShallow("bottom",t),width:e.getShallow("width",t),height:e.getShallow("height",t)}}function sQ(e,t){var r=Tr(e,t,{enableLayoutOnlyByCenter:!0}),n=e.getBoxLayoutParams(),i,a;if(r.type===Zd.point)a=r.refPoint,i=It(n,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get("center"),s=re(o)?o:[o,o];i=It(n,r.refContainer),a=r.boxCoordFrom===cT.coord2?r.refPoint:[ce(s[0],i.width)+i.x,ce(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function TV(e,t){var r=sQ(e,t),n=r.viewRect,i=r.center,a=e.get("radius");re(a)||(a=[0,a]);var o=ce(n.width,t.getWidth()),s=ce(n.height,t.getHeight()),l=Math.min(o,s),u=ce(a[0],l/2),c=ce(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:c,viewRect:n}}function It(e,t,r){r=gf(r||0);var n=t.width,i=t.height,a=ce(e.left,n),o=ce(e.top,i),s=ce(e.right,n),l=ce(e.bottom,i),u=ce(e.width,n),c=ce(e.height,i),h=r[2]+r[0],f=r[1]+r[3],d=e.aspect;switch(isNaN(u)&&(u=n-s-f-a),isNaN(c)&&(c=i-l-h-o),d!=null&&(isNaN(u)&&isNaN(c)&&(d>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(a)&&(a=n-s-u-f),isNaN(o)&&(o=i-l-c-h),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-f;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-h;break}a=a||0,o=o||0,isNaN(u)&&(u=n-f-a-(s||0)),isNaN(c)&&(c=i-h-o-(l||0));var g=new Pe((t.x||0)+a+r[3],(t.y||0)+o+r[0],u,c);return g.margin=r,g}function MV(e,t,r){var n=e.getShallow("preserveAspect",!0);if(!n)return t;var i=t.width/t.height;if(Math.abs(Math.atan(r)-Math.atan(i))<1e-9)return t;var a=e.getShallow("preserveAspectAlign",!0),o=e.getShallow("preserveAspectVerticalAlign",!0),s={width:t.width,height:t.height},l=n==="cover";return i>r&&!l||i=m)return h;for(var y=0;y=0;l--)s=Ge(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return lf(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){return CV(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(qe);wF($e,qe);d_($e);zJ($e);BJ($e,cQ);function cQ(e){var t=[];return j($e.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=ae(t,function(r){return Ra(r).main}),e!=="dataset"&&Ve(t,"dataset")<=0&&t.unshift("dataset"),t}var K={color:{},darkColor:{},size:{}},er=K.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};Q(er,{primary:er.neutral80,secondary:er.neutral70,tertiary:er.neutral60,quaternary:er.neutral50,disabled:er.neutral20,border:er.neutral30,borderTint:er.neutral20,borderShade:er.neutral40,background:er.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:er.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:er.neutral70,axisLineTint:er.neutral40,axisTick:er.neutral70,axisTickMinor:er.neutral60,axisLabel:er.neutral70,axisSplitLine:er.neutral15,axisMinorSplitLine:er.neutral05});for(var zl in er)if(er.hasOwnProperty(zl)){var cD=er[zl];zl==="theme"?K.darkColor.theme=er.theme.slice():zl==="highlight"?K.darkColor.highlight="rgba(255,231,130,0.4)":zl.indexOf("accent")===0?K.darkColor[zl]=Io(cD,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):K.darkColor[zl]=Io(cD,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)})}K.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var kV="";typeof navigator<"u"&&(kV=navigator.platform||"");var Sc="rgba(0, 0, 0, 0.2)",LV=K.color.theme[0],hQ=Io(LV,null,null,.9);const fQ={darkMode:"auto",colorBy:"series",color:K.color.theme,gradientColor:[hQ,LV],aria:{decal:{decals:[{color:Sc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Sc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Sc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Sc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Sc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Sc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:kV.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var NV=_e(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),si="original",Wr="arrayRows",li="objectRows",va="keyedColumns",Zs="typedArray",PV="unknown",la="column",Qu="row",Zr={Must:1,Might:2,Not:3},IV=Ye();function dQ(e){IV(e).datasetMap=_e()}function DV(e,t,r){var n={},i=BA(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=IV(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,h;e=e.slice(),j(e,function(m,y){var x=ke(m)?m:e[y]={name:m};x.type==="ordinal"&&c==null&&(c=y,h=g(x)),n[x.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});j(e,function(m,y){var x=m.name,_=g(m);if(c==null){var w=f.valueWayDim;d(n[x],w,_),d(o,w,_),f.valueWayDim+=_}else if(c===y)d(n[x],0,_),d(a,0,_);else{var w=f.categoryWayDim;d(n[x],w,_),d(o,w,_),f.categoryWayDim+=_}});function d(m,y,x){for(var _=0;_t)return e[n];return e[r-1]}function RV(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:yQ(n,o);if(c=c||r,!(!c||!c.length)){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}function xQ(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var gm,hd,fD,dD="\0_ec_inner",_Q=1,VA=function(e){q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new qe(a),this._locale=new qe(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=gD(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,gD(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?fD(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&j(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=_e(),u=n&&n.replaceMergeMainTypeMap;dQ(this),j(r,function(h,f){h!=null&&($e.hasClass(f)?f&&(s.push(f),l.set(f,!0)):i[f]=i[f]==null?Se(h):Ge(i[f],h,!0))}),u&&u.each(function(h,f){$e.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),$e.topologicalTravel(s,$e.getAllClassMainTypes(),c,this);function c(h){var f=gQ(this,h,Tt(r[h])),d=a.get(h),g=d?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",m=mF(d,f,g);jq(m,h,$e),i[h]=null,a.set(h,null),o.set(h,0);var y=[],x=[],_=0,w;j(m,function(S,T){var M=S.existing,A=S.newOption;if(!A)M&&(M.mergeOption({},this),M.optionUpdated({},!1));else{var P=h==="series",I=$e.getClass(h,S.keyInfo.subType,!P);if(!I)return;if(h==="tooltip"){if(w)return;w=!0}if(M&&M.constructor===I)M.name=S.keyInfo.name,M.mergeOption(A,this),M.optionUpdated(A,!1);else{var N=Q({componentIndex:T},S.keyInfo);M=new I(A,this,this,N),Q(M,N),S.brandNew&&(M.__requireNewView=!0),M.init(A,this,this),M.optionUpdated(null,!0)}}M?(y.push(M.option),x.push(M),_++):(y.push(void 0),x.push(void 0))},this),i[h]=y,a.set(h,x),o.set(h,_),h==="series"&&gm(this)}this._seriesIndices||gm(this)},t.prototype.getOption=function(){var r=Se(this.option);return j(r,function(n,i){if($e.hasClass(i)){for(var a=Tt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!tp(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[dD],r},t.prototype.setTheme=function(r){this._theme=new qe(r),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:r==="max"?e<=t:e===t}function LQ(e,t){return e.join(",")===t.join(",")}var Zi=j,sp=ke,mD=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function jb(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=mD.length;r0?r[o-1].seriesModel:null)}),zQ(r)}})}function zQ(e){j(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,c,h){var f=o.get(t.stackedDimension,h);if(isNaN(f))return i;var d,g;s?g=o.getRawIndex(h):d=o.get(t.stackedByDimension,h);for(var m=NaN,y=r-1;y>=0;y--){var x=e[y];if(s||(g=x.data.rawIndexOf(x.stackedByDimension,d)),g>=0){var _=x.data.getByRawIndex(x.stackResultDimension,g);if(l==="all"||l==="positive"&&_>0||l==="negative"&&_<0||l==="samesign"&&f>=0&&_>0||l==="samesign"&&f<=0&&_<0){f=wq(f,_),m=_;break}}}return n[0]=f,n[1]=m,n})})}var T_=function(){function e(t){this.data=t.data||(t.sourceFormat===va?{}:[]),this.sourceFormat=t.sourceFormat||PV,this.seriesLayoutBy=t.seriesLayoutBy||la,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;nm&&(m=w)}d[0]=g,d[1]=m}},i=function(){return this._data?this._data.length/this._dimSize:0};CD=(t={},t[Wr+"_"+la]={pure:!0,appendData:a},t[Wr+"_"+Qu]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[li]={pure:!0,appendData:a},t[va]={pure:!0,appendData:function(o){var s=this._data;j(o,function(l,u){for(var c=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)c.push(l[h])})}},t[si]={appendData:a},t[Zs]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(m=o.interpolatedValue[y])}return m!=null?m+"":""})}},e.prototype.getRawValue=function(t,r){return Vh(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function kD(e){var t,r;return ke(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function bv(e){return new ZQ(e)}var ZQ=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(_){return!(_>=1)&&(_=1),_}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var f=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,g=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!n&&(h||d1&&n>0?s:o}};return a;function o(){return t=e?null:lt},gte:function(e,t){return e>=t}},YQ=function(){function e(t,r){if(!rt(r)){var n="";ft(n)}this._opFn=$V[t],this._rvalFloat=Xa(r)}return e.prototype.evaluate=function(t){return rt(t)?this._opFn(t,this._rvalFloat):this._opFn(Xa(t),this._rvalFloat)},e}(),YV=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=rt(t)?t:Xa(t),i=rt(r)?r:Xa(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=he(t),l=he(r);s&&(n=l?t:0),l&&(i=s?r:0)}return ni?-this._resultLT:0},e}(),XQ=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=Xa(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=Xa(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function qQ(e,t){return e==="eq"||e==="ne"?new XQ(e==="eq",t):ge($V,e)?new YQ(e,t):null}var KQ=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return $s(t,r)},e}();function JQ(e,t){var r=new KQ,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==la&&ft(o);var s=[],l={},u=e.dimensionsDefine;if(u)j(u,function(m,y){var x=m.name,_={index:y,name:x,displayName:m.displayName};if(s.push(_),x!=null){var w="";ge(l,x)&&ft(w),l[x]=_}});else for(var c=0;c65535?oee:see}function Tc(){return[1/0,-1/0]}function lee(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function PD(e,t,r,n,i){var a=KV[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;uy[1]&&(y[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=ae(o,function(_){return _.property}),c=0;cx[1]&&(x[1]=y)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&nt)a=o-1;else return o}return-1},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=h&&_<=f||isNaN(_))&&(l[u++]=m),m++}g=!0}else if(a===2){for(var y=d[i[0]],w=d[i[1]],S=t[i[1]][0],T=t[i[1]][1],x=0;x=h&&_<=f||isNaN(_))&&(M>=S&&M<=T||isNaN(M))&&(l[u++]=m),m++}g=!0}}if(!g)if(a===1)for(var x=0;x=h&&_<=f||isNaN(_))&&(l[u++]=A)}else for(var x=0;xt[N][1])&&(P=!1)}P&&(l[u++]=r.getRawIndex(x))}return ux[1]&&(x[1]=y)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,h,f,d=new(Cc(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));d[s++]=u;for(var g=1;gc&&(c=h,f=S)}D>0&&Ds&&(m=s-c);for(var y=0;yg&&(g=_,d=c+y)}var w=this.getRawIndex(h),S=this.getRawIndex(d);hc-g&&(l=c-g,s.length=l);for(var m=0;mh[1]&&(h[1]=x),f[d++]=_}return a._count=d,a._indices=f,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();al&&(l=h)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return $s(r[a],this._dimensions[a])}zb={arrayRows:t,objectRows:function(r,n,i,a){return $s(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return $s(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),JV=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(ym(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=Sn(s)?Zs:si,a=[];var h=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},d=be(h.seriesLayoutBy,f.seriesLayoutBy)||null,g=be(h.sourceHeader,f.sourceHeader),m=be(h.dimensions,f.dimensions),y=d!==f.seriesLayoutBy||!!g!=!!f.sourceHeader||m;i=y?[dT(s,{seriesLayoutBy:d,sourceHeader:g,dimensions:m},l)]:[]}else{var x=t;if(n){var _=this._applyTransform(r);i=_.sourceList,a=_.upstreamSignList}else{var w=x.get("source",!0);i=[dT(w,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&DD(a)}var o,s=[],l=[];return j(t,function(u){u.prepareSource();var c=u.getSource(i||0),h="";i!=null&&!c&&DD(h),s.push(c),l.push(u._getVersionSign())}),n?o=iee(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[BQ(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!e.noHeader;return j(e.blocks,function(i){var a=rG(i);a>=t&&(t=a+ +(n&&(!a||pT(i)&&!i.noHeader)))}),t}return 0}function fee(e,t,r,n){var i=t.noHeader,a=vee(rG(t)),o=[],s=t.blocks||[];Jr(!s||re(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ge(u,l)){var c=new YV(u[l],null);s.sort(function(m,y){return c.evaluate(m.sortParam,y.sortParam)})}else l==="seriesDesc"&&s.reverse()}j(s,function(m,y){var x=t.valueFormatter,_=tG(m)(x?Q(Q({},e),{valueFormatter:x}):e,m,y>0?a.html:0,n);_!=null&&o.push(_)});var h=e.renderMode==="richText"?o.join(a.richText):gT(n,o.join(""),i?r:a.html);if(i)return h;var f=uT(t.header,"ordinal",e.useUTC),d=eG(n,e.renderMode).nameStyle,g=QV(n);return e.renderMode==="richText"?nG(e,f,d)+a.richText+h:gT(n,''+hn(f)+"
"+h,r)}function dee(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(S){return S=re(S)?S:[S],ae(S,function(T,M){return uT(T,re(d)?d[M]:d,u)})};if(!(a&&o)){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||K.color.secondary,i),f=a?"":uT(l,"ordinal",u),d=t.valueType,g=o?[]:c(t.value,t.dataIndex),m=!s||!a,y=!s&&a,x=eG(n,i),_=x.nameStyle,w=x.valueStyle;return i==="richText"?(s?"":h)+(a?"":nG(e,f,_))+(o?"":mee(e,g,m,y,w)):gT(n,(s?"":h)+(a?"":pee(f,!s,_))+(o?"":gee(g,m,y,w)),r)}}function ED(e,t,r,n,i,a){if(e){var o=tG(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function vee(e){return{html:cee[e],richText:hee[e]}}function gT(e,t,r){var n='',i="margin: "+r+"px 0 0",a=QV(e);return''+t+n+"
"}function pee(e,t,r){var n=t?"margin-left:2px":"";return''+hn(e)+""}function gee(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=re(e)?e:[e],''+ae(e,function(o){return hn(o)}).join(" ")+""}function nG(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function mee(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(re(t)?t.join(" "):t,a)}function iG(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Vu(n)}function aG(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Bb=function(){function e(){this.richTextStyles={},this._nextStyleNameId=fF()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=xV({color:r,type:t,renderMode:n,markerId:i});return he(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};re(r)?j(r,function(a){return Q(n,a)}):Q(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function oG(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=re(s),u=iG(t,r),c,h,f,d;if(o>1||l&&!o){var g=yee(s,t,r,a,u);c=g.inlineValues,h=g.inlineValueTypes,f=g.blocks,d=g.inlineValues[0]}else if(o){var m=i.getDimensionInfo(a[0]);d=c=Vh(i,r,a[0]),h=m.type}else d=c=l?s[0]:s;var y=nA(t),x=y&&t.name||"",_=i.getName(r),w=n?x:_;return gr("section",{header:x,noHeader:n||!y,sortParam:d,blocks:[gr("nameValue",{markerType:"item",markerColor:u,name:w,noName:!Jn(w),value:c,valueType:h,dataIndex:r})].concat(f||[])})}function yee(e,t,r,n,i){var a=t.getData(),o=Ei(e,function(h,f,d){var g=a.getDimensionInfo(d);return h=h||g&&g.tooltip!==!1&&g.displayName!=null},!1),s=[],l=[],u=[];n.length?j(n,function(h){c(Vh(a,r,h),h)}):j(e,c);function c(h,f){var d=a.getDimensionInfo(f);!d||d.otherDims.tooltip===!1||(o?u.push(gr("nameValue",{markerType:"subItem",markerColor:i,name:d.displayName,value:h,valueType:d.type})):(s.push(h),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var as=Ye();function xm(e,t){return e.getName(t)||e.getId(t)}var Ry="__universalTransitionEnabled",bt=function(e){q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=bv({count:_ee,reset:bee}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=as(this).sourceManager=new JV(this);a.prepareSource();var o=this.getInitialData(r,i);RD(o,this),this.dataTask.context.data=o,as(this).dataBeforeProcessed=o,jD(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=op(this),a=i?Ju(r):{},o=this.subType;$e.hasClass(o)&&(o+="Series"),Ge(r,n.getTheme().get(this.subType)),Ge(r,this.getDefaultOption()),ju(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Ka(r,a,i)},t.prototype.mergeOption=function(r,n){r=Ge(this.option,r,!0),this.fillDataTextStyle(r.data);var i=op(this);i&&Ka(this.option,r,i);var a=as(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);RD(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,as(this).dataBeforeProcessed=o,jD(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Sn(r))for(var n=["show"],i=0;i=0&&f<0)&&(h=_,f=x,d=0),x===f&&(c[d++]=m))}),c.length=d,c},t.prototype.formatTooltip=function(r,n,i){return oG({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(Je.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=FA.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[xm(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Ry])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){ke(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(r,n)}},t.registerClass=function(r){return $e.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}($e);Qt(bt,M_);Qt(bt,FA);wF(bt,$e);function jD(e){var t=e.name;nA(e)||(e.name=xee(e)||t)}function xee(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return j(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function _ee(e){return e.model.getRawData().count()}function bee(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),wee}function wee(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function RD(e,t){j(Eh(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Fe(See,t))})}function See(e,t){var r=mT(e);return r&&r.setOutputEnd((t||this).count()),t}function mT(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}var Mt=function(){function e(){this.group=new Ce,this.uid=pf("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();aA(Mt);d_(Mt);function yf(){var e=Ye();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var sG=Ye(),Cee=yf(),gt=function(){function e(){this.group=new Ce,this.uid=pf("viewChart"),this.renderTask=bv({plan:Tee,reset:Mee}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&zD(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&zD(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){hl(this.group,t)},e.markUpdateMethod=function(t,r){sG(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function OD(e,t,r){e&&np(e)&&(t==="emphasis"?Ho:Uo)(e,r)}function zD(e,t,r){var n=Ru(e,t),i=t&&t.highlightKey!=null?JK(t.highlightKey):null;n!=null?j(Tt(n),function(a){OD(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){OD(a,r,i)})}aA(gt);d_(gt);function Tee(e){return Cee(e.model)}function Mee(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&sG(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),Aee[l]}var Aee={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},F0="\0__throttleOriginMethod",BD="\0__throttleRate",FD="\0__throttleType";function k_(e,t,r){var n,i=0,a=0,o=null,s,l,u,c;t=t||0;function h(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var f=function(){for(var d=[],g=0;g=0?h():o=setTimeout(h,-s),i=n};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(d){c=d},f}function xf(e,t,r,n){var i=e[t];if(i){var a=i[F0]||i,o=i[FD],s=i[BD];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=k_(a,r,n==="debounce"),i[F0]=a,i[FD]=n,i[BD]=r}return i}}function lp(e,t){var r=e[t];r&&r[F0]&&(r.clear&&r.clear(),e[t]=r[F0])}var VD=Ye(),GD={itemStyle:Ou(cV,!0),lineStyle:Ou(uV,!0)},kee={lineStyle:"stroke",itemStyle:"fill"};function lG(e,t){var r=e.visualStyleMapper||GD[t];return r||(console.warn("Unknown style type '"+t+"'."),GD.itemStyle)}function uG(e,t){var r=e.visualDrawType||kee[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var Lee={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=lG(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=uG(e,n),u=o[l],c=we(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||h){var f=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=f,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||we(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||we(o.stroke)?f:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(d,g){var m=e.getDataParams(g),y=Q({},o);y[l]=c(m),d.setItemVisual(g,"style",y)}}}},dd=new qe,Nee={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=lG(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){dd.option=l[n];var u=i(dd),c=o.ensureUniqueItemVisual(s,"style");Q(c,u),dd.option.decal&&(o.setItemVisual(s,"decal",dd.option.decal),dd.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Pee={performRawSeries:!0,overallReset:function(e){var t=_e();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),VD(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=VD(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=uG(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],h=a.getItemVisual(c,"colorFromPalette");if(h){var f=a.ensureUniqueItemVisual(c,"style"),d=n.getName(u)||u+"",g=n.count();f[l]=r.getColorFromPalette(d,o,g)}})}})}},_m=Math.PI;function Iee(e,t){t=t||{},Ae(t,{text:"loading",textColor:K.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:K.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Ce,n=new Ze({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new tt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Ze({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new Wp({shape:{startAngle:-_m/2,endAngle:-_m/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:_m*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:_m*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var cG=function(){function e(t,r,n,i){this._stageTaskMap=_e(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=_e();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;j(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";Jr(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;j(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),h=c.seriesTaskMap,f=c.overallTask;if(f){var d,g=f.agentStubMap;g.each(function(y){s(i,y)&&(y.dirty(),d=!0)}),d&&f.dirty(),o.updatePayload(f,n);var m=o.getPerformArgs(f,i.block);g.each(function(y){y.perform(m)}),f.perform(m)&&(a=!0)}else h&&h.each(function(y,x){s(i,y)&&y.dirty();var _=o.getPerformArgs(y,i.block);_.skip=!l.performRawSeries&&r.isSeriesFiltered(y.context.model),o.updatePayload(y,n),y.perform(_)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=_e(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(h){var f=h.uid,d=s.set(f,o&&o.get(f)||bv({plan:Oee,reset:zee,count:Fee}));d.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,d)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||bv({reset:Dee});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=_e(),u=t.seriesType,c=t.getTargetSeries,h=!0,f=!1,d="";Jr(!t.createOnAllSeries,d),u?n.eachRawSeriesByType(u,g):c?c(n,i).each(g):(h=!1,j(n.getSeries(),g));function g(m){var y=m.uid,x=l.set(y,s&&s.get(y)||(f=!0,bv({reset:Eee,onDirty:Ree})));x.context={model:m,overallProgress:h},x.agent=o,x.__block=h,a._pipe(m,x)}f&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return we(t)&&(t={overallReset:t,seriesType:Vee(t)}),t.uid=pf("stageHandler"),r&&(t.visualType=r),t},e}();function Dee(e){e.overallReset(e.ecModel,e.api,e.payload)}function Eee(e){return e.overallProgress&&jee}function jee(){this.agent.dirty(),this.getDownstream().dirty()}function Ree(){this.agent&&this.agent.dirty()}function Oee(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function zee(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Tt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?ae(t,function(r,n){return hG(n)}):Bee}var Bee=hG(0);function hG(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a