@worm-print-platform/echarts 1.6.3 → 1.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/bind.d.ts +1 -1
- package/dist/browser/executor.iife.d.ts +1 -1
- package/dist/browser-bundle.d.ts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/defaults.d.ts +1 -1
- package/dist/echarts.d.ts +1 -1
- package/dist/echarts.js +2 -2
- package/dist/executor.iife.global.d.ts +1 -1
- package/dist/executor.iife.global.js +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/kinds.d.ts +1 -1
- package/dist/kit.cjs +2 -2
- package/dist/kit.d.ts +1 -1
- package/dist/kit.js +2 -2
- package/dist/label.d.ts +1 -1
- package/dist/marketplace.d.ts +1 -1
- package/dist/marketplace.js +28 -13
- package/dist/node.cjs +25 -12
- package/dist/node.d.ts +1 -1
- package/dist/node.js +25 -12
- package/dist/normalize.d.ts +1 -1
- package/dist/option-utils.d.ts +1 -1
- package/dist/{plugin-DXgU3GaL.cjs → plugin-DcaxhWUL.cjs} +2 -2
- package/dist/{plugin-CerMf_qr.js → plugin-fBzOuicw.js} +74 -60
- package/dist/plugin.d.ts +1 -1
- package/dist/renderer.d.ts +1 -1
- package/dist/test-setup.d.ts +1 -1
- package/dist/type-augmentation.d.ts +1 -1
- package/dist/ui.cjs +28 -13
- package/dist/ui.d.ts +1 -1
- package/dist/ui.js +28 -13
- package/dist/units.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +6 -6
package/dist/echarts.js
CHANGED
|
@@ -35,10 +35,10 @@ Click OK to save, Cancel to go back and edit.
|
|
|
35
35
|
`,`
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
`];function fn(t,e){return e.type=t,e}function Ch(t){return t.type==="section"}function ck(t){return Ch(t)?pM:cM}function fk(t){if(Ch(t)){var e=0,r=t.blocks.length,a=r>1||r>0&&!t.noHeader;return A(t.blocks,function(n){var i=fk(n);i>=e&&(e=i+ +(a&&(!i||Ch(n)&&!n.noHeader)))}),e}return 0}function pM(t,e,r,a){var n=e.noHeader,i=fM(fk(e)),o=[],s=e.blocks||[];Jt(!s||W(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(st(u,l)){var p=new z3(u[l],null);s.sort(function(v,m){return p.evaluate(v.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(v,m){var g=e.valueFormatter,y=ck(v)(g?H(H({},t),{valueFormatter:g}):t,v,m>0?i.html:0,a);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(i.richText):Dh(a,o.join(""),n?r:i.html);if(n)return c;var f=_h(e.header,"ordinal",t.useUTC),h=pk(a,t.renderMode).nameStyle,d=uk(a);return t.renderMode==="richText"?dk(t,f,h)+i.richText+c:Dh(a,'<div style="'+h+";"+d+';">'+pt(f)+"</div>"+c,r)}function cM(t,e,r,a){var n=t.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,p=e.valueFormatter||t.valueFormatter||function(k){return k=W(k)?k:[k],K(k,function(w,_){return _h(w,W(h)?h[_]:h,u)})};if(!(i&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||$.color.secondary,n),f=i?"":_h(l,"ordinal",u),h=e.valueType,d=o?[]:p(e.value,e.rawDataIndex),v=!s||!i,m=!s&&i,g=pk(a,n),y=g.nameStyle,b=g.valueStyle;return n==="richText"?(s?"":c)+(i?"":dk(t,f,y))+(o?"":vM(t,d,v,m,b)):Dh(a,(s?"":c)+(i?"":hM(f,!s,y))+(o?"":dM(d,v,m,b)),r)}}function hk(t,e,r,a,n,i){if(t){var o=ck(t),s={useUTC:n,renderMode:r,orderMode:a,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,i)}}function fM(t){return{html:lM[t],richText:uM[t]}}function Dh(t,e,r){var a='<div style="clear:both"></div>',n="margin: "+r+"px 0 0",i=uk(t);return'<div style="'+n+";"+i+';">'+e+a+"</div>"}function hM(t,e,r){var a=e?"margin-left:2px":"";return'<span style="'+r+";"+a+'">'+pt(t)+"</span>"}function dM(t,e,r,a){var n=r?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return t=W(t)?t:[t],'<span style="'+i+";"+a+'">'+K(t,function(o){return pt(o)}).join(" ")+"</span>"}function dk(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function vM(t,e,r,a,n){var i=[n],o=a?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(W(e)?e.join(" "):e,i)}function vk(t,e){var r=t.getData().getItemVisual(e,"style"),a=r[t.visualDrawType];return pn(a)}function gk(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var Ah=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=lf()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,a){var n=a==="richText"?this._generateStyleName():null,i=FL({color:r,type:e,renderMode:a,markerId:n});return q(i)?i:(this.richTextStyles[n]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(e,r){var a={};W(r)?A(r,function(i){return H(a,i)}):H(a,r);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},t})();function gM(t){var e=t.series,r=t.dataIndex,a=t.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(r),l=W(s),u=vk(e,r),p,c,f,h;if(o>1||l&&!o){var d=mM(s,e,r,i,u);p=d.inlineValues,c=d.inlineValueTypes,f=d.blocks,h=d.inlineValues[0]}else if(o){var v=n.getDimensionInfo(i[0]);h=p=ai(n,r,i[0]),c=v.type}else h=p=l?s[0]:s;var m=uf(e),g=m&&e.name||"",y=n.getName(r),b=a?g:y;return fn("section",{header:g,noHeader:a||!m,sortParam:h,blocks:[fn("nameValue",{markerType:"item",markerColor:u,name:b,noName:!br(b),value:p,valueType:c,rawDataIndex:n.getRawIndex(r)})].concat(f||[])})}function mM(t,e,r,a,n){var i=e.getData(),o=ea(t,function(c,f,h){var d=i.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?A(a,function(c){p(ai(i,r,c),c)}):A(t,p);function p(c,f){var h=i.getDimensionInfo(f);!h||h.otherDims.tooltip===!1||(o?u.push(fn("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var ga=_e();function fu(t,e){return t.getName(e)||t.getId(e)}var yM="__universalTransitionEnabled",ft=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Ho({count:kM,reset:wM}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,n);var i=ga(this).sourceManager=new ik(this);i.prepareSource();var o=this.getInitialData(r,n);yk(o,this),this.dataTask.context.data=o,ga(this).dataBeforeProcessed=o,mk(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,a){var n=Fo(this),i=n?zo(r):{},o=this.subType;ke.hasClass(o)&&(o+="Series"),Pe(r,a.getTheme().get(this.subType)),Pe(r,this.getDefaultOption()),_l(r,"label",["show"]),this.fillDataTextStyle(r.data),n&&va(r,i,n)},e.prototype.mergeOption=function(r,a){r=Pe(this.option,r,!0),this.fillDataTextStyle(r.data);var n=Fo(this);n&&va(this.option,r,n);var i=ga(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,a);yk(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ga(this).dataBeforeProcessed=o,mk(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!yt(r))for(var a=["show"],n=0;n<r.length;n++)r[n]&&r[n].label&&_l(r[n],"label",a)},e.prototype.getInitialData=function(r,a){},e.prototype.appendData=function(r){var a=this.getRawData();a.appendData(r.data)},e.prototype.getData=function(r){var a=Lh(this);if(a){var n=a.context.data;return r==null||!n.getLinkedData?n:n.getLinkedData(r)}else return ga(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var a=Lh(this);if(a){var n=a.context;n.outputData=r,a!==this.dataTask&&(n.data=r)}ga(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return ae(r)},e.prototype.getSourceManager=function(){return ga(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return ga(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,a,n,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(n);i==null&&(i=1/0);for(var p=[],c=1/0,f=-1,h=0,d=o.getDimensionIndex(a),v=o.getStore(),m=0,g=v.count();m<g;m++){var y=v.get(d,m),b=l.dataToCoord(y),k=u-b,w=Math.abs(k);w<=i&&((w<c||w===c&&k>=0&&f<0)&&(c=w,f=k,h=0),k===f&&(p[h++]=m))}return p.length=h,p},e.prototype.formatTooltip=function(r,a,n){return gM({series:this,dataIndex:r,multipleSeries:a})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(se.node&&!(r&&r.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,a,n){var i=this.ecModel,o=Sh.prototype.getColorFromPalette.call(this,r,a,n);return o||(o=i.getColorFromPalette(r,a,n)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,a){this._innerSelect(this.getData(a),r)},e.prototype.unselect=function(r,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=fu(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,a){for(var n=[],i=0;i<r.length;i++)n[0]=r[i],this.isSelected(r[i],a)?this.unselect(n,a):this.select(n,a)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,a=he(r),n=[],i=0;i<a.length;i++){var o=r[a[i]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(r,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[fu(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[yM])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){J(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,p=0;p<l;p++){var c=a[p],f=fu(r,c);u[f]=!0,this._selectedDataIndicesMap[f]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=a[l-1],f=fu(r,h);o.selectedMap=(n={},n[f]=!0,n),this._selectedDataIndicesMap=(i={},i[f]=r.getRawIndex(h),i)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var a=[];r.hasItemOption&&r.each(function(n){var i=r.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(r,a)}},e.registerClass=function(r){return ke.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(ke);Qt(ft,jL),Qt(ft,Sh),fm(ft,ke);function mk(t){var e=t.name;uf(t)||(t.name=bM(t)||e)}function bM(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),a=[];return A(r,function(n){var i=e.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function kM(t){return t.model.getRawData().count()}function wM(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),_M}function _M(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function yk(t,e){A(AT(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,ze(xM,e))})}function xM(t,e){var r=Lh(t);return r&&r.setOutputEnd((e||this).count()),e}function Lh(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var a=r.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(t.uid))}return a}}var PM=me.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,a=e.cy,n=e.width/2,i=e.height/2;t.moveTo(r,a-i),t.lineTo(r+n,a+i),t.lineTo(r-n,a+i),t.closePath()}}),SM=me.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,a=e.cy,n=e.width/2,i=e.height/2;t.moveTo(r,a-i),t.lineTo(r+n,a),t.lineTo(r,a+i),t.lineTo(r-n,a),t.closePath()}}),TM=me.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,a=e.y,n=e.width/5*3,i=Math.max(n,e.height),o=n/2,s=o*o/(i-o),l=a-i+o+s,u=Math.asin(s/o),p=Math.cos(u)*o,c=Math.sin(u),f=Math.cos(u),h=o*.6,d=o*.7;t.moveTo(r-p,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+p-c*h,l+s+f*h,r,a-d,r,a),t.bezierCurveTo(r,a-d,r-p+c*h,l+s+f*h,r-p,l+s),t.closePath()}}),CM=me.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,a=e.width,n=e.x,i=e.y,o=a/3*2;t.moveTo(n,i),t.lineTo(n+o,i+r),t.lineTo(n,i+r/4*3),t.lineTo(n-o,i+r),t.lineTo(n,i),t.closePath()}}),DM={line:Er,rect:Ie,roundRect:Ie,square:Ie,circle:ko,diamond:SM,pin:TM,arrow:CM,triangle:PM},AM={line:function(t,e,r,a,n){n.x1=t,n.y1=e+a/2,n.x2=t+r,n.y2=e+a/2},rect:function(t,e,r,a,n){n.x=t,n.y=e,n.width=r,n.height=a},roundRect:function(t,e,r,a,n){n.x=t,n.y=e,n.width=r,n.height=a,n.r=Math.min(r,a)/4},square:function(t,e,r,a,n){var i=Math.min(r,a);n.x=t,n.y=e,n.width=i,n.height=i},circle:function(t,e,r,a,n){n.cx=t+r/2,n.cy=e+a/2,n.r=Math.min(r,a)/2},diamond:function(t,e,r,a,n){n.cx=t+r/2,n.cy=e+a/2,n.width=r,n.height=a},pin:function(t,e,r,a,n){n.x=t+r/2,n.y=e+a/2,n.width=r,n.height=a},arrow:function(t,e,r,a,n){n.x=t+r/2,n.y=e+a/2,n.width=r,n.height=a},triangle:function(t,e,r,a,n){n.cx=t+r/2,n.cy=e+a/2,n.width=r,n.height=a}},Mh={};A(DM,function(t,e){Mh[e]=new t});var LM=me.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var a=Ws(t,e,r),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(a.y=r.y+r.height*.4),a},buildPath:function(t,e,r){var a=e.symbolType;if(a!=="none"){var n=Mh[a];n||(a="rect",n=Mh[a]),AM[a](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,r)}}});function MM(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||$.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function Ir(t,e,r,a,n,i,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=O0(t.slice(8),new oe(e,r,a,n),o?"center":"cover"):t.indexOf("path://")===0?l=Ff(t.slice(7),{},new oe(e,r,a,n),o?"center":"cover"):l=new LM({shape:{symbolType:t,x:e,y:r,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=MM,i&&l.setColor(i),l}function bk(t){return W(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function kk(t,e){if(t!=null)return W(t)||(t=[t,t]),[ee(t[0],e[0])||0,ee(Z(t[1],t[0]),e[1])||0]}var EM=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){return Jl(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var a=new Me,n=Ir("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);a.add(n),n.setStyle(r.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=r.itemHeight*.8,u=Ir(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);a.add(u),u.setStyle(r.itemStyle);var p=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=p*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=$.color.neutral00,u.style.lineWidth=2),a},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e})(ft);function Eh(t,e){var r=t.mapDimensionsAll("defaultedLabel"),a=r.length;if(a===1){var n=ai(t,e,r[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<r.length;o++)i.push(ai(t,e,r[o]));return i.join(" ")}}function wk(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!W(e))return e+"";for(var a=[],n=0;n<r.length;n++){var i=t.getDimensionIndex(r[n]);i>=0&&a.push(e[i])}return a.join(" ")}var Ih=(function(t){V(e,t);function e(r,a,n,i){var o=t.call(this)||this;return o.updateData(r,a,n,i),o}return e.prototype._createSymbol=function(r,a,n,i,o,s){this.removeAll();var l=Ir(r,-1,-1,2,2,null,s);l.attr({z2:Z(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=IM,this._symbolType=r,this.add(l)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Ll(this.childAt(0))},e.prototype.downplay=function(){Ml(this.childAt(0))},e.prototype.setZ=function(r,a){var n=this.childAt(0);n.zlevel=r,n.z=a},e.prototype.setDraggable=function(r,a){var n=this.childAt(0);n.draggable=r,n.cursor=!a&&r?"move":n.cursor},e.prototype.updateData=function(r,a,n,i){this.silent=!1;var o=r.getItemVisual(a,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,a),u=e.getSymbolZ2(r,a),p=o!==this._symbolType,c=i&&i.disableAnimation;if(p){var f=r.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,r,a,l,u,f)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):Re(h,d,s,a),ei(h)}if(this._updateCommon(r,a,l,n,i),p){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Ye(h,d,s,a)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,a,n,i,o){var s=this.childAt(0),l=r.hostModel,u,p,c,f,h,d,v,m,g;if(i&&(u=i.emphasisItemStyle,p=i.blurItemStyle,c=i.selectItemStyle,f=i.focus,h=i.blurScope,v=i.labelStatesModels,m=i.hoverScale,g=i.cursorStyle,d=i.emphasisDisabled),!i||r.hasItemOption){var y=i&&i.itemModel?i.itemModel:r.getItemModel(a),b=y.getModel("emphasis");u=b.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),p=y.getModel(["blur","itemStyle"]).getItemStyle(),f=b.get("focus"),h=b.get("blurScope"),d=b.get("disabled"),v=nn(y),m=b.getShallow("scale"),g=y.getShallow("cursor")}var k=r.getItemVisual(a,"symbolRotate");s.attr("rotation",(k||0)*Math.PI/180||0);var w=kk(r.getItemVisual(a,"symbolOffset"),n);w&&(s.x=w[0],s.y=w[1]),g&&s.attr("cursor",g);var _=r.getItemVisual(a,"style"),x=_.fill;if(s instanceof Bt){var T=s.style;s.useStyle(H({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},_))}else s.__isEmptyBrush?s.useStyle(H({},_)):s.useStyle(_),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=r.getItemVisual(a,"liftZ"),P=this._z2;C!=null?P==null&&(this._z2=s.z2,s.z2+=C):P!=null&&(s.z2=P,this._z2=null);var S=o&&o.useNameLabel;an(s,v,{labelFetcher:l,labelDataIndex:a,defaultText:L,inheritColor:x,defaultOpacity:_.opacity});function L(I){return S?r.getName(I):Eh(r,I)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=s.ensureState("emphasis");D.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=p;var M=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*M,D.scaleY=this._sizeY*M,this.setSymbolScale(1),Wr(this,f,h,d)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,a,n){var i=this.childAt(0),o=ce(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&Hl(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Hl(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,a){return bk(r.getItemVisual(a,"symbolSize"))},e.getSymbolZ2=function(r,a){return r.getItemVisual(a,"z2")},e})(Me);function IM(t,e){this.parent.drift(t,e)}function hu(t,e,r,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a&&a.isIgnore&&a.isIgnore(r))&&!(a&&a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function _k(t){return t!=null&&!J(t)&&(t={isIgnore:t}),t||{}}function xk(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:nn(e),cursorStyle:e.get("cursor")}}function Pk(t,e,r,a,n,i,o){var s=new t(e,r,a,n);return s.setPosition(i),e.setItemGraphicEl(r,s),o.add(s),s}var Sk=(function(){function t(e){this.group=new Me,this._SymbolCtor=e||Ih}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=_k(r);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=xk(e),u={disableAnimation:s},p=r.getSymbolPoint||function(c){return e.getItemLayout(c)};i||a.removeAll(),e.diff(i).add(function(c){var f=p(c);hu(e,f,c,r)&&Pk(o,e,c,l,u,f,a)}).update(function(c,f){var h=i.getItemGraphicEl(f),d=p(c);if(!hu(e,d,c,r)){a.remove(h);return}var v=e.getItemVisual(c,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==v)a.remove(h),h=new o(e,c,l,u),h.setPosition(d);else{h.updateData(e,c,l,u);var g={x:d[0],y:d[1]};s?h.attr(g):Re(h,g,n)}a.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&f.fadeOut(function(){a.remove(f)},n)}).execute(),this._getSymbolPoint=p,this._data=e},t.prototype.updateLayout=function(e){var r=this._data;if(r)for(var a=this,n=r.getStore(),i=0,o=n.count();i<o;i++){var s=r.getItemGraphicEl(i),l=a._getSymbolPoint(i);hu(r,l,i,e)?(s=s||Pk(a._SymbolCtor,r,i,a._seriesScope,{disableAnimation:!0},l,a.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(a.group.remove(s),r.setItemGraphicEl(i,null))}},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=xk(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,a,n){this._progressiveEls=[],n=_k(n);function i(u){u.isGroup||(u.incremental=a,u.ensureState("emphasis").hoverLayer=Nf)}for(var o=e.start;o<e.end;o++){var s=r.getItemLayout(o);if(hu(r,s,o,n)){var l=new this._SymbolCtor(r,o,this._seriesScope);l.traverse(i),l.setPosition(s),this.group.add(l),r.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},t.prototype.eachRendered=function(e){Gl(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,a=this._data;a&&e?a.eachItemGraphicEl(function(n){n.fadeOut(function(){r.remove(n)},a.hostModel)}):r.removeAll()},t})();function Tk(t,e,r){var a=t.getBaseAxis(),n=t.getOtherAxis(a),i=OM(n,r),o=a.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),p=s==="x"||s==="radius"?1:0,c=K(t.dimensions,function(d){return e.mapDimension(d)}),f=!1,h=e.getCalculationInfo("stackResultDimension");return si(e,c[0])&&(f=!0,c[0]=h),si(e,c[1])&&(f=!0,c[1]=h),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:l,baseDim:u,baseDataOffset:p,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function OM(t,e){var r=0,a=t.scale.getExtent();return e==="start"?r=a[0]:e==="end"?r=a[1]:be(e)&&!isNaN(e)?r=e:a[0]>0?r=a[0]:a[1]<0&&(r=a[1]),r}function Ck(t,e,r,a){var n=NaN;t.stacked&&(n=r.get(r.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=t.valueStart);var i=t.baseDataOffset,o=[];return o[i]=r.get(t.baseDim,a),o[1-i]=n,e.dataToPoint(o)}function $t(t,e){return!isFinite(t)||!isFinite(e)}var RM=typeof Float32Array!==Xn?Float32Array:void 0,BM=typeof Float64Array!==Xn?Float64Array:void 0;function Kr(t){return Oh({ctor:RM},t).arr}function Oh(t,e){var r=t.arr,a=t.ctor;if(e>Ay&&(e=Ay),!r||t.typed&&r.length<e){var n=void 0;if(a)try{n=new a(e),t.typed=!0,r&&n.set(r)}catch{}if(!n&&(n=[],t.typed=!1,r))for(var i=0,o=r.length;i<o;i++)n[i]=r[i];t.arr=n}return t}function NM(t,e){var r=[];return e.diff(t).add(function(a){r.push({cmd:"+",idx:a})}).update(function(a,n){r.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){r.push({cmd:"-",idx:a})}).execute(),r}function FM(t,e,r,a,n,i,o,s){for(var l=NM(t,e),u=[],p=[],c=[],f=[],h=[],d=[],v=[],m=Tk(n,e,o),g=t.getLayout("points")||[],y=e.getLayout("points")||[],b=0;b<l.length;b++){var k=l[b],w=!0,_=void 0,x=void 0;switch(k.cmd){case"=":_=k.idx*2,x=k.idx1*2;var T=g[_],C=g[_+1],P=y[x],S=y[x+1];(isNaN(T)||isNaN(C))&&(T=P,C=S),u.push(T,C),p.push(P,S),c.push(r[_],r[_+1]),f.push(a[x],a[x+1]),v.push(e.getRawIndex(k.idx1));break;case"+":var L=k.idx,D=m.dataDimsForPoint,M=n.dataToPoint([e.get(D[0],L),e.get(D[1],L)]);x=L*2,u.push(M[0],M[1]),p.push(y[x],y[x+1]);var I=Ck(m,n,e,L);c.push(I[0],I[1]),f.push(a[x],a[x+1]),v.push(e.getRawIndex(L));break;case"-":w=!1}w&&(h.push(k),d.push(d.length))}d.sort(function(j,ne){return v[j]-v[ne]});for(var E=u.length,O=Kr(E),R=Kr(E),B=Kr(E),N=Kr(E),F=[],b=0;b<d.length;b++){var U=d[b],Y=b*2,z=U*2;O[Y]=u[z],O[Y+1]=u[z+1],R[Y]=p[z],R[Y+1]=p[z+1],B[Y]=c[z],B[Y+1]=c[z+1],N[Y]=f[z],N[Y+1]=f[z+1],F[b]=h[U]}return{current:O,next:R,stackedOnCurrent:B,stackedOnNext:N,status:F}}var ma=Math.min,ya=Math.max;function Rh(t,e,r,a,n,i,o,s,l){for(var u,p,c,f,h,d,v=r,m=0;m<a;m++){var g=e[v*2],y=e[v*2+1];if(v>=n||v<0)break;if($t(g,y)){if(l){v+=i;continue}break}if(v===r)t[i>0?"moveTo":"lineTo"](g,y),c=g,f=y;else{var b=g-u,k=y-p;if(b*b+k*k<.5){v+=i;continue}if(o>0){for(var w=v+i,_=e[w*2],x=e[w*2+1];_===g&&x===y&&m<a;)m++,w+=i,v+=i,_=e[w*2],x=e[w*2+1],g=e[v*2],y=e[v*2+1],b=g-u,k=y-p;var T=m+1;if(l)for(;$t(_,x)&&T<a;)T++,w+=i,_=e[w*2],x=e[w*2+1];var C=.5,P=0,S=0,L=void 0,D=void 0;if(T>=a||$t(_,x))h=g,d=y;else{P=_-u,S=x-p;var M=g-u,I=_-g,E=y-p,O=x-y,R=void 0,B=void 0;if(s==="x"){R=Math.abs(M),B=Math.abs(I);var N=P>0?1:-1;h=g-N*R*o,d=y,L=g+N*B*o,D=y}else if(s==="y"){R=Math.abs(E),B=Math.abs(O);var F=S>0?1:-1;h=g,d=y-F*R*o,L=g,D=y+F*B*o}else R=Math.sqrt(M*M+E*E),B=Math.sqrt(I*I+O*O),C=B/(B+R),h=g-P*o*(1-C),d=y-S*o*(1-C),L=g+P*o*C,D=y+S*o*C,L=ma(L,ya(_,g)),D=ma(D,ya(x,y)),L=ya(L,ma(_,g)),D=ya(D,ma(x,y)),P=L-g,S=D-y,h=g-P*R/B,d=y-S*R/B,h=ma(h,ya(u,g)),d=ma(d,ya(p,y)),h=ya(h,ma(u,g)),d=ya(d,ma(p,y)),P=g-h,S=y-d,L=g+P*B/R,D=y+S*B/R}t.bezierCurveTo(c,f,h,d,g,y),c=L,f=D}else t.lineTo(g,y)}u=g,p=y,v+=i}return m}var Dk=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),zM=(function(t){V(e,t);function e(r){var a=t.call(this,r)||this;return a.type="ec-polyline",a}return e.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Dk},e.prototype.buildPath=function(r,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&$t(n[o*2-2],n[o*2-1]);o--);for(;i<o&&$t(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=Rh(r,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},e.prototype.getPointOn=function(r,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,i=n.data,o=sa.CMD,s,l,u=a==="x",p=[],c=0;c<i.length;){var f=i[c++],h=void 0,d=void 0,v=void 0,m=void 0,g=void 0,y=void 0,b=void 0;switch(f){case o.M:s=i[c++],l=i[c++];break;case o.L:if(h=i[c++],d=i[c++],b=u?(r-s)/(h-s):(r-l)/(d-l),b<=1&&b>=0){var k=u?(d-l)*b+l:(h-s)*b+s;return u?[r,k]:[k,r]}s=h,l=d;break;case o.C:h=i[c++],d=i[c++],v=i[c++],m=i[c++],g=i[c++],y=i[c++];var w=u?qs(s,h,v,g,r,p):qs(l,d,m,y,r,p);if(w>0)for(var _=0;_<w;_++){var x=p[_];if(x<=1&&x>=0){var k=u?je(l,d,m,y,x):je(s,h,v,g,x);return u?[r,k]:[k,r]}}s=g,l=y;break}}},e})(me),HM=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Dk),VM=(function(t){V(e,t);function e(r){var a=t.call(this,r)||this;return a.type="ec-polygon",a}return e.prototype.getDefaultShape=function(){return new HM},e.prototype.buildPath=function(r,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&$t(n[s*2-2],n[s*2-1]);s--);for(;o<s&&$t(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=Rh(r,n,o,s,s,1,a.smooth,l,a.connectNulls);Rh(r,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,r.closePath()}},e})(me);function Bh(){var t=_e();return function(e){var r=t(e),a=e.pipelineContext,n=!!r.large,i=!!r.progressiveRender,o=r.large=!!(a&&a.large),s=r.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var Ak=_e(),UM=Bh(),at=(function(){function t(){this.group=new Me,this.uid=Io("viewChart"),this.renderTask=Ho({plan:GM,reset:WM}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,a,n){},t.prototype.highlight=function(e,r,a,n){var i=e.getData(n&&n.dataType);i&&Mk(i,n,"emphasis")},t.prototype.downplay=function(e,r,a,n){var i=e.getData(n&&n.dataType);i&&Mk(i,n,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,a,n){this.render(e,r,a,n)},t.prototype.updateVisual=function(e,r,a,n){this.render(e,r,a,n)},t.prototype.eachRendered=function(e){Gl(this.group,e)},t.markUpdateMethod=function(e,r){Ak(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function Lk(t,e,r){t&&Cf(t)&&(e==="emphasis"?Ll:Ml)(t,r)}function Mk(t,e,r){var a=Za(t,e),n=e&&e.highlightKey!=null?bA(e.highlightKey):null;a!=null?A(ut(a),function(i){Lk(t.getItemGraphicEl(i),r,n)}):t.eachItemGraphicEl(function(i){Lk(i,r,n)})}Jp(at),Vs(at);function GM(t){return UM(t.model)}function WM(t){var e=t.model,r=t.ecModel,a=t.api,n=t.payload,i=e.pipelineContext.progressiveRender,o=t.view,s=n&&Ak(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,a,n),$M[l]}var $M={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};function Ek(t,e,r,a,n){var i=t.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,p=r.get(["lineStyle","width"])||0;o-=p/2,s-=p/2,l+=p,u+=p,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new Ie({shape:{x:o,y:s,width:l,height:u}});if(e){var f=t.getBaseAxis(),h=f.isHorizontal(),d=f.inverse;h?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var v=re(n)?function(m){n(m,c)}:null;Ye(c,{shape:{width:l,height:u,x:o,y:s}},r,null,a,v)}return c}function Ik(t,e,r){var a=t.getArea(),n=ve(a.r0,1),i=ve(a.r,1),o=new Mr({shape:{cx:ve(t.cx,1),cy:ve(t.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=n,Ye(o,{shape:{endAngle:a.endAngle,r:i}},r)}return o}function YM(t,e,r,a,n){if(t){if(t.type==="polar")return Ik(t,e,r);if(t.type==="cartesian2d")return Ek(t,e,r,a,n)}else return null;return null}function KM(t){var e=t.coordinateSystem;if(t.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function Ok(t,e){return t.type===e}var or=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();Vs(or);var XM=0,Nh=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++XM,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,a=r.data,n=a&&K(a,qM);return new t({categories:n,needCollect:!n,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,a=this._needCollect;if(!q(e)&&!a)return e;if(a&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var n=this._getOrCreateMap();return r=n.get(e),r==null&&(a?(r=this.categories.length,this.categories[r]=e,n.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ae(this.categories))},t})();function qM(t){return J(t)&&t.value!=null?t.value:t+""}var Yt=0,Vo=1,jM={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},Rk=he(jM),du=2,Bk=3;function Fh(t,e,r){var a;t=t||{};var n=ct();if(n){var i=n.createBreakScaleMapper(e,r);i.hasBreaks()&&(A(Rk,function(o){i[o]&&(t[o]=ge(i[o],i))}),a=i)}return a==null&&QM(t,r),{brk:a,mapper:t}}function Nk(t,e){A(Rk,function(r){t[r]=e[r]})}function Fk(t,e){t.freeze=qe}function Uo(t){return t.getExtentUnsafe(Yt,du)}function vu(t,e){return t.getExtentUnsafe(Vo,e)||t.getExtentUnsafe(Yt,e)}function ZM(t){var e=vu(t,Bk);return e[1]-e[0]}function gu(t){var e=t.getExtentUnsafe(Yt,Bk);return e[1]-e[0]}function QM(t,e){var r=t||{},a=[];return r._extents=a,a[Yt]=e?e.slice():Ht(),H(r,JM),r}var JM={needTransform:function(){return!1},normalize:function(t){var e=this._extents[Vo]||this._extents[Yt];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[Vo]||this._extents[Yt];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=vu(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[Yt].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){zk(this._extents,Yt,t,e)},setExtent2:function(t,e,r){var a=this._extents;a[t]||(a[t]=a[Yt].slice()),zk(a,t,e,r)},freeze:function(){}};function zk(t,e,r,a){Kn(r,a)&&(t[e][0]=r,t[e][1]=a)}function Hk(t){return mu(t)||ci(t)}function mu(t){return t.type==="interval"}function zh(t){return t.type==="time"}function ci(t){return t.type==="log"}function sr(t){return t.type==="ordinal"}function e5(t){var e=of(t),r=ja(10,e),a=Vr(t/r);return a?a===2?a=3:a===3?a=5:a*=2:a=1,ve(a*r,-e)}function hn(t){return ua(t)+2}function yu(t,e){return ho(t)/ho(e)}function Hh(t,e,r){var a=r&&r.lookup;if(a){for(var n=0;n<a.from.length;n++)if(t===a.from[n])return a.to[n]}return ja(e,t)}function Vk(t,e,r){var a=t.slice();if(a[0]===a[1]){var n=r&&r.ctnShp;if(a[0]!==0){var i=Ve(a[0]);e[1]||(a[1]+=i/2),a[0]-=i/2}else n&&(a[0]=-1),a[1]=1}return(!Ur(a[0])||!Ur(a[1]))&&(a[0]=0,a[1]=1),a[1]<a[0]&&a.reverse(),a}function t5(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function bu(t,e){return t=t||e,Vr(ye(t,1))}function Uk(t,e,r){var a=Uo(t),n=a[0],i=t.count(),o=Math.max((e||0)+1,1);n!==0&&o>1&&i/o>2&&(n=Math.round(Math.ceil(n/o)*o)),n!==a[0]&&l(a[0],!0,!0);for(var s=n;s<=a[1];s+=o)l(s,!1,s===a[0]||s===a[1]);s-o!==a[1]&&l(a[1],!0,!0);function l(u,p,c){r({value:u,offInterval:p},c)}}var Gk=(function(t){V(e,t);function e(r){var a=t.call(this)||this;a.type="ordinal",a.parse=e.parse,Nk(a,e.decoratedMethods);var n=r.ordinalMeta;n||(n=new Nh({})),W(n)&&(n=new Nh({categories:K(n,function(o){return J(o)?o.value:o})})),a._ordinalMeta=n;var i=Fh(null,null,r.extent||[0,n.categories.length-1]);return a._mapper=i.mapper,Fk(a),a}return e.parse=function(r){return r==null?r=NaN:q(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=Vr(r),r},e.prototype.getTicks=function(){var r=[];return Uk(this,0,function(a){r.push(a)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=r.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=et(s,a.length);o<l;++o){var u=n[o]=a[o];i[u]=o}for(var p=0;o<s;++o){for(;i[p]!=null;)p++;n[o]=p,i[p]=o}},e.prototype._getTickNumber=function(r){var a=this._ticksByOrdinalNumber;return a&&r>=0&&r<a.length?a[r]:r},e.prototype.getRawOrdinalNumber=function(r){var a=this._ordinalNumbersByTick;return a&&r>=0&&r<a.length?a[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var a=this.getRawOrdinalNumber(r.value),n=this._ordinalMeta.categories[a];return n==null?"":n+""}},e.prototype.count=function(){var r=Uo(this._mapper);return r[1]-r[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(Vr(this._mapper.scale(r)))},transformIn:function(r,a){return this._mapper.transformIn(this._getTickNumber(r),a)},transformOut:function(r,a){return this.getRawOrdinalNumber(this._mapper.transformOut(r,a))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,a){return this._mapper.getExtentUnsafe(r,a)},setExtent:function(r,a){return this._mapper.setExtent(r,a)},setExtent2:function(r,a,n){return this._mapper.setExtent2(r,a,n)}},e})(or);or.registerClass(Gk);function Vh(t,e,r,a){for(var n=t.getTicks({expandToNicedExtent:!0}),i=[],o=t.getExtent(),s=1;s<n.length;s++){var l=n[s],u=n[s-1];if(!(u.break||l.break)){for(var p=0,c=[],f=l.value-u.value,h=f/e,d=hn(h);p<e-1;){var v=ve(u.value+(p+1)*h,d);v>o[0]&&v<o[1]&&c.push(v),p++}var m=ct();m&&m.pruneTicksByBreak("auto",c,r,function(g){return g},a,o),i.push(c)}}return i}var ba=(function(t){V(e,t);function e(r){var a=t.call(this)||this;a.type="interval",a.parse=e.parse,r=r||{};var n=Hb(a,r),i=Fh(a,n,null);return a.brk=i.brk,a._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},a}return e.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return le(this._cfg)},e.prototype.setConfig=function(r){var a=Uo(this);this._cfg=r=le(r),r.niceExtent==null&&(r.niceExtent=a.slice()),r.intervalPrecision==null&&(r.intervalPrecision=hn(r.interval))},e.prototype.getTicks=function(r){r=r||{};var a=this._cfg,n=a.interval,i=Uo(this),o=a.niceExtent,s=a.intervalPrecision,l=ct(),u=this.brk,p=l&&u,c=[];if(!n)return c;if(r.breakTicks==="only_break"&&p)return l.addBreaksToTicks(c,u.breaks,i),c;var f=3e3;i[0]<o[0]&&c.push({value:r.expandToNicedExtent?ve(o[0]-n,s):i[0]});for(var h=function(b,k){return Vr((k-b)/n)},d=a.intervalCount,v=o[0],m=0;;m++){if(d==null){if(v>o[1]||!isFinite(v)||!isFinite(o[1]))break}else{if(m>d)break;v=et(v,o[1]),m===d&&(v=o[1])}if(c.push({value:v}),v=ve(v+n,s),u){var g=u.calcNiceTickMultiple(v,h);g>=0&&(v=ve(v+g*n,s))}if(c.length>0&&v===c[c.length-1].value)break;if(c.length>f)return[]}var y=c.length?c[c.length-1].value:o[1];return i[1]>y&&c.push({value:r.expandToNicedExtent?ve(y+n,s):i[1]}),p&&l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(b){return b.value},a.interval,i),p&&r.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,i),c},e.prototype.getMinorTicks=function(r){return Vh(this,r,au(this),this._cfg.interval)},e.prototype.getLabel=function(r,a){if(r==null)return"";var n=a&&a.precision;n==null?n=ua(r.value)||0:n==="auto"&&(n=this._cfg.intervalPrecision);var i=ve(r.value,n,!0);return jb(i)},e.type="interval",e})(or);or.registerClass(ba);var r5=function(t,e,r,a){for(;r<a;){var n=r+a>>>1;t[n][1]<e?r=n+1:a=n}return r},Wk=(function(t){V(e,t);function e(r){var a=t.call(this)||this;a.type="time",a.parse=e.parse,a._locale=r.locale,a._useUTC=r.useUTC,a._interval=0;var n=Hb(a,r),i=Fh(a,n,null);return a.brk=i.brk,a}return e.prototype.getLabel=function(r){return su(r.value,Ub[RL(Ro(this._minLevelUnit))]||Ub.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,a,n){return BL(r,a,n,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var a=this._interval,n=Uo(this),i=ct(),o=this.brk,s=i&&o,l=[];if(!a)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return ct().addBreaksToTicks(l,o.breaks,n),l;l=u5(this._minLevelUnit,this._approxInterval,u,n,gu(this),o);var p=Ct.length-1,c=0;return A(l,function(f){f.time&&(p=Math.min(p,fe(Ct,f.time.upperTimeUnit)),c=Math.max(c,f.time.level))}),s&&ct().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(f){return f.value},this._approxInterval,n),s&&r.breakTicks!=="none"&&ct().addBreaksToTicks(l,o.breaks,n,function(f){for(var h=Math.max(fe(Ct,ui(f.vmin,u)),fe(Ct,ui(f.vmax,u))),d=0,v=0;v<Ct.length;v++)if(!$k(Ct[v],f.vmin,f.vmax,u)){d=v;break}var m=Math.min(d,p),g=Math.max(m,h);return{level:c,lowerTimeUnit:Ct[g],upperTimeUnit:Ct[m]}}),l},e.prototype.getMinorTicks=function(r){return Vh(this,r,au(this),this._interval)},e.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},e.parse=function(r){return be(r)?Math.round(r):+Yn(r)},e.type="time",e})(or),ku=[["second",hh],["minute",dh],["hour",Oo],["quarter-day",Oo*6],["half-day",Oo*12],["day",Wt*1.2],["half-week",Wt*3.5],["week",Wt*7],["month",Wt*31],["quarter",Wt*95],["half-year",Vb/2],["year",Vb]];function $k(t,e,r,a){return vh(new Date(e),t,a).getTime()===vh(new Date(r),t,a).getTime()}function a5(t,e){return t/=Wt,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function n5(t){var e=30*Wt;return t/=e,t>6?6:t>3?3:t>2?2:1}function i5(t){return t/=Oo,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function Yk(t,e){return t/=e?dh:hh,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function o5(t){return ye(sf(t,!0),1)}function s5(t,e,r){var a=Math.max(0,fe(Ct,e)-1);return vh(new Date(t),Ct[a],r).getTime()}function l5(t,e){var r=new Date(0);r[t](1);var a=r.getTime();r[t](1+e);var n=r.getTime()-a;return function(i,o){return Math.max(0,Math.round((o-i)/n))}}function u5(t,e,r,a,n,i){var o=3e3,s=ML,l=0;function u(E,O,R,B,N,F,U){for(var Y=l5(N,E),z=O,j=new Date(z);z<R&&z<=a[1]&&(U.push({value:z}),!(l++>o));)if(j[N](j[B]()+E),z=j.getTime(),i){var ne=i.calcNiceTickMultiple(z,Y);ne>0&&(j[N](j[B]()+ne*E),z=j.getTime())}U.push({value:z,notAdd:z>a[1]})}function p(E,O,R){var B=[],N=!O.length;if(!$k(Ro(E),a[0],a[1],r)){N&&(O=[{value:s5(a[0],E,r)},{value:a[1]}]);for(var F=0;F<O.length-1;F++){var U=O[F].value,Y=O[F+1].value;if(U!==Y){var z=void 0,j=void 0,ne=void 0,De=!1;switch(E){case"year":z=Math.max(1,Math.round(e/Wt/365)),j=Gb(r),ne=NL(r);break;case"half-year":case"quarter":case"month":z=n5(e),j=gh(r),ne=Wb(r);break;case"week":case"half-week":case"day":z=a5(e),j=mh(r),ne=$b(r),De=!0;break;case"half-day":case"quarter-day":case"hour":z=i5(e),j=yh(r),ne=Yb(r);break;case"minute":z=Yk(e,!0),j=bh(r),ne=Kb(r);break;case"second":z=Yk(e,!1),j=kh(r),ne=Xb(r);break;case"millisecond":z=o5(e),j=wh(r),ne=qb(r);break}Y>=a[0]&&U<=a[1]&&u(z,U,Y,j,ne,De,B),E==="year"&&R.length>1&&F===0&&R.unshift({value:R[0].value-z})}}for(var F=0;F<B.length;F++)R.push(B[F])}}for(var c=[],f=[],h=0,d=0,v=0;v<s.length;++v){var m=Ro(s[v]);if(OL(s[v])){p(s[v],c[c.length-1]||[],f);var g=s[v+1]?Ro(s[v+1]):null;if(m!==g){if(f.length){d=h,f.sort(function(E,O){return E.value-O.value});for(var y=[],b=0;b<f.length;++b){var k=f[b].value;(b===0||f[b-1].value!==k)&&(y.push(f[b]),k>=a[0]&&k<=a[1]&&h++)}var w=n/e;if(h>w*1.5&&d>w/1.5||(c.push(y),h>w||t===s[v]))break}f=[]}}}for(var _=Xe(K(c,function(E){return Xe(E,function(O){return O.value>=a[0]&&O.value<=a[1]&&!O.notAdd})}),function(E){return E.length>0}),x=_.length-1,T=[],v=0;v<_.length;++v)for(var C=_[v],P=0;P<C.length;++P){var S=ui(C[P].value,r);T.push({value:C[P].value,time:{level:x-v,upperTimeUnit:S,lowerTimeUnit:S}})}hf(T,ZD,null),T.sort(function(E,O){return E.value-O.value});var L=T[0],D=T[T.length-1],M=ui(a[0],r),I=ui(a[1],r);return(!L||L.value>a[0])&&T.unshift({value:a[0],time:{level:0,upperTimeUnit:M,lowerTimeUnit:M},notNice:!0}),(!D||D.value<a[1])&&T.push({value:a[1],time:{level:0,upperTimeUnit:I,lowerTimeUnit:I},notNice:!0}),T}var p5=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=Wt,r[1]+=Wt),r[1]===-1/0&&r[0]===1/0){var a=new Date;r[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),r[0]=r[1]-Wt}t.setExtent(r[0],r[1]);var n=bu(e.splitNumber,10),i=gu(t)/n,o=e.minInterval,s=e.maxInterval;o!=null&&i<o&&(i=o),s!=null&&i>s&&(i=s);var l=ku.length,u=Math.min(r5(ku,i,0,l),l-1),p=ku[u][1],c=ku[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:i,interval:p,minLevelUnit:c})};or.registerClass(Wk);var wu=0,_u=1,c5=2,Kk=(function(t){V(e,t);function e(r){var a=t.call(this)||this;a.type="log",a.parse=ba.parse,a.base=r.logBase||10;var n=[],i=[],o=a._lookup={from:n,to:i};n[wu]=n[_u]=i[wu]=i[_u]=NaN,Nk(a,e.mapperMethods);var s=ct(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,a,{noNegative:!0},c5,u),a.powStub=new ba({breakParsed:u.original}),a.intervalStub=new ba({breakParsed:u.transformed}),Fk(a,a.intervalStub),a}return e.prototype.getTicks=function(r){var a=this.base,n=this.powStub,i=ct(),o=this.intervalStub,s=o.getExtent(),l=n.getExtent(),u={lookup:{from:s,to:l}};return K(o.getTicks(r||{}),function(p){var c=p.value,f=Hh(c,a,u),h;if(i){var d=i.getTicksBreakOutwardTransform(this,p,au(n),this._lookup);d&&(h=d.vBreak,f=d.tickVal)}return{value:f,break:h}},this)},e.prototype.getMinorTicks=function(r){return Vh(this,r,au(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,a){return this.intervalStub.getLabel(r,a)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(yu(r,this.base))},scale:function(r){return Hh(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,a){return r=yu(r,this.base),a&&a.depth===du?r:this.intervalStub.transformIn(r,a)},transformOut:function(r,a){var n=a?a.depth:null;return Xk.depth=n,qk.lookup=this._lookup,Hh(n===du?r:this.intervalStub.transformOut(r,Xk),this.base,qk)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,a){this.setExtent2(Yt,r,a)},setExtent2:function(r,a,n){if(!(!Kn(a,n)||a<=0||n<=0)){var i=jk,o=jk;if(r===Yt){var s=this._lookup;i=s.to,o=s.from}this.powStub.setExtent2(r,i[wu]=a,i[_u]=n);var l=this.base;this.intervalStub.setExtent2(r,o[wu]=yu(a,l),o[_u]=yu(n,l))}},getFilter:function(){return{g:0}},sanitize:function(r,a){return Kn(a[0],a[1])&&Ft(r)&&r<=0&&(r=a[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,a){return a===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,a)}},e})(or);or.registerClass(Kk);var Xk={},qk={},jk=[],Zk={value:1,category:1,time:1,log:1},Qk=_e();function f5(t){var e=t.get("type");return(e==null||!st(Zk,e)&&!or.getClass(e))&&(e="value"),e}function h5(t,e,r){var a=ct(),n;switch(a&&(n=Jk(t,e)),e){case"category":return new Gk({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:Ht()});case"time":return new Wk({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:n});case"log":return new Kk({logBase:t.get("logBase"),breakOption:n});case"value":return new ba({breakOption:n});default:return new(or.getClass(e)||ba)({})}}function d5(t,e,r){var a=t.getExtentUnsafe(Yt,null),n=a[0],i=a[1];return Kn(n,i)?n===e||i===e?g5:n<e&&i>e?v5:Uh:Uh}var v5=1,g5=2,Uh=3;function m5(t){Qk(t).noOnMyZero=!0}function y5(t){return Qk(t).noOnMyZero}function xu(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=EL(e);return function(n,i){return t.scale.getFormattedLabel(n,i,r)}}else{if(q(e))return function(n){var i=t.scale.getLabel(n),o=e.replace("{value}",i??"");return o};if(re(e)){if(t.type==="category")return function(n,i){return e(Pu(t,n),n.value-t.scale.getExtent()[0],null)};var a=ct();return function(n,i){var o=null;return a&&(o=a.makeAxisLabelFormatterParamBreak(o,n.break)),e(Pu(t,n),i,o)}}else return function(n){return t.scale.getLabel(n)}}}function Pu(t,e){var r=t.scale;return sr(r)?r.getLabel(e):e.value}function Gh(t){var e=t.get("interval");return e??"auto"}function b5(t){return t.type==="category"&&Gh(t.getLabelModel())===0}function k5(t,e){var r={};return A(t.mapDimensionsAll(e),function(a){r[lL(t,a)]=!0}),he(r)}function fi(t){return t==="middle"||t==="center"}function Go(t){return t.getShallow("show")}function Jk(t,e,r){var a=t.get("breaks",!0);if(a!=null)return!ct()||!w5(e)?void 0:a}function w5(t){return t!=="category"}function e1(t,e,r,a,n,i){var o=ci(t),s=o?t.intervalStub:t;if(s.setExtent(a[0],a[1]),o){var l=t.powStub,u={depth:du},p=t.transformOut(a[0],u),c=t.transformOut(a[1],u),f=t5(r,a);e[0]&&!f[0]&&(p=n[0]),e[1]&&!f[1]&&(c=n[1]),l.setExtent(p,c)}s.setConfig(i)}function Wo(t,e){return sr(t)?t.getRawOrdinalNumber(e.value):e.value}function t1(t,e){return sr(t)&&!!e.get("boundaryGap")}function r1(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function a1(t){for(var e=Ht(),r=Ht(),a=0;a<t.length;){var n=t[a++],i=t[a++];$t(n,i)||(ff(e,n),ff(r,i))}return[e,r]}function n1(t,e){var r=a1(t),a=r[0],n=r[1],i=a1(e),o=i[0],s=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(n[0]-s[0]),Math.abs(a[1]-o[1]),Math.abs(n[1]-s[1]))}function i1(t){return be(t)?t:t?.5:0}function _5(t,e,r){if(r.valueDim==null)return[];for(var a=e.count(),n=Kr(a*2),i=0;i<a;i++){var o=Ck(r,t,e,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function ka(t,e,r,a,n){var i=r.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],p=[],c=[],f=[];if(n){for(l=0;l<t.length;l+=2){var h=e||t;$t(h[l],h[l+1])||f.push(t[l],t[l+1])}t=f}for(l=0;l<t.length-2;l+=2)switch(c[0]=t[l+2],c[1]=t[l+3],p[0]=t[l],p[1]=t[l+1],s.push(p[0],p[1]),a){case"end":u[o]=c[o],u[1-o]=p[1-o],s.push(u[0],u[1]);break;case"middle":var d=(p[o]+c[o])/2,v=[];u[o]=v[o]=d,u[1-o]=p[1-o],v[1-o]=c[1-o],s.push(u[0],u[1]),s.push(v[0],v[1]);break;default:u[o]=p[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function x5(t,e){var r=[],a=t.length,n,i;function o(p,c,f){var h=p.coord,d=(f-h)/(c.coord-h),v=xC(d,[p.color,c.color]);return{coord:f,color:v}}for(var s=0;s<a;s++){var l=t[s],u=l.coord;if(u<0)n=l;else if(u>e){i?r.push(o(i,l,e)):n&&r.push(o(n,l,0),o(n,l,e));break}else n&&(r.push(o(n,l,0)),n=null),r.push(l),i=l}return r}function P5(t,e,r){var a=t.getVisual("visualMeta");if(!(!a||!a.length||!t.count())&&e.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=t.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=e.getAxis(n),u=K(i.stops,function(b){return{coord:l.toGlobalCoord(l.dataToCoord(b.value)),color:b.color}}),p=u.length,c=i.outerColors.slice();p&&u[0].coord>u[p-1].coord&&(u.reverse(),c.reverse());var f=x5(u,n==="x"?r.getWidth():r.getHeight()),h=f.length;if(!h&&p)return u[0].coord<0?c[1]?c[1]:u[p-1].color:c[0]?c[0]:u[0].color;var d=10,v=f[0].coord-d,m=f[h-1].coord+d,g=m-v;if(g<.001)return"transparent";A(f,function(b){b.offset=(b.coord-v)/g}),f.push({offset:h?f[h-1].offset:.5,color:c[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:c[0]||"transparent"});var y=new A0(0,0,0,0,f,!0);return y[n]=v,y[n+"2"]=m,y}}}function S5(t,e,r){var a=t.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=r.getAxesByScale("ordinal")[0];if(i&&!(n&&T5(i,e))){var o=e.mapDimension(i.dim),s={};return A(i.getViewLabels(),function(l){l.tick.offInterval||(s[Wo(i.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function T5(t,e){var r=t.getExtent(),a=Math.abs(r[1]-r[0])/t.scale.count();isNaN(a)&&(a=0);for(var n=e.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if(Ih.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>a)return!1;return!0}function C5(t){for(var e=t.length/2;e>0&&$t(t[e*2-2],t[e*2-1]);e--);return e-1}function o1(t,e){return[t[e*2],t[e*2+1]]}function D5(t,e,r){for(var a=t.length/2,n=r==="x"?0:1,i,o,s=0,l=-1,u=0;u<a;u++)if(o=t[u*2+n],!$t(o,t[u*2+1-n])){if(u===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function s1(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Ut.length;e++)if(t.get([Ut[e],"endLabel","show"]))return!0;return!1}function Wh(t,e,r,a){if(Ok(e,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=s1(a)?function(h,d){t._endLabelOnDuring(h,d,o,s,i,n,e)}:null,u=e.getBaseAxis().isHorizontal(),p=Ek(e,r,a,function(){var h=t._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var c=p.shape,f=Math.max(c.width,c.height);u?(c.y-=f,c.height+=f*2):(c.x-=f,c.width+=f*2)}return l&&l(1,p),p}else return Ik(e,r,a)}function A5(t,e){var r=e.getBaseAxis(),a=r.isHorizontal(),n=r.inverse,i=a?n?"right":"left":"center",o=a?"middle":n?"top":"bottom";return{normal:{align:t.get("align")||i,verticalAlign:t.get("verticalAlign")||o}}}var L5=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new Me,a=new Sk;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=r,this._changePolyState=ge(this._changePolyState,this)},e.prototype.render=function(r,a,n){var i=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),p=s.getLayout("points")||[],c=i.type==="polar",f=this._coordSys,h=this._symbolDraw,d=this._polyline,v=this._polygon,m=this._lineGroup,g=!a.ssr&&r.get("animation"),y=!u.isEmpty(),b=u.get("origin"),k=Tk(i,s,b),w=y&&_5(i,s,k),_=r.get("showSymbol"),x=r.get("connectNulls"),T=_&&!c&&S5(r,s,i),C=this._data;C&&C.eachItemGraphicEl(function(de,Ce){de.__temp&&(o.remove(de),C.setItemGraphicEl(Ce,null))}),_||h.remove(),o.add(m);var P=c?!1:r.get("step"),S;i&&i.getArea&&r.get("clip",!0)&&(S=i.getArea(),S.width!=null?(S.x-=.1,S.y-=.1,S.width+=.2,S.height+=.2):S.r0&&(S.r0-=.5,S.r+=.5)),this._clipShapeForSymbol=S;var L=P5(s,i,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&f.type===i.type&&P===this._step))_&&h.updateData(s,{isIgnore:T,clipShape:S,disableAnimation:!0,getSymbolPoint:function(de){return[p[de*2],p[de*2+1]]}}),g&&this._initSymbolLabelAnimation(s,i,S),P&&(w&&(w=ka(w,p,i,P,x)),p=ka(p,null,i,P,x)),d=this._newPolyline(p),y?v=this._newPolygon(p,w):v&&(m.remove(v),v=this._polygon=null),c||this._initOrUpdateEndLabel(r,i,pn(L)),m.setClipPath(Wh(this,i,!0,r));else{y&&!v?v=this._newPolygon(p,w):v&&!y&&(m.remove(v),v=this._polygon=null),c||this._initOrUpdateEndLabel(r,i,pn(L));var D=m.getClipPath();if(D){var M=Wh(this,i,!1,r);Ye(D,{shape:M.shape},r)}else m.setClipPath(Wh(this,i,!0,r));_&&h.updateData(s,{isIgnore:T,clipShape:S,disableAnimation:!0,getSymbolPoint:function(de){return[p[de*2],p[de*2+1]]}}),(!r1(this._stackedOnPoints,w)||!r1(this._points,p))&&(g?this._doUpdateAnimation(s,w,i,n,P,b,x):(P&&(w&&(w=ka(w,p,i,P,x)),p=ka(p,null,i,P,x)),d.setShape({points:p}),v&&v.setShape({points:p,stackedOnPoints:w})))}var I=r.getModel("emphasis"),E=I.get("focus"),O=I.get("blurScope"),R=I.get("disabled");if(d.useStyle(pe(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),$r(d,r,"lineStyle"),d.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var B=d.getState("emphasis").style;B.lineWidth=+d.style.lineWidth+1}ce(d).seriesIndex=r.seriesIndex,Wr(d,E,O,R);var N=i1(r.get("smooth")),F=r.get("smoothMonotone");if(d.setShape({smooth:N,smoothMonotone:F,connectNulls:x}),v){var U=s.getCalculationInfo("stackedOnSeries"),Y=0;v.useStyle(pe(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),U&&(Y=i1(U.get("smooth"))),v.setShape({smooth:N,stackedOnSmooth:Y,smoothMonotone:F,connectNulls:x}),$r(v,r,"areaStyle"),ce(v).seriesIndex=r.seriesIndex,Wr(v,E,O,R)}var z=this._changePolyState;s.eachItemGraphicEl(function(de){de&&(de.onHoverStateChange=z)}),this._polyline.onHoverStateChange=z,this._data=s,this._coordSys=i,this._stackedOnPoints=w,this._points=p,this._step=P,this._valueOrigin=b;var j=r.get("triggerEvent"),ne=r.get("triggerLineEvent"),De=ne===!0||j===!0||j==="line",Ee=ne===!0||j===!0||j==="area";this.packEventData(r,d,De),v&&this.packEventData(r,v,Ee)},e.prototype.packEventData=function(r,a,n){ce(a).eventData=n?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:a===this._polygon?"area":"line"}:null},e.prototype.highlight=function(r,a,n,i){var o=r.getData(),s=Za(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var p=l[s*2],c=l[s*2+1];if($t(p,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(p,c))return;var f=r.get("zlevel")||0,h=r.get("z")||0;u=new Ih(o,s),u.x=p,u.y=c,u.setZ(f,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=f,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else at.prototype.highlight.call(this,r,a,n,i)},e.prototype.downplay=function(r,a,n,i){var o=r.getData(),s=Za(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else at.prototype.downplay.call(this,r,a,n,i)},e.prototype._changePolyState=function(r){var a=this._polygon;n0(this._polyline,r),a&&n0(a,r)},e.prototype._newPolyline=function(r){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new zM({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(r,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new VM({shape:{points:r,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(r,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=r.hostModel,p=u.get("animationDuration");re(p)&&(p=p(null));var c=u.get("animationDelay")||0,f=re(c)?c(null):c;r.eachItemGraphicEl(function(h,d){var v=h;if(v){var m=[h.x,h.y],g=void 0,y=void 0,b=void 0;if(n)if(o){var k=n,w=a.pointToCoord(m);i?(g=k.startAngle,y=k.endAngle,b=-w[1]/180*Math.PI):(g=k.r0,y=k.r,b=w[0])}else{var _=n;i?(g=_.x,y=_.x+_.width,b=h.x):(g=_.y+_.height,y=_.y,b=h.y)}var x=y===g?0:(b-g)/(y-g);l&&(x=1-x);var T=re(c)?c(d):p*x+f,C=v.getSymbolPath(),P=C.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),P&&P.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,a,n){var i=r.getModel("endLabel");if(s1(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Oe({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var p=C5(l);p>=0&&(an(s,nn(r,"endLabel"),{inheritColor:n,labelFetcher:r,labelDataIndex:p,defaultText:function(c,f,h){return h!=null?wk(o,h):Eh(o,c)},enableTextSetter:!0},A5(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,a,n,i,o,s,l){var u=this._endLabel,p=this._polyline;if(u){r<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=n.getLayout("points"),f=n.hostModel,h=f.get("connectNulls"),d=s.get("precision"),v=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,b=a.shape,k=y?g?b.x:b.y+b.height:g?b.x+b.width:b.y,w=(g?v:0)*(y?-1:1),_=(g?0:-v)*(y?-1:1),x=g?"x":"y",T=D5(c,k,x),C=T.range,P=C[1]-C[0],S=void 0;if(P>=1){if(P>1&&!h){var L=o1(c,C[0]);u.attr({x:L[0]+w,y:L[1]+_}),o&&(S=f.getRawValue(C[0]))}else{var L=p.getPointOn(k,x);L&&u.attr({x:L[0]+w,y:L[1]+_});var D=f.getRawValue(C[0]),M=f.getRawValue(C[1]);o&&(S=Vy(n,d,D,M,T.t))}i.lastFrameIndex=C[0]}else{var I=r===1||i.lastFrameIndex>0?C[0]:0,L=o1(c,I);o&&(S=f.getRawValue(I)),u.attr({x:L[0]+w,y:L[1]+_})}if(o){var E=Co(u);typeof E.setLabelText=="function"&&E.setLabelText(S)}}},e.prototype._doUpdateAnimation=function(r,a,n,i,o,s,l){var u=this._polyline,p=this._polygon,c=r.hostModel,f=FM(this._data,r,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),h=f.current,d=f.stackedOnCurrent,v=f.next,m=f.stackedOnNext;if(o&&(d=ka(f.stackedOnCurrent,f.current,n,o,l),h=ka(f.current,null,n,o,l),m=ka(f.stackedOnNext,f.next,n,o,l),v=ka(f.next,null,n,o,l)),n1(h,v)>3e3||p&&n1(d,m)>3e3){u.stopAnimation(),u.setShape({points:v}),p&&(p.stopAnimation(),p.setShape({points:v,stackedOnPoints:m}));return}u.shape.__points=f.current,u.shape.points=h;var g={shape:{points:v}};f.current!==h&&(g.shape.__points=f.next),u.stopAnimation(),Re(u,g,c),p&&(p.setShape({points:h,stackedOnPoints:d}),p.stopAnimation(),Re(p,{shape:{stackedOnPoints:m}},c),u.shape.points!==p.shape.points&&(p.shape.points=u.shape.points));for(var y=[],b=f.status,k=0;k<b.length;k++){var w=b[k].cmd;if(w==="="){var _=r.getItemGraphicEl(b[k].idx1);_&&y.push({el:_,ptIdx:k})}}u.animators&&u.animators.length&&u.animators[0].during(function(){p&&p.dirtyShape();for(var x=u.shape.__points,T=0;T<y.length;T++){var C=y[T].el,P=y[T].ptIdx*2;C.x=x[P],C.y=x[P+1],C.markRedraw()}})},e.prototype.remove=function(r){var a=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(i,o){i.__temp&&(a.remove(i),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(at);function $h(t,e){return{seriesType:t,plan:Bh(),reset:function(r){var a=r.getData(),n=r.coordinateSystem,i=r.pipelineContext,o=e||i.large;if(n){var s=K(n.dimensions,function(h){return a.mapDimension(h)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");si(a,s[0])&&(s[0]=u),si(a,s[1])&&(s[1]=u);var p=a.getStore(),c=a.getDimensionIndex(s[0]),f=a.getDimensionIndex(s[1]);return l&&{progress:function(h,d){for(var v=h.end-h.start,m=o&&Kr(v*l),g=[],y=[],b=h.start,k=0;b<h.end;b++){var w=void 0;if(l===1){var _=p.get(c,b);w=n.dataToPoint(_,null,y)}else g[0]=p.get(c,b),g[1]=p.get(f,b),w=n.dataToPoint(g,null,y);o?(m[k++]=w[0],m[k++]=w[1]):d.setItemLayout(b,w.slice())}o&&(d.setLayout("points",m),d.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var M5={average:function(t){for(var e=0,r=0,a=0;a<t.length;a++)isNaN(t[a])||(e+=t[a],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},E5=function(t){return Math.round(t.length/2)};function l1(t){return{seriesType:t,reset:function(e,r,a){var n=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),p=l.getExtent(),c=a.getDevicePixelRatio(),f=Math.abs(p[1]-p[0])*(c||1),h=Math.round(s/f);if(isFinite(h)&&h>1){i==="lttb"?e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h)):i==="minmax"&&e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/h));var d=void 0;q(i)?d=M5[i]:re(i)&&(d=i),d&&e.setData(n.downSample(n.mapDimension(u.dim),1/h,d,E5))}}}}}function I5(t){t.registerChartView(L5),t.registerSeriesModel(EM),t.registerLayout($h("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",a)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,l1("line"))}var O5=_e(),$o=_e(),lr={estimate:1,determine:2};function Su(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function R5(t,e){var r=t.getLabelModel().get("customValues");if(r){var a=t.scale;return{labels:K(u1(r,a),function(n,i){return{formattedLabel:xu(t)(n,i),rawLabel:a.getLabel(n),tick:n}})}}return t.type==="category"?N5(t,e):z5(t)}function B5(t,e,r){var a=t.scale,n=t.getTickModel().get("customValues");return n?{ticks:u1(n,a)}:t.type==="category"?F5(t,e):{ticks:a.getTicks(r)}}function u1(t,e){var r=e.getExtent(),a=[];return A(t,function(n){n=e.parse(n),n>=r[0]&&n<=r[1]&&a.push(n)}),hf(a,QD,null),nf(a),K(a,function(n){return{value:n}})}function N5(t,e){var r=t.getLabelModel(),a=p1(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:a}function p1(t,e,r){var a=V5(t),n=Gh(e),i=r.kind===lr.estimate;if(!i){var o=f1(a,n);if(o)return o}var s,l;re(n)?s=Tu(t,n,!1):(l=n==="auto"?U5(t,r):n,s=Tu(t,l,!1));var u={labels:s,labelCategoryInterval:l};return i?r.out.noPxChangeTryDetermine.push(function(){return Yh(a,n,u),!0}):Yh(a,n,u),u}function F5(t,e){var r=H5(t),a=Gh(e),n=f1(r,a);if(n)return n;var i,o;if((!e.get("show")||t.scale.isBlank())&&(i=[]),re(a))i=Tu(t,a,!0);else if(a==="auto"){var s=p1(t,t.getLabelModel(),Su(lr.determine));o=s.labelCategoryInterval,i=K(s.labels,function(l){return l.tick})}else o=a,i=Tu(t,o,!0);return Yh(r,a,{ticks:i,tickCategoryInterval:o})}function z5(t){var e=t.scale.getTicks(),r=xu(t);return{labels:K(e,function(a,n){return{formattedLabel:r(a,n),rawLabel:t.scale.getLabel(a),tick:a}})}}var H5=c1("axisTick"),V5=c1("axisLabel");function c1(t){return function(r){return $o(r)[t]||($o(r)[t]={list:[]})}}function f1(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function Yh(t,e,r){return t.list.push({key:e,value:r}),r}function U5(t,e){if(e.kind===lr.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return $o(t).autoInterval=r,!0}),r}var a=$o(t).autoInterval;return a??($o(t).autoInterval=t.calculateCategoryInterval(e))}function G5(t,e){var r=e.kind,a=$5(t),n=xu(t),i=(a.axisRotate-a.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,p=40;l>p&&(u=Math.max(1,Math.floor(l/p)));for(var c=s[0],f=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(f*Math.cos(i)),d=Math.abs(f*Math.sin(i)),v=0,m=0;c<=s[1];c+=u){var g=0,y=0,b=xm(n({value:c}),a.font,"center","top");g=b.width*1.3,y=b.height*1.3,v=Math.max(v,g,7),m=Math.max(m,y,7)}var k=v/h,w=m/d;isNaN(k)&&(k=1/0),isNaN(w)&&(w=1/0);var _=Math.max(0,Math.floor(Math.min(k,w)));if(r===lr.estimate)return e.out.noPxChangeTryDetermine.push(ge(W5,null,t,_,l)),_;var x=h1(t,_,l);return x??_}function W5(t,e,r){return h1(t,e,r)==null}function h1(t,e,r){var a=O5(t.model),n=t.getExtent(),i=a.lastAutoInterval,o=a.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-e)<=1&&Math.abs(o-r)<=1&&i>e&&a.axisExtent0===n[0]&&a.axisExtent1===n[1])return i;a.lastTickCount=r,a.lastAutoInterval=e,a.axisExtent0=n[0],a.axisExtent1=n[1]}function $5(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Tu(t,e,r){var a=xu(t),n=t.scale,i=[],o=re(e);return Uk(n,o?0:e,function(s,l){var u=n.getLabel(s);if(o){var p=!!e(s.value,u);if(s.offInterval=!p,!p&&!l)return}i.push(r?s:{formattedLabel:a(s),rawLabel:u,tick:s})}),i}var Cu=_e();function Y5(t){Cu(t).prepare={}}function K5(t){Cu(t).fullUpdate={}}function X5(t){return Cu(t).prepare}function hi(t){return Cu(t).fullUpdate}var q5=Wy(),Kh="|&",di=_e(),d1=-2,j5=-1,Z5=_e();function v1(t,e){var r=t.model,a=di(hi(r.ecModel)).keyed,n=a&&a.get(e);return n&&n.get(r.uid)}function Q5(t,e){return m1(v1(t,e))}function J5(t,e){var r=[];return g1(t.model.ecModel,function(a){for(var n=0;n<e.length;n++)e[n]&&a.serByIdx[e[n].seriesIndex]&&r.push(m1(a))}),r}function g1(t,e){var r=di(hi(t)).keyed;r&&r.each(function(a,n){a.each(function(i,o){e(i,n,o)})})}function m1(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function eE(t,e){var r=t.model.ecModel,a=di(hi(r)).axSer;a&&Xh(r,a.get(t.model.uid),e)}function y1(t,e,r){var a=v1(t,e);a&&Xh(t.model.ecModel,a.sers,r)}function Xh(t,e,r){if(e)for(var a=0;a<e.length;a++){var n=e[a];t.isSeriesFiltered(n)||r(n)}}function tE(t,e,r){var a=di(hi(t)).keyed,n=a&&a.get(e);n&&n.each(function(i){r(i.axis)})}function b1(t,e){var r=t.model,a=di(hi(r.ecModel)).keys;a&&A(a.get(r.uid),function(n){e(n)})}function rE(t){var e=Z5(X5(t)),r=e.keyed||(e.keyed=ae());g1(t,function(a,n,i){var o=r.get(n)||r.set(n,ae()),s=o.get(i)||o.set(i,{});a.metrics.liPosMinGap&&k1.liPosMinGap(t,a,s)})}function aE(t,e){k1[t]=e}var k1={};function qh(t,e,r){if(t){var a=e.ecModel,n=di(hi(a)),i=t.model.uid,o=n.axSer||(n.axSer=ae()),s=o.get(i)||o.set(i,[]);s.push(e);var l=e.subType,u=e.getBaseAxis()===t,p=Zh.get(jh(l,u,r))||Zh.get(jh(l,u,null));if(p){var c=n.keyed||(n.keyed=ae()),f=n.keys||(n.keys=ae()),h=p.key,d=c.get(h)||c.set(h,ae()),v=d.get(i);v||(v=d.set(i,{axis:t,sers:[],serByIdx:[]}),v.metrics=p.getMetrics(t),(f.get(i)||f.set(i,[])).push(h)),v.sers.push(e),v.serByIdx[e.seriesIndex]=e}}}function jh(t,e,r){return t+Kh+Z(e,!0)+Kh+(r||"")}function nE(t,e){var r=jh(e.seriesType,e.baseAxis,e.coordSysType);Zh.set(r,e),q5(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:rE})})}var Zh=ae(),iE=.8;function vi(t,e){e=e||{};var r={w:NaN,w2:NaN},a=t.scale,n=e.fromStat,i=e.min,o=ZM(a);Ft(o)||(o=NaN);var s=t.getExtent(),l=Ve(s[1]-s[0]);return sr(a)?oE(r,t,o,l):n&&sE(r,t,o,l,n),i!=null&&(r.w=Ft(r.w)?ye(i,r.w):i),r}function oE(t,e,r,a){var n=e.onBand,i=r+(n?1:0);i===0&&(i=1),t.w=a/i,!n&&r&&a&&(t.w2=t.w*r/a)}function sE(t,e,r,a,n){var i=!1,o=-1/0;A(n.key?[Q5(e,n.key)]:J5(e,n.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),i=!1):l===d1&&(i=!0))}),Ft(r)&&r>0&&Ft(o)?(t.w=a/r*o,t.w2=o):i&&(t.w=a*iE,t.w2=t.w*r/a)}var w1=[0,1],_1=(function(){function t(e,r,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=a||[0,0]}return t.prototype.contain=function(e){var r=this._extent,a=Math.min(r[0],r[1]),n=Math.max(r[0],r[1]);return e>=a&&e<=n},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var a=this._extent;a[0]=e,a[1]=r},t.prototype.dataToCoord=function(e,r){var a=this.scale;return e=a.normalize(a.parse(e)),Nt(e,w1,x1(this),r)},t.prototype.coordToData=function(e,r){var a=Nt(e,x1(this),w1,r);return this.scale.scale(a)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),a=B5(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),n=K(a.ticks,function(s){return{coord:this.dataToCoord(Wo(this.scale,s)),tick:s}},this),i=r.get("alignWithLabel"),o=lE(this,n,i);return K(n,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(sr(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var a=this.scale.getMinorTicks(r),n=K(a,function(i){return K(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},t.prototype.getViewLabels=function(e){return e=e||Su(lr.determine),R5(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return vi(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||Su(lr.determine),G5(this,e)},t})();function x1(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],a=r/t.scale.count()/2;e[0]+=a,e[1]-=a}return e}function lE(t,e,r){var a=e.length;if(!t.onBand||r||!a)return!1;var n=vi(t).w;if(!n)return!1;A(e,function(s){s.coord-=n/2});var i=t.scale.getExtent(),o=e[a-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+n,tick:{value:i[1]+1}}),!0}var uE=(function(t){V(e,t);function e(r,a,n,i,o){var s=t.call(this,r,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),r&&a[0]>a[1]&&a.reverse(),a},e.prototype.pointToData=function(r,a){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),a)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(_1),P1=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],pE=1,Du=2,S1=pE|Du;function Au(t,e,r){r=r||S1,e?t.dirty|=r:t.dirty&=~r}function T1(t,e){return e=e||S1,t.dirty==null||!!(t.dirty&e)}function Or(t){if(t)return T1(t)&&C1(t,t.label,t),t}function C1(t,e,r){var a=e.getComputedTransform();t.transform=$f(t.transform,a);var n=t.localRect=So(t.localRect,e.getBoundingRect()),i=e.style,o=i.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,p=i.__marginType;p==null&&u&&(o=u,p=ri.textMargin);for(var c=0;c<4;c++)Qh[c]=p===ri.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;p===ri.textMargin&&Vl(n,Qh,!1,!1);var f=t.rect=So(t.rect,n);return a&&f.applyTransform(a),p===ri.minMargin&&Vl(f,Qh,!1,!1),t.axisAligned=Wf(a),(t.label=t.label||{}).ignore=e.ignore,Au(t,!1),Au(t,!0,Du),t}var Qh=[0,0,0,0];function cE(t,e,r){return t.transform=$f(t.transform,r),t.localRect=So(t.localRect,e),t.rect=So(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=Wf(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function fE(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var a=t.rect;a&&(a.x+=e.x,a.y+=e.y);var n=t.obb;n&&n.fromBoundingRect(t.localRect,r)}}function D1(t,e){for(var r=0;r<P1.length;r++){var a=P1[r];t[a]==null&&(t[a]=e[a])}return Or(t)}function A1(t){var e=t.obb;return(!e||T1(t,Du))&&(t.obb=e=e||new L0,e.fromBoundingRect(t.localRect,t.transform),Au(t,!1,Du)),e}function hE(t,e,r,a,n){var i=t.length,o=fa[e],s=ti[e];if(i<2)return!1;t.sort(function(x,T){return x.rect[o]-T.rect[o]});for(var l=0,u,p=!1,c=0;c<i;c++){var f=t[c],h=f.rect;u=h[o]-l,u<0&&(h[o]-=u,f.label[o]-=u,p=!0),l=h[o]+h[s]}var d=t[0],v=t[i-1],m,g;y(),m<0&&w(-m,.8),g<0&&w(g,.8),y(),b(m,g,1),b(g,m,-1),y(),m<0&&_(-m),g<0&&_(g);function y(){m=d.rect[o]-r,g=a-v.rect[o]-v.rect[s]}function b(x,T,C){if(x<0){var P=Math.min(T,-x);if(P>0){k(P*C,0,i);var S=P+x;S<0&&w(-S*C,1)}else w(-x*C,1)}}function k(x,T,C){x!==0&&(p=!0);for(var P=T;P<C;P++){var S=t[P],L=S.rect;L[o]+=x,S.label[o]+=x}}function w(x,T){for(var C=[],P=0,S=1;S<i;S++){var L=t[S-1].rect,D=Math.max(t[S].rect[o]-L[o]-L[s],0);C.push(D),P+=D}if(P){var M=Math.min(Math.abs(x)/P,T);if(x>0)for(var S=0;S<i-1;S++){var I=C[S]*M;k(I,0,S+1)}else for(var S=i-1;S>0;S--){var I=C[S-1]*M;k(-I,S,i)}}}function _(x){var T=x<0?-1:1;x=Math.abs(x);for(var C=Math.ceil(x/(i-1)),P=0;P<i-1;P++)if(T>0?k(C,0,P+1):k(-C,i-P-1,i),x-=C,x<=0)return}return p}function dE(t){var e=[];t.sort(function(u,p){return(p.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||p.priority-u.priority});function r(u){if(!u.ignore){var p=u.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}u.ignore=!0}for(var a=0;a<t.length;a++){var n=Or(t[a]);if(!n.label.ignore){for(var i=n.label,o=n.labelLine,s=!1,l=0;l<e.length;l++)if(Jh(n,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(i),o&&r(o)):e.push(n)}}}function Jh(t,e,r,a){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,a)?!1:t.axisAligned&&e.axisAligned?!0:A1(t).intersect(A1(e),r,a)}var vE=null;function Lu(){return vE}var gE="expandAxisBreak",wa=Math.PI,mE=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],yE=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],dn=_e(),L1=_e(),M1=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,a=e.componentIndex,n=this.recordMap,i=n[r]||(n[r]=[]);return i[a]||(i[a]={ready:{}})},t})();function bE(t,e,r,a){var n=r.axis,i=e.ensureRecord(r),o=[],s,l=td(t.axisName)&&fi(t.nameLocation);A(a,function(d){var v=Or(d);if(!(!v||v.label.ignore)){o.push(v);var m=i.transGroup;l&&(m.transform?ji(Yo,m.transform):Xi(Yo),v.transform&&qi(Yo,Yo,v.transform),oe.copy(Mu,v.localRect),Mu.applyTransform(Yo),s?s.union(Mu):oe.copy(s=new oe(0,0,0,0),Mu))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",p=i.transGroup[u];if(o.sort(function(d,v){return Math.abs(d.label[u]-p)-Math.abs(v.label[u]-p)}),l&&s){var c=n.getExtent(),f=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-f;s.union(new oe(f,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}var Yo=wr(),Mu=new oe(0,0,0,0),E1=function(t,e,r,a,n,i){if(fi(t.nameLocation)){var o=i.stOccupiedRect;o&&I1(cE({},o,i.transGroup.transform),a,n)}else O1(i.labelInfoList,i.dirVec,a,n)};function I1(t,e,r){var a=new ie;Jh(t,e,a,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&fE(e,a)}function O1(t,e,r,a){for(var n=ie.dot(a,e)>=0,i=0,o=t.length;i<o;i++){var s=t[n?i:o-1-i];s.label.ignore||I1(s,r,a)}}var Xr=(function(){function t(e,r,a,n){this.group=new Me,this._axisModel=e,this._api=r,this._local={},this._shared=n||new M1(E1),this._resetCfgDetermined(a)}return t.prototype.updateCfg=function(e){var r=this._cfg.raw;r.position=e.position,r.labelOffset=e.labelOffset,this._resetCfgDetermined(r)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,a=r.getDefaultOption?r.getDefaultOption():{},n=Z(e.axisName,r.get("name")),i=r.get("nameMoveOverlap");(i==null||i==="auto")&&(i=Z(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:Z(e.nameDirection,1),tickDirection:Z(e.tickDirection,1),labelDirection:Z(e.labelDirection,1),labelOffset:Z(e.labelOffset,0),silent:Z(e.silent,!0),axisName:n,nameLocation:Da(r.get("nameLocation"),a.nameLocation,"end"),shouldNameMoveOverlap:td(n)&&i,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new Me({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new ie(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var a=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),A(kE,function(n){e[n]&&wE[n](a._cfg,a._local,a._shared,a._axisModel,a.group,a._transformGroup,a._api,r||{})}),this},t.innerTextLayout=function(e,r,a){var n=Ly(r-e),i,o;return kl(n)?(o=a>0?"top":"bottom",i="center"):kl(n-wa)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<wa?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),kE=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],wE={axisLine:function(t,e,r,a,n,i,o){var s=a.get(["axisLine","show"]);if(s==="auto"&&(s=!0,t.raw.axisLineAutoShow!=null&&(s=!!t.raw.axisLineAutoShow)),!!s){var l=a.axis.getExtent(),u=i.transform,p=[l[0],0],c=[l[1],0],f=p[0]>c[0];u&&(Lt(p,p,u),Lt(c,c,u));var h=H({lineCap:"round"},a.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(a.get(["axisLine","breakLine"])&&nu(a.axis.scale))Lu().buildAxisBreakLine(a,n,i,d);else{var v=new Er(H({shape:{x1:p[0],y1:p[1],x2:c[0],y2:c[1]}},d));Po(v.shape,v.style.lineWidth),v.anid="line",n.add(v)}var m=a.get(["axisLine","symbol"]);if(m!=null){var g=a.get(["axisLine","symbolSize"]);q(m)&&(m=[m,m]),(q(g)||be(g))&&(g=[g,g]);var y=kk(a.get(["axisLine","symbolOffset"])||0,g),b=g[0],k=g[1];A([{rotate:t.rotation+Math.PI/2,offset:y[0],r:0},{rotate:t.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((p[0]-c[0])*(p[0]-c[0])+(p[1]-c[1])*(p[1]-c[1]))}],function(w,_){if(m[_]!=="none"&&m[_]!=null){var x=Ir(m[_],-b/2,-k/2,b,k,h.stroke,!0),T=w.r+w.offset,C=f?c:p;x.attr({rotation:w.rotate,x:C[0]+T*Math.cos(t.rotation),y:C[1]-T*Math.sin(t.rotation),silent:!0,z2:11}),n.add(x)}})}}},axisTickLabelEstimate:function(t,e,r,a,n,i,o,s){var l=N1(e,n,s);l&&R1(t,e,r,a,n,i,o,lr.estimate)},axisTickLabelDetermine:function(t,e,r,a,n,i,o,s){var l=N1(e,n,s);l&&R1(t,e,r,a,n,i,o,lr.determine);var u=SE(t,n,i,a);PE(t,e.labelLayoutList,u),TE(t,n,i,a,t.tickDirection)},axisName:function(t,e,r,a,n,i,o,s){var l=r.ensureRecord(a);e.nameEl&&(n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=t.axisName;if(td(u)){var p=t.nameLocation,c=t.nameDirection,f=a.getModel("nameTextStyle"),h=a.get("nameGap")||0,d=a.axis.getExtent(),v=a.axis.inverse?-1:1,m=new ie(0,0),g=new ie(0,0);p==="start"?(m.x=d[0]-v*h,g.x=-v):p==="end"?(m.x=d[1]+v*h,g.x=v):(m.x=(d[0]+d[1])/2,m.y=t.labelOffset+c*h,g.y=c);var y=wr();g.transform(nc(y,y,t.rotation));var b=a.get("nameRotate");b!=null&&(b=b*wa/180);var k,w;fi(p)?k=Xr.innerTextLayout(t.rotation,b??t.rotation,c):(k=_E(t.rotation,p,b||0,d),w=t.raw.axisNameAvailableWidth,w!=null&&(w=Math.abs(w/Math.sin(k.rotation)),!isFinite(w)&&(w=null)));var _=f.getFont(),x=a.get("nameTruncate",!0)||{},T=x.ellipsis,C=Ns(t.raw.nameTruncateMaxWidth,x.maxWidth,w),P=s.nameMarginLevel||0,S=new Oe({x:m.x,y:m.y,rotation:k.rotation,silent:Xr.isLabelSilent(a),style:Gt(f,{text:u,font:_,overflow:"truncate",width:C,ellipsis:T,fill:f.getTextColor()||a.get(["axisLine","lineStyle","color"]),align:f.get("align")||k.textAlign,verticalAlign:f.get("verticalAlign")||k.textVerticalAlign}),z2:1});if(Ul({el:S,componentModel:a,itemName:u}),S.__fullText=u,S.anid="name",a.get("triggerEvent")){var L=Xr.makeAxisEventDataBase(a);L.targetType="axisName",L.name=u,ce(S).eventData=L}i.add(S),S.updateTransform(),e.nameEl=S;var D=l.nameLayout=Or({label:S,priority:S.z2,defaultAttr:{ignore:S.ignore},marginDefault:fi(p)?mE[P]:yE[P]});if(l.nameLocation=p,n.add(S),S.decomposeTransform(),t.shouldNameMoveOverlap&&D){var M=r.ensureRecord(a);r.resolveAxisNameOverlap(t,r,a,D,g,M)}}}};function R1(t,e,r,a,n,i,o,s){F1(e)||CE(t,e,n,s,a,o);var l=e.labelLayoutList;DE(t,a,l,i),ME(a,t.rotation,l);var u=t.optionHideOverlap;xE(a,l,u),u&&dE(Xe(l,function(p){return p&&!p.label.ignore})),bE(t,r,a,l)}function _E(t,e,r,a){var n=Ly(r-t),i,o,s=a[0]>a[1],l=e==="start"&&!s||e!=="start"&&s;return kl(n-wa/2)?(o=l?"bottom":"top",i="center"):kl(n-wa*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<wa*1.5&&n>wa/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function xE(t,e,r){var a=t.axis,n=t.get(["axisLabel","customValues"]);if(b5(a))return;function i(u,p,c){var f=Or(e[p]),h=Or(e[c]),d=a.scale;if(!(!f||!h)){if(u==null){if(!r&&n)return;var v=dn(f.label).labelInfo.tick;if(zh(d)&&v.notNice||sr(d)&&v.offInterval){gi(f.label);return}}if(u===!1||f.suggestIgnore){gi(f.label);return}if(h.suggestIgnore){gi(h.label);return}var m=.1;if(!r){var g=[0,0,0,0];f=D1({marginForce:g},f),h=D1({marginForce:g},h)}Jh(f,h,null,{touchThreshold:m})&&gi(u?h.label:f.label)}}var o=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),l=e.length;i(o,0,1),i(s,l-1,l-2)}function PE(t,e,r){t.showMinorTicks||A(e,function(a){if(a&&a.label.ignore)for(var n=0;n<r.length;n++){var i=r[n],o=L1(i),s=dn(a.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){gi(i);return}}})}function gi(t){t&&(t.ignore=!0)}function B1(t,e,r,a,n){for(var i=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(Lt(o,o,e),Lt(s,s,e));var p=new Er({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});Po(p.shape,p.style.lineWidth),p.anid=n+"_"+t[l].tickValue,i.push(p);var c=L1(p);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return i}function SE(t,e,r,a){var n=a.axis,i=a.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=t.tickDirection*i.get("length"),u=n.getTicksCoords(),p=B1(u,r.transform,l,pe(s.getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<p.length;c++)e.add(p[c]);return p}function TE(t,e,r,a,n){var i=a.axis,o=a.getModel("minorTick");if(!(!t.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),p=pe(l.getLineStyle(),pe(a.getModel("axisTick").getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var f=B1(s[c],r.transform,u,p,"minorticks_"+c),h=0;h<f.length;h++)e.add(f[h])}}function N1(t,e,r){if(F1(t)){var a=t.axisLabelsCreationContext,n=a.out.noPxChangeTryDetermine;if(r.noPxChange){for(var i=!0,o=0;o<n.length;o++)i=i&&n[o]();if(i)return!1}n.length&&(e.remove(t.labelGroup),ed(t,null,null,null))}return!0}function CE(t,e,r,a,n,i){var o=n.axis,s=Ns(t.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new Me;r.add(l);var u=Su(a);if(!s||o.scale.isBlank()){ed(e,[],l,u);return}var p=n.getModel("axisLabel"),c=o.getViewLabels(u),f=(Ns(t.raw.labelRotate,p.get("rotate"))||0)*wa/180,h=Xr.innerTextLayout(t.rotation,f,t.labelDirection),d=n.getCategories&&n.getCategories(!0),v=[],m=n.get("triggerEvent"),g=1/0,y=-1/0;A(c,function(k,w){var _,x=k.tick,T=k.formattedLabel,C=k.rawLabel,P=p,S=Wo(o.scale,x);if(d&&d[S]){var L=d[S];J(L)&&L.textStyle&&(P=new Ae(L.textStyle,p,n.ecModel))}var D=P.getTextColor()||n.get(["axisLine","lineStyle","color"]),M=P.getShallow("align",!0)||h.textAlign,I=Z(P.getShallow("alignMinLabel",!0),M),E=Z(P.getShallow("alignMaxLabel",!0),M),O=P.getShallow("verticalAlign",!0)||P.getShallow("baseline",!0)||h.textVerticalAlign,R=Z(P.getShallow("verticalAlignMinLabel",!0),O),B=Z(P.getShallow("verticalAlignMaxLabel",!0),O),N=10+(((_=x.time)===null||_===void 0?void 0:_.level)||0);g=Math.min(g,N),y=Math.max(y,N);var F=new Oe({x:0,y:0,rotation:0,silent:Xr.isLabelSilent(n),z2:N,style:Gt(P,{text:T,align:w===0?I:w===c.length-1?E:M,verticalAlign:w===0?R:w===c.length-1?B:O,fill:re(D)?D(o.type==="category"?C:o.type==="value"?S+"":S,w):D})});F.anid="label_"+S;var U=dn(F);if(U.labelInfo=k,U.layoutRotation=h.rotation,Ul({el:F,componentModel:n,itemName:T,formatterParamsExtra:{isTruncated:function(){return F.isTruncated},value:C,tickIndex:w}}),m){var Y=Xr.makeAxisEventDataBase(n);Y.targetType="axisLabel",Y.value=C,Y.tickIndex=w;var z=k.tick.break;if(z){var j=z.parsedBreak;Y.break={start:j.vmin,end:j.vmax}}o.type==="category"&&(Y.dataIndex=S),ce(F).eventData=Y,z&&LE(n,i,F,z)}v.push(F),l.add(F)});var b=K(v,function(k){return{label:k,priority:dn(k).labelInfo.tick.break?k.z2+(y-g+1):k.z2,defaultAttr:{ignore:k.ignore}}});ed(e,b,l,u)}function F1(t){return!!t.labelLayoutList}function ed(t,e,r,a){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=a}function DE(t,e,r,a){var n=e.get(["axisLabel","margin"]);A(r,function(i,o){var s=Or(i);if(s){var l=s.label,u=dn(l);s.suggestIgnore=l.ignore,l.ignore=!1,to(qr,AE);var p=e.axis;qr.x=p.dataToCoord(Wo(p.scale,u.labelInfo.tick)),qr.y=t.labelOffset+t.labelDirection*n,qr.rotation=u.layoutRotation,a.add(qr),qr.updateTransform(),a.remove(qr),qr.decomposeTransform(),to(l,qr),l.markRedraw(),Au(s,!0),Or(s)}})}var qr=new Ie,AE=new Ie;function td(t){return!!t}function LE(t,e,r,a){r.on("click",function(n){var i={type:gE,breaks:[{start:a.parsedBreak.breakOption.start,end:a.parsedBreak.breakOption.end}]};i[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(i)})}function ME(t,e,r){var a=ct();if(a){var n=a.retrieveAxisBreakPairs(r,function(o){return o&&dn(o.label).labelInfo.tick.break},!0),i=t.get(["breakLabelLayout","moveOverlap"],!0);(i===!0||i==="auto")&&A(n,function(o){Lu().adjustBreakLabelPair(t.axis.inverse,e,[Or(r[o[0]]),Or(r[o[1]])])})}}function Eu(t,e,r){r=r||{};var a=e.axis,n={},i=a.getAxesOnZeroOf()[0],o=a.position,s=i?"onZero":o,l=a.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],p={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,f=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(i){var h=i.toGlobalCoord(i.dataToCoord(0));f[p.onZero]=Math.max(Math.min(h,f[1]),f[0])}n.position=[l==="y"?f[p[s]]:u[0],l==="x"?f[p[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=d[o],n.labelOffset=i?f[p[o]]-f[p.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Ns(r.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var v=e.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-v:v,n.z2=1,n}function EE(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function IE(t){var e={xAxisModel:null,yAxisModel:null};return A(e,function(r,a){var n=a.replace(/Model$/,""),i=t.getReferringComponents(n,zt).models[0];e[a]=i}),e}function OE(t,e,r,a,n,i){for(var o=Eu(t,r),s=!1,l=!1,u=0;u<e.length;u++)Hk(e[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new Xr(r,a,o,n)}function RE(t,e,r){var a=Eu(e,r);t.updateCfg(a)}var BE=_e(),z1=1,NE=3,H1=(function(){function t(e,r,a,n,i){var o=sr(e),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var p=a.slice();(mu(e)||ci(e)||zh(e))&&(Uy(p,Ko(e,r.get("dataMin",!0))),Gy(p,Ko(e,r.get("dataMax",!0)))),XD(p)||(p[0]=p[1]=NaN);var c=[],f=[!1,!1],h=r.get("min",!0);h==="dataMin"?(c[0]=p[0],f[0]=!0):(c[0]=Ko(e,re(h)?h({min:p[0],max:p[1]}):h),f[0]=c[0]!=null);var d=r.get("max",!0);d==="dataMax"?(c[1]=p[1],f[1]=!0):(c[1]=Ko(e,re(d)?d({min:p[0],max:p[1]}):d),f[1]=c[1]!=null);var v=FE(e,r),m=o?null:p[1]-p[0]||Math.abs(p[0]);c[0]==null&&(c[0]=o?l?p[0]:s?0:NaN:p[0]-v[0]*m),c[1]==null&&(c[1]=o?l?p[1]:s?s-1:NaN:p[1]+v[1]*m),!Ur(c[0])&&(c[0]=NaN),!Ur(c[1])&&(c[1]=NaN);var g=l||$i(c[0])||$i(c[1])||o&&!s,y=mu(e),b=y&&r.needIncludeZero&&r.needIncludeZero();b&&(c[0]>0&&c[1]>0&&!f[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!f[1]&&(c[1]=0));var k=!1;c[0]>c[1]&&(c.reverse(),k=!0);var w=Ko(e,r.get("startValue",!0)),_=w!=null;!Ft(w)&&n&&(w=e.getDefaultStartValue?e.getDefaultStartValue():0),Ft(w)&&(_||!y||b)&&(w<c[0]&&!f[0]?(c[0]=w,f[0]=!0):w>c[1]&&!f[1]&&(c[1]=w,f[1]=!0));var x=this._i={scale:e,dataMM:p,noZoomEffMM:c,zoomMM:[],fixMM:f,zoomFixMM:[!1,!1],startValue:w,isBlank:g,incl0:b,tggAxInv:k,ctnShp:i};V1(x,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,a=e.noZoomEffMM,n=e.zoomFixMM,i=e.fixMM,o={fixMM:i,zoomFixMM:n,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:a.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],i[0]=n[0]=!0),r[1]!=null&&(s[1]=r[1],i[1]=n[1]=!0),V1(e,s),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(e,r){this._i.zoomMM[e]=r},t})();function V1(t,e){var r=t.scale,a=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],a),e[1]=r.sanitize(e[1],a),qD(e))}function Ko(t,e){return e==null?null:$i(e)?NaN:t.parse(e)}function FE(t,e){var r;if(sr(t))r=[0,0];else{var a=e.get("boundaryGap");typeof a=="boolean"&&(a=null),r=W(a)?a:[a,a]}return[U1(r[0]),U1(r[1])]}function U1(t){return Ba(typeof t=="boolean"?0:t,1)||0}function G1(t){var e=BE(t.scale);return e.extent||(e.extent=Ht()),e}function zE(t,e){G1(t).dimIdxInCoord=e.get(t.dim)}function W1(t,e){var r=t.scale,a=t.model,n=t.dim;r.rawExtentInfo||HE(r,t,n,a,e)}function HE(t,e,r,a,n){var i=G1(e),o=i.extent,s=!1;eE(e,function(p){if(p.boxCoordinateSystem){var c=Ob(p).coord,f=i.dimIdxInCoord;if(f>=0){if(W(c)){var h=c[f];h!=null&&!W(h)&&ff(o,t.parse(h))}}}else if(p.coordinateSystem){var d=p.getData();if(d){var v=t.getFilter?t.getFilter():null;A(k5(d,r),function(m){KD(o,d.getApproximateExtent(m,v))})}p.__requireStartValue&&p.__requireStartValue(e)&&(s=!0)}});var l=GE(t,e,a),u=new H1(t,a,o,s,l);$1(t,u,n),i.extent=null}function VE(t,e){var r=t.scale;$1(r,new H1(r,t.model,e,!1,!1),NE)}function $1(t,e,r){t.rawExtentInfo=e,e.from=r}function UE(t,e){rd.set(t,e)}var rd=ae();function Y1(t,e,r,a,n){t.rawExtentInfo||VE({scale:t,model:e},Ht());var i=t.rawExtentInfo.makeFinal(),o=i.effMM;return t.setExtent(o[0],o[1]),t.setBlank(i.isBlank),a&&i.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(a.inverse=!a.inverse),i}function GE(t,e,r){var a=t1(t,r),n=r.get("containShape",!0);if(n==null&&!a&&(n=!0),!n)return!1;var i=!1;return b1(e,function(o){i=!!rd.get(o)||i}),i}function WE(t,e,r,a){if(r.ctnShp){var n;if(b1(t,function(s){var l=rd.get(s);if(l){var u=l(t,a);u&&(n=n||[0,0],Uy(n,u[0]),Gy(n,u[1]),m5(t))}}),!!n){var i=e.getExtent();if(sr(e))t.onBand||e.setExtent2(Vo,et(i[0],i[0]+n[0]),ye(i[1],i[1]+n[1]));else{var o=i.slice();r.zoomFixMM[0]||(o[0]=et(o[0],e.transformOut(e.transformIn(o[0],null)+n[0],null))),r.zoomFixMM[1]||(o[1]=ye(o[1],e.transformOut(e.transformIn(o[1],null)+n[1],null))),(o[0]<i[0]||o[1]>i[1])&&e.setExtent2(Vo,o[0],o[1])}}}}function $E(){aE("liPosMinGap",YE)}function YE(t,e,r){var a=ae(),n=r.serUids,i=r.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),p=l.getFilter?l.getFilter():null,c=yb(p);function f(b){Xh(t,e.sers,function(k){var w=k.getRawData(),_=w.getDimensionIndex(w.mapDimension(s.dim));_>=0&&b(_,k,w.getStore())})}var h=0;if(f(function(b,k,w){a.set(k.uid,1),(!n||!n.hasKey(k.uid))&&(o=!0),h+=w.count()}),(!n||n.keys().length!==a.keys().length)&&(o=!0),!o&&i!=null){e.liPosMinGap=i;return}Oh(vn,h);var d=0;f(function(b,k,w){for(var _=0,x=w.count();_<x;++_){var T=w.get(b,_);isFinite(T)&&(!p||bb(c,T))&&(u&&(T=l.transformIn(T,null)),vn.arr[d++]=T)}});var v=vn.typed?vn.arr.subarray(0,d):(vn.arr.length=d,vn.arr);vn.typed?v.sort():nf(v);for(var m=1/0,g=1;g<d;++g){var y=v[g]-v[g-1];y>0&&y<m&&(m=y)}r.liPosMinGap=e.liPosMinGap=Ft(m)?m:d>0?d1:j5,r.serUids=a}var vn=Oh({ctor:BM},50);function KE(t){return function(e,r){var a=vi(e,{fromStat:{key:t}});if(Ft(a.w2))return[-a.w2/2,a.w2/2]}}function Iu(t,e){return t+Kh+e}function XE(t){return $E(),{liPosMinGap:!sr(t.scale)}}var mi="bar";function qE(t,e,r,a){nE(t,{key:e,seriesType:r,coordSysType:a,getMetrics:XE})}function jE(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var K1={left:0,right:0,top:0,bottom:0},Ou=["25%","25%"],jr="cartesian2d",ZE=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,a){var n=zo(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&r.outerBounds&&va(r.outerBounds,n)},e.prototype.mergeOption=function(r,a){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&va(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:K1,outerBoundsContain:"all",outerBoundsClampWidth:Ou[0],outerBoundsClampHeight:Ou[1],backgroundColor:$.color.transparent,borderWidth:1,borderColor:$.color.neutral30},e})(ke),QE=Wy(),JE="__ec_stack_";function X1(t){return t.get("stack")||JE+t.seriesIndex}function e4(t,e){var r=t4(t,e);return r.columnMap=r4(r),r}function t4(t,e){var r=Iu(e,jr),a=[],n=vi(t,{fromStat:{key:r},min:1});return y1(t,r,function(i){a.push({barWidth:ee(i.get("barWidth"),n.w),barMaxWidth:ee(i.get("barMaxWidth"),n.w),barMinWidth:ee(i.get("barMinWidth")||(q1(i)?.5:1),n.w),barGap:i.get("barGap"),barCategoryGap:i.get("barCategoryGap"),defaultBarGap:i.get("defaultBarGap"),stackId:X1(i)})}),{bandWidthResult:n,seriesInfo:a}}function r4(t){var e=t.bandWidthResult.w,r=e,a=0,n,i,o=[],s={};A(t.seriesInfo,function(v,m){m||(i=v.defaultBarGap||0);var g=v.stackId;st(s,g)||a++;var y=s[g];y||(y=s[g]={width:0,maxWidth:0},o.push(g));var b=v.barWidth;b&&!y.width&&(y.width=b,b=et(r,b),r-=b);var k=v.barMaxWidth;k&&(y.maxWidth=k);var w=v.barMinWidth;w&&(y.minWidth=w);var _=v.barGap;_!=null&&(i=_);var x=v.barCategoryGap;x!=null&&(n=x)}),n==null&&(n=ye(35-o.length*4,15)+"%");var l=ee(n,e),u=ee(i,1),p=(r-l)/(a+(a-1)*u);p=ye(p,0),A(o,function(v){var m=s[v],g=m.maxWidth,y=m.minWidth;if(m.width){var b=m.width;g&&(b=et(b,g)),y&&(b=ye(b,y)),m.width=b,r-=b+u*b,a--}else{var b=p;g&&g<b&&(b=et(g,r)),y&&y>b&&(b=y),b!==p&&(m.width=b,r-=b+u*b,a--)}}),p=(r-l)/(a+(a-1)*u),p=ye(p,0);var c=0,f;A(o,function(v){var m=s[v];m.width||(m.width=p),f=m,c+=m.width*(1+u)}),f&&(c-=f.width*u);var h={},d=-c/2;return A(o,function(v){var m=s[v];h[v]=h[v]||{bandWidth:e,offset:d,width:m.width},d+=m.width*(1+u)}),h}function a4(t){return{seriesType:t,overallReset:function(e){var r=Iu(t,jr);tE(e,r,function(a){var n=e4(a,t);y1(a,r,function(i){var o=n.columnMap[X1(i)];i.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function n4(t){return{seriesType:t,plan:Bh(),reset:function(e){if(EE(e)){var r=e.getData(),a=e.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getDimensionIndex(r.mapDimension(n.dim)),l=e.get("showBackground",!0),u=r.mapDimension(i.dim),p=r.getCalculationInfo("stackResultDimension"),c=si(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),h=i.toGlobalCoord(i.dataToCoord(jE(i))),d=q1(e),v=e.get("barMinHeight")||0,m=p&&r.getDimensionIndex(p),g=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(b,k){for(var w=b.count,_=d&&Kr(w*3),x=d&&l&&Kr(w*3),T=d&&Kr(w),C=a.master.getRect(),P=f?C.width:C.height,S,L=k.getStore(),D=0;(S=b.next())!=null;){var M=L.get(c?m:o,S),I=L.get(s,S),E=h,O=void 0;c&&(O=+M-L.get(o,S));var R=void 0,B=void 0,N=void 0,F=void 0;if(f){var U=a.dataToPoint([M,I]);c&&(E=a.dataToPoint([O,I])[0]),R=E,B=U[1]+y,N=U[0]-E,F=g,Ve(N)<v&&(N=(N<0?-1:1)*v)}else{var U=a.dataToPoint([I,M]);c&&(E=a.dataToPoint([I,O])[1]),R=U[0]+y,B=E,N=g,F=U[1]-E,Ve(F)<v&&(F=(F<=0?-1:1)*v)}d?(_[D]=R,_[D+1]=B,_[D+2]=f?N:F,x&&(x[D]=f?C.x:R,x[D+1]=f?B:C.y,x[D+2]=P),T[S]=S):k.setItemLayout(S,{x:R,y:B,width:N,height:F}),D+=3}d&&k.setLayout({largePoints:_,largeDataIndices:T,largeBackgroundPoints:x,valueAxisHorizontal:f})}}}}}}function q1(t){return t.pipelineContext&&t.pipelineContext.large}function i4(t){return KE(Iu(t,jr))}function o4(t){QE(t,function(){function e(r){var a=Iu(r,jr);qE(t,a,r,jr),UE(a,i4(r))}e("bar"),e("pictorialBar")})}var ad=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,a){return Jl(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(r),s=i.dataToPoint(o);if(n)A(i.getAxes(),function(f,h){if(f.type==="category"&&a!=null){var d=f.getTicksCoords(),v=f.getTickModel().get("alignWithLabel"),m=o[h],g=a[h]==="x1"||a[h]==="y1";if(g&&!v&&(m+=1),d.length<2)return;if(d.length===2){s[h]=f.toGlobalCoord(f.getExtent()[g?1:0]);return}for(var y=void 0,b=void 0,k=1,w=0;w<d.length;w++){var _=d[w].coord,x=w===d.length-1?d[w-1].tickValue+k:d[w].tickValue;if(x===m){b=_;break}else if(x<m)y=_;else if(y!=null&&x>m){b=(_+y)/2;break}w===1&&(k=x-d[0].tickValue)}b==null&&(y?y&&(b=d[d.length-1].coord):b=d[0].coord),s[h]=f.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),p=l.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=u+p/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(r){return this.getBaseAxis()!==r},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(ft);ft.registerClass(ad);var s4=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return Jl(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(r,a){var n=Yy(this,r,a);return n.progressiveRender&&(n.large=!0),n},e.prototype.brushSelector=function(r,a,n){return n.rect(a.getItemLayout(r))},e.type="series."+mi,e.dependencies=["grid","polar"],e.defaultOption=Rb(ad.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:$.color.primary,borderWidth:2}},realtimeSort:!1}),e})(ad),Ru="\0__throttleOriginMethod",j1="\0__throttleRate",Z1="\0__throttleType";function nd(t,e,r){var a,n=0,i=0,o=null,s,l,u,p;e=e||0;function c(){i=new Date().getTime(),o=null,t.apply(l,u||[])}var f=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];a=new Date().getTime(),l=this,u=h;var v=p||e,m=p||r;p=null,s=a-(m?n:i)-v,clearTimeout(o),m?o=setTimeout(c,v):s>=0?c():o=setTimeout(c,-s),n=a};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(h){p=h},f}function Q1(t,e,r,a){var n=t[e];if(n){var i=n[Ru]||n,o=n[Z1],s=n[j1];if(s!==r||o!==a){if(r==null||!a)return t[e]=i;n=t[e]=nd(i,r,a==="debounce"),n[Ru]=i,n[Z1]=a,n[j1]=r}return n}}function id(t,e){var r=t[e];r&&r[Ru]&&(r.clear&&r.clear(),t[e]=r[Ru])}var l4=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),Bu=(function(t){V(e,t);function e(r){var a=t.call(this,r)||this;return a.type="sausage",a}return e.prototype.getDefaultShape=function(){return new l4},e.prototype.buildPath=function(r,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,p=a.startAngle,c=a.endAngle,f=a.clockwise,h=Math.PI*2,d=f?c-p<h:p-c<h;d||(p=c-(f?h:-h));var v=Math.cos(p),m=Math.sin(p),g=Math.cos(c),y=Math.sin(c);d?(r.moveTo(v*o+n,m*o+i),r.arc(v*u+n,m*u+i,l,-Math.PI+p,p,!f)):r.moveTo(v*s+n,m*s+i),r.arc(n,i,s,p,c,!f),r.arc(g*u+n,y*u+i,l,c-Math.PI*2,c-Math.PI,!f),o!==0&&r.arc(n,i,o,c,p,f)},e})(me);function u4(t,e){e=e||{};var r=e.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return Ws(a,n,i);var s=t(o),l=n.distance!=null?n.distance:5,u=this.shape,p=u.cx,c=u.cy,f=u.r,h=u.r0,d=(f+h)/2,v=u.startAngle,m=u.endAngle,g=(v+m)/2,y=r?Math.abs(f-h)/2:0,b=Math.cos,k=Math.sin,w=p+f*b(v),_=c+f*k(v),x="left",T="top";switch(s){case"startArc":w=p+(h-l)*b(g),_=c+(h-l)*k(g),x="center",T="top";break;case"insideStartArc":w=p+(h+l)*b(g),_=c+(h+l)*k(g),x="center",T="bottom";break;case"startAngle":w=p+d*b(v)+Nu(v,l+y,!1),_=c+d*k(v)+Fu(v,l+y,!1),x="right",T="middle";break;case"insideStartAngle":w=p+d*b(v)+Nu(v,-l+y,!1),_=c+d*k(v)+Fu(v,-l+y,!1),x="left",T="middle";break;case"middle":w=p+d*b(g),_=c+d*k(g),x="center",T="middle";break;case"endArc":w=p+(f+l)*b(g),_=c+(f+l)*k(g),x="center",T="bottom";break;case"insideEndArc":w=p+(f-l)*b(g),_=c+(f-l)*k(g),x="center",T="top";break;case"endAngle":w=p+d*b(m)+Nu(m,l+y,!0),_=c+d*k(m)+Fu(m,l+y,!0),x="left",T="middle";break;case"insideEndAngle":w=p+d*b(m)+Nu(m,-l+y,!0),_=c+d*k(m)+Fu(m,-l+y,!0),x="right",T="middle";break;default:return Ws(a,n,i)}return a=a||{},a.x=w,a.y=_,a.align=x,a.verticalAlign=T,a}}function p4(t,e,r,a){if(be(a)){t.setTextConfig({rotation:a});return}else if(W(e)){t.setTextConfig({rotation:0});return}var n=t.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+o)/2,l,u=r(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:t.setTextConfig({rotation:0});return}var p=Math.PI*1.5-l;u==="middle"&&p>Math.PI/2&&p<Math.PI*1.5&&(p-=Math.PI),t.setTextConfig({rotation:p})}function Nu(t,e,r){return e*Math.sin(t)*(r?-1:1)}function Fu(t,e,r){return e*Math.cos(t)*(r?1:-1)}function Xo(t,e,r){var a=t.get("borderRadius");if(a==null)return r?{cornerRadius:0}:null;W(a)||(a=[a,a,a,a]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:K(a,function(i){return Ba(i,n)})}}var od=Math.max,sd=Math.min,c4=(function(t){V(e,t);function e(){var r=t.call(this)||this;return r.type=mi,r._isFirstFrame=!0,r}return e.prototype.render=function(r,a,n,i){this._model=r,this._removeOnRenderedListener(n),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,a,n):this._renderNormal(r,a,n,i))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,a){this._progressiveEls=[],this._incrementalRenderLarge(r,a)},e.prototype.eachRendered=function(r){Gl(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var a=r.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(r,a,n,i){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,p=u.getBaseAxis(),c;u.type==="cartesian2d"?c=p.isHorizontal():u.type==="polar"&&(c=p.dim==="angle");var f=r.isAnimationEnabled()?r:null,h=f4(r,u);h&&this._enableRealtimeSort(h,s,n);var d=r.get("clip",!0)||h,v=u.getArea();o.removeClipPath();var m=r.get("roundCap",!0),g=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),b=y.get("borderRadius")||0,k=[],w=this._backgroundEls,_=i&&i.isInitSort,x=i&&i.type==="changeAxisOrder";function T(S){var L=zu[u.type](s,S);if(!L)return null;var D=b4(u,c,L);return D.useStyle(y.getItemStyle()),u.type==="cartesian2d"?D.setShape("r",b):D.setShape("cornerRadius",b),k[S]=D,D}s.diff(l).add(function(S){var L=s.getItemModel(S),D=zu[u.type](s,S,L);if(D&&(g&&T(S),!(!s.hasValue(S)||!aw[u.type](D)))){var M=!1;d&&(M=J1[u.type](v,D));var I=ew[u.type](r,s,S,D,c,f,p.model,!1,m);h&&(I.forceLabelAnimation=!0),iw(I,s,S,L,D,r,c,u.type==="polar"),_?I.attr({shape:D}):h?tw(h,f,I,D,S,c,!1,!1):Ye(I,{shape:D},r,S),s.setItemGraphicEl(S,I),o.add(I),I.ignore=M}}).update(function(S,L){var D=s.getItemModel(S),M=zu[u.type](s,S,D);if(M){if(g){var I=void 0;w.length===0?I=T(L):(I=w[L],I.useStyle(y.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",b):I.setShape("cornerRadius",b),k[S]=I);var E=zu[u.type](s,S),O=uw(c,E,u);Re(I,{shape:O},f,S)}var R=l.getItemGraphicEl(L);if(!s.hasValue(S)||!aw[u.type](M)){o.remove(R);return}var B=!1;d&&(B=J1[u.type](v,M),B&&o.remove(R));var N=R&&(R.type==="sector"&&m||R.type==="sausage"&&!m);if(N&&(R&&Jn(R,r,L),R=null),R?ei(R):R=ew[u.type](r,s,S,M,c,f,p.model,!0,m),h&&(R.forceLabelAnimation=!0),x){var F=R.getTextContent();if(F){var U=Co(F);U.prevValue!=null&&(U.prevValue=U.value)}}else iw(R,s,S,D,M,r,c,u.type==="polar");_?R.attr({shape:M}):h?tw(h,f,R,M,S,c,!0,x):Re(R,{shape:M},r,S,null),s.setItemGraphicEl(S,R),R.ignore=B,o.add(R)}}).remove(function(S){var L=l.getItemGraphicEl(S);L&&Jn(L,r,S)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new Me);C.removeAll();for(var P=0;P<k.length;++P)C.add(k[P]);o.add(C),this._backgroundEls=k,this._data=s},e.prototype._renderLarge=function(r,a,n){this._clear(),sw(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,a){this._removeBackground(),sw(a,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var a=r.get("clip",!0)&&YM(r.coordinateSystem,!1,r),n=this.group;a?n.setClipPath(a):n.removeClipPath()},e.prototype._enableRealtimeSort=function(r,a,n){var i=this;if(a.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,r,n),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),p=u&&u.shape;return p&&Math.abs(o.isHorizontal()?p.height:p.width)||0};this._onRendered=function(){i._updateSortWithinSameData(a,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,a,n){var i=[];return r.each(r.mapDimension(a.dim),function(o,s){var l=n(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:K(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,a,n){for(var i=n.scale,o=r.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var p=r.rawIndexOf(o,i.getRawOrdinalNumber(l)),c=p<0?Number.MIN_VALUE:a(r.indexOfRawIndex(p));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(r,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,a,n,i){if(this._isOrderChangedWithinSameData(r,a,n)){var o=this._dataSort(r,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,a,n){var i=a.baseAxis,o=this._dataSort(r,i,function(s){return r.get(r.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(r,a){this._clear(this._model),this._removeOnRenderedListener(a)},e.prototype.dispose=function(r,a){this._removeOnRenderedListener(a)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var a=this.group,n=this._data;r&&r.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){Jn(i,r,ce(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=mi,e})(at),J1={cartesian2d:function(t,e){var r=e.width<0?-1:1,a=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height);var n=t.x+t.width,i=t.y+t.height,o=od(e.x,t.x),s=sd(e.x+e.width,n),l=od(e.y,t.y),u=sd(e.y+e.height,i),p=s<o,c=u<l;return e.x=p&&o>n?s:o,e.y=c&&l>i?u:l,e.width=p?0:s-o,e.height=c?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),p||c},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var a=e.r;e.r=e.r0,e.r0=a}var n=sd(e.r,t.r),i=od(e.r0,t.r0);e.r=n,e.r0=i;var o=n-i<0;if(r<0){var a=e.r;e.r=e.r0,e.r0=a}return o}},ew={cartesian2d:function(t,e,r,a,n,i,o,s,l){var u=new Ie({shape:H({},a),z2:1});if(u.__dataIndex=r,u.name="item",i){var p=u.shape,c=n?"height":"width";p[c]=0}return u},polar:function(t,e,r,a,n,i,o,s,l){var u=!n&&l?Bu:Mr,p=new u({shape:a,z2:1});p.name="item";var c=nw(n);if(p.calculateTextPosition=u4(c,{isRoundCap:u===Bu}),i){var f=p.shape,h=n?"r":"endAngle",d={};f[h]=n?a.r0:a.startAngle,d[h]=a[h],(s?Re:Ye)(p,{shape:d},i)}return p}};function f4(t,e){var r=t.get("realtimeSort",!0),a=e.getBaseAxis();if(r&&a.type==="category"&&e.type==="cartesian2d")return{baseAxis:a,otherAxis:e.getOtherAxis(a)}}function tw(t,e,r,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?Re:Ye)(r,{shape:l},e,n,null);var p=e?t.baseAxis.model:null;(o?Re:Ye)(r,{shape:u},p,n)}function rw(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var h4=["x","y","width","height"],d4=["cx","cy","r","startAngle","endAngle"],aw={cartesian2d:function(t){return!rw(t,h4)},polar:function(t){return!rw(t,d4)}},zu={cartesian2d:function(t,e,r){var a=t.getItemLayout(e);if(!a)return null;var n=r?g4(r,a):0,i=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(t,e,r){var a=t.getItemLayout(e);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function v4(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function nw(t){return(function(e){var r=e?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+r;default:return a}}})(t)}function iw(t,e,r,a,n,i,o,s){var l=e.getItemVisual(r,"style");if(s){if(!i.get("roundCap")){var p=t.shape,c=Xo(a.getModel("itemStyle"),p,!0);H(p,c),t.setShape(p)}}else{var u=a.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var f=a.getShallow("cursor");f&&t.attr("cursor",f);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?k4(n,i.coordinateSystem):w4(n,i.coordinateSystem),d=nn(a);an(t,d,{labelFetcher:i,labelDataIndex:r,defaultText:Eh(i.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=t.getTextContent();if(s&&v){var m=a.get(["label","position"]);t.textConfig.inside=m==="middle"?!0:null,p4(t,m==="outside"?h:m,nw(o),a.get(["label","rotate"]))}Z0(v,d,i.getRawValue(r),function(y){return wk(e,y)});var g=a.getModel(["emphasis"]);Wr(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),$r(t,a),v4(n)&&(t.style.fill="none",t.style.stroke="none",A(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function g4(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var a=t.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(a,n,i)}var m4=(function(){function t(){}return t})(),ow=(function(t){V(e,t);function e(r){var a=t.call(this,r)||this;return a.type="largeBar",a}return e.prototype.getDefaultShape=function(){return new m4},e.prototype.buildPath=function(r,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,p=0;p<n.length;p+=3)l[i]=u,l[o]=n[p+2],s[i]=n[p+i],s[o]=n[p+o],r.rect(s[0],s[1],l[0],l[1])},e})(me);function sw(t,e,r,a){var n=t.getData(),i=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=t.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints"),p=a?$y(t):0;if(u){var c=new ow({shape:{points:u},incremental:p,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),r&&r.push(c)}var f=new ow({shape:{points:n.getLayout("largePoints")},incremental:p,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,e.add(f),f.useStyle(n.getVisual("style")),f.style.stroke=null,ce(f).seriesIndex=t.seriesIndex,t.get("silent")||(f.on("mousedown",lw),f.on("mousemove",lw)),r&&r.push(f)}var lw=nd(function(t){var e=this,r=y4(e,t.offsetX,t.offsetY);ce(e).dataIndex=r>=0?r:null},30,!1);function y4(t,e,r){for(var a=t.baseDimIdx,n=1-a,i=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,p=0,c=i.length/3;p<c;p++){var f=p*3;if(l[a]=u,l[n]=i[f+2],s[a]=i[f+a],s[n]=i[f+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[p]}return-1}function uw(t,e,r){if(Ok(r,"cartesian2d")){var a=e,n=r.getArea();return{x:t?a.x:n.x,y:t?n.y:a.y,width:t?a.width:n.width,height:t?n.height:a.height}}else{var n=r.getArea(),i=e;return{cx:n.cx,cy:n.cy,r0:t?n.r0:i.r0,r:t?n.r:i.r,startAngle:t?i.startAngle:0,endAngle:t?i.endAngle:Math.PI*2}}}function b4(t,e,r){var a=t.type==="polar"?Mr:Ie;return new a({shape:uw(e,r,t),silent:!0,z2:0})}function k4(t,e){if(t.height===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"bottom":"top"}return t.height>0?"bottom":"top"}function w4(t,e){if(t.width===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"left":"right"}return t.width>=0?"right":"left"}function _4(t){t.registerChartView(c4),t.registerSeriesModel(s4),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,a4(mi)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,n4(mi)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,l1(mi)),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var a=e.componentType||"series";r.eachComponent({mainType:a,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})}),o4(t)}function x4(t,e){function r(a,n){var i=[];return a.eachComponent({mainType:"series",subType:t,query:n},function(o){i.push(o.seriesIndex)}),i}A([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(a){e(a[0],function(n,i,o){n=H({},n),o.dispatchAction(H(n,{type:a[1],seriesIndex:r(i,n)}))})})}function yi(t,e,r,a,n){var i=t+e;r.isSilent(i)||a.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,p=0;p<u.length;p++)if(u[p].seriesIndex===s){var c=o.getData(),f=Za(c,n.fromActionPayload);r.trigger(i,{type:i,seriesId:o.id,name:W(f)?c.getName(f[0]):c.getName(f),selected:q(l)?l:H({},l)})}})}function P4(t,e,r){t.on("selectchanged",function(a){var n=r.getModel();a.isFromClick?(yi("map","selectchanged",e,n,a),yi("pie","selectchanged",e,n,a)):a.fromAction==="select"?(yi("map","selected",e,n,a),yi("pie","selected",e,n,a)):a.fromAction==="unselect"&&(yi("map","unselected",e,n,a),yi("pie","unselected",e,n,a))})}function ld(t){return{seriesType:t,reset:function(e,r){var a=r.findComponents({mainType:"legend"});if(!(!a||!a.length)){var n=e.getData();n.filterSelf(function(i){for(var o=n.getName(i),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}function Hu(t,e,r){e=W(e)&&{coordDimensions:e}||H({encodeDefine:t.getEncode()},e);var a=t.getSource(),n=Mb(a,e).dimensions,i=new Lb(n,t);return i.initData(a,r),i}var ud=(function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var a=this._getDataWithEncodedVisual();return a.getItemVisual(e,r)},t})(),_a="pie",S4=_e(),pw=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new ud(ge(this.getData,this),ge(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Hu(this,{coordDimensions:["value"],encodeDefaulter:ze(rb,this)})},e.prototype.getDataParams=function(r){var a=this.getData(),n=S4(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=SD(o,a.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=i[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){_l(r,"labelLine",["show"]);var a=r.labelLine,n=r.emphasis.labelLine;a.show=a.show&&r.label.show,n.show=n.show&&r.emphasis.label.show},e.type="series."+_a,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,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"},e})(ft);J3({fullType:pw.type,getCoord2:function(t){return t.getShallow("center")}});function cw(t,e,r,a,n,i,o,s){var l=n-t,u=i-e,p=r-t,c=a-e,f=Math.sqrt(p*p+c*c);p/=f,c/=f;var h=l*p+u*c,d=h/f;d*=f;var v=o[0]=t+d*p,m=o[1]=e+d*c;return Math.sqrt((v-n)*(v-n)+(m-i)*(m-i))}var xa=new ie,Ne=new ie,Qe=new ie,Pa=new ie,Rr=new ie,Vu=[],ht=new ie;function T4(t,e){if(e<=180&&e>0){e=e/180*Math.PI,xa.fromArray(t[0]),Ne.fromArray(t[1]),Qe.fromArray(t[2]),ie.sub(Pa,xa,Ne),ie.sub(Rr,Qe,Ne);var r=Pa.len(),a=Rr.len();if(!(r<.001||a<.001)){Pa.scale(1/r),Rr.scale(1/a);var n=Pa.dot(Rr),i=Math.cos(e);if(i<n){var o=cw(Ne.x,Ne.y,Qe.x,Qe.y,xa.x,xa.y,Vu);ht.fromArray(Vu),ht.scaleAndAdd(Rr,o/Math.tan(Math.PI-e));var s=Qe.x!==Ne.x?(ht.x-Ne.x)/(Qe.x-Ne.x):(ht.y-Ne.y)/(Qe.y-Ne.y);if(isNaN(s))return;s<0?ie.copy(ht,Ne):s>1&&ie.copy(ht,Qe),ht.toArray(t[1])}}}}function C4(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,xa.fromArray(t[0]),Ne.fromArray(t[1]),Qe.fromArray(t[2]),ie.sub(Pa,Ne,xa),ie.sub(Rr,Qe,Ne);var a=Pa.len(),n=Rr.len();if(!(a<.001||n<.001)){Pa.scale(1/a),Rr.scale(1/n);var i=Pa.dot(e),o=Math.cos(r);if(i<o){var s=cw(Ne.x,Ne.y,Qe.x,Qe.y,xa.x,xa.y,Vu);ht.fromArray(Vu);var l=Math.PI/2,u=Math.acos(Rr.dot(e)),p=l+u-r;if(p>=l)ie.copy(ht,Qe);else{ht.scaleAndAdd(Rr,s/Math.tan(Math.PI/2-p));var c=Qe.x!==Ne.x?(ht.x-Ne.x)/(Qe.x-Ne.x):(ht.y-Ne.y)/(Qe.y-Ne.y);if(isNaN(c))return;c<0?ie.copy(ht,Ne):c>1&&ie.copy(ht,Qe)}ht.toArray(t[1])}}}}function pd(t,e,r,a){var n=r==="normal",i=n?t:t.ensureState(r);i.ignore=e;var o=a.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,i.shape=i.shape||{},i.shape.smooth=o;var s=a.getModel("lineStyle").getLineStyle();n?t.useStyle(s):i.style=s}function D4(t,e){var r=e.smooth,a=e.points;if(a)if(t.moveTo(a[0][0],a[0][1]),r>0&&a.length>=3){var n=lc(a[0],a[1]),i=lc(a[1],a[2]);if(!n||!i){t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*r,s=uc([],a[1],a[0],o/n),l=uc([],a[1],a[2],o/i),u=uc([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var p=1;p<a.length;p++)t.lineTo(a[p][0],a[p][1])}function fw(t,e,r){var a=t.getTextGuideLine(),n=t.getTextContent();if(!n){a&&t.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=n.ignore,l=0;l<Sl.length;l++){var u=Sl[l],p=e[u],c=u==="normal";if(p){var f=p.get("show"),h=c?s:Z(n.states[u]&&n.states[u].ignore,s);if(h||!Z(f,o)){var d=c?a:a&&a.states[u];d&&(d.ignore=!0),a&&pd(a,!0,u,p);continue}a||(a=new ca,t.setTextGuideLine(a),!c&&(s||!o)&&pd(a,!0,"normal",e.normal),t.stateProxy&&(a.stateProxy=t.stateProxy)),pd(a,!1,u,p)}}if(a){pe(a.style,r),a.style.fill=null;var v=i.get("showAbove"),m=t.textGuideLineConfig=t.textGuideLineConfig||{};m.showAbove=v||!1,a.buildPath=D4}}function hw(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},a=0;a<Ut.length;a++){var n=Ut[a];r[n]=t.getModel([n,e])}return r}var A4=Math.PI/180;function dw(t,e,r,a,n,i,o,s,l,u){if(t.length<2)return;function p(v){for(var m=v.rB,g=m*m,y=0;y<v.list.length;y++){var b=v.list[y],k=Math.abs(b.label.y-r),w=a+b.len,_=w*w,x=Math.sqrt(Math.abs((1-k*k/g)*_)),T=e+(x+b.len2)*n,C=T-b.label.x,P=b.targetTextWidth-C*n;vw(b,P,!0),b.label.x=T}}function c(v){for(var m={list:[],maxY:0},g={list:[],maxY:0},y=0;y<v.length;y++)if(v[y].labelAlignTo==="none"){var b=v[y],k=b.label.y>r?g:m,w=Math.abs(b.label.y-r);if(w>=k.maxY){var _=b.label.x-e-b.len2*n,x=a+b.len,T=Math.abs(_)<x?Math.sqrt(w*w/(1-_*_/x/x)):x;k.rB=T,k.maxY=w}k.list.push(b)}p(m),p(g)}for(var f=t.length,h=0;h<f;h++)if(t[h].position==="outer"&&t[h].labelAlignTo==="labelLine"){var d=t[h].label.x-u;t[h].linePoints[1][0]+=d,t[h].label.x=u}hE(t,1,l,l+o)&&c(t)}function L4(t,e,r,a,n,i,o,s){for(var l=[],u=[],p=Number.MAX_VALUE,c=-Number.MAX_VALUE,f=0;f<t.length;f++){var h=t[f].label;cd(t[f])||(h.x<e?(p=Math.min(p,h.x),l.push(t[f])):(c=Math.max(c,h.x),u.push(t[f])))}for(var f=0;f<t.length;f++){var d=t[f];if(!cd(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,v=d.linePoints,m=void 0;d.labelAlignTo==="edge"?h.x<e?m=v[2][0]-d.labelDistance-o-d.edgeDistance:m=o+n-d.edgeDistance-v[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<e?m=p-o-d.bleedMargin:m=o+n-c-d.bleedMargin:h.x<e?m=h.x-o-d.bleedMargin:m=o+n-h.x-d.bleedMargin,d.targetTextWidth=m,vw(d,m,!1)}}dw(u,e,r,a,1,n,i,o,s,c),dw(l,e,r,a,-1,n,i,o,s,p);for(var f=0;f<t.length;f++){var d=t[f];if(!cd(d)&&d.linePoints){var h=d.label,v=d.linePoints,g=d.labelAlignTo==="edge",y=h.style.padding,b=y?y[1]+y[3]:0,k=h.style.backgroundColor?0:b,w=d.rect.width+k,_=v[1][0]-v[2][0];g?h.x<e?v[2][0]=o+d.edgeDistance+w+d.labelDistance:v[2][0]=o+n-d.edgeDistance-w-d.labelDistance:(h.x<e?v[2][0]=h.x+d.labelDistance:v[2][0]=h.x-d.labelDistance,v[1][0]=v[2][0]+_),v[1][1]=v[2][1]=h.y}}}function vw(t,e,r){if(t.labelStyleWidth==null){var a=t.label,n=a.style,i=t.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,p=i.width+(o?0:l);if(e<p||r){if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",e-l);var c=a.getBoundingRect();a.setStyle("width",Math.ceil(c.width)),a.setStyle("backgroundColor",o)}else{var f=e-l,h=e<p?f:r?f>t.unconstrainedWidth?null:f:null;a.setStyle("width",h)}gw(i,a)}}}function gw(t,e){mw.rect=t,C1(mw,e,M4)}var M4={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},mw={};function cd(t){return t.position==="center"}function E4(t){var e=t.getData(),r=[],a,n,i=!1,o=(t.get("minShowLabelAngle")||0)*A4,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,p=s.x,c=s.y,f=s.height;function h(_){_.ignore=!0}function d(_){if(!_.ignore)return!0;for(var x in _.states)if(_.states[x].ignore===!1)return!0;return!1}e.each(function(_){var x=e.getItemGraphicEl(_),T=x.shape,C=x.getTextContent(),P=x.getTextGuideLine(),S=e.getItemModel(_),L=S.getModel("label"),D=L.get("position")||S.get(["emphasis","label","position"]),M=L.get("distanceToLabelLine"),I=L.get("alignTo"),E=ee(L.get("edgeDistance"),u),O=L.get("bleedMargin");O==null&&(O=Math.min(u,f)>200?10:2);var R=S.getModel("labelLine"),B=R.get("length");B=ee(B,u);var N=R.get("length2");if(N=ee(N,u),Math.abs(T.endAngle-T.startAngle)<o){A(C.states,h),C.ignore=!0,P&&(A(P.states,h),P.ignore=!0);return}if(d(C)){var F=(T.startAngle+T.endAngle)/2,U=Math.cos(F),Y=Math.sin(F),z,j,ne,De;a=T.cx,n=T.cy;var Ee=D==="inside"||D==="inner";if(D==="center")z=T.cx,j=T.cy,De="center";else{var de=(Ee?(T.r+T.r0)/2*U:T.r*U)+a,Ce=(Ee?(T.r+T.r0)/2*Y:T.r*Y)+n;if(z=de+U*3,j=Ce+Y*3,!Ee){var te=de+U*(B+l-T.r),ue=Ce+Y*(B+l-T.r),_t=te+(U<0?-1:1)*N,Fe=ue;I==="edge"?z=U<0?p+E:p+u-E:z=_t+(U<0?-M:M),j=Fe,ne=[[de,Ce],[te,ue],[_t,Fe]]}De=Ee?"center":I==="edge"?U>0?"right":"left":U>0?"left":"right"}var fr=Math.PI,xt=0,hr=L.get("rotate");if(be(hr))xt=hr*(fr/180);else if(D==="center")xt=0;else if(hr==="radial"||hr===!0){var Ii=U<0?-F+fr:-F;xt=Ii}else if(hr==="tangential"||hr==="tangential-noflip"&&D!=="outside"&&D!=="outer"){var dr=Math.atan2(U,Y);dr<0&&(dr=fr*2+dr);var Pp=Y>0;Pp&&hr!=="tangential-noflip"&&(dr=fr+dr),xt=dr-fr}if(i=!!xt,C.x=z,C.y=j,C.rotation=xt,C.setStyle({verticalAlign:"middle"}),Ee){C.setStyle({align:De});var Kv=C.states.select;Kv&&(Kv.x+=C.x,Kv.y+=C.y)}else{var Oi=new oe(0,0,0,0);gw(Oi,C),r.push({label:C,labelLine:P,position:D,len:B,len2:N,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new ie(U,Y),linePoints:ne,textAlign:De,labelDistance:M,labelAlignTo:I,edgeDistance:E,bleedMargin:O,rect:Oi,unconstrainedWidth:Oi.width,labelStyleWidth:C.style.width})}x.setTextConfig({inside:Ee})}}),!i&&t.get("avoidLabelOverlap")&&L4(r,a,n,l,u,f,p,c);for(var v=0;v<r.length;v++){var m=r[v],g=m.label,y=m.labelLine,b=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:m.textAlign}),b&&(A(g.states,h),g.ignore=!0);var k=g.states.select;k&&(k.x+=g.x,k.y+=g.y)}if(y){var w=m.linePoints;b||!w?(A(y.states,h),y.ignore=!0):(T4(w,m.minTurnAngle),C4(w,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:w}),g.__hostTarget.textGuideLineConfig={anchor:new ie(w[0][0],w[0][1])})}}}var yw=Math.PI*2,Uu=Math.PI/180,I4=df(_a,O4);function O4(t,e){t.eachSeriesByType(_a,function(r){var a=r.getData(),n=a.mapDimension("value"),i=UL(r,e),o=i.cx,s=i.cy,l=i.r,u=i.r0,p=i.viewRect,c=-r.get("startAngle")*Uu,f=r.get("endAngle"),h=r.get("padAngle")*Uu;f=f==="auto"?c-yw:-f*Uu;var d=r.get("minAngle")*Uu,v=d+h,m=0;a.each(n,function(E){!isNaN(E)&&m++});var g=a.getSum(n),y=Math.PI/(g||m)*2,b=r.get("clockwise"),k=r.get("roseType"),w=r.get("stillShowZeroSum"),_=a.getDataExtent(n);_[0]=0;var x=b?1:-1,T=[c,f],C=x*h/2;Jc(T,!b),c=T[0],f=T[1];var P=bw(r);P.startAngle=c,P.endAngle=f,P.clockwise=b,P.cx=o,P.cy=s,P.r=l,P.r0=u;var S=Math.abs(f-c),L=S,D=0,M=c;if(a.setLayout({viewRect:p,r:l}),a.each(n,function(E,O){var R;if(isNaN(E)){a.setItemLayout(O,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:b,cx:o,cy:s,r0:u,r:k?NaN:l});return}k!=="area"?R=g===0&&w?y:E*y:R=S/m,R<v?(R=v,L-=v):D+=E;var B=M+x*R,N=0,F=0;h>R?(N=M+x*R/2,F=N):(N=M+C,F=B-C),a.setItemLayout(O,{angle:R,startAngle:N,endAngle:F,clockwise:b,cx:o,cy:s,r0:u,r:k?Nt(E,_,[u,l]):l}),M=B}),L<yw&&m)if(L<=.001){var I=S/m;a.each(n,function(E,O){if(!isNaN(E)){var R=a.getItemLayout(O);R.angle=I;var B=0,N=0;I<h?(B=c+x*(O+1/2)*I,N=B):(B=c+x*O*I+C,N=c+x*(O+1)*I-C),R.startAngle=B,R.endAngle=N}})}else y=L/D,M=c,a.each(n,function(E,O){if(!isNaN(E)){var R=a.getItemLayout(O),B=R.angle===v?v:E*y,N=0,F=0;B<h?(N=M+x*B/2,F=N):(N=M+C,F=M+x*B-C),R.startAngle=N,R.endAngle=F,M+=x*B}})})}var bw=_e(),R4=(function(t){V(e,t);function e(r,a,n){var i=t.call(this)||this;i.z2=2;var o=new Oe;return i.setTextContent(o),i.updateData(r,a,n,!0),i}return e.prototype.updateData=function(r,a,n,i){var o=this,s=r.hostModel,l=r.getItemModel(a),u=l.getModel("emphasis"),p=r.getItemLayout(a),c=H(Xo(l.getModel("itemStyle"),p,!0),p);if(isNaN(c.startAngle)){o.setShape(c);return}if(i){o.setShape(c);var f=s.getShallow("animationType");s.ecModel.ssr?(Ye(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):f==="scale"?(o.shape.r=p.r0,Ye(o,{shape:{r:p.r}},s,a)):n!=null?(o.setShape({startAngle:n,endAngle:n}),Ye(o,{shape:{startAngle:p.startAngle,endAngle:p.endAngle}},s,a)):(o.shape.endAngle=p.startAngle,Re(o,{shape:{endAngle:p.endAngle}},s,a))}else ei(o),Re(o,{shape:c},s,a);o.useStyle(r.getItemVisual(a,"style")),$r(o,l);var h=(p.startAngle+p.endAngle)/2,d=s.get("selectedOffset"),v=Math.cos(h)*d,m=Math.sin(h)*d,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,r,a),o.ensureState("emphasis").shape=H({r:p.r+(u.get("scale")&&u.get("scaleSize")||0)},Xo(u.getModel("itemStyle"),p)),H(o.ensureState("select"),{x:v,y:m,shape:Xo(l.getModel(["select","itemStyle"]),p)}),H(o.ensureState("blur"),{shape:Xo(l.getModel(["blur","itemStyle"]),p)});var y=o.getTextGuideLine(),b=o.getTextContent();y&&H(y.ensureState("select"),{x:v,y:m}),H(b.ensureState("select"),{x:v,y:m}),Wr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,a,n){var i=this,o=a.getItemModel(n),s=o.getModel("labelLine"),l=a.getItemVisual(n,"style"),u=l&&l.fill,p=l&&l.opacity;an(i,nn(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:p,defaultText:r.getFormattedLabel(n,"normal")||a.getName(n)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var f=o.get(["label","position"]);if(f!=="outside"&&f!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new ca,this.setTextGuideLine(h)),fw(this,hw(o),{stroke:u,opacity:Da(s.get(["lineStyle","opacity"]),p,1)})}},e})(Mr),B4=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=_a,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,a,n,i){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var p=o.getItemLayout(0),c=1;isNaN(p&&p.startAngle)&&c<o.count();++c)p=o.getItemLayout(c);p&&(u=p.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var f=bw(r),h=new Mr({shape:le(f)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(d){var v=new R4(o,d,u);o.setItemGraphicEl(d,v),l.add(v)}).update(function(d,v){var m=s.getItemGraphicEl(v);m.updateData(o,d,u),m.off("click"),l.add(m),o.setItemGraphicEl(d,m)}).remove(function(d){var v=s.getItemGraphicEl(d);Jn(v,r,d)}).execute(),E4(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=r[0]-i.cx,s=r[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type=_a,e})(at);function N4(t){return{seriesType:t,reset:function(e,r){var a=e.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(be(o)&&!isNaN(o)&&o<0)})}}}function F4(t){t.registerChartView(B4),t.registerSeriesModel(pw),x4(_a,t.registerAction),t.registerLayout(I4),t.registerProcessor(ld(_a)),t.registerProcessor(N4(_a))}var bi=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),z4=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new bi(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var a=e.offsetX,n=e.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,r.drift(i,o,e),this.handler.dispatchToElement(new bi(r,e),"drag",e.event);var s=this.handler.findHover(a,n,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new bi(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new bi(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new bi(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new bi(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),H4=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fd=[],V4=se.browser.firefox&&+se.browser.version.split(".")[0]<39;function hd(t,e,r,a){return r=r||{},a?kw(t,e,r):V4&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):kw(t,e,r),r}function kw(t,e,r){if(se.domSupported&&t.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(Nb(t)){var i=t.getBoundingClientRect();r.zrX=a-i.left,r.zrY=n-i.top;return}else if(ph(fd,t,a,n)){r.zrX=fd[0],r.zrY=fd[1];return}}r.zrX=r.zrY=0}function dd(t){return t||window.event}function Kt(t,e,r){if(e=dd(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&hd(t,o,e,r)}else{hd(t,e,e,r);var i=U4(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&H4.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function U4(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,a=t.deltaY;if(r==null||a==null)return e;var n=Math.abs(a!==0?a:r),i=a>0?-1:a<0?1:r>0?-1:1;return 3*n*i}function G4(t,e,r,a){t.addEventListener(e,r,a)}function W4(t,e,r,a){t.removeEventListener(e,r,a)}var ww=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},$4=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,a){return this._doTrack(e,r,a),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:r,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=hd(a,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},t.prototype._recognize=function(e){for(var r in vd)if(vd.hasOwnProperty(r)){var a=vd[r](this._track,e);if(a)return a}},t})();function _w(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function Y4(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var vd={pinch:function(t,e){var r=t.length;if(r){var a=(t[r-1]||{}).points,n=(t[r-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=_w(a)/_w(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=Y4(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}},xw="silent";function K4(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:X4}}function X4(){ww(this.event)}var q4=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(zr),qo=(function(){function t(e,r){this.x=e,this.y=r}return t})(),j4=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],gd=new oe(0,0,0,0),Pw=(function(t){V(e,t);function e(r,a,n,i,o){var s=t.call(this)||this;return s._hovered=new qo(0,0),s.storage=r,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new q4,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new z4(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(A(j4,function(a){r.on&&r.on(a,this[a],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var a=r.zrX,n=r.zrY,i=Tw(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new qo(a,n):this.findHover(a,n),u=l.target,p=this.proxy;p.setCursor&&p.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var a=r.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new qo(0,0)},e.prototype.dispatch=function(r,a){var n=this[r];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var a=this.proxy;a.setCursor&&a.setCursor(r)},e.prototype.dispatchToElement=function(r,a,n){r=r||{};var i=r.target;if(!(i&&i.silent)){for(var o="on"+a,s=K4(a,r,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(r,a,n){var i=this.storage.getDisplayList(),o=new qo(r,a);if(Sw(i,o,r,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,p=new oe(r-u,a-u,l,l),c=i.length-1;c>=0;c--){var f=i[c];f!==n&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(gd.copy(f.getBoundingRect()),f.transform&&gd.applyTransform(f.transform),gd.intersect(p)&&s.push(f))}if(s.length)for(var h=4,d=Math.PI/12,v=Math.PI*2,m=0;m<u;m+=h)for(var g=0;g<v;g+=d){var y=r+m*Math.cos(g),b=a+m*Math.sin(g);if(Sw(s,o,y,b,n),o.target)return o}}return o},e.prototype.processGesture=function(r,a){this._gestureMgr||(this._gestureMgr=new $4);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var o=i.type;r.gestureEvent=o;var s=new qo;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e})(zr);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Pw.prototype[t]=function(e){var r=e.zrX,a=e.zrY,n=Tw(this,r,a),i,o;if((t!=="mouseup"||!n)&&(i=this.findHover(r,a),o=i.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||lc(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});function Z4(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var a=t,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,r))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s?a.ignoreHostSilent?null:s:a.parent}return n?xw:!0}return!1}function Sw(t,e,r,a,n){for(var i=t.length-1;i>=0;i--){var o=t[i],s=void 0;if(o!==n&&!o.ignore&&(s=Z4(o,r,a))&&(!e.topTarget&&(e.topTarget=o),s!==xw)){e.target=o;break}}}function Tw(t,e,r){var a=t.painter;return e<0||e>a.getWidth()||r<0||r>a.getHeight()}var Cw=32,jo=7;function Q4(t){for(var e=0;t>=Cw;)e|=t&1,t>>=1;return t+e}function Dw(t,e,r,a){var n=e+1;if(n===r)return 1;if(a(t[n++],t[e])<0){for(;n<r&&a(t[n],t[n-1])<0;)n++;J4(t,e,n)}else for(;n<r&&a(t[n],t[n-1])>=0;)n++;return n-e}function J4(t,e,r){for(r--;e<r;){var a=t[e];t[e++]=t[r],t[r--]=a}}function Aw(t,e,r,a,n){for(a===e&&a++;a<r;a++){for(var i=t[a],o=e,s=a,l;o<s;)l=o+s>>>1,n(i,t[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=i}}function md(t,e,r,a,n,i){var o=0,s=0,l=1;if(i(t,e[r+n])>0){for(s=a-n;l<s&&i(t,e[r+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&i(t,e[r+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var p=o+(l-o>>>1);i(t,e[r+p])>0?o=p+1:l=p}return l}function yd(t,e,r,a,n,i){var o=0,s=0,l=1;if(i(t,e[r+n])<0){for(s=n+1;l<s&&i(t,e[r+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l<s&&i(t,e[r+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var p=o+(l-o>>>1);i(t,e[r+p])<0?l=p:o=p+1}return l}function eI(t,e){var r=jo,a,n,i=0,o=[];a=[],n=[];function s(h,d){a[i]=h,n[i]=d,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]<n[h+1]&&h--;else if(n[h]>n[h+1])break;p(h)}}function u(){for(;i>1;){var h=i-2;h>0&&n[h-1]<n[h+1]&&h--,p(h)}}function p(h){var d=a[h],v=n[h],m=a[h+1],g=n[h+1];n[h]=v+g,h===i-3&&(a[h+1]=a[h+2],n[h+1]=n[h+2]),i--;var y=yd(t[m],t,d,v,0,e);d+=y,v-=y,v!==0&&(g=md(t[d+v-1],t,m,g,g-1,e),g!==0&&(v<=g?c(d,v,m,g):f(d,v,m,g)))}function c(h,d,v,m){var g=0;for(g=0;g<d;g++)o[g]=t[h+g];var y=0,b=v,k=h;if(t[k++]=t[b++],--m===0){for(g=0;g<d;g++)t[k+g]=o[y+g];return}if(d===1){for(g=0;g<m;g++)t[k+g]=t[b+g];t[k+m]=o[y];return}for(var w=r,_,x,T;;){_=0,x=0,T=!1;do if(e(t[b],o[y])<0){if(t[k++]=t[b++],x++,_=0,--m===0){T=!0;break}}else if(t[k++]=o[y++],_++,x=0,--d===1){T=!0;break}while((_|x)<w);if(T)break;do{if(_=yd(t[b],o,y,d,0,e),_!==0){for(g=0;g<_;g++)t[k+g]=o[y+g];if(k+=_,y+=_,d-=_,d<=1){T=!0;break}}if(t[k++]=t[b++],--m===0){T=!0;break}if(x=md(o[y],t,b,m,0,e),x!==0){for(g=0;g<x;g++)t[k+g]=t[b+g];if(k+=x,b+=x,m-=x,m===0){T=!0;break}}if(t[k++]=o[y++],--d===1){T=!0;break}w--}while(_>=jo||x>=jo);if(T)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),d===1){for(g=0;g<m;g++)t[k+g]=t[b+g];t[k+m]=o[y]}else{if(d===0)throw new Error;for(g=0;g<d;g++)t[k+g]=o[y+g]}}function f(h,d,v,m){var g=0;for(g=0;g<m;g++)o[g]=t[v+g];var y=h+d-1,b=m-1,k=v+m-1,w=0,_=0;if(t[k--]=t[y--],--d===0){for(w=k-(m-1),g=0;g<m;g++)t[w+g]=o[g];return}if(m===1){for(k-=d,y-=d,_=k+1,w=y+1,g=d-1;g>=0;g--)t[_+g]=t[w+g];t[k]=o[b];return}for(var x=r;;){var T=0,C=0,P=!1;do if(e(o[b],t[y])<0){if(t[k--]=t[y--],T++,C=0,--d===0){P=!0;break}}else if(t[k--]=o[b--],C++,T=0,--m===1){P=!0;break}while((T|C)<x);if(P)break;do{if(T=d-yd(o[b],t,h,d,d-1,e),T!==0){for(k-=T,y-=T,d-=T,_=k+1,w=y+1,g=T-1;g>=0;g--)t[_+g]=t[w+g];if(d===0){P=!0;break}}if(t[k--]=o[b--],--m===1){P=!0;break}if(C=m-md(t[y],o,0,m,m-1,e),C!==0){for(k-=C,b-=C,m-=C,_=k+1,w=b+1,g=0;g<C;g++)t[_+g]=o[w+g];if(m<=1){P=!0;break}}if(t[k--]=t[y--],--d===0){P=!0;break}x--}while(T>=jo||C>=jo);if(P)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),m===1){for(k-=d,y-=d,_=k+1,w=y+1,g=d-1;g>=0;g--)t[_+g]=t[w+g];t[k]=o[b]}else{if(m===0)throw new Error;for(w=k-(m-1),g=0;g<m;g++)t[w+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Gu(t,e,r,a){r||(r=0),a||(a=t.length);var n=a-r;if(!(n<2)){var i=0;if(n<Cw){i=Dw(t,r,a,e),Aw(t,r,a,r+i,e);return}var o=eI(t,e),s=Q4(n);do{if(i=Dw(t,r,a,e),i<s){var l=n;l>s&&(l=s),Aw(t,r,r+l,r+i,e),i=l}o.pushRun(r,i),o.mergeRuns(),n-=i,r+=i}while(n!==0);o.forceMergeRuns()}}var Lw=!1;function bd(){Lw||(Lw=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Mw(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var tI=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Mw}return t.prototype.traverse=function(e,r){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var a=this._displayList;return(e||!a.length)&&this.updateDisplayList(r),a},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,a=this._displayList,n=0,i=r.length;n<i;n++)this._updateAndAddDisplayable(r[n],null,e);a.length=this._displayListLen,Gu(a,Mw)},t.prototype._updateAndAddDisplayable=function(e,r,a){if(!(e.ignore&&!a)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),i=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(i||n)){if(s||(s=e.__clipPaths=[]),i)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=n,p=e;u;)u.parent=p,u.updateTransform(),s[o++]=u,p=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),f=0;f<c.length;f++){var h=c[f];e.__dirty&&(h.__dirty|=tr),this._updateAndAddDisplayable(h,s,a)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(bd(),d.z=0),isNaN(d.z2)&&(bd(),d.z2=0),isNaN(d.zlevel)&&(bd(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var v=e.getDecalElement&&e.getDecalElement();v&&this._updateAndAddDisplayable(v,s,a);var m=e.getTextGuideLine();m&&this._updateAndAddDisplayable(m,s,a);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,a)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,a=e.length;r<a;r++)this.delRoot(e[r]);return}var n=fe(this._roots,e);n>=0&&this._roots.splice(n,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),kd;kd=se.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};function ki(){return new Date().getTime()}var rI=(function(t){V(e,t);function e(r){var a=t.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,r=r||{},a.stage=r.stage||{},a}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var a=r.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(r){if(r.animation){var a=r.prev,n=r.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var a=r.getClip();a&&this.removeClip(a),r.animation=null},e.prototype.update=function(r){for(var a=ki()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function a(){r._running&&(kd(a),!r._paused&&r.update())}kd(a)},e.prototype.start=function(){this._running||(this._time=ki(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ki(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ki()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var a=r.next;r.prev=r.next=r.animation=null,r=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,a){a=a||{},this.start();var n=new Rc(r,a.loop);return this.addAnimator(n),n},e})(zr),aI=300,wd=se.domSupported,_d=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=K(t,function(n){var i=n.replace("mouse","pointer");return r.hasOwnProperty(i)?i:n});return{mouse:t,touch:e,pointer:a}})(),Ew={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Iw=!1;function xd(t){var e=t.pointerType;return e==="pen"||e==="touch"}function nI(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Pd(t){t&&(t.zrByTouch=!0)}function iI(t,e){return Kt(t.dom,new oI(t,e),!0)}function Ow(t,e){for(var r=e,a=!1;r&&r.nodeType!==9&&!(a=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return a}var oI=(function(){function t(e,r){this.stopPropagation=qe,this.stopImmediatePropagation=qe,this.preventDefault=qe,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),ur={mousedown:function(t){t=Kt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Kt(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Kt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Kt(this.dom,t);var e=t.toElement||t.relatedTarget;Ow(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Iw=!0,t=Kt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Iw||(t=Kt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Kt(this.dom,t),Pd(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),ur.mousemove.call(this,t),ur.mousedown.call(this,t)},touchmove:function(t){t=Kt(this.dom,t),Pd(t),this.handler.processGesture(t,"change"),ur.mousemove.call(this,t)},touchend:function(t){t=Kt(this.dom,t),Pd(t),this.handler.processGesture(t,"end"),ur.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<aI&&ur.click.call(this,t)},pointerdown:function(t){ur.mousedown.call(this,t)},pointermove:function(t){xd(t)||ur.mousemove.call(this,t)},pointerup:function(t){ur.mouseup.call(this,t)},pointerout:function(t){xd(t)||ur.mouseout.call(this,t)}};A(["click","dblclick","contextmenu"],function(t){ur[t]=function(e){e=Kt(this.dom,e),this.trigger(t,e)}});var Sd={pointermove:function(t){xd(t)||Sd.mousemove.call(this,t)},pointerup:function(t){Sd.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function sI(t,e){var r=e.domHandlers;se.pointerEventsSupported?A(_d.pointer,function(a){Wu(e,a,function(n){r[a].call(t,n)})}):(se.touchEventsSupported&&A(_d.touch,function(a){Wu(e,a,function(n){r[a].call(t,n),nI(e)})}),A(_d.mouse,function(a){Wu(e,a,function(n){n=dd(n),e.touching||r[a].call(t,n)})}))}function lI(t,e){se.pointerEventsSupported?A(Ew.pointer,r):se.touchEventsSupported||A(Ew.mouse,r);function r(a){function n(i){i=dd(i),Ow(t,i.target)||(i=iI(t,i),e.domHandlers[a].call(t,i))}Wu(e,a,n,{capture:!0})}}function Wu(t,e,r,a){t.mounted[e]=r,t.listenerOpts[e]=a,G4(t.domTarget,e,r,a)}function Td(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&W4(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var Rw=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),uI=(function(t){V(e,t);function e(r,a){var n=t.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=a,n._localHandlerScope=new Rw(r,ur),wd&&(n._globalHandlerScope=new Rw(document,Sd)),sI(n,n._localHandlerScope),n}return e.prototype.dispose=function(){Td(this._localHandlerScope),wd&&Td(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,wd&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var a=this._globalHandlerScope;r?lI(this,a):Td(a)}},e})(zr);var $u={},Bw={};function pI(t){delete Bw[t]}function cI(t){if(!t)return!1;if(typeof t=="string")return el(t,1)<Bc;if(t.colorStops){for(var e=t.colorStops,r=0,a=e.length,n=0;n<a;n++)r+=el(e[n].color,1);return r/=a,r<Bc}return!1}var fI=(function(){function t(e,r,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,a=a||{},this.dom=r,this.id=e;var i=new tI,o=a.renderer||"canvas";$u[o]||(o=he($u)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new $u[o](r,i,a,e),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!se.node&&!se.worker&&!l?new uI(s.getViewportRoot(),s.root):null,p=a.useCoarsePointer,c=p==null||p==="auto"?se.touchEventsSupported:!!p,f=44,h;c&&(h=Z(a.pointerSize,f)),this.handler=new Pw(i,s,u,s.root,h),this.animation=new rI({stage:{update:l?null:function(){return n._flush(!1)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=cI(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,a=ki(),n=this._needsRefresh,i=this._needsRefreshHover;(n||i)&&(r=!0,this._refresh({animUpdate:e,refresh:n,refreshHover:i}));var o=ki();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,a){return this._disposed||this.handler.on(e,r,a),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof Me&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,pI(this.id))},t})();function Nw(t,e){var r=new fI(im(),t,e);return Bw[r.id]=r,r}function hI(t,e){$u[t]=e}var Cd;function dI(t){if(typeof Cd=="function")return Cd(t)}function vI(t){Cd=t}var Fw="";typeof navigator<"u"&&(Fw=navigator.platform||"");var wi="rgba(0, 0, 0, 0.2)",zw=$.color.theme[0],gI=Cc(zw,null,null,.9);const Hw={darkMode:"auto",colorBy:"series",color:$.color.theme,gradientColor:[gI,zw],aria:{decal:{decals:[{color:wi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:wi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:wi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:wi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:wi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:wi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Fw.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 mI=ae();function yI(t,e,r){var a=mI.get(e);if(!a)return r;var n=a(t);return n?r.concat(n):r}var Yu,Zo,Vw,Uw="\0_ec_inner",bI=1,Dd=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,a,n,i,o,s){i=i||{},this.option=null,this._theme=new Ae(i),this._locale=new Ae(o),this._optionManager=s},e.prototype.setOption=function(r,a,n){var i=$w(a);this._optionManager.setOption(r,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(r,a){return this._resetOption(r,$w(a))},e.prototype._resetOption=function(r,a){var n=!1,i=this._optionManager;if(!r||r==="recreate"){var o=i.mountOption(r==="recreate");!this.option||r==="recreate"?Vw(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!r||r==="recreate"||r==="media"){var l=i.getMediaOption(this);l.length&&A(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ae(),u=a&&a.replaceMergeMainTypeMap;T3(this),A(r,function(c,f){c!=null&&(ke.hasClass(f)?f&&(s.push(f),l.set(f,!0)):n[f]=n[f]==null?le(c):Pe(n[f],c,!0))}),u&&u.each(function(c,f){ke.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),ke.topologicalTravel(s,ke.getAllClassMainTypes(),p,this);function p(c){var f=yI(this,c,ut(r[c])),h=i.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",v=OD(h,f,d);VD(v,c,ke),n[c]=null,i.set(c,null),o.set(c,0);var m=[],g=[],y=0,b;A(v,function(k,w){var _=k.existing,x=k.newOption;if(!x)_&&(_.mergeOption({},this),_.optionUpdated({},!1));else{var T=c==="series",C=ke.getClass(c,k.keyInfo.subType,!T);if(!C)return;if(c==="tooltip"){if(b)return;b=!0}if(_&&_.constructor===C)_.name=k.keyInfo.name,_.mergeOption(x,this),_.optionUpdated(x,!1);else{var P=H({componentIndex:w},k.keyInfo);_=new C(x,this,this,P),H(_,P),k.brandNew&&(_.__requireNewView=!0),_.init(x,this,this),_.optionUpdated(null,!0)}}_?(m.push(_.option),g.push(_),y++):(m.push(void 0),g.push(void 0))},this),n[c]=m,i.set(c,g),o.set(c,y),c==="series"&&Yu(this)}this._seriesIndices||Yu(this)},e.prototype.getOption=function(){var r=le(this.option);return A(r,function(a,n){if(ke.hasClass(n)){for(var i=ut(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!mo(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,r[n]=i}}),delete r[Uw],r},e.prototype.setTheme=function(r){this._theme=new Ae(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,a){var n=this._componentsMap.get(r);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(r){var a=r.mainType;if(!a)return[];var n=r.index,i=r.id,o=r.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return n!=null?(l=[],A(ut(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=Gw("id",i,s):o!=null?l=Gw("name",o,s):l=Xe(s,function(u){return!!u}),Ww(l,r)},e.prototype.findComponents=function(r){var a=r.query,n=r.mainType,i=s(a),o=i?this.queryComponents(i):Xe(this._componentsMap.get(n),function(u){return!!u});return l(Ww(o,r));function s(u){var p=n+"Index",c=n+"Id",f=n+"Name";return u&&(u[p]!=null||u[c]!=null||u[f]!=null)?{mainType:n,index:u[p],id:u[c],name:u[f]}:null}function l(u){return r.filter?Xe(u,r.filter):u}},e.prototype.eachComponent=function(r,a,n){var i=this._componentsMap;if(re(r)){var o=a,s=r;i.each(function(c,f){for(var h=0;c&&h<c.length;h++){var d=c[h];d&&s.call(o,f,d,d.componentIndex)}})}else for(var l=q(r)?i.get(r):J(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var p=l[u];p&&a.call(n,p,p.componentIndex)}},e.prototype.getSeriesByName=function(r){var a=Ar(r,null);return Xe(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return Xe(this._componentsMap.get("series"),function(a){return!!a&&a.subType===r})},e.prototype.getSeries=function(){return Xe(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,a){Zo(this),A(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];r.call(a,i,n)},this)},e.prototype.eachRawSeries=function(r,a){A(this._componentsMap.get("series"),function(n){n&&r.call(a,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(r,a,n){Zo(this),A(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===r&&a.call(n,o,i)},this)},e.prototype.eachRawSeriesByType=function(r,a,n){return A(this.getSeriesByType(r),a,n)},e.prototype.isSeriesFiltered=function(r){return Zo(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,a){Zo(this);var n=[];A(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];r.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=ae(n)},e.prototype.restoreData=function(r){Yu(this);var a=this._componentsMap,n=[];a.each(function(i,o){ke.hasClass(o)&&n.push(o)}),ke.topologicalTravel(n,ke.getAllClassMainTypes(),function(i){A(a.get(i),function(o){o&&(i!=="series"||!kI(o,r))&&o.restoreData()})})},e.internalField=(function(){Yu=function(r){var a=r._seriesIndices=[];A(r._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),r._seriesIndicesMap=ae(a)},Zo=function(r){},Vw=function(r,a){r.option={},r.option[Uw]=bI,r._componentsMap=ae({series:[]}),r._componentsCount=ae();var n=a.aria;J(n)&&n.enabled==null&&(n.enabled=!0),wI(a,r._theme.option),Pe(a,Hw,!1),r._mergeOption(a,null)}})(),e})(Ae);function kI(t,e){if(e){var r=e.seriesIndex,a=e.seriesId,n=e.seriesName;return r!=null&&t.componentIndex!==r||a!=null&&t.id!==a||n!=null&&t.name!==n}}function wI(t,e){var r=t.color&&!t.colorLayer;A(e,function(a,n){n==="colorLayer"&&r||n==="color"&&t.color||ke.hasClass(n)||(typeof a=="object"?t[n]=t[n]?Pe(t[n],a,!1):le(a):t[n]==null&&(t[n]=a))})}function Gw(t,e,r){if(W(e)){var a=ae();return A(e,function(i){if(i!=null){var o=Ar(i,null);o!=null&&a.set(i,!0)}}),Xe(r,function(i){return i&&a.get(i[t])})}else{var n=Ar(e,null);return Xe(r,function(i){return i&&n!=null&&i[t]===n})}}function Ww(t,e){return e.hasOwnProperty("subType")?Xe(t,function(r){return r&&r.subType===e.subType}):t}function $w(t){var e=ae();return t&&A(ut(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Qt(Dd,Sh);var _I=/^(min|max)?(.+)$/,xI=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,a){e&&(A(ut(e.series),function(o){o&&o.data&&yt(o.data)&&Fs(o.data)}),A(ut(e.dataset),function(o){o&&o.source&&yt(o.source)&&Fs(o.source)})),e=le(e);var n=this._optionBackup,i=PI(e,r,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],le(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,a=this._timelineOptions;if(a.length){var n=e.getComponent("timeline");n&&(r=le(a[n.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),a=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!n.length&&!i)return s;for(var l=0,u=n.length;l<u;l++)SI(n[l].query,r,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!CI(o,this._currentMediaIndices)&&(s=K(o,function(p){return le(p===-1?i.option:n[p].option)})),this._currentMediaIndices=o,s},t})();function PI(t,e,r){var a=[],n,i,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,p=!!t.media,c=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((c||p)&&(t.options=t.media=null),i=t),p&&W(u)&&A(u,function(h){h&&h.option&&(h.query?a.push(h):n||(n=h))}),f(i),A(l,function(h){return f(h)}),A(a,function(h){return f(h.option)});function f(h){A(e,function(d){d(h,r)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}function SI(t,e,r){var a={width:e,height:r,aspectratio:e/r},n=!0;return A(t,function(i,o){var s=o.match(_I);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();TI(a[u],i,l)||(n=!1)}}),n}function TI(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function CI(t,e){return t.join(",")===e.join(",")}var pr=A,Qo=J,Yw=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ad(t){var e=t&&t.itemStyle;if(e)for(var r=0,a=Yw.length;r<a;r++){var n=Yw[r],i=e.normal,o=e.emphasis;i&&i[n]&&(t[n]=t[n]||{},t[n].normal?Pe(t[n].normal,i[n]):t[n].normal=i[n],i[n]=null),o&&o[n]&&(t[n]=t[n]||{},t[n].emphasis?Pe(t[n].emphasis,o[n]):t[n].emphasis=o[n],o[n]=null)}}function nt(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var a=t[e].normal,n=t[e].emphasis;a&&(r?(t[e].normal=t[e].emphasis=null,pe(t[e],a)):t[e]=a),n&&(t.emphasis=t.emphasis||{},t.emphasis[e]=n,n.focus&&(t.emphasis.focus=n.focus),n.blurScope&&(t.emphasis.blurScope=n.blurScope))}}function Jo(t){nt(t,"itemStyle"),nt(t,"lineStyle"),nt(t,"areaStyle"),nt(t,"label"),nt(t,"labelLine"),nt(t,"upperLabel"),nt(t,"edgeLabel")}function He(t,e){var r=Qo(t)&&t[e],a=Qo(r)&&r.textStyle;if(a)for(var n=0,i=Fy.length;n<i;n++){var o=Fy[n];a.hasOwnProperty(o)&&(r[o]=a[o])}}function Xt(t){t&&(Jo(t),He(t,"label"),t.emphasis&&He(t.emphasis,"label"))}function DI(t){if(Qo(t)){Ad(t),Jo(t),He(t,"label"),He(t,"upperLabel"),He(t,"edgeLabel"),t.emphasis&&(He(t.emphasis,"label"),He(t.emphasis,"upperLabel"),He(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Ad(e),Xt(e));var r=t.markLine;r&&(Ad(r),Xt(r));var a=t.markArea;a&&Xt(a);var n=t.data;if(t.type==="graph"){n=n||t.nodes;var i=t.links||t.edges;if(i&&!yt(i))for(var o=0;o<i.length;o++)Xt(i[o]);A(t.categories,function(u){Jo(u)})}if(n&&!yt(n))for(var o=0;o<n.length;o++)Xt(n[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Xt(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)W(l[o])?(Xt(l[o][0]),Xt(l[o][1])):Xt(l[o]);t.type==="gauge"?(He(t,"axisLabel"),He(t,"title"),He(t,"detail")):t.type==="treemap"?(nt(t.breadcrumb,"itemStyle"),A(t.levels,function(u){Jo(u)})):t.type==="tree"&&Jo(t.leaves)}}function Zr(t){return W(t)?t:t?[t]:[]}function Kw(t){return(W(t)?t[0]:t)||{}}function AI(t,e){pr(Zr(t.series),function(a){Qo(a)&&DI(a)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),pr(r,function(a){pr(Zr(t[a]),function(n){n&&(He(n,"axisLabel"),He(n.axisPointer,"label"))})}),pr(Zr(t.parallel),function(a){var n=a&&a.parallelAxisDefault;He(n,"axisLabel"),He(n&&n.axisPointer,"label")}),pr(Zr(t.calendar),function(a){nt(a,"itemStyle"),He(a,"dayLabel"),He(a,"monthLabel"),He(a,"yearLabel")}),pr(Zr(t.radar),function(a){He(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),pr(Zr(t.geo),function(a){Qo(a)&&(Xt(a),pr(Zr(a.regions),function(n){Xt(n)}))}),pr(Zr(t.timeline),function(a){Xt(a),nt(a,"label"),nt(a,"itemStyle"),nt(a,"controlStyle",!0);var n=a.data;W(n)&&A(n,function(i){J(i)&&(nt(i,"label"),nt(i,"itemStyle"))})}),pr(Zr(t.toolbox),function(a){nt(a,"iconStyle"),pr(a.feature,function(n){nt(n,"iconStyle")})}),He(Kw(t.axisPointer),"label"),He(Kw(t.tooltip).axisPointer,"label")}function LI(t,e){for(var r=e.split(","),a=t,n=0;n<r.length&&(a=a&&a[r[n]],a!=null);n++);return a}function MI(t,e,r,a){for(var n=e.split(","),i=t,o,s=0;s<n.length-1;s++)o=n[s],i[o]==null&&(i[o]={}),i=i[o];i[n[s]]==null&&(i[n[s]]=r)}function Xw(t){t&&A(EI,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var EI=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],II=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Ld=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function es(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<Ld.length;r++){var a=Ld[r][1],n=Ld[r][0];e[a]!=null&&(e[n]=e[a])}}function qw(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function jw(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function OI(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function Zw(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&Zw(t[r].children,e)}function Qw(t,e){AI(t,e),t.series=ut(t.series),A(t.series,function(r){if(J(r)){var a=r.type;if(a==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(a==="pie"||a==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),qw(r.label);var n=r.data;if(n&&!yt(n))for(var i=0;i<n.length;i++)qw(n[i]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(a==="gauge"){var o=LI(r,"pointer.color");o!=null&&MI(r,"itemStyle.color",o)}else if(a==="bar"){es(r),es(r.backgroundStyle),es(r.emphasis);var n=r.data;if(n&&!yt(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(es(n[i]),es(n[i]&&n[i].emphasis))}else if(a==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),jw(r),Zw(r.data,jw)}else a==="graph"||a==="sankey"?OI(r):a==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&pe(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),Xw(r)}}),t.dataRange&&(t.visualMap=t.dataRange),A(II,function(r){var a=t[r];a&&(W(a)||(a=[a]),A(a,function(n){Xw(n)}))})}var RI=vf(BI);function BI(t){var e=ae();t.eachSeries(function(r){var a=r.get("stack");if(a){var n=e.get(a)||e.set(a,[]),i=r.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),e.each(function(r){if(r.length!==0){var a=r[0].seriesModel,n=a.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&r.reverse(),A(r,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),NI(r)}})}function NI(t){A(t,function(e,r){var a=[],n=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,p,c){var f=o.get(e.stackedDimension,c);if(isNaN(f))return n;var h,d;s?d=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var v=NaN,m=r-1;m>=0;m--){var g=t[m];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,h)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&f>=0&&y>0||l==="samesign"&&f<=0&&y<0){f=TD(f,y),v=y;break}}}return a[0]=f,a[1]=v,a})})}var Dt=(function(){function t(){this.group=new Me,this.uid=Io("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,a,n){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,a,n){},t.prototype.updateLayout=function(e,r,a,n){},t.prototype.updateVisual=function(e,r,a,n){},t.prototype.toggleBlurSeries=function(e,r,a){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();Jp(Dt),Vs(Dt);var Jw=_e(),e_={itemStyle:Ki(J0,!0),lineStyle:Ki(Q0,!0)},FI={lineStyle:"stroke",itemStyle:"fill"};function t_(t,e){var r=t.visualStyleMapper||e_[e];return r||(console.warn("Unknown style type '"+e+"'."),e_.itemStyle)}function r_(t,e){var r=t.visualDrawType||FI[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var zI={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),a=t.visualStyleAccessPath||"itemStyle",n=t.getModel(a),i=t_(t,a),o=i(n),s=n.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=r_(t,a),u=o[l],p=re(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||p||c){var f=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=f,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||re(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||re(o.stroke)?f:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&p)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var v=t.getDataParams(d),m=H({},o);m[l]=p(v),h.setItemVisual(d,"style",m)}}}},ts=new Ae,HI={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),a=t.visualStyleAccessPath||"itemStyle",n=t_(t,a),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){ts.option=l[a];var u=n(ts),p=o.ensureUniqueItemVisual(s,"style");H(p,u),ts.option.decal&&(o.setItemVisual(s,"decal",ts.option.decal),ts.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},VI={performRawSeries:!0,overallReset:function(t){var e=ae();t.eachSeries(function(r){if(!r.isColorBySeries()){var a=r.type+"-"+r.getColorBy();Jw(r).scope=e.get(a)||e.set(a,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var a=r.getRawData(),n={},i=r.getData(),o=Jw(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=r_(r,s);i.each(function(u){var p=i.getRawIndex(u);n[p]=u}),a.each(function(u){var p=n[u],c=i.getItemVisual(p,"colorFromPalette");if(c){var f=i.ensureUniqueItemVisual(p,"style"),h=a.getName(u)||u+"",d=a.count();f[l]=r.getColorFromPalette(h,o,d)}})}})}},Ku=Math.PI;function UI(t,e){e=e||{},pe(e,{text:"loading",textColor:$.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:$.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Me,a=new Ie({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(a);var n=new Oe({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new Ie({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(i);var o;return e.showSpinner&&(o=new Bl({shape:{startAngle:-Ku/2,endAngle:-Ku/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Ku*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Ku*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),p=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:p}),i.setShape({x:u-l,y:p-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var a_=(function(){function t(e,r,a,n){this._stageTaskMap=ae(),this.ecInstance=e,this.api=r,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),n=a.context,i=!r&&a.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var a=this._pipelineMap.get(e.uid),n=e.__preparePipelineContext?e.__preparePipelineContext(r,a):Yy(e,r,a);e.pipelineContext=a.context=n},t.prototype.restorePipelines=function(e,r){var a=this,n=a._pipelineMap=ae();r.eachSeries(function(i){var o=e.painter.type==="canvas"&&i.getProgressive(),s=i.uid;n.set(s,{id:s,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),a._pipe(i,i.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),a=this.api;A(this._allHandlers,function(n){var i=e.get(n.uid)||e.set(n.uid,{}),o="";Jt(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,r,a),n.overallReset&&this._createOverallStageTask(n,i,r,a)},this)},t.prototype.prepareView=function(e,r,a,n){var i=e.renderTask,o=i.context;o.model=r,o.ecModel=a,o.api=n,i.__block=!e.incrementalPrepareRender,this._pipe(r,i)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,a){this._performStageTasks(this._visualHandlers,e,r,a)},t.prototype._performStageTasks=function(e,r,a,n){n=n||{};var i=!1,o=this;A(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var p=o._stageTaskMap.get(l.uid),c=p.seriesTaskMap,f=p.overallTask;if(f){var h,d=f.agentStubMap;d.each(function(m){s(n,m)&&(m.dirty(),h=!0)}),h&&f.dirty(),o.updatePayload(f,a);var v=o.getPerformArgs(f,n.block);d.each(function(m){m.perform(v)}),f.perform(v)&&(i=!0)}else c&&c.each(function(m,g){s(n,m)&&m.dirty();var y=o.getPerformArgs(m,n.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,a),m.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(a){r=a.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,a,n){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ae(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?a.eachRawSeries(p):l?a.eachRawSeriesByType(l,p):u&&u(a,n).each(p);function p(c){var f=c.uid,h=s.set(f,o&&o.get(f)||Ho({plan:KI,reset:XI,count:jI}));h.context={model:c,ecModel:a,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(c,h)}},t.prototype._createOverallStageTask=function(e,r,a,n){var i=this,o=r.overallTask=r.overallTask||Ho({reset:GI});o.context={ecModel:a,api:n,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ae(),u=e.seriesType,p=e.getTargetSeries,c=e.dirtyOnOverallProgress,f=!1,h="";Jt(!e.createOnAllSeries,h),u?a.eachRawSeriesByType(u,d):p?p(a,n).each(d):A(a.getSeries(),d);function d(v){var m=v.uid,g=l.set(m,s&&s.get(m)||(f=!0,Ho({reset:WI,onDirty:YI})));g.context={model:v,dirtyOnOverallProgress:c},g.agent=o,g.__block=c,i._pipe(v,g)}f&&o.dirty()},t.prototype._pipe=function(e,r){var a=e.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=r),n.tail&&n.tail.pipe(r),n.tail=r,r.__idxInPipeline=n.count++,r.__pipeline=n},t.wrapStageHandler=function(e,r){return re(e)&&(e={overallReset:e,seriesType:ZI(e)}),e.uid=Io("stageHandler"),r&&(e.visualType=r),e},t})();function GI(t){t.overallReset(t.ecModel,t.api,t.payload)}function WI(t){return t.dirtyOnOverallProgress&&$I}function $I(){this.agent.dirty(),this.getDownstream().dirty()}function YI(){this.agent&&this.agent.dirty()}function KI(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function XI(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=ut(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?K(e,function(r,a){return n_(a)}):qI}var qI=n_(0);function n_(t){return function(e,r){var a=r.data,n=r.resetDefines[t];if(n&&n.dataEach)for(var i=e.start;i<e.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(e,a)}}function jI(t){return t.data.count()}function ZI(t){Xu=null;try{t(rs,i_)}catch{}return Xu}var rs={},i_={},Xu;o_(rs,Dd),o_(i_,jy),rs.eachSeriesByType=rs.eachRawSeriesByType=function(t){Xu=t},rs.eachComponent=function(t){t.mainType==="series"&&t.subType&&(Xu=t.subType)};function o_(t,e){for(var r in e.prototype)t[r]=qe}var G=$.darkColor,s_=G.background,as=function(){return{axisLine:{lineStyle:{color:G.axisLine}},splitLine:{lineStyle:{color:G.axisSplitLine}},splitArea:{areaStyle:{color:[G.backgroundTint,G.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:G.axisMinorSplitLine}},axisLabel:{color:G.axisLabel},axisName:{}}},l_={label:{color:G.secondary},itemStyle:{borderColor:G.borderTint},dividerLineStyle:{color:G.border}},u_={darkMode:!0,color:G.theme,backgroundColor:s_,axisPointer:{lineStyle:{color:G.border},crossStyle:{color:G.borderShade},label:{color:G.tertiary}},legend:{textStyle:{color:G.secondary},pageTextStyle:{color:G.tertiary}},textStyle:{color:G.secondary},title:{textStyle:{color:G.primary},subtextStyle:{color:G.quaternary}},toolbox:{iconStyle:{borderColor:G.accent50},feature:{dataView:{backgroundColor:s_,textColor:G.primary,textareaColor:G.background,textareaBorderColor:G.border,buttonColor:G.accent50,buttonTextColor:G.neutral00}}},tooltip:{backgroundColor:G.neutral20,defaultBorderColor:G.border,textStyle:{color:G.tertiary}},dataZoom:{borderColor:G.accent10,textStyle:{color:G.tertiary},brushStyle:{color:G.backgroundTint},handleStyle:{color:G.neutral00,borderColor:G.accent20},moveHandleStyle:{color:G.accent40},emphasis:{handleStyle:{borderColor:G.accent50}},dataBackground:{lineStyle:{color:G.accent30},areaStyle:{color:G.accent20}},selectedDataBackground:{lineStyle:{color:G.accent50},areaStyle:{color:G.accent30}}},visualMap:{textStyle:{color:G.secondary},handleStyle:{borderColor:G.neutral30}},timeline:{lineStyle:{color:G.accent10},label:{color:G.tertiary},controlStyle:{color:G.accent30,borderColor:G.accent30}},calendar:{itemStyle:{color:G.neutral00,borderColor:G.neutral20},dayLabel:{color:G.tertiary},monthLabel:{color:G.secondary},yearLabel:{color:G.secondary}},matrix:{x:l_,y:l_,backgroundColor:{borderColor:G.axisLine},body:{itemStyle:{borderColor:G.borderTint}}},timeAxis:as(),logAxis:as(),valueAxis:as(),categoryAxis:as(),line:{symbol:"circle"},graph:{color:G.theme},gauge:{title:{color:G.secondary},axisLine:{lineStyle:{color:[[1,G.neutral05]]}},axisLabel:{color:G.axisLabel},detail:{color:G.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:G.background}},radar:(function(){var t=as();return t.axisName={color:G.axisLabel},t.axisLine.lineStyle.color=G.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:G.neutral20,textStyle:{color:G.secondary}},emphasis:{itemStyle:{color:G.neutral30}}}},sunburst:{itemStyle:{borderColor:G.background}},map:{itemStyle:{borderColor:G.border,areaColor:G.neutral10},label:{color:G.tertiary},emphasis:{label:{color:G.primary},itemStyle:{areaColor:G.highlight}},select:{label:{color:G.primary},itemStyle:{areaColor:G.highlight}}},geo:{itemStyle:{borderColor:G.border,areaColor:G.neutral10},emphasis:{label:{color:G.primary},itemStyle:{areaColor:G.highlight}},select:{label:{color:G.primary},itemStyle:{color:G.highlight}}}};u_.categoryAxis.splitLine.show=!1;var QI=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},a={},n={};if(q(e)){var i=kr(e);r.mainType=i.main||null,r.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(e,function(l,u){for(var p=!1,c=0;c<o.length;c++){var f=o[c],h=u.lastIndexOf(f);if(h>0&&h===u.length-f.length){var d=u.slice(0,h);d!=="data"&&(r.mainType=d,r[f.toLowerCase()]=l,p=!0)}}s.hasOwnProperty(u)&&(a[u]=l,p=!0),p||(n[u]=l)})}return{cptQuery:r,dataQuery:a,otherQuery:n}},t.prototype.filter=function(e,r){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return p(l,o,"mainType")&&p(l,o,"subType")&&p(l,o,"index","componentIndex")&&p(l,o,"name")&&p(l,o,"id")&&p(u,i,"name")&&p(u,i,"dataIndex")&&p(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,n,i));function p(c,f,h,d){return c[h]==null||f[d||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})(),Md=["symbol","symbolSize","symbolRotate","symbolOffset"],p_=Md.concat(["symbolKeepAspect"]),JI={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o<Md.length;o++){var s=Md[o],l=t.get(s);re(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||t.defaultSymbol,r.setVisual(H({legendIcon:t.legendIcon||a.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},a)),e.isSeriesFiltered(t))return;var u=he(n);function p(c,f){for(var h=t.getRawValue(f),d=t.getDataParams(f),v=0;v<u.length;v++){var m=u[v];c.setItemVisual(f,m,n[m](h,d))}}return{dataEach:i?p:null}}},eO={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function a(n,i){for(var o=n.getItemModel(i),s=0;s<p_.length;s++){var l=p_[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:r.hasItemOption?a:null}}};function tO(t,e,r){switch(r){case"color":var a=t.getItemVisual(e,"style");return a[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r)}}function rO(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function ns(t,e,r){for(var a;t&&!(e(t)&&(a=t,r));)t=t.__hostTarget||t.parent;return a}var qt=new zr,c_={};function aO(t,e){c_[t]=e}function nO(t){return c_[t]}var iO=Math.round(Math.random()*9),oO=typeof Object.defineProperty=="function",sO=(function(){function t(){this._id="__ec_inner_"+iO++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var a=this._guard(e);return oO?Object.defineProperty(a,this._id,{value:r,enumerable:!1,configurable:!0}):a[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})();function gn(t){return isFinite(t)}function lO(t,e,r){var a=e.x==null?0:e.x,n=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(a=a*r.width+r.x,n=n*r.width+r.x,i=i*r.height+r.y,o=o*r.height+r.y),a=gn(a)?a:0,n=gn(n)?n:1,i=gn(i)?i:0,o=gn(o)?o:0;var s=t.createLinearGradient(a,i,n,o);return s}function uO(t,e,r){var a=r.width,n=r.height,i=Math.min(a,n),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*a+r.x,s=s*n+r.y,l=l*i),o=gn(o)?o:.5,s=gn(s)?s:.5,l=l>=0&&gn(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function f_(t,e,r){for(var a=e.type==="radial"?uO(t,e,r):lO(t,e,r),n=e.colorStops,i=0;i<n.length;i++)a.addColorStop(n[i].offset,n[i].color);return a}function pO(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function qu(t){return parseInt(t,10)}function h_(t,e,r){var a=["width","height"][e],n=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[a]!=null&&r[a]!=="auto")return parseFloat(r[a]);var s=document.defaultView.getComputedStyle(t);return(t[n]||qu(s[a])||qu(t.style[a]))-(qu(s[i])||0)-(qu(s[o])||0)||0}function cO(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:be(t)?[t]:W(t)?t:null}function Ed(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&cO(e.lineDash,e.lineWidth),a=e.lineDashOffset;if(r){var n=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;n&&n!==1&&(r=K(r,function(i){return i/n}),a/=n)}return[r,a]}var fO=new sa(!0);function ju(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function d_(t){return typeof t=="string"&&t!=="none"}function Zu(t){var e=t.fill;return e!=null&&e!=="none"}function v_(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function g_(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function m_(t,e,r){var a=tc(e.image,e.__image,r);if(Us(a)){var n=t.createPattern(a,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*Hs),i.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(i)}return n}}function hO(t,e,r,a,n){var i,o=ju(r),s=Zu(r),l=r.strokePercent,u=l<1,p=!e.path;(!e.silent||u)&&p&&e.createPathProxy();var c=e.path||fO,f=e.__dirty;if(!a){var h=r.fill,d=r.stroke,v=s&&!!h.colorStops,m=o&&!!d.colorStops,g=s&&!!h.image,y=o&&!!d.image,b=void 0,k=void 0,w=void 0,_=void 0,x=void 0;(v||m)&&(x=e.getBoundingRect()),v&&(b=f?f_(t,h,x):e.__canvasFillGradient,e.__canvasFillGradient=b),m&&(k=f?f_(t,d,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=k),g&&(w=f||!e.__canvasFillPattern?m_(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=w),y&&(_=f||!e.__canvasStrokePattern?m_(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),v?t.fillStyle=b:g&&(w?t.fillStyle=w:s=!1),m?t.strokeStyle=k:y&&(_?t.strokeStyle=_:o=!1)}var T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold);var C,P;t.setLineDash&&r.lineDash&&(i=Ed(e),C=i[0],P=i[1]);var S=!0;(p||f&Un)&&(c.setDPR(t.dpr),u?c.setContext(null):(c.setContext(t),S=!1),c.reset(),e.buildPath(c,e.shape,a),c.toStatic(),e.pathUpdated()),S&&c.rebuildPath(t,u?l:1),C&&(t.setLineDash(C),t.lineDashOffset=P),a?(n.batchFill=s,n.batchStroke=o):r.strokeFirst?(o&&g_(t,r),s&&v_(t,r)):(s&&v_(t,r),o&&g_(t,r)),C&&t.setLineDash([])}function dO(t,e,r){var a=e.__image=tc(r.image,e.__image,e,e.onload);if(!(!a||!Us(a))){var n=r.x||0,i=r.y||0,o=e.getWidth(),s=e.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),r.sWidth&&r.sHeight){var u=r.sx||0,p=r.sy||0;t.drawImage(a,u,p,r.sWidth,r.sHeight,n,i,o,s)}else if(r.sx&&r.sy){var u=r.sx,p=r.sy,c=o-u,f=s-p;t.drawImage(a,u,p,c,f,n,i,o,s)}else t.drawImage(a,n,i,o,s)}}function vO(t,e,r){var a,n=r.text;if(n!=null&&(n+=""),n){t.font=r.font||Nr,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var i=void 0,o=void 0;t.setLineDash&&r.lineDash&&(a=Ed(e),i=a[0],o=a[1]),i&&(t.setLineDash(i),t.lineDashOffset=o),r.strokeFirst?(ju(r)&&t.strokeText(n,r.x,r.y),Zu(r)&&t.fillText(n,r.x,r.y)):(Zu(r)&&t.fillText(n,r.x,r.y),ju(r)&&t.strokeText(n,r.x,r.y)),i&&t.setLineDash([])}}var y_=["shadowBlur","shadowOffsetX","shadowOffsetY"],b_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function k_(t,e,r,a,n){var i=!1;if(!a&&(r=r||{},e===r))return!1;if(a||e.opacity!==r.opacity){dt(t,n),i=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Ha.opacity:o}(a||e.blend!==r.blend)&&(i||(dt(t,n),i=!0),t.globalCompositeOperation=e.blend||Ha.blend);for(var s=0;s<y_.length;s++){var l=y_[s];(a||e[l]!==r[l])&&(i||(dt(t,n),i=!0),t[l]=t.dpr*(e[l]||0))}return(a||e.shadowColor!==r.shadowColor)&&(i||(dt(t,n),i=!0),t.shadowColor=e.shadowColor||Ha.shadowColor),i}function w_(t,e,r,a,n){var i=e.style,o=a?null:r&&r.style||{};if(i===o)return!1;var s=k_(t,i,o,a,n);if((a||i.fill!==o.fill)&&(s||(dt(t,n),s=!0),d_(i.fill)&&(t.fillStyle=i.fill)),(a||i.stroke!==o.stroke)&&(s||(dt(t,n),s=!0),d_(i.stroke)&&(t.strokeStyle=i.stroke)),(a||i.opacity!==o.opacity)&&(s||(dt(t,n),s=!0),t.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(dt(t,n),s=!0),t.lineWidth=u)}for(var p=0;p<b_.length;p++){var c=b_[p],f=c[0];(a||i[f]!==o[f])&&(s||(dt(t,n),s=!0),t[f]=i[f]||c[1])}return s}function gO(t,e,r,a,n){return k_(t,e.style,r&&r.style,a,n)}function __(t,e){var r=e.transform,a=t.dpr||1;r?t.setTransform(a*r[0],a*r[1],a*r[2],a*r[3],a*r[4],a*r[5]):t.setTransform(a,0,0,a,0,0)}function mO(t,e,r){for(var a=!1,n=0;n<t.length;n++){var i=t[n];a=a||i.isZeroArea(),__(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}r.allClipped=a}function yO(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var x_=1,P_=2,S_=3,T_=4;function bO(t){var e=Zu(t),r=ju(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function dt(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function kO(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Id(t,e,r),Od(t,r)}function Id(t,e,r){var a=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~tr,e.__isRendered=!1;return}var n=e.__clipPaths,i=r.prevElClipPaths,o=e.style,s=!1,l=!1;if((!i||pO(n,i))&&(i&&(dt(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),n&&n.length&&(dt(t,r),t.save(),mO(n,t,r),s=!0,r.prevElClipPaths=n)),r.allClipped){e.__dirty&=~tr,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var p=e instanceof me&&e.autoBatch&&bO(o);s||yO(a,u.transform)?(dt(t,r),__(t,e)):p||dt(t,r),e instanceof me?(r.lastDrawType!==x_&&(l=!0,r.lastDrawType=x_),w_(t,e,u,l,r),(!p||!r.batchFill&&!r.batchStroke)&&t.beginPath(),hO(t,e,o,p,r)):e instanceof co?(r.lastDrawType!==S_&&(l=!0,r.lastDrawType=S_),w_(t,e,u,l,r),vO(t,e,o)):e instanceof Bt?(r.lastDrawType!==P_&&(l=!0,r.lastDrawType=P_),gO(t,e,u,l,r),dO(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==T_&&(l=!0,r.lastDrawType=T_),wO(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(p&&dt(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Od(t,e){dt(t,e),e.prevElClipPaths&&t.restore()}function wO(t,e,r){var a=e.getDisplayables(),n=e.getTemporalDisplayables();t.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=a.length;o<s;o++){var l=a[o];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),Id(t,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}Od(t,i);for(var u=0,p=n.length;u<p;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),Id(t,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}Od(t,i),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Rd=new sO,C_=new En(100),D_=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Bd(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),a=e.getZr(),n=a.painter.type==="svg";t.dirty&&Rd.delete(t);var i=Rd.get(t);if(i)return i;var o=pe(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/r,Rd.set(t,s),t.dirty=!1,s;function l(u){for(var p=[r],c=!0,f=0;f<D_.length;++f){var h=o[D_[f]];if(h!=null&&!W(h)&&!q(h)&&!be(h)&&typeof h!="boolean"){c=!1;break}p.push(h)}var d;if(c){d=p.join(",")+(n?"-svg":"");var v=C_.get(d);v&&(n?u.svgElement=v:u.image=v)}var m=L_(o.dashArrayX),g=_O(o.dashArrayY),y=A_(o.symbol),b=xO(m),k=M_(g),w=!n&&yr.createCanvas(),_=n&&{tag:"g",attrs:{},key:"dcl",children:[]},x=C(),T;w&&(w.width=x.width*r,w.height=x.height*r,T=w.getContext("2d")),P(),c&&C_.put(d,w||_),u.image=w,u.svgElement=_,u.svgWidth=x.width,u.svgHeight=x.height;function C(){for(var S=1,L=0,D=b.length;L<D;++L)S=Oy(S,b[L]);for(var M=1,L=0,D=y.length;L<D;++L)M=Oy(M,y[L].length);S*=M;var I=k*b.length*y.length;return{width:Math.max(1,Math.min(S,o.maxTileWidth)),height:Math.max(1,Math.min(I,o.maxTileHeight))}}function P(){T&&(T.clearRect(0,0,w.width,w.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,w.width,w.height)));for(var S=0,L=0;L<g.length;++L)S+=g[L];if(S<=0)return;for(var D=-k,M=0,I=0,E=0;D<x.height;){if(M%2===0){for(var O=I/2%y.length,R=0,B=0,N=0;R<x.width*2;){for(var F=0,L=0;L<m[E].length;++L)F+=m[E][L];if(F<=0)break;if(B%2===0){var U=(1-o.symbolSize)*.5,Y=R+m[E][B]*U,z=D+g[M]*U,j=m[E][B]*o.symbolSize,ne=g[M]*o.symbolSize,De=N/2%y[O].length;Ee(Y,z,j,ne,y[O][De])}R+=m[E][B],++N,++B,B===m[E].length&&(B=0)}++E,E===m.length&&(E=0)}D+=g[M],++I,++M,M===g.length&&(M=0)}function Ee(de,Ce,te,ue,_t){var Fe=n?1:r,fr=Ir(_t,de*Fe,Ce*Fe,te*Fe,ue*Fe,o.color,o.symbolKeepAspect);if(n){var xt=a.painter.renderOneToVNode(fr);xt&&_.children.push(xt)}else kO(T,fr)}}}}function A_(t){if(!t||t.length===0)return[["rect"]];if(q(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!q(t[r])){e=!1;break}if(e)return A_([t]);for(var a=[],r=0;r<t.length;++r)q(t[r])?a.push([t[r]]):a.push(t[r]);return a}function L_(t){if(!t||t.length===0)return[[0,0]];if(be(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,a=0;a<t.length;++a)if(!be(t[a])){r=!1;break}if(r)return L_([t]);for(var n=[],a=0;a<t.length;++a)if(be(t[a])){var e=Math.ceil(t[a]);n.push([e,e])}else{var e=K(t[a],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function _O(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(be(t)){var e=Math.ceil(t);return[e,e]}var r=K(t,function(a){return Math.ceil(a)});return t.length%2?r.concat(r):r}function xO(t){return K(t,function(e){return M_(e)})}function M_(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var PO=vf(SO);function SO(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var a=r.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=Bd(s,e)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=Bd(n,e)}}})}var TO=1,CO=800,DO=900,AO=920,LO=1e3,MO=2e3,E_=5e3,I_=1e3,EO=1100,Nd=2e3,O_=3e3,IO=4e3,Qu=4500,OO=4600,RO=5e3,BO=6e3,R_=7e3,NO={PROCESSOR:{SERIES_FILTER:CO,AXIS_STATISTICS:AO,FILTER:LO,STATISTIC:E_,STATISTICS:E_},VISUAL:{LAYOUT:I_,PROGRESSIVE_LAYOUT:EO,GLOBAL:Nd,CHART:O_,POST_CHART_LAYOUT:OO,COMPONENT:IO,BRUSH:RO,CHART_ITEM:Qu,ARIA:BO,DECAL:R_}},Ue="__flagInMainProcess",Ju="__mainProcessVersion",Ke="__pendingUpdate",Fd="__needsUpdateStatus",B_=/^[a-zA-Z0-9_]+$/,zd="__connectUpdateStatus",N_=0,FO=1,zO=2;function F_(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return H_(this,t,e)}}function z_(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return H_(this,t,e)}}function H_(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),zr.prototype[e].apply(t,r)}var V_=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(zr),U_=V_.prototype;U_.on=z_("on"),U_.off=z_("off");var mn,Hd,ep,Qr,tp,Vd,Ud,_i,xi,G_,W_,Gd,$_,rp,Y_,K_,jt,X_,Pi,q_=(function(t){V(e,t);function e(r,a,n){var i=t.call(this,new QI)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},i.__v_skip=!0,i._dom=r;var o="canvas",s="auto",l=!1;i[Ju]=1,n.ssr&&vI(function(f){var h=ce(f),d=h.dataIndex;if(d!=null){var v=ae();return v.set("series_index",h.seriesIndex),v.set("data_index",d),h.ssrType&&v.set("ssr_type",h.ssrType),v}});var u=i._zr=Nw(r,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:Z(n.useDirtyRect,l),useCoarsePointer:Z(n.useCoarsePointer,s),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=nd(ge(u.flush,u),17),i._updateTheme(a),i._locale=SL(n.locale||Fb),i._coordSysMgr=new sh;var p=i._api=Y_(i);function c(f,h){return f.__prio-h.__prio}return Gu(np,c),Gu(Kd,c),i._scheduler=new a_(i,p,Kd,np),i._messageCenter=new V_,i._initEvents(),i.resize=ge(i.resize,i),u.animation.on("frame",i._onframe,i),G_(u,i),W_(u,i),Fs(i),i}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,a=this._model,n=this._api;if(X_(this),this[Ke]){var i=this[Ke].silent;this[Ue]=!0,Pi(this);try{mn(this),Qr.update.call(this,null,this[Ke].updateParams)}catch(l){throw this[Ue]=!1,this[Ke]=null,l}this._zr.flush(),this[Ue]=!1,this[Ke]=null,_i.call(this,i),xi.call(this,i)}else if(r.unfinished){var o=TO;do{r.unfinished=!1;var s=yr.getTime();r.performSeriesTasks(a),r.performDataProcessorTasks(a),Vd(this,a),r.performVisualTasks(a),rp(this,this._model,n,"remain",{}),o-=yr.getTime()-s}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,a,n){if(!this[Ue]){if(this._disposed){this.id;return}var i,o,s;if(J(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Ue]=!0,Pi(this),!this._model||a){var l=new xI(this._api),u=this._theme,p=this._model=new Dd;p.scheduler=this._scheduler,p.ssr=this._ssr,p.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Xd);var c={seriesTransition:s,optionChanged:!0};if(n)this[Ke]={silent:i,updateParams:c},this[Ue]=!1,this.getZr().wakeUp();else{try{mn(this),Qr.update.call(this,null,c)}catch(f){throw this[Ke]=null,this[Ue]=!1,f}this._ssr||this._zr.flush(),this[Ke]=null,this[Ue]=!1,_i.call(this,i),xi.call(this,i)}}},e.prototype.setTheme=function(r,a){if(!this[Ue]){if(this._disposed){this.id;return}var n=this._model;if(n){var i=a&&a.silent,o=null;this[Ke]&&(i==null&&(i=this[Ke].silent),o=this[Ke].updateParams,this[Ke]=null),this[Ue]=!0,Pi(this);try{this._updateTheme(r),n.setTheme(this._theme),mn(this),Qr.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Ue]=!1,s}this[Ue]=!1,_i.call(this,i),xi.call(this,i)}}},e.prototype._updateTheme=function(r){q(r)&&(r=j_[r]),r&&(r=le(r),r&&Qw(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||se.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var a=this._zr.painter;return a.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,a=r.storage.getDisplayList();return A(a,function(n){n.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var a=r.excludeComponents,n=this._model,i=[],o=this;A(a,function(l){n.eachComponent({mainType:l},function(u){var p=o._componentsMap[u.__viewId];p.group.ignore||(i.push(p),p.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return A(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var a=r.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(Z_[n]){var l=s,u=s,p=-s,c=-s,f=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();A(is,function(b,k){if(b.group===n){var w=a?b.getZr().painter.getSvgDom().innerHTML:b.renderToCanvas(le(r)),_=b.getDom().getBoundingClientRect();l=i(_.left,l),u=i(_.top,u),p=o(_.right,p),c=o(_.bottom,c),f.push({dom:w,left:_.left,top:_.top})}}),l*=h,u*=h,p*=h,c*=h;var d=p-l,v=c-u,m=yr.createCanvas(),g=Nw(m,{renderer:a?"svg":"canvas"});if(g.resize({width:d,height:v}),a){var y="";return A(f,function(b){var k=b.left-l,w=b.top-u;y+='<g transform="translate('+k+","+w+')">'+b.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new Ie({shape:{x:0,y:0,width:d,height:v},style:{fill:r.connectedBackgroundColor}})),A(f,function(b){var k=new Bt({style:{x:b.left*h-l,y:b.top*h-u,image:b.dom}});g.add(k)}),g.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,a,n){return tp(this,"convertToPixel",r,a,n)},e.prototype.convertToLayout=function(r,a,n){return tp(this,"convertToLayout",r,a,n)},e.prototype.convertFromPixel=function(r,a,n){return tp(this,"convertFromPixel",r,a,n)},e.prototype.containPixel=function(r,a){if(this._disposed){this.id;return}var n=this._model,i,o=pf(n,r);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var p=u.coordinateSystem;if(p&&p.containPoint)i=i||!!p.containPoint(a);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(a,u))}},this)},this),!!i},e.prototype.getVisual=function(r,a){var n=this._model,i=pf(n,r,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?tO(s,l,a):rO(s,a)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;A(HO,function(n){var i=function(o){var s=r.getModel(),l=o.target,u,p=n==="globalout";if(p?u={}:l&&ns(l,function(v){var m=ce(v);if(m&&m.dataIndex!=null){var g=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return u=g&&g.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return u=H({},m.eventData),!0},!0),u){var c=u.componentType,f=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=u.seriesIndex);var h=c&&f!=null&&s.getComponent(c,f),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=n,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},r.trigger(n,u)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)});var a=this._messageCenter;A(Yd,function(n,i){a.on(i,function(o){r.trigger(i,o)})}),P4(a,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&Hy(this.getDom(),jd,"");var a=this,n=a._api,i=a._model;A(a._componentsViews,function(o){o.dispose(i,n)}),A(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete is[a.id]},e.prototype.resize=function(r){if(!this[Ue]){if(this._disposed){this.id;return}this._zr.resize(r);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=r&&r.silent;this[Ke]&&(i==null&&(i=this[Ke].silent),n=!0,this[Ke]=null),this[Ue]=!0,Pi(this);try{n&&mn(this),Qr.update.call(this,{type:"resize",animation:H({duration:0},r&&r.animation)})}catch(o){throw this[Ue]=!1,o}this[Ue]=!1,_i.call(this,i),xi.call(this,i)}}},e.prototype.showLoading=function(r,a){if(this._disposed){this.id;return}if(J(r)&&(a=r,r=""),r=r||"default",this.hideLoading(),!!qd[r]){var n=qd[r](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var a=H({},r);return a.type=$d[r.type],a},e.prototype.dispatchAction=function(r,a){if(this._disposed){this.id;return}if(J(a)||(a={silent:!!a}),!!ap[r.type]&&this._model){if(this[Ue]){this._pendingActions.push(r);return}var n=a.silent;Ud.call(this,r,n);var i=a.flush;i?this._zr.flush():i!==!1&&se.browser.weChat&&this._throttledZrFlush(),_i.call(this,n),xi.call(this,n)}},e.prototype.updateLabelLayout=function(){qt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var a=r.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){mn=function(c){Y5(c._model);var f=c._scheduler;f.restorePipelines(c._zr,c._model),f.prepareStageTasks(),Hd(c,!0),Hd(c,!1),f.plan()},Hd=function(c,f){for(var h=c._model,d=c._scheduler,v=f?c._componentsViews:c._chartsViews,m=f?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,b=0;b<v.length;b++)v[b].__alive=!1;f?h.eachComponent(function(_,x){_!=="series"&&k(x)}):h.eachSeries(k);function k(_){var x=_.__requireNewView;_.__requireNewView=!1;var T="_ec_"+_.id+"_"+_.type,C=!x&&m[T];if(!C){var P=kr(_.type),S=f?Dt.getClass(P.main,P.sub):at.getClass(P.sub);C=new S,C.init(h,y),m[T]=C,v.push(C),g.add(C.group)}_.__viewId=C.__id=T,C.__alive=!0,C.__model=_,C.group.__ecComponentInfo={mainType:_.mainType,index:_.componentIndex},!f&&d.prepareView(C,_,h,y)}for(var b=0;b<v.length;){var w=v[b];w.__alive?b++:(!f&&w.renderTask.dispose(),g.remove(w.group),w.dispose(h,y),v.splice(b,1),m[w.__id]===w&&delete m[w.__id],w.__id=w.group.__ecComponentInfo=null)}},ep=function(c,f,h,d,v){var m=c._model;if(m.setUpdatePayload(h),!d){A([].concat(c._componentsViews).concat(c._chartsViews),k);return}var g=WD(h,d,v),y=h.excludeSeriesId,b;y!=null&&(b=ae(),A(ut(y),function(w){var _=Ar(w,null);_!=null&&b.set(_,!0)})),m&&m.eachComponent(g,function(w){var _=b&&b.get(w.id)!=null;if(!_)if(v0(h))if(w instanceof ft)h.type===Ja&&!h.notBlur&&!w.get(["emphasis","disabled"])&&cA(w,h,c._api);else{var x=Sf(w.mainType,w.componentIndex,h.name,c._api),T=x.focusSelf,C=x.dispatchers;h.type===Ja&&T&&!h.notBlur&&Pf(w.mainType,w.componentIndex,c._api),C&&A(C,function(P){h.type===Ja?Ll(P):Ml(P)})}else Df(h)&&w instanceof ft&&(dA(w,h,c._api),f0(w),jt(c))},c),m&&m.eachComponent(g,function(w){var _=b&&b.get(w.id)!=null;_||k(c[d==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},c);function k(w){w&&w.__alive&&w[f]&&w[f](w.__model,m,c._api,h)}},Qr={prepareAndUpdate:function(c){mn(this),Qr.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,f){var h=this._model,d=this._api,v=this._zr,m=this._coordSysMgr,g=this._scheduler;if(h){K5(h),h.setUpdatePayload(c),g.restoreData(h,c),g.performSeriesTasks(h),m.create(h,d),qt.trigger("coordsys:aftercreate",h,d),g.performDataProcessorTasks(h,c),Vd(this,h),m.update(h,d),a(h),g.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";v.setBackgroundColor(y);var b=h.get("darkMode");b!=null&&b!=="auto"&&v.setDarkMode(b),Gd(this,h,d,c,f),qt.trigger("afterupdate",h,d)}},updateTransform:function(c){var f=this,h=f._model,d=f._api;if(h){h.setUpdatePayload(c);var v=[];h.eachComponent(function(g,y){if(g!==Ky){var b=f.getViewOfComponentModel(y);if(b&&b.__alive)if(b.updateTransform){var k=b.updateTransform(y,h,d,c);k&&k.update&&v.push(b)}else v.push(b)}});var m=ae();h.eachSeries(function(g){var y=f._chartsMap[g.__viewId],b=g.pipelineContext;if(y.updateTransform&&!b.progressiveRender){var k=y.updateTransform(g,h,d,c);k&&k.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),f._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:m}),rp(f,h,d,c,{},m),qt.trigger("afterupdate",h,d)}},updateView:function(c){var f=this._model;f&&(f.setUpdatePayload(c),at.markUpdateMethod(c,"updateView"),a(f),this._scheduler.performVisualTasks(f,c,{setDirty:!0}),Gd(this,f,this._api,c,{}),qt.trigger("afterupdate",f,this._api))},updateVisual:function(c){var f=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(d){d.getData().clearAllVisual()}),at.markUpdateMethod(c,"updateVisual"),a(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,v){if(d!=="series"){var m=f.getViewOfComponentModel(v);m&&m.__alive&&m.updateVisual(v,h,f._api,c)}}),h.eachSeries(function(d){var v=f._chartsMap[d.__viewId];v.updateVisual(d,h,f._api,c)}),qt.trigger("afterupdate",h,this._api))},updateLayout:function(c){Qr.update.call(this,c)}};function r(c,f,h,d,v){if(c._disposed){c.id;return}for(var m=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,b=pf(m,h),k=0;k<g.length;k++){var w=g[k];if(w[f]&&(y=w[f](m,b,d,v))!=null)return y}}tp=r,Vd=function(c,f){var h=c._chartsMap,d=c._scheduler;f.eachSeries(function(v){d.updateStreamModes(v,h[v.__viewId])})},Ud=function(c,f){var h=this,d=this.getModel(),v=c.type,m=c.escapeConnect,g=ap[v],y=(g.update||"update").split(":"),b=y.pop(),k=y[0]!=null&&kr(y[0]);this[Ue]=!0,Pi(this);var w=[c],_=!1;c.batch&&(_=!0,w=K(c.batch,function(E){return E=pe(H({},E),c),E.batch=null,E}));var x=[],T,C=[],P=g.nonRefinedEventType,S=Df(c),L=v0(c);if(L&&c0(this._api),A(w,function(E){var O=g.action(E,d,h._api);if(g.refineEvent?C.push(O):T=O,T=T||H({},E),T.type=P,x.push(T),L){var R=cf(c),B=R.queryOptionMap,N=R.mainTypeSpecified,F=N?B.keys()[0]:"series";ep(h,b,E,F),jt(h)}else S?(ep(h,b,E,"series"),jt(h)):k&&ep(h,b,E,k.main,k.sub)}),b!=="none"&&!L&&!S&&!k)try{this[Ke]?(mn(this),Qr.update.call(this,c),this[Ke]=null):Qr[b].call(this,c)}catch(E){throw this[Ue]=!1,E}if(_?T={type:P,escapeConnect:m,batch:x}:T=x[0],this[Ue]=!1,!f){var D=void 0;if(g.refineEvent){var M=g.refineEvent(C,c,d,this._api).eventContent;Jt(J(M)),D=pe({type:g.refinedEventType},M),D.fromAction=c.type,D.fromActionPayload=c,D.escapeConnect=!0}var I=this._messageCenter;I.trigger(T.type,T),D&&I.trigger(D.type,D)}},_i=function(c){for(var f=this._pendingActions;f.length;){var h=f.shift();Ud.call(this,h,c)}},xi=function(c){!c&&this.trigger("updated")},G_=function(c,f){c.on("rendered",function(h){f.trigger("rendered",h),c.animation.isFinished()&&!f[Ke]&&!f._scheduler.unfinished&&!f._pendingActions.length?f.trigger("finished"):c.refresh()})},W_=function(c,f){c.on("mouseover",function(h){var d=h.target,v=ns(d,Cf);v&&(fA(v,h,f._api),jt(f))}).on("mouseout",function(h){var d=h.target,v=ns(d,Cf);v&&(hA(v,h,f._api),jt(f))}).on("click",function(h){var d=h.target,v=ns(d,function(y){return ce(y).dataIndex!=null},!0);if(v){var m=v.selected?"unselect":"select",g=ce(v);f._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function a(c){c.clearColorPalette(),c.eachSeries(function(f){f.clearColorPalette()})}function n(c){var f=[],h=[],d=!1;if(c.eachComponent(function(y,b){var k=b.get("zlevel")||0,w=b.get("z")||0,_=b.getZLevelKey();d=d||!!_,(y==="series"?h:f).push({zlevel:k,z:w,idx:b.componentIndex,type:y,key:_})}),d){var v=f.concat(h),m,g;Gu(v,function(y,b){return y.zlevel===b.zlevel?y.z-b.z:y.zlevel-b.zlevel}),A(v,function(y){var b=c.getComponent(y.type,y.idx),k=y.zlevel,w=y.key;m!=null&&(k=Math.max(m,k)),w?(k===m&&w!==g&&k++,g=w):g&&(k===m&&k++,g=""),m=k,b.setZLevel(k)})}}Gd=function(c,f,h,d,v){n(f),$_(c,f,h,d,v),A(c._chartsViews,function(m){m.__alive=!1}),rp(c,f,h,d,v),A(c._chartsViews,function(m){m.__alive||m.remove(f,h)})},$_=function(c,f,h,d,v,m){A(m||c._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,f,h,d),l(y,g),p(y,g)})},rp=function(c,f,h,d,v,m){var g=c._scheduler;v=H(v||{},{updatedSeries:f.getSeries()}),qt.trigger("series:beforeupdate",f,h,v);var y=!1;f.eachSeries(function(b){var k=c._chartsMap[b.__viewId];k.__alive=!0;var w=k.renderTask;g.updatePayload(w,d),u(b,k),m&&m.get(b.uid)&&w.dirty(),w.perform(g.getPerformArgs(w))&&(y=!0),k.group.silent=!!b.get("silent"),s(b,k),f0(b)}),g.unfinished=y||g.unfinished,qt.trigger("series:layoutlabels",f,h,v),qt.trigger("series:transition",f,h,v),f.eachSeries(function(b){var k=c._chartsMap[b.__viewId];l(b,k),p(b,k)}),o(c,f),qt.trigger("series:afterupdate",f,h,v)},jt=function(c){c[Fd]=!0,c.getZr().wakeUp()},Pi=function(c){c[Ju]=(c[Ju]+1)%1e6},X_=function(c){c[Fd]&&(c.getZr().storage.traverse(function(f){xo(f)||i(f)}),c[Fd]=!1)};function i(c){for(var f=[],h=c.currentStates,d=0;d<h.length;d++){var v=h[d];v==="emphasis"||v==="blur"||v==="select"||f.push(v)}c.selected&&c.states.select&&f.push("select"),c.hoverState===Pl&&c.states.emphasis?f.push("emphasis"):c.hoverState===xl&&c.states.blur&&f.push("blur"),c.useStates(f)}function o(c,f){var h=c._zr;if(h.painter.type==="canvas"){var d=h.storage,v=0;d.traverse(function(g){g.isGroup||v++});var m=v>Z(f.get("hoverLayerThreshold"),Hw.hoverLayerThreshold)&&!se.node&&!se.worker;(c._usingTHL||m)&&(f.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(b){var k=b.states.emphasis;k&&k.hoverLayer!==Nf&&(k.hoverLayer=m?I0:E0)})}}),c._usingTHL=m)}}function s(c,f){var h=c.get("blendMode")||null;f.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(c,f){if(!c.preventAutoZ){var h=V0(c);f.eachRendered(function(d){return U0(d,h.z,h.zlevel),!0})}}function u(c,f){f.eachRendered(function(h){if(!xo(h)){var d=h.getTextContent(),v=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function p(c,f){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),v=h.get("duration"),m=v>0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;f.eachRendered(function(g){if(g.states&&g.states.emphasis){if(xo(g))return;if(g instanceof me&&kA(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=m;var b=g.getTextContent(),k=g.getTextGuideLine();b&&(b.stateTransition=m),k&&(k.stateTransition=m)}g.__dirty&&i(g)}})}Y_=function(c){return new((function(f){V(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var v=d.__ecComponentInfo;if(v!=null)return c._model.getComponent(v.mainType,v.index);d=d.parent}},h.prototype.enterEmphasis=function(d,v){Ll(d,v),jt(c)},h.prototype.leaveEmphasis=function(d,v){Ml(d,v),jt(c)},h.prototype.enterBlur=function(d){pA(d),jt(c)},h.prototype.leaveBlur=function(d){s0(d),jt(c)},h.prototype.enterSelect=function(d){l0(d),jt(c)},h.prototype.leaveSelect=function(d){u0(d),jt(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h.prototype.getECUpdateCycleVersion=function(){return c[Ju]},h.prototype.usingTHL=function(){return c._usingTHL},h})(jy))(c)},K_=function(c){function f(h,d){for(var v=0;v<h.length;v++){var m=h[v];m[zd]=d}}A($d,function(h,d){c._messageCenter.on(d,function(v){if(Z_[c.group]&&c[zd]!==N_){if(v&&v.escapeConnect)return;var m=c.makeActionFromEvent(v),g=[];A(is,function(y){y!==c&&y.group===c.group&&g.push(y)}),f(g,N_),A(g,function(y){y[zd]!==FO&&y.dispatchAction(m)}),f(g,zO)}})})}})(),e})(zr),Wd=q_.prototype;Wd.on=F_("on"),Wd.off=F_("off"),Wd.one=function(t,e,r){var a=this;function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),a.off(t,n)}this.on.call(this,t,n,r)};var HO=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function EF(t){}var ap={},$d={},Yd={},Kd=[],Xd=[],np=[],j_={},qd={},is={},Z_={},VO=+new Date-0,jd="_echarts_instance_";function UO(t,e,r){var a=!(r&&r.ssr);if(a){var n=GO(t);if(n)return n}var i=new q_(t,e,r);return i.id="ec_"+VO++,is[i.id]=i,a&&Hy(t,jd,i.id),K_(i),qt.trigger("afterinit",i),i}function GO(t){return is[$D(t,jd)]}function Q_(t,e){j_[t]=e}function J_(t){fe(Xd,t)<0&&Xd.push(t)}function ex(t,e){Qd(Kd,t,e,MO)}function WO(t){Zd("afterinit",t)}function $O(t){Zd("afterupdate",t)}function Zd(t,e){qt.on(t,e)}function Si(t,e,r){var a,n,i,o,s;re(e)&&(r=e,e=""),J(t)?(a=t.type,n=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),i=t.refineEvent):(a=t,n=e);function l(p){return p.toLowerCase()}n=l(n||a);var u=i?l(a):n;ap[a]||(Jt(B_.test(a)&&B_.test(n)),i&&Jt(n!==a),ap[a]={actionType:a,refinedEventType:n,nonRefinedEventType:u,update:o,action:r,refineEvent:i},Yd[n]=1,i&&s&&(Yd[u]=1),$d[u]=a)}function YO(t,e){sh.register(t,e)}function KO(t,e){Qd(np,t,e,I_,"layout")}function yn(t,e){Qd(np,t,e,O_,"visual")}var tx=[];function Qd(t,e,r,a,n,i){if((re(e)||J(e))&&(r=e,e=a),!(fe(tx,r)>=0)){tx.push(r);var o=a_.wrapStageHandler(r,n);o.__prio=e,o.__raw=r,t.push(o)}}function rx(t,e){qd[t]=e}function XO(t,e,r){var a=nO("registerMap");a&&a(t,e,r)}var qO=nM;yn(Nd,zI),yn(Qu,HI),yn(Qu,VI),yn(Nd,JI),yn(Qu,eO),yn(R_,PO),J_(Qw),ex(DO,RI),rx("default",UI),Si({type:Ja,event:Ja,update:Ja},qe),Si({type:Tl,event:Tl,update:Tl},qe),Si({type:Cl,event:kf,update:Cl,action:qe,refineEvent:Jd,publishNonRefinedEvent:!0}),Si({type:bf,event:kf,update:bf,action:qe,refineEvent:Jd,publishNonRefinedEvent:!0}),Si({type:Dl,event:kf,update:Dl,action:qe,refineEvent:Jd,publishNonRefinedEvent:!0});function Jd(t,e,r,a){return{eventContent:{selected:vA(r),isFromClick:e.isFromClick||!1}}}Q_("default",{}),Q_("dark",u_);var ax=[],jO={registerPreprocessor:J_,registerProcessor:ex,registerPostInit:WO,registerPostUpdate:$O,registerUpdateLifecycle:Zd,registerAction:Si,registerCoordinateSystem:YO,registerLayout:KO,registerVisual:yn,registerTransform:qO,registerLoading:rx,registerMap:XO,registerImpl:aO,PRIORITY:NO,ComponentModel:ke,ComponentView:Dt,SeriesModel:ft,ChartView:at,registerComponentModel:function(t){ke.registerClass(t)},registerComponentView:function(t){Dt.registerClass(t)},registerSeriesModel:function(t){ft.registerClass(t)},registerChartView:function(t){at.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){ke.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){hI(t,e)}};function cr(t){if(W(t)){A(t,function(e){cr(e)});return}fe(ax,t)>=0||(ax.push(t),re(t)&&(t={install:t}),t.install(jO))}var ZO=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,a){return Jl(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(r,a,n){return n.point(a.getItemLayout(r))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:$.color.primary}},universalTransition:{divideShape:"clone"}},e})(ft),nx=4,QO=(function(){function t(){}return t})(),JO=(function(t){V(e,t);function e(r){var a=t.call(this,r)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.getDefaultShape=function(){return new QO},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(r){r&&!r.contentRetained&&this.reset()},e.prototype.buildPath=function(r,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&i[0]<nx,p=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<n.length;){var f=n[c++],h=n[c++];isNaN(f)||isNaN(h)||p&&!p.contain(f,h)||(s.x=f-i[0]/2,s.y=h-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},e.prototype.afterBrush=function(){var r=this.shape,a=r.points,n=r.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<a.length;){var l=a[s++],u=a[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-n[0]/2,u-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(r,a){for(var n=this.shape,i=n.points,o=n.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var p=u*2,c=i[p]-s/2,f=i[p+1]-l/2;if(r>=c&&a>=f&&r<=c+s&&a<=f+l)return u}return-1},e.prototype.contain=function(r,a){var n=this.transformCoordToLocal(r,a),i=this.getBoundingRect();if(r=n[0],a=n[1],i.contain(r,a)){var o=this.hoverDataIdx=this.findDataIndex(r,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,p=-1/0,c=-1/0,f=0;f<n.length;){var h=n[f++],d=n[f++];l=Math.min(h,l),p=Math.max(h,p),u=Math.min(d,u),c=Math.max(d,c)}r=this._rect=new oe(l-o/2,u-s/2,p-l+o,c-u+s)}return r},e})(me),eR=(function(){function t(){this.group=new Me}return t.prototype.updateData=function(e,r){this._clear(),this._data=e;var a=this._create();a.setShape({points:e.getLayout("points")}),this._setCommon(a,e,r)},t.prototype.updateLayout=function(e){var r=this._data;if(r){var a=r.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var i=(n.endIndex-n.startIndex)*2,o=n.startIndex*4*2;a=new Float32Array(a.buffer,o,i)}n.setShape("points",a),n.reset(),n.stopAnimation()})}},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,r,a,n){var i=this._newAdded[0],o=r.getLayout("points"),s=i&&i.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),i.endIndex=e.end,i.setShape({points:u})}else{this._newAdded=[];var p=this._create();p.startIndex=e.start,p.endIndex=e.end,p.incremental=a,p.setShape({points:o}),this._setCommon(p,r,n)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new JO({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,r,a){var n=r.hostModel;a=a||{};var i=r.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=a.clipShape||null,e.symbolProxy=Ir(r.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<nx;e.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=ce(e);u.seriesIndex=n.seriesIndex,e.on("mousemove",function(p){u.dataIndex=null;var c=e.hoverDataIdx;c>=0&&(u.dataIndex=c+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t})(),tR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,a,n){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.updateData(i,ev(r)),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,a,n){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(r,a,n){this._symbolDraw.incrementalUpdate(r,a.getData(),$y(a),ev(a)),this._finished=r.end===a.getData().count()},e.prototype.updateTransform=function(r,a,n){var i=r.getData();if(this.group.dirty(),this._finished){var o=$h("").reset(r,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(ev(r))}else return{update:!0}},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._updateSymbolDraw=function(r,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new eR:new Sk,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(r,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(at);function ev(t){return{clipShape:KM(t)}}var ix=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})(),tv=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",zt).models[0]},e.type="cartesian2dAxis",e})(ke);Qt(tv,ix);var ox={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:"auto",onZeroAxisIndex:null,lineStyle:{color:$.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:$.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:$.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[$.color.backgroundTint,$.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:$.color.neutral00,borderColor:$.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},rR=Pe({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},ox),rv=Pe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:$.color.axisMinorSplitLine,width:1}}},ox),aR=Pe({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},rv),nR=pe({logBase:10},rv);const sx={category:rR,value:rv,time:aR,log:nR};function lx(t,e,r,a){A(Zk,function(n,i){var o=Pe(Pe({},sx[i],!0),a,!0),s=(function(l){V(u,l);function u(){var p=l!==null&&l.apply(this,arguments)||this;return p.type=e+"Axis."+i,p}return u.prototype.mergeDefaultAndTheme=function(p,c){var f=Fo(this),h=f?zo(p):{},d=c.getTheme();Pe(p,d.get(i+"Axis")),Pe(p,this.getDefaultOption()),p.type=ux(p),f&&va(p,h,f)},u.prototype.optionUpdated=function(){var p=this.option;p.type==="category"&&(this.__ordinalMeta=Nh.createByAxisModel(this))},u.prototype.getCategories=function(p){var c=this.option;if(c.type==="category")return p?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(p){var c=Lu();return c?c.updateModelAxisBreak(this,p):{breaks:[]}},u.type=e+"Axis."+i,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",ux)}function ux(t){return t.type||(t.data?"category":"value")}var iR=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return K(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Xe(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t})(),ip=["x","y"];function px(t){return(t.type==="interval"||t.type==="time")&&!nu(t)}var oR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=jr,r.dimensions=ip,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!px(r)||!px(a))){var n=vu(r,null),i=vu(a,null),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var p=(s[0]-o[0])/l,c=(s[1]-o[1])/u,f=o[0]-n[0]*p,h=o[1]-i[0]*c,d=this._transform=[p,0,0,c,f,h];this._invTransform=ji([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(r[0]))&&n.contain(n.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,a){var n=this.dataToPoint(r),i=this.dataToPoint(a),o=this.getArea(),s=new oe(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,a,n){n=n||[];var i=r[0],o=r[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Lt(n,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},e.prototype.clampData=function(r,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(r[0]),u=i.parse(r[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},e.prototype.pointToData=function(r,a,n){if(n=n||[],this._invTransform)return Lt(n,r,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(r[0]),a),n[1]=o.coordToData(o.toLocalCoord(r[1]),a),n},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-r,o=Math.min(n[0],n[1])-r,s=Math.max(a[0],a[1])-i+r,l=Math.max(n[0],n[1])-o+r;return new oe(i,o,s,l)},e})(iR);function cx(t,e){var r=t.scale,a=t.model,n=Y1(r,a,a.ecModel,t),i=ci(r),o=ci(e)?e.intervalStub:e,s=i?r.intervalStub:r,l=r.base,u=o.getTicks(),p=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,f,h,d;if(c===1)f=h=0,d=1;else if(c===2){var v=Ve(u[0].value-u[1].value),m=Ve(u[1].value-u[2].value);f=h=0,v===m?d=2:(d=1,v<m?f=v/m:h=m/v)}else{var g=o.getConfig().interval;f=(1-(u[0].value-p[0].value)/g)%1,h=(1-(p[c].value-u[c].value)/g)%1,d=c-(f?1:0)-(h?1:0)}var y=n.zoomFixMM,b=y[0]||y[1],k=[n.fixMM[0]||b,n.fixMM[1]||b],w=r.getExtent(),_=s.getExtent(),x=Vk(_,k),T,C,P,S,L,D;function M(U){for(var Y=50,z=0;z<Y&&!U();z++)P=i?P*ye(l,2):e5(P),S=hn(P)}function I(){T=ve(D-P*f,S)}function E(){C=ve(L+P*h,S)}function O(){D=f?ve(T+P*f,S):T}function R(){L=h?ve(C-P*h,S):C}if(k[0]&&k[1]){T=x[0],C=x[1],P=(C-T)/(d+f+h);var B=t.getExtent(),N=Ve(B[1]-B[0]);S=PD([C,T],N,.5/d),O(),R(),Ft(S)&&(P=ve(P,S))}else{var F=x[1]-x[0];P=i?ye(My(F),1):sf(F/d,Ey),S=hn(P),k[0]?(T=x[0],M(function(){if(O(),L=ve(D+P*d,S),E(),C>=x[1])return!0})):k[1]?(C=x[1],M(function(){if(R(),D=ve(L-P*d,S),I(),T<=x[0])return!0})):M(function(){D=ve(fo(x[0]/P)*P,S),L=ve(qa(x[1]/P)*P,S);var U=Vr((L-D)/P);if(U<=d){var Y=d-U,z=void 0,j=n.incl0||i;if(j&&x[0]===0)z=[0,Y];else if(j&&x[1]===0)z=[Y,0];else{var ne=qa(Y/2);z=Y%2===0?[ne,ne]:T+C<x[0]+x[1]?[ne,ne+1]:[ne+1,ne]}if(D=ve(D-P*z[0],S),L=ve(L+P*z[1],S),I(),E(),T<=x[0]&&C>=x[1])return!0}})}e1(r,k,_,[T,C],w,{interval:P,intervalCount:d,intervalPrecision:S,niceExtent:[D,L]})}function fx(t,e){var r=ci(t),a=r?t.intervalStub:t,n=e.fixMinMax||[],i=r?t.getExtent():null,o=a.getExtent(),s=Vk(o,n,e.rawExtentResult);a.setExtent(s[0],s[1]),s=a.getExtent();var l=r?lR(a,e):sR(a,e),u=l.intervalPrecision,p=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=hn(c)),n[0]||(s[0]=ve(qa(s[0]/p)*p,u)),n[1]||(s[1]=ve(fo(s[1]/p)*p,u)),c!=null&&(l.niceExtent=s.slice()),e1(t,n,o,s,i,l)}function sR(t,e){var r=bu(e.splitNumber,5),a=gu(t),n=e.minInterval,i=e.maxInterval,o=sf(a/r,!0);n!=null&&o<n&&(o=n),i!=null&&o>i&&(o=i);var s=hn(o),l=t.getExtent(),u=[ve(fo(l[0]/o)*o,s),ve(qa(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function lR(t,e){var r=bu(e.splitNumber,10),a=t.getExtent(),n=gu(t),i=ye(My(n),1),o=r/n*i;o<=.5&&(i*=10);var s=hn(i),l=[ve(fo(a[0]/i)*i,s),ve(qa(a[1]/i)*i,s)];return{intervalPrecision:s,interval:i,niceExtent:l}}function hx(t){var e=t.scale,r=t.model,a=r.axis,n=r.ecModel;uR(e,r,a,n)}function uR(t,e,r,a,n){var i=Y1(t,e,a,r),o=mu(t)||zh(t);pR(t,{splitNumber:e.get("splitNumber"),fixMinMax:i.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:i}),r&&a&&WE(r,t,i,a)}function pR(t,e){cR[t.type](t,e)}var cR={interval:fx,log:fx,time:p5,ordinal:qe},dx=[[3,1],[0,2]],fR=(function(){function t(e,r,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ip,this._initCartesian(e,r,a),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var a=this._axesMap;A(this._axesList,function(o){W1(o,z1);var s=o.scale;sr(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function n(o){for(var s=he(o),l=[],u=s.length-1;u>=0;u--){var p=o[+s[u]];p.__alignTo?l.push(p):hx(p)}A(l,function(c){dR(c,c.__alignTo)?hx(c):cx(c,c.__alignTo.scale)})}n(a.x),n(a.y);var i={};A(a.x,function(o){vx(a,"y",o,i)}),A(a.y,function(o){vx(a,"x",o,i)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,a){var n=pi(e,r),i=this._rect=Yr(e.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(yx(o,i),!a){var u=gR(i,s,o,l,r),p=void 0;if(l)p=kx(i.clone(),"axisLabel",null,i,o,u,n);else{var c=mR(e,i,n),f=c.outerBoundsRect,h=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;f&&(p=kx(f,h,d,i,o,u,n))}_x(i,o,lr.determine,null,p,n),A(this._coordsList,function(v){v.calcAffineTransform()})}},t.prototype.getAxis=function(e,r){var a=this._axesMap[e];if(a!=null)return a[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var a="x"+e+"y"+r;return this._coordsMap[a]}J(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===e||i[n].getAxis("y").index===r)return i[n]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,a){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},t.prototype.convertFromPixel=function(e,r,a){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,a=e.xAxisModel||r&&r.getReferringComponents("xAxis",zt).models[0],n=e.yAxisModel||r&&r.getReferringComponents("yAxis",zt).models[0],i=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,fe(o,s)<0&&(s=null);else if(a&&n)s=this.getCartesian(a.componentIndex,n.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,a){var n=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,A(s.x,function(p,c){A(s.y,function(f,h){var d="x"+c+"y"+h,v=new oR(d);v.master=n,v.model=e,n._coordsMap[d]=v,n._coordsList.push(v),v.addAxis(p),v.addAxis(f)})}),mx(s.x),mx(s.y);function u(p){return function(c,f){if(hR(c,e)){var h=c.get("position");p==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=f5(c),v=new uE(p,h5(c,d),[0,0],d,h);v.onBand=t1(v.scale,c),v.inverse=c.get("inverse"),c.axis=v,v.model=c,v.grid=i,v.index=f,i._axesList.push(v),s[p][f]=v,l[p]++}}}},t.prototype.getTooltipAxes=function(e){var r=[],a=[];return A(this.getCartesians(),function(n){var i=e!=null&&e!=="auto"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(i);fe(r,i)<0&&r.push(i),fe(a,o)<0&&a.push(o)}),{baseAxes:r,otherAxes:a}},t.create=function(e,r){var a=[];return e.eachComponent("grid",function(n,i){var o=new t(n,e,r);o.name="grid_"+i,o.resize(n,r,!0),n.coordinateSystem=o,a.push(o),A(o._axesList,function(s){zE(s,t.dimIdxMap)})}),e.eachSeries(function(n){var i,o;rL({targetModel:n,coordSysType:jr,coordSysProvider:s});function s(){var l=IE(n),u=l.xAxisModel,p=l.yAxisModel;i=u.axis,o=p.axis;var c=u.getCoordSysModel(),f=c.coordinateSystem;return f.getCartesian(u.componentIndex,p.componentIndex)}i&&o&&(qh(i,n,jr),qh(o,n,jr))},this),a},t.dimensions=ip,t.dimIdxMap=ah(ip),t})();function hR(t,e){return t.getCoordSysModel()===e}function vx(t,e,r,a){r.getAxesOnZeroOf=function(){return i?[i]:[]};var n=t[e],i,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)gx(s,n[l])&&(i=n[l]);else for(var u in n)if(st(n,u)&&gx(s,n[u])&&!a[p(n[u])]){i=n[u];break}i&&(a[p(i)]=!0);function p(c){return c.dim+"_"+c.index}}function gx(t,e){if(!e)return!1;var r=e.scale,a=d5(r,0),n=e&&e.type!=="category"&&e.type!=="time"&&a!==Uh;return n&&t==="auto"&&y5(e)&&(n=!1),n}function mx(t){for(var e=he(t),r,a=[],n=e.length-1;n>=0;n--){var i=t[+e[n]];Hk(i.scale)&&Jk(i.model,i.type)==null&&(i.model.get("alignTicks")&&i.model.get("interval")==null?a.push(i):r=i)}r||(r=a.pop()),r&&A(a,function(o){o.__alignTo=r})}function dR(t,e){return nu(t.scale)||nu(e.scale)||e.scale.getTicks().length<2}function vR(t,e){var r=t.getExtent(),a=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(n){return n+e}:function(n){return a-n+e},t.toLocalCoord=t.dim==="x"?function(n){return n-e}:function(n){return a-n+e}}function yx(t,e){A(t.x,function(r){return bx(r,e.x,e.width)}),A(t.y,function(r){return bx(r,e.y,e.height)})}function bx(t,e,r){var a=[0,r],n=t.inverse?1:0;t.setExtent(a[n],a[1-n]),vR(t,e)}function kx(t,e,r,a,n,i,o){_x(a,n,lr.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),p(a,0,NaN),p(a,1,NaN);var l=sm(s,function(f){return f>0})==null;return Vl(a,s,!0,!0,r),yx(n,a),l;function u(f){A(n[fa[f]],function(h){if(Go(h.model)){var d=i.ensureRecord(h.model),v=d.labelInfoList;if(v)for(var m=0;m<v.length;m++){var g=v[m],y=h.scale.normalize(Wo(h.scale,dn(g.label).labelInfo.tick));y=f===1?1-y:y,p(g.rect,f,y),p(g.rect,1-f,NaN)}var b=d.nameLayout;if(b){var y=fi(d.nameLocation)?.5:NaN;p(b.rect,f,y),p(b.rect,1-f,NaN)}}})}function p(f,h,d){var v=t[fa[h]]-f[fa[h]],m=f[ti[h]]+f[fa[h]]-(t[ti[h]]+t[fa[h]]);v=c(v,1-d),m=c(m,d);var g=dx[h][0],y=dx[h][1];s[g]=ye(s[g],v),s[y]=ye(s[y],m)}function c(f,h){return f>0&&!$i(h)&&h>1e-4&&(f/=h),f}}function gR(t,e,r,a,n){var i=new M1(yR);return A(r,function(o){return A(o,function(s){if(Go(s.model)){var l=!a;s.axisBuilder=OE(t,e,s.model,n,i,l)}})}),i}function _x(t,e,r,a,n,i){var o=r===lr.determine;A(e,function(u){return A(u,function(p){Go(p.model)&&(RE(p.axisBuilder,t,p.model),p.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[fa[1-u]]=t[ti[u]]<=i.refContainer[ti[u]]*.5?0:1-u===1?2:1}A(e,function(u,p){return A(u,function(c){Go(c.model)&&((a==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[p]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function mR(t,e,r){var a,n=t.get("outerBoundsMode",!0);n==="same"?a=e.clone():(n==null||n==="auto")&&(a=Yr(t.get("outerBounds",!0)||K1,r.refContainer));var i=t.get("outerBoundsContain",!0),o;i==null||i==="auto"||fe(["all","axisLabel"],i)<0?o="all":o=i;var s=[af(Z(t.get("outerBoundsClampWidth",!0),Ou[0]),e.width),af(Z(t.get("outerBoundsClampHeight",!0),Ou[1]),e.height)];return{outerBoundsRect:a,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var yR=function(t,e,r,a,n,i){var o=r.axis.dim==="x"?"y":"x";E1(t,e,r,a,n,i),fi(t.nameLocation)||A(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&O1(s.labelInfoList,s.dirVec,a,n)})};function bR(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return kR(r,t,e),r.seriesInvolved&&_R(r,t),r}function kR(t,e,r){var a=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];A(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=os(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var p=s.model,c=p.getModel("tooltip",a);if(A(s.getAxes(),ze(v,!1,null)),s.getTooltipAxes&&a&&c.get("show")){var f=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(f||h)&&A(d.baseAxes,ze(v,h?"cross":!0,f)),h&&A(d.otherAxes,ze(v,"cross",!1))}function v(m,g,y){var b=y.model.getModel("axisPointer",n),k=b.get("show");if(!(!k||k==="auto"&&!m&&!iv(b))){g==null&&(g=b.get("triggerTooltip")),b=m?wR(y,c,n,e,m,g):b;var w=b.get("snap"),_=b.get("triggerEmphasis"),x=os(y.model),T=g||w||y.type==="category",C=t.axesInfo[x]={key:x,axis:y,coordSys:s,axisPointerModel:b,triggerTooltip:g,triggerEmphasis:_,involveSeries:T,snap:w,useHandle:iv(b),seriesModels:[],linkGroup:null};u[x]=C,t.seriesInvolved=t.seriesInvolved||T;var P=xR(i,y);if(P!=null){var S=o[P]||(o[P]={axesInfo:{}});S.axesInfo[x]=C,S.mapper=i[P].mapper,C.linkGroup=S}}}})}function wR(t,e,r,a,n,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};A(s,function(f){l[f]=le(o.get(f))}),l.snap=t.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var p=o.get(["label","show"]);if(u.show=p??!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&pe(u,c.textStyle)}}return t.model.getModel("axisPointer",new Ae(l,r,a))}function _R(t,e){e.eachSeries(function(r){var a=r.coordinateSystem,n=r.get(["tooltip","trigger"],!0),i=r.get(["tooltip","show"],!0);!a||!a.model||n==="none"||n===!1||n==="item"||i===!1||r.get(["axisPointer","show"],!0)===!1||A(t.coordSysAxesInfo[os(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function xR(t,e){for(var r=e.model,a=e.dim,n=0;n<t.length;n++){var i=t[n]||{};if(av(i[a+"AxisId"],r.id)||av(i[a+"AxisIndex"],r.componentIndex)||av(i[a+"AxisName"],r.name))return n}}function av(t,e){return t==="all"||W(t)&&fe(t,e)>=0||t===e}function PR(t){var e=nv(t);if(e){var r=e.axisPointerModel,a=e.axis.scale,n=r.option,i=r.get("status"),o=r.get("value");o!=null&&(o=a.parse(o));var s=iv(r);i==null&&(n.status=s?"show":"hide");var l=a.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}function nv(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[os(t)]}function SR(t){var e=nv(t);return e&&e.axisPointerModel}function iv(t){return!!t.get(["handle","show"])}function os(t){return t.type+"||"+t.id}var xx={},Px=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,a,n,i){this.axisPointerClass&&PR(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,n,!0)},e.prototype.updateAxisPointer=function(r,a,n,i){this._doUpdateAxisPointerClass(r,n,!1)},e.prototype.remove=function(r,a){var n=this._axisPointer;n&&n.remove(a)},e.prototype.dispose=function(r,a){this._disposeAxisPointer(a),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,a,n){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=SR(r);o?(this._axisPointer||(this._axisPointer=new i)).render(r,o,a,n):this._disposeAxisPointer(a)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,a){xx[r]=a},e.getAxisPointerClass=function(r){return r&&xx[r]},e.type="axis",e})(Dt),ov=_e();function TR(t,e,r,a){var n=r.axis;if(!n.scale.isBlank()){var i=r.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var p=s.length,c=ov(t).splitAreaColors,f=ae(),h=0;if(c)for(var d=0;d<u.length;d++){var v=c.get(u[d].tickValue);if(v!=null){h=(v+(p-1)*d)%p;break}}var m=n.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=W(s)?s:[s];for(var d=1;d<u.length;d++){var y=n.toGlobalCoord(u[d].coord),b=void 0,k=void 0,w=void 0,_=void 0;n.isHorizontal()?(b=m,k=l.y,w=y-b,_=l.height,m=b+w):(b=l.x,k=m,w=l.width,_=y-k,m=k+_);var x=u[d-1].tickValue;x!=null&&f.set(x,h),e.add(new Ie({anid:x!=null?"area_"+x:null,shape:{x:b,y:k,width:w,height:_},style:pe({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%p}ov(t).splitAreaColors=f}}}function CR(t){ov(t).splitAreaColors=null}var DR=["splitArea","splitLine","minorSplitLine","breakArea"],Sx=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,a,n,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Me,this.group.add(this._axisGroup),!!Go(r)){this._axisGroup.add(r.axis.axisBuilder.group),A(DR,function(l){r.get([l,"show"])&&AR[l](this,this._axisGroup,r,r.getCoordSysModel(),n)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||F0(o,this._axisGroup,r),t.prototype.render.call(this,r,a,n,i)}},e.prototype.remove=function(){CR(this)},e.type="cartesianAxis",e})(Px),AR={splitLine:function(t,e,r,a,n){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,p=o.get("showMaxLine")!==!1;l=W(l)?l:[l];for(var c=a.coordinateSystem.getRect(),f=i.isHorizontal(),h=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),v=[],m=[],g=s.getLineStyle(),y=0;y<d.length;y++){var b=i.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!p)){var k=d[y].tickValue;f?(v[0]=b,v[1]=c.y,m[0]=b,m[1]=c.y+c.height):(v[0]=c.x,v[1]=b,m[0]=c.x+c.width,m[1]=b);var w=h++%l.length,_=new Er({anid:k!=null?"line_"+k:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:m[0],y2:m[1]},style:pe({stroke:l[w]},g),silent:!0});Po(_.shape,g.lineWidth),e.add(_)}}}},minorSplitLine:function(t,e,r,a,n){var i=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=a.coordinateSystem.getRect(),u=i.isHorizontal(),p=i.getMinorTicksCoords();if(p.length)for(var c=[],f=[],h=s.getLineStyle(),d=0;d<p.length;d++)for(var v=0;v<p[d].length;v++){var m=i.toGlobalCoord(p[d][v].coord);u?(c[0]=m,c[1]=l.y,f[0]=m,f[1]=l.y+l.height):(c[0]=l.x,c[1]=m,f[0]=l.x+l.width,f[1]=m);var g=new Er({anid:"minor_line_"+p[d][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:h,silent:!0});Po(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,r,a,n){TR(t,e,r,a)},breakArea:function(t,e,r,a,n){var i=Lu(),o=r.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(e,t,r,a.coordinateSystem.getRect(),n)}},Tx=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(Sx),LR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Tx.type,r}return e.type="yAxis",e})(Sx),MR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,a){this.group.removeAll(),r.get("show")&&this.group.add(new Ie({shape:r.coordinateSystem.getRect(),style:pe({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Dt),Cx={offset:0};function Dx(t){t.registerComponentView(MR),t.registerComponentModel(ZE),t.registerCoordinateSystem("cartesian2d",fR),lx(t,"x",tv,Cx),lx(t,"y",tv,Cx),t.registerComponentView(Tx),t.registerComponentView(LR),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function ER(t){cr(Dx),t.registerSeriesModel(ZO),t.registerChartView(tR),t.registerLayout($h("scatter"))}function IR(t){var e=t.polar;if(e){W(e)||(e=[e]);var r=[];A(e,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),t.radar=t.radar||[],W(t.radar)||(t.radar=[t.radar]),t.radar.push(a)):r.push(a)}),t.polar=r}A(t.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var ss="radar",OR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new ud(ge(this.getData,this),ge(this.getRawData,this))},e.prototype.getInitialData=function(r,a){return Hu(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(r,a,n){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(r),u=l===""?this.name:l,p=vk(this,r);return fn("section",{header:u,sortBlocks:!0,blocks:K(s,function(c){var f=i.get(i.mapDimension(c.dim),r);return fn("nameValue",{markerType:"subItem",markerColor:p,name:c.name,value:f,sortParam:f})})})},e.prototype.getTooltipPosition=function(r){if(r!=null){for(var a=this.getData(),n=this.coordinateSystem,i=a.getValues(K(n.dimensions,function(u){return a.mapDimension(u)}),r),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(i[o]),o)}}},e.type="series."+ss,e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e})(ft),RR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=ss,r}return e.prototype.render=function(r,a,n){var i=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(f,h){var d=f.getItemVisual(h,"symbol")||"circle";if(d!=="none"){var v=bk(f.getItemVisual(h,"symbolSize")),m=Ir(d,-1,-1,2,2),g=f.getItemVisual(h,"symbolRotate")||0;return m.attr({style:{strokeNoScale:!0},z2:100,scaleX:v[0]/2,scaleY:v[1]/2,rotation:g*Math.PI/180||0}),m}}function p(f,h,d,v,m,g){d.removeAll();for(var y=0;y<h.length-1;y++){var b=u(v,m);b&&(b.__dimIdx=y,f[y]?(b.setPosition(f[y]),W0[g?"initProps":"updateProps"](b,{x:h[y][0],y:h[y][1]},r,m)):b.setPosition(h[y]),d.add(b))}}function c(f){return K(f,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(f){var h=s.getItemLayout(f);if(h){var d=new Qn,v=new ca,m={shape:{points:h}};d.shape.points=c(h),v.shape.points=c(h),Ye(d,m,r,f),Ye(v,m,r,f);var g=new Me,y=new Me;g.add(v),g.add(d),g.add(y),p(v.shape.points,h,y,s,f,!0),s.setItemGraphicEl(f,g)}}).update(function(f,h){var d=l.getItemGraphicEl(h),v=d.childAt(0),m=d.childAt(1),g=d.childAt(2),y={shape:{points:s.getItemLayout(f)}};y.shape.points&&(p(v.shape.points,y.shape.points,g,s,f,!1),ei(m),ei(v),Re(v,y,r),Re(m,y,r),s.setItemGraphicEl(f,d))}).remove(function(f){o.remove(l.getItemGraphicEl(f))}).execute(),s.eachItemGraphicEl(function(f,h){var d=s.getItemModel(h),v=f.childAt(0),m=f.childAt(1),g=f.childAt(2),y=s.getItemVisual(h,"style"),b=y.fill;o.add(f),v.useStyle(pe(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:b})),$r(v,d,"lineStyle"),$r(m,d,"areaStyle");var k=d.getModel("areaStyle"),w=k.isEmpty()&&k.parentModel.isEmpty();m.ignore=w,A(["emphasis","select","blur"],function(x){var T=d.getModel([x,"areaStyle"]),C=T.isEmpty()&&T.parentModel.isEmpty();m.ensureState(x).ignore=C&&w;var P=d.getModel([x,"lineStyle"]).getLineStyle();v.ensureState(x).style=P;var S=T.getAreaStyle();m.ensureState(x).style=S;var L=d.getModel([x,"itemStyle"]).getItemStyle();g.eachChild(function(D){D.ensureState(x).style=le(L)})}),m.useStyle(pe(d.getModel("areaStyle").getAreaStyle(),{fill:b,opacity:.7,decal:y.decal}));var _=d.getModel("emphasis");g.eachChild(function(x){if(x instanceof Bt){var T=x.style;x.useStyle(H({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},y))}else x.useStyle(y),x.setColor(b),x.style.strokeNoScale=!0;var C=s.getStore().get(s.getDimensionIndex(x.__dimIdx),h);(C==null||isNaN(C))&&(C=""),an(x,nn(d),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:x.__dimIdx,defaultText:C,inheritColor:b,defaultOpacity:y.opacity})}),Wr(f,_.get("focus"),_.get("blurScope"),_.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type=ss,e})(at),ls=sx.value,us="radar",Ax=us,BR=us,Lx=5;function op(t,e){return pe({show:e},t)}var NR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),a=this.get("splitNumber"),n=this.get("clockwise"),i=this.get("scale"),o=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisLabel"),u=this.get("axisName"),p=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),h=this.get("triggerEvent"),d=K(this.get("indicator")||[],function(v){v.max!=null&&v.max>0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var m=u;v.color!=null&&(m=pe({color:v.color},u));var g=Pe(le(v),{boundaryGap:r,splitNumber:a,clockwise:n,scale:i,axisLine:o,axisTick:s,axisLabel:l,name:v.text,showName:p,nameLocation:"end",nameGap:f,nameTextStyle:m,triggerEvent:h},!1);if(q(c)){var y=g.name;g.name=c.replace("{value}",y??"")}else re(c)&&(g.name=c(g.name,g));var b=new Ae(g,null,this.ecModel);return Qt(b,ix.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b.uid=Io("ec_radar"),b},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=Ax,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:$.color.axisLabel},boundaryGap:[0,0],splitNumber:Lx,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Pe({lineStyle:{color:$.color.neutral20}},ls.axisLine),axisLabel:op(ls.axisLabel,!1),axisTick:op(ls.axisTick,!1),splitLine:op(ls.splitLine,!0),splitArea:op(ls.splitArea,!0),indicator:[]},e})(ke),FR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,a,n){var i=this.group;i.removeAll(),this._buildAxes(r,n),this._buildSplitLineAndArea(r)},e.prototype._buildAxes=function(r,a){var n=r.coordinateSystem,i=n.getIndicatorAxes(),o=K(i,function(s){var l=s.model.get("showName")?s.name:"",u=new Xr(s.model,a,{axisName:l,position:[n.cx,n.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});A(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(r){var a=r.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),p=o.get("show"),c=s.get("show"),f=l.get("color"),h=u.get("color"),d=W(f)?f:[f],v=W(h)?h:[h],m=[],g=[];function y(I,E,O){var R=O%E.length;return I[R]=I[R]||[],R}if(i==="circle")for(var b=n[0].getTicksCoords(),k=a.cx,w=a.cy,_=0;_<b.length;_++){if(p){var x=y(m,d,_);m[x].push(new ko({shape:{cx:k,cy:w,r:b[_].coord}}))}if(c&&_<b.length-1){var x=y(g,v,_);g[x].push(new Rl({shape:{cx:k,cy:w,r0:b[_].coord,r:b[_+1].coord}}))}}else for(var T,C=K(n,function(I,E){var O=I.getTicksCoords();return T=T==null?O.length-1:Math.min(O.length-1,T),K(O,function(R){return a.coordToPoint(R.coord,E)})}),P=[],_=0;_<=T;_++){for(var S=[],L=0;L<n.length;L++)S.push(C[L][_]);if(S[0]&&S.push(S[0].slice()),p){var x=y(m,d,_);m[x].push(new ca({shape:{points:S}}))}if(c&&P){var x=y(g,v,_-1);g[x].push(new Qn({shape:{points:S.concat(P)}}))}P=S.slice().reverse()}var D=l.getLineStyle(),M=u.getAreaStyle();A(g,function(I,E){this.group.add(zf(I,{style:pe({stroke:"none",fill:v[E%v.length]},M),silent:!0}))},this),A(m,function(I,E){this.group.add(zf(I,{style:pe({fill:"none",stroke:d[E%d.length]},D),silent:!0}))},this)},e.type="radar",e})(Dt),zR=(function(t){V(e,t);function e(r,a,n){var i=t.call(this,r,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return e})(_1),HR=(function(){function t(e,r,a){this.type=us,this.dimensions=[],this._model=e,this._indicatorAxes=K(e.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new zR(o,new ba);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(e,a)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(e,r){var a=this._indicatorAxes[r];return this.coordToPoint(a.dataToCoord(e),r)},t.prototype.coordToPoint=function(e,r){var a=this._indicatorAxes[r],n=a.angle,i=this.cx+e*Math.cos(n),o=this.cy-e*Math.sin(n);return[i,o]},t.prototype.pointToData=function(e){var r=e[0]-this.cx,a=e[1]-this.cy,n=Math.sqrt(r*r+a*a);r/=n,a/=n;for(var i=Math.atan2(-a,r),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var p=this._indicatorAxes[u],c=Math.abs(i-p.angle);c<o&&(s=p,l=u,o=c)}return[l,+(s&&s.coordToData(n))]},t.prototype.resize=function(e,r){var a=pi(e,r).refContainer,n=e.get("center"),i=e.get("clockwise")||!1,o=Math.min(a.width,a.height)/2;this.cx=ee(n[0],a.width)+a.x,this.cy=ee(n[1],a.height)+a.y,this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(q(s)||be(s))&&(s=[0,s]),this.r0=ee(s[0],o),this.r=ee(s[1],o);var l=i?-1:1;A(this._indicatorAxes,function(u,p){u.setExtent(this.r0,this.r);var c=this.startAngle+l*p*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),u.angle=c},this)},t.prototype.update=function(e,r){var a=this._indicatorAxes,n=this._model,i=bu(n.get("splitNumber"),Lx),o=new ba;o.setExtent(0,i),o.setConfig({interval:1}),A(a,function(s){W1(s,z1),cx(s,o)})},t.prototype.convertToPixel=function(e,r,a){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(e,r,a){return console.warn("Not implemented."),null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.create=function(e,r){var a=[];return e.eachComponent(Ax,function(n){var i=new t(n,e,r);a.push(i),n.coordinateSystem=i}),e.eachSeriesByType(BR,function(n){if(n.get("coordinateSystem")===us){var i=n.coordinateSystem=a[n.get("radarIndex")||0];i&&A(i.getIndicatorAxes(),function(o){qh(o,n,us)})}}),a},t.dimensions=[],t})();function VR(t){t.registerCoordinateSystem("radar",HR),t.registerComponentModel(NR),t.registerComponentView(FR),t.registerVisual({seriesType:"radar",reset:function(e){var r=e.getData();r.each(function(a){r.setItemVisual(a,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}var UR=df(ss,GR);function GR(t){t.eachSeriesByType(ss,function(e){var r=e.getData(),a=[],n=e.coordinateSystem;if(n){var i=n.getIndicatorAxes();A(i,function(o,s){r.each(r.mapDimension(i[s].dim),function(l,u){a[u]=a[u]||[];var p=n.dataToPoint(l,s);a[u][s]=Mx(p)?p:Ex(n)})}),r.each(function(o){var s=sm(a[o],function(l){return Mx(l)})||Ex(n);a[o].push(s.slice()),r.setItemLayout(o,a[o])})}})}function Mx(t){return!isNaN(t[0])&&!isNaN(t[1])}function Ex(t){return[t.cx,t.cy]}function WR(t){cr(VR),t.registerChartView(RR),t.registerSeriesModel(OR),t.registerLayout(UR),t.registerProcessor(ld("radar")),t.registerPreprocessor(IR)}var $R=(function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t})(),YR=(function(t){V(e,t);function e(r){var a=t.call(this,r)||this;return a.type="pointer",a}return e.prototype.getDefaultShape=function(){return new $R},e.prototype.buildPath=function(r,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),p=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,r.moveTo(u,p),r.lineTo(a.x+n(l)*s,a.y+i(l)*s),r.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),r.lineTo(a.x-n(l)*s,a.y-i(l)*s),r.lineTo(u,p)},e})(me);function KR(t,e){var r=t.get("center"),a=e.getWidth(),n=e.getHeight(),i=Math.min(a,n),o=ee(r[0],e.getWidth()),s=ee(r[1],e.getHeight()),l=ee(t.get("radius"),i/2);return{cx:o,cy:s,r:l}}function sp(t,e){var r=t==null?"":t+"";return e&&(q(e)?r=e.replace("{value}",r):re(e)&&(r=e(t))),r}var XR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,a,n){this.group.removeAll();var i=r.get(["axisLine","lineStyle","color"]),o=KR(r,n);this._renderMain(r,a,n,i,o),this._data=r.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(r,a,n,i,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,p=-r.get("endAngle")/180*Math.PI,c=r.getModel("axisLine"),f=c.get("roundCap"),h=f?Bu:Mr,d=c.get("show"),v=c.getModel("lineStyle"),m=v.get("width"),g=[u,p];Jc(g,!l),u=g[0],p=g[1];for(var y=p-u,b=u,k=[],w=0;d&&w<i.length;w++){var _=Math.min(Math.max(i[w][0],0),1);p=u+y*_;var x=new h({shape:{startAngle:b,endAngle:p,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-m,r:o.r},silent:!0});x.setStyle({fill:i[w][1]}),x.setStyle(v.getLineStyle(["color","width"])),k.push(x),b=p}k.reverse(),A(k,function(C){return s.add(C)});var T=function(C){if(C<=0)return i[0][1];var P;for(P=0;P<i.length;P++)if(i[P][0]>=C&&(P===0?0:i[P-1][0])<C)return i[P][1];return i[P-1][1]};this._renderTicks(r,a,n,T,o,u,p,l,m),this._renderTitleAndDetail(r,a,n,T,o),this._renderAnchor(r,o),this._renderPointer(r,a,n,T,o,u,p,l,m)},e.prototype._renderTicks=function(r,a,n,i,o,s,l,u,p){for(var c=this.group,f=o.cx,h=o.cy,d=o.r,v=+r.get("min"),m=+r.get("max"),g=r.getModel("splitLine"),y=r.getModel("axisTick"),b=r.getModel("axisLabel"),k=r.get("splitNumber"),w=y.get("splitNumber"),_=ee(g.get("length"),d),x=ee(y.get("length"),d),T=s,C=(l-s)/k,P=C/w,S=g.getModel("lineStyle").getLineStyle(),L=y.getModel("lineStyle").getLineStyle(),D=g.get("distance"),M,I,E=0;E<=k;E++){if(M=Math.cos(T),I=Math.sin(T),g.get("show")){var O=D?D+p:p,R=new Er({shape:{x1:M*(d-O)+f,y1:I*(d-O)+h,x2:M*(d-_-O)+f,y2:I*(d-_-O)+h},style:S,silent:!0});S.stroke==="auto"&&R.setStyle({stroke:i(E/k)}),c.add(R)}if(b.get("show")){var O=b.get("distance")+D,B=sp(ve(E*(m-v)/k+v,mD),b.get("formatter")),N=i(E/k),F=M*(d-_-O)+f,U=I*(d-_-O)+h,Y=b.get("rotate"),z=0;Y==="radial"?(z=-T+2*Math.PI,z>Math.PI/2&&(z+=Math.PI)):Y==="tangential"?z=-T-Math.PI/2:be(Y)&&(z=Y*Math.PI/180),z===0?c.add(new Oe({style:Gt(b,{text:B,x:F,y:U,verticalAlign:I<-.8?"top":I>.8?"bottom":"middle",align:M<-.4?"left":M>.4?"right":"center"},{inheritColor:N}),silent:!0})):c.add(new Oe({style:Gt(b,{text:B,x:F,y:U,verticalAlign:"middle",align:"center"},{inheritColor:N}),silent:!0,originX:F,originY:U,rotation:z}))}if(y.get("show")&&E!==k){var O=y.get("distance");O=O?O+p:p;for(var j=0;j<=w;j++){M=Math.cos(T),I=Math.sin(T);var ne=new Er({shape:{x1:M*(d-O)+f,y1:I*(d-O)+h,x2:M*(d-x-O)+f,y2:I*(d-x-O)+h},silent:!0,style:L});L.stroke==="auto"&&ne.setStyle({stroke:i((E+j/w)/k)}),c.add(ne),T+=P}T-=P}else T+=C}},e.prototype._renderPointer=function(r,a,n,i,o,s,l,u,p){var c=this.group,f=this._data,h=this._progressEls,d=[],v=r.get(["pointer","show"]),m=r.getModel("progress"),g=m.get("show"),y=r.getData(),b=y.mapDimension("value"),k=+r.get("min"),w=+r.get("max"),_=[k,w],x=[s,l];function T(P,S){var L=y.getItemModel(P),D=L.getModel("pointer"),M=ee(D.get("width"),o.r),I=ee(D.get("length"),o.r),E=r.get(["pointer","icon"]),O=D.get("offsetCenter"),R=ee(O[0],o.r),B=ee(O[1],o.r),N=D.get("keepAspect"),F;return E?F=Ir(E,R-M/2,B-I,M,I,null,N):F=new YR({shape:{angle:-Math.PI/2,width:M,r:I,x:R,y:B}}),F.rotation=-(S+Math.PI/2),F.x=o.cx,F.y=o.cy,F}function C(P,S){var L=m.get("roundCap"),D=L?Bu:Mr,M=m.get("overlap"),I=M?m.get("width"):p/y.count(),E=M?o.r-I:o.r-(P+1)*I,O=M?o.r:o.r-P*I,R=new D({shape:{startAngle:s,endAngle:S,cx:o.cx,cy:o.cy,clockwise:u,r0:E,r:O}});return M&&(R.z2=Nt(y.get(b,P),[k,w],[100,0],!0)),R}(g||v)&&(y.diff(f).add(function(P){var S=y.get(b,P);if(v){var L=T(P,s);Ye(L,{rotation:-((isNaN(+S)?x[0]:Nt(S,_,x,!0))+Math.PI/2)},r),c.add(L),y.setItemGraphicEl(P,L)}if(g){var D=C(P,s),M=m.get("clip");Ye(D,{shape:{endAngle:Nt(S,_,x,M)}},r),c.add(D),gf(r.seriesIndex,y.dataType,P,D),d[P]=D}}).update(function(P,S){var L=y.get(b,P);if(v){var D=f.getItemGraphicEl(S),M=D?D.rotation:s,I=T(P,M);I.rotation=M,Re(I,{rotation:-((isNaN(+L)?x[0]:Nt(L,_,x,!0))+Math.PI/2)},r),c.add(I),y.setItemGraphicEl(P,I)}if(g){var E=h[S],O=E?E.shape.endAngle:s,R=C(P,O),B=m.get("clip");Re(R,{shape:{endAngle:Nt(L,_,x,B)}},r),c.add(R),gf(r.seriesIndex,y.dataType,P,R),d[P]=R}}).execute(),y.each(function(P){var S=y.getItemModel(P),L=S.getModel("emphasis"),D=L.get("focus"),M=L.get("blurScope"),I=L.get("disabled"),E=i(Nt(y.get(b,P),_,[0,1],!0));if(v){var O=y.getItemGraphicEl(P),R=y.getItemVisual(P,"style"),B=R.fill;if(O instanceof Bt){var N=O.style;O.useStyle(H({image:N.image,x:N.x,y:N.y,width:N.width,height:N.height},R))}else O.useStyle(R),O.type!=="pointer"&&O.setColor(B);O.setStyle(S.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",E),O.z2EmphasisLift=0,$r(O,S),Wr(O,D,M,I)}if(g){var F=d[P];F.useStyle(y.getItemVisual(P,"style")),F.setStyle(S.getModel(["progress","itemStyle"]).getItemStyle()),F.style.fill==="auto"&&F.setStyle("fill",E),F.z2EmphasisLift=0,$r(F,S),Wr(F,D,M,I)}}),this._progressEls=d)},e.prototype._renderAnchor=function(r,a){var n=r.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),p=Ir(s,a.cx-o/2+ee(l[0],a.r),a.cy-o/2+ee(l[1],a.r),o,o,null,u);p.z2=n.get("showAbove")?1:0,p.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(p)}},e.prototype._renderTitleAndDetail=function(r,a,n,i,o){var s=this,l=r.getData(),u=l.mapDimension("value"),p=+r.get("min"),c=+r.get("max"),f=new Me,h=[],d=[],v=r.isAnimationEnabled(),m=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(g){h[g]=new Oe({silent:!0}),d[g]=new Oe({silent:!0})}).update(function(g,y){h[g]=s._titleEls[y],d[g]=s._detailEls[y]}).execute(),l.each(function(g){var y=l.getItemModel(g),b=l.get(u,g),k=new Me,w=i(Nt(b,[p,c],[0,1],!0)),_=y.getModel("title");if(_.get("show")){var x=_.get("offsetCenter"),T=o.cx+ee(x[0],o.r),C=o.cy+ee(x[1],o.r),P=h[g];P.attr({z2:m?0:2,style:Gt(_,{x:T,y:C,text:l.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:w})}),k.add(P)}var S=y.getModel("detail");if(S.get("show")){var L=S.get("offsetCenter"),D=o.cx+ee(L[0],o.r),M=o.cy+ee(L[1],o.r),I=ee(S.get("width"),o.r),E=ee(S.get("height"),o.r),O=r.get(["progress","show"])?l.getItemVisual(g,"style").fill:w,P=d[g],R=S.get("formatter");P.attr({z2:m?0:2,style:Gt(S,{x:D,y:M,text:sp(b,R),width:isNaN(I)?null:I,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:O})}),Z0(P,{normal:S},b,function(N){return sp(N,R)}),v&&y3(P,g,l,r,{getFormattedLabel:function(N,F,U,Y,z,j){return sp(j?j.interpolatedValue:b,R)}}),k.add(P)}f.add(k)}),this.group.add(f),this._titleEls=h,this._detailEls=d},e.type="gauge",e})(at),qR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.visualStyleAccessPath="itemStyle",r}return e.prototype.getInitialData=function(r,a){return Hu(this,["value"])},e.type="series.gauge",e.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,$.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:$.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:$.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:$.color.axisLabel,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:$.color.neutral00,borderWidth:0,borderColor:$.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:$.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:$.color.transparent,borderWidth:0,borderColor:$.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:$.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e})(ft);function jR(t){t.registerChartView(XR),t.registerSeriesModel(qR)}var Ti="funnel",ZR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new ud(ge(this.getData,this),ge(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.getInitialData=function(r,a){return Hu(this,{coordDimensions:["value"],encodeDefaulter:ze(rb,this)})},e.prototype._defaultLabelLine=function(r){_l(r,"labelLine",["show"]);var a=r.labelLine,n=r.emphasis.labelLine;a.show=a.show&&r.label.show,n.show=n.show&&r.emphasis.label.show},e.prototype.getDataParams=function(r){var a=this.getData(),n=t.prototype.getDataParams.call(this,r),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,r)/o*100).toFixed(2):0,n.$vars.push("percent"),n},e.type="series."+Ti,e.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,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:$.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:$.color.primary}}},e})(ft),QR=["itemStyle","opacity"],JR=(function(t){V(e,t);function e(r,a){var n=t.call(this)||this,i=n,o=new ca,s=new Oe;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(r,a,!0),n}return e.prototype.updateData=function(r,a,n){var i=this,o=r.hostModel,s=r.getItemModel(a),l=r.getItemLayout(a),u=s.getModel("emphasis"),p=s.get(QR);p=p??1,n||ei(i),i.useStyle(r.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,Ye(i,{style:{opacity:p}},o,a)):Re(i,{style:{opacity:p},shape:{points:l.points}},o,a),$r(i,s),this._updateLabel(r,a),Wr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=r.hostModel,l=r.getItemModel(a),u=r.getItemLayout(a),p=u.label,c=r.getItemVisual(a,"style"),f=c.fill;an(o,nn(l),{labelFetcher:r.hostModel,labelDataIndex:a,defaultOpacity:c.opacity,defaultText:r.getName(a)},{normal:{align:p.textAlign,verticalAlign:p.verticalAlign}});var h=l.getModel("label"),d=h.get("color"),v=d==="inherit"?f:null;n.setTextConfig({local:!0,inside:!!p.inside,insideStroke:v,outsideFill:v});var m=p.linePoints;i.setShape({points:m}),n.textGuideLineConfig={anchor:m?new ie(m[0][0],m[0][1]):null},Re(o,{style:{x:p.x,y:p.y}},s,a),o.attr({rotation:p.rotation,originX:p.x,originY:p.y,z2:10}),fw(n,hw(l),{stroke:f})},e})(Qn),eB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ti,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,a,n){var i=r.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new JR(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var p=o.getItemGraphicEl(u);p.updateData(i,l),s.add(p),i.setItemGraphicEl(l,p)}).remove(function(l){var u=o.getItemGraphicEl(l);Jn(u,r,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type=Ti,e})(at);function tB(t,e){for(var r=t.mapDimension("value"),a=t.mapArray(r,function(l){return l}),n=[],i=e==="ascending",o=0,s=t.count();o<s;o++)n[o]=o;return re(e)?n.sort(e):e!=="none"&&n.sort(function(l,u){return i?a[l]-a[u]:a[u]-a[l]}),n}function rB(t){var e=t.hostModel,r=Ix(e);t.each(function(a){var n=t.getItemModel(a),i=n.getModel("label"),o=i.get("position"),s=n.getModel("labelLine"),l=t.getItemLayout(a),u=l.points,p=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,f,h,d;if(p)o==="insideLeft"?(f=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,c="left"):o==="insideRight"?(f=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,c="right"):(f=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,c="center"),d=[[f,h],[f,h]];else{var v=void 0,m=void 0,g=void 0,y=void 0,b=s.get("length");q(o)&&(!r&&fe(["top","bottom"],o)>-1&&(o="left"),r&&fe(["left","right"],o)>-1&&(o="bottom")),o==="left"?(v=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,g=v-b,f=g-5,c="right"):o==="right"?(v=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,g=v+b,f=g+5,c="left"):o==="top"?(v=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,y=m-b,h=y-5,c="center"):o==="bottom"?(v=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,y=m+b,h=y+5,c="center"):o==="rightTop"?(v=r?u[3][0]:u[1][0],m=r?u[3][1]:u[1][1],r?(y=m-b,h=y-5,c="center"):(g=v+b,f=g+5,c="top")):o==="rightBottom"?(v=u[2][0],m=u[2][1],r?(y=m+b,h=y+5,c="center"):(g=v+b,f=g+5,c="bottom")):o==="leftTop"?(v=u[0][0],m=r?u[0][1]:u[1][1],r?(y=m-b,h=y-5,c="center"):(g=v-b,f=g-5,c="right")):o==="leftBottom"?(v=r?u[1][0]:u[3][0],m=r?u[1][1]:u[2][1],r?(y=m+b,h=y+5,c="center"):(g=v-b,f=g-5,c="right")):(v=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,r?(y=m+b,h=y+5,c="center"):(g=v+b,f=g+5,c="left")),r?(g=v,f=g):(y=m,h=y),d=[[v,m],[g,y]]}l.label={linePoints:d,x:f,y:h,verticalAlign:"middle",textAlign:c,inside:p}})}var aB=df(Ti,nB);function nB(t,e){t.eachSeriesByType(Ti,function(r){var a=r.getData(),n=a.mapDimension("value"),i=r.get("sort"),o=pi(r,e),s=Yr(r.getBoxLayoutParams(),o.refContainer),l=Ix(r),u=s.width,p=s.height,c=tB(a,i),f=s.x,h=s.y,d=l?[ee(r.get("minSize"),p),ee(r.get("maxSize"),p)]:[ee(r.get("minSize"),u),ee(r.get("maxSize"),u)],v=a.getDataExtent(n),m=r.get("min"),g=r.get("max");m==null&&(m=Math.min(v[0],0)),g==null&&(g=v[1]);var y=r.get("funnelAlign"),b=r.get("gap"),k=l?u:p,w=(k-b*(a.count()-1))/a.count(),_=function(I,E){if(l){var O=a.get(n,I)||0,R=Nt(O,[m,g],d,!0),B=void 0;switch(y){case"top":B=h;break;case"center":B=h+(p-R)/2;break;case"bottom":B=h+(p-R);break}return[[E,B],[E,B+R]]}var N=a.get(n,I)||0,F=Nt(N,[m,g],d,!0),U;switch(y){case"left":U=f;break;case"center":U=f+(u-F)/2;break;case"right":U=f+u-F;break}return[[U,E],[U+F,E]]};i==="ascending"&&(w=-w,b=-b,l?f+=u:h+=p,c=c.reverse());for(var x=0;x<c.length;x++){var T=c[x],C=c[x+1],P=a.getItemModel(T);if(l){var S=P.get(["itemStyle","width"]);S==null?S=w:(S=ee(S,u),i==="ascending"&&(S=-S));var L=_(T,f),D=_(C,f+S);f+=S+b,a.setItemLayout(T,{points:L.concat(D.slice().reverse())})}else{var M=P.get(["itemStyle","height"]);M==null?M=w:(M=ee(M,p),i==="ascending"&&(M=-M));var L=_(T,h),D=_(C,h+M);h+=M+b,a.setItemLayout(T,{points:L.concat(D.slice().reverse())})}}rB(a)})}function Ix(t){return t.get("orient")==="horizontal"}function iB(t){t.registerChartView(eB),t.registerSeriesModel(ZR),t.registerLayout(aB),t.registerProcessor(ld(Ti))}var bn=_e(),Ox=le,sv=ge,oB=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,a,n){var i=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,r,a);var p=u.graphicKey;p!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=p;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new Me,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),a.getZr().add(s);else{var f=ze(Rx,r,c);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,r)}Fx(s,r,!0),this._renderHandle(i)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var a=r.get("animation"),n=e.axis,i=n.type==="category",o=r.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&vi(n).w>s)return!0;if(o){var l=nv(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},t.prototype.makeElOption=function(e,r,a,n,i){},t.prototype.createPointerEl=function(e,r,a,n){var i=r.pointer;if(i){var o=bn(e).pointerEl=new W0[i.type](Ox(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,a,n){if(r.label){var i=bn(e).labelEl=new Oe(Ox(r.label));e.add(i),Nx(i,n)}},t.prototype.updatePointerEl=function(e,r,a){var n=bn(e).pointerEl;n&&r.pointer&&(n.setStyle(r.pointer.style),a(n,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,a,n){var i=bn(e).labelEl;i&&(i.setStyle(r.label.style),a(i,{x:r.label.x,y:r.label.y}),Nx(i,n))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=r.getModel("handle"),o=r.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Vf(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ww(u.event)},onmousedown:sv(this._onHandleDragMove,this,0,0),drift:sv(this._onHandleDragMove,this),ondragend:sv(this._onHandleDragEnd,this)}),a.add(n)),Fx(n,r,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");W(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Q1(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){Rx(this._axisPointerModel,!r&&this._moveAnimation,this._handle,lv(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(lv(a),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(lv(n)),bn(a).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),a=this._group,n=this._handle;r&&a&&(this._lastGraphicKey=null,a&&r.remove(a),n&&r.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),id(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,a){return a=a||0,{x:e[a],y:e[1-a],width:r[a],height:r[1-a]}},t})();function Rx(t,e,r,a){Bx(bn(r).lastProp,a)||(bn(r).lastProp=a,e?Re(r,a,t):(r.stopAnimation(),r.attr(a)))}function Bx(t,e){if(J(t)&&J(e)){var r=!0;return A(e,function(a,n){r=r&&Bx(t[n],a)}),!!r}else return t===e}function Nx(t,e){t[e.get(["label","show"])?"show":"hide"]()}function lv(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Fx(t,e,r){var a=e.get("z"),n=e.get("zlevel");t&&t.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=r)})}function sB(t){var e=t.get("type"),r=t.getModel(e+"Style"),a;return e==="line"?(a=r.getLineStyle(),a.fill=null):e==="shadow"&&(a=r.getAreaStyle(),a.stroke=null),a}function lB(t,e,r,a,n){var i=r.get("value"),o=zx(i,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=lu(s.get("padding")||0),u=s.getFont(),p=xm(o,u),c=n.position,f=p.width+l[1]+l[3],h=p.height+l[0]+l[2],d=n.align;d==="right"&&(c[0]-=f),d==="center"&&(c[0]-=f/2);var v=n.verticalAlign;v==="bottom"&&(c[1]-=h),v==="middle"&&(c[1]-=h/2),uB(c,f,h,a);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Gt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function uB(t,e,r,a){var n=a.getWidth(),i=a.getHeight();t[0]=Math.min(t[0]+e,n)-e,t[1]=Math.min(t[1]+r,i)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function zx(t,e,r,a,n){t=e.scale.parse(t);var i=e.scale.getLabel({value:t},{precision:n.precision}),o=n.formatter;if(o){var s={value:Pu(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};A(a,function(l){var u=r.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,c=u&&u.getDataParams(p);c&&s.seriesData.push(c)}),q(o)?i=o.replace("{value}",i):re(o)&&(i=o(s))}return i}function Hx(t,e,r){var a=wr();return nc(a,a,r.rotation),ac(a,a,r.position),Hf([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],a)}function pB(t,e,r,a,n,i){var o=Xr.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get(["label","margin"]),lB(e,a,n,i,{position:Hx(a.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function cB(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function fB(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function hB(t,e,r){return vi(t,{fromStat:{sers:K(e,function(a){return r.getSeriesByIndex(a.seriesIndex)})},min:1}).w}function dB(t,e,r){return[ye(et(e[0],e[1]),t-r/2),et(t+r/2,ye(e[0],e[1]))]}var vB=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),p=s.getGlobalExtent(),c=Vx(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var h=sB(i),d=gB[u](s,f,p,c,i.get("seriesDataIndices"),i.ecModel);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=Eu(l.getRect(),n);pB(a,r,v,n,i,o)},e.prototype.getHandleTransform=function(r,a,n){var i=Eu(a.axis.grid.getRect(),a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=Hx(a.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Vx(s,o).getOtherAxis(o).getGlobalExtent(),p=o.dim==="x"?0:1,c=[r.x,r.y];c[p]+=a[p],c[p]=et(l[1],c[p]),c[p]=ye(l[0],c[p]);var f=(u[1]+u[0])/2,h=[f,f];h[p]=c[p];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:d[p]}},e})(oB);function Vx(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var gB={line:function(t,e,r,a){var n=cB([e,a[0]],[e,a[1]],Ux(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r,a,n,i){var o=hB(t,n,i),s=a[1]-a[0],l=dB(e,r,o),u=l[0],p=l[1];return{type:"Rect",shape:fB([u,a[0]],[p-u,s],Ux(t))}}};function Ux(t){return t.dim==="x"?0:1}var mB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:$.color.border,width:1,type:"dashed"},shadowStyle:{color:$.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:$.color.neutral00,padding:[5,7,5,7],backgroundColor:$.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:$.color.accent40,throttle:40}},e})(ke),Jr=_e(),yB=A;function Gx(t,e,r){if(!se.node){var a=e.getZr();Jr(a).records||(Jr(a).records={}),bB(a,e);var n=Jr(a).records[t]||(Jr(a).records[t]={});n.handler=r}}function bB(t,e){if(Jr(t).initialized)return;Jr(t).initialized=!0,r("click",ze(uv,"click")),r("mousemove",ze(uv,"mousemove")),r("mousewheel",ze(uv,"mousewheel")),r("globalout",wB);function r(a,n){t.on(a,function(i){var o=_B(e);yB(Jr(t).records,function(s){s&&n(s,i,o.dispatchAction)}),kB(o.pendings,e)})}}function kB(t,e){var r=t.showTip.length,a=t.hideTip.length,n;r?n=t.showTip[r-1]:a&&(n=t.hideTip[a-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function wB(t,e,r){t.handler("leave",null,r)}function uv(t,e,r,a){e.handler(t,r,a)}function _B(t){var e={showTip:[],hideTip:[]},r=function(a){var n=e[a.type];n?n.push(a):(a.dispatchAction=r,t.dispatchAction(a))};return{dispatchAction:r,pendings:e}}function pv(t,e){if(!se.node){var r=e.getZr(),a=(Jr(r).records||{})[t];a&&(Jr(r).records[t]=null)}}var xB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,a,n){var i=a.getComponent("tooltip"),o=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click|mousewheel";Gx("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,a){pv("axisPointer",a)},e.prototype.dispose=function(r,a){pv("axisPointer",a)},e.type="axisPointer",e})(Dt);function Wx(t,e){var r=[],a=t.seriesIndex,n;if(a==null||!(n=e.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=Za(i,t);if(o==null||o<0||W(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),p=l.getOtherAxis(u),c=p.dim,f=u.dim,h=c==="x"||c==="radius"?1:0,d=i.mapDimension(f),v=[];v[h]=i.get(d,o),v[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(v)||[]}else r=l.dataToPoint(i.getValues(K(l.dimensions,function(g){return i.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var $x=_e();function PB(t,e,r){var a=t.currTrigger,n=[t.x,t.y],i=t,o=t.dispatchAction||ge(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){lp(n)&&(n=Wx({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=lp(n),u=i.axesInfo,p=s.axesInfo,c=a==="leave"||lp(n),f={},h={},d={list:[],map:{}},v={showPointer:ze(TB,h),showTooltip:ze(CB,d)};A(s.coordSysMap,function(g,y){var b=l||g.containPoint(n);A(s.coordSysAxesInfo[y],function(k,w){var _=k.axis,x=MB(u,k);if(!c&&b&&(!u||x)){var T=x&&x.value;T==null&&!l&&(T=_.pointToData(n)),T!=null&&Yx(k,T,v,!1,f)}})});var m={};return A(p,function(g,y){var b=g.linkGroup;b&&!h[y]&&A(b.axesInfo,function(k,w){var _=h[w];if(k!==g&&_){var x=_.value;b.mapper&&(x=g.axis.scale.parse(b.mapper(x,Kx(k),Kx(g)))),m[g.key]=x}})}),A(m,function(g,y){Yx(p[y],g,v,!0,f)}),DB(h,p,f),AB(d,n,t,o),LB(p,o,r),f}}function Yx(t,e,r,a,n){var i=t.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=SB(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&H(n,s[0]),!a&&t.snap&&i.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function SB(t,e){var r=e.axis,a=r.dim,n=t,i=[],o=Number.MAX_VALUE,s=-1;return A(e.seriesModels,function(l,u){var p=l.getData().mapDimensionsAll(a),c,f;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(p,t,r);f=h.dataIndices,c=h.nestestValue}else{if(f=l.indicesOfNearest(a,p[0],t,r.type==="category"?.5:null),!f.length)return;c=l.getData().get(p[0],f[0])}if(Ft(c)){var d=t-c,v=Math.abs(d);v<=o&&((v<o||d>=0&&s<0)&&(o=v,s=d,n=c,i.length=0),A(f,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:n}}function TB(t,e,r,a){t[e.key]={value:r,payloadBatch:a}}function CB(t,e,r,a){var n=r.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=os(l),p=t.map[u];p||(p=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(p)),p.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function DB(t,e,r){var a=r.axesInfo=[];A(e,function(n,i){var o=n.axisPointerModel.option,s=t[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function AB(t,e,r,a){if(lp(e)||!t.list.length){a({type:"hideTip"});return}var n=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:t.list})}function LB(t,e,r){var a=r.getZr(),n="axisPointerLastHighlights",i=$x(a)[n]||{},o=$x(a)[n]={};A(t,function(p,c){var f=p.axisPointerModel.option;f.status==="show"&&p.triggerEmphasis&&A(f.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(p){return{seriesIndex:p.seriesIndex,dataIndex:p.dataIndex}}A(i,function(p,c){!o[c]&&l.push(u(p))}),A(o,function(p,c){!i[c]&&s.push(u(p))}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function MB(t,e){for(var r=0;r<(t||[]).length;r++){var a=t[r];if(e.axis.dim===a.axisDim&&e.axis.model.componentIndex===a.axisIndex)return a}}function Kx(t){var e=t.axis.model,r={},a=r.axisDim=t.axis.dim;return r.axisIndex=r[a+"AxisIndex"]=e.componentIndex,r.axisName=r[a+"AxisName"]=e.name,r.axisId=r[a+"AxisId"]=e.id,r}function lp(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function Xx(t){Px.registerAxisPointerClass("CartesianAxisPointer",vB),t.registerComponentModel(mB),t.registerComponentView(xB),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!W(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=bR(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},PB)}function EB(t){cr(Dx),cr(Xx)}function IB(t,e){var r=lu(e.get("padding")),a=e.getItemStyle(["color","opacity"]);a.fill=e.get("backgroundColor");var n=new Ie({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:a,silent:!0,z2:-1});return n}var OB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:$.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:$.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:$.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:$.color.tertiary,fontSize:14}},e})(ke);function qx(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function jx(t){if(se.domSupported){for(var e=document.documentElement.style,r=0,a=t.length;r<a;r++)if(t[r]in e)return t[r]}}var Zx=jx(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),RB=jx(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Qx(t,e){if(!t)return e;e=Zb(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function BB(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?r[e]:null}var NB=Qx(RB,"transition"),cv=Qx(Zx,"transform"),FB="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(se.transform3dSupported?"will-change:transform;":"");function zB(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function HB(t,e,r){if(!q(r)||r==="inside")return"";var a=t.get("backgroundColor"),n=t.get("borderWidth");e=pn(e);var i=zB(r),o=Math.max(Math.round(n)*1.5,6),s="",l=cv+":",u;fe(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var p=u*Math.PI/180,c=o+n,f=c*Math.abs(Math.cos(p))+c*Math.abs(Math.sin(p)),h=Math.round(((f-Math.SQRT2*n)/2+Math.SQRT2*n-(f-c)/2)*100)/100;s+=";"+i+":-"+h+"px";var d=e+" solid "+n+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'<div style="'+v.join("")+'"></div>'}function VB(t,e,r){var a="cubic-bezier(0.23,1,0.32,1)",n="",i="";return r&&(n=" "+t/2+"s "+a,i="opacity"+n+",visibility"+n),e||(n=" "+t+"s "+a,i+=(i.length?",":"")+(se.transformSupported?""+cv+n:",left"+n+",top"+n)),NB+":"+i}function Jx(t,e,r){var a=t.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!se.transformSupported)return r?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=se.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return r?"top:0;left:0;"+cv+":"+o+";":[["top",0],["left",0],[Zx,o]]}function UB(t){var e=[],r=t.get("fontSize"),a=t.getTextColor();a&&e.push("color:"+a),e.push("font:"+t.getFont());var n=Z(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+n+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),A(["decoration","align"],function(u){var p=t.get(u);p&&e.push("text-"+u+":"+p)}),e.join(";")}function GB(t,e,r,a){var n=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),p=t.get("shadowOffsetY"),c=t.getModel("textStyle"),f=gk(t,"html"),h=u+"px "+p+"px "+s+"px "+l;return n.push("box-shadow:"+h),e&&i>0&&n.push(VB(i,r,a)),o&&n.push("background-color:"+o),A(["width","color","radius"],function(d){var v="border-"+d,m=Zb(v),g=t.get(m);g!=null&&n.push(v+":"+g+(d==="color"?"":"px"))}),n.push(UB(c)),f!=null&&n.push("padding:"+lu(f).join("px ")+"px"),n.join(";")+";"}function eP(t,e,r,a,n){var i=e&&e.painter;if(r){var o=i&&i.getViewportRoot();o&&mL(t,o,r,a,n)}else{t[0]=a,t[1]=n;var s=i&&i.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var WB=(function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,se.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=e.getZr(),i=r.appendTo,o=i&&(q(i)?document.querySelector(i):Wi(i)?i:re(i)&&i(e.getDom()));eP(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(a),this._api=e,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,p=n.painter.getViewportRoot();Kt(p,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),a=BB(r,"position"),n=r.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=FB+GB(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+Jx(i[0],i[1],!0)+("border-color:"+pn(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,a,n,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(q(i)&&a.get("trigger")==="item"&&!qx(a)&&(s=HB(a,n,i)),q(e))o.innerHTML=e+s;else if(e){o.innerHTML="",W(e)||(e=[e]);for(var l=0;l<e.length;l++)Wi(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var a=this._styleCoord;if(eP(a,this._zr,this._container,e,r),a[0]!=null&&a[1]!=null){var n=this.el.style,i=Jx(a[0],a[1]);A(i,function(o){n[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",se.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ge(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;yL(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var a=r.parentNode;a&&a.removeChild(r)}this.el=this._container=null},t})(),$B=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),rP(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,a,n,i){var o=this;J(e)&&kt(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new Oe({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:gk(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),A(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),A(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),a=tP(e.style);return[r.width+a.left+a.right,r.height+a.top+a.bottom]},t.prototype.moveTo=function(e,r){var a=this.el;if(a){var n=this._styleCoord;rP(n,this._zr,e,r),e=n[0],r=n[1];var i=a.style,o=Sa(i.borderWidth||0),s=tP(i);a.x=e+o+s.left,a.y=r+o+s.top,a.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ge(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function Sa(t){return Math.max(0,t)}function tP(t){var e=Sa(t.shadowBlur||0),r=Sa(t.shadowOffsetX||0),a=Sa(t.shadowOffsetY||0);return{left:Sa(e-r),right:Sa(e+r),top:Sa(e-a),bottom:Sa(e+a)}}function rP(t,e,r,a){t[0]=r,t[1]=a,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var YB=new Ie({shape:{x:-1,y:-1,width:2,height:2}}),KB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,a){if(!(se.node||!a.getDom())){var n=r.getComponent("tooltip"),i=this._renderMode=YD(n.get("renderMode"));this._tooltipContent=i==="richText"?new $B(a):new WB(a,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(r,a,n){if(!(se.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=a,this._api=n;var i=this._tooltipContent;i.update(r),i.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Q1(this,"_updatePosition",50,"fixRate"):id(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,a=r.get("triggerOn");Gx("itemTooltip",this._api,ge(function(n,i,o){a!=="none"&&(a.indexOf(n)>=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,a=this._ecModel,n=this._api,i=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(r,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,a,n,i){if(!(i.from===this.uid||se.node||!n.getDom())){var o=aP(i,n);this._ticket="";var s=i.dataByCoordSys,l=ZB(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var p=YB;p.x=i.x,p.y=i.y,p.update(),ce(p).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:p},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(r,a,n,i))return;var c=Wx(i,a),f=c.point[0],h=c.point[1];f!=null&&h!=null&&this._tryShow({offsetX:f,offsetY:h,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(r,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,i.from!==this.uid&&this._hide(aP(i,n))},e.prototype._manuallyAxisShowTip=function(r,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var p=u.getData(),c=ps([p.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(r,a){var n=r.target,i=this._tooltipModel;if(i){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(n){var s=ce(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;ns(n,function(p){if(p.tooltipDisabled)return l=u=null,!0;l||u||(ce(p).dataIndex!=null?l=p:ce(p).tooltipConfig!=null&&(u=p))},!0),l?this._showSeriesItemTooltip(r,l,a):u?this._showComponentItemTooltip(r,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(a)}},e.prototype._showOrMove=function(r,a){var n=r.get("showDelay");a=ge(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},e.prototype._showAxisTooltip=function(r,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=ps([a.tooltipOption],i),l=this._renderMode,u=[],p=fn("section",{blocks:[],noHeader:!0}),c=[],f=new Ah;A(r,function(y){A(y.dataByAxis,function(b){var k=n.getComponent(b.axisDim+"Axis",b.axisIndex),w=b.value,_=k.axis,x=_.scale.parse(w);if(!(!k||w==null)){var T=zx(w,_,n,b.seriesDataIndices,b.valueLabelOpt),C=fn("section",{header:T,noHeader:!br(T),sortBlocks:!0,blocks:[]});p.blocks.push(C),A(b.seriesDataIndices,function(P){var S=n.getSeriesByIndex(P.seriesIndex),L=P.dataIndexInside,D=S.getDataParams(L);if(!(D.dataIndex<0)){D.axisDim=b.axisDim,D.axisIndex=b.axisIndex,D.axisType=b.axisType,D.axisId=b.axisId,D.axisValue=Pu(k.axis,{value:x}),D.axisValueLabel=T,D.marker=f.makeTooltipMarker("item",pn(D.color),l);var M=rk(S.formatTooltip(L,!0,null)),I=M.frag;if(I){var E=ps([S],i).get("valueFormatter");C.blocks.push(E?H({valueFormatter:E},I):I)}M.text&&c.push(M.text),u.push(D)}})}})}),p.blocks.reverse(),c.reverse();var h=a.position,d=s.get("order"),v=hk(p,f,l,d,n.get("useUTC"),s.get("textStyle"));v&&c.unshift(v);var m=l==="richText"?`
|
|
38
|
+
`];function fn(t,e){return e.type=t,e}function Ch(t){return t.type==="section"}function ck(t){return Ch(t)?pM:cM}function fk(t){if(Ch(t)){var e=0,r=t.blocks.length,a=r>1||r>0&&!t.noHeader;return A(t.blocks,function(n){var i=fk(n);i>=e&&(e=i+ +(a&&(!i||Ch(n)&&!n.noHeader)))}),e}return 0}function pM(t,e,r,a){var n=e.noHeader,i=fM(fk(e)),o=[],s=e.blocks||[];Jt(!s||W(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(st(u,l)){var p=new z3(u[l],null);s.sort(function(v,m){return p.evaluate(v.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(v,m){var g=e.valueFormatter,y=ck(v)(g?H(H({},t),{valueFormatter:g}):t,v,m>0?i.html:0,a);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(i.richText):Dh(a,o.join(""),n?r:i.html);if(n)return c;var f=_h(e.header,"ordinal",t.useUTC),h=pk(a,t.renderMode).nameStyle,d=uk(a);return t.renderMode==="richText"?dk(t,f,h)+i.richText+c:Dh(a,'<div style="'+h+";"+d+';">'+pt(f)+"</div>"+c,r)}function cM(t,e,r,a){var n=t.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,p=e.valueFormatter||t.valueFormatter||function(k){return k=W(k)?k:[k],K(k,function(w,_){return _h(w,W(h)?h[_]:h,u)})};if(!(i&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||$.color.secondary,n),f=i?"":_h(l,"ordinal",u),h=e.valueType,d=o?[]:p(e.value,e.rawDataIndex),v=!s||!i,m=!s&&i,g=pk(a,n),y=g.nameStyle,b=g.valueStyle;return n==="richText"?(s?"":c)+(i?"":dk(t,f,y))+(o?"":vM(t,d,v,m,b)):Dh(a,(s?"":c)+(i?"":hM(f,!s,y))+(o?"":dM(d,v,m,b)),r)}}function hk(t,e,r,a,n,i){if(t){var o=ck(t),s={useUTC:n,renderMode:r,orderMode:a,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,i)}}function fM(t){return{html:lM[t],richText:uM[t]}}function Dh(t,e,r){var a='<div style="clear:both"></div>',n="margin: "+r+"px 0 0",i=uk(t);return'<div style="'+n+";"+i+';">'+e+a+"</div>"}function hM(t,e,r){var a=e?"margin-left:2px":"";return'<span style="'+r+";"+a+'">'+pt(t)+"</span>"}function dM(t,e,r,a){var n=r?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return t=W(t)?t:[t],'<span style="'+i+";"+a+'">'+K(t,function(o){return pt(o)}).join(" ")+"</span>"}function dk(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function vM(t,e,r,a,n){var i=[n],o=a?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(W(e)?e.join(" "):e,i)}function vk(t,e){var r=t.getData().getItemVisual(e,"style"),a=r[t.visualDrawType];return pn(a)}function gk(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var Ah=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=lf()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,a){var n=a==="richText"?this._generateStyleName():null,i=FL({color:r,type:e,renderMode:a,markerId:n});return q(i)?i:(this.richTextStyles[n]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(e,r){var a={};W(r)?A(r,function(i){return H(a,i)}):H(a,r);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},t})();function gM(t){var e=t.series,r=t.dataIndex,a=t.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(r),l=W(s),u=vk(e,r),p,c,f,h;if(o>1||l&&!o){var d=mM(s,e,r,i,u);p=d.inlineValues,c=d.inlineValueTypes,f=d.blocks,h=d.inlineValues[0]}else if(o){var v=n.getDimensionInfo(i[0]);h=p=ai(n,r,i[0]),c=v.type}else h=p=l?s[0]:s;var m=uf(e),g=m&&e.name||"",y=n.getName(r),b=a?g:y;return fn("section",{header:g,noHeader:a||!m,sortParam:h,blocks:[fn("nameValue",{markerType:"item",markerColor:u,name:b,noName:!br(b),value:p,valueType:c,rawDataIndex:n.getRawIndex(r)})].concat(f||[])})}function mM(t,e,r,a,n){var i=e.getData(),o=ea(t,function(c,f,h){var d=i.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?A(a,function(c){p(ai(i,r,c),c)}):A(t,p);function p(c,f){var h=i.getDimensionInfo(f);!h||h.otherDims.tooltip===!1||(o?u.push(fn("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var ga=_e();function fu(t,e){return t.getName(e)||t.getId(e)}var yM="__universalTransitionEnabled",ft=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Ho({count:kM,reset:wM}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,n);var i=ga(this).sourceManager=new ik(this);i.prepareSource();var o=this.getInitialData(r,n);yk(o,this),this.dataTask.context.data=o,ga(this).dataBeforeProcessed=o,mk(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,a){var n=Fo(this),i=n?zo(r):{},o=this.subType;ke.hasClass(o)&&(o+="Series"),Pe(r,a.getTheme().get(this.subType)),Pe(r,this.getDefaultOption()),_l(r,"label",["show"]),this.fillDataTextStyle(r.data),n&&va(r,i,n)},e.prototype.mergeOption=function(r,a){r=Pe(this.option,r,!0),this.fillDataTextStyle(r.data);var n=Fo(this);n&&va(this.option,r,n);var i=ga(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,a);yk(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ga(this).dataBeforeProcessed=o,mk(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!yt(r))for(var a=["show"],n=0;n<r.length;n++)r[n]&&r[n].label&&_l(r[n],"label",a)},e.prototype.getInitialData=function(r,a){},e.prototype.appendData=function(r){var a=this.getRawData();a.appendData(r.data)},e.prototype.getData=function(r){var a=Lh(this);if(a){var n=a.context.data;return r==null||!n.getLinkedData?n:n.getLinkedData(r)}else return ga(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var a=Lh(this);if(a){var n=a.context;n.outputData=r,a!==this.dataTask&&(n.data=r)}ga(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return ae(r)},e.prototype.getSourceManager=function(){return ga(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return ga(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,a,n,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(n);i==null&&(i=1/0);for(var p=[],c=1/0,f=-1,h=0,d=o.getDimensionIndex(a),v=o.getStore(),m=0,g=v.count();m<g;m++){var y=v.get(d,m),b=l.dataToCoord(y),k=u-b,w=Math.abs(k);w<=i&&((w<c||w===c&&k>=0&&f<0)&&(c=w,f=k,h=0),k===f&&(p[h++]=m))}return p.length=h,p},e.prototype.formatTooltip=function(r,a,n){return gM({series:this,dataIndex:r,multipleSeries:a})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(se.node&&!(r&&r.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,a,n){var i=this.ecModel,o=Sh.prototype.getColorFromPalette.call(this,r,a,n);return o||(o=i.getColorFromPalette(r,a,n)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,a){this._innerSelect(this.getData(a),r)},e.prototype.unselect=function(r,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=fu(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,a){for(var n=[],i=0;i<r.length;i++)n[0]=r[i],this.isSelected(r[i],a)?this.unselect(n,a):this.select(n,a)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,a=he(r),n=[],i=0;i<a.length;i++){var o=r[a[i]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(r,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[fu(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[yM])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){J(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,p=0;p<l;p++){var c=a[p],f=fu(r,c);u[f]=!0,this._selectedDataIndicesMap[f]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=a[l-1],f=fu(r,h);o.selectedMap=(n={},n[f]=!0,n),this._selectedDataIndicesMap=(i={},i[f]=r.getRawIndex(h),i)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var a=[];r.hasItemOption&&r.each(function(n){var i=r.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(r,a)}},e.registerClass=function(r){return ke.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(ke);Qt(ft,jL),Qt(ft,Sh),fm(ft,ke);function mk(t){var e=t.name;uf(t)||(t.name=bM(t)||e)}function bM(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),a=[];return A(r,function(n){var i=e.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function kM(t){return t.model.getRawData().count()}function wM(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),_M}function _M(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function yk(t,e){A(AT(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,ze(xM,e))})}function xM(t,e){var r=Lh(t);return r&&r.setOutputEnd((e||this).count()),e}function Lh(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var a=r.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(t.uid))}return a}}var PM=me.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,a=e.cy,n=e.width/2,i=e.height/2;t.moveTo(r,a-i),t.lineTo(r+n,a+i),t.lineTo(r-n,a+i),t.closePath()}}),SM=me.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,a=e.cy,n=e.width/2,i=e.height/2;t.moveTo(r,a-i),t.lineTo(r+n,a),t.lineTo(r,a+i),t.lineTo(r-n,a),t.closePath()}}),TM=me.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,a=e.y,n=e.width/5*3,i=Math.max(n,e.height),o=n/2,s=o*o/(i-o),l=a-i+o+s,u=Math.asin(s/o),p=Math.cos(u)*o,c=Math.sin(u),f=Math.cos(u),h=o*.6,d=o*.7;t.moveTo(r-p,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+p-c*h,l+s+f*h,r,a-d,r,a),t.bezierCurveTo(r,a-d,r-p+c*h,l+s+f*h,r-p,l+s),t.closePath()}}),CM=me.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,a=e.width,n=e.x,i=e.y,o=a/3*2;t.moveTo(n,i),t.lineTo(n+o,i+r),t.lineTo(n,i+r/4*3),t.lineTo(n-o,i+r),t.lineTo(n,i),t.closePath()}}),DM={line:Er,rect:Ie,roundRect:Ie,square:Ie,circle:ko,diamond:SM,pin:TM,arrow:CM,triangle:PM},AM={line:function(t,e,r,a,n){n.x1=t,n.y1=e+a/2,n.x2=t+r,n.y2=e+a/2},rect:function(t,e,r,a,n){n.x=t,n.y=e,n.width=r,n.height=a},roundRect:function(t,e,r,a,n){n.x=t,n.y=e,n.width=r,n.height=a,n.r=Math.min(r,a)/4},square:function(t,e,r,a,n){var i=Math.min(r,a);n.x=t,n.y=e,n.width=i,n.height=i},circle:function(t,e,r,a,n){n.cx=t+r/2,n.cy=e+a/2,n.r=Math.min(r,a)/2},diamond:function(t,e,r,a,n){n.cx=t+r/2,n.cy=e+a/2,n.width=r,n.height=a},pin:function(t,e,r,a,n){n.x=t+r/2,n.y=e+a/2,n.width=r,n.height=a},arrow:function(t,e,r,a,n){n.x=t+r/2,n.y=e+a/2,n.width=r,n.height=a},triangle:function(t,e,r,a,n){n.cx=t+r/2,n.cy=e+a/2,n.width=r,n.height=a}},Mh={};A(DM,function(t,e){Mh[e]=new t});var LM=me.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var a=Ws(t,e,r),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(a.y=r.y+r.height*.4),a},buildPath:function(t,e,r){var a=e.symbolType;if(a!=="none"){var n=Mh[a];n||(a="rect",n=Mh[a]),AM[a](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,r)}}});function MM(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||$.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function Ir(t,e,r,a,n,i,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=O0(t.slice(8),new oe(e,r,a,n),o?"center":"cover"):t.indexOf("path://")===0?l=Ff(t.slice(7),{},new oe(e,r,a,n),o?"center":"cover"):l=new LM({shape:{symbolType:t,x:e,y:r,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=MM,i&&l.setColor(i),l}function bk(t){return W(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function kk(t,e){if(t!=null)return W(t)||(t=[t,t]),[ee(t[0],e[0])||0,ee(Z(t[1],t[0]),e[1])||0]}var EM=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){return Jl(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var a=new Me,n=Ir("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);a.add(n),n.setStyle(r.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=r.itemHeight*.8,u=Ir(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);a.add(u),u.setStyle(r.itemStyle);var p=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=p*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=$.color.neutral00,u.style.lineWidth=2),a},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e})(ft);function Eh(t,e){var r=t.mapDimensionsAll("defaultedLabel"),a=r.length;if(a===1){var n=ai(t,e,r[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<r.length;o++)i.push(ai(t,e,r[o]));return i.join(" ")}}function wk(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!W(e))return e+"";for(var a=[],n=0;n<r.length;n++){var i=t.getDimensionIndex(r[n]);i>=0&&a.push(e[i])}return a.join(" ")}var Ih=(function(t){V(e,t);function e(r,a,n,i){var o=t.call(this)||this;return o.updateData(r,a,n,i),o}return e.prototype._createSymbol=function(r,a,n,i,o,s){this.removeAll();var l=Ir(r,-1,-1,2,2,null,s);l.attr({z2:Z(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=IM,this._symbolType=r,this.add(l)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Ll(this.childAt(0))},e.prototype.downplay=function(){Ml(this.childAt(0))},e.prototype.setZ=function(r,a){var n=this.childAt(0);n.zlevel=r,n.z=a},e.prototype.setDraggable=function(r,a){var n=this.childAt(0);n.draggable=r,n.cursor=!a&&r?"move":n.cursor},e.prototype.updateData=function(r,a,n,i){this.silent=!1;var o=r.getItemVisual(a,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,a),u=e.getSymbolZ2(r,a),p=o!==this._symbolType,c=i&&i.disableAnimation;if(p){var f=r.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,r,a,l,u,f)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):Re(h,d,s,a),ei(h)}if(this._updateCommon(r,a,l,n,i),p){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Ye(h,d,s,a)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,a,n,i,o){var s=this.childAt(0),l=r.hostModel,u,p,c,f,h,d,v,m,g;if(i&&(u=i.emphasisItemStyle,p=i.blurItemStyle,c=i.selectItemStyle,f=i.focus,h=i.blurScope,v=i.labelStatesModels,m=i.hoverScale,g=i.cursorStyle,d=i.emphasisDisabled),!i||r.hasItemOption){var y=i&&i.itemModel?i.itemModel:r.getItemModel(a),b=y.getModel("emphasis");u=b.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),p=y.getModel(["blur","itemStyle"]).getItemStyle(),f=b.get("focus"),h=b.get("blurScope"),d=b.get("disabled"),v=nn(y),m=b.getShallow("scale"),g=y.getShallow("cursor")}var k=r.getItemVisual(a,"symbolRotate");s.attr("rotation",(k||0)*Math.PI/180||0);var w=kk(r.getItemVisual(a,"symbolOffset"),n);w&&(s.x=w[0],s.y=w[1]),g&&s.attr("cursor",g);var _=r.getItemVisual(a,"style"),x=_.fill;if(s instanceof Bt){var T=s.style;s.useStyle(H({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},_))}else s.__isEmptyBrush?s.useStyle(H({},_)):s.useStyle(_),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=r.getItemVisual(a,"liftZ"),P=this._z2;C!=null?P==null&&(this._z2=s.z2,s.z2+=C):P!=null&&(s.z2=P,this._z2=null);var S=o&&o.useNameLabel;an(s,v,{labelFetcher:l,labelDataIndex:a,defaultText:L,inheritColor:x,defaultOpacity:_.opacity});function L(I){return S?r.getName(I):Eh(r,I)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=s.ensureState("emphasis");D.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=p;var M=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*M,D.scaleY=this._sizeY*M,this.setSymbolScale(1),Wr(this,f,h,d)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,a,n){var i=this.childAt(0),o=ce(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&Hl(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Hl(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,a){return bk(r.getItemVisual(a,"symbolSize"))},e.getSymbolZ2=function(r,a){return r.getItemVisual(a,"z2")},e})(Me);function IM(t,e){this.parent.drift(t,e)}function hu(t,e,r,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a&&a.isIgnore&&a.isIgnore(r))&&!(a&&a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function _k(t){return t!=null&&!J(t)&&(t={isIgnore:t}),t||{}}function xk(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:nn(e),cursorStyle:e.get("cursor")}}function Pk(t,e,r,a,n,i,o){var s=new t(e,r,a,n);return s.setPosition(i),e.setItemGraphicEl(r,s),o.add(s),s}var Sk=(function(){function t(e){this.group=new Me,this._SymbolCtor=e||Ih}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=_k(r);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=xk(e),u={disableAnimation:s},p=r.getSymbolPoint||function(c){return e.getItemLayout(c)};i||a.removeAll(),e.diff(i).add(function(c){var f=p(c);hu(e,f,c,r)&&Pk(o,e,c,l,u,f,a)}).update(function(c,f){var h=i.getItemGraphicEl(f),d=p(c);if(!hu(e,d,c,r)){a.remove(h);return}var v=e.getItemVisual(c,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==v)a.remove(h),h=new o(e,c,l,u),h.setPosition(d);else{h.updateData(e,c,l,u);var g={x:d[0],y:d[1]};s?h.attr(g):Re(h,g,n)}a.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&f.fadeOut(function(){a.remove(f)},n)}).execute(),this._getSymbolPoint=p,this._data=e},t.prototype.updateLayout=function(e){var r=this._data;if(r)for(var a=this,n=r.getStore(),i=0,o=n.count();i<o;i++){var s=r.getItemGraphicEl(i),l=a._getSymbolPoint(i);hu(r,l,i,e)?(s=s||Pk(a._SymbolCtor,r,i,a._seriesScope,{disableAnimation:!0},l,a.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(a.group.remove(s),r.setItemGraphicEl(i,null))}},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=xk(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,a,n){this._progressiveEls=[],n=_k(n);function i(u){u.isGroup||(u.incremental=a,u.ensureState("emphasis").hoverLayer=Nf)}for(var o=e.start;o<e.end;o++){var s=r.getItemLayout(o);if(hu(r,s,o,n)){var l=new this._SymbolCtor(r,o,this._seriesScope);l.traverse(i),l.setPosition(s),this.group.add(l),r.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},t.prototype.eachRendered=function(e){Gl(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,a=this._data;a&&e?a.eachItemGraphicEl(function(n){n.fadeOut(function(){r.remove(n)},a.hostModel)}):r.removeAll()},t})();function Tk(t,e,r){var a=t.getBaseAxis(),n=t.getOtherAxis(a),i=OM(n,r),o=a.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),p=s==="x"||s==="radius"?1:0,c=K(t.dimensions,function(d){return e.mapDimension(d)}),f=!1,h=e.getCalculationInfo("stackResultDimension");return si(e,c[0])&&(f=!0,c[0]=h),si(e,c[1])&&(f=!0,c[1]=h),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:l,baseDim:u,baseDataOffset:p,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function OM(t,e){var r=0,a=t.scale.getExtent();return e==="start"?r=a[0]:e==="end"?r=a[1]:be(e)&&!isNaN(e)?r=e:a[0]>0?r=a[0]:a[1]<0&&(r=a[1]),r}function Ck(t,e,r,a){var n=NaN;t.stacked&&(n=r.get(r.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=t.valueStart);var i=t.baseDataOffset,o=[];return o[i]=r.get(t.baseDim,a),o[1-i]=n,e.dataToPoint(o)}function $t(t,e){return!isFinite(t)||!isFinite(e)}var RM=typeof Float32Array!==Xn?Float32Array:void 0,BM=typeof Float64Array!==Xn?Float64Array:void 0;function Kr(t){return Oh({ctor:RM},t).arr}function Oh(t,e){var r=t.arr,a=t.ctor;if(e>Ay&&(e=Ay),!r||t.typed&&r.length<e){var n=void 0;if(a)try{n=new a(e),t.typed=!0,r&&n.set(r)}catch{}if(!n&&(n=[],t.typed=!1,r))for(var i=0,o=r.length;i<o;i++)n[i]=r[i];t.arr=n}return t}function NM(t,e){var r=[];return e.diff(t).add(function(a){r.push({cmd:"+",idx:a})}).update(function(a,n){r.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){r.push({cmd:"-",idx:a})}).execute(),r}function FM(t,e,r,a,n,i,o,s){for(var l=NM(t,e),u=[],p=[],c=[],f=[],h=[],d=[],v=[],m=Tk(n,e,o),g=t.getLayout("points")||[],y=e.getLayout("points")||[],b=0;b<l.length;b++){var k=l[b],w=!0,_=void 0,x=void 0;switch(k.cmd){case"=":_=k.idx*2,x=k.idx1*2;var T=g[_],C=g[_+1],P=y[x],S=y[x+1];(isNaN(T)||isNaN(C))&&(T=P,C=S),u.push(T,C),p.push(P,S),c.push(r[_],r[_+1]),f.push(a[x],a[x+1]),v.push(e.getRawIndex(k.idx1));break;case"+":var L=k.idx,D=m.dataDimsForPoint,M=n.dataToPoint([e.get(D[0],L),e.get(D[1],L)]);x=L*2,u.push(M[0],M[1]),p.push(y[x],y[x+1]);var I=Ck(m,n,e,L);c.push(I[0],I[1]),f.push(a[x],a[x+1]),v.push(e.getRawIndex(L));break;case"-":w=!1}w&&(h.push(k),d.push(d.length))}d.sort(function(j,ne){return v[j]-v[ne]});for(var E=u.length,O=Kr(E),R=Kr(E),B=Kr(E),N=Kr(E),F=[],b=0;b<d.length;b++){var U=d[b],Y=b*2,z=U*2;O[Y]=u[z],O[Y+1]=u[z+1],R[Y]=p[z],R[Y+1]=p[z+1],B[Y]=c[z],B[Y+1]=c[z+1],N[Y]=f[z],N[Y+1]=f[z+1],F[b]=h[U]}return{current:O,next:R,stackedOnCurrent:B,stackedOnNext:N,status:F}}var ma=Math.min,ya=Math.max;function Rh(t,e,r,a,n,i,o,s,l){for(var u,p,c,f,h,d,v=r,m=0;m<a;m++){var g=e[v*2],y=e[v*2+1];if(v>=n||v<0)break;if($t(g,y)){if(l){v+=i;continue}break}if(v===r)t[i>0?"moveTo":"lineTo"](g,y),c=g,f=y;else{var b=g-u,k=y-p;if(b*b+k*k<.5){v+=i;continue}if(o>0){for(var w=v+i,_=e[w*2],x=e[w*2+1];_===g&&x===y&&m<a;)m++,w+=i,v+=i,_=e[w*2],x=e[w*2+1],g=e[v*2],y=e[v*2+1],b=g-u,k=y-p;var T=m+1;if(l)for(;$t(_,x)&&T<a;)T++,w+=i,_=e[w*2],x=e[w*2+1];var C=.5,P=0,S=0,L=void 0,D=void 0;if(T>=a||$t(_,x))h=g,d=y;else{P=_-u,S=x-p;var M=g-u,I=_-g,E=y-p,O=x-y,R=void 0,B=void 0;if(s==="x"){R=Math.abs(M),B=Math.abs(I);var N=P>0?1:-1;h=g-N*R*o,d=y,L=g+N*B*o,D=y}else if(s==="y"){R=Math.abs(E),B=Math.abs(O);var F=S>0?1:-1;h=g,d=y-F*R*o,L=g,D=y+F*B*o}else R=Math.sqrt(M*M+E*E),B=Math.sqrt(I*I+O*O),C=B/(B+R),h=g-P*o*(1-C),d=y-S*o*(1-C),L=g+P*o*C,D=y+S*o*C,L=ma(L,ya(_,g)),D=ma(D,ya(x,y)),L=ya(L,ma(_,g)),D=ya(D,ma(x,y)),P=L-g,S=D-y,h=g-P*R/B,d=y-S*R/B,h=ma(h,ya(u,g)),d=ma(d,ya(p,y)),h=ya(h,ma(u,g)),d=ya(d,ma(p,y)),P=g-h,S=y-d,L=g+P*B/R,D=y+S*B/R}t.bezierCurveTo(c,f,h,d,g,y),c=L,f=D}else t.lineTo(g,y)}u=g,p=y,v+=i}return m}var Dk=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),zM=(function(t){V(e,t);function e(r){var a=t.call(this,r)||this;return a.type="ec-polyline",a}return e.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Dk},e.prototype.buildPath=function(r,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&$t(n[o*2-2],n[o*2-1]);o--);for(;i<o&&$t(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=Rh(r,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},e.prototype.getPointOn=function(r,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,i=n.data,o=sa.CMD,s,l,u=a==="x",p=[],c=0;c<i.length;){var f=i[c++],h=void 0,d=void 0,v=void 0,m=void 0,g=void 0,y=void 0,b=void 0;switch(f){case o.M:s=i[c++],l=i[c++];break;case o.L:if(h=i[c++],d=i[c++],b=u?(r-s)/(h-s):(r-l)/(d-l),b<=1&&b>=0){var k=u?(d-l)*b+l:(h-s)*b+s;return u?[r,k]:[k,r]}s=h,l=d;break;case o.C:h=i[c++],d=i[c++],v=i[c++],m=i[c++],g=i[c++],y=i[c++];var w=u?qs(s,h,v,g,r,p):qs(l,d,m,y,r,p);if(w>0)for(var _=0;_<w;_++){var x=p[_];if(x<=1&&x>=0){var k=u?je(l,d,m,y,x):je(s,h,v,g,x);return u?[r,k]:[k,r]}}s=g,l=y;break}}},e})(me),HM=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Dk),VM=(function(t){V(e,t);function e(r){var a=t.call(this,r)||this;return a.type="ec-polygon",a}return e.prototype.getDefaultShape=function(){return new HM},e.prototype.buildPath=function(r,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&$t(n[s*2-2],n[s*2-1]);s--);for(;o<s&&$t(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=Rh(r,n,o,s,s,1,a.smooth,l,a.connectNulls);Rh(r,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,r.closePath()}},e})(me);function Bh(){var t=_e();return function(e){var r=t(e),a=e.pipelineContext,n=!!r.large,i=!!r.progressiveRender,o=r.large=!!(a&&a.large),s=r.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var Ak=_e(),UM=Bh(),at=(function(){function t(){this.group=new Me,this.uid=Io("viewChart"),this.renderTask=Ho({plan:GM,reset:WM}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,a,n){},t.prototype.highlight=function(e,r,a,n){var i=e.getData(n&&n.dataType);i&&Mk(i,n,"emphasis")},t.prototype.downplay=function(e,r,a,n){var i=e.getData(n&&n.dataType);i&&Mk(i,n,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,a,n){this.render(e,r,a,n)},t.prototype.updateVisual=function(e,r,a,n){this.render(e,r,a,n)},t.prototype.eachRendered=function(e){Gl(this.group,e)},t.markUpdateMethod=function(e,r){Ak(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function Lk(t,e,r){t&&Cf(t)&&(e==="emphasis"?Ll:Ml)(t,r)}function Mk(t,e,r){var a=Za(t,e),n=e&&e.highlightKey!=null?bA(e.highlightKey):null;a!=null?A(ut(a),function(i){Lk(t.getItemGraphicEl(i),r,n)}):t.eachItemGraphicEl(function(i){Lk(i,r,n)})}Jp(at),Vs(at);function GM(t){return UM(t.model)}function WM(t){var e=t.model,r=t.ecModel,a=t.api,n=t.payload,i=e.pipelineContext.progressiveRender,o=t.view,s=n&&Ak(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,a,n),$M[l]}var $M={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};function Ek(t,e,r,a,n){var i=t.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,p=r.get(["lineStyle","width"])||0;o-=p/2,s-=p/2,l+=p,u+=p,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new Ie({shape:{x:o,y:s,width:l,height:u}});if(e){var f=t.getBaseAxis(),h=f.isHorizontal(),d=f.inverse;h?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var v=re(n)?function(m){n(m,c)}:null;Ye(c,{shape:{width:l,height:u,x:o,y:s}},r,null,a,v)}return c}function Ik(t,e,r){var a=t.getArea(),n=ve(a.r0,1),i=ve(a.r,1),o=new Mr({shape:{cx:ve(t.cx,1),cy:ve(t.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=n,Ye(o,{shape:{endAngle:a.endAngle,r:i}},r)}return o}function YM(t,e,r,a,n){if(t){if(t.type==="polar")return Ik(t,e,r);if(t.type==="cartesian2d")return Ek(t,e,r,a,n)}else return null;return null}function KM(t){var e=t.coordinateSystem;if(t.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function Ok(t,e){return t.type===e}var or=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();Vs(or);var XM=0,Nh=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++XM,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,a=r.data,n=a&&K(a,qM);return new t({categories:n,needCollect:!n,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,a=this._needCollect;if(!q(e)&&!a)return e;if(a&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var n=this._getOrCreateMap();return r=n.get(e),r==null&&(a?(r=this.categories.length,this.categories[r]=e,n.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ae(this.categories))},t})();function qM(t){return J(t)&&t.value!=null?t.value:t+""}var Yt=0,Vo=1,jM={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},Rk=he(jM),du=2,Bk=3;function Fh(t,e,r){var a;t=t||{};var n=ct();if(n){var i=n.createBreakScaleMapper(e,r);i.hasBreaks()&&(A(Rk,function(o){i[o]&&(t[o]=ge(i[o],i))}),a=i)}return a==null&&QM(t,r),{brk:a,mapper:t}}function Nk(t,e){A(Rk,function(r){t[r]=e[r]})}function Fk(t,e){t.freeze=qe}function Uo(t){return t.getExtentUnsafe(Yt,du)}function vu(t,e){return t.getExtentUnsafe(Vo,e)||t.getExtentUnsafe(Yt,e)}function ZM(t){var e=vu(t,Bk);return e[1]-e[0]}function gu(t){var e=t.getExtentUnsafe(Yt,Bk);return e[1]-e[0]}function QM(t,e){var r=t||{},a=[];return r._extents=a,a[Yt]=e?e.slice():Ht(),H(r,JM),r}var JM={needTransform:function(){return!1},normalize:function(t){var e=this._extents[Vo]||this._extents[Yt];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[Vo]||this._extents[Yt];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=vu(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[Yt].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){zk(this._extents,Yt,t,e)},setExtent2:function(t,e,r){var a=this._extents;a[t]||(a[t]=a[Yt].slice()),zk(a,t,e,r)},freeze:function(){}};function zk(t,e,r,a){Kn(r,a)&&(t[e][0]=r,t[e][1]=a)}function Hk(t){return mu(t)||ci(t)}function mu(t){return t.type==="interval"}function zh(t){return t.type==="time"}function ci(t){return t.type==="log"}function sr(t){return t.type==="ordinal"}function e5(t){var e=of(t),r=ja(10,e),a=Vr(t/r);return a?a===2?a=3:a===3?a=5:a*=2:a=1,ve(a*r,-e)}function hn(t){return ua(t)+2}function yu(t,e){return ho(t)/ho(e)}function Hh(t,e,r){var a=r&&r.lookup;if(a){for(var n=0;n<a.from.length;n++)if(t===a.from[n])return a.to[n]}return ja(e,t)}function Vk(t,e,r){var a=t.slice();if(a[0]===a[1]){var n=r&&r.ctnShp;if(a[0]!==0){var i=Ve(a[0]);e[1]||(a[1]+=i/2),a[0]-=i/2}else n&&(a[0]=-1),a[1]=1}return(!Ur(a[0])||!Ur(a[1]))&&(a[0]=0,a[1]=1),a[1]<a[0]&&a.reverse(),a}function t5(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function bu(t,e){return t=t||e,Vr(ye(t,1))}function Uk(t,e,r){var a=Uo(t),n=a[0],i=t.count(),o=Math.max((e||0)+1,1);n!==0&&o>1&&i/o>2&&(n=Math.round(Math.ceil(n/o)*o)),n!==a[0]&&l(a[0],!0,!0);for(var s=n;s<=a[1];s+=o)l(s,!1,s===a[0]||s===a[1]);s-o!==a[1]&&l(a[1],!0,!0);function l(u,p,c){r({value:u,offInterval:p},c)}}var Gk=(function(t){V(e,t);function e(r){var a=t.call(this)||this;a.type="ordinal",a.parse=e.parse,Nk(a,e.decoratedMethods);var n=r.ordinalMeta;n||(n=new Nh({})),W(n)&&(n=new Nh({categories:K(n,function(o){return J(o)?o.value:o})})),a._ordinalMeta=n;var i=Fh(null,null,r.extent||[0,n.categories.length-1]);return a._mapper=i.mapper,Fk(a),a}return e.parse=function(r){return r==null?r=NaN:q(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=Vr(r),r},e.prototype.getTicks=function(){var r=[];return Uk(this,0,function(a){r.push(a)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=r.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=et(s,a.length);o<l;++o){var u=n[o]=a[o];i[u]=o}for(var p=0;o<s;++o){for(;i[p]!=null;)p++;n[o]=p,i[p]=o}},e.prototype._getTickNumber=function(r){var a=this._ticksByOrdinalNumber;return a&&r>=0&&r<a.length?a[r]:r},e.prototype.getRawOrdinalNumber=function(r){var a=this._ordinalNumbersByTick;return a&&r>=0&&r<a.length?a[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var a=this.getRawOrdinalNumber(r.value),n=this._ordinalMeta.categories[a];return n==null?"":n+""}},e.prototype.count=function(){var r=Uo(this._mapper);return r[1]-r[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(Vr(this._mapper.scale(r)))},transformIn:function(r,a){return this._mapper.transformIn(this._getTickNumber(r),a)},transformOut:function(r,a){return this.getRawOrdinalNumber(this._mapper.transformOut(r,a))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,a){return this._mapper.getExtentUnsafe(r,a)},setExtent:function(r,a){return this._mapper.setExtent(r,a)},setExtent2:function(r,a,n){return this._mapper.setExtent2(r,a,n)}},e})(or);or.registerClass(Gk);function Vh(t,e,r,a){for(var n=t.getTicks({expandToNicedExtent:!0}),i=[],o=t.getExtent(),s=1;s<n.length;s++){var l=n[s],u=n[s-1];if(!(u.break||l.break)){for(var p=0,c=[],f=l.value-u.value,h=f/e,d=hn(h);p<e-1;){var v=ve(u.value+(p+1)*h,d);v>o[0]&&v<o[1]&&c.push(v),p++}var m=ct();m&&m.pruneTicksByBreak("auto",c,r,function(g){return g},a,o),i.push(c)}}return i}var ba=(function(t){V(e,t);function e(r){var a=t.call(this)||this;a.type="interval",a.parse=e.parse,r=r||{};var n=Hb(a,r),i=Fh(a,n,null);return a.brk=i.brk,a._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},a}return e.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return le(this._cfg)},e.prototype.setConfig=function(r){var a=Uo(this);this._cfg=r=le(r),r.niceExtent==null&&(r.niceExtent=a.slice()),r.intervalPrecision==null&&(r.intervalPrecision=hn(r.interval))},e.prototype.getTicks=function(r){r=r||{};var a=this._cfg,n=a.interval,i=Uo(this),o=a.niceExtent,s=a.intervalPrecision,l=ct(),u=this.brk,p=l&&u,c=[];if(!n)return c;if(r.breakTicks==="only_break"&&p)return l.addBreaksToTicks(c,u.breaks,i),c;var f=3e3;i[0]<o[0]&&c.push({value:r.expandToNicedExtent?ve(o[0]-n,s):i[0]});for(var h=function(b,k){return Vr((k-b)/n)},d=a.intervalCount,v=o[0],m=0;;m++){if(d==null){if(v>o[1]||!isFinite(v)||!isFinite(o[1]))break}else{if(m>d)break;v=et(v,o[1]),m===d&&(v=o[1])}if(c.push({value:v}),v=ve(v+n,s),u){var g=u.calcNiceTickMultiple(v,h);g>=0&&(v=ve(v+g*n,s))}if(c.length>0&&v===c[c.length-1].value)break;if(c.length>f)return[]}var y=c.length?c[c.length-1].value:o[1];return i[1]>y&&c.push({value:r.expandToNicedExtent?ve(y+n,s):i[1]}),p&&l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(b){return b.value},a.interval,i),p&&r.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,i),c},e.prototype.getMinorTicks=function(r){return Vh(this,r,au(this),this._cfg.interval)},e.prototype.getLabel=function(r,a){if(r==null)return"";var n=a&&a.precision;n==null?n=ua(r.value)||0:n==="auto"&&(n=this._cfg.intervalPrecision);var i=ve(r.value,n,!0);return jb(i)},e.type="interval",e})(or);or.registerClass(ba);var r5=function(t,e,r,a){for(;r<a;){var n=r+a>>>1;t[n][1]<e?r=n+1:a=n}return r},Wk=(function(t){V(e,t);function e(r){var a=t.call(this)||this;a.type="time",a.parse=e.parse,a._locale=r.locale,a._useUTC=r.useUTC,a._interval=0;var n=Hb(a,r),i=Fh(a,n,null);return a.brk=i.brk,a}return e.prototype.getLabel=function(r){return su(r.value,Ub[RL(Ro(this._minLevelUnit))]||Ub.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,a,n){return BL(r,a,n,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var a=this._interval,n=Uo(this),i=ct(),o=this.brk,s=i&&o,l=[];if(!a)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return ct().addBreaksToTicks(l,o.breaks,n),l;l=u5(this._minLevelUnit,this._approxInterval,u,n,gu(this),o);var p=Ct.length-1,c=0;return A(l,function(f){f.time&&(p=Math.min(p,fe(Ct,f.time.upperTimeUnit)),c=Math.max(c,f.time.level))}),s&&ct().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(f){return f.value},this._approxInterval,n),s&&r.breakTicks!=="none"&&ct().addBreaksToTicks(l,o.breaks,n,function(f){for(var h=Math.max(fe(Ct,ui(f.vmin,u)),fe(Ct,ui(f.vmax,u))),d=0,v=0;v<Ct.length;v++)if(!$k(Ct[v],f.vmin,f.vmax,u)){d=v;break}var m=Math.min(d,p),g=Math.max(m,h);return{level:c,lowerTimeUnit:Ct[g],upperTimeUnit:Ct[m]}}),l},e.prototype.getMinorTicks=function(r){return Vh(this,r,au(this),this._interval)},e.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},e.parse=function(r){return be(r)?Math.round(r):+Yn(r)},e.type="time",e})(or),ku=[["second",hh],["minute",dh],["hour",Oo],["quarter-day",Oo*6],["half-day",Oo*12],["day",Wt*1.2],["half-week",Wt*3.5],["week",Wt*7],["month",Wt*31],["quarter",Wt*95],["half-year",Vb/2],["year",Vb]];function $k(t,e,r,a){return vh(new Date(e),t,a).getTime()===vh(new Date(r),t,a).getTime()}function a5(t,e){return t/=Wt,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function n5(t){var e=30*Wt;return t/=e,t>6?6:t>3?3:t>2?2:1}function i5(t){return t/=Oo,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function Yk(t,e){return t/=e?dh:hh,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function o5(t){return ye(sf(t,!0),1)}function s5(t,e,r){var a=Math.max(0,fe(Ct,e)-1);return vh(new Date(t),Ct[a],r).getTime()}function l5(t,e){var r=new Date(0);r[t](1);var a=r.getTime();r[t](1+e);var n=r.getTime()-a;return function(i,o){return Math.max(0,Math.round((o-i)/n))}}function u5(t,e,r,a,n,i){var o=3e3,s=ML,l=0;function u(E,O,R,B,N,F,U){for(var Y=l5(N,E),z=O,j=new Date(z);z<R&&z<=a[1]&&(U.push({value:z}),!(l++>o));)if(j[N](j[B]()+E),z=j.getTime(),i){var ne=i.calcNiceTickMultiple(z,Y);ne>0&&(j[N](j[B]()+ne*E),z=j.getTime())}U.push({value:z,notAdd:z>a[1]})}function p(E,O,R){var B=[],N=!O.length;if(!$k(Ro(E),a[0],a[1],r)){N&&(O=[{value:s5(a[0],E,r)},{value:a[1]}]);for(var F=0;F<O.length-1;F++){var U=O[F].value,Y=O[F+1].value;if(U!==Y){var z=void 0,j=void 0,ne=void 0,De=!1;switch(E){case"year":z=Math.max(1,Math.round(e/Wt/365)),j=Gb(r),ne=NL(r);break;case"half-year":case"quarter":case"month":z=n5(e),j=gh(r),ne=Wb(r);break;case"week":case"half-week":case"day":z=a5(e),j=mh(r),ne=$b(r),De=!0;break;case"half-day":case"quarter-day":case"hour":z=i5(e),j=yh(r),ne=Yb(r);break;case"minute":z=Yk(e,!0),j=bh(r),ne=Kb(r);break;case"second":z=Yk(e,!1),j=kh(r),ne=Xb(r);break;case"millisecond":z=o5(e),j=wh(r),ne=qb(r);break}Y>=a[0]&&U<=a[1]&&u(z,U,Y,j,ne,De,B),E==="year"&&R.length>1&&F===0&&R.unshift({value:R[0].value-z})}}for(var F=0;F<B.length;F++)R.push(B[F])}}for(var c=[],f=[],h=0,d=0,v=0;v<s.length;++v){var m=Ro(s[v]);if(OL(s[v])){p(s[v],c[c.length-1]||[],f);var g=s[v+1]?Ro(s[v+1]):null;if(m!==g){if(f.length){d=h,f.sort(function(E,O){return E.value-O.value});for(var y=[],b=0;b<f.length;++b){var k=f[b].value;(b===0||f[b-1].value!==k)&&(y.push(f[b]),k>=a[0]&&k<=a[1]&&h++)}var w=n/e;if(h>w*1.5&&d>w/1.5||(c.push(y),h>w||t===s[v]))break}f=[]}}}for(var _=Xe(K(c,function(E){return Xe(E,function(O){return O.value>=a[0]&&O.value<=a[1]&&!O.notAdd})}),function(E){return E.length>0}),x=_.length-1,T=[],v=0;v<_.length;++v)for(var C=_[v],P=0;P<C.length;++P){var S=ui(C[P].value,r);T.push({value:C[P].value,time:{level:x-v,upperTimeUnit:S,lowerTimeUnit:S}})}hf(T,ZD,null),T.sort(function(E,O){return E.value-O.value});var L=T[0],D=T[T.length-1],M=ui(a[0],r),I=ui(a[1],r);return(!L||L.value>a[0])&&T.unshift({value:a[0],time:{level:0,upperTimeUnit:M,lowerTimeUnit:M},notNice:!0}),(!D||D.value<a[1])&&T.push({value:a[1],time:{level:0,upperTimeUnit:I,lowerTimeUnit:I},notNice:!0}),T}var p5=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=Wt,r[1]+=Wt),r[1]===-1/0&&r[0]===1/0){var a=new Date;r[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),r[0]=r[1]-Wt}t.setExtent(r[0],r[1]);var n=bu(e.splitNumber,10),i=gu(t)/n,o=e.minInterval,s=e.maxInterval;o!=null&&i<o&&(i=o),s!=null&&i>s&&(i=s);var l=ku.length,u=Math.min(r5(ku,i,0,l),l-1),p=ku[u][1],c=ku[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:i,interval:p,minLevelUnit:c})};or.registerClass(Wk);var wu=0,_u=1,c5=2,Kk=(function(t){V(e,t);function e(r){var a=t.call(this)||this;a.type="log",a.parse=ba.parse,a.base=r.logBase||10;var n=[],i=[],o=a._lookup={from:n,to:i};n[wu]=n[_u]=i[wu]=i[_u]=NaN,Nk(a,e.mapperMethods);var s=ct(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,a,{noNegative:!0},c5,u),a.powStub=new ba({breakParsed:u.original}),a.intervalStub=new ba({breakParsed:u.transformed}),Fk(a,a.intervalStub),a}return e.prototype.getTicks=function(r){var a=this.base,n=this.powStub,i=ct(),o=this.intervalStub,s=o.getExtent(),l=n.getExtent(),u={lookup:{from:s,to:l}};return K(o.getTicks(r||{}),function(p){var c=p.value,f=Hh(c,a,u),h;if(i){var d=i.getTicksBreakOutwardTransform(this,p,au(n),this._lookup);d&&(h=d.vBreak,f=d.tickVal)}return{value:f,break:h}},this)},e.prototype.getMinorTicks=function(r){return Vh(this,r,au(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,a){return this.intervalStub.getLabel(r,a)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(yu(r,this.base))},scale:function(r){return Hh(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,a){return r=yu(r,this.base),a&&a.depth===du?r:this.intervalStub.transformIn(r,a)},transformOut:function(r,a){var n=a?a.depth:null;return Xk.depth=n,qk.lookup=this._lookup,Hh(n===du?r:this.intervalStub.transformOut(r,Xk),this.base,qk)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,a){this.setExtent2(Yt,r,a)},setExtent2:function(r,a,n){if(!(!Kn(a,n)||a<=0||n<=0)){var i=jk,o=jk;if(r===Yt){var s=this._lookup;i=s.to,o=s.from}this.powStub.setExtent2(r,i[wu]=a,i[_u]=n);var l=this.base;this.intervalStub.setExtent2(r,o[wu]=yu(a,l),o[_u]=yu(n,l))}},getFilter:function(){return{g:0}},sanitize:function(r,a){return Kn(a[0],a[1])&&Ft(r)&&r<=0&&(r=a[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,a){return a===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,a)}},e})(or);or.registerClass(Kk);var Xk={},qk={},jk=[],Zk={value:1,category:1,time:1,log:1},Qk=_e();function f5(t){var e=t.get("type");return(e==null||!st(Zk,e)&&!or.getClass(e))&&(e="value"),e}function h5(t,e,r){var a=ct(),n;switch(a&&(n=Jk(t,e)),e){case"category":return new Gk({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:Ht()});case"time":return new Wk({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:n});case"log":return new Kk({logBase:t.get("logBase"),breakOption:n});case"value":return new ba({breakOption:n});default:return new(or.getClass(e)||ba)({})}}function d5(t,e,r){var a=t.getExtentUnsafe(Yt,null),n=a[0],i=a[1];return Kn(n,i)?n===e||i===e?g5:n<e&&i>e?v5:Uh:Uh}var v5=1,g5=2,Uh=3;function m5(t){Qk(t).noOnMyZero=!0}function y5(t){return Qk(t).noOnMyZero}function xu(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=EL(e);return function(n,i){return t.scale.getFormattedLabel(n,i,r)}}else{if(q(e))return function(n){var i=t.scale.getLabel(n),o=e.replace("{value}",i??"");return o};if(re(e)){if(t.type==="category")return function(n,i){return e(Pu(t,n),n.value-t.scale.getExtent()[0],null)};var a=ct();return function(n,i){var o=null;return a&&(o=a.makeAxisLabelFormatterParamBreak(o,n.break)),e(Pu(t,n),i,o)}}else return function(n){return t.scale.getLabel(n)}}}function Pu(t,e){var r=t.scale;return sr(r)?r.getLabel(e):e.value}function Gh(t){var e=t.get("interval");return e??"auto"}function b5(t){return t.type==="category"&&Gh(t.getLabelModel())===0}function k5(t,e){var r={};return A(t.mapDimensionsAll(e),function(a){r[lL(t,a)]=!0}),he(r)}function fi(t){return t==="middle"||t==="center"}function Go(t){return t.getShallow("show")}function Jk(t,e,r){var a=t.get("breaks",!0);if(a!=null)return!ct()||!w5(e)?void 0:a}function w5(t){return t!=="category"}function e1(t,e,r,a,n,i){var o=ci(t),s=o?t.intervalStub:t;if(s.setExtent(a[0],a[1]),o){var l=t.powStub,u={depth:du},p=t.transformOut(a[0],u),c=t.transformOut(a[1],u),f=t5(r,a);e[0]&&!f[0]&&(p=n[0]),e[1]&&!f[1]&&(c=n[1]),l.setExtent(p,c)}s.setConfig(i)}function Wo(t,e){return sr(t)?t.getRawOrdinalNumber(e.value):e.value}function t1(t,e){return sr(t)&&!!e.get("boundaryGap")}function r1(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function a1(t){for(var e=Ht(),r=Ht(),a=0;a<t.length;){var n=t[a++],i=t[a++];$t(n,i)||(ff(e,n),ff(r,i))}return[e,r]}function n1(t,e){var r=a1(t),a=r[0],n=r[1],i=a1(e),o=i[0],s=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(n[0]-s[0]),Math.abs(a[1]-o[1]),Math.abs(n[1]-s[1]))}function i1(t){return be(t)?t:t?.5:0}function _5(t,e,r){if(r.valueDim==null)return[];for(var a=e.count(),n=Kr(a*2),i=0;i<a;i++){var o=Ck(r,t,e,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function ka(t,e,r,a,n){var i=r.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],p=[],c=[],f=[];if(n){for(l=0;l<t.length;l+=2){var h=e||t;$t(h[l],h[l+1])||f.push(t[l],t[l+1])}t=f}for(l=0;l<t.length-2;l+=2)switch(c[0]=t[l+2],c[1]=t[l+3],p[0]=t[l],p[1]=t[l+1],s.push(p[0],p[1]),a){case"end":u[o]=c[o],u[1-o]=p[1-o],s.push(u[0],u[1]);break;case"middle":var d=(p[o]+c[o])/2,v=[];u[o]=v[o]=d,u[1-o]=p[1-o],v[1-o]=c[1-o],s.push(u[0],u[1]),s.push(v[0],v[1]);break;default:u[o]=p[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function x5(t,e){var r=[],a=t.length,n,i;function o(p,c,f){var h=p.coord,d=(f-h)/(c.coord-h),v=xC(d,[p.color,c.color]);return{coord:f,color:v}}for(var s=0;s<a;s++){var l=t[s],u=l.coord;if(u<0)n=l;else if(u>e){i?r.push(o(i,l,e)):n&&r.push(o(n,l,0),o(n,l,e));break}else n&&(r.push(o(n,l,0)),n=null),r.push(l),i=l}return r}function P5(t,e,r){var a=t.getVisual("visualMeta");if(!(!a||!a.length||!t.count())&&e.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=t.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=e.getAxis(n),u=K(i.stops,function(b){return{coord:l.toGlobalCoord(l.dataToCoord(b.value)),color:b.color}}),p=u.length,c=i.outerColors.slice();p&&u[0].coord>u[p-1].coord&&(u.reverse(),c.reverse());var f=x5(u,n==="x"?r.getWidth():r.getHeight()),h=f.length;if(!h&&p)return u[0].coord<0?c[1]?c[1]:u[p-1].color:c[0]?c[0]:u[0].color;var d=10,v=f[0].coord-d,m=f[h-1].coord+d,g=m-v;if(g<.001)return"transparent";A(f,function(b){b.offset=(b.coord-v)/g}),f.push({offset:h?f[h-1].offset:.5,color:c[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:c[0]||"transparent"});var y=new A0(0,0,0,0,f,!0);return y[n]=v,y[n+"2"]=m,y}}}function S5(t,e,r){var a=t.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=r.getAxesByScale("ordinal")[0];if(i&&!(n&&T5(i,e))){var o=e.mapDimension(i.dim),s={};return A(i.getViewLabels(),function(l){l.tick.offInterval||(s[Wo(i.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function T5(t,e){var r=t.getExtent(),a=Math.abs(r[1]-r[0])/t.scale.count();isNaN(a)&&(a=0);for(var n=e.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if(Ih.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>a)return!1;return!0}function C5(t){for(var e=t.length/2;e>0&&$t(t[e*2-2],t[e*2-1]);e--);return e-1}function o1(t,e){return[t[e*2],t[e*2+1]]}function D5(t,e,r){for(var a=t.length/2,n=r==="x"?0:1,i,o,s=0,l=-1,u=0;u<a;u++)if(o=t[u*2+n],!$t(o,t[u*2+1-n])){if(u===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function s1(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Ut.length;e++)if(t.get([Ut[e],"endLabel","show"]))return!0;return!1}function Wh(t,e,r,a){if(Ok(e,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=s1(a)?function(h,d){t._endLabelOnDuring(h,d,o,s,i,n,e)}:null,u=e.getBaseAxis().isHorizontal(),p=Ek(e,r,a,function(){var h=t._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var c=p.shape,f=Math.max(c.width,c.height);u?(c.y-=f,c.height+=f*2):(c.x-=f,c.width+=f*2)}return l&&l(1,p),p}else return Ik(e,r,a)}function A5(t,e){var r=e.getBaseAxis(),a=r.isHorizontal(),n=r.inverse,i=a?n?"right":"left":"center",o=a?"middle":n?"top":"bottom";return{normal:{align:t.get("align")||i,verticalAlign:t.get("verticalAlign")||o}}}var L5=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new Me,a=new Sk;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=r,this._changePolyState=ge(this._changePolyState,this)},e.prototype.render=function(r,a,n){var i=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),p=s.getLayout("points")||[],c=i.type==="polar",f=this._coordSys,h=this._symbolDraw,d=this._polyline,v=this._polygon,m=this._lineGroup,g=!a.ssr&&r.get("animation"),y=!u.isEmpty(),b=u.get("origin"),k=Tk(i,s,b),w=y&&_5(i,s,k),_=r.get("showSymbol"),x=r.get("connectNulls"),T=_&&!c&&S5(r,s,i),C=this._data;C&&C.eachItemGraphicEl(function(de,Ce){de.__temp&&(o.remove(de),C.setItemGraphicEl(Ce,null))}),_||h.remove(),o.add(m);var P=c?!1:r.get("step"),S;i&&i.getArea&&r.get("clip",!0)&&(S=i.getArea(),S.width!=null?(S.x-=.1,S.y-=.1,S.width+=.2,S.height+=.2):S.r0&&(S.r0-=.5,S.r+=.5)),this._clipShapeForSymbol=S;var L=P5(s,i,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&f.type===i.type&&P===this._step))_&&h.updateData(s,{isIgnore:T,clipShape:S,disableAnimation:!0,getSymbolPoint:function(de){return[p[de*2],p[de*2+1]]}}),g&&this._initSymbolLabelAnimation(s,i,S),P&&(w&&(w=ka(w,p,i,P,x)),p=ka(p,null,i,P,x)),d=this._newPolyline(p),y?v=this._newPolygon(p,w):v&&(m.remove(v),v=this._polygon=null),c||this._initOrUpdateEndLabel(r,i,pn(L)),m.setClipPath(Wh(this,i,!0,r));else{y&&!v?v=this._newPolygon(p,w):v&&!y&&(m.remove(v),v=this._polygon=null),c||this._initOrUpdateEndLabel(r,i,pn(L));var D=m.getClipPath();if(D){var M=Wh(this,i,!1,r);Ye(D,{shape:M.shape},r)}else m.setClipPath(Wh(this,i,!0,r));_&&h.updateData(s,{isIgnore:T,clipShape:S,disableAnimation:!0,getSymbolPoint:function(de){return[p[de*2],p[de*2+1]]}}),(!r1(this._stackedOnPoints,w)||!r1(this._points,p))&&(g?this._doUpdateAnimation(s,w,i,n,P,b,x):(P&&(w&&(w=ka(w,p,i,P,x)),p=ka(p,null,i,P,x)),d.setShape({points:p}),v&&v.setShape({points:p,stackedOnPoints:w})))}var I=r.getModel("emphasis"),E=I.get("focus"),O=I.get("blurScope"),R=I.get("disabled");if(d.useStyle(pe(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),$r(d,r,"lineStyle"),d.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var B=d.getState("emphasis").style;B.lineWidth=+d.style.lineWidth+1}ce(d).seriesIndex=r.seriesIndex,Wr(d,E,O,R);var N=i1(r.get("smooth")),F=r.get("smoothMonotone");if(d.setShape({smooth:N,smoothMonotone:F,connectNulls:x}),v){var U=s.getCalculationInfo("stackedOnSeries"),Y=0;v.useStyle(pe(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),U&&(Y=i1(U.get("smooth"))),v.setShape({smooth:N,stackedOnSmooth:Y,smoothMonotone:F,connectNulls:x}),$r(v,r,"areaStyle"),ce(v).seriesIndex=r.seriesIndex,Wr(v,E,O,R)}var z=this._changePolyState;s.eachItemGraphicEl(function(de){de&&(de.onHoverStateChange=z)}),this._polyline.onHoverStateChange=z,this._data=s,this._coordSys=i,this._stackedOnPoints=w,this._points=p,this._step=P,this._valueOrigin=b;var j=r.get("triggerEvent"),ne=r.get("triggerLineEvent"),De=ne===!0||j===!0||j==="line",Ee=ne===!0||j===!0||j==="area";this.packEventData(r,d,De),v&&this.packEventData(r,v,Ee)},e.prototype.packEventData=function(r,a,n){ce(a).eventData=n?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:a===this._polygon?"area":"line"}:null},e.prototype.highlight=function(r,a,n,i){var o=r.getData(),s=Za(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var p=l[s*2],c=l[s*2+1];if($t(p,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(p,c))return;var f=r.get("zlevel")||0,h=r.get("z")||0;u=new Ih(o,s),u.x=p,u.y=c,u.setZ(f,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=f,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else at.prototype.highlight.call(this,r,a,n,i)},e.prototype.downplay=function(r,a,n,i){var o=r.getData(),s=Za(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else at.prototype.downplay.call(this,r,a,n,i)},e.prototype._changePolyState=function(r){var a=this._polygon;n0(this._polyline,r),a&&n0(a,r)},e.prototype._newPolyline=function(r){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new zM({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(r,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new VM({shape:{points:r,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(r,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=r.hostModel,p=u.get("animationDuration");re(p)&&(p=p(null));var c=u.get("animationDelay")||0,f=re(c)?c(null):c;r.eachItemGraphicEl(function(h,d){var v=h;if(v){var m=[h.x,h.y],g=void 0,y=void 0,b=void 0;if(n)if(o){var k=n,w=a.pointToCoord(m);i?(g=k.startAngle,y=k.endAngle,b=-w[1]/180*Math.PI):(g=k.r0,y=k.r,b=w[0])}else{var _=n;i?(g=_.x,y=_.x+_.width,b=h.x):(g=_.y+_.height,y=_.y,b=h.y)}var x=y===g?0:(b-g)/(y-g);l&&(x=1-x);var T=re(c)?c(d):p*x+f,C=v.getSymbolPath(),P=C.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),P&&P.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,a,n){var i=r.getModel("endLabel");if(s1(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Oe({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var p=C5(l);p>=0&&(an(s,nn(r,"endLabel"),{inheritColor:n,labelFetcher:r,labelDataIndex:p,defaultText:function(c,f,h){return h!=null?wk(o,h):Eh(o,c)},enableTextSetter:!0},A5(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,a,n,i,o,s,l){var u=this._endLabel,p=this._polyline;if(u){r<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=n.getLayout("points"),f=n.hostModel,h=f.get("connectNulls"),d=s.get("precision"),v=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,b=a.shape,k=y?g?b.x:b.y+b.height:g?b.x+b.width:b.y,w=(g?v:0)*(y?-1:1),_=(g?0:-v)*(y?-1:1),x=g?"x":"y",T=D5(c,k,x),C=T.range,P=C[1]-C[0],S=void 0;if(P>=1){if(P>1&&!h){var L=o1(c,C[0]);u.attr({x:L[0]+w,y:L[1]+_}),o&&(S=f.getRawValue(C[0]))}else{var L=p.getPointOn(k,x);L&&u.attr({x:L[0]+w,y:L[1]+_});var D=f.getRawValue(C[0]),M=f.getRawValue(C[1]);o&&(S=Vy(n,d,D,M,T.t))}i.lastFrameIndex=C[0]}else{var I=r===1||i.lastFrameIndex>0?C[0]:0,L=o1(c,I);o&&(S=f.getRawValue(I)),u.attr({x:L[0]+w,y:L[1]+_})}if(o){var E=Co(u);typeof E.setLabelText=="function"&&E.setLabelText(S)}}},e.prototype._doUpdateAnimation=function(r,a,n,i,o,s,l){var u=this._polyline,p=this._polygon,c=r.hostModel,f=FM(this._data,r,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),h=f.current,d=f.stackedOnCurrent,v=f.next,m=f.stackedOnNext;if(o&&(d=ka(f.stackedOnCurrent,f.current,n,o,l),h=ka(f.current,null,n,o,l),m=ka(f.stackedOnNext,f.next,n,o,l),v=ka(f.next,null,n,o,l)),n1(h,v)>3e3||p&&n1(d,m)>3e3){u.stopAnimation(),u.setShape({points:v}),p&&(p.stopAnimation(),p.setShape({points:v,stackedOnPoints:m}));return}u.shape.__points=f.current,u.shape.points=h;var g={shape:{points:v}};f.current!==h&&(g.shape.__points=f.next),u.stopAnimation(),Re(u,g,c),p&&(p.setShape({points:h,stackedOnPoints:d}),p.stopAnimation(),Re(p,{shape:{stackedOnPoints:m}},c),u.shape.points!==p.shape.points&&(p.shape.points=u.shape.points));for(var y=[],b=f.status,k=0;k<b.length;k++){var w=b[k].cmd;if(w==="="){var _=r.getItemGraphicEl(b[k].idx1);_&&y.push({el:_,ptIdx:k})}}u.animators&&u.animators.length&&u.animators[0].during(function(){p&&p.dirtyShape();for(var x=u.shape.__points,T=0;T<y.length;T++){var C=y[T].el,P=y[T].ptIdx*2;C.x=x[P],C.y=x[P+1],C.markRedraw()}})},e.prototype.remove=function(r){var a=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(i,o){i.__temp&&(a.remove(i),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(at);function $h(t,e){return{seriesType:t,plan:Bh(),reset:function(r){var a=r.getData(),n=r.coordinateSystem,i=r.pipelineContext,o=e||i.large;if(n){var s=K(n.dimensions,function(h){return a.mapDimension(h)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");si(a,s[0])&&(s[0]=u),si(a,s[1])&&(s[1]=u);var p=a.getStore(),c=a.getDimensionIndex(s[0]),f=a.getDimensionIndex(s[1]);return l&&{progress:function(h,d){for(var v=h.end-h.start,m=o&&Kr(v*l),g=[],y=[],b=h.start,k=0;b<h.end;b++){var w=void 0;if(l===1){var _=p.get(c,b);w=n.dataToPoint(_,null,y)}else g[0]=p.get(c,b),g[1]=p.get(f,b),w=n.dataToPoint(g,null,y);o?(m[k++]=w[0],m[k++]=w[1]):d.setItemLayout(b,w.slice())}o&&(d.setLayout("points",m),d.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var M5={average:function(t){for(var e=0,r=0,a=0;a<t.length;a++)isNaN(t[a])||(e+=t[a],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},E5=function(t){return Math.round(t.length/2)};function l1(t){return{seriesType:t,reset:function(e,r,a){var n=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),p=l.getExtent(),c=a.getDevicePixelRatio(),f=Math.abs(p[1]-p[0])*(c||1),h=Math.round(s/f);if(isFinite(h)&&h>1){i==="lttb"?e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h)):i==="minmax"&&e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/h));var d=void 0;q(i)?d=M5[i]:re(i)&&(d=i),d&&e.setData(n.downSample(n.mapDimension(u.dim),1/h,d,E5))}}}}}function I5(t){t.registerChartView(L5),t.registerSeriesModel(EM),t.registerLayout($h("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",a)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,l1("line"))}var O5=_e(),$o=_e(),lr={estimate:1,determine:2};function Su(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function R5(t,e){var r=t.getLabelModel().get("customValues");if(r){var a=t.scale;return{labels:K(u1(r,a),function(n,i){return{formattedLabel:xu(t)(n,i),rawLabel:a.getLabel(n),tick:n}})}}return t.type==="category"?N5(t,e):z5(t)}function B5(t,e,r){var a=t.scale,n=t.getTickModel().get("customValues");return n?{ticks:u1(n,a)}:t.type==="category"?F5(t,e):{ticks:a.getTicks(r)}}function u1(t,e){var r=e.getExtent(),a=[];return A(t,function(n){n=e.parse(n),n>=r[0]&&n<=r[1]&&a.push(n)}),hf(a,QD,null),nf(a),K(a,function(n){return{value:n}})}function N5(t,e){var r=t.getLabelModel(),a=p1(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:a}function p1(t,e,r){var a=V5(t),n=Gh(e),i=r.kind===lr.estimate;if(!i){var o=f1(a,n);if(o)return o}var s,l;re(n)?s=Tu(t,n,!1):(l=n==="auto"?U5(t,r):n,s=Tu(t,l,!1));var u={labels:s,labelCategoryInterval:l};return i?r.out.noPxChangeTryDetermine.push(function(){return Yh(a,n,u),!0}):Yh(a,n,u),u}function F5(t,e){var r=H5(t),a=Gh(e),n=f1(r,a);if(n)return n;var i,o;if((!e.get("show")||t.scale.isBlank())&&(i=[]),re(a))i=Tu(t,a,!0);else if(a==="auto"){var s=p1(t,t.getLabelModel(),Su(lr.determine));o=s.labelCategoryInterval,i=K(s.labels,function(l){return l.tick})}else o=a,i=Tu(t,o,!0);return Yh(r,a,{ticks:i,tickCategoryInterval:o})}function z5(t){var e=t.scale.getTicks(),r=xu(t);return{labels:K(e,function(a,n){return{formattedLabel:r(a,n),rawLabel:t.scale.getLabel(a),tick:a}})}}var H5=c1("axisTick"),V5=c1("axisLabel");function c1(t){return function(r){return $o(r)[t]||($o(r)[t]={list:[]})}}function f1(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function Yh(t,e,r){return t.list.push({key:e,value:r}),r}function U5(t,e){if(e.kind===lr.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return $o(t).autoInterval=r,!0}),r}var a=$o(t).autoInterval;return a??($o(t).autoInterval=t.calculateCategoryInterval(e))}function G5(t,e){var r=e.kind,a=$5(t),n=xu(t),i=(a.axisRotate-a.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,p=40;l>p&&(u=Math.max(1,Math.floor(l/p)));for(var c=s[0],f=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(f*Math.cos(i)),d=Math.abs(f*Math.sin(i)),v=0,m=0;c<=s[1];c+=u){var g=0,y=0,b=xm(n({value:c}),a.font,"center","top");g=b.width*1.3,y=b.height*1.3,v=Math.max(v,g,7),m=Math.max(m,y,7)}var k=v/h,w=m/d;isNaN(k)&&(k=1/0),isNaN(w)&&(w=1/0);var _=Math.max(0,Math.floor(Math.min(k,w)));if(r===lr.estimate)return e.out.noPxChangeTryDetermine.push(ge(W5,null,t,_,l)),_;var x=h1(t,_,l);return x??_}function W5(t,e,r){return h1(t,e,r)==null}function h1(t,e,r){var a=O5(t.model),n=t.getExtent(),i=a.lastAutoInterval,o=a.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-e)<=1&&Math.abs(o-r)<=1&&i>e&&a.axisExtent0===n[0]&&a.axisExtent1===n[1])return i;a.lastTickCount=r,a.lastAutoInterval=e,a.axisExtent0=n[0],a.axisExtent1=n[1]}function $5(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Tu(t,e,r){var a=xu(t),n=t.scale,i=[],o=re(e);return Uk(n,o?0:e,function(s,l){var u=n.getLabel(s);if(o){var p=!!e(s.value,u);if(s.offInterval=!p,!p&&!l)return}i.push(r?s:{formattedLabel:a(s),rawLabel:u,tick:s})}),i}var Cu=_e();function Y5(t){Cu(t).prepare={}}function K5(t){Cu(t).fullUpdate={}}function X5(t){return Cu(t).prepare}function hi(t){return Cu(t).fullUpdate}var q5=Wy(),Kh="|&",di=_e(),d1=-2,j5=-1,Z5=_e();function v1(t,e){var r=t.model,a=di(hi(r.ecModel)).keyed,n=a&&a.get(e);return n&&n.get(r.uid)}function Q5(t,e){return m1(v1(t,e))}function J5(t,e){var r=[];return g1(t.model.ecModel,function(a){for(var n=0;n<e.length;n++)e[n]&&a.serByIdx[e[n].seriesIndex]&&r.push(m1(a))}),r}function g1(t,e){var r=di(hi(t)).keyed;r&&r.each(function(a,n){a.each(function(i,o){e(i,n,o)})})}function m1(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function eE(t,e){var r=t.model.ecModel,a=di(hi(r)).axSer;a&&Xh(r,a.get(t.model.uid),e)}function y1(t,e,r){var a=v1(t,e);a&&Xh(t.model.ecModel,a.sers,r)}function Xh(t,e,r){if(e)for(var a=0;a<e.length;a++){var n=e[a];t.isSeriesFiltered(n)||r(n)}}function tE(t,e,r){var a=di(hi(t)).keyed,n=a&&a.get(e);n&&n.each(function(i){r(i.axis)})}function b1(t,e){var r=t.model,a=di(hi(r.ecModel)).keys;a&&A(a.get(r.uid),function(n){e(n)})}function rE(t){var e=Z5(X5(t)),r=e.keyed||(e.keyed=ae());g1(t,function(a,n,i){var o=r.get(n)||r.set(n,ae()),s=o.get(i)||o.set(i,{});a.metrics.liPosMinGap&&k1.liPosMinGap(t,a,s)})}function aE(t,e){k1[t]=e}var k1={};function qh(t,e,r){if(t){var a=e.ecModel,n=di(hi(a)),i=t.model.uid,o=n.axSer||(n.axSer=ae()),s=o.get(i)||o.set(i,[]);s.push(e);var l=e.subType,u=e.getBaseAxis()===t,p=Zh.get(jh(l,u,r))||Zh.get(jh(l,u,null));if(p){var c=n.keyed||(n.keyed=ae()),f=n.keys||(n.keys=ae()),h=p.key,d=c.get(h)||c.set(h,ae()),v=d.get(i);v||(v=d.set(i,{axis:t,sers:[],serByIdx:[]}),v.metrics=p.getMetrics(t),(f.get(i)||f.set(i,[])).push(h)),v.sers.push(e),v.serByIdx[e.seriesIndex]=e}}}function jh(t,e,r){return t+Kh+Z(e,!0)+Kh+(r||"")}function nE(t,e){var r=jh(e.seriesType,e.baseAxis,e.coordSysType);Zh.set(r,e),q5(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:rE})})}var Zh=ae(),iE=.8;function vi(t,e){e=e||{};var r={w:NaN,w2:NaN},a=t.scale,n=e.fromStat,i=e.min,o=ZM(a);Ft(o)||(o=NaN);var s=t.getExtent(),l=Ve(s[1]-s[0]);return sr(a)?oE(r,t,o,l):n&&sE(r,t,o,l,n),i!=null&&(r.w=Ft(r.w)?ye(i,r.w):i),r}function oE(t,e,r,a){var n=e.onBand,i=r+(n?1:0);i===0&&(i=1),t.w=a/i,!n&&r&&a&&(t.w2=t.w*r/a)}function sE(t,e,r,a,n){var i=!1,o=-1/0;A(n.key?[Q5(e,n.key)]:J5(e,n.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),i=!1):l===d1&&(i=!0))}),Ft(r)&&r>0&&Ft(o)?(t.w=a/r*o,t.w2=o):i&&(t.w=a*iE,t.w2=t.w*r/a)}var w1=[0,1],_1=(function(){function t(e,r,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=a||[0,0]}return t.prototype.contain=function(e){var r=this._extent,a=Math.min(r[0],r[1]),n=Math.max(r[0],r[1]);return e>=a&&e<=n},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var a=this._extent;a[0]=e,a[1]=r},t.prototype.dataToCoord=function(e,r){var a=this.scale;return e=a.normalize(a.parse(e)),Nt(e,w1,x1(this),r)},t.prototype.coordToData=function(e,r){var a=Nt(e,x1(this),w1,r);return this.scale.scale(a)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),a=B5(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),n=K(a.ticks,function(s){return{coord:this.dataToCoord(Wo(this.scale,s)),tick:s}},this),i=r.get("alignWithLabel"),o=lE(this,n,i);return K(n,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(sr(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var a=this.scale.getMinorTicks(r),n=K(a,function(i){return K(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},t.prototype.getViewLabels=function(e){return e=e||Su(lr.determine),R5(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return vi(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||Su(lr.determine),G5(this,e)},t})();function x1(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],a=r/t.scale.count()/2;e[0]+=a,e[1]-=a}return e}function lE(t,e,r){var a=e.length;if(!t.onBand||r||!a)return!1;var n=vi(t).w;if(!n)return!1;A(e,function(s){s.coord-=n/2});var i=t.scale.getExtent(),o=e[a-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+n,tick:{value:i[1]+1}}),!0}var uE=(function(t){V(e,t);function e(r,a,n,i,o){var s=t.call(this,r,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),r&&a[0]>a[1]&&a.reverse(),a},e.prototype.pointToData=function(r,a){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),a)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(_1),P1=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],pE=1,Du=2,S1=pE|Du;function Au(t,e,r){r=r||S1,e?t.dirty|=r:t.dirty&=~r}function T1(t,e){return e=e||S1,t.dirty==null||!!(t.dirty&e)}function Or(t){if(t)return T1(t)&&C1(t,t.label,t),t}function C1(t,e,r){var a=e.getComputedTransform();t.transform=$f(t.transform,a);var n=t.localRect=So(t.localRect,e.getBoundingRect()),i=e.style,o=i.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,p=i.__marginType;p==null&&u&&(o=u,p=ri.textMargin);for(var c=0;c<4;c++)Qh[c]=p===ri.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;p===ri.textMargin&&Vl(n,Qh,!1,!1);var f=t.rect=So(t.rect,n);return a&&f.applyTransform(a),p===ri.minMargin&&Vl(f,Qh,!1,!1),t.axisAligned=Wf(a),(t.label=t.label||{}).ignore=e.ignore,Au(t,!1),Au(t,!0,Du),t}var Qh=[0,0,0,0];function cE(t,e,r){return t.transform=$f(t.transform,r),t.localRect=So(t.localRect,e),t.rect=So(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=Wf(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function fE(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var a=t.rect;a&&(a.x+=e.x,a.y+=e.y);var n=t.obb;n&&n.fromBoundingRect(t.localRect,r)}}function D1(t,e){for(var r=0;r<P1.length;r++){var a=P1[r];t[a]==null&&(t[a]=e[a])}return Or(t)}function A1(t){var e=t.obb;return(!e||T1(t,Du))&&(t.obb=e=e||new L0,e.fromBoundingRect(t.localRect,t.transform),Au(t,!1,Du)),e}function hE(t,e,r,a,n){var i=t.length,o=fa[e],s=ti[e];if(i<2)return!1;t.sort(function(x,T){return x.rect[o]-T.rect[o]});for(var l=0,u,p=!1,c=0;c<i;c++){var f=t[c],h=f.rect;u=h[o]-l,u<0&&(h[o]-=u,f.label[o]-=u,p=!0),l=h[o]+h[s]}var d=t[0],v=t[i-1],m,g;y(),m<0&&w(-m,.8),g<0&&w(g,.8),y(),b(m,g,1),b(g,m,-1),y(),m<0&&_(-m),g<0&&_(g);function y(){m=d.rect[o]-r,g=a-v.rect[o]-v.rect[s]}function b(x,T,C){if(x<0){var P=Math.min(T,-x);if(P>0){k(P*C,0,i);var S=P+x;S<0&&w(-S*C,1)}else w(-x*C,1)}}function k(x,T,C){x!==0&&(p=!0);for(var P=T;P<C;P++){var S=t[P],L=S.rect;L[o]+=x,S.label[o]+=x}}function w(x,T){for(var C=[],P=0,S=1;S<i;S++){var L=t[S-1].rect,D=Math.max(t[S].rect[o]-L[o]-L[s],0);C.push(D),P+=D}if(P){var M=Math.min(Math.abs(x)/P,T);if(x>0)for(var S=0;S<i-1;S++){var I=C[S]*M;k(I,0,S+1)}else for(var S=i-1;S>0;S--){var I=C[S-1]*M;k(-I,S,i)}}}function _(x){var T=x<0?-1:1;x=Math.abs(x);for(var C=Math.ceil(x/(i-1)),P=0;P<i-1;P++)if(T>0?k(C,0,P+1):k(-C,i-P-1,i),x-=C,x<=0)return}return p}function dE(t){var e=[];t.sort(function(u,p){return(p.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||p.priority-u.priority});function r(u){if(!u.ignore){var p=u.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}u.ignore=!0}for(var a=0;a<t.length;a++){var n=Or(t[a]);if(!n.label.ignore){for(var i=n.label,o=n.labelLine,s=!1,l=0;l<e.length;l++)if(Jh(n,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(i),o&&r(o)):e.push(n)}}}function Jh(t,e,r,a){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,a)?!1:t.axisAligned&&e.axisAligned?!0:A1(t).intersect(A1(e),r,a)}var vE=null;function Lu(){return vE}var gE="expandAxisBreak",wa=Math.PI,mE=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],yE=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],dn=_e(),L1=_e(),M1=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,a=e.componentIndex,n=this.recordMap,i=n[r]||(n[r]=[]);return i[a]||(i[a]={ready:{}})},t})();function bE(t,e,r,a){var n=r.axis,i=e.ensureRecord(r),o=[],s,l=td(t.axisName)&&fi(t.nameLocation);A(a,function(d){var v=Or(d);if(!(!v||v.label.ignore)){o.push(v);var m=i.transGroup;l&&(m.transform?ji(Yo,m.transform):Xi(Yo),v.transform&&qi(Yo,Yo,v.transform),oe.copy(Mu,v.localRect),Mu.applyTransform(Yo),s?s.union(Mu):oe.copy(s=new oe(0,0,0,0),Mu))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",p=i.transGroup[u];if(o.sort(function(d,v){return Math.abs(d.label[u]-p)-Math.abs(v.label[u]-p)}),l&&s){var c=n.getExtent(),f=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-f;s.union(new oe(f,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}var Yo=wr(),Mu=new oe(0,0,0,0),E1=function(t,e,r,a,n,i){if(fi(t.nameLocation)){var o=i.stOccupiedRect;o&&I1(cE({},o,i.transGroup.transform),a,n)}else O1(i.labelInfoList,i.dirVec,a,n)};function I1(t,e,r){var a=new ie;Jh(t,e,a,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&fE(e,a)}function O1(t,e,r,a){for(var n=ie.dot(a,e)>=0,i=0,o=t.length;i<o;i++){var s=t[n?i:o-1-i];s.label.ignore||I1(s,r,a)}}var Xr=(function(){function t(e,r,a,n){this.group=new Me,this._axisModel=e,this._api=r,this._local={},this._shared=n||new M1(E1),this._resetCfgDetermined(a)}return t.prototype.updateCfg=function(e){var r=this._cfg.raw;r.position=e.position,r.labelOffset=e.labelOffset,this._resetCfgDetermined(r)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,a=r.getDefaultOption?r.getDefaultOption():{},n=Z(e.axisName,r.get("name")),i=r.get("nameMoveOverlap");(i==null||i==="auto")&&(i=Z(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:Z(e.nameDirection,1),tickDirection:Z(e.tickDirection,1),labelDirection:Z(e.labelDirection,1),labelOffset:Z(e.labelOffset,0),silent:Z(e.silent,!0),axisName:n,nameLocation:Da(r.get("nameLocation"),a.nameLocation,"end"),shouldNameMoveOverlap:td(n)&&i,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new Me({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new ie(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var a=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),A(kE,function(n){e[n]&&wE[n](a._cfg,a._local,a._shared,a._axisModel,a.group,a._transformGroup,a._api,r||{})}),this},t.innerTextLayout=function(e,r,a){var n=Ly(r-e),i,o;return kl(n)?(o=a>0?"top":"bottom",i="center"):kl(n-wa)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<wa?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),kE=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],wE={axisLine:function(t,e,r,a,n,i,o){var s=a.get(["axisLine","show"]);if(s==="auto"&&(s=!0,t.raw.axisLineAutoShow!=null&&(s=!!t.raw.axisLineAutoShow)),!!s){var l=a.axis.getExtent(),u=i.transform,p=[l[0],0],c=[l[1],0],f=p[0]>c[0];u&&(Lt(p,p,u),Lt(c,c,u));var h=H({lineCap:"round"},a.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(a.get(["axisLine","breakLine"])&&nu(a.axis.scale))Lu().buildAxisBreakLine(a,n,i,d);else{var v=new Er(H({shape:{x1:p[0],y1:p[1],x2:c[0],y2:c[1]}},d));Po(v.shape,v.style.lineWidth),v.anid="line",n.add(v)}var m=a.get(["axisLine","symbol"]);if(m!=null){var g=a.get(["axisLine","symbolSize"]);q(m)&&(m=[m,m]),(q(g)||be(g))&&(g=[g,g]);var y=kk(a.get(["axisLine","symbolOffset"])||0,g),b=g[0],k=g[1];A([{rotate:t.rotation+Math.PI/2,offset:y[0],r:0},{rotate:t.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((p[0]-c[0])*(p[0]-c[0])+(p[1]-c[1])*(p[1]-c[1]))}],function(w,_){if(m[_]!=="none"&&m[_]!=null){var x=Ir(m[_],-b/2,-k/2,b,k,h.stroke,!0),T=w.r+w.offset,C=f?c:p;x.attr({rotation:w.rotate,x:C[0]+T*Math.cos(t.rotation),y:C[1]-T*Math.sin(t.rotation),silent:!0,z2:11}),n.add(x)}})}}},axisTickLabelEstimate:function(t,e,r,a,n,i,o,s){var l=N1(e,n,s);l&&R1(t,e,r,a,n,i,o,lr.estimate)},axisTickLabelDetermine:function(t,e,r,a,n,i,o,s){var l=N1(e,n,s);l&&R1(t,e,r,a,n,i,o,lr.determine);var u=SE(t,n,i,a);PE(t,e.labelLayoutList,u),TE(t,n,i,a,t.tickDirection)},axisName:function(t,e,r,a,n,i,o,s){var l=r.ensureRecord(a);e.nameEl&&(n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=t.axisName;if(td(u)){var p=t.nameLocation,c=t.nameDirection,f=a.getModel("nameTextStyle"),h=a.get("nameGap")||0,d=a.axis.getExtent(),v=a.axis.inverse?-1:1,m=new ie(0,0),g=new ie(0,0);p==="start"?(m.x=d[0]-v*h,g.x=-v):p==="end"?(m.x=d[1]+v*h,g.x=v):(m.x=(d[0]+d[1])/2,m.y=t.labelOffset+c*h,g.y=c);var y=wr();g.transform(nc(y,y,t.rotation));var b=a.get("nameRotate");b!=null&&(b=b*wa/180);var k,w;fi(p)?k=Xr.innerTextLayout(t.rotation,b??t.rotation,c):(k=_E(t.rotation,p,b||0,d),w=t.raw.axisNameAvailableWidth,w!=null&&(w=Math.abs(w/Math.sin(k.rotation)),!isFinite(w)&&(w=null)));var _=f.getFont(),x=a.get("nameTruncate",!0)||{},T=x.ellipsis,C=Ns(t.raw.nameTruncateMaxWidth,x.maxWidth,w),P=s.nameMarginLevel||0,S=new Oe({x:m.x,y:m.y,rotation:k.rotation,silent:Xr.isLabelSilent(a),style:Gt(f,{text:u,font:_,overflow:"truncate",width:C,ellipsis:T,fill:f.getTextColor()||a.get(["axisLine","lineStyle","color"]),align:f.get("align")||k.textAlign,verticalAlign:f.get("verticalAlign")||k.textVerticalAlign}),z2:1});if(Ul({el:S,componentModel:a,itemName:u}),S.__fullText=u,S.anid="name",a.get("triggerEvent")){var L=Xr.makeAxisEventDataBase(a);L.targetType="axisName",L.name=u,ce(S).eventData=L}i.add(S),S.updateTransform(),e.nameEl=S;var D=l.nameLayout=Or({label:S,priority:S.z2,defaultAttr:{ignore:S.ignore},marginDefault:fi(p)?mE[P]:yE[P]});if(l.nameLocation=p,n.add(S),S.decomposeTransform(),t.shouldNameMoveOverlap&&D){var M=r.ensureRecord(a);r.resolveAxisNameOverlap(t,r,a,D,g,M)}}}};function R1(t,e,r,a,n,i,o,s){F1(e)||CE(t,e,n,s,a,o);var l=e.labelLayoutList;DE(t,a,l,i),ME(a,t.rotation,l);var u=t.optionHideOverlap;xE(a,l,u),u&&dE(Xe(l,function(p){return p&&!p.label.ignore})),bE(t,r,a,l)}function _E(t,e,r,a){var n=Ly(r-t),i,o,s=a[0]>a[1],l=e==="start"&&!s||e!=="start"&&s;return kl(n-wa/2)?(o=l?"bottom":"top",i="center"):kl(n-wa*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<wa*1.5&&n>wa/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function xE(t,e,r){var a=t.axis,n=t.get(["axisLabel","customValues"]);if(b5(a))return;function i(u,p,c){var f=Or(e[p]),h=Or(e[c]),d=a.scale;if(!(!f||!h)){if(u==null){if(!r&&n)return;var v=dn(f.label).labelInfo.tick;if(zh(d)&&v.notNice||sr(d)&&v.offInterval){gi(f.label);return}}if(u===!1||f.suggestIgnore){gi(f.label);return}if(h.suggestIgnore){gi(h.label);return}var m=.1;if(!r){var g=[0,0,0,0];f=D1({marginForce:g},f),h=D1({marginForce:g},h)}Jh(f,h,null,{touchThreshold:m})&&gi(u?h.label:f.label)}}var o=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),l=e.length;i(o,0,1),i(s,l-1,l-2)}function PE(t,e,r){t.showMinorTicks||A(e,function(a){if(a&&a.label.ignore)for(var n=0;n<r.length;n++){var i=r[n],o=L1(i),s=dn(a.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){gi(i);return}}})}function gi(t){t&&(t.ignore=!0)}function B1(t,e,r,a,n){for(var i=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(Lt(o,o,e),Lt(s,s,e));var p=new Er({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});Po(p.shape,p.style.lineWidth),p.anid=n+"_"+t[l].tickValue,i.push(p);var c=L1(p);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return i}function SE(t,e,r,a){var n=a.axis,i=a.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=t.tickDirection*i.get("length"),u=n.getTicksCoords(),p=B1(u,r.transform,l,pe(s.getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<p.length;c++)e.add(p[c]);return p}function TE(t,e,r,a,n){var i=a.axis,o=a.getModel("minorTick");if(!(!t.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),p=pe(l.getLineStyle(),pe(a.getModel("axisTick").getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var f=B1(s[c],r.transform,u,p,"minorticks_"+c),h=0;h<f.length;h++)e.add(f[h])}}function N1(t,e,r){if(F1(t)){var a=t.axisLabelsCreationContext,n=a.out.noPxChangeTryDetermine;if(r.noPxChange){for(var i=!0,o=0;o<n.length;o++)i=i&&n[o]();if(i)return!1}n.length&&(e.remove(t.labelGroup),ed(t,null,null,null))}return!0}function CE(t,e,r,a,n,i){var o=n.axis,s=Ns(t.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new Me;r.add(l);var u=Su(a);if(!s||o.scale.isBlank()){ed(e,[],l,u);return}var p=n.getModel("axisLabel"),c=o.getViewLabels(u),f=(Ns(t.raw.labelRotate,p.get("rotate"))||0)*wa/180,h=Xr.innerTextLayout(t.rotation,f,t.labelDirection),d=n.getCategories&&n.getCategories(!0),v=[],m=n.get("triggerEvent"),g=1/0,y=-1/0;A(c,function(k,w){var _,x=k.tick,T=k.formattedLabel,C=k.rawLabel,P=p,S=Wo(o.scale,x);if(d&&d[S]){var L=d[S];J(L)&&L.textStyle&&(P=new Ae(L.textStyle,p,n.ecModel))}var D=P.getTextColor()||n.get(["axisLine","lineStyle","color"]),M=P.getShallow("align",!0)||h.textAlign,I=Z(P.getShallow("alignMinLabel",!0),M),E=Z(P.getShallow("alignMaxLabel",!0),M),O=P.getShallow("verticalAlign",!0)||P.getShallow("baseline",!0)||h.textVerticalAlign,R=Z(P.getShallow("verticalAlignMinLabel",!0),O),B=Z(P.getShallow("verticalAlignMaxLabel",!0),O),N=10+(((_=x.time)===null||_===void 0?void 0:_.level)||0);g=Math.min(g,N),y=Math.max(y,N);var F=new Oe({x:0,y:0,rotation:0,silent:Xr.isLabelSilent(n),z2:N,style:Gt(P,{text:T,align:w===0?I:w===c.length-1?E:M,verticalAlign:w===0?R:w===c.length-1?B:O,fill:re(D)?D(o.type==="category"?C:o.type==="value"?S+"":S,w):D})});F.anid="label_"+S;var U=dn(F);if(U.labelInfo=k,U.layoutRotation=h.rotation,Ul({el:F,componentModel:n,itemName:T,formatterParamsExtra:{isTruncated:function(){return F.isTruncated},value:C,tickIndex:w}}),m){var Y=Xr.makeAxisEventDataBase(n);Y.targetType="axisLabel",Y.value=C,Y.tickIndex=w;var z=k.tick.break;if(z){var j=z.parsedBreak;Y.break={start:j.vmin,end:j.vmax}}o.type==="category"&&(Y.dataIndex=S),ce(F).eventData=Y,z&&LE(n,i,F,z)}v.push(F),l.add(F)});var b=K(v,function(k){return{label:k,priority:dn(k).labelInfo.tick.break?k.z2+(y-g+1):k.z2,defaultAttr:{ignore:k.ignore}}});ed(e,b,l,u)}function F1(t){return!!t.labelLayoutList}function ed(t,e,r,a){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=a}function DE(t,e,r,a){var n=e.get(["axisLabel","margin"]);A(r,function(i,o){var s=Or(i);if(s){var l=s.label,u=dn(l);s.suggestIgnore=l.ignore,l.ignore=!1,to(qr,AE);var p=e.axis;qr.x=p.dataToCoord(Wo(p.scale,u.labelInfo.tick)),qr.y=t.labelOffset+t.labelDirection*n,qr.rotation=u.layoutRotation,a.add(qr),qr.updateTransform(),a.remove(qr),qr.decomposeTransform(),to(l,qr),l.markRedraw(),Au(s,!0),Or(s)}})}var qr=new Ie,AE=new Ie;function td(t){return!!t}function LE(t,e,r,a){r.on("click",function(n){var i={type:gE,breaks:[{start:a.parsedBreak.breakOption.start,end:a.parsedBreak.breakOption.end}]};i[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(i)})}function ME(t,e,r){var a=ct();if(a){var n=a.retrieveAxisBreakPairs(r,function(o){return o&&dn(o.label).labelInfo.tick.break},!0),i=t.get(["breakLabelLayout","moveOverlap"],!0);(i===!0||i==="auto")&&A(n,function(o){Lu().adjustBreakLabelPair(t.axis.inverse,e,[Or(r[o[0]]),Or(r[o[1]])])})}}function Eu(t,e,r){r=r||{};var a=e.axis,n={},i=a.getAxesOnZeroOf()[0],o=a.position,s=i?"onZero":o,l=a.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],p={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,f=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(i){var h=i.toGlobalCoord(i.dataToCoord(0));f[p.onZero]=Math.max(Math.min(h,f[1]),f[0])}n.position=[l==="y"?f[p[s]]:u[0],l==="x"?f[p[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=d[o],n.labelOffset=i?f[p[o]]-f[p.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Ns(r.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var v=e.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-v:v,n.z2=1,n}function EE(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function IE(t){var e={xAxisModel:null,yAxisModel:null};return A(e,function(r,a){var n=a.replace(/Model$/,""),i=t.getReferringComponents(n,zt).models[0];e[a]=i}),e}function OE(t,e,r,a,n,i){for(var o=Eu(t,r),s=!1,l=!1,u=0;u<e.length;u++)Hk(e[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new Xr(r,a,o,n)}function RE(t,e,r){var a=Eu(e,r);t.updateCfg(a)}var BE=_e(),z1=1,NE=3,H1=(function(){function t(e,r,a,n,i){var o=sr(e),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var p=a.slice();(mu(e)||ci(e)||zh(e))&&(Uy(p,Ko(e,r.get("dataMin",!0))),Gy(p,Ko(e,r.get("dataMax",!0)))),XD(p)||(p[0]=p[1]=NaN);var c=[],f=[!1,!1],h=r.get("min",!0);h==="dataMin"?(c[0]=p[0],f[0]=!0):(c[0]=Ko(e,re(h)?h({min:p[0],max:p[1]}):h),f[0]=c[0]!=null);var d=r.get("max",!0);d==="dataMax"?(c[1]=p[1],f[1]=!0):(c[1]=Ko(e,re(d)?d({min:p[0],max:p[1]}):d),f[1]=c[1]!=null);var v=FE(e,r),m=o?null:p[1]-p[0]||Math.abs(p[0]);c[0]==null&&(c[0]=o?l?p[0]:s?0:NaN:p[0]-v[0]*m),c[1]==null&&(c[1]=o?l?p[1]:s?s-1:NaN:p[1]+v[1]*m),!Ur(c[0])&&(c[0]=NaN),!Ur(c[1])&&(c[1]=NaN);var g=l||$i(c[0])||$i(c[1])||o&&!s,y=mu(e),b=y&&r.needIncludeZero&&r.needIncludeZero();b&&(c[0]>0&&c[1]>0&&!f[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!f[1]&&(c[1]=0));var k=!1;c[0]>c[1]&&(c.reverse(),k=!0);var w=Ko(e,r.get("startValue",!0)),_=w!=null;!Ft(w)&&n&&(w=e.getDefaultStartValue?e.getDefaultStartValue():0),Ft(w)&&(_||!y||b)&&(w<c[0]&&!f[0]?(c[0]=w,f[0]=!0):w>c[1]&&!f[1]&&(c[1]=w,f[1]=!0));var x=this._i={scale:e,dataMM:p,noZoomEffMM:c,zoomMM:[],fixMM:f,zoomFixMM:[!1,!1],startValue:w,isBlank:g,incl0:b,tggAxInv:k,ctnShp:i};V1(x,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,a=e.noZoomEffMM,n=e.zoomFixMM,i=e.fixMM,o={fixMM:i,zoomFixMM:n,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:a.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],i[0]=n[0]=!0),r[1]!=null&&(s[1]=r[1],i[1]=n[1]=!0),V1(e,s),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(e,r){this._i.zoomMM[e]=r},t})();function V1(t,e){var r=t.scale,a=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],a),e[1]=r.sanitize(e[1],a),qD(e))}function Ko(t,e){return e==null?null:$i(e)?NaN:t.parse(e)}function FE(t,e){var r;if(sr(t))r=[0,0];else{var a=e.get("boundaryGap");typeof a=="boolean"&&(a=null),r=W(a)?a:[a,a]}return[U1(r[0]),U1(r[1])]}function U1(t){return Ba(typeof t=="boolean"?0:t,1)||0}function G1(t){var e=BE(t.scale);return e.extent||(e.extent=Ht()),e}function zE(t,e){G1(t).dimIdxInCoord=e.get(t.dim)}function W1(t,e){var r=t.scale,a=t.model,n=t.dim;r.rawExtentInfo||HE(r,t,n,a,e)}function HE(t,e,r,a,n){var i=G1(e),o=i.extent,s=!1;eE(e,function(p){if(p.boxCoordinateSystem){var c=Ob(p).coord,f=i.dimIdxInCoord;if(f>=0){if(W(c)){var h=c[f];h!=null&&!W(h)&&ff(o,t.parse(h))}}}else if(p.coordinateSystem){var d=p.getData();if(d){var v=t.getFilter?t.getFilter():null;A(k5(d,r),function(m){KD(o,d.getApproximateExtent(m,v))})}p.__requireStartValue&&p.__requireStartValue(e)&&(s=!0)}});var l=GE(t,e,a),u=new H1(t,a,o,s,l);$1(t,u,n),i.extent=null}function VE(t,e){var r=t.scale;$1(r,new H1(r,t.model,e,!1,!1),NE)}function $1(t,e,r){t.rawExtentInfo=e,e.from=r}function UE(t,e){rd.set(t,e)}var rd=ae();function Y1(t,e,r,a,n){t.rawExtentInfo||VE({scale:t,model:e},Ht());var i=t.rawExtentInfo.makeFinal(),o=i.effMM;return t.setExtent(o[0],o[1]),t.setBlank(i.isBlank),a&&i.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(a.inverse=!a.inverse),i}function GE(t,e,r){var a=t1(t,r),n=r.get("containShape",!0);if(n==null&&!a&&(n=!0),!n)return!1;var i=!1;return b1(e,function(o){i=!!rd.get(o)||i}),i}function WE(t,e,r,a){if(r.ctnShp){var n;if(b1(t,function(s){var l=rd.get(s);if(l){var u=l(t,a);u&&(n=n||[0,0],Uy(n,u[0]),Gy(n,u[1]),m5(t))}}),!!n){var i=e.getExtent();if(sr(e))t.onBand||e.setExtent2(Vo,et(i[0],i[0]+n[0]),ye(i[1],i[1]+n[1]));else{var o=i.slice();r.zoomFixMM[0]||(o[0]=et(o[0],e.transformOut(e.transformIn(o[0],null)+n[0],null))),r.zoomFixMM[1]||(o[1]=ye(o[1],e.transformOut(e.transformIn(o[1],null)+n[1],null))),(o[0]<i[0]||o[1]>i[1])&&e.setExtent2(Vo,o[0],o[1])}}}}function $E(){aE("liPosMinGap",YE)}function YE(t,e,r){var a=ae(),n=r.serUids,i=r.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),p=l.getFilter?l.getFilter():null,c=yb(p);function f(b){Xh(t,e.sers,function(k){var w=k.getRawData(),_=w.getDimensionIndex(w.mapDimension(s.dim));_>=0&&b(_,k,w.getStore())})}var h=0;if(f(function(b,k,w){a.set(k.uid,1),(!n||!n.hasKey(k.uid))&&(o=!0),h+=w.count()}),(!n||n.keys().length!==a.keys().length)&&(o=!0),!o&&i!=null){e.liPosMinGap=i;return}Oh(vn,h);var d=0;f(function(b,k,w){for(var _=0,x=w.count();_<x;++_){var T=w.get(b,_);isFinite(T)&&(!p||bb(c,T))&&(u&&(T=l.transformIn(T,null)),vn.arr[d++]=T)}});var v=vn.typed?vn.arr.subarray(0,d):(vn.arr.length=d,vn.arr);vn.typed?v.sort():nf(v);for(var m=1/0,g=1;g<d;++g){var y=v[g]-v[g-1];y>0&&y<m&&(m=y)}r.liPosMinGap=e.liPosMinGap=Ft(m)?m:d>0?d1:j5,r.serUids=a}var vn=Oh({ctor:BM},50);function KE(t){return function(e,r){var a=vi(e,{fromStat:{key:t}});if(Ft(a.w2))return[-a.w2/2,a.w2/2]}}function Iu(t,e){return t+Kh+e}function XE(t){return $E(),{liPosMinGap:!sr(t.scale)}}var mi="bar";function qE(t,e,r,a){nE(t,{key:e,seriesType:r,coordSysType:a,getMetrics:XE})}function jE(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var K1={left:0,right:0,top:0,bottom:0},Ou=["25%","25%"],jr="cartesian2d",ZE=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,a){var n=zo(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&r.outerBounds&&va(r.outerBounds,n)},e.prototype.mergeOption=function(r,a){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&va(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:K1,outerBoundsContain:"all",outerBoundsClampWidth:Ou[0],outerBoundsClampHeight:Ou[1],backgroundColor:$.color.transparent,borderWidth:1,borderColor:$.color.neutral30},e})(ke),QE=Wy(),JE="__ec_stack_";function X1(t){return t.get("stack")||JE+t.seriesIndex}function e4(t,e){var r=t4(t,e);return r.columnMap=r4(r),r}function t4(t,e){var r=Iu(e,jr),a=[],n=vi(t,{fromStat:{key:r},min:1});return y1(t,r,function(i){a.push({barWidth:ee(i.get("barWidth"),n.w),barMaxWidth:ee(i.get("barMaxWidth"),n.w),barMinWidth:ee(i.get("barMinWidth")||(q1(i)?.5:1),n.w),barGap:i.get("barGap"),barCategoryGap:i.get("barCategoryGap"),defaultBarGap:i.get("defaultBarGap"),stackId:X1(i)})}),{bandWidthResult:n,seriesInfo:a}}function r4(t){var e=t.bandWidthResult.w,r=e,a=0,n,i,o=[],s={};A(t.seriesInfo,function(v,m){m||(i=v.defaultBarGap||0);var g=v.stackId;st(s,g)||a++;var y=s[g];y||(y=s[g]={width:0,maxWidth:0},o.push(g));var b=v.barWidth;b&&!y.width&&(y.width=b,b=et(r,b),r-=b);var k=v.barMaxWidth;k&&(y.maxWidth=k);var w=v.barMinWidth;w&&(y.minWidth=w);var _=v.barGap;_!=null&&(i=_);var x=v.barCategoryGap;x!=null&&(n=x)}),n==null&&(n=ye(35-o.length*4,15)+"%");var l=ee(n,e),u=ee(i,1),p=(r-l)/(a+(a-1)*u);p=ye(p,0),A(o,function(v){var m=s[v],g=m.maxWidth,y=m.minWidth;if(m.width){var b=m.width;g&&(b=et(b,g)),y&&(b=ye(b,y)),m.width=b,r-=b+u*b,a--}else{var b=p;g&&g<b&&(b=et(g,r)),y&&y>b&&(b=y),b!==p&&(m.width=b,r-=b+u*b,a--)}}),p=(r-l)/(a+(a-1)*u),p=ye(p,0);var c=0,f;A(o,function(v){var m=s[v];m.width||(m.width=p),f=m,c+=m.width*(1+u)}),f&&(c-=f.width*u);var h={},d=-c/2;return A(o,function(v){var m=s[v];h[v]=h[v]||{bandWidth:e,offset:d,width:m.width},d+=m.width*(1+u)}),h}function a4(t){return{seriesType:t,overallReset:function(e){var r=Iu(t,jr);tE(e,r,function(a){var n=e4(a,t);y1(a,r,function(i){var o=n.columnMap[X1(i)];i.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function n4(t){return{seriesType:t,plan:Bh(),reset:function(e){if(EE(e)){var r=e.getData(),a=e.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getDimensionIndex(r.mapDimension(n.dim)),l=e.get("showBackground",!0),u=r.mapDimension(i.dim),p=r.getCalculationInfo("stackResultDimension"),c=si(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),h=i.toGlobalCoord(i.dataToCoord(jE(i))),d=q1(e),v=e.get("barMinHeight")||0,m=p&&r.getDimensionIndex(p),g=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(b,k){for(var w=b.count,_=d&&Kr(w*3),x=d&&l&&Kr(w*3),T=d&&Kr(w),C=a.master.getRect(),P=f?C.width:C.height,S,L=k.getStore(),D=0;(S=b.next())!=null;){var M=L.get(c?m:o,S),I=L.get(s,S),E=h,O=void 0;c&&(O=+M-L.get(o,S));var R=void 0,B=void 0,N=void 0,F=void 0;if(f){var U=a.dataToPoint([M,I]);c&&(E=a.dataToPoint([O,I])[0]),R=E,B=U[1]+y,N=U[0]-E,F=g,Ve(N)<v&&(N=(N<0?-1:1)*v)}else{var U=a.dataToPoint([I,M]);c&&(E=a.dataToPoint([I,O])[1]),R=U[0]+y,B=E,N=g,F=U[1]-E,Ve(F)<v&&(F=(F<=0?-1:1)*v)}d?(_[D]=R,_[D+1]=B,_[D+2]=f?N:F,x&&(x[D]=f?C.x:R,x[D+1]=f?B:C.y,x[D+2]=P),T[S]=S):k.setItemLayout(S,{x:R,y:B,width:N,height:F}),D+=3}d&&k.setLayout({largePoints:_,largeDataIndices:T,largeBackgroundPoints:x,valueAxisHorizontal:f})}}}}}}function q1(t){return t.pipelineContext&&t.pipelineContext.large}function i4(t){return KE(Iu(t,jr))}function o4(t){QE(t,function(){function e(r){var a=Iu(r,jr);qE(t,a,r,jr),UE(a,i4(r))}e("bar"),e("pictorialBar")})}var ad=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,a){return Jl(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(r),s=i.dataToPoint(o);if(n)A(i.getAxes(),function(f,h){if(f.type==="category"&&a!=null){var d=f.getTicksCoords(),v=f.getTickModel().get("alignWithLabel"),m=o[h],g=a[h]==="x1"||a[h]==="y1";if(g&&!v&&(m+=1),d.length<2)return;if(d.length===2){s[h]=f.toGlobalCoord(f.getExtent()[g?1:0]);return}for(var y=void 0,b=void 0,k=1,w=0;w<d.length;w++){var _=d[w].coord,x=w===d.length-1?d[w-1].tickValue+k:d[w].tickValue;if(x===m){b=_;break}else if(x<m)y=_;else if(y!=null&&x>m){b=(_+y)/2;break}w===1&&(k=x-d[0].tickValue)}b==null&&(y?y&&(b=d[d.length-1].coord):b=d[0].coord),s[h]=f.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),p=l.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=u+p/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(r){return this.getBaseAxis()!==r},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(ft);ft.registerClass(ad);var s4=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return Jl(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(r,a){var n=Yy(this,r,a);return n.progressiveRender&&(n.large=!0),n},e.prototype.brushSelector=function(r,a,n){return n.rect(a.getItemLayout(r))},e.type="series."+mi,e.dependencies=["grid","polar"],e.defaultOption=Rb(ad.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:$.color.primary,borderWidth:2}},realtimeSort:!1}),e})(ad),Ru="\0__throttleOriginMethod",j1="\0__throttleRate",Z1="\0__throttleType";function nd(t,e,r){var a,n=0,i=0,o=null,s,l,u,p;e=e||0;function c(){i=new Date().getTime(),o=null,t.apply(l,u||[])}var f=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];a=new Date().getTime(),l=this,u=h;var v=p||e,m=p||r;p=null,s=a-(m?n:i)-v,clearTimeout(o),m?o=setTimeout(c,v):s>=0?c():o=setTimeout(c,-s),n=a};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(h){p=h},f}function Q1(t,e,r,a){var n=t[e];if(n){var i=n[Ru]||n,o=n[Z1],s=n[j1];if(s!==r||o!==a){if(r==null||!a)return t[e]=i;n=t[e]=nd(i,r,a==="debounce"),n[Ru]=i,n[Z1]=a,n[j1]=r}return n}}function id(t,e){var r=t[e];r&&r[Ru]&&(r.clear&&r.clear(),t[e]=r[Ru])}var l4=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),Bu=(function(t){V(e,t);function e(r){var a=t.call(this,r)||this;return a.type="sausage",a}return e.prototype.getDefaultShape=function(){return new l4},e.prototype.buildPath=function(r,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,p=a.startAngle,c=a.endAngle,f=a.clockwise,h=Math.PI*2,d=f?c-p<h:p-c<h;d||(p=c-(f?h:-h));var v=Math.cos(p),m=Math.sin(p),g=Math.cos(c),y=Math.sin(c);d?(r.moveTo(v*o+n,m*o+i),r.arc(v*u+n,m*u+i,l,-Math.PI+p,p,!f)):r.moveTo(v*s+n,m*s+i),r.arc(n,i,s,p,c,!f),r.arc(g*u+n,y*u+i,l,c-Math.PI*2,c-Math.PI,!f),o!==0&&r.arc(n,i,o,c,p,f)},e})(me);function u4(t,e){e=e||{};var r=e.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return Ws(a,n,i);var s=t(o),l=n.distance!=null?n.distance:5,u=this.shape,p=u.cx,c=u.cy,f=u.r,h=u.r0,d=(f+h)/2,v=u.startAngle,m=u.endAngle,g=(v+m)/2,y=r?Math.abs(f-h)/2:0,b=Math.cos,k=Math.sin,w=p+f*b(v),_=c+f*k(v),x="left",T="top";switch(s){case"startArc":w=p+(h-l)*b(g),_=c+(h-l)*k(g),x="center",T="top";break;case"insideStartArc":w=p+(h+l)*b(g),_=c+(h+l)*k(g),x="center",T="bottom";break;case"startAngle":w=p+d*b(v)+Nu(v,l+y,!1),_=c+d*k(v)+Fu(v,l+y,!1),x="right",T="middle";break;case"insideStartAngle":w=p+d*b(v)+Nu(v,-l+y,!1),_=c+d*k(v)+Fu(v,-l+y,!1),x="left",T="middle";break;case"middle":w=p+d*b(g),_=c+d*k(g),x="center",T="middle";break;case"endArc":w=p+(f+l)*b(g),_=c+(f+l)*k(g),x="center",T="bottom";break;case"insideEndArc":w=p+(f-l)*b(g),_=c+(f-l)*k(g),x="center",T="top";break;case"endAngle":w=p+d*b(m)+Nu(m,l+y,!0),_=c+d*k(m)+Fu(m,l+y,!0),x="left",T="middle";break;case"insideEndAngle":w=p+d*b(m)+Nu(m,-l+y,!0),_=c+d*k(m)+Fu(m,-l+y,!0),x="right",T="middle";break;default:return Ws(a,n,i)}return a=a||{},a.x=w,a.y=_,a.align=x,a.verticalAlign=T,a}}function p4(t,e,r,a){if(be(a)){t.setTextConfig({rotation:a});return}else if(W(e)){t.setTextConfig({rotation:0});return}var n=t.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+o)/2,l,u=r(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:t.setTextConfig({rotation:0});return}var p=Math.PI*1.5-l;u==="middle"&&p>Math.PI/2&&p<Math.PI*1.5&&(p-=Math.PI),t.setTextConfig({rotation:p})}function Nu(t,e,r){return e*Math.sin(t)*(r?-1:1)}function Fu(t,e,r){return e*Math.cos(t)*(r?1:-1)}function Xo(t,e,r){var a=t.get("borderRadius");if(a==null)return r?{cornerRadius:0}:null;W(a)||(a=[a,a,a,a]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:K(a,function(i){return Ba(i,n)})}}var od=Math.max,sd=Math.min,c4=(function(t){V(e,t);function e(){var r=t.call(this)||this;return r.type=mi,r._isFirstFrame=!0,r}return e.prototype.render=function(r,a,n,i){this._model=r,this._removeOnRenderedListener(n),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,a,n):this._renderNormal(r,a,n,i))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,a){this._progressiveEls=[],this._incrementalRenderLarge(r,a)},e.prototype.eachRendered=function(r){Gl(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var a=r.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(r,a,n,i){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,p=u.getBaseAxis(),c;u.type==="cartesian2d"?c=p.isHorizontal():u.type==="polar"&&(c=p.dim==="angle");var f=r.isAnimationEnabled()?r:null,h=f4(r,u);h&&this._enableRealtimeSort(h,s,n);var d=r.get("clip",!0)||h,v=u.getArea();o.removeClipPath();var m=r.get("roundCap",!0),g=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),b=y.get("borderRadius")||0,k=[],w=this._backgroundEls,_=i&&i.isInitSort,x=i&&i.type==="changeAxisOrder";function T(S){var L=zu[u.type](s,S);if(!L)return null;var D=b4(u,c,L);return D.useStyle(y.getItemStyle()),u.type==="cartesian2d"?D.setShape("r",b):D.setShape("cornerRadius",b),k[S]=D,D}s.diff(l).add(function(S){var L=s.getItemModel(S),D=zu[u.type](s,S,L);if(D&&(g&&T(S),!(!s.hasValue(S)||!aw[u.type](D)))){var M=!1;d&&(M=J1[u.type](v,D));var I=ew[u.type](r,s,S,D,c,f,p.model,!1,m);h&&(I.forceLabelAnimation=!0),iw(I,s,S,L,D,r,c,u.type==="polar"),_?I.attr({shape:D}):h?tw(h,f,I,D,S,c,!1,!1):Ye(I,{shape:D},r,S),s.setItemGraphicEl(S,I),o.add(I),I.ignore=M}}).update(function(S,L){var D=s.getItemModel(S),M=zu[u.type](s,S,D);if(M){if(g){var I=void 0;w.length===0?I=T(L):(I=w[L],I.useStyle(y.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",b):I.setShape("cornerRadius",b),k[S]=I);var E=zu[u.type](s,S),O=uw(c,E,u);Re(I,{shape:O},f,S)}var R=l.getItemGraphicEl(L);if(!s.hasValue(S)||!aw[u.type](M)){o.remove(R);return}var B=!1;d&&(B=J1[u.type](v,M),B&&o.remove(R));var N=R&&(R.type==="sector"&&m||R.type==="sausage"&&!m);if(N&&(R&&Jn(R,r,L),R=null),R?ei(R):R=ew[u.type](r,s,S,M,c,f,p.model,!0,m),h&&(R.forceLabelAnimation=!0),x){var F=R.getTextContent();if(F){var U=Co(F);U.prevValue!=null&&(U.prevValue=U.value)}}else iw(R,s,S,D,M,r,c,u.type==="polar");_?R.attr({shape:M}):h?tw(h,f,R,M,S,c,!0,x):Re(R,{shape:M},r,S,null),s.setItemGraphicEl(S,R),R.ignore=B,o.add(R)}}).remove(function(S){var L=l.getItemGraphicEl(S);L&&Jn(L,r,S)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new Me);C.removeAll();for(var P=0;P<k.length;++P)C.add(k[P]);o.add(C),this._backgroundEls=k,this._data=s},e.prototype._renderLarge=function(r,a,n){this._clear(),sw(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,a){this._removeBackground(),sw(a,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var a=r.get("clip",!0)&&YM(r.coordinateSystem,!1,r),n=this.group;a?n.setClipPath(a):n.removeClipPath()},e.prototype._enableRealtimeSort=function(r,a,n){var i=this;if(a.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,r,n),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),p=u&&u.shape;return p&&Math.abs(o.isHorizontal()?p.height:p.width)||0};this._onRendered=function(){i._updateSortWithinSameData(a,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,a,n){var i=[];return r.each(r.mapDimension(a.dim),function(o,s){var l=n(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:K(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,a,n){for(var i=n.scale,o=r.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var p=r.rawIndexOf(o,i.getRawOrdinalNumber(l)),c=p<0?Number.MIN_VALUE:a(r.indexOfRawIndex(p));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(r,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,a,n,i){if(this._isOrderChangedWithinSameData(r,a,n)){var o=this._dataSort(r,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,a,n){var i=a.baseAxis,o=this._dataSort(r,i,function(s){return r.get(r.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(r,a){this._clear(this._model),this._removeOnRenderedListener(a)},e.prototype.dispose=function(r,a){this._removeOnRenderedListener(a)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var a=this.group,n=this._data;r&&r.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){Jn(i,r,ce(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=mi,e})(at),J1={cartesian2d:function(t,e){var r=e.width<0?-1:1,a=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height);var n=t.x+t.width,i=t.y+t.height,o=od(e.x,t.x),s=sd(e.x+e.width,n),l=od(e.y,t.y),u=sd(e.y+e.height,i),p=s<o,c=u<l;return e.x=p&&o>n?s:o,e.y=c&&l>i?u:l,e.width=p?0:s-o,e.height=c?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),p||c},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var a=e.r;e.r=e.r0,e.r0=a}var n=sd(e.r,t.r),i=od(e.r0,t.r0);e.r=n,e.r0=i;var o=n-i<0;if(r<0){var a=e.r;e.r=e.r0,e.r0=a}return o}},ew={cartesian2d:function(t,e,r,a,n,i,o,s,l){var u=new Ie({shape:H({},a),z2:1});if(u.__dataIndex=r,u.name="item",i){var p=u.shape,c=n?"height":"width";p[c]=0}return u},polar:function(t,e,r,a,n,i,o,s,l){var u=!n&&l?Bu:Mr,p=new u({shape:a,z2:1});p.name="item";var c=nw(n);if(p.calculateTextPosition=u4(c,{isRoundCap:u===Bu}),i){var f=p.shape,h=n?"r":"endAngle",d={};f[h]=n?a.r0:a.startAngle,d[h]=a[h],(s?Re:Ye)(p,{shape:d},i)}return p}};function f4(t,e){var r=t.get("realtimeSort",!0),a=e.getBaseAxis();if(r&&a.type==="category"&&e.type==="cartesian2d")return{baseAxis:a,otherAxis:e.getOtherAxis(a)}}function tw(t,e,r,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?Re:Ye)(r,{shape:l},e,n,null);var p=e?t.baseAxis.model:null;(o?Re:Ye)(r,{shape:u},p,n)}function rw(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var h4=["x","y","width","height"],d4=["cx","cy","r","startAngle","endAngle"],aw={cartesian2d:function(t){return!rw(t,h4)},polar:function(t){return!rw(t,d4)}},zu={cartesian2d:function(t,e,r){var a=t.getItemLayout(e);if(!a)return null;var n=r?g4(r,a):0,i=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(t,e,r){var a=t.getItemLayout(e);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function v4(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function nw(t){return(function(e){var r=e?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+r;default:return a}}})(t)}function iw(t,e,r,a,n,i,o,s){var l=e.getItemVisual(r,"style");if(s){if(!i.get("roundCap")){var p=t.shape,c=Xo(a.getModel("itemStyle"),p,!0);H(p,c),t.setShape(p)}}else{var u=a.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var f=a.getShallow("cursor");f&&t.attr("cursor",f);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?k4(n,i.coordinateSystem):w4(n,i.coordinateSystem),d=nn(a);an(t,d,{labelFetcher:i,labelDataIndex:r,defaultText:Eh(i.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=t.getTextContent();if(s&&v){var m=a.get(["label","position"]);t.textConfig.inside=m==="middle"?!0:null,p4(t,m==="outside"?h:m,nw(o),a.get(["label","rotate"]))}Z0(v,d,i.getRawValue(r),function(y){return wk(e,y)});var g=a.getModel(["emphasis"]);Wr(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),$r(t,a),v4(n)&&(t.style.fill="none",t.style.stroke="none",A(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function g4(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var a=t.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(a,n,i)}var m4=(function(){function t(){}return t})(),ow=(function(t){V(e,t);function e(r){var a=t.call(this,r)||this;return a.type="largeBar",a}return e.prototype.getDefaultShape=function(){return new m4},e.prototype.buildPath=function(r,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,p=0;p<n.length;p+=3)l[i]=u,l[o]=n[p+2],s[i]=n[p+i],s[o]=n[p+o],r.rect(s[0],s[1],l[0],l[1])},e})(me);function sw(t,e,r,a){var n=t.getData(),i=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=t.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints"),p=a?$y(t):0;if(u){var c=new ow({shape:{points:u},incremental:p,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),r&&r.push(c)}var f=new ow({shape:{points:n.getLayout("largePoints")},incremental:p,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,e.add(f),f.useStyle(n.getVisual("style")),f.style.stroke=null,ce(f).seriesIndex=t.seriesIndex,t.get("silent")||(f.on("mousedown",lw),f.on("mousemove",lw)),r&&r.push(f)}var lw=nd(function(t){var e=this,r=y4(e,t.offsetX,t.offsetY);ce(e).dataIndex=r>=0?r:null},30,!1);function y4(t,e,r){for(var a=t.baseDimIdx,n=1-a,i=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,p=0,c=i.length/3;p<c;p++){var f=p*3;if(l[a]=u,l[n]=i[f+2],s[a]=i[f+a],s[n]=i[f+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[p]}return-1}function uw(t,e,r){if(Ok(r,"cartesian2d")){var a=e,n=r.getArea();return{x:t?a.x:n.x,y:t?n.y:a.y,width:t?a.width:n.width,height:t?n.height:a.height}}else{var n=r.getArea(),i=e;return{cx:n.cx,cy:n.cy,r0:t?n.r0:i.r0,r:t?n.r:i.r,startAngle:t?i.startAngle:0,endAngle:t?i.endAngle:Math.PI*2}}}function b4(t,e,r){var a=t.type==="polar"?Mr:Ie;return new a({shape:uw(e,r,t),silent:!0,z2:0})}function k4(t,e){if(t.height===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"bottom":"top"}return t.height>0?"bottom":"top"}function w4(t,e){if(t.width===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"left":"right"}return t.width>=0?"right":"left"}function _4(t){t.registerChartView(c4),t.registerSeriesModel(s4),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,a4(mi)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,n4(mi)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,l1(mi)),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var a=e.componentType||"series";r.eachComponent({mainType:a,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})}),o4(t)}function x4(t,e){function r(a,n){var i=[];return a.eachComponent({mainType:"series",subType:t,query:n},function(o){i.push(o.seriesIndex)}),i}A([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(a){e(a[0],function(n,i,o){n=H({},n),o.dispatchAction(H(n,{type:a[1],seriesIndex:r(i,n)}))})})}function yi(t,e,r,a,n){var i=t+e;r.isSilent(i)||a.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,p=0;p<u.length;p++)if(u[p].seriesIndex===s){var c=o.getData(),f=Za(c,n.fromActionPayload);r.trigger(i,{type:i,seriesId:o.id,name:W(f)?c.getName(f[0]):c.getName(f),selected:q(l)?l:H({},l)})}})}function P4(t,e,r){t.on("selectchanged",function(a){var n=r.getModel();a.isFromClick?(yi("map","selectchanged",e,n,a),yi("pie","selectchanged",e,n,a)):a.fromAction==="select"?(yi("map","selected",e,n,a),yi("pie","selected",e,n,a)):a.fromAction==="unselect"&&(yi("map","unselected",e,n,a),yi("pie","unselected",e,n,a))})}function ld(t){return{seriesType:t,reset:function(e,r){var a=r.findComponents({mainType:"legend"});if(!(!a||!a.length)){var n=e.getData();n.filterSelf(function(i){for(var o=n.getName(i),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}function Hu(t,e,r){e=W(e)&&{coordDimensions:e}||H({encodeDefine:t.getEncode()},e);var a=t.getSource(),n=Mb(a,e).dimensions,i=new Lb(n,t);return i.initData(a,r),i}var ud=(function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var a=this._getDataWithEncodedVisual();return a.getItemVisual(e,r)},t})(),_a="pie",S4=_e(),pw=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new ud(ge(this.getData,this),ge(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Hu(this,{coordDimensions:["value"],encodeDefaulter:ze(rb,this)})},e.prototype.getDataParams=function(r){var a=this.getData(),n=S4(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=SD(o,a.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=i[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){_l(r,"labelLine",["show"]);var a=r.labelLine,n=r.emphasis.labelLine;a.show=a.show&&r.label.show,n.show=n.show&&r.emphasis.label.show},e.type="series."+_a,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,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"},e})(ft);J3({fullType:pw.type,getCoord2:function(t){return t.getShallow("center")}});function cw(t,e,r,a,n,i,o,s){var l=n-t,u=i-e,p=r-t,c=a-e,f=Math.sqrt(p*p+c*c);p/=f,c/=f;var h=l*p+u*c,d=h/f;d*=f;var v=o[0]=t+d*p,m=o[1]=e+d*c;return Math.sqrt((v-n)*(v-n)+(m-i)*(m-i))}var xa=new ie,Ne=new ie,Qe=new ie,Pa=new ie,Rr=new ie,Vu=[],ht=new ie;function T4(t,e){if(e<=180&&e>0){e=e/180*Math.PI,xa.fromArray(t[0]),Ne.fromArray(t[1]),Qe.fromArray(t[2]),ie.sub(Pa,xa,Ne),ie.sub(Rr,Qe,Ne);var r=Pa.len(),a=Rr.len();if(!(r<.001||a<.001)){Pa.scale(1/r),Rr.scale(1/a);var n=Pa.dot(Rr),i=Math.cos(e);if(i<n){var o=cw(Ne.x,Ne.y,Qe.x,Qe.y,xa.x,xa.y,Vu);ht.fromArray(Vu),ht.scaleAndAdd(Rr,o/Math.tan(Math.PI-e));var s=Qe.x!==Ne.x?(ht.x-Ne.x)/(Qe.x-Ne.x):(ht.y-Ne.y)/(Qe.y-Ne.y);if(isNaN(s))return;s<0?ie.copy(ht,Ne):s>1&&ie.copy(ht,Qe),ht.toArray(t[1])}}}}function C4(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,xa.fromArray(t[0]),Ne.fromArray(t[1]),Qe.fromArray(t[2]),ie.sub(Pa,Ne,xa),ie.sub(Rr,Qe,Ne);var a=Pa.len(),n=Rr.len();if(!(a<.001||n<.001)){Pa.scale(1/a),Rr.scale(1/n);var i=Pa.dot(e),o=Math.cos(r);if(i<o){var s=cw(Ne.x,Ne.y,Qe.x,Qe.y,xa.x,xa.y,Vu);ht.fromArray(Vu);var l=Math.PI/2,u=Math.acos(Rr.dot(e)),p=l+u-r;if(p>=l)ie.copy(ht,Qe);else{ht.scaleAndAdd(Rr,s/Math.tan(Math.PI/2-p));var c=Qe.x!==Ne.x?(ht.x-Ne.x)/(Qe.x-Ne.x):(ht.y-Ne.y)/(Qe.y-Ne.y);if(isNaN(c))return;c<0?ie.copy(ht,Ne):c>1&&ie.copy(ht,Qe)}ht.toArray(t[1])}}}}function pd(t,e,r,a){var n=r==="normal",i=n?t:t.ensureState(r);i.ignore=e;var o=a.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,i.shape=i.shape||{},i.shape.smooth=o;var s=a.getModel("lineStyle").getLineStyle();n?t.useStyle(s):i.style=s}function D4(t,e){var r=e.smooth,a=e.points;if(a)if(t.moveTo(a[0][0],a[0][1]),r>0&&a.length>=3){var n=lc(a[0],a[1]),i=lc(a[1],a[2]);if(!n||!i){t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*r,s=uc([],a[1],a[0],o/n),l=uc([],a[1],a[2],o/i),u=uc([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var p=1;p<a.length;p++)t.lineTo(a[p][0],a[p][1])}function fw(t,e,r){var a=t.getTextGuideLine(),n=t.getTextContent();if(!n){a&&t.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=n.ignore,l=0;l<Sl.length;l++){var u=Sl[l],p=e[u],c=u==="normal";if(p){var f=p.get("show"),h=c?s:Z(n.states[u]&&n.states[u].ignore,s);if(h||!Z(f,o)){var d=c?a:a&&a.states[u];d&&(d.ignore=!0),a&&pd(a,!0,u,p);continue}a||(a=new ca,t.setTextGuideLine(a),!c&&(s||!o)&&pd(a,!0,"normal",e.normal),t.stateProxy&&(a.stateProxy=t.stateProxy)),pd(a,!1,u,p)}}if(a){pe(a.style,r),a.style.fill=null;var v=i.get("showAbove"),m=t.textGuideLineConfig=t.textGuideLineConfig||{};m.showAbove=v||!1,a.buildPath=D4}}function hw(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},a=0;a<Ut.length;a++){var n=Ut[a];r[n]=t.getModel([n,e])}return r}var A4=Math.PI/180;function dw(t,e,r,a,n,i,o,s,l,u){if(t.length<2)return;function p(v){for(var m=v.rB,g=m*m,y=0;y<v.list.length;y++){var b=v.list[y],k=Math.abs(b.label.y-r),w=a+b.len,_=w*w,x=Math.sqrt(Math.abs((1-k*k/g)*_)),T=e+(x+b.len2)*n,C=T-b.label.x,P=b.targetTextWidth-C*n;vw(b,P,!0),b.label.x=T}}function c(v){for(var m={list:[],maxY:0},g={list:[],maxY:0},y=0;y<v.length;y++)if(v[y].labelAlignTo==="none"){var b=v[y],k=b.label.y>r?g:m,w=Math.abs(b.label.y-r);if(w>=k.maxY){var _=b.label.x-e-b.len2*n,x=a+b.len,T=Math.abs(_)<x?Math.sqrt(w*w/(1-_*_/x/x)):x;k.rB=T,k.maxY=w}k.list.push(b)}p(m),p(g)}for(var f=t.length,h=0;h<f;h++)if(t[h].position==="outer"&&t[h].labelAlignTo==="labelLine"){var d=t[h].label.x-u;t[h].linePoints[1][0]+=d,t[h].label.x=u}hE(t,1,l,l+o)&&c(t)}function L4(t,e,r,a,n,i,o,s){for(var l=[],u=[],p=Number.MAX_VALUE,c=-Number.MAX_VALUE,f=0;f<t.length;f++){var h=t[f].label;cd(t[f])||(h.x<e?(p=Math.min(p,h.x),l.push(t[f])):(c=Math.max(c,h.x),u.push(t[f])))}for(var f=0;f<t.length;f++){var d=t[f];if(!cd(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,v=d.linePoints,m=void 0;d.labelAlignTo==="edge"?h.x<e?m=v[2][0]-d.labelDistance-o-d.edgeDistance:m=o+n-d.edgeDistance-v[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<e?m=p-o-d.bleedMargin:m=o+n-c-d.bleedMargin:h.x<e?m=h.x-o-d.bleedMargin:m=o+n-h.x-d.bleedMargin,d.targetTextWidth=m,vw(d,m,!1)}}dw(u,e,r,a,1,n,i,o,s,c),dw(l,e,r,a,-1,n,i,o,s,p);for(var f=0;f<t.length;f++){var d=t[f];if(!cd(d)&&d.linePoints){var h=d.label,v=d.linePoints,g=d.labelAlignTo==="edge",y=h.style.padding,b=y?y[1]+y[3]:0,k=h.style.backgroundColor?0:b,w=d.rect.width+k,_=v[1][0]-v[2][0];g?h.x<e?v[2][0]=o+d.edgeDistance+w+d.labelDistance:v[2][0]=o+n-d.edgeDistance-w-d.labelDistance:(h.x<e?v[2][0]=h.x+d.labelDistance:v[2][0]=h.x-d.labelDistance,v[1][0]=v[2][0]+_),v[1][1]=v[2][1]=h.y}}}function vw(t,e,r){if(t.labelStyleWidth==null){var a=t.label,n=a.style,i=t.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,p=i.width+(o?0:l);if(e<p||r){if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",e-l);var c=a.getBoundingRect();a.setStyle("width",Math.ceil(c.width)),a.setStyle("backgroundColor",o)}else{var f=e-l,h=e<p?f:r?f>t.unconstrainedWidth?null:f:null;a.setStyle("width",h)}gw(i,a)}}}function gw(t,e){mw.rect=t,C1(mw,e,M4)}var M4={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},mw={};function cd(t){return t.position==="center"}function E4(t){var e=t.getData(),r=[],a,n,i=!1,o=(t.get("minShowLabelAngle")||0)*A4,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,p=s.x,c=s.y,f=s.height;function h(_){_.ignore=!0}function d(_){if(!_.ignore)return!0;for(var x in _.states)if(_.states[x].ignore===!1)return!0;return!1}e.each(function(_){var x=e.getItemGraphicEl(_),T=x.shape,C=x.getTextContent(),P=x.getTextGuideLine(),S=e.getItemModel(_),L=S.getModel("label"),D=L.get("position")||S.get(["emphasis","label","position"]),M=L.get("distanceToLabelLine"),I=L.get("alignTo"),E=ee(L.get("edgeDistance"),u),O=L.get("bleedMargin");O==null&&(O=Math.min(u,f)>200?10:2);var R=S.getModel("labelLine"),B=R.get("length");B=ee(B,u);var N=R.get("length2");if(N=ee(N,u),Math.abs(T.endAngle-T.startAngle)<o){A(C.states,h),C.ignore=!0,P&&(A(P.states,h),P.ignore=!0);return}if(d(C)){var F=(T.startAngle+T.endAngle)/2,U=Math.cos(F),Y=Math.sin(F),z,j,ne,De;a=T.cx,n=T.cy;var Ee=D==="inside"||D==="inner";if(D==="center")z=T.cx,j=T.cy,De="center";else{var de=(Ee?(T.r+T.r0)/2*U:T.r*U)+a,Ce=(Ee?(T.r+T.r0)/2*Y:T.r*Y)+n;if(z=de+U*3,j=Ce+Y*3,!Ee){var te=de+U*(B+l-T.r),ue=Ce+Y*(B+l-T.r),_t=te+(U<0?-1:1)*N,Fe=ue;I==="edge"?z=U<0?p+E:p+u-E:z=_t+(U<0?-M:M),j=Fe,ne=[[de,Ce],[te,ue],[_t,Fe]]}De=Ee?"center":I==="edge"?U>0?"right":"left":U>0?"left":"right"}var fr=Math.PI,xt=0,hr=L.get("rotate");if(be(hr))xt=hr*(fr/180);else if(D==="center")xt=0;else if(hr==="radial"||hr===!0){var Ii=U<0?-F+fr:-F;xt=Ii}else if(hr==="tangential"||hr==="tangential-noflip"&&D!=="outside"&&D!=="outer"){var dr=Math.atan2(U,Y);dr<0&&(dr=fr*2+dr);var Pp=Y>0;Pp&&hr!=="tangential-noflip"&&(dr=fr+dr),xt=dr-fr}if(i=!!xt,C.x=z,C.y=j,C.rotation=xt,C.setStyle({verticalAlign:"middle"}),Ee){C.setStyle({align:De});var Kv=C.states.select;Kv&&(Kv.x+=C.x,Kv.y+=C.y)}else{var Oi=new oe(0,0,0,0);gw(Oi,C),r.push({label:C,labelLine:P,position:D,len:B,len2:N,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new ie(U,Y),linePoints:ne,textAlign:De,labelDistance:M,labelAlignTo:I,edgeDistance:E,bleedMargin:O,rect:Oi,unconstrainedWidth:Oi.width,labelStyleWidth:C.style.width})}x.setTextConfig({inside:Ee})}}),!i&&t.get("avoidLabelOverlap")&&L4(r,a,n,l,u,f,p,c);for(var v=0;v<r.length;v++){var m=r[v],g=m.label,y=m.labelLine,b=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:m.textAlign}),b&&(A(g.states,h),g.ignore=!0);var k=g.states.select;k&&(k.x+=g.x,k.y+=g.y)}if(y){var w=m.linePoints;b||!w?(A(y.states,h),y.ignore=!0):(T4(w,m.minTurnAngle),C4(w,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:w}),g.__hostTarget.textGuideLineConfig={anchor:new ie(w[0][0],w[0][1])})}}}var yw=Math.PI*2,Uu=Math.PI/180,I4=df(_a,O4);function O4(t,e){t.eachSeriesByType(_a,function(r){var a=r.getData(),n=a.mapDimension("value"),i=UL(r,e),o=i.cx,s=i.cy,l=i.r,u=i.r0,p=i.viewRect,c=-r.get("startAngle")*Uu,f=r.get("endAngle"),h=r.get("padAngle")*Uu;f=f==="auto"?c-yw:-f*Uu;var d=r.get("minAngle")*Uu,v=d+h,m=0;a.each(n,function(E){!isNaN(E)&&m++});var g=a.getSum(n),y=Math.PI/(g||m)*2,b=r.get("clockwise"),k=r.get("roseType"),w=r.get("stillShowZeroSum"),_=a.getDataExtent(n);_[0]=0;var x=b?1:-1,T=[c,f],C=x*h/2;Jc(T,!b),c=T[0],f=T[1];var P=bw(r);P.startAngle=c,P.endAngle=f,P.clockwise=b,P.cx=o,P.cy=s,P.r=l,P.r0=u;var S=Math.abs(f-c),L=S,D=0,M=c;if(a.setLayout({viewRect:p,r:l}),a.each(n,function(E,O){var R;if(isNaN(E)){a.setItemLayout(O,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:b,cx:o,cy:s,r0:u,r:k?NaN:l});return}k!=="area"?R=g===0&&w?y:E*y:R=S/m,R<v?(R=v,L-=v):D+=E;var B=M+x*R,N=0,F=0;h>R?(N=M+x*R/2,F=N):(N=M+C,F=B-C),a.setItemLayout(O,{angle:R,startAngle:N,endAngle:F,clockwise:b,cx:o,cy:s,r0:u,r:k?Nt(E,_,[u,l]):l}),M=B}),L<yw&&m)if(L<=.001){var I=S/m;a.each(n,function(E,O){if(!isNaN(E)){var R=a.getItemLayout(O);R.angle=I;var B=0,N=0;I<h?(B=c+x*(O+1/2)*I,N=B):(B=c+x*O*I+C,N=c+x*(O+1)*I-C),R.startAngle=B,R.endAngle=N}})}else y=L/D,M=c,a.each(n,function(E,O){if(!isNaN(E)){var R=a.getItemLayout(O),B=R.angle===v?v:E*y,N=0,F=0;B<h?(N=M+x*B/2,F=N):(N=M+C,F=M+x*B-C),R.startAngle=N,R.endAngle=F,M+=x*B}})})}var bw=_e(),R4=(function(t){V(e,t);function e(r,a,n){var i=t.call(this)||this;i.z2=2;var o=new Oe;return i.setTextContent(o),i.updateData(r,a,n,!0),i}return e.prototype.updateData=function(r,a,n,i){var o=this,s=r.hostModel,l=r.getItemModel(a),u=l.getModel("emphasis"),p=r.getItemLayout(a),c=H(Xo(l.getModel("itemStyle"),p,!0),p);if(isNaN(c.startAngle)){o.setShape(c);return}if(i){o.setShape(c);var f=s.getShallow("animationType");s.ecModel.ssr?(Ye(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):f==="scale"?(o.shape.r=p.r0,Ye(o,{shape:{r:p.r}},s,a)):n!=null?(o.setShape({startAngle:n,endAngle:n}),Ye(o,{shape:{startAngle:p.startAngle,endAngle:p.endAngle}},s,a)):(o.shape.endAngle=p.startAngle,Re(o,{shape:{endAngle:p.endAngle}},s,a))}else ei(o),Re(o,{shape:c},s,a);o.useStyle(r.getItemVisual(a,"style")),$r(o,l);var h=(p.startAngle+p.endAngle)/2,d=s.get("selectedOffset"),v=Math.cos(h)*d,m=Math.sin(h)*d,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,r,a),o.ensureState("emphasis").shape=H({r:p.r+(u.get("scale")&&u.get("scaleSize")||0)},Xo(u.getModel("itemStyle"),p)),H(o.ensureState("select"),{x:v,y:m,shape:Xo(l.getModel(["select","itemStyle"]),p)}),H(o.ensureState("blur"),{shape:Xo(l.getModel(["blur","itemStyle"]),p)});var y=o.getTextGuideLine(),b=o.getTextContent();y&&H(y.ensureState("select"),{x:v,y:m}),H(b.ensureState("select"),{x:v,y:m}),Wr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,a,n){var i=this,o=a.getItemModel(n),s=o.getModel("labelLine"),l=a.getItemVisual(n,"style"),u=l&&l.fill,p=l&&l.opacity;an(i,nn(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:p,defaultText:r.getFormattedLabel(n,"normal")||a.getName(n)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var f=o.get(["label","position"]);if(f!=="outside"&&f!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new ca,this.setTextGuideLine(h)),fw(this,hw(o),{stroke:u,opacity:Da(s.get(["lineStyle","opacity"]),p,1)})}},e})(Mr),B4=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=_a,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,a,n,i){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var p=o.getItemLayout(0),c=1;isNaN(p&&p.startAngle)&&c<o.count();++c)p=o.getItemLayout(c);p&&(u=p.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var f=bw(r),h=new Mr({shape:le(f)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(d){var v=new R4(o,d,u);o.setItemGraphicEl(d,v),l.add(v)}).update(function(d,v){var m=s.getItemGraphicEl(v);m.updateData(o,d,u),m.off("click"),l.add(m),o.setItemGraphicEl(d,m)}).remove(function(d){var v=s.getItemGraphicEl(d);Jn(v,r,d)}).execute(),E4(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=r[0]-i.cx,s=r[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type=_a,e})(at);function N4(t){return{seriesType:t,reset:function(e,r){var a=e.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(be(o)&&!isNaN(o)&&o<0)})}}}function F4(t){t.registerChartView(B4),t.registerSeriesModel(pw),x4(_a,t.registerAction),t.registerLayout(I4),t.registerProcessor(ld(_a)),t.registerProcessor(N4(_a))}var bi=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),z4=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new bi(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var a=e.offsetX,n=e.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,r.drift(i,o,e),this.handler.dispatchToElement(new bi(r,e),"drag",e.event);var s=this.handler.findHover(a,n,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new bi(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new bi(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new bi(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new bi(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),H4=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fd=[],V4=se.browser.firefox&&+se.browser.version.split(".")[0]<39;function hd(t,e,r,a){return r=r||{},a?kw(t,e,r):V4&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):kw(t,e,r),r}function kw(t,e,r){if(se.domSupported&&t.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(Nb(t)){var i=t.getBoundingClientRect();r.zrX=a-i.left,r.zrY=n-i.top;return}else if(ph(fd,t,a,n)){r.zrX=fd[0],r.zrY=fd[1];return}}r.zrX=r.zrY=0}function dd(t){return t||window.event}function Kt(t,e,r){if(e=dd(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&hd(t,o,e,r)}else{hd(t,e,e,r);var i=U4(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&H4.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function U4(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,a=t.deltaY;if(r==null||a==null)return e;var n=Math.abs(a!==0?a:r),i=a>0?-1:a<0?1:r>0?-1:1;return 3*n*i}function G4(t,e,r,a){t.addEventListener(e,r,a)}function W4(t,e,r,a){t.removeEventListener(e,r,a)}var ww=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},$4=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,a){return this._doTrack(e,r,a),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:r,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=hd(a,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},t.prototype._recognize=function(e){for(var r in vd)if(vd.hasOwnProperty(r)){var a=vd[r](this._track,e);if(a)return a}},t})();function _w(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function Y4(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var vd={pinch:function(t,e){var r=t.length;if(r){var a=(t[r-1]||{}).points,n=(t[r-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=_w(a)/_w(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=Y4(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}},xw="silent";function K4(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:X4}}function X4(){ww(this.event)}var q4=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(zr),qo=(function(){function t(e,r){this.x=e,this.y=r}return t})(),j4=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],gd=new oe(0,0,0,0),Pw=(function(t){V(e,t);function e(r,a,n,i,o){var s=t.call(this)||this;return s._hovered=new qo(0,0),s.storage=r,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new q4,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new z4(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(A(j4,function(a){r.on&&r.on(a,this[a],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var a=r.zrX,n=r.zrY,i=Tw(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new qo(a,n):this.findHover(a,n),u=l.target,p=this.proxy;p.setCursor&&p.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var a=r.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new qo(0,0)},e.prototype.dispatch=function(r,a){var n=this[r];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var a=this.proxy;a.setCursor&&a.setCursor(r)},e.prototype.dispatchToElement=function(r,a,n){r=r||{};var i=r.target;if(!(i&&i.silent)){for(var o="on"+a,s=K4(a,r,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(r,a,n){var i=this.storage.getDisplayList(),o=new qo(r,a);if(Sw(i,o,r,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,p=new oe(r-u,a-u,l,l),c=i.length-1;c>=0;c--){var f=i[c];f!==n&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(gd.copy(f.getBoundingRect()),f.transform&&gd.applyTransform(f.transform),gd.intersect(p)&&s.push(f))}if(s.length)for(var h=4,d=Math.PI/12,v=Math.PI*2,m=0;m<u;m+=h)for(var g=0;g<v;g+=d){var y=r+m*Math.cos(g),b=a+m*Math.sin(g);if(Sw(s,o,y,b,n),o.target)return o}}return o},e.prototype.processGesture=function(r,a){this._gestureMgr||(this._gestureMgr=new $4);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var o=i.type;r.gestureEvent=o;var s=new qo;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e})(zr);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Pw.prototype[t]=function(e){var r=e.zrX,a=e.zrY,n=Tw(this,r,a),i,o;if((t!=="mouseup"||!n)&&(i=this.findHover(r,a),o=i.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||lc(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});function Z4(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var a=t,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,r))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s?a.ignoreHostSilent?null:s:a.parent}return n?xw:!0}return!1}function Sw(t,e,r,a,n){for(var i=t.length-1;i>=0;i--){var o=t[i],s=void 0;if(o!==n&&!o.ignore&&(s=Z4(o,r,a))&&(!e.topTarget&&(e.topTarget=o),s!==xw)){e.target=o;break}}}function Tw(t,e,r){var a=t.painter;return e<0||e>a.getWidth()||r<0||r>a.getHeight()}var Cw=32,jo=7;function Q4(t){for(var e=0;t>=Cw;)e|=t&1,t>>=1;return t+e}function Dw(t,e,r,a){var n=e+1;if(n===r)return 1;if(a(t[n++],t[e])<0){for(;n<r&&a(t[n],t[n-1])<0;)n++;J4(t,e,n)}else for(;n<r&&a(t[n],t[n-1])>=0;)n++;return n-e}function J4(t,e,r){for(r--;e<r;){var a=t[e];t[e++]=t[r],t[r--]=a}}function Aw(t,e,r,a,n){for(a===e&&a++;a<r;a++){for(var i=t[a],o=e,s=a,l;o<s;)l=o+s>>>1,n(i,t[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=i}}function md(t,e,r,a,n,i){var o=0,s=0,l=1;if(i(t,e[r+n])>0){for(s=a-n;l<s&&i(t,e[r+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&i(t,e[r+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var p=o+(l-o>>>1);i(t,e[r+p])>0?o=p+1:l=p}return l}function yd(t,e,r,a,n,i){var o=0,s=0,l=1;if(i(t,e[r+n])<0){for(s=n+1;l<s&&i(t,e[r+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l<s&&i(t,e[r+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var p=o+(l-o>>>1);i(t,e[r+p])<0?l=p:o=p+1}return l}function eI(t,e){var r=jo,a,n,i=0,o=[];a=[],n=[];function s(h,d){a[i]=h,n[i]=d,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]<n[h+1]&&h--;else if(n[h]>n[h+1])break;p(h)}}function u(){for(;i>1;){var h=i-2;h>0&&n[h-1]<n[h+1]&&h--,p(h)}}function p(h){var d=a[h],v=n[h],m=a[h+1],g=n[h+1];n[h]=v+g,h===i-3&&(a[h+1]=a[h+2],n[h+1]=n[h+2]),i--;var y=yd(t[m],t,d,v,0,e);d+=y,v-=y,v!==0&&(g=md(t[d+v-1],t,m,g,g-1,e),g!==0&&(v<=g?c(d,v,m,g):f(d,v,m,g)))}function c(h,d,v,m){var g=0;for(g=0;g<d;g++)o[g]=t[h+g];var y=0,b=v,k=h;if(t[k++]=t[b++],--m===0){for(g=0;g<d;g++)t[k+g]=o[y+g];return}if(d===1){for(g=0;g<m;g++)t[k+g]=t[b+g];t[k+m]=o[y];return}for(var w=r,_,x,T;;){_=0,x=0,T=!1;do if(e(t[b],o[y])<0){if(t[k++]=t[b++],x++,_=0,--m===0){T=!0;break}}else if(t[k++]=o[y++],_++,x=0,--d===1){T=!0;break}while((_|x)<w);if(T)break;do{if(_=yd(t[b],o,y,d,0,e),_!==0){for(g=0;g<_;g++)t[k+g]=o[y+g];if(k+=_,y+=_,d-=_,d<=1){T=!0;break}}if(t[k++]=t[b++],--m===0){T=!0;break}if(x=md(o[y],t,b,m,0,e),x!==0){for(g=0;g<x;g++)t[k+g]=t[b+g];if(k+=x,b+=x,m-=x,m===0){T=!0;break}}if(t[k++]=o[y++],--d===1){T=!0;break}w--}while(_>=jo||x>=jo);if(T)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),d===1){for(g=0;g<m;g++)t[k+g]=t[b+g];t[k+m]=o[y]}else{if(d===0)throw new Error;for(g=0;g<d;g++)t[k+g]=o[y+g]}}function f(h,d,v,m){var g=0;for(g=0;g<m;g++)o[g]=t[v+g];var y=h+d-1,b=m-1,k=v+m-1,w=0,_=0;if(t[k--]=t[y--],--d===0){for(w=k-(m-1),g=0;g<m;g++)t[w+g]=o[g];return}if(m===1){for(k-=d,y-=d,_=k+1,w=y+1,g=d-1;g>=0;g--)t[_+g]=t[w+g];t[k]=o[b];return}for(var x=r;;){var T=0,C=0,P=!1;do if(e(o[b],t[y])<0){if(t[k--]=t[y--],T++,C=0,--d===0){P=!0;break}}else if(t[k--]=o[b--],C++,T=0,--m===1){P=!0;break}while((T|C)<x);if(P)break;do{if(T=d-yd(o[b],t,h,d,d-1,e),T!==0){for(k-=T,y-=T,d-=T,_=k+1,w=y+1,g=T-1;g>=0;g--)t[_+g]=t[w+g];if(d===0){P=!0;break}}if(t[k--]=o[b--],--m===1){P=!0;break}if(C=m-md(t[y],o,0,m,m-1,e),C!==0){for(k-=C,b-=C,m-=C,_=k+1,w=b+1,g=0;g<C;g++)t[_+g]=o[w+g];if(m<=1){P=!0;break}}if(t[k--]=t[y--],--d===0){P=!0;break}x--}while(T>=jo||C>=jo);if(P)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),m===1){for(k-=d,y-=d,_=k+1,w=y+1,g=d-1;g>=0;g--)t[_+g]=t[w+g];t[k]=o[b]}else{if(m===0)throw new Error;for(w=k-(m-1),g=0;g<m;g++)t[w+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Gu(t,e,r,a){r||(r=0),a||(a=t.length);var n=a-r;if(!(n<2)){var i=0;if(n<Cw){i=Dw(t,r,a,e),Aw(t,r,a,r+i,e);return}var o=eI(t,e),s=Q4(n);do{if(i=Dw(t,r,a,e),i<s){var l=n;l>s&&(l=s),Aw(t,r,r+l,r+i,e),i=l}o.pushRun(r,i),o.mergeRuns(),n-=i,r+=i}while(n!==0);o.forceMergeRuns()}}var Lw=!1;function bd(){Lw||(Lw=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Mw(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var tI=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Mw}return t.prototype.traverse=function(e,r){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var a=this._displayList;return(e||!a.length)&&this.updateDisplayList(r),a},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,a=this._displayList,n=0,i=r.length;n<i;n++)this._updateAndAddDisplayable(r[n],null,e);a.length=this._displayListLen,Gu(a,Mw)},t.prototype._updateAndAddDisplayable=function(e,r,a){if(!(e.ignore&&!a)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),i=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(i||n)){if(s||(s=e.__clipPaths=[]),i)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=n,p=e;u;)u.parent=p,u.updateTransform(),s[o++]=u,p=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),f=0;f<c.length;f++){var h=c[f];e.__dirty&&(h.__dirty|=tr),this._updateAndAddDisplayable(h,s,a)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(bd(),d.z=0),isNaN(d.z2)&&(bd(),d.z2=0),isNaN(d.zlevel)&&(bd(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var v=e.getDecalElement&&e.getDecalElement();v&&this._updateAndAddDisplayable(v,s,a);var m=e.getTextGuideLine();m&&this._updateAndAddDisplayable(m,s,a);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,a)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,a=e.length;r<a;r++)this.delRoot(e[r]);return}var n=fe(this._roots,e);n>=0&&this._roots.splice(n,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),kd;kd=se.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};function ki(){return new Date().getTime()}var rI=(function(t){V(e,t);function e(r){var a=t.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,r=r||{},a.stage=r.stage||{},a}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var a=r.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(r){if(r.animation){var a=r.prev,n=r.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var a=r.getClip();a&&this.removeClip(a),r.animation=null},e.prototype.update=function(r){for(var a=ki()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function a(){r._running&&(kd(a),!r._paused&&r.update())}kd(a)},e.prototype.start=function(){this._running||(this._time=ki(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ki(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ki()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var a=r.next;r.prev=r.next=r.animation=null,r=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,a){a=a||{},this.start();var n=new Rc(r,a.loop);return this.addAnimator(n),n},e})(zr),aI=300,wd=se.domSupported,_d=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=K(t,function(n){var i=n.replace("mouse","pointer");return r.hasOwnProperty(i)?i:n});return{mouse:t,touch:e,pointer:a}})(),Ew={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Iw=!1;function xd(t){var e=t.pointerType;return e==="pen"||e==="touch"}function nI(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Pd(t){t&&(t.zrByTouch=!0)}function iI(t,e){return Kt(t.dom,new oI(t,e),!0)}function Ow(t,e){for(var r=e,a=!1;r&&r.nodeType!==9&&!(a=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return a}var oI=(function(){function t(e,r){this.stopPropagation=qe,this.stopImmediatePropagation=qe,this.preventDefault=qe,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),ur={mousedown:function(t){t=Kt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Kt(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Kt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Kt(this.dom,t);var e=t.toElement||t.relatedTarget;Ow(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Iw=!0,t=Kt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Iw||(t=Kt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Kt(this.dom,t),Pd(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),ur.mousemove.call(this,t),ur.mousedown.call(this,t)},touchmove:function(t){t=Kt(this.dom,t),Pd(t),this.handler.processGesture(t,"change"),ur.mousemove.call(this,t)},touchend:function(t){t=Kt(this.dom,t),Pd(t),this.handler.processGesture(t,"end"),ur.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<aI&&ur.click.call(this,t)},pointerdown:function(t){ur.mousedown.call(this,t)},pointermove:function(t){xd(t)||ur.mousemove.call(this,t)},pointerup:function(t){ur.mouseup.call(this,t)},pointerout:function(t){xd(t)||ur.mouseout.call(this,t)}};A(["click","dblclick","contextmenu"],function(t){ur[t]=function(e){e=Kt(this.dom,e),this.trigger(t,e)}});var Sd={pointermove:function(t){xd(t)||Sd.mousemove.call(this,t)},pointerup:function(t){Sd.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function sI(t,e){var r=e.domHandlers;se.pointerEventsSupported?A(_d.pointer,function(a){Wu(e,a,function(n){r[a].call(t,n)})}):(se.touchEventsSupported&&A(_d.touch,function(a){Wu(e,a,function(n){r[a].call(t,n),nI(e)})}),A(_d.mouse,function(a){Wu(e,a,function(n){n=dd(n),e.touching||r[a].call(t,n)})}))}function lI(t,e){se.pointerEventsSupported?A(Ew.pointer,r):se.touchEventsSupported||A(Ew.mouse,r);function r(a){function n(i){i=dd(i),Ow(t,i.target)||(i=iI(t,i),e.domHandlers[a].call(t,i))}Wu(e,a,n,{capture:!0})}}function Wu(t,e,r,a){t.mounted[e]=r,t.listenerOpts[e]=a,G4(t.domTarget,e,r,a)}function Td(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&W4(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var Rw=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),uI=(function(t){V(e,t);function e(r,a){var n=t.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=a,n._localHandlerScope=new Rw(r,ur),wd&&(n._globalHandlerScope=new Rw(document,Sd)),sI(n,n._localHandlerScope),n}return e.prototype.dispose=function(){Td(this._localHandlerScope),wd&&Td(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,wd&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var a=this._globalHandlerScope;r?lI(this,a):Td(a)}},e})(zr);var $u={},Bw={};function pI(t){delete Bw[t]}function cI(t){if(!t)return!1;if(typeof t=="string")return el(t,1)<Bc;if(t.colorStops){for(var e=t.colorStops,r=0,a=e.length,n=0;n<a;n++)r+=el(e[n].color,1);return r/=a,r<Bc}return!1}var fI=(function(){function t(e,r,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,a=a||{},this.dom=r,this.id=e;var i=new tI,o=a.renderer||"canvas";$u[o]||(o=he($u)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new $u[o](r,i,a,e),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!se.node&&!se.worker&&!l?new uI(s.getViewportRoot(),s.root):null,p=a.useCoarsePointer,c=p==null||p==="auto"?se.touchEventsSupported:!!p,f=44,h;c&&(h=Z(a.pointerSize,f)),this.handler=new Pw(i,s,u,s.root,h),this.animation=new rI({stage:{update:l?null:function(){return n._flush(!1)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=cI(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,a=ki(),n=this._needsRefresh,i=this._needsRefreshHover;(n||i)&&(r=!0,this._refresh({animUpdate:e,refresh:n,refreshHover:i}));var o=ki();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,a){return this._disposed||this.handler.on(e,r,a),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof Me&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,pI(this.id))},t})();function Nw(t,e){var r=new fI(im(),t,e);return Bw[r.id]=r,r}function hI(t,e){$u[t]=e}var Cd;function dI(t){if(typeof Cd=="function")return Cd(t)}function vI(t){Cd=t}var Fw="";typeof navigator<"u"&&(Fw=navigator.platform||"");var wi="rgba(0, 0, 0, 0.2)",zw=$.color.theme[0],gI=Cc(zw,null,null,.9);const Hw={darkMode:"auto",colorBy:"series",color:$.color.theme,gradientColor:[gI,zw],aria:{decal:{decals:[{color:wi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:wi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:wi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:wi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:wi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:wi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Fw.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 mI=ae();function yI(t,e,r){var a=mI.get(e);if(!a)return r;var n=a(t);return n?r.concat(n):r}var Yu,Zo,Vw,Uw="\0_ec_inner",bI=1,Dd=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,a,n,i,o,s){i=i||{},this.option=null,this._theme=new Ae(i),this._locale=new Ae(o),this._optionManager=s},e.prototype.setOption=function(r,a,n){var i=$w(a);this._optionManager.setOption(r,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(r,a){return this._resetOption(r,$w(a))},e.prototype._resetOption=function(r,a){var n=!1,i=this._optionManager;if(!r||r==="recreate"){var o=i.mountOption(r==="recreate");!this.option||r==="recreate"?Vw(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!r||r==="recreate"||r==="media"){var l=i.getMediaOption(this);l.length&&A(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ae(),u=a&&a.replaceMergeMainTypeMap;T3(this),A(r,function(c,f){c!=null&&(ke.hasClass(f)?f&&(s.push(f),l.set(f,!0)):n[f]=n[f]==null?le(c):Pe(n[f],c,!0))}),u&&u.each(function(c,f){ke.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),ke.topologicalTravel(s,ke.getAllClassMainTypes(),p,this);function p(c){var f=yI(this,c,ut(r[c])),h=i.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",v=OD(h,f,d);VD(v,c,ke),n[c]=null,i.set(c,null),o.set(c,0);var m=[],g=[],y=0,b;A(v,function(k,w){var _=k.existing,x=k.newOption;if(!x)_&&(_.mergeOption({},this),_.optionUpdated({},!1));else{var T=c==="series",C=ke.getClass(c,k.keyInfo.subType,!T);if(!C)return;if(c==="tooltip"){if(b)return;b=!0}if(_&&_.constructor===C)_.name=k.keyInfo.name,_.mergeOption(x,this),_.optionUpdated(x,!1);else{var P=H({componentIndex:w},k.keyInfo);_=new C(x,this,this,P),H(_,P),k.brandNew&&(_.__requireNewView=!0),_.init(x,this,this),_.optionUpdated(null,!0)}}_?(m.push(_.option),g.push(_),y++):(m.push(void 0),g.push(void 0))},this),n[c]=m,i.set(c,g),o.set(c,y),c==="series"&&Yu(this)}this._seriesIndices||Yu(this)},e.prototype.getOption=function(){var r=le(this.option);return A(r,function(a,n){if(ke.hasClass(n)){for(var i=ut(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!mo(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,r[n]=i}}),delete r[Uw],r},e.prototype.setTheme=function(r){this._theme=new Ae(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,a){var n=this._componentsMap.get(r);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(r){var a=r.mainType;if(!a)return[];var n=r.index,i=r.id,o=r.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return n!=null?(l=[],A(ut(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=Gw("id",i,s):o!=null?l=Gw("name",o,s):l=Xe(s,function(u){return!!u}),Ww(l,r)},e.prototype.findComponents=function(r){var a=r.query,n=r.mainType,i=s(a),o=i?this.queryComponents(i):Xe(this._componentsMap.get(n),function(u){return!!u});return l(Ww(o,r));function s(u){var p=n+"Index",c=n+"Id",f=n+"Name";return u&&(u[p]!=null||u[c]!=null||u[f]!=null)?{mainType:n,index:u[p],id:u[c],name:u[f]}:null}function l(u){return r.filter?Xe(u,r.filter):u}},e.prototype.eachComponent=function(r,a,n){var i=this._componentsMap;if(re(r)){var o=a,s=r;i.each(function(c,f){for(var h=0;c&&h<c.length;h++){var d=c[h];d&&s.call(o,f,d,d.componentIndex)}})}else for(var l=q(r)?i.get(r):J(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var p=l[u];p&&a.call(n,p,p.componentIndex)}},e.prototype.getSeriesByName=function(r){var a=Ar(r,null);return Xe(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return Xe(this._componentsMap.get("series"),function(a){return!!a&&a.subType===r})},e.prototype.getSeries=function(){return Xe(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,a){Zo(this),A(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];r.call(a,i,n)},this)},e.prototype.eachRawSeries=function(r,a){A(this._componentsMap.get("series"),function(n){n&&r.call(a,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(r,a,n){Zo(this),A(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===r&&a.call(n,o,i)},this)},e.prototype.eachRawSeriesByType=function(r,a,n){return A(this.getSeriesByType(r),a,n)},e.prototype.isSeriesFiltered=function(r){return Zo(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,a){Zo(this);var n=[];A(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];r.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=ae(n)},e.prototype.restoreData=function(r){Yu(this);var a=this._componentsMap,n=[];a.each(function(i,o){ke.hasClass(o)&&n.push(o)}),ke.topologicalTravel(n,ke.getAllClassMainTypes(),function(i){A(a.get(i),function(o){o&&(i!=="series"||!kI(o,r))&&o.restoreData()})})},e.internalField=(function(){Yu=function(r){var a=r._seriesIndices=[];A(r._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),r._seriesIndicesMap=ae(a)},Zo=function(r){},Vw=function(r,a){r.option={},r.option[Uw]=bI,r._componentsMap=ae({series:[]}),r._componentsCount=ae();var n=a.aria;J(n)&&n.enabled==null&&(n.enabled=!0),wI(a,r._theme.option),Pe(a,Hw,!1),r._mergeOption(a,null)}})(),e})(Ae);function kI(t,e){if(e){var r=e.seriesIndex,a=e.seriesId,n=e.seriesName;return r!=null&&t.componentIndex!==r||a!=null&&t.id!==a||n!=null&&t.name!==n}}function wI(t,e){var r=t.color&&!t.colorLayer;A(e,function(a,n){n==="colorLayer"&&r||n==="color"&&t.color||ke.hasClass(n)||(typeof a=="object"?t[n]=t[n]?Pe(t[n],a,!1):le(a):t[n]==null&&(t[n]=a))})}function Gw(t,e,r){if(W(e)){var a=ae();return A(e,function(i){if(i!=null){var o=Ar(i,null);o!=null&&a.set(i,!0)}}),Xe(r,function(i){return i&&a.get(i[t])})}else{var n=Ar(e,null);return Xe(r,function(i){return i&&n!=null&&i[t]===n})}}function Ww(t,e){return e.hasOwnProperty("subType")?Xe(t,function(r){return r&&r.subType===e.subType}):t}function $w(t){var e=ae();return t&&A(ut(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Qt(Dd,Sh);var _I=/^(min|max)?(.+)$/,xI=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,a){e&&(A(ut(e.series),function(o){o&&o.data&&yt(o.data)&&Fs(o.data)}),A(ut(e.dataset),function(o){o&&o.source&&yt(o.source)&&Fs(o.source)})),e=le(e);var n=this._optionBackup,i=PI(e,r,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],le(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,a=this._timelineOptions;if(a.length){var n=e.getComponent("timeline");n&&(r=le(a[n.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),a=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!n.length&&!i)return s;for(var l=0,u=n.length;l<u;l++)SI(n[l].query,r,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!CI(o,this._currentMediaIndices)&&(s=K(o,function(p){return le(p===-1?i.option:n[p].option)})),this._currentMediaIndices=o,s},t})();function PI(t,e,r){var a=[],n,i,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,p=!!t.media,c=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((c||p)&&(t.options=t.media=null),i=t),p&&W(u)&&A(u,function(h){h&&h.option&&(h.query?a.push(h):n||(n=h))}),f(i),A(l,function(h){return f(h)}),A(a,function(h){return f(h.option)});function f(h){A(e,function(d){d(h,r)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}function SI(t,e,r){var a={width:e,height:r,aspectratio:e/r},n=!0;return A(t,function(i,o){var s=o.match(_I);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();TI(a[u],i,l)||(n=!1)}}),n}function TI(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function CI(t,e){return t.join(",")===e.join(",")}var pr=A,Qo=J,Yw=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ad(t){var e=t&&t.itemStyle;if(e)for(var r=0,a=Yw.length;r<a;r++){var n=Yw[r],i=e.normal,o=e.emphasis;i&&i[n]&&(t[n]=t[n]||{},t[n].normal?Pe(t[n].normal,i[n]):t[n].normal=i[n],i[n]=null),o&&o[n]&&(t[n]=t[n]||{},t[n].emphasis?Pe(t[n].emphasis,o[n]):t[n].emphasis=o[n],o[n]=null)}}function nt(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var a=t[e].normal,n=t[e].emphasis;a&&(r?(t[e].normal=t[e].emphasis=null,pe(t[e],a)):t[e]=a),n&&(t.emphasis=t.emphasis||{},t.emphasis[e]=n,n.focus&&(t.emphasis.focus=n.focus),n.blurScope&&(t.emphasis.blurScope=n.blurScope))}}function Jo(t){nt(t,"itemStyle"),nt(t,"lineStyle"),nt(t,"areaStyle"),nt(t,"label"),nt(t,"labelLine"),nt(t,"upperLabel"),nt(t,"edgeLabel")}function He(t,e){var r=Qo(t)&&t[e],a=Qo(r)&&r.textStyle;if(a)for(var n=0,i=Fy.length;n<i;n++){var o=Fy[n];a.hasOwnProperty(o)&&(r[o]=a[o])}}function Xt(t){t&&(Jo(t),He(t,"label"),t.emphasis&&He(t.emphasis,"label"))}function DI(t){if(Qo(t)){Ad(t),Jo(t),He(t,"label"),He(t,"upperLabel"),He(t,"edgeLabel"),t.emphasis&&(He(t.emphasis,"label"),He(t.emphasis,"upperLabel"),He(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Ad(e),Xt(e));var r=t.markLine;r&&(Ad(r),Xt(r));var a=t.markArea;a&&Xt(a);var n=t.data;if(t.type==="graph"){n=n||t.nodes;var i=t.links||t.edges;if(i&&!yt(i))for(var o=0;o<i.length;o++)Xt(i[o]);A(t.categories,function(u){Jo(u)})}if(n&&!yt(n))for(var o=0;o<n.length;o++)Xt(n[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Xt(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)W(l[o])?(Xt(l[o][0]),Xt(l[o][1])):Xt(l[o]);t.type==="gauge"?(He(t,"axisLabel"),He(t,"title"),He(t,"detail")):t.type==="treemap"?(nt(t.breadcrumb,"itemStyle"),A(t.levels,function(u){Jo(u)})):t.type==="tree"&&Jo(t.leaves)}}function Zr(t){return W(t)?t:t?[t]:[]}function Kw(t){return(W(t)?t[0]:t)||{}}function AI(t,e){pr(Zr(t.series),function(a){Qo(a)&&DI(a)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),pr(r,function(a){pr(Zr(t[a]),function(n){n&&(He(n,"axisLabel"),He(n.axisPointer,"label"))})}),pr(Zr(t.parallel),function(a){var n=a&&a.parallelAxisDefault;He(n,"axisLabel"),He(n&&n.axisPointer,"label")}),pr(Zr(t.calendar),function(a){nt(a,"itemStyle"),He(a,"dayLabel"),He(a,"monthLabel"),He(a,"yearLabel")}),pr(Zr(t.radar),function(a){He(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),pr(Zr(t.geo),function(a){Qo(a)&&(Xt(a),pr(Zr(a.regions),function(n){Xt(n)}))}),pr(Zr(t.timeline),function(a){Xt(a),nt(a,"label"),nt(a,"itemStyle"),nt(a,"controlStyle",!0);var n=a.data;W(n)&&A(n,function(i){J(i)&&(nt(i,"label"),nt(i,"itemStyle"))})}),pr(Zr(t.toolbox),function(a){nt(a,"iconStyle"),pr(a.feature,function(n){nt(n,"iconStyle")})}),He(Kw(t.axisPointer),"label"),He(Kw(t.tooltip).axisPointer,"label")}function LI(t,e){for(var r=e.split(","),a=t,n=0;n<r.length&&(a=a&&a[r[n]],a!=null);n++);return a}function MI(t,e,r,a){for(var n=e.split(","),i=t,o,s=0;s<n.length-1;s++)o=n[s],i[o]==null&&(i[o]={}),i=i[o];i[n[s]]==null&&(i[n[s]]=r)}function Xw(t){t&&A(EI,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var EI=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],II=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Ld=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function es(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<Ld.length;r++){var a=Ld[r][1],n=Ld[r][0];e[a]!=null&&(e[n]=e[a])}}function qw(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function jw(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function OI(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function Zw(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&Zw(t[r].children,e)}function Qw(t,e){AI(t,e),t.series=ut(t.series),A(t.series,function(r){if(J(r)){var a=r.type;if(a==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(a==="pie"||a==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),qw(r.label);var n=r.data;if(n&&!yt(n))for(var i=0;i<n.length;i++)qw(n[i]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(a==="gauge"){var o=LI(r,"pointer.color");o!=null&&MI(r,"itemStyle.color",o)}else if(a==="bar"){es(r),es(r.backgroundStyle),es(r.emphasis);var n=r.data;if(n&&!yt(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(es(n[i]),es(n[i]&&n[i].emphasis))}else if(a==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),jw(r),Zw(r.data,jw)}else a==="graph"||a==="sankey"?OI(r):a==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&pe(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),Xw(r)}}),t.dataRange&&(t.visualMap=t.dataRange),A(II,function(r){var a=t[r];a&&(W(a)||(a=[a]),A(a,function(n){Xw(n)}))})}var RI=vf(BI);function BI(t){var e=ae();t.eachSeries(function(r){var a=r.get("stack");if(a){var n=e.get(a)||e.set(a,[]),i=r.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),e.each(function(r){if(r.length!==0){var a=r[0].seriesModel,n=a.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&r.reverse(),A(r,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),NI(r)}})}function NI(t){A(t,function(e,r){var a=[],n=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,p,c){var f=o.get(e.stackedDimension,c);if(isNaN(f))return n;var h,d;s?d=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var v=NaN,m=r-1;m>=0;m--){var g=t[m];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,h)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&f>=0&&y>0||l==="samesign"&&f<=0&&y<0){f=TD(f,y),v=y;break}}}return a[0]=f,a[1]=v,a})})}var Dt=(function(){function t(){this.group=new Me,this.uid=Io("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,a,n){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,a,n){},t.prototype.updateLayout=function(e,r,a,n){},t.prototype.updateVisual=function(e,r,a,n){},t.prototype.toggleBlurSeries=function(e,r,a){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();Jp(Dt),Vs(Dt);var Jw=_e(),e_={itemStyle:Ki(J0,!0),lineStyle:Ki(Q0,!0)},FI={lineStyle:"stroke",itemStyle:"fill"};function t_(t,e){var r=t.visualStyleMapper||e_[e];return r||(console.warn("Unknown style type '"+e+"'."),e_.itemStyle)}function r_(t,e){var r=t.visualDrawType||FI[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var zI={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),a=t.visualStyleAccessPath||"itemStyle",n=t.getModel(a),i=t_(t,a),o=i(n),s=n.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=r_(t,a),u=o[l],p=re(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||p||c){var f=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=f,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||re(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||re(o.stroke)?f:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&p)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var v=t.getDataParams(d),m=H({},o);m[l]=p(v),h.setItemVisual(d,"style",m)}}}},ts=new Ae,HI={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),a=t.visualStyleAccessPath||"itemStyle",n=t_(t,a),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){ts.option=l[a];var u=n(ts),p=o.ensureUniqueItemVisual(s,"style");H(p,u),ts.option.decal&&(o.setItemVisual(s,"decal",ts.option.decal),ts.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},VI={performRawSeries:!0,overallReset:function(t){var e=ae();t.eachSeries(function(r){if(!r.isColorBySeries()){var a=r.type+"-"+r.getColorBy();Jw(r).scope=e.get(a)||e.set(a,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var a=r.getRawData(),n={},i=r.getData(),o=Jw(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=r_(r,s);i.each(function(u){var p=i.getRawIndex(u);n[p]=u}),a.each(function(u){var p=n[u],c=i.getItemVisual(p,"colorFromPalette");if(c){var f=i.ensureUniqueItemVisual(p,"style"),h=a.getName(u)||u+"",d=a.count();f[l]=r.getColorFromPalette(h,o,d)}})}})}},Ku=Math.PI;function UI(t,e){e=e||{},pe(e,{text:"loading",textColor:$.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:$.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Me,a=new Ie({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(a);var n=new Oe({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new Ie({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(i);var o;return e.showSpinner&&(o=new Bl({shape:{startAngle:-Ku/2,endAngle:-Ku/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Ku*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Ku*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),p=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:p}),i.setShape({x:u-l,y:p-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var a_=(function(){function t(e,r,a,n){this._stageTaskMap=ae(),this.ecInstance=e,this.api=r,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),n=a.context,i=!r&&a.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var a=this._pipelineMap.get(e.uid),n=e.__preparePipelineContext?e.__preparePipelineContext(r,a):Yy(e,r,a);e.pipelineContext=a.context=n},t.prototype.restorePipelines=function(e,r){var a=this,n=a._pipelineMap=ae();r.eachSeries(function(i){var o=e.painter.type==="canvas"&&i.getProgressive(),s=i.uid;n.set(s,{id:s,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),a._pipe(i,i.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),a=this.api;A(this._allHandlers,function(n){var i=e.get(n.uid)||e.set(n.uid,{}),o="";Jt(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,r,a),n.overallReset&&this._createOverallStageTask(n,i,r,a)},this)},t.prototype.prepareView=function(e,r,a,n){var i=e.renderTask,o=i.context;o.model=r,o.ecModel=a,o.api=n,i.__block=!e.incrementalPrepareRender,this._pipe(r,i)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,a){this._performStageTasks(this._visualHandlers,e,r,a)},t.prototype._performStageTasks=function(e,r,a,n){n=n||{};var i=!1,o=this;A(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var p=o._stageTaskMap.get(l.uid),c=p.seriesTaskMap,f=p.overallTask;if(f){var h,d=f.agentStubMap;d.each(function(m){s(n,m)&&(m.dirty(),h=!0)}),h&&f.dirty(),o.updatePayload(f,a);var v=o.getPerformArgs(f,n.block);d.each(function(m){m.perform(v)}),f.perform(v)&&(i=!0)}else c&&c.each(function(m,g){s(n,m)&&m.dirty();var y=o.getPerformArgs(m,n.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,a),m.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(a){r=a.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,a,n){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ae(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?a.eachRawSeries(p):l?a.eachRawSeriesByType(l,p):u&&u(a,n).each(p);function p(c){var f=c.uid,h=s.set(f,o&&o.get(f)||Ho({plan:KI,reset:XI,count:jI}));h.context={model:c,ecModel:a,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(c,h)}},t.prototype._createOverallStageTask=function(e,r,a,n){var i=this,o=r.overallTask=r.overallTask||Ho({reset:GI});o.context={ecModel:a,api:n,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ae(),u=e.seriesType,p=e.getTargetSeries,c=e.dirtyOnOverallProgress,f=!1,h="";Jt(!e.createOnAllSeries,h),u?a.eachRawSeriesByType(u,d):p?p(a,n).each(d):A(a.getSeries(),d);function d(v){var m=v.uid,g=l.set(m,s&&s.get(m)||(f=!0,Ho({reset:WI,onDirty:YI})));g.context={model:v,dirtyOnOverallProgress:c},g.agent=o,g.__block=c,i._pipe(v,g)}f&&o.dirty()},t.prototype._pipe=function(e,r){var a=e.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=r),n.tail&&n.tail.pipe(r),n.tail=r,r.__idxInPipeline=n.count++,r.__pipeline=n},t.wrapStageHandler=function(e,r){return re(e)&&(e={overallReset:e,seriesType:ZI(e)}),e.uid=Io("stageHandler"),r&&(e.visualType=r),e},t})();function GI(t){t.overallReset(t.ecModel,t.api,t.payload)}function WI(t){return t.dirtyOnOverallProgress&&$I}function $I(){this.agent.dirty(),this.getDownstream().dirty()}function YI(){this.agent&&this.agent.dirty()}function KI(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function XI(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=ut(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?K(e,function(r,a){return n_(a)}):qI}var qI=n_(0);function n_(t){return function(e,r){var a=r.data,n=r.resetDefines[t];if(n&&n.dataEach)for(var i=e.start;i<e.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(e,a)}}function jI(t){return t.data.count()}function ZI(t){Xu=null;try{t(rs,i_)}catch{}return Xu}var rs={},i_={},Xu;o_(rs,Dd),o_(i_,jy),rs.eachSeriesByType=rs.eachRawSeriesByType=function(t){Xu=t},rs.eachComponent=function(t){t.mainType==="series"&&t.subType&&(Xu=t.subType)};function o_(t,e){for(var r in e.prototype)t[r]=qe}var G=$.darkColor,s_=G.background,as=function(){return{axisLine:{lineStyle:{color:G.axisLine}},splitLine:{lineStyle:{color:G.axisSplitLine}},splitArea:{areaStyle:{color:[G.backgroundTint,G.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:G.axisMinorSplitLine}},axisLabel:{color:G.axisLabel},axisName:{}}},l_={label:{color:G.secondary},itemStyle:{borderColor:G.borderTint},dividerLineStyle:{color:G.border}},u_={darkMode:!0,color:G.theme,backgroundColor:s_,axisPointer:{lineStyle:{color:G.border},crossStyle:{color:G.borderShade},label:{color:G.tertiary}},legend:{textStyle:{color:G.secondary},pageTextStyle:{color:G.tertiary}},textStyle:{color:G.secondary},title:{textStyle:{color:G.primary},subtextStyle:{color:G.quaternary}},toolbox:{iconStyle:{borderColor:G.accent50},feature:{dataView:{backgroundColor:s_,textColor:G.primary,textareaColor:G.background,textareaBorderColor:G.border,buttonColor:G.accent50,buttonTextColor:G.neutral00}}},tooltip:{backgroundColor:G.neutral20,defaultBorderColor:G.border,textStyle:{color:G.tertiary}},dataZoom:{borderColor:G.accent10,textStyle:{color:G.tertiary},brushStyle:{color:G.backgroundTint},handleStyle:{color:G.neutral00,borderColor:G.accent20},moveHandleStyle:{color:G.accent40},emphasis:{handleStyle:{borderColor:G.accent50}},dataBackground:{lineStyle:{color:G.accent30},areaStyle:{color:G.accent20}},selectedDataBackground:{lineStyle:{color:G.accent50},areaStyle:{color:G.accent30}}},visualMap:{textStyle:{color:G.secondary},handleStyle:{borderColor:G.neutral30}},timeline:{lineStyle:{color:G.accent10},label:{color:G.tertiary},controlStyle:{color:G.accent30,borderColor:G.accent30}},calendar:{itemStyle:{color:G.neutral00,borderColor:G.neutral20},dayLabel:{color:G.tertiary},monthLabel:{color:G.secondary},yearLabel:{color:G.secondary}},matrix:{x:l_,y:l_,backgroundColor:{borderColor:G.axisLine},body:{itemStyle:{borderColor:G.borderTint}}},timeAxis:as(),logAxis:as(),valueAxis:as(),categoryAxis:as(),line:{symbol:"circle"},graph:{color:G.theme},gauge:{title:{color:G.secondary},axisLine:{lineStyle:{color:[[1,G.neutral05]]}},axisLabel:{color:G.axisLabel},detail:{color:G.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:G.background}},radar:(function(){var t=as();return t.axisName={color:G.axisLabel},t.axisLine.lineStyle.color=G.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:G.neutral20,textStyle:{color:G.secondary}},emphasis:{itemStyle:{color:G.neutral30}}}},sunburst:{itemStyle:{borderColor:G.background}},map:{itemStyle:{borderColor:G.border,areaColor:G.neutral10},label:{color:G.tertiary},emphasis:{label:{color:G.primary},itemStyle:{areaColor:G.highlight}},select:{label:{color:G.primary},itemStyle:{areaColor:G.highlight}}},geo:{itemStyle:{borderColor:G.border,areaColor:G.neutral10},emphasis:{label:{color:G.primary},itemStyle:{areaColor:G.highlight}},select:{label:{color:G.primary},itemStyle:{color:G.highlight}}}};u_.categoryAxis.splitLine.show=!1;var QI=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},a={},n={};if(q(e)){var i=kr(e);r.mainType=i.main||null,r.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(e,function(l,u){for(var p=!1,c=0;c<o.length;c++){var f=o[c],h=u.lastIndexOf(f);if(h>0&&h===u.length-f.length){var d=u.slice(0,h);d!=="data"&&(r.mainType=d,r[f.toLowerCase()]=l,p=!0)}}s.hasOwnProperty(u)&&(a[u]=l,p=!0),p||(n[u]=l)})}return{cptQuery:r,dataQuery:a,otherQuery:n}},t.prototype.filter=function(e,r){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return p(l,o,"mainType")&&p(l,o,"subType")&&p(l,o,"index","componentIndex")&&p(l,o,"name")&&p(l,o,"id")&&p(u,i,"name")&&p(u,i,"dataIndex")&&p(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,n,i));function p(c,f,h,d){return c[h]==null||f[d||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})(),Md=["symbol","symbolSize","symbolRotate","symbolOffset"],p_=Md.concat(["symbolKeepAspect"]),JI={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o<Md.length;o++){var s=Md[o],l=t.get(s);re(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||t.defaultSymbol,r.setVisual(H({legendIcon:t.legendIcon||a.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},a)),e.isSeriesFiltered(t))return;var u=he(n);function p(c,f){for(var h=t.getRawValue(f),d=t.getDataParams(f),v=0;v<u.length;v++){var m=u[v];c.setItemVisual(f,m,n[m](h,d))}}return{dataEach:i?p:null}}},eO={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function a(n,i){for(var o=n.getItemModel(i),s=0;s<p_.length;s++){var l=p_[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:r.hasItemOption?a:null}}};function tO(t,e,r){switch(r){case"color":var a=t.getItemVisual(e,"style");return a[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r)}}function rO(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function ns(t,e,r){for(var a;t&&!(e(t)&&(a=t,r));)t=t.__hostTarget||t.parent;return a}var qt=new zr,c_={};function aO(t,e){c_[t]=e}function nO(t){return c_[t]}var iO=Math.round(Math.random()*9),oO=typeof Object.defineProperty=="function",sO=(function(){function t(){this._id="__ec_inner_"+iO++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var a=this._guard(e);return oO?Object.defineProperty(a,this._id,{value:r,enumerable:!1,configurable:!0}):a[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})();function gn(t){return isFinite(t)}function lO(t,e,r){var a=e.x==null?0:e.x,n=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(a=a*r.width+r.x,n=n*r.width+r.x,i=i*r.height+r.y,o=o*r.height+r.y),a=gn(a)?a:0,n=gn(n)?n:1,i=gn(i)?i:0,o=gn(o)?o:0;var s=t.createLinearGradient(a,i,n,o);return s}function uO(t,e,r){var a=r.width,n=r.height,i=Math.min(a,n),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*a+r.x,s=s*n+r.y,l=l*i),o=gn(o)?o:.5,s=gn(s)?s:.5,l=l>=0&&gn(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function f_(t,e,r){for(var a=e.type==="radial"?uO(t,e,r):lO(t,e,r),n=e.colorStops,i=0;i<n.length;i++)a.addColorStop(n[i].offset,n[i].color);return a}function pO(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function qu(t){return parseInt(t,10)}function h_(t,e,r){var a=["width","height"][e],n=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[a]!=null&&r[a]!=="auto")return parseFloat(r[a]);var s=document.defaultView.getComputedStyle(t);return(t[n]||qu(s[a])||qu(t.style[a]))-(qu(s[i])||0)-(qu(s[o])||0)||0}function cO(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:be(t)?[t]:W(t)?t:null}function Ed(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&cO(e.lineDash,e.lineWidth),a=e.lineDashOffset;if(r){var n=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;n&&n!==1&&(r=K(r,function(i){return i/n}),a/=n)}return[r,a]}var fO=new sa(!0);function ju(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function d_(t){return typeof t=="string"&&t!=="none"}function Zu(t){var e=t.fill;return e!=null&&e!=="none"}function v_(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function g_(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function m_(t,e,r){var a=tc(e.image,e.__image,r);if(Us(a)){var n=t.createPattern(a,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*Hs),i.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(i)}return n}}function hO(t,e,r,a,n){var i,o=ju(r),s=Zu(r),l=r.strokePercent,u=l<1,p=!e.path;(!e.silent||u)&&p&&e.createPathProxy();var c=e.path||fO,f=e.__dirty;if(!a){var h=r.fill,d=r.stroke,v=s&&!!h.colorStops,m=o&&!!d.colorStops,g=s&&!!h.image,y=o&&!!d.image,b=void 0,k=void 0,w=void 0,_=void 0,x=void 0;(v||m)&&(x=e.getBoundingRect()),v&&(b=f?f_(t,h,x):e.__canvasFillGradient,e.__canvasFillGradient=b),m&&(k=f?f_(t,d,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=k),g&&(w=f||!e.__canvasFillPattern?m_(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=w),y&&(_=f||!e.__canvasStrokePattern?m_(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),v?t.fillStyle=b:g&&(w?t.fillStyle=w:s=!1),m?t.strokeStyle=k:y&&(_?t.strokeStyle=_:o=!1)}var T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold);var C,P;t.setLineDash&&r.lineDash&&(i=Ed(e),C=i[0],P=i[1]);var S=!0;(p||f&Un)&&(c.setDPR(t.dpr),u?c.setContext(null):(c.setContext(t),S=!1),c.reset(),e.buildPath(c,e.shape,a),c.toStatic(),e.pathUpdated()),S&&c.rebuildPath(t,u?l:1),C&&(t.setLineDash(C),t.lineDashOffset=P),a?(n.batchFill=s,n.batchStroke=o):r.strokeFirst?(o&&g_(t,r),s&&v_(t,r)):(s&&v_(t,r),o&&g_(t,r)),C&&t.setLineDash([])}function dO(t,e,r){var a=e.__image=tc(r.image,e.__image,e,e.onload);if(!(!a||!Us(a))){var n=r.x||0,i=r.y||0,o=e.getWidth(),s=e.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),r.sWidth&&r.sHeight){var u=r.sx||0,p=r.sy||0;t.drawImage(a,u,p,r.sWidth,r.sHeight,n,i,o,s)}else if(r.sx&&r.sy){var u=r.sx,p=r.sy,c=o-u,f=s-p;t.drawImage(a,u,p,c,f,n,i,o,s)}else t.drawImage(a,n,i,o,s)}}function vO(t,e,r){var a,n=r.text;if(n!=null&&(n+=""),n){t.font=r.font||Nr,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var i=void 0,o=void 0;t.setLineDash&&r.lineDash&&(a=Ed(e),i=a[0],o=a[1]),i&&(t.setLineDash(i),t.lineDashOffset=o),r.strokeFirst?(ju(r)&&t.strokeText(n,r.x,r.y),Zu(r)&&t.fillText(n,r.x,r.y)):(Zu(r)&&t.fillText(n,r.x,r.y),ju(r)&&t.strokeText(n,r.x,r.y)),i&&t.setLineDash([])}}var y_=["shadowBlur","shadowOffsetX","shadowOffsetY"],b_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function k_(t,e,r,a,n){var i=!1;if(!a&&(r=r||{},e===r))return!1;if(a||e.opacity!==r.opacity){dt(t,n),i=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Ha.opacity:o}(a||e.blend!==r.blend)&&(i||(dt(t,n),i=!0),t.globalCompositeOperation=e.blend||Ha.blend);for(var s=0;s<y_.length;s++){var l=y_[s];(a||e[l]!==r[l])&&(i||(dt(t,n),i=!0),t[l]=t.dpr*(e[l]||0))}return(a||e.shadowColor!==r.shadowColor)&&(i||(dt(t,n),i=!0),t.shadowColor=e.shadowColor||Ha.shadowColor),i}function w_(t,e,r,a,n){var i=e.style,o=a?null:r&&r.style||{};if(i===o)return!1;var s=k_(t,i,o,a,n);if((a||i.fill!==o.fill)&&(s||(dt(t,n),s=!0),d_(i.fill)&&(t.fillStyle=i.fill)),(a||i.stroke!==o.stroke)&&(s||(dt(t,n),s=!0),d_(i.stroke)&&(t.strokeStyle=i.stroke)),(a||i.opacity!==o.opacity)&&(s||(dt(t,n),s=!0),t.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(dt(t,n),s=!0),t.lineWidth=u)}for(var p=0;p<b_.length;p++){var c=b_[p],f=c[0];(a||i[f]!==o[f])&&(s||(dt(t,n),s=!0),t[f]=i[f]||c[1])}return s}function gO(t,e,r,a,n){return k_(t,e.style,r&&r.style,a,n)}function __(t,e){var r=e.transform,a=t.dpr||1;r?t.setTransform(a*r[0],a*r[1],a*r[2],a*r[3],a*r[4],a*r[5]):t.setTransform(a,0,0,a,0,0)}function mO(t,e,r){for(var a=!1,n=0;n<t.length;n++){var i=t[n];a=a||i.isZeroArea(),__(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}r.allClipped=a}function yO(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var x_=1,P_=2,S_=3,T_=4;function bO(t){var e=Zu(t),r=ju(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function dt(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function kO(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Id(t,e,r),Od(t,r)}function Id(t,e,r){var a=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~tr,e.__isRendered=!1;return}var n=e.__clipPaths,i=r.prevElClipPaths,o=e.style,s=!1,l=!1;if((!i||pO(n,i))&&(i&&(dt(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),n&&n.length&&(dt(t,r),t.save(),mO(n,t,r),s=!0,r.prevElClipPaths=n)),r.allClipped){e.__dirty&=~tr,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var p=e instanceof me&&e.autoBatch&&bO(o);s||yO(a,u.transform)?(dt(t,r),__(t,e)):p||dt(t,r),e instanceof me?(r.lastDrawType!==x_&&(l=!0,r.lastDrawType=x_),w_(t,e,u,l,r),(!p||!r.batchFill&&!r.batchStroke)&&t.beginPath(),hO(t,e,o,p,r)):e instanceof co?(r.lastDrawType!==S_&&(l=!0,r.lastDrawType=S_),w_(t,e,u,l,r),vO(t,e,o)):e instanceof Bt?(r.lastDrawType!==P_&&(l=!0,r.lastDrawType=P_),gO(t,e,u,l,r),dO(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==T_&&(l=!0,r.lastDrawType=T_),wO(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(p&&dt(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Od(t,e){dt(t,e),e.prevElClipPaths&&t.restore()}function wO(t,e,r){var a=e.getDisplayables(),n=e.getTemporalDisplayables();t.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=a.length;o<s;o++){var l=a[o];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),Id(t,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}Od(t,i);for(var u=0,p=n.length;u<p;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),Id(t,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}Od(t,i),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Rd=new sO,C_=new En(100),D_=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Bd(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),a=e.getZr(),n=a.painter.type==="svg";t.dirty&&Rd.delete(t);var i=Rd.get(t);if(i)return i;var o=pe(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/r,Rd.set(t,s),t.dirty=!1,s;function l(u){for(var p=[r],c=!0,f=0;f<D_.length;++f){var h=o[D_[f]];if(h!=null&&!W(h)&&!q(h)&&!be(h)&&typeof h!="boolean"){c=!1;break}p.push(h)}var d;if(c){d=p.join(",")+(n?"-svg":"");var v=C_.get(d);v&&(n?u.svgElement=v:u.image=v)}var m=L_(o.dashArrayX),g=_O(o.dashArrayY),y=A_(o.symbol),b=xO(m),k=M_(g),w=!n&&yr.createCanvas(),_=n&&{tag:"g",attrs:{},key:"dcl",children:[]},x=C(),T;w&&(w.width=x.width*r,w.height=x.height*r,T=w.getContext("2d")),P(),c&&C_.put(d,w||_),u.image=w,u.svgElement=_,u.svgWidth=x.width,u.svgHeight=x.height;function C(){for(var S=1,L=0,D=b.length;L<D;++L)S=Oy(S,b[L]);for(var M=1,L=0,D=y.length;L<D;++L)M=Oy(M,y[L].length);S*=M;var I=k*b.length*y.length;return{width:Math.max(1,Math.min(S,o.maxTileWidth)),height:Math.max(1,Math.min(I,o.maxTileHeight))}}function P(){T&&(T.clearRect(0,0,w.width,w.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,w.width,w.height)));for(var S=0,L=0;L<g.length;++L)S+=g[L];if(S<=0)return;for(var D=-k,M=0,I=0,E=0;D<x.height;){if(M%2===0){for(var O=I/2%y.length,R=0,B=0,N=0;R<x.width*2;){for(var F=0,L=0;L<m[E].length;++L)F+=m[E][L];if(F<=0)break;if(B%2===0){var U=(1-o.symbolSize)*.5,Y=R+m[E][B]*U,z=D+g[M]*U,j=m[E][B]*o.symbolSize,ne=g[M]*o.symbolSize,De=N/2%y[O].length;Ee(Y,z,j,ne,y[O][De])}R+=m[E][B],++N,++B,B===m[E].length&&(B=0)}++E,E===m.length&&(E=0)}D+=g[M],++I,++M,M===g.length&&(M=0)}function Ee(de,Ce,te,ue,_t){var Fe=n?1:r,fr=Ir(_t,de*Fe,Ce*Fe,te*Fe,ue*Fe,o.color,o.symbolKeepAspect);if(n){var xt=a.painter.renderOneToVNode(fr);xt&&_.children.push(xt)}else kO(T,fr)}}}}function A_(t){if(!t||t.length===0)return[["rect"]];if(q(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!q(t[r])){e=!1;break}if(e)return A_([t]);for(var a=[],r=0;r<t.length;++r)q(t[r])?a.push([t[r]]):a.push(t[r]);return a}function L_(t){if(!t||t.length===0)return[[0,0]];if(be(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,a=0;a<t.length;++a)if(!be(t[a])){r=!1;break}if(r)return L_([t]);for(var n=[],a=0;a<t.length;++a)if(be(t[a])){var e=Math.ceil(t[a]);n.push([e,e])}else{var e=K(t[a],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function _O(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(be(t)){var e=Math.ceil(t);return[e,e]}var r=K(t,function(a){return Math.ceil(a)});return t.length%2?r.concat(r):r}function xO(t){return K(t,function(e){return M_(e)})}function M_(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var PO=vf(SO);function SO(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var a=r.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=Bd(s,e)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=Bd(n,e)}}})}var TO=1,CO=800,DO=900,AO=920,LO=1e3,MO=2e3,E_=5e3,I_=1e3,EO=1100,Nd=2e3,O_=3e3,IO=4e3,Qu=4500,OO=4600,RO=5e3,BO=6e3,R_=7e3,NO={PROCESSOR:{SERIES_FILTER:CO,AXIS_STATISTICS:AO,FILTER:LO,STATISTIC:E_,STATISTICS:E_},VISUAL:{LAYOUT:I_,PROGRESSIVE_LAYOUT:EO,GLOBAL:Nd,CHART:O_,POST_CHART_LAYOUT:OO,COMPONENT:IO,BRUSH:RO,CHART_ITEM:Qu,ARIA:BO,DECAL:R_}},Ue="__flagInMainProcess",Ju="__mainProcessVersion",Ke="__pendingUpdate",Fd="__needsUpdateStatus",B_=/^[a-zA-Z0-9_]+$/,zd="__connectUpdateStatus",N_=0,FO=1,zO=2;function F_(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return H_(this,t,e)}}function z_(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return H_(this,t,e)}}function H_(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),zr.prototype[e].apply(t,r)}var V_=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(zr),U_=V_.prototype;U_.on=z_("on"),U_.off=z_("off");var mn,Hd,ep,Qr,tp,Vd,Ud,_i,xi,G_,W_,Gd,$_,rp,Y_,K_,jt,X_,Pi,q_=(function(t){V(e,t);function e(r,a,n){var i=t.call(this,new QI)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},i.__v_skip=!0,i._dom=r;var o="canvas",s="auto",l=!1;i[Ju]=1,n.ssr&&vI(function(f){var h=ce(f),d=h.dataIndex;if(d!=null){var v=ae();return v.set("series_index",h.seriesIndex),v.set("data_index",d),h.ssrType&&v.set("ssr_type",h.ssrType),v}});var u=i._zr=Nw(r,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:Z(n.useDirtyRect,l),useCoarsePointer:Z(n.useCoarsePointer,s),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=nd(ge(u.flush,u),17),i._updateTheme(a),i._locale=SL(n.locale||Fb),i._coordSysMgr=new sh;var p=i._api=Y_(i);function c(f,h){return f.__prio-h.__prio}return Gu(np,c),Gu(Kd,c),i._scheduler=new a_(i,p,Kd,np),i._messageCenter=new V_,i._initEvents(),i.resize=ge(i.resize,i),u.animation.on("frame",i._onframe,i),G_(u,i),W_(u,i),Fs(i),i}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,a=this._model,n=this._api;if(X_(this),this[Ke]){var i=this[Ke].silent;this[Ue]=!0,Pi(this);try{mn(this),Qr.update.call(this,null,this[Ke].updateParams)}catch(l){throw this[Ue]=!1,this[Ke]=null,l}this._zr.flush(),this[Ue]=!1,this[Ke]=null,_i.call(this,i),xi.call(this,i)}else if(r.unfinished){var o=TO;do{r.unfinished=!1;var s=yr.getTime();r.performSeriesTasks(a),r.performDataProcessorTasks(a),Vd(this,a),r.performVisualTasks(a),rp(this,this._model,n,"remain",{}),o-=yr.getTime()-s}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,a,n){if(!this[Ue]){if(this._disposed){this.id;return}var i,o,s;if(J(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Ue]=!0,Pi(this),!this._model||a){var l=new xI(this._api),u=this._theme,p=this._model=new Dd;p.scheduler=this._scheduler,p.ssr=this._ssr,p.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Xd);var c={seriesTransition:s,optionChanged:!0};if(n)this[Ke]={silent:i,updateParams:c},this[Ue]=!1,this.getZr().wakeUp();else{try{mn(this),Qr.update.call(this,null,c)}catch(f){throw this[Ke]=null,this[Ue]=!1,f}this._ssr||this._zr.flush(),this[Ke]=null,this[Ue]=!1,_i.call(this,i),xi.call(this,i)}}},e.prototype.setTheme=function(r,a){if(!this[Ue]){if(this._disposed){this.id;return}var n=this._model;if(n){var i=a&&a.silent,o=null;this[Ke]&&(i==null&&(i=this[Ke].silent),o=this[Ke].updateParams,this[Ke]=null),this[Ue]=!0,Pi(this);try{this._updateTheme(r),n.setTheme(this._theme),mn(this),Qr.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Ue]=!1,s}this[Ue]=!1,_i.call(this,i),xi.call(this,i)}}},e.prototype._updateTheme=function(r){q(r)&&(r=j_[r]),r&&(r=le(r),r&&Qw(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||se.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var a=this._zr.painter;return a.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,a=r.storage.getDisplayList();return A(a,function(n){n.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var a=r.excludeComponents,n=this._model,i=[],o=this;A(a,function(l){n.eachComponent({mainType:l},function(u){var p=o._componentsMap[u.__viewId];p.group.ignore||(i.push(p),p.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return A(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var a=r.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(Z_[n]){var l=s,u=s,p=-s,c=-s,f=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();A(is,function(b,k){if(b.group===n){var w=a?b.getZr().painter.getSvgDom().innerHTML:b.renderToCanvas(le(r)),_=b.getDom().getBoundingClientRect();l=i(_.left,l),u=i(_.top,u),p=o(_.right,p),c=o(_.bottom,c),f.push({dom:w,left:_.left,top:_.top})}}),l*=h,u*=h,p*=h,c*=h;var d=p-l,v=c-u,m=yr.createCanvas(),g=Nw(m,{renderer:a?"svg":"canvas"});if(g.resize({width:d,height:v}),a){var y="";return A(f,function(b){var k=b.left-l,w=b.top-u;y+='<g transform="translate('+k+","+w+')">'+b.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new Ie({shape:{x:0,y:0,width:d,height:v},style:{fill:r.connectedBackgroundColor}})),A(f,function(b){var k=new Bt({style:{x:b.left*h-l,y:b.top*h-u,image:b.dom}});g.add(k)}),g.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,a,n){return tp(this,"convertToPixel",r,a,n)},e.prototype.convertToLayout=function(r,a,n){return tp(this,"convertToLayout",r,a,n)},e.prototype.convertFromPixel=function(r,a,n){return tp(this,"convertFromPixel",r,a,n)},e.prototype.containPixel=function(r,a){if(this._disposed){this.id;return}var n=this._model,i,o=pf(n,r);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var p=u.coordinateSystem;if(p&&p.containPoint)i=i||!!p.containPoint(a);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(a,u))}},this)},this),!!i},e.prototype.getVisual=function(r,a){var n=this._model,i=pf(n,r,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?tO(s,l,a):rO(s,a)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;A(HO,function(n){var i=function(o){var s=r.getModel(),l=o.target,u,p=n==="globalout";if(p?u={}:l&&ns(l,function(v){var m=ce(v);if(m&&m.dataIndex!=null){var g=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return u=g&&g.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return u=H({},m.eventData),!0},!0),u){var c=u.componentType,f=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=u.seriesIndex);var h=c&&f!=null&&s.getComponent(c,f),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=n,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},r.trigger(n,u)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)});var a=this._messageCenter;A(Yd,function(n,i){a.on(i,function(o){r.trigger(i,o)})}),P4(a,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&Hy(this.getDom(),jd,"");var a=this,n=a._api,i=a._model;A(a._componentsViews,function(o){o.dispose(i,n)}),A(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete is[a.id]},e.prototype.resize=function(r){if(!this[Ue]){if(this._disposed){this.id;return}this._zr.resize(r);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=r&&r.silent;this[Ke]&&(i==null&&(i=this[Ke].silent),n=!0,this[Ke]=null),this[Ue]=!0,Pi(this);try{n&&mn(this),Qr.update.call(this,{type:"resize",animation:H({duration:0},r&&r.animation)})}catch(o){throw this[Ue]=!1,o}this[Ue]=!1,_i.call(this,i),xi.call(this,i)}}},e.prototype.showLoading=function(r,a){if(this._disposed){this.id;return}if(J(r)&&(a=r,r=""),r=r||"default",this.hideLoading(),!!qd[r]){var n=qd[r](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var a=H({},r);return a.type=$d[r.type],a},e.prototype.dispatchAction=function(r,a){if(this._disposed){this.id;return}if(J(a)||(a={silent:!!a}),!!ap[r.type]&&this._model){if(this[Ue]){this._pendingActions.push(r);return}var n=a.silent;Ud.call(this,r,n);var i=a.flush;i?this._zr.flush():i!==!1&&se.browser.weChat&&this._throttledZrFlush(),_i.call(this,n),xi.call(this,n)}},e.prototype.updateLabelLayout=function(){qt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var a=r.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){mn=function(c){Y5(c._model);var f=c._scheduler;f.restorePipelines(c._zr,c._model),f.prepareStageTasks(),Hd(c,!0),Hd(c,!1),f.plan()},Hd=function(c,f){for(var h=c._model,d=c._scheduler,v=f?c._componentsViews:c._chartsViews,m=f?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,b=0;b<v.length;b++)v[b].__alive=!1;f?h.eachComponent(function(_,x){_!=="series"&&k(x)}):h.eachSeries(k);function k(_){var x=_.__requireNewView;_.__requireNewView=!1;var T="_ec_"+_.id+"_"+_.type,C=!x&&m[T];if(!C){var P=kr(_.type),S=f?Dt.getClass(P.main,P.sub):at.getClass(P.sub);C=new S,C.init(h,y),m[T]=C,v.push(C),g.add(C.group)}_.__viewId=C.__id=T,C.__alive=!0,C.__model=_,C.group.__ecComponentInfo={mainType:_.mainType,index:_.componentIndex},!f&&d.prepareView(C,_,h,y)}for(var b=0;b<v.length;){var w=v[b];w.__alive?b++:(!f&&w.renderTask.dispose(),g.remove(w.group),w.dispose(h,y),v.splice(b,1),m[w.__id]===w&&delete m[w.__id],w.__id=w.group.__ecComponentInfo=null)}},ep=function(c,f,h,d,v){var m=c._model;if(m.setUpdatePayload(h),!d){A([].concat(c._componentsViews).concat(c._chartsViews),k);return}var g=WD(h,d,v),y=h.excludeSeriesId,b;y!=null&&(b=ae(),A(ut(y),function(w){var _=Ar(w,null);_!=null&&b.set(_,!0)})),m&&m.eachComponent(g,function(w){var _=b&&b.get(w.id)!=null;if(!_)if(v0(h))if(w instanceof ft)h.type===Ja&&!h.notBlur&&!w.get(["emphasis","disabled"])&&cA(w,h,c._api);else{var x=Sf(w.mainType,w.componentIndex,h.name,c._api),T=x.focusSelf,C=x.dispatchers;h.type===Ja&&T&&!h.notBlur&&Pf(w.mainType,w.componentIndex,c._api),C&&A(C,function(P){h.type===Ja?Ll(P):Ml(P)})}else Df(h)&&w instanceof ft&&(dA(w,h,c._api),f0(w),jt(c))},c),m&&m.eachComponent(g,function(w){var _=b&&b.get(w.id)!=null;_||k(c[d==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},c);function k(w){w&&w.__alive&&w[f]&&w[f](w.__model,m,c._api,h)}},Qr={prepareAndUpdate:function(c){mn(this),Qr.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,f){var h=this._model,d=this._api,v=this._zr,m=this._coordSysMgr,g=this._scheduler;if(h){K5(h),h.setUpdatePayload(c),g.restoreData(h,c),g.performSeriesTasks(h),m.create(h,d),qt.trigger("coordsys:aftercreate",h,d),g.performDataProcessorTasks(h,c),Vd(this,h),m.update(h,d),a(h),g.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";v.setBackgroundColor(y);var b=h.get("darkMode");b!=null&&b!=="auto"&&v.setDarkMode(b),Gd(this,h,d,c,f),qt.trigger("afterupdate",h,d)}},updateTransform:function(c){var f=this,h=f._model,d=f._api;if(h){h.setUpdatePayload(c);var v=[];h.eachComponent(function(g,y){if(g!==Ky){var b=f.getViewOfComponentModel(y);if(b&&b.__alive)if(b.updateTransform){var k=b.updateTransform(y,h,d,c);k&&k.update&&v.push(b)}else v.push(b)}});var m=ae();h.eachSeries(function(g){var y=f._chartsMap[g.__viewId],b=g.pipelineContext;if(y.updateTransform&&!b.progressiveRender){var k=y.updateTransform(g,h,d,c);k&&k.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),f._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:m}),rp(f,h,d,c,{},m),qt.trigger("afterupdate",h,d)}},updateView:function(c){var f=this._model;f&&(f.setUpdatePayload(c),at.markUpdateMethod(c,"updateView"),a(f),this._scheduler.performVisualTasks(f,c,{setDirty:!0}),Gd(this,f,this._api,c,{}),qt.trigger("afterupdate",f,this._api))},updateVisual:function(c){var f=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(d){d.getData().clearAllVisual()}),at.markUpdateMethod(c,"updateVisual"),a(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,v){if(d!=="series"){var m=f.getViewOfComponentModel(v);m&&m.__alive&&m.updateVisual(v,h,f._api,c)}}),h.eachSeries(function(d){var v=f._chartsMap[d.__viewId];v.updateVisual(d,h,f._api,c)}),qt.trigger("afterupdate",h,this._api))},updateLayout:function(c){Qr.update.call(this,c)}};function r(c,f,h,d,v){if(c._disposed){c.id;return}for(var m=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,b=pf(m,h),k=0;k<g.length;k++){var w=g[k];if(w[f]&&(y=w[f](m,b,d,v))!=null)return y}}tp=r,Vd=function(c,f){var h=c._chartsMap,d=c._scheduler;f.eachSeries(function(v){d.updateStreamModes(v,h[v.__viewId])})},Ud=function(c,f){var h=this,d=this.getModel(),v=c.type,m=c.escapeConnect,g=ap[v],y=(g.update||"update").split(":"),b=y.pop(),k=y[0]!=null&&kr(y[0]);this[Ue]=!0,Pi(this);var w=[c],_=!1;c.batch&&(_=!0,w=K(c.batch,function(E){return E=pe(H({},E),c),E.batch=null,E}));var x=[],T,C=[],P=g.nonRefinedEventType,S=Df(c),L=v0(c);if(L&&c0(this._api),A(w,function(E){var O=g.action(E,d,h._api);if(g.refineEvent?C.push(O):T=O,T=T||H({},E),T.type=P,x.push(T),L){var R=cf(c),B=R.queryOptionMap,N=R.mainTypeSpecified,F=N?B.keys()[0]:"series";ep(h,b,E,F),jt(h)}else S?(ep(h,b,E,"series"),jt(h)):k&&ep(h,b,E,k.main,k.sub)}),b!=="none"&&!L&&!S&&!k)try{this[Ke]?(mn(this),Qr.update.call(this,c),this[Ke]=null):Qr[b].call(this,c)}catch(E){throw this[Ue]=!1,E}if(_?T={type:P,escapeConnect:m,batch:x}:T=x[0],this[Ue]=!1,!f){var D=void 0;if(g.refineEvent){var M=g.refineEvent(C,c,d,this._api).eventContent;Jt(J(M)),D=pe({type:g.refinedEventType},M),D.fromAction=c.type,D.fromActionPayload=c,D.escapeConnect=!0}var I=this._messageCenter;I.trigger(T.type,T),D&&I.trigger(D.type,D)}},_i=function(c){for(var f=this._pendingActions;f.length;){var h=f.shift();Ud.call(this,h,c)}},xi=function(c){!c&&this.trigger("updated")},G_=function(c,f){c.on("rendered",function(h){f.trigger("rendered",h),c.animation.isFinished()&&!f[Ke]&&!f._scheduler.unfinished&&!f._pendingActions.length?f.trigger("finished"):c.refresh()})},W_=function(c,f){c.on("mouseover",function(h){var d=h.target,v=ns(d,Cf);v&&(fA(v,h,f._api),jt(f))}).on("mouseout",function(h){var d=h.target,v=ns(d,Cf);v&&(hA(v,h,f._api),jt(f))}).on("click",function(h){var d=h.target,v=ns(d,function(y){return ce(y).dataIndex!=null},!0);if(v){var m=v.selected?"unselect":"select",g=ce(v);f._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function a(c){c.clearColorPalette(),c.eachSeries(function(f){f.clearColorPalette()})}function n(c){var f=[],h=[],d=!1;if(c.eachComponent(function(y,b){var k=b.get("zlevel")||0,w=b.get("z")||0,_=b.getZLevelKey();d=d||!!_,(y==="series"?h:f).push({zlevel:k,z:w,idx:b.componentIndex,type:y,key:_})}),d){var v=f.concat(h),m,g;Gu(v,function(y,b){return y.zlevel===b.zlevel?y.z-b.z:y.zlevel-b.zlevel}),A(v,function(y){var b=c.getComponent(y.type,y.idx),k=y.zlevel,w=y.key;m!=null&&(k=Math.max(m,k)),w?(k===m&&w!==g&&k++,g=w):g&&(k===m&&k++,g=""),m=k,b.setZLevel(k)})}}Gd=function(c,f,h,d,v){n(f),$_(c,f,h,d,v),A(c._chartsViews,function(m){m.__alive=!1}),rp(c,f,h,d,v),A(c._chartsViews,function(m){m.__alive||m.remove(f,h)})},$_=function(c,f,h,d,v,m){A(m||c._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,f,h,d),l(y,g),p(y,g)})},rp=function(c,f,h,d,v,m){var g=c._scheduler;v=H(v||{},{updatedSeries:f.getSeries()}),qt.trigger("series:beforeupdate",f,h,v);var y=!1;f.eachSeries(function(b){var k=c._chartsMap[b.__viewId];k.__alive=!0;var w=k.renderTask;g.updatePayload(w,d),u(b,k),m&&m.get(b.uid)&&w.dirty(),w.perform(g.getPerformArgs(w))&&(y=!0),k.group.silent=!!b.get("silent"),s(b,k),f0(b)}),g.unfinished=y||g.unfinished,qt.trigger("series:layoutlabels",f,h,v),qt.trigger("series:transition",f,h,v),f.eachSeries(function(b){var k=c._chartsMap[b.__viewId];l(b,k),p(b,k)}),o(c,f),qt.trigger("series:afterupdate",f,h,v)},jt=function(c){c[Fd]=!0,c.getZr().wakeUp()},Pi=function(c){c[Ju]=(c[Ju]+1)%1e6},X_=function(c){c[Fd]&&(c.getZr().storage.traverse(function(f){xo(f)||i(f)}),c[Fd]=!1)};function i(c){for(var f=[],h=c.currentStates,d=0;d<h.length;d++){var v=h[d];v==="emphasis"||v==="blur"||v==="select"||f.push(v)}c.selected&&c.states.select&&f.push("select"),c.hoverState===Pl&&c.states.emphasis?f.push("emphasis"):c.hoverState===xl&&c.states.blur&&f.push("blur"),c.useStates(f)}function o(c,f){var h=c._zr;if(h.painter.type==="canvas"){var d=h.storage,v=0;d.traverse(function(g){g.isGroup||v++});var m=v>Z(f.get("hoverLayerThreshold"),Hw.hoverLayerThreshold)&&!se.node&&!se.worker;(c._usingTHL||m)&&(f.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(b){var k=b.states.emphasis;k&&k.hoverLayer!==Nf&&(k.hoverLayer=m?I0:E0)})}}),c._usingTHL=m)}}function s(c,f){var h=c.get("blendMode")||null;f.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(c,f){if(!c.preventAutoZ){var h=V0(c);f.eachRendered(function(d){return U0(d,h.z,h.zlevel),!0})}}function u(c,f){f.eachRendered(function(h){if(!xo(h)){var d=h.getTextContent(),v=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function p(c,f){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),v=h.get("duration"),m=v>0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;f.eachRendered(function(g){if(g.states&&g.states.emphasis){if(xo(g))return;if(g instanceof me&&kA(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=m;var b=g.getTextContent(),k=g.getTextGuideLine();b&&(b.stateTransition=m),k&&(k.stateTransition=m)}g.__dirty&&i(g)}})}Y_=function(c){return new((function(f){V(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var v=d.__ecComponentInfo;if(v!=null)return c._model.getComponent(v.mainType,v.index);d=d.parent}},h.prototype.enterEmphasis=function(d,v){Ll(d,v),jt(c)},h.prototype.leaveEmphasis=function(d,v){Ml(d,v),jt(c)},h.prototype.enterBlur=function(d){pA(d),jt(c)},h.prototype.leaveBlur=function(d){s0(d),jt(c)},h.prototype.enterSelect=function(d){l0(d),jt(c)},h.prototype.leaveSelect=function(d){u0(d),jt(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h.prototype.getECUpdateCycleVersion=function(){return c[Ju]},h.prototype.usingTHL=function(){return c._usingTHL},h})(jy))(c)},K_=function(c){function f(h,d){for(var v=0;v<h.length;v++){var m=h[v];m[zd]=d}}A($d,function(h,d){c._messageCenter.on(d,function(v){if(Z_[c.group]&&c[zd]!==N_){if(v&&v.escapeConnect)return;var m=c.makeActionFromEvent(v),g=[];A(is,function(y){y!==c&&y.group===c.group&&g.push(y)}),f(g,N_),A(g,function(y){y[zd]!==FO&&y.dispatchAction(m)}),f(g,zO)}})})}})(),e})(zr),Wd=q_.prototype;Wd.on=F_("on"),Wd.off=F_("off"),Wd.one=function(t,e,r){var a=this;function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),a.off(t,n)}this.on.call(this,t,n,r)};var HO=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function IF(t){}var ap={},$d={},Yd={},Kd=[],Xd=[],np=[],j_={},qd={},is={},Z_={},VO=+new Date-0,jd="_echarts_instance_";function UO(t,e,r){var a=!(r&&r.ssr);if(a){var n=GO(t);if(n)return n}var i=new q_(t,e,r);return i.id="ec_"+VO++,is[i.id]=i,a&&Hy(t,jd,i.id),K_(i),qt.trigger("afterinit",i),i}function GO(t){return is[$D(t,jd)]}function Q_(t,e){j_[t]=e}function J_(t){fe(Xd,t)<0&&Xd.push(t)}function ex(t,e){Qd(Kd,t,e,MO)}function WO(t){Zd("afterinit",t)}function $O(t){Zd("afterupdate",t)}function Zd(t,e){qt.on(t,e)}function Si(t,e,r){var a,n,i,o,s;re(e)&&(r=e,e=""),J(t)?(a=t.type,n=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),i=t.refineEvent):(a=t,n=e);function l(p){return p.toLowerCase()}n=l(n||a);var u=i?l(a):n;ap[a]||(Jt(B_.test(a)&&B_.test(n)),i&&Jt(n!==a),ap[a]={actionType:a,refinedEventType:n,nonRefinedEventType:u,update:o,action:r,refineEvent:i},Yd[n]=1,i&&s&&(Yd[u]=1),$d[u]=a)}function YO(t,e){sh.register(t,e)}function KO(t,e){Qd(np,t,e,I_,"layout")}function yn(t,e){Qd(np,t,e,O_,"visual")}var tx=[];function Qd(t,e,r,a,n,i){if((re(e)||J(e))&&(r=e,e=a),!(fe(tx,r)>=0)){tx.push(r);var o=a_.wrapStageHandler(r,n);o.__prio=e,o.__raw=r,t.push(o)}}function rx(t,e){qd[t]=e}function XO(t,e,r){var a=nO("registerMap");a&&a(t,e,r)}var qO=nM;yn(Nd,zI),yn(Qu,HI),yn(Qu,VI),yn(Nd,JI),yn(Qu,eO),yn(R_,PO),J_(Qw),ex(DO,RI),rx("default",UI),Si({type:Ja,event:Ja,update:Ja},qe),Si({type:Tl,event:Tl,update:Tl},qe),Si({type:Cl,event:kf,update:Cl,action:qe,refineEvent:Jd,publishNonRefinedEvent:!0}),Si({type:bf,event:kf,update:bf,action:qe,refineEvent:Jd,publishNonRefinedEvent:!0}),Si({type:Dl,event:kf,update:Dl,action:qe,refineEvent:Jd,publishNonRefinedEvent:!0});function Jd(t,e,r,a){return{eventContent:{selected:vA(r),isFromClick:e.isFromClick||!1}}}Q_("default",{}),Q_("dark",u_);var ax=[],jO={registerPreprocessor:J_,registerProcessor:ex,registerPostInit:WO,registerPostUpdate:$O,registerUpdateLifecycle:Zd,registerAction:Si,registerCoordinateSystem:YO,registerLayout:KO,registerVisual:yn,registerTransform:qO,registerLoading:rx,registerMap:XO,registerImpl:aO,PRIORITY:NO,ComponentModel:ke,ComponentView:Dt,SeriesModel:ft,ChartView:at,registerComponentModel:function(t){ke.registerClass(t)},registerComponentView:function(t){Dt.registerClass(t)},registerSeriesModel:function(t){ft.registerClass(t)},registerChartView:function(t){at.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){ke.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){hI(t,e)}};function cr(t){if(W(t)){A(t,function(e){cr(e)});return}fe(ax,t)>=0||(ax.push(t),re(t)&&(t={install:t}),t.install(jO))}var ZO=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,a){return Jl(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(r,a,n){return n.point(a.getItemLayout(r))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:$.color.primary}},universalTransition:{divideShape:"clone"}},e})(ft),nx=4,QO=(function(){function t(){}return t})(),JO=(function(t){V(e,t);function e(r){var a=t.call(this,r)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.getDefaultShape=function(){return new QO},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(r){r&&!r.contentRetained&&this.reset()},e.prototype.buildPath=function(r,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&i[0]<nx,p=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<n.length;){var f=n[c++],h=n[c++];isNaN(f)||isNaN(h)||p&&!p.contain(f,h)||(s.x=f-i[0]/2,s.y=h-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},e.prototype.afterBrush=function(){var r=this.shape,a=r.points,n=r.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<a.length;){var l=a[s++],u=a[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-n[0]/2,u-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(r,a){for(var n=this.shape,i=n.points,o=n.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var p=u*2,c=i[p]-s/2,f=i[p+1]-l/2;if(r>=c&&a>=f&&r<=c+s&&a<=f+l)return u}return-1},e.prototype.contain=function(r,a){var n=this.transformCoordToLocal(r,a),i=this.getBoundingRect();if(r=n[0],a=n[1],i.contain(r,a)){var o=this.hoverDataIdx=this.findDataIndex(r,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,p=-1/0,c=-1/0,f=0;f<n.length;){var h=n[f++],d=n[f++];l=Math.min(h,l),p=Math.max(h,p),u=Math.min(d,u),c=Math.max(d,c)}r=this._rect=new oe(l-o/2,u-s/2,p-l+o,c-u+s)}return r},e})(me),eR=(function(){function t(){this.group=new Me}return t.prototype.updateData=function(e,r){this._clear(),this._data=e;var a=this._create();a.setShape({points:e.getLayout("points")}),this._setCommon(a,e,r)},t.prototype.updateLayout=function(e){var r=this._data;if(r){var a=r.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var i=(n.endIndex-n.startIndex)*2,o=n.startIndex*4*2;a=new Float32Array(a.buffer,o,i)}n.setShape("points",a),n.reset(),n.stopAnimation()})}},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,r,a,n){var i=this._newAdded[0],o=r.getLayout("points"),s=i&&i.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),i.endIndex=e.end,i.setShape({points:u})}else{this._newAdded=[];var p=this._create();p.startIndex=e.start,p.endIndex=e.end,p.incremental=a,p.setShape({points:o}),this._setCommon(p,r,n)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new JO({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,r,a){var n=r.hostModel;a=a||{};var i=r.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=a.clipShape||null,e.symbolProxy=Ir(r.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<nx;e.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=ce(e);u.seriesIndex=n.seriesIndex,e.on("mousemove",function(p){u.dataIndex=null;var c=e.hoverDataIdx;c>=0&&(u.dataIndex=c+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t})(),tR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,a,n){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.updateData(i,ev(r)),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,a,n){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(r,a,n){this._symbolDraw.incrementalUpdate(r,a.getData(),$y(a),ev(a)),this._finished=r.end===a.getData().count()},e.prototype.updateTransform=function(r,a,n){var i=r.getData();if(this.group.dirty(),this._finished){var o=$h("").reset(r,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(ev(r))}else return{update:!0}},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._updateSymbolDraw=function(r,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new eR:new Sk,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(r,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(at);function ev(t){return{clipShape:KM(t)}}var ix=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})(),tv=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",zt).models[0]},e.type="cartesian2dAxis",e})(ke);Qt(tv,ix);var ox={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:"auto",onZeroAxisIndex:null,lineStyle:{color:$.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:$.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:$.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[$.color.backgroundTint,$.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:$.color.neutral00,borderColor:$.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},rR=Pe({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},ox),rv=Pe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:$.color.axisMinorSplitLine,width:1}}},ox),aR=Pe({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},rv),nR=pe({logBase:10},rv);const sx={category:rR,value:rv,time:aR,log:nR};function lx(t,e,r,a){A(Zk,function(n,i){var o=Pe(Pe({},sx[i],!0),a,!0),s=(function(l){V(u,l);function u(){var p=l!==null&&l.apply(this,arguments)||this;return p.type=e+"Axis."+i,p}return u.prototype.mergeDefaultAndTheme=function(p,c){var f=Fo(this),h=f?zo(p):{},d=c.getTheme();Pe(p,d.get(i+"Axis")),Pe(p,this.getDefaultOption()),p.type=ux(p),f&&va(p,h,f)},u.prototype.optionUpdated=function(){var p=this.option;p.type==="category"&&(this.__ordinalMeta=Nh.createByAxisModel(this))},u.prototype.getCategories=function(p){var c=this.option;if(c.type==="category")return p?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(p){var c=Lu();return c?c.updateModelAxisBreak(this,p):{breaks:[]}},u.type=e+"Axis."+i,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",ux)}function ux(t){return t.type||(t.data?"category":"value")}var iR=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return K(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Xe(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t})(),ip=["x","y"];function px(t){return(t.type==="interval"||t.type==="time")&&!nu(t)}var oR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=jr,r.dimensions=ip,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!px(r)||!px(a))){var n=vu(r,null),i=vu(a,null),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var p=(s[0]-o[0])/l,c=(s[1]-o[1])/u,f=o[0]-n[0]*p,h=o[1]-i[0]*c,d=this._transform=[p,0,0,c,f,h];this._invTransform=ji([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(r[0]))&&n.contain(n.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,a){var n=this.dataToPoint(r),i=this.dataToPoint(a),o=this.getArea(),s=new oe(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,a,n){n=n||[];var i=r[0],o=r[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Lt(n,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},e.prototype.clampData=function(r,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(r[0]),u=i.parse(r[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},e.prototype.pointToData=function(r,a,n){if(n=n||[],this._invTransform)return Lt(n,r,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(r[0]),a),n[1]=o.coordToData(o.toLocalCoord(r[1]),a),n},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-r,o=Math.min(n[0],n[1])-r,s=Math.max(a[0],a[1])-i+r,l=Math.max(n[0],n[1])-o+r;return new oe(i,o,s,l)},e})(iR);function cx(t,e){var r=t.scale,a=t.model,n=Y1(r,a,a.ecModel,t),i=ci(r),o=ci(e)?e.intervalStub:e,s=i?r.intervalStub:r,l=r.base,u=o.getTicks(),p=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,f,h,d;if(c===1)f=h=0,d=1;else if(c===2){var v=Ve(u[0].value-u[1].value),m=Ve(u[1].value-u[2].value);f=h=0,v===m?d=2:(d=1,v<m?f=v/m:h=m/v)}else{var g=o.getConfig().interval;f=(1-(u[0].value-p[0].value)/g)%1,h=(1-(p[c].value-u[c].value)/g)%1,d=c-(f?1:0)-(h?1:0)}var y=n.zoomFixMM,b=y[0]||y[1],k=[n.fixMM[0]||b,n.fixMM[1]||b],w=r.getExtent(),_=s.getExtent(),x=Vk(_,k),T,C,P,S,L,D;function M(U){for(var Y=50,z=0;z<Y&&!U();z++)P=i?P*ye(l,2):e5(P),S=hn(P)}function I(){T=ve(D-P*f,S)}function E(){C=ve(L+P*h,S)}function O(){D=f?ve(T+P*f,S):T}function R(){L=h?ve(C-P*h,S):C}if(k[0]&&k[1]){T=x[0],C=x[1],P=(C-T)/(d+f+h);var B=t.getExtent(),N=Ve(B[1]-B[0]);S=PD([C,T],N,.5/d),O(),R(),Ft(S)&&(P=ve(P,S))}else{var F=x[1]-x[0];P=i?ye(My(F),1):sf(F/d,Ey),S=hn(P),k[0]?(T=x[0],M(function(){if(O(),L=ve(D+P*d,S),E(),C>=x[1])return!0})):k[1]?(C=x[1],M(function(){if(R(),D=ve(L-P*d,S),I(),T<=x[0])return!0})):M(function(){D=ve(fo(x[0]/P)*P,S),L=ve(qa(x[1]/P)*P,S);var U=Vr((L-D)/P);if(U<=d){var Y=d-U,z=void 0,j=n.incl0||i;if(j&&x[0]===0)z=[0,Y];else if(j&&x[1]===0)z=[Y,0];else{var ne=qa(Y/2);z=Y%2===0?[ne,ne]:T+C<x[0]+x[1]?[ne,ne+1]:[ne+1,ne]}if(D=ve(D-P*z[0],S),L=ve(L+P*z[1],S),I(),E(),T<=x[0]&&C>=x[1])return!0}})}e1(r,k,_,[T,C],w,{interval:P,intervalCount:d,intervalPrecision:S,niceExtent:[D,L]})}function fx(t,e){var r=ci(t),a=r?t.intervalStub:t,n=e.fixMinMax||[],i=r?t.getExtent():null,o=a.getExtent(),s=Vk(o,n,e.rawExtentResult);a.setExtent(s[0],s[1]),s=a.getExtent();var l=r?lR(a,e):sR(a,e),u=l.intervalPrecision,p=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=hn(c)),n[0]||(s[0]=ve(qa(s[0]/p)*p,u)),n[1]||(s[1]=ve(fo(s[1]/p)*p,u)),c!=null&&(l.niceExtent=s.slice()),e1(t,n,o,s,i,l)}function sR(t,e){var r=bu(e.splitNumber,5),a=gu(t),n=e.minInterval,i=e.maxInterval,o=sf(a/r,!0);n!=null&&o<n&&(o=n),i!=null&&o>i&&(o=i);var s=hn(o),l=t.getExtent(),u=[ve(fo(l[0]/o)*o,s),ve(qa(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function lR(t,e){var r=bu(e.splitNumber,10),a=t.getExtent(),n=gu(t),i=ye(My(n),1),o=r/n*i;o<=.5&&(i*=10);var s=hn(i),l=[ve(fo(a[0]/i)*i,s),ve(qa(a[1]/i)*i,s)];return{intervalPrecision:s,interval:i,niceExtent:l}}function hx(t){var e=t.scale,r=t.model,a=r.axis,n=r.ecModel;uR(e,r,a,n)}function uR(t,e,r,a,n){var i=Y1(t,e,a,r),o=mu(t)||zh(t);pR(t,{splitNumber:e.get("splitNumber"),fixMinMax:i.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:i}),r&&a&&WE(r,t,i,a)}function pR(t,e){cR[t.type](t,e)}var cR={interval:fx,log:fx,time:p5,ordinal:qe},dx=[[3,1],[0,2]],fR=(function(){function t(e,r,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ip,this._initCartesian(e,r,a),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var a=this._axesMap;A(this._axesList,function(o){W1(o,z1);var s=o.scale;sr(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function n(o){for(var s=he(o),l=[],u=s.length-1;u>=0;u--){var p=o[+s[u]];p.__alignTo?l.push(p):hx(p)}A(l,function(c){dR(c,c.__alignTo)?hx(c):cx(c,c.__alignTo.scale)})}n(a.x),n(a.y);var i={};A(a.x,function(o){vx(a,"y",o,i)}),A(a.y,function(o){vx(a,"x",o,i)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,a){var n=pi(e,r),i=this._rect=Yr(e.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(yx(o,i),!a){var u=gR(i,s,o,l,r),p=void 0;if(l)p=kx(i.clone(),"axisLabel",null,i,o,u,n);else{var c=mR(e,i,n),f=c.outerBoundsRect,h=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;f&&(p=kx(f,h,d,i,o,u,n))}_x(i,o,lr.determine,null,p,n),A(this._coordsList,function(v){v.calcAffineTransform()})}},t.prototype.getAxis=function(e,r){var a=this._axesMap[e];if(a!=null)return a[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var a="x"+e+"y"+r;return this._coordsMap[a]}J(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===e||i[n].getAxis("y").index===r)return i[n]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,a){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},t.prototype.convertFromPixel=function(e,r,a){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,a=e.xAxisModel||r&&r.getReferringComponents("xAxis",zt).models[0],n=e.yAxisModel||r&&r.getReferringComponents("yAxis",zt).models[0],i=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,fe(o,s)<0&&(s=null);else if(a&&n)s=this.getCartesian(a.componentIndex,n.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,a){var n=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,A(s.x,function(p,c){A(s.y,function(f,h){var d="x"+c+"y"+h,v=new oR(d);v.master=n,v.model=e,n._coordsMap[d]=v,n._coordsList.push(v),v.addAxis(p),v.addAxis(f)})}),mx(s.x),mx(s.y);function u(p){return function(c,f){if(hR(c,e)){var h=c.get("position");p==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=f5(c),v=new uE(p,h5(c,d),[0,0],d,h);v.onBand=t1(v.scale,c),v.inverse=c.get("inverse"),c.axis=v,v.model=c,v.grid=i,v.index=f,i._axesList.push(v),s[p][f]=v,l[p]++}}}},t.prototype.getTooltipAxes=function(e){var r=[],a=[];return A(this.getCartesians(),function(n){var i=e!=null&&e!=="auto"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(i);fe(r,i)<0&&r.push(i),fe(a,o)<0&&a.push(o)}),{baseAxes:r,otherAxes:a}},t.create=function(e,r){var a=[];return e.eachComponent("grid",function(n,i){var o=new t(n,e,r);o.name="grid_"+i,o.resize(n,r,!0),n.coordinateSystem=o,a.push(o),A(o._axesList,function(s){zE(s,t.dimIdxMap)})}),e.eachSeries(function(n){var i,o;rL({targetModel:n,coordSysType:jr,coordSysProvider:s});function s(){var l=IE(n),u=l.xAxisModel,p=l.yAxisModel;i=u.axis,o=p.axis;var c=u.getCoordSysModel(),f=c.coordinateSystem;return f.getCartesian(u.componentIndex,p.componentIndex)}i&&o&&(qh(i,n,jr),qh(o,n,jr))},this),a},t.dimensions=ip,t.dimIdxMap=ah(ip),t})();function hR(t,e){return t.getCoordSysModel()===e}function vx(t,e,r,a){r.getAxesOnZeroOf=function(){return i?[i]:[]};var n=t[e],i,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)gx(s,n[l])&&(i=n[l]);else for(var u in n)if(st(n,u)&&gx(s,n[u])&&!a[p(n[u])]){i=n[u];break}i&&(a[p(i)]=!0);function p(c){return c.dim+"_"+c.index}}function gx(t,e){if(!e)return!1;var r=e.scale,a=d5(r,0),n=e&&e.type!=="category"&&e.type!=="time"&&a!==Uh;return n&&t==="auto"&&y5(e)&&(n=!1),n}function mx(t){for(var e=he(t),r,a=[],n=e.length-1;n>=0;n--){var i=t[+e[n]];Hk(i.scale)&&Jk(i.model,i.type)==null&&(i.model.get("alignTicks")&&i.model.get("interval")==null?a.push(i):r=i)}r||(r=a.pop()),r&&A(a,function(o){o.__alignTo=r})}function dR(t,e){return nu(t.scale)||nu(e.scale)||e.scale.getTicks().length<2}function vR(t,e){var r=t.getExtent(),a=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(n){return n+e}:function(n){return a-n+e},t.toLocalCoord=t.dim==="x"?function(n){return n-e}:function(n){return a-n+e}}function yx(t,e){A(t.x,function(r){return bx(r,e.x,e.width)}),A(t.y,function(r){return bx(r,e.y,e.height)})}function bx(t,e,r){var a=[0,r],n=t.inverse?1:0;t.setExtent(a[n],a[1-n]),vR(t,e)}function kx(t,e,r,a,n,i,o){_x(a,n,lr.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),p(a,0,NaN),p(a,1,NaN);var l=sm(s,function(f){return f>0})==null;return Vl(a,s,!0,!0,r),yx(n,a),l;function u(f){A(n[fa[f]],function(h){if(Go(h.model)){var d=i.ensureRecord(h.model),v=d.labelInfoList;if(v)for(var m=0;m<v.length;m++){var g=v[m],y=h.scale.normalize(Wo(h.scale,dn(g.label).labelInfo.tick));y=f===1?1-y:y,p(g.rect,f,y),p(g.rect,1-f,NaN)}var b=d.nameLayout;if(b){var y=fi(d.nameLocation)?.5:NaN;p(b.rect,f,y),p(b.rect,1-f,NaN)}}})}function p(f,h,d){var v=t[fa[h]]-f[fa[h]],m=f[ti[h]]+f[fa[h]]-(t[ti[h]]+t[fa[h]]);v=c(v,1-d),m=c(m,d);var g=dx[h][0],y=dx[h][1];s[g]=ye(s[g],v),s[y]=ye(s[y],m)}function c(f,h){return f>0&&!$i(h)&&h>1e-4&&(f/=h),f}}function gR(t,e,r,a,n){var i=new M1(yR);return A(r,function(o){return A(o,function(s){if(Go(s.model)){var l=!a;s.axisBuilder=OE(t,e,s.model,n,i,l)}})}),i}function _x(t,e,r,a,n,i){var o=r===lr.determine;A(e,function(u){return A(u,function(p){Go(p.model)&&(RE(p.axisBuilder,t,p.model),p.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[fa[1-u]]=t[ti[u]]<=i.refContainer[ti[u]]*.5?0:1-u===1?2:1}A(e,function(u,p){return A(u,function(c){Go(c.model)&&((a==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[p]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function mR(t,e,r){var a,n=t.get("outerBoundsMode",!0);n==="same"?a=e.clone():(n==null||n==="auto")&&(a=Yr(t.get("outerBounds",!0)||K1,r.refContainer));var i=t.get("outerBoundsContain",!0),o;i==null||i==="auto"||fe(["all","axisLabel"],i)<0?o="all":o=i;var s=[af(Z(t.get("outerBoundsClampWidth",!0),Ou[0]),e.width),af(Z(t.get("outerBoundsClampHeight",!0),Ou[1]),e.height)];return{outerBoundsRect:a,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var yR=function(t,e,r,a,n,i){var o=r.axis.dim==="x"?"y":"x";E1(t,e,r,a,n,i),fi(t.nameLocation)||A(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&O1(s.labelInfoList,s.dirVec,a,n)})};function bR(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return kR(r,t,e),r.seriesInvolved&&_R(r,t),r}function kR(t,e,r){var a=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];A(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=os(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var p=s.model,c=p.getModel("tooltip",a);if(A(s.getAxes(),ze(v,!1,null)),s.getTooltipAxes&&a&&c.get("show")){var f=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(f||h)&&A(d.baseAxes,ze(v,h?"cross":!0,f)),h&&A(d.otherAxes,ze(v,"cross",!1))}function v(m,g,y){var b=y.model.getModel("axisPointer",n),k=b.get("show");if(!(!k||k==="auto"&&!m&&!iv(b))){g==null&&(g=b.get("triggerTooltip")),b=m?wR(y,c,n,e,m,g):b;var w=b.get("snap"),_=b.get("triggerEmphasis"),x=os(y.model),T=g||w||y.type==="category",C=t.axesInfo[x]={key:x,axis:y,coordSys:s,axisPointerModel:b,triggerTooltip:g,triggerEmphasis:_,involveSeries:T,snap:w,useHandle:iv(b),seriesModels:[],linkGroup:null};u[x]=C,t.seriesInvolved=t.seriesInvolved||T;var P=xR(i,y);if(P!=null){var S=o[P]||(o[P]={axesInfo:{}});S.axesInfo[x]=C,S.mapper=i[P].mapper,C.linkGroup=S}}}})}function wR(t,e,r,a,n,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};A(s,function(f){l[f]=le(o.get(f))}),l.snap=t.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var p=o.get(["label","show"]);if(u.show=p??!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&pe(u,c.textStyle)}}return t.model.getModel("axisPointer",new Ae(l,r,a))}function _R(t,e){e.eachSeries(function(r){var a=r.coordinateSystem,n=r.get(["tooltip","trigger"],!0),i=r.get(["tooltip","show"],!0);!a||!a.model||n==="none"||n===!1||n==="item"||i===!1||r.get(["axisPointer","show"],!0)===!1||A(t.coordSysAxesInfo[os(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function xR(t,e){for(var r=e.model,a=e.dim,n=0;n<t.length;n++){var i=t[n]||{};if(av(i[a+"AxisId"],r.id)||av(i[a+"AxisIndex"],r.componentIndex)||av(i[a+"AxisName"],r.name))return n}}function av(t,e){return t==="all"||W(t)&&fe(t,e)>=0||t===e}function PR(t){var e=nv(t);if(e){var r=e.axisPointerModel,a=e.axis.scale,n=r.option,i=r.get("status"),o=r.get("value");o!=null&&(o=a.parse(o));var s=iv(r);i==null&&(n.status=s?"show":"hide");var l=a.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}function nv(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[os(t)]}function SR(t){var e=nv(t);return e&&e.axisPointerModel}function iv(t){return!!t.get(["handle","show"])}function os(t){return t.type+"||"+t.id}var xx={},Px=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,a,n,i){this.axisPointerClass&&PR(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,n,!0)},e.prototype.updateAxisPointer=function(r,a,n,i){this._doUpdateAxisPointerClass(r,n,!1)},e.prototype.remove=function(r,a){var n=this._axisPointer;n&&n.remove(a)},e.prototype.dispose=function(r,a){this._disposeAxisPointer(a),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,a,n){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=SR(r);o?(this._axisPointer||(this._axisPointer=new i)).render(r,o,a,n):this._disposeAxisPointer(a)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,a){xx[r]=a},e.getAxisPointerClass=function(r){return r&&xx[r]},e.type="axis",e})(Dt),ov=_e();function TR(t,e,r,a){var n=r.axis;if(!n.scale.isBlank()){var i=r.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var p=s.length,c=ov(t).splitAreaColors,f=ae(),h=0;if(c)for(var d=0;d<u.length;d++){var v=c.get(u[d].tickValue);if(v!=null){h=(v+(p-1)*d)%p;break}}var m=n.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=W(s)?s:[s];for(var d=1;d<u.length;d++){var y=n.toGlobalCoord(u[d].coord),b=void 0,k=void 0,w=void 0,_=void 0;n.isHorizontal()?(b=m,k=l.y,w=y-b,_=l.height,m=b+w):(b=l.x,k=m,w=l.width,_=y-k,m=k+_);var x=u[d-1].tickValue;x!=null&&f.set(x,h),e.add(new Ie({anid:x!=null?"area_"+x:null,shape:{x:b,y:k,width:w,height:_},style:pe({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%p}ov(t).splitAreaColors=f}}}function CR(t){ov(t).splitAreaColors=null}var DR=["splitArea","splitLine","minorSplitLine","breakArea"],Sx=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,a,n,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Me,this.group.add(this._axisGroup),!!Go(r)){this._axisGroup.add(r.axis.axisBuilder.group),A(DR,function(l){r.get([l,"show"])&&AR[l](this,this._axisGroup,r,r.getCoordSysModel(),n)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||F0(o,this._axisGroup,r),t.prototype.render.call(this,r,a,n,i)}},e.prototype.remove=function(){CR(this)},e.type="cartesianAxis",e})(Px),AR={splitLine:function(t,e,r,a,n){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,p=o.get("showMaxLine")!==!1;l=W(l)?l:[l];for(var c=a.coordinateSystem.getRect(),f=i.isHorizontal(),h=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),v=[],m=[],g=s.getLineStyle(),y=0;y<d.length;y++){var b=i.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!p)){var k=d[y].tickValue;f?(v[0]=b,v[1]=c.y,m[0]=b,m[1]=c.y+c.height):(v[0]=c.x,v[1]=b,m[0]=c.x+c.width,m[1]=b);var w=h++%l.length,_=new Er({anid:k!=null?"line_"+k:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:m[0],y2:m[1]},style:pe({stroke:l[w]},g),silent:!0});Po(_.shape,g.lineWidth),e.add(_)}}}},minorSplitLine:function(t,e,r,a,n){var i=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=a.coordinateSystem.getRect(),u=i.isHorizontal(),p=i.getMinorTicksCoords();if(p.length)for(var c=[],f=[],h=s.getLineStyle(),d=0;d<p.length;d++)for(var v=0;v<p[d].length;v++){var m=i.toGlobalCoord(p[d][v].coord);u?(c[0]=m,c[1]=l.y,f[0]=m,f[1]=l.y+l.height):(c[0]=l.x,c[1]=m,f[0]=l.x+l.width,f[1]=m);var g=new Er({anid:"minor_line_"+p[d][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:h,silent:!0});Po(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,r,a,n){TR(t,e,r,a)},breakArea:function(t,e,r,a,n){var i=Lu(),o=r.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(e,t,r,a.coordinateSystem.getRect(),n)}},Tx=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(Sx),LR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Tx.type,r}return e.type="yAxis",e})(Sx),MR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,a){this.group.removeAll(),r.get("show")&&this.group.add(new Ie({shape:r.coordinateSystem.getRect(),style:pe({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Dt),Cx={offset:0};function Dx(t){t.registerComponentView(MR),t.registerComponentModel(ZE),t.registerCoordinateSystem("cartesian2d",fR),lx(t,"x",tv,Cx),lx(t,"y",tv,Cx),t.registerComponentView(Tx),t.registerComponentView(LR),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function ER(t){cr(Dx),t.registerSeriesModel(ZO),t.registerChartView(tR),t.registerLayout($h("scatter"))}function IR(t){var e=t.polar;if(e){W(e)||(e=[e]);var r=[];A(e,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),t.radar=t.radar||[],W(t.radar)||(t.radar=[t.radar]),t.radar.push(a)):r.push(a)}),t.polar=r}A(t.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var ss="radar",OR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new ud(ge(this.getData,this),ge(this.getRawData,this))},e.prototype.getInitialData=function(r,a){return Hu(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(r,a,n){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(r),u=l===""?this.name:l,p=vk(this,r);return fn("section",{header:u,sortBlocks:!0,blocks:K(s,function(c){var f=i.get(i.mapDimension(c.dim),r);return fn("nameValue",{markerType:"subItem",markerColor:p,name:c.name,value:f,sortParam:f})})})},e.prototype.getTooltipPosition=function(r){if(r!=null){for(var a=this.getData(),n=this.coordinateSystem,i=a.getValues(K(n.dimensions,function(u){return a.mapDimension(u)}),r),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(i[o]),o)}}},e.type="series."+ss,e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e})(ft),RR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=ss,r}return e.prototype.render=function(r,a,n){var i=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(f,h){var d=f.getItemVisual(h,"symbol")||"circle";if(d!=="none"){var v=bk(f.getItemVisual(h,"symbolSize")),m=Ir(d,-1,-1,2,2),g=f.getItemVisual(h,"symbolRotate")||0;return m.attr({style:{strokeNoScale:!0},z2:100,scaleX:v[0]/2,scaleY:v[1]/2,rotation:g*Math.PI/180||0}),m}}function p(f,h,d,v,m,g){d.removeAll();for(var y=0;y<h.length-1;y++){var b=u(v,m);b&&(b.__dimIdx=y,f[y]?(b.setPosition(f[y]),W0[g?"initProps":"updateProps"](b,{x:h[y][0],y:h[y][1]},r,m)):b.setPosition(h[y]),d.add(b))}}function c(f){return K(f,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(f){var h=s.getItemLayout(f);if(h){var d=new Qn,v=new ca,m={shape:{points:h}};d.shape.points=c(h),v.shape.points=c(h),Ye(d,m,r,f),Ye(v,m,r,f);var g=new Me,y=new Me;g.add(v),g.add(d),g.add(y),p(v.shape.points,h,y,s,f,!0),s.setItemGraphicEl(f,g)}}).update(function(f,h){var d=l.getItemGraphicEl(h),v=d.childAt(0),m=d.childAt(1),g=d.childAt(2),y={shape:{points:s.getItemLayout(f)}};y.shape.points&&(p(v.shape.points,y.shape.points,g,s,f,!1),ei(m),ei(v),Re(v,y,r),Re(m,y,r),s.setItemGraphicEl(f,d))}).remove(function(f){o.remove(l.getItemGraphicEl(f))}).execute(),s.eachItemGraphicEl(function(f,h){var d=s.getItemModel(h),v=f.childAt(0),m=f.childAt(1),g=f.childAt(2),y=s.getItemVisual(h,"style"),b=y.fill;o.add(f),v.useStyle(pe(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:b})),$r(v,d,"lineStyle"),$r(m,d,"areaStyle");var k=d.getModel("areaStyle"),w=k.isEmpty()&&k.parentModel.isEmpty();m.ignore=w,A(["emphasis","select","blur"],function(x){var T=d.getModel([x,"areaStyle"]),C=T.isEmpty()&&T.parentModel.isEmpty();m.ensureState(x).ignore=C&&w;var P=d.getModel([x,"lineStyle"]).getLineStyle();v.ensureState(x).style=P;var S=T.getAreaStyle();m.ensureState(x).style=S;var L=d.getModel([x,"itemStyle"]).getItemStyle();g.eachChild(function(D){D.ensureState(x).style=le(L)})}),m.useStyle(pe(d.getModel("areaStyle").getAreaStyle(),{fill:b,opacity:.7,decal:y.decal}));var _=d.getModel("emphasis");g.eachChild(function(x){if(x instanceof Bt){var T=x.style;x.useStyle(H({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},y))}else x.useStyle(y),x.setColor(b),x.style.strokeNoScale=!0;var C=s.getStore().get(s.getDimensionIndex(x.__dimIdx),h);(C==null||isNaN(C))&&(C=""),an(x,nn(d),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:x.__dimIdx,defaultText:C,inheritColor:b,defaultOpacity:y.opacity})}),Wr(f,_.get("focus"),_.get("blurScope"),_.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type=ss,e})(at),ls=sx.value,us="radar",Ax=us,BR=us,Lx=5;function op(t,e){return pe({show:e},t)}var NR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),a=this.get("splitNumber"),n=this.get("clockwise"),i=this.get("scale"),o=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisLabel"),u=this.get("axisName"),p=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),h=this.get("triggerEvent"),d=K(this.get("indicator")||[],function(v){v.max!=null&&v.max>0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var m=u;v.color!=null&&(m=pe({color:v.color},u));var g=Pe(le(v),{boundaryGap:r,splitNumber:a,clockwise:n,scale:i,axisLine:o,axisTick:s,axisLabel:l,name:v.text,showName:p,nameLocation:"end",nameGap:f,nameTextStyle:m,triggerEvent:h},!1);if(q(c)){var y=g.name;g.name=c.replace("{value}",y??"")}else re(c)&&(g.name=c(g.name,g));var b=new Ae(g,null,this.ecModel);return Qt(b,ix.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b.uid=Io("ec_radar"),b},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=Ax,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:$.color.axisLabel},boundaryGap:[0,0],splitNumber:Lx,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Pe({lineStyle:{color:$.color.neutral20}},ls.axisLine),axisLabel:op(ls.axisLabel,!1),axisTick:op(ls.axisTick,!1),splitLine:op(ls.splitLine,!0),splitArea:op(ls.splitArea,!0),indicator:[]},e})(ke),FR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,a,n){var i=this.group;i.removeAll(),this._buildAxes(r,n),this._buildSplitLineAndArea(r)},e.prototype._buildAxes=function(r,a){var n=r.coordinateSystem,i=n.getIndicatorAxes(),o=K(i,function(s){var l=s.model.get("showName")?s.name:"",u=new Xr(s.model,a,{axisName:l,position:[n.cx,n.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});A(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(r){var a=r.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),p=o.get("show"),c=s.get("show"),f=l.get("color"),h=u.get("color"),d=W(f)?f:[f],v=W(h)?h:[h],m=[],g=[];function y(I,E,O){var R=O%E.length;return I[R]=I[R]||[],R}if(i==="circle")for(var b=n[0].getTicksCoords(),k=a.cx,w=a.cy,_=0;_<b.length;_++){if(p){var x=y(m,d,_);m[x].push(new ko({shape:{cx:k,cy:w,r:b[_].coord}}))}if(c&&_<b.length-1){var x=y(g,v,_);g[x].push(new Rl({shape:{cx:k,cy:w,r0:b[_].coord,r:b[_+1].coord}}))}}else for(var T,C=K(n,function(I,E){var O=I.getTicksCoords();return T=T==null?O.length-1:Math.min(O.length-1,T),K(O,function(R){return a.coordToPoint(R.coord,E)})}),P=[],_=0;_<=T;_++){for(var S=[],L=0;L<n.length;L++)S.push(C[L][_]);if(S[0]&&S.push(S[0].slice()),p){var x=y(m,d,_);m[x].push(new ca({shape:{points:S}}))}if(c&&P){var x=y(g,v,_-1);g[x].push(new Qn({shape:{points:S.concat(P)}}))}P=S.slice().reverse()}var D=l.getLineStyle(),M=u.getAreaStyle();A(g,function(I,E){this.group.add(zf(I,{style:pe({stroke:"none",fill:v[E%v.length]},M),silent:!0}))},this),A(m,function(I,E){this.group.add(zf(I,{style:pe({fill:"none",stroke:d[E%d.length]},D),silent:!0}))},this)},e.type="radar",e})(Dt),zR=(function(t){V(e,t);function e(r,a,n){var i=t.call(this,r,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return e})(_1),HR=(function(){function t(e,r,a){this.type=us,this.dimensions=[],this._model=e,this._indicatorAxes=K(e.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new zR(o,new ba);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(e,a)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(e,r){var a=this._indicatorAxes[r];return this.coordToPoint(a.dataToCoord(e),r)},t.prototype.coordToPoint=function(e,r){var a=this._indicatorAxes[r],n=a.angle,i=this.cx+e*Math.cos(n),o=this.cy-e*Math.sin(n);return[i,o]},t.prototype.pointToData=function(e){var r=e[0]-this.cx,a=e[1]-this.cy,n=Math.sqrt(r*r+a*a);r/=n,a/=n;for(var i=Math.atan2(-a,r),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var p=this._indicatorAxes[u],c=Math.abs(i-p.angle);c<o&&(s=p,l=u,o=c)}return[l,+(s&&s.coordToData(n))]},t.prototype.resize=function(e,r){var a=pi(e,r).refContainer,n=e.get("center"),i=e.get("clockwise")||!1,o=Math.min(a.width,a.height)/2;this.cx=ee(n[0],a.width)+a.x,this.cy=ee(n[1],a.height)+a.y,this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(q(s)||be(s))&&(s=[0,s]),this.r0=ee(s[0],o),this.r=ee(s[1],o);var l=i?-1:1;A(this._indicatorAxes,function(u,p){u.setExtent(this.r0,this.r);var c=this.startAngle+l*p*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),u.angle=c},this)},t.prototype.update=function(e,r){var a=this._indicatorAxes,n=this._model,i=bu(n.get("splitNumber"),Lx),o=new ba;o.setExtent(0,i),o.setConfig({interval:1}),A(a,function(s){W1(s,z1),cx(s,o)})},t.prototype.convertToPixel=function(e,r,a){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(e,r,a){return console.warn("Not implemented."),null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.create=function(e,r){var a=[];return e.eachComponent(Ax,function(n){var i=new t(n,e,r);a.push(i),n.coordinateSystem=i}),e.eachSeriesByType(BR,function(n){if(n.get("coordinateSystem")===us){var i=n.coordinateSystem=a[n.get("radarIndex")||0];i&&A(i.getIndicatorAxes(),function(o){qh(o,n,us)})}}),a},t.dimensions=[],t})();function VR(t){t.registerCoordinateSystem("radar",HR),t.registerComponentModel(NR),t.registerComponentView(FR),t.registerVisual({seriesType:"radar",reset:function(e){var r=e.getData();r.each(function(a){r.setItemVisual(a,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}var UR=df(ss,GR);function GR(t){t.eachSeriesByType(ss,function(e){var r=e.getData(),a=[],n=e.coordinateSystem;if(n){var i=n.getIndicatorAxes();A(i,function(o,s){r.each(r.mapDimension(i[s].dim),function(l,u){a[u]=a[u]||[];var p=n.dataToPoint(l,s);a[u][s]=Mx(p)?p:Ex(n)})}),r.each(function(o){var s=sm(a[o],function(l){return Mx(l)})||Ex(n);a[o].push(s.slice()),r.setItemLayout(o,a[o])})}})}function Mx(t){return!isNaN(t[0])&&!isNaN(t[1])}function Ex(t){return[t.cx,t.cy]}function WR(t){cr(VR),t.registerChartView(RR),t.registerSeriesModel(OR),t.registerLayout(UR),t.registerProcessor(ld("radar")),t.registerPreprocessor(IR)}var $R=(function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t})(),YR=(function(t){V(e,t);function e(r){var a=t.call(this,r)||this;return a.type="pointer",a}return e.prototype.getDefaultShape=function(){return new $R},e.prototype.buildPath=function(r,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),p=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,r.moveTo(u,p),r.lineTo(a.x+n(l)*s,a.y+i(l)*s),r.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),r.lineTo(a.x-n(l)*s,a.y-i(l)*s),r.lineTo(u,p)},e})(me);function KR(t,e){var r=t.get("center"),a=e.getWidth(),n=e.getHeight(),i=Math.min(a,n),o=ee(r[0],e.getWidth()),s=ee(r[1],e.getHeight()),l=ee(t.get("radius"),i/2);return{cx:o,cy:s,r:l}}function sp(t,e){var r=t==null?"":t+"";return e&&(q(e)?r=e.replace("{value}",r):re(e)&&(r=e(t))),r}var XR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,a,n){this.group.removeAll();var i=r.get(["axisLine","lineStyle","color"]),o=KR(r,n);this._renderMain(r,a,n,i,o),this._data=r.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(r,a,n,i,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,p=-r.get("endAngle")/180*Math.PI,c=r.getModel("axisLine"),f=c.get("roundCap"),h=f?Bu:Mr,d=c.get("show"),v=c.getModel("lineStyle"),m=v.get("width"),g=[u,p];Jc(g,!l),u=g[0],p=g[1];for(var y=p-u,b=u,k=[],w=0;d&&w<i.length;w++){var _=Math.min(Math.max(i[w][0],0),1);p=u+y*_;var x=new h({shape:{startAngle:b,endAngle:p,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-m,r:o.r},silent:!0});x.setStyle({fill:i[w][1]}),x.setStyle(v.getLineStyle(["color","width"])),k.push(x),b=p}k.reverse(),A(k,function(C){return s.add(C)});var T=function(C){if(C<=0)return i[0][1];var P;for(P=0;P<i.length;P++)if(i[P][0]>=C&&(P===0?0:i[P-1][0])<C)return i[P][1];return i[P-1][1]};this._renderTicks(r,a,n,T,o,u,p,l,m),this._renderTitleAndDetail(r,a,n,T,o),this._renderAnchor(r,o),this._renderPointer(r,a,n,T,o,u,p,l,m)},e.prototype._renderTicks=function(r,a,n,i,o,s,l,u,p){for(var c=this.group,f=o.cx,h=o.cy,d=o.r,v=+r.get("min"),m=+r.get("max"),g=r.getModel("splitLine"),y=r.getModel("axisTick"),b=r.getModel("axisLabel"),k=r.get("splitNumber"),w=y.get("splitNumber"),_=ee(g.get("length"),d),x=ee(y.get("length"),d),T=s,C=(l-s)/k,P=C/w,S=g.getModel("lineStyle").getLineStyle(),L=y.getModel("lineStyle").getLineStyle(),D=g.get("distance"),M,I,E=0;E<=k;E++){if(M=Math.cos(T),I=Math.sin(T),g.get("show")){var O=D?D+p:p,R=new Er({shape:{x1:M*(d-O)+f,y1:I*(d-O)+h,x2:M*(d-_-O)+f,y2:I*(d-_-O)+h},style:S,silent:!0});S.stroke==="auto"&&R.setStyle({stroke:i(E/k)}),c.add(R)}if(b.get("show")){var O=b.get("distance")+D,B=sp(ve(E*(m-v)/k+v,mD),b.get("formatter")),N=i(E/k),F=M*(d-_-O)+f,U=I*(d-_-O)+h,Y=b.get("rotate"),z=0;Y==="radial"?(z=-T+2*Math.PI,z>Math.PI/2&&(z+=Math.PI)):Y==="tangential"?z=-T-Math.PI/2:be(Y)&&(z=Y*Math.PI/180),z===0?c.add(new Oe({style:Gt(b,{text:B,x:F,y:U,verticalAlign:I<-.8?"top":I>.8?"bottom":"middle",align:M<-.4?"left":M>.4?"right":"center"},{inheritColor:N}),silent:!0})):c.add(new Oe({style:Gt(b,{text:B,x:F,y:U,verticalAlign:"middle",align:"center"},{inheritColor:N}),silent:!0,originX:F,originY:U,rotation:z}))}if(y.get("show")&&E!==k){var O=y.get("distance");O=O?O+p:p;for(var j=0;j<=w;j++){M=Math.cos(T),I=Math.sin(T);var ne=new Er({shape:{x1:M*(d-O)+f,y1:I*(d-O)+h,x2:M*(d-x-O)+f,y2:I*(d-x-O)+h},silent:!0,style:L});L.stroke==="auto"&&ne.setStyle({stroke:i((E+j/w)/k)}),c.add(ne),T+=P}T-=P}else T+=C}},e.prototype._renderPointer=function(r,a,n,i,o,s,l,u,p){var c=this.group,f=this._data,h=this._progressEls,d=[],v=r.get(["pointer","show"]),m=r.getModel("progress"),g=m.get("show"),y=r.getData(),b=y.mapDimension("value"),k=+r.get("min"),w=+r.get("max"),_=[k,w],x=[s,l];function T(P,S){var L=y.getItemModel(P),D=L.getModel("pointer"),M=ee(D.get("width"),o.r),I=ee(D.get("length"),o.r),E=r.get(["pointer","icon"]),O=D.get("offsetCenter"),R=ee(O[0],o.r),B=ee(O[1],o.r),N=D.get("keepAspect"),F;return E?F=Ir(E,R-M/2,B-I,M,I,null,N):F=new YR({shape:{angle:-Math.PI/2,width:M,r:I,x:R,y:B}}),F.rotation=-(S+Math.PI/2),F.x=o.cx,F.y=o.cy,F}function C(P,S){var L=m.get("roundCap"),D=L?Bu:Mr,M=m.get("overlap"),I=M?m.get("width"):p/y.count(),E=M?o.r-I:o.r-(P+1)*I,O=M?o.r:o.r-P*I,R=new D({shape:{startAngle:s,endAngle:S,cx:o.cx,cy:o.cy,clockwise:u,r0:E,r:O}});return M&&(R.z2=Nt(y.get(b,P),[k,w],[100,0],!0)),R}(g||v)&&(y.diff(f).add(function(P){var S=y.get(b,P);if(v){var L=T(P,s);Ye(L,{rotation:-((isNaN(+S)?x[0]:Nt(S,_,x,!0))+Math.PI/2)},r),c.add(L),y.setItemGraphicEl(P,L)}if(g){var D=C(P,s),M=m.get("clip");Ye(D,{shape:{endAngle:Nt(S,_,x,M)}},r),c.add(D),gf(r.seriesIndex,y.dataType,P,D),d[P]=D}}).update(function(P,S){var L=y.get(b,P);if(v){var D=f.getItemGraphicEl(S),M=D?D.rotation:s,I=T(P,M);I.rotation=M,Re(I,{rotation:-((isNaN(+L)?x[0]:Nt(L,_,x,!0))+Math.PI/2)},r),c.add(I),y.setItemGraphicEl(P,I)}if(g){var E=h[S],O=E?E.shape.endAngle:s,R=C(P,O),B=m.get("clip");Re(R,{shape:{endAngle:Nt(L,_,x,B)}},r),c.add(R),gf(r.seriesIndex,y.dataType,P,R),d[P]=R}}).execute(),y.each(function(P){var S=y.getItemModel(P),L=S.getModel("emphasis"),D=L.get("focus"),M=L.get("blurScope"),I=L.get("disabled"),E=i(Nt(y.get(b,P),_,[0,1],!0));if(v){var O=y.getItemGraphicEl(P),R=y.getItemVisual(P,"style"),B=R.fill;if(O instanceof Bt){var N=O.style;O.useStyle(H({image:N.image,x:N.x,y:N.y,width:N.width,height:N.height},R))}else O.useStyle(R),O.type!=="pointer"&&O.setColor(B);O.setStyle(S.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",E),O.z2EmphasisLift=0,$r(O,S),Wr(O,D,M,I)}if(g){var F=d[P];F.useStyle(y.getItemVisual(P,"style")),F.setStyle(S.getModel(["progress","itemStyle"]).getItemStyle()),F.style.fill==="auto"&&F.setStyle("fill",E),F.z2EmphasisLift=0,$r(F,S),Wr(F,D,M,I)}}),this._progressEls=d)},e.prototype._renderAnchor=function(r,a){var n=r.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),p=Ir(s,a.cx-o/2+ee(l[0],a.r),a.cy-o/2+ee(l[1],a.r),o,o,null,u);p.z2=n.get("showAbove")?1:0,p.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(p)}},e.prototype._renderTitleAndDetail=function(r,a,n,i,o){var s=this,l=r.getData(),u=l.mapDimension("value"),p=+r.get("min"),c=+r.get("max"),f=new Me,h=[],d=[],v=r.isAnimationEnabled(),m=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(g){h[g]=new Oe({silent:!0}),d[g]=new Oe({silent:!0})}).update(function(g,y){h[g]=s._titleEls[y],d[g]=s._detailEls[y]}).execute(),l.each(function(g){var y=l.getItemModel(g),b=l.get(u,g),k=new Me,w=i(Nt(b,[p,c],[0,1],!0)),_=y.getModel("title");if(_.get("show")){var x=_.get("offsetCenter"),T=o.cx+ee(x[0],o.r),C=o.cy+ee(x[1],o.r),P=h[g];P.attr({z2:m?0:2,style:Gt(_,{x:T,y:C,text:l.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:w})}),k.add(P)}var S=y.getModel("detail");if(S.get("show")){var L=S.get("offsetCenter"),D=o.cx+ee(L[0],o.r),M=o.cy+ee(L[1],o.r),I=ee(S.get("width"),o.r),E=ee(S.get("height"),o.r),O=r.get(["progress","show"])?l.getItemVisual(g,"style").fill:w,P=d[g],R=S.get("formatter");P.attr({z2:m?0:2,style:Gt(S,{x:D,y:M,text:sp(b,R),width:isNaN(I)?null:I,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:O})}),Z0(P,{normal:S},b,function(N){return sp(N,R)}),v&&y3(P,g,l,r,{getFormattedLabel:function(N,F,U,Y,z,j){return sp(j?j.interpolatedValue:b,R)}}),k.add(P)}f.add(k)}),this.group.add(f),this._titleEls=h,this._detailEls=d},e.type="gauge",e})(at),qR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.visualStyleAccessPath="itemStyle",r}return e.prototype.getInitialData=function(r,a){return Hu(this,["value"])},e.type="series.gauge",e.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,$.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:$.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:$.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:$.color.axisLabel,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:$.color.neutral00,borderWidth:0,borderColor:$.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:$.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:$.color.transparent,borderWidth:0,borderColor:$.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:$.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e})(ft);function jR(t){t.registerChartView(XR),t.registerSeriesModel(qR)}var Ti="funnel",ZR=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new ud(ge(this.getData,this),ge(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.getInitialData=function(r,a){return Hu(this,{coordDimensions:["value"],encodeDefaulter:ze(rb,this)})},e.prototype._defaultLabelLine=function(r){_l(r,"labelLine",["show"]);var a=r.labelLine,n=r.emphasis.labelLine;a.show=a.show&&r.label.show,n.show=n.show&&r.emphasis.label.show},e.prototype.getDataParams=function(r){var a=this.getData(),n=t.prototype.getDataParams.call(this,r),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,r)/o*100).toFixed(2):0,n.$vars.push("percent"),n},e.type="series."+Ti,e.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,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:$.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:$.color.primary}}},e})(ft),QR=["itemStyle","opacity"],JR=(function(t){V(e,t);function e(r,a){var n=t.call(this)||this,i=n,o=new ca,s=new Oe;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(r,a,!0),n}return e.prototype.updateData=function(r,a,n){var i=this,o=r.hostModel,s=r.getItemModel(a),l=r.getItemLayout(a),u=s.getModel("emphasis"),p=s.get(QR);p=p??1,n||ei(i),i.useStyle(r.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,Ye(i,{style:{opacity:p}},o,a)):Re(i,{style:{opacity:p},shape:{points:l.points}},o,a),$r(i,s),this._updateLabel(r,a),Wr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=r.hostModel,l=r.getItemModel(a),u=r.getItemLayout(a),p=u.label,c=r.getItemVisual(a,"style"),f=c.fill;an(o,nn(l),{labelFetcher:r.hostModel,labelDataIndex:a,defaultOpacity:c.opacity,defaultText:r.getName(a)},{normal:{align:p.textAlign,verticalAlign:p.verticalAlign}});var h=l.getModel("label"),d=h.get("color"),v=d==="inherit"?f:null;n.setTextConfig({local:!0,inside:!!p.inside,insideStroke:v,outsideFill:v});var m=p.linePoints;i.setShape({points:m}),n.textGuideLineConfig={anchor:m?new ie(m[0][0],m[0][1]):null},Re(o,{style:{x:p.x,y:p.y}},s,a),o.attr({rotation:p.rotation,originX:p.x,originY:p.y,z2:10}),fw(n,hw(l),{stroke:f})},e})(Qn),eB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ti,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,a,n){var i=r.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new JR(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var p=o.getItemGraphicEl(u);p.updateData(i,l),s.add(p),i.setItemGraphicEl(l,p)}).remove(function(l){var u=o.getItemGraphicEl(l);Jn(u,r,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type=Ti,e})(at);function tB(t,e){for(var r=t.mapDimension("value"),a=t.mapArray(r,function(l){return l}),n=[],i=e==="ascending",o=0,s=t.count();o<s;o++)n[o]=o;return re(e)?n.sort(e):e!=="none"&&n.sort(function(l,u){return i?a[l]-a[u]:a[u]-a[l]}),n}function rB(t){var e=t.hostModel,r=Ix(e);t.each(function(a){var n=t.getItemModel(a),i=n.getModel("label"),o=i.get("position"),s=n.getModel("labelLine"),l=t.getItemLayout(a),u=l.points,p=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,f,h,d;if(p)o==="insideLeft"?(f=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,c="left"):o==="insideRight"?(f=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,c="right"):(f=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,c="center"),d=[[f,h],[f,h]];else{var v=void 0,m=void 0,g=void 0,y=void 0,b=s.get("length");q(o)&&(!r&&fe(["top","bottom"],o)>-1&&(o="left"),r&&fe(["left","right"],o)>-1&&(o="bottom")),o==="left"?(v=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,g=v-b,f=g-5,c="right"):o==="right"?(v=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,g=v+b,f=g+5,c="left"):o==="top"?(v=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,y=m-b,h=y-5,c="center"):o==="bottom"?(v=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,y=m+b,h=y+5,c="center"):o==="rightTop"?(v=r?u[3][0]:u[1][0],m=r?u[3][1]:u[1][1],r?(y=m-b,h=y-5,c="center"):(g=v+b,f=g+5,c="top")):o==="rightBottom"?(v=u[2][0],m=u[2][1],r?(y=m+b,h=y+5,c="center"):(g=v+b,f=g+5,c="bottom")):o==="leftTop"?(v=u[0][0],m=r?u[0][1]:u[1][1],r?(y=m-b,h=y-5,c="center"):(g=v-b,f=g-5,c="right")):o==="leftBottom"?(v=r?u[1][0]:u[3][0],m=r?u[1][1]:u[2][1],r?(y=m+b,h=y+5,c="center"):(g=v-b,f=g-5,c="right")):(v=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,r?(y=m+b,h=y+5,c="center"):(g=v+b,f=g+5,c="left")),r?(g=v,f=g):(y=m,h=y),d=[[v,m],[g,y]]}l.label={linePoints:d,x:f,y:h,verticalAlign:"middle",textAlign:c,inside:p}})}var aB=df(Ti,nB);function nB(t,e){t.eachSeriesByType(Ti,function(r){var a=r.getData(),n=a.mapDimension("value"),i=r.get("sort"),o=pi(r,e),s=Yr(r.getBoxLayoutParams(),o.refContainer),l=Ix(r),u=s.width,p=s.height,c=tB(a,i),f=s.x,h=s.y,d=l?[ee(r.get("minSize"),p),ee(r.get("maxSize"),p)]:[ee(r.get("minSize"),u),ee(r.get("maxSize"),u)],v=a.getDataExtent(n),m=r.get("min"),g=r.get("max");m==null&&(m=Math.min(v[0],0)),g==null&&(g=v[1]);var y=r.get("funnelAlign"),b=r.get("gap"),k=l?u:p,w=(k-b*(a.count()-1))/a.count(),_=function(I,E){if(l){var O=a.get(n,I)||0,R=Nt(O,[m,g],d,!0),B=void 0;switch(y){case"top":B=h;break;case"center":B=h+(p-R)/2;break;case"bottom":B=h+(p-R);break}return[[E,B],[E,B+R]]}var N=a.get(n,I)||0,F=Nt(N,[m,g],d,!0),U;switch(y){case"left":U=f;break;case"center":U=f+(u-F)/2;break;case"right":U=f+u-F;break}return[[U,E],[U+F,E]]};i==="ascending"&&(w=-w,b=-b,l?f+=u:h+=p,c=c.reverse());for(var x=0;x<c.length;x++){var T=c[x],C=c[x+1],P=a.getItemModel(T);if(l){var S=P.get(["itemStyle","width"]);S==null?S=w:(S=ee(S,u),i==="ascending"&&(S=-S));var L=_(T,f),D=_(C,f+S);f+=S+b,a.setItemLayout(T,{points:L.concat(D.slice().reverse())})}else{var M=P.get(["itemStyle","height"]);M==null?M=w:(M=ee(M,p),i==="ascending"&&(M=-M));var L=_(T,h),D=_(C,h+M);h+=M+b,a.setItemLayout(T,{points:L.concat(D.slice().reverse())})}}rB(a)})}function Ix(t){return t.get("orient")==="horizontal"}function iB(t){t.registerChartView(eB),t.registerSeriesModel(ZR),t.registerLayout(aB),t.registerProcessor(ld(Ti))}var bn=_e(),Ox=le,sv=ge,oB=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,a,n){var i=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,r,a);var p=u.graphicKey;p!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=p;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new Me,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),a.getZr().add(s);else{var f=ze(Rx,r,c);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,r)}Fx(s,r,!0),this._renderHandle(i)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var a=r.get("animation"),n=e.axis,i=n.type==="category",o=r.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&vi(n).w>s)return!0;if(o){var l=nv(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},t.prototype.makeElOption=function(e,r,a,n,i){},t.prototype.createPointerEl=function(e,r,a,n){var i=r.pointer;if(i){var o=bn(e).pointerEl=new W0[i.type](Ox(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,a,n){if(r.label){var i=bn(e).labelEl=new Oe(Ox(r.label));e.add(i),Nx(i,n)}},t.prototype.updatePointerEl=function(e,r,a){var n=bn(e).pointerEl;n&&r.pointer&&(n.setStyle(r.pointer.style),a(n,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,a,n){var i=bn(e).labelEl;i&&(i.setStyle(r.label.style),a(i,{x:r.label.x,y:r.label.y}),Nx(i,n))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=r.getModel("handle"),o=r.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Vf(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ww(u.event)},onmousedown:sv(this._onHandleDragMove,this,0,0),drift:sv(this._onHandleDragMove,this),ondragend:sv(this._onHandleDragEnd,this)}),a.add(n)),Fx(n,r,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");W(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Q1(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){Rx(this._axisPointerModel,!r&&this._moveAnimation,this._handle,lv(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(lv(a),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(lv(n)),bn(a).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),a=this._group,n=this._handle;r&&a&&(this._lastGraphicKey=null,a&&r.remove(a),n&&r.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),id(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,a){return a=a||0,{x:e[a],y:e[1-a],width:r[a],height:r[1-a]}},t})();function Rx(t,e,r,a){Bx(bn(r).lastProp,a)||(bn(r).lastProp=a,e?Re(r,a,t):(r.stopAnimation(),r.attr(a)))}function Bx(t,e){if(J(t)&&J(e)){var r=!0;return A(e,function(a,n){r=r&&Bx(t[n],a)}),!!r}else return t===e}function Nx(t,e){t[e.get(["label","show"])?"show":"hide"]()}function lv(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Fx(t,e,r){var a=e.get("z"),n=e.get("zlevel");t&&t.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=r)})}function sB(t){var e=t.get("type"),r=t.getModel(e+"Style"),a;return e==="line"?(a=r.getLineStyle(),a.fill=null):e==="shadow"&&(a=r.getAreaStyle(),a.stroke=null),a}function lB(t,e,r,a,n){var i=r.get("value"),o=zx(i,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=lu(s.get("padding")||0),u=s.getFont(),p=xm(o,u),c=n.position,f=p.width+l[1]+l[3],h=p.height+l[0]+l[2],d=n.align;d==="right"&&(c[0]-=f),d==="center"&&(c[0]-=f/2);var v=n.verticalAlign;v==="bottom"&&(c[1]-=h),v==="middle"&&(c[1]-=h/2),uB(c,f,h,a);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Gt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function uB(t,e,r,a){var n=a.getWidth(),i=a.getHeight();t[0]=Math.min(t[0]+e,n)-e,t[1]=Math.min(t[1]+r,i)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function zx(t,e,r,a,n){t=e.scale.parse(t);var i=e.scale.getLabel({value:t},{precision:n.precision}),o=n.formatter;if(o){var s={value:Pu(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};A(a,function(l){var u=r.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,c=u&&u.getDataParams(p);c&&s.seriesData.push(c)}),q(o)?i=o.replace("{value}",i):re(o)&&(i=o(s))}return i}function Hx(t,e,r){var a=wr();return nc(a,a,r.rotation),ac(a,a,r.position),Hf([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],a)}function pB(t,e,r,a,n,i){var o=Xr.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get(["label","margin"]),lB(e,a,n,i,{position:Hx(a.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function cB(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function fB(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function hB(t,e,r){return vi(t,{fromStat:{sers:K(e,function(a){return r.getSeriesByIndex(a.seriesIndex)})},min:1}).w}function dB(t,e,r){return[ye(et(e[0],e[1]),t-r/2),et(t+r/2,ye(e[0],e[1]))]}var vB=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),p=s.getGlobalExtent(),c=Vx(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var h=sB(i),d=gB[u](s,f,p,c,i.get("seriesDataIndices"),i.ecModel);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=Eu(l.getRect(),n);pB(a,r,v,n,i,o)},e.prototype.getHandleTransform=function(r,a,n){var i=Eu(a.axis.grid.getRect(),a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=Hx(a.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Vx(s,o).getOtherAxis(o).getGlobalExtent(),p=o.dim==="x"?0:1,c=[r.x,r.y];c[p]+=a[p],c[p]=et(l[1],c[p]),c[p]=ye(l[0],c[p]);var f=(u[1]+u[0])/2,h=[f,f];h[p]=c[p];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:d[p]}},e})(oB);function Vx(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var gB={line:function(t,e,r,a){var n=cB([e,a[0]],[e,a[1]],Ux(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r,a,n,i){var o=hB(t,n,i),s=a[1]-a[0],l=dB(e,r,o),u=l[0],p=l[1];return{type:"Rect",shape:fB([u,a[0]],[p-u,s],Ux(t))}}};function Ux(t){return t.dim==="x"?0:1}var mB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:$.color.border,width:1,type:"dashed"},shadowStyle:{color:$.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:$.color.neutral00,padding:[5,7,5,7],backgroundColor:$.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:$.color.accent40,throttle:40}},e})(ke),Jr=_e(),yB=A;function Gx(t,e,r){if(!se.node){var a=e.getZr();Jr(a).records||(Jr(a).records={}),bB(a,e);var n=Jr(a).records[t]||(Jr(a).records[t]={});n.handler=r}}function bB(t,e){if(Jr(t).initialized)return;Jr(t).initialized=!0,r("click",ze(uv,"click")),r("mousemove",ze(uv,"mousemove")),r("mousewheel",ze(uv,"mousewheel")),r("globalout",wB);function r(a,n){t.on(a,function(i){var o=_B(e);yB(Jr(t).records,function(s){s&&n(s,i,o.dispatchAction)}),kB(o.pendings,e)})}}function kB(t,e){var r=t.showTip.length,a=t.hideTip.length,n;r?n=t.showTip[r-1]:a&&(n=t.hideTip[a-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function wB(t,e,r){t.handler("leave",null,r)}function uv(t,e,r,a){e.handler(t,r,a)}function _B(t){var e={showTip:[],hideTip:[]},r=function(a){var n=e[a.type];n?n.push(a):(a.dispatchAction=r,t.dispatchAction(a))};return{dispatchAction:r,pendings:e}}function pv(t,e){if(!se.node){var r=e.getZr(),a=(Jr(r).records||{})[t];a&&(Jr(r).records[t]=null)}}var xB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,a,n){var i=a.getComponent("tooltip"),o=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click|mousewheel";Gx("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,a){pv("axisPointer",a)},e.prototype.dispose=function(r,a){pv("axisPointer",a)},e.type="axisPointer",e})(Dt);function Wx(t,e){var r=[],a=t.seriesIndex,n;if(a==null||!(n=e.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=Za(i,t);if(o==null||o<0||W(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),p=l.getOtherAxis(u),c=p.dim,f=u.dim,h=c==="x"||c==="radius"?1:0,d=i.mapDimension(f),v=[];v[h]=i.get(d,o),v[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(v)||[]}else r=l.dataToPoint(i.getValues(K(l.dimensions,function(g){return i.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var $x=_e();function PB(t,e,r){var a=t.currTrigger,n=[t.x,t.y],i=t,o=t.dispatchAction||ge(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){lp(n)&&(n=Wx({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=lp(n),u=i.axesInfo,p=s.axesInfo,c=a==="leave"||lp(n),f={},h={},d={list:[],map:{}},v={showPointer:ze(TB,h),showTooltip:ze(CB,d)};A(s.coordSysMap,function(g,y){var b=l||g.containPoint(n);A(s.coordSysAxesInfo[y],function(k,w){var _=k.axis,x=MB(u,k);if(!c&&b&&(!u||x)){var T=x&&x.value;T==null&&!l&&(T=_.pointToData(n)),T!=null&&Yx(k,T,v,!1,f)}})});var m={};return A(p,function(g,y){var b=g.linkGroup;b&&!h[y]&&A(b.axesInfo,function(k,w){var _=h[w];if(k!==g&&_){var x=_.value;b.mapper&&(x=g.axis.scale.parse(b.mapper(x,Kx(k),Kx(g)))),m[g.key]=x}})}),A(m,function(g,y){Yx(p[y],g,v,!0,f)}),DB(h,p,f),AB(d,n,t,o),LB(p,o,r),f}}function Yx(t,e,r,a,n){var i=t.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=SB(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&H(n,s[0]),!a&&t.snap&&i.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function SB(t,e){var r=e.axis,a=r.dim,n=t,i=[],o=Number.MAX_VALUE,s=-1;return A(e.seriesModels,function(l,u){var p=l.getData().mapDimensionsAll(a),c,f;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(p,t,r);f=h.dataIndices,c=h.nestestValue}else{if(f=l.indicesOfNearest(a,p[0],t,r.type==="category"?.5:null),!f.length)return;c=l.getData().get(p[0],f[0])}if(Ft(c)){var d=t-c,v=Math.abs(d);v<=o&&((v<o||d>=0&&s<0)&&(o=v,s=d,n=c,i.length=0),A(f,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:n}}function TB(t,e,r,a){t[e.key]={value:r,payloadBatch:a}}function CB(t,e,r,a){var n=r.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=os(l),p=t.map[u];p||(p=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(p)),p.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function DB(t,e,r){var a=r.axesInfo=[];A(e,function(n,i){var o=n.axisPointerModel.option,s=t[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function AB(t,e,r,a){if(lp(e)||!t.list.length){a({type:"hideTip"});return}var n=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:t.list})}function LB(t,e,r){var a=r.getZr(),n="axisPointerLastHighlights",i=$x(a)[n]||{},o=$x(a)[n]={};A(t,function(p,c){var f=p.axisPointerModel.option;f.status==="show"&&p.triggerEmphasis&&A(f.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(p){return{seriesIndex:p.seriesIndex,dataIndex:p.dataIndex}}A(i,function(p,c){!o[c]&&l.push(u(p))}),A(o,function(p,c){!i[c]&&s.push(u(p))}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function MB(t,e){for(var r=0;r<(t||[]).length;r++){var a=t[r];if(e.axis.dim===a.axisDim&&e.axis.model.componentIndex===a.axisIndex)return a}}function Kx(t){var e=t.axis.model,r={},a=r.axisDim=t.axis.dim;return r.axisIndex=r[a+"AxisIndex"]=e.componentIndex,r.axisName=r[a+"AxisName"]=e.name,r.axisId=r[a+"AxisId"]=e.id,r}function lp(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function Xx(t){Px.registerAxisPointerClass("CartesianAxisPointer",vB),t.registerComponentModel(mB),t.registerComponentView(xB),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!W(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=bR(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},PB)}function EB(t){cr(Dx),cr(Xx)}function IB(t,e){var r=lu(e.get("padding")),a=e.getItemStyle(["color","opacity"]);a.fill=e.get("backgroundColor");var n=new Ie({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:a,silent:!0,z2:-1});return n}var OB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:$.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:$.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:$.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:$.color.tertiary,fontSize:14}},e})(ke);function qx(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function jx(t){if(se.domSupported){for(var e=document.documentElement.style,r=0,a=t.length;r<a;r++)if(t[r]in e)return t[r]}}var Zx=jx(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),RB=jx(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Qx(t,e){if(!t)return e;e=Zb(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function BB(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?r[e]:null}var NB=Qx(RB,"transition"),cv=Qx(Zx,"transform"),FB="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(se.transform3dSupported?"will-change:transform;":"");function zB(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function HB(t,e,r){if(!q(r)||r==="inside")return"";var a=t.get("backgroundColor"),n=t.get("borderWidth");e=pn(e);var i=zB(r),o=Math.max(Math.round(n)*1.5,6),s="",l=cv+":",u;fe(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var p=u*Math.PI/180,c=o+n,f=c*Math.abs(Math.cos(p))+c*Math.abs(Math.sin(p)),h=Math.round(((f-Math.SQRT2*n)/2+Math.SQRT2*n-(f-c)/2)*100)/100;s+=";"+i+":-"+h+"px";var d=e+" solid "+n+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'<div style="'+v.join("")+'"></div>'}function VB(t,e,r){var a="cubic-bezier(0.23,1,0.32,1)",n="",i="";return r&&(n=" "+t/2+"s "+a,i="opacity"+n+",visibility"+n),e||(n=" "+t+"s "+a,i+=(i.length?",":"")+(se.transformSupported?""+cv+n:",left"+n+",top"+n)),NB+":"+i}function Jx(t,e,r){var a=t.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!se.transformSupported)return r?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=se.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return r?"top:0;left:0;"+cv+":"+o+";":[["top",0],["left",0],[Zx,o]]}function UB(t){var e=[],r=t.get("fontSize"),a=t.getTextColor();a&&e.push("color:"+a),e.push("font:"+t.getFont());var n=Z(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+n+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),A(["decoration","align"],function(u){var p=t.get(u);p&&e.push("text-"+u+":"+p)}),e.join(";")}function GB(t,e,r,a){var n=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),p=t.get("shadowOffsetY"),c=t.getModel("textStyle"),f=gk(t,"html"),h=u+"px "+p+"px "+s+"px "+l;return n.push("box-shadow:"+h),e&&i>0&&n.push(VB(i,r,a)),o&&n.push("background-color:"+o),A(["width","color","radius"],function(d){var v="border-"+d,m=Zb(v),g=t.get(m);g!=null&&n.push(v+":"+g+(d==="color"?"":"px"))}),n.push(UB(c)),f!=null&&n.push("padding:"+lu(f).join("px ")+"px"),n.join(";")+";"}function eP(t,e,r,a,n){var i=e&&e.painter;if(r){var o=i&&i.getViewportRoot();o&&mL(t,o,r,a,n)}else{t[0]=a,t[1]=n;var s=i&&i.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var WB=(function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,se.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=e.getZr(),i=r.appendTo,o=i&&(q(i)?document.querySelector(i):Wi(i)?i:re(i)&&i(e.getDom()));eP(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(a),this._api=e,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,p=n.painter.getViewportRoot();Kt(p,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),a=BB(r,"position"),n=r.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=FB+GB(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+Jx(i[0],i[1],!0)+("border-color:"+pn(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,a,n,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(q(i)&&a.get("trigger")==="item"&&!qx(a)&&(s=HB(a,n,i)),q(e))o.innerHTML=e+s;else if(e){o.innerHTML="",W(e)||(e=[e]);for(var l=0;l<e.length;l++)Wi(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var a=this._styleCoord;if(eP(a,this._zr,this._container,e,r),a[0]!=null&&a[1]!=null){var n=this.el.style,i=Jx(a[0],a[1]);A(i,function(o){n[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",se.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ge(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;yL(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var a=r.parentNode;a&&a.removeChild(r)}this.el=this._container=null},t})(),$B=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),rP(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,a,n,i){var o=this;J(e)&&kt(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new Oe({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:gk(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),A(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),A(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),a=tP(e.style);return[r.width+a.left+a.right,r.height+a.top+a.bottom]},t.prototype.moveTo=function(e,r){var a=this.el;if(a){var n=this._styleCoord;rP(n,this._zr,e,r),e=n[0],r=n[1];var i=a.style,o=Sa(i.borderWidth||0),s=tP(i);a.x=e+o+s.left,a.y=r+o+s.top,a.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ge(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function Sa(t){return Math.max(0,t)}function tP(t){var e=Sa(t.shadowBlur||0),r=Sa(t.shadowOffsetX||0),a=Sa(t.shadowOffsetY||0);return{left:Sa(e-r),right:Sa(e+r),top:Sa(e-a),bottom:Sa(e+a)}}function rP(t,e,r,a){t[0]=r,t[1]=a,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var YB=new Ie({shape:{x:-1,y:-1,width:2,height:2}}),KB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,a){if(!(se.node||!a.getDom())){var n=r.getComponent("tooltip"),i=this._renderMode=YD(n.get("renderMode"));this._tooltipContent=i==="richText"?new $B(a):new WB(a,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(r,a,n){if(!(se.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=a,this._api=n;var i=this._tooltipContent;i.update(r),i.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Q1(this,"_updatePosition",50,"fixRate"):id(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,a=r.get("triggerOn");Gx("itemTooltip",this._api,ge(function(n,i,o){a!=="none"&&(a.indexOf(n)>=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,a=this._ecModel,n=this._api,i=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(r,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,a,n,i){if(!(i.from===this.uid||se.node||!n.getDom())){var o=aP(i,n);this._ticket="";var s=i.dataByCoordSys,l=ZB(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var p=YB;p.x=i.x,p.y=i.y,p.update(),ce(p).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:p},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(r,a,n,i))return;var c=Wx(i,a),f=c.point[0],h=c.point[1];f!=null&&h!=null&&this._tryShow({offsetX:f,offsetY:h,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(r,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,i.from!==this.uid&&this._hide(aP(i,n))},e.prototype._manuallyAxisShowTip=function(r,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var p=u.getData(),c=ps([p.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(r,a){var n=r.target,i=this._tooltipModel;if(i){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(n){var s=ce(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;ns(n,function(p){if(p.tooltipDisabled)return l=u=null,!0;l||u||(ce(p).dataIndex!=null?l=p:ce(p).tooltipConfig!=null&&(u=p))},!0),l?this._showSeriesItemTooltip(r,l,a):u?this._showComponentItemTooltip(r,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(a)}},e.prototype._showOrMove=function(r,a){var n=r.get("showDelay");a=ge(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},e.prototype._showAxisTooltip=function(r,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=ps([a.tooltipOption],i),l=this._renderMode,u=[],p=fn("section",{blocks:[],noHeader:!0}),c=[],f=new Ah;A(r,function(y){A(y.dataByAxis,function(b){var k=n.getComponent(b.axisDim+"Axis",b.axisIndex),w=b.value,_=k.axis,x=_.scale.parse(w);if(!(!k||w==null)){var T=zx(w,_,n,b.seriesDataIndices,b.valueLabelOpt),C=fn("section",{header:T,noHeader:!br(T),sortBlocks:!0,blocks:[]});p.blocks.push(C),A(b.seriesDataIndices,function(P){var S=n.getSeriesByIndex(P.seriesIndex),L=P.dataIndexInside,D=S.getDataParams(L);if(!(D.dataIndex<0)){D.axisDim=b.axisDim,D.axisIndex=b.axisIndex,D.axisType=b.axisType,D.axisId=b.axisId,D.axisValue=Pu(k.axis,{value:x}),D.axisValueLabel=T,D.marker=f.makeTooltipMarker("item",pn(D.color),l);var M=rk(S.formatTooltip(L,!0,null)),I=M.frag;if(I){var E=ps([S],i).get("valueFormatter");C.blocks.push(E?H({valueFormatter:E},I):I)}M.text&&c.push(M.text),u.push(D)}})}})}),p.blocks.reverse(),c.reverse();var h=a.position,d=s.get("order"),v=hk(p,f,l,d,n.get("useUTC"),s.get("textStyle"));v&&c.unshift(v);var m=l==="richText"?`
|
|
39
39
|
|
|
40
40
|
`:"<br/>",g=c.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],h,null,f)})},e.prototype._showSeriesItemTooltip=function(r,a,n){var i=this._ecModel,o=ce(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,p=o.dataIndex,c=o.dataType,f=u.getData(c),h=this._renderMode,d=r.positionDefault,v=ps([f.getItemModel(p),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),m=v.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(p,c),y=new Ah;g.marker=y.makeTooltipMarker("item",pn(g.color),h);var b=rk(u.formatTooltip(p,!1,c)),k=v.get("order"),w=v.get("valueFormatter"),_=b.frag,x=_?hk(w?H({valueFormatter:w},_):_,y,h,k,i.get("useUTC"),v.get("textStyle")):b.text,T="item_"+u.name+"_"+p;this._showOrMove(v,function(){this._showTooltipContent(v,x,g,T,r.offsetX,r.offsetY,r.position,r.target,y)}),n({type:"showTip",dataIndexInside:p,dataIndex:f.getRawIndex(p),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,a,n){var i=this._renderMode==="html",o=ce(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(q(l)){var p=l;l={content:p,formatter:p},u=!0}u&&i&&l.content&&(l=le(l),l.content=pt(l.content));var c=[l],f=this._ecModel.getComponent(o.componentMainType,o.componentIndex);f&&c.push(f),c.push({formatter:l.content});var h=r.positionDefault,d=ps(c,this._tooltipModel,h?{position:h}:null),v=d.get("content"),m=Math.random()+"",g=new Ah;this._showOrMove(d,function(){var y=le(d.get("formatterParams")||{});this._showTooltipContent(d,v,y,m,r.offsetX,r.offsetY,r.position,a,g)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,a,n,i,o,s,l,u,p){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var f=r.get("formatter");l=l||r.get("position");var h=a,d=this._getNearestPoint([o,s],n,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),v=d.color;if(f)if(q(f)){var m=r.ecModel.get("useUTC"),g=W(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=f,y&&(h=su(g.axisValue,h,m)),h=Jb(h,n,!0)}else if(re(f)){var b=ge(function(k,w){k===this._ticket&&(c.setContent(w,p,r,v,l),this._updatePosition(r,l,o,s,c,n,u))},this);this._ticket=i,h=f(n,i,b)}else h=f;c.setContent(h,p,r,v,l),c.show(r,v),this._updatePosition(r,l,o,s,c,n,u)}},e.prototype._getNearestPoint=function(r,a,n,i,o){if(n==="axis"||W(a))return{color:i||o};if(!W(a))return{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(r,a,n,i,o,s,l){var u=this._api.getWidth(),p=this._api.getHeight();a=a||r.get("position");var c=o.getSize(),f=r.get("align"),h=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),re(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,p],contentSize:c.slice()})),W(a))n=ee(a[0],u),i=ee(a[1],p);else if(J(a)){var v=a;v.width=c[0],v.height=c[1];var m=Yr(v,{width:u,height:p});n=m.x,i=m.y,f=null,h=null}else if(q(a)&&l){var g=jB(a,d,c,r.get("borderWidth"));n=g[0],i=g[1]}else{var g=XB(n,i,o,u,p,f?null:20,h?null:20);n=g[0],i=g[1]}if(f&&(n-=nP(f)?c[0]/2:f==="right"?c[0]:0),h&&(i-=nP(h)?c[1]/2:h==="bottom"?c[1]:0),qx(r)){var g=qB(n,i,o,u,p);n=g[0],i=g[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(r,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===r.length;return o&&A(n,function(s,l){var u=s.dataByAxis||[],p=r[l]||{},c=p.dataByAxis||[];o=o&&u.length===c.length,o&&A(u,function(f,h){var d=c[h]||{},v=f.seriesDataIndices||[],m=d.seriesDataIndices||[];o=o&&f.value===d.value&&f.axisType===d.axisType&&f.axisId===d.axisId&&v.length===m.length,o&&A(v,function(g,y){var b=m[y];o=o&&g.seriesIndex===b.seriesIndex&&g.dataIndex===b.dataIndex}),i&&A(f.seriesDataIndices,function(g){var y=g.seriesIndex,b=a[y],k=i[y];b&&k&&k.data!==b.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=a,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,a){se.node||!a.getDom()||(id(this,"_updatePosition"),this._tooltipContent.dispose(),pv("itemTooltip",a),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(Dt);function ps(t,e,r){var a=e.ecModel,n;r?(n=new Ae(r,a,a),n=new Ae(e.option,n,a)):n=e;for(var i=t.length-1;i>=0;i--){var o=t[i];o&&(o instanceof Ae&&(o=o.get("tooltip",!0)),q(o)&&(o={formatter:o}),o&&(n=new Ae(o,n,a)))}return n}function aP(t,e){return t.dispatchAction||ge(e.dispatchAction,e)}function XB(t,e,r,a,n,i,o){var s=r.getSize(),l=s[0],u=s[1];return i!=null&&(t+l+i+2>a?t-=l+i:t+=i),o!=null&&(e+u+o>n?e-=u+o:e+=o),[t,e]}function qB(t,e,r,a,n){var i=r.getSize(),o=i[0],s=i[1];return t=Math.min(t+o,a)-o,e=Math.min(e+s,n)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function jB(t,e,r,a){var n=r[0],i=r[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,p=e.height;switch(t){case"inside":s=e.x+u/2-n/2,l=e.y+p/2-i/2;break;case"top":s=e.x+u/2-n/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+p+o;break;case"left":s=e.x-n-o,l=e.y+p/2-i/2;break;case"right":s=e.x+u+o,l=e.y+p/2-i/2}return[s,l]}function nP(t){return t==="center"||t==="middle"}function ZB(t,e,r){var a=cf(t).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=yo(e,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var p=ce(u).tooltipConfig;if(p&&p.name===t.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function QB(t){cr(Xx),t.registerComponentModel(OB),t.registerComponentView(KB),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},qe),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},qe)}var JB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:$.size.m,backgroundColor:$.color.transparent,borderColor:$.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:$.color.primary},subtextStyle:{fontSize:12,color:$.color.quaternary}},e})(ke),eN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,a,n){if(this.group.removeAll(),!!r.get("show")){var i=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Z(r.get("textBaseline"),r.get("textVerticalAlign")),p=new Oe({style:Gt(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=p.getBoundingRect(),f=r.get("subtext"),h=new Oe({style:Gt(s,{text:f,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),v=r.get("sublink"),m=r.get("triggerEvent",!0);p.silent=!d&&!m,h.silent=!v&&!m,d&&p.on("click",function(){ek(d,"_"+r.get("target"))}),v&&h.on("click",function(){ek(v,"_"+r.get("subtarget"))}),ce(p).eventData=ce(h).eventData=m?{componentType:"title",componentIndex:r.componentIndex}:null,i.add(p),f&&i.add(h);var g=i.getBoundingRect(),y=r.getBoxLayoutParams();y.width=g.width,y.height=g.height;var b=pi(r,n),k=Yr(y,b.refContainer,r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?k.x+=k.width:l==="center"&&(k.x+=k.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?k.y+=k.height:u==="middle"&&(k.y+=k.height/2),u=u||"top"),i.x=k.x,i.y=k.y,i.markRedraw();var w={align:l,verticalAlign:u};p.setStyle(w),h.setStyle(w),g=i.getBoundingRect();var _=k.margin,x=r.getItemStyle(["color","opacity"]);x.fill=r.get("backgroundColor");var T=new Ie({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:r.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(T)}},e.type="title",e})(Dt);function tN(t){t.registerComponentModel(JB),t.registerComponentView(eN)}var rN=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},fv=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,a,n){this.mergeDefaultAndTheme(r,n),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,a){t.prototype.mergeOption.call(this,r,a),this._updateSelector(r)},e.prototype._updateSelector=function(r){var a=r.selector,n=this.ecModel;a===!0&&(a=r.selector=["all","inverse"]),W(a)&&A(a,function(i,o){q(i)&&(i={type:i}),a[o]=Pe(i,rN(n,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<r.length;n++){var i=r[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var a=[],n=[];r.eachRawSeries(function(l){var u=l.name;n.push(u);var p;if(l.legendVisualProvider){var c=l.legendVisualProvider,f=c.getAllNames();r.isSeriesFiltered(l)||(n=n.concat(f)),f.length?a=a.concat(f):p=!0}else p=!0;p&&uf(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=ae(),s=K(i,function(l){return(q(l)||be(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ae(l,this,this.ecModel))},this);this._data=Xe(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var a=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;A(i,function(o){a[o.get("name")]=!1})}a[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var a=this.option.selected;a.hasOwnProperty(r)||(a[r]=!0),this[a[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,a=this.option.selected;A(r,function(n){a[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,a=this.option.selected;A(r,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},e.prototype.isSelected=function(r){var a=this.option.selected;return!(a.hasOwnProperty(r)&&!a[r])&&fe(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:$.size.m,align:"auto",backgroundColor:$.color.transparent,borderColor:$.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:$.color.disabled,inactiveBorderColor:$.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:$.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:$.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:$.color.tertiary,borderWidth:1,borderColor:$.color.border},emphasis:{selectorLabel:{show:!0,color:$.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(ke),Ci=ze,hv=A,up=Me,iP=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new up),this.group.add(this._selectorGroup=new up),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,a,n,l,s,u);var p=pi(r,n).refContainer,c=r.getBoxLayoutParams(),f=r.get("padding"),h=Yr(c,p,f),d=this.layoutInner(r,o,h,i,l,u),v=Yr(pe({width:d.width,height:d.height},c),p,f);this.group.x=v.x-d.x,this.group.y=v.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=IB(d,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,a,n,i,o,s,l){var u=this.getContentGroup(),p=ae(),c=a.get("selectedMode"),f=a.get("triggerEvent"),h=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),hv(a.getData(),function(d,v){var m=this,g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
|
|
41
41
|
`)){var y=new up;y.newline=!0,u.add(y);return}var b=n.getSeriesByName(g)[0];if(!p.get(g))if(b){var k=b.getData(),w=k.getVisual("legendLineStyle")||{},_=k.getVisual("legendIcon"),x=k.getVisual("style"),T=this._createItem(b,g,v,d,a,r,w,x,_,c,i);T.on("click",Ci(oP,g,null,i,h)).on("mouseover",Ci(dv,b.name,null,i,h)).on("mouseout",Ci(vv,b.name,null,i,h)),n.ssr&&T.eachChild(function(C){var P=ce(C);P.seriesIndex=b.seriesIndex,P.dataIndex=v,P.ssrType="legend"}),f&&T.eachChild(function(C){m.packEventData(C,a,b,v,g)}),p.set(g,!0)}else n.eachRawSeries(function(C){var P=this;if(!p.get(g)&&C.legendVisualProvider){var S=C.legendVisualProvider;if(!S.containName(g))return;var L=S.indexOfName(g),D=S.getItemVisual(L,"style"),M=S.getItemVisual(L,"legendIcon"),I=er(D.fill);I&&I[3]===0&&(I[3]=.2,D=H(H({},D),{fill:ao(I,"rgba")}));var E=this._createItem(C,g,v,d,a,r,{},D,M,c,i);E.on("click",Ci(oP,null,g,i,h)).on("mouseover",Ci(dv,null,g,i,h)).on("mouseout",Ci(vv,null,g,i,h)),n.ssr&&E.eachChild(function(O){var R=ce(O);R.seriesIndex=C.seriesIndex,R.dataIndex=v,R.ssrType="legend"}),f&&E.eachChild(function(O){P.packEventData(O,a,C,v,g)}),p.set(g,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype.packEventData=function(r,a,n,i,o){var s={componentType:"legend",componentIndex:a.componentIndex,dataIndex:i,value:o,seriesIndex:n.seriesIndex};ce(r).eventData=s},e.prototype._createSelector=function(r,a,n,i,o){var s=this.getSelectorGroup();hv(r,function(u){var p=u.type,c=new Oe({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:p==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(c);var f=a.getModel("selectorLabel"),h=a.getModel(["emphasis","selectorLabel"]);an(c,{normal:f,emphasis:h},{defaultText:u.title}),Tf(c)})},e.prototype._createItem=function(r,a,n,i,o,s,l,u,p,c,f){var h=r.visualDrawType,d=o.get("itemWidth"),v=o.get("itemHeight"),m=o.isSelected(a),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),b=i.get("icon");p=b||p||"roundRect";var k=aN(p,i,l,u,h,m,f),w=new up,_=i.getModel("textStyle");if(re(r.getLegendIcon)&&(!b||b==="inherit"))w.add(r.getLegendIcon({itemWidth:d,itemHeight:v,icon:p,iconRotate:g,itemStyle:k.itemStyle,lineStyle:k.lineStyle,symbolKeepAspect:y}));else{var x=b==="inherit"&&r.getData().getVisual("symbol")?g==="inherit"?r.getData().getVisual("symbolRotate"):g:0;w.add(nN({itemWidth:d,itemHeight:v,icon:p,iconRotate:x,itemStyle:k.itemStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,C=s,P=o.get("formatter"),S=a;q(P)&&P?S=P.replace("{name}",a??""):re(P)&&(S=P(a));var L=m?_.getTextColor():i.get("inactiveColor");w.add(new Oe({style:Gt(_,{text:S,x:T,y:v/2,fill:L,align:C,verticalAlign:"middle"},{inheritColor:L})}));var D=new Ie({shape:w.getBoundingRect(),style:{fill:"transparent"}}),M=i.getModel("tooltip");return M.get("show")&&Ul({el:D,componentModel:o,itemName:a,itemTooltipOption:M.option}),w.add(D),w.eachChild(function(I){I.silent=!0}),D.silent=!c,this.getContentGroup().add(w),Tf(w),w.__legendDataIndex=n,w},e.prototype.layoutInner=function(r,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Bo(r.get("orient"),l,r.get("itemGap"),n.width,n.height);var p=l.getBoundingRect(),c=[-p.x,-p.y];if(u.markRedraw(),l.markRedraw(),o){Bo("horizontal",u,r.get("selectorItemGap",!0));var f=u.getBoundingRect(),h=[-f.x,-f.y],d=r.get("selectorButtonGap",!0),v=r.getOrient().index,m=v===0?"width":"height",g=v===0?"height":"width",y=v===0?"y":"x";s==="end"?h[v]+=p[m]+d:c[v]+=f[m]+d,h[1-v]+=p[g]/2-f[g]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var b={x:0,y:0};return b[m]=p[m]+d+f[m],b[g]=Math.max(p[g],f[g]),b[y]=Math.min(0,f[y]+h[1-v]),b}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(Dt);function aN(t,e,r,a,n,i,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),hv(m,function(y,b){m[b]==="inherit"&&(m[b]=g[b])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),p=t.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?a.decal:Bd(c,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[p]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:r).opacity),s(u,a);var f=e.getModel("lineStyle"),h=f.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),h.stroke==="auto"&&(h.stroke=a.fill),!i){var d=e.get("inactiveBorderWidth"),v=u[p];u.lineWidth=d==="auto"?a.lineWidth>0&&v?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function nN(t){var e=t.icon||"roundRect",r=Ir(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=$.color.neutral00,r.style.lineWidth=2),r}function oP(t,e,r,a){vv(t,e,r,a),r.dispatchAction({type:"legendToggleSelect",name:t??e}),dv(t,e,r,a)}function dv(t,e,r,a){r.usingTHL()||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:a})}function vv(t,e,r,a){r.usingTHL()||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:a})}function cs(t,e,r){var a=t==="allSelect"||t==="inverseSelect",n={},i=[];r.eachComponent({mainType:"legend",query:e},function(s){a?s[t]():s[t](e.name),sP(s,n),i.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){A(n,function(l,u){s[l?"select":"unSelect"](u)}),sP(s,o)}),a?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function sP(t,e){var r=e||{};return A(t.getData(),function(a){var n=a.get("name");if(!(n===`
|
|
42
42
|
`||n==="")){var i=t.isSelected(n);st(r,n)?r[n]=r[n]&&i:r[n]=i}}),r}function iN(t){t.registerAction("legendToggleSelect","legendselectchanged",ze(cs,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",ze(cs,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",ze(cs,"inverseSelect")),t.registerAction("legendSelect","legendselected",ze(cs,"select")),t.registerAction("legendUnSelect","legendunselected",ze(cs,"unSelect"))}var oN=vf(sN);function sN(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var a=0;a<e.length;a++)if(!e[a].isSelected(r.name))return!1;return!0})}function lP(t){t.registerComponentModel(fv),t.registerComponentView(iP),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,oN),t.registerSubTypeDefaulter("legend",function(){return"plain"}),iN(t)}var lN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,a,n){var i=zo(r);t.prototype.init.call(this,r,a,n),uP(this,r,i)},e.prototype.mergeOption=function(r,a){t.prototype.mergeOption.call(this,r,a),uP(this,this.option,r)},e.type="legend.scroll",e.defaultOption=Rb(fv.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:$.color.accent50,pageIconInactiveColor:$.color.accent10,pageIconSize:15,pageTextStyle:{color:$.color.tertiary},animationDurationUpdate:800}),e})(fv);function uP(t,e,r){var a=t.getOrient(),n=[1,1];n[a.index]=0,va(e,r,{type:"box",ignoreSize:!!n})}var pP=Me,gv=["width","height"],mv=["x","y"],uN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new pP),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new pP)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,a,n,i,o,s,l){var u=this;t.prototype.renderInner.call(this,r,a,n,i,o,s,l);var p=this._controllerGroup,c=a.get("pageIconSize",!0),f=W(c)?c:[c,c];d("pagePrev",0);var h=a.getModel("pageTextStyle");p.add(new Oe({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(v,m){var g=v+"DataIndex",y=Vf(a.get("pageIcons",!0)[a.getOrient().name][m],{onclick:ge(u._pageGo,u,g,a,i)},{x:-f[0]/2,y:-f[1]/2,width:f[0],height:f[1]});y.name=v,p.add(y)}},e.prototype.layoutInner=function(r,a,n,i,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,p=gv[u],c=mv[u],f=gv[1-u],h=mv[1-u];o&&Bo("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),v=l.getBoundingRect(),m=[-v.x,-v.y],g=le(n);o&&(g[p]=n[p]-v[p]-d);var y=this._layoutContentAndController(r,i,g,u,p,f,h,c);if(o){if(s==="end")m[u]+=y[p]+d;else{var b=v[p]+d;m[u]-=b,y[c]-=b}y[p]+=v[p]+d,m[1-u]+=y[h]+y[f]/2-v[f]/2,y[f]=Math.max(y[f],v[f]),y[h]=Math.min(y[h],v[h]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,a,n,i,o,s,l,u){var p=this.getContentGroup(),c=this._containerGroup,f=this._controllerGroup;Bo(r.get("orient"),p,r.get("itemGap"),i?n.width:null,i?null:n.height),Bo("horizontal",f,r.get("pageButtonItemGap",!0));var h=p.getBoundingRect(),d=f.getBoundingRect(),v=this._showController=h[o]>n[o],m=[-h.x,-h.y];a||(m[i]=p[u]);var g=[0,0],y=[-d.x,-d.y],b=Z(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var k=r.get("pageButtonPosition",!0);k==="end"?y[i]+=n[o]-d[o]:g[i]+=d[o]+b}y[1-i]+=h[s]/2-d[s]/2,p.setPosition(m),c.setPosition(g),f.setPosition(y);var w={x:0,y:0};if(w[o]=v?n[o]:h[o],w[s]=Math.max(h[s],d[s]),w[l]=Math.min(0,d[l]+y[1-i]),c.__rectSize=n[o],v){var _={x:0,y:0};_[o]=Math.max(n[o]-d[o]-b,0),_[s]=w[s],c.setClipPath(new Ie({shape:_})),c.__rectSize=_[o]}else f.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(r);return x.pageIndex!=null&&Re(p,{x:x.contentPosition[0],y:x.contentPosition[1]},v?r:null),this._updatePageInfoView(r,x),w},e.prototype._pageGo=function(r,a,n){var i=this._getPageInfo(a)[r];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(r,a){var n=this._controllerGroup;A(["pagePrev","pageNext"],function(p){var c=p+"DataIndex",f=a[c]!=null,h=n.childOfName(p);h&&(h.setStyle("fill",f?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=f?"pointer":"default")});var i=n.childOfName("pageText"),o=r.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",q(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var a=r.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=r.getOrient().index,s=gv[o],l=mv[o],u=this._findTargetItemIndex(a),p=n.children(),c=p[u],f=p.length,h=f?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var v=k(c);d.contentPosition[o]=-v.s;for(var m=u+1,g=v,y=v,b=null;m<=f;++m)b=k(p[m]),(!b&&y.e>g.s+i||b&&!w(b,g.s))&&(y.i>g.i?g=y:g=b,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=b;for(var m=u-1,g=v,y=v,b=null;m>=-1;--m)b=k(p[m]),(!b||!w(y,b.s))&&g.i<y.i&&(y=g,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=b;return d;function k(_){if(_){var x=_.getBoundingRect(),T=x[l]+_[l];return{s:T,e:T+x[s],i:_.__legendDataIndex}}}function w(_,x){return _.e>=x&&_.s<=x+i}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===r&&(a=s)}),a??i},e.type="legend.scroll",e})(iP);function pN(t){t.registerAction("legendScroll","legendscroll",function(e,r){var a=e.scrollDataIndex;a!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(a)})})}function cN(t){cr(lP),t.registerComponentModel(lN),t.registerComponentView(uN),pN(t)}function fN(t){cr(lP),cr(cN)}var hN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.prototype.init=function(r,a,n){t.prototype.init.call(this,r,a,n),this._sourceManager=new ik(this),ok(this)},e.prototype.mergeOption=function(r,a){t.prototype.mergeOption.call(this,r,a),ok(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:ar},e})(ke),dN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.type="dataset",e})(Dt);function vN(t){t.registerComponentModel(hN),t.registerComponentView(dN)}var yv=Math.sin,bv=Math.cos,cP=Math.PI,kn=Math.PI*2,gN=180/cP,fP=(function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,a,n,i,o){this._add("C",e,r,a,n,i,o)},t.prototype.quadraticCurveTo=function(e,r,a,n){this._add("Q",e,r,a,n)},t.prototype.arc=function(e,r,a,n,i,o){this.ellipse(e,r,a,a,0,n,i,o)},t.prototype.ellipse=function(e,r,a,n,i,o,s,l){var u=s-o,p=!l,c=Math.abs(u),f=na(c-kn)||(p?u>=kn:-u>=kn),h=u>0?u%kn:u%kn+kn,d=!1;f?d=!0:na(c)?d=!1:d=h>=cP==!!p;var v=e+a*bv(o),m=r+n*yv(o);this._start&&this._add("M",v,m);var g=Math.round(i*gN);if(f){var y=1/this._p,b=(p?1:-1)*(kn-y);this._add("A",a,n,g,1,+p,e+a*bv(o+b),r+n*yv(o+b)),y>.01&&this._add("A",a,n,g,0,+p,v,m)}else{var k=e+a*bv(s),w=r+n*yv(s);this._add("A",a,n,g,+d,+p,k,w)}},t.prototype.rect=function(e,r,a,n){this._add("M",e,r),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,a,n,i,o,s,l,u){for(var p=[],c=this._p,f=1;f<arguments.length;f++){var h=arguments[f];if(isNaN(h)){this._invalid=!0;return}p.push(Math.round(h*c)/c)}this._d.push(e+p.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t})(),kv="none",mN=Math.round;function yN(t){var e=t.fill;return e!=null&&e!==kv}function bN(t){var e=t.stroke;return e!=null&&e!==kv}var wv=["lineCap","miterLimit","lineJoin"],kN=K(wv,function(t){return"stroke-"+t.toLowerCase()});function wN(t,e,r,a){var n=e.opacity==null?1:e.opacity;if(r instanceof Bt){t("opacity",n);return}if(yN(e)){var i=no(e.fill);t("fill",i.color);var o=e.fillOpacity!=null?e.fillOpacity*i.opacity*n:i.opacity*n;o<1&&t("fill-opacity",o)}else t("fill",kv);if(bN(e)){var s=no(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?r.getLineScale():1,u=l?(e.lineWidth||0)/l:0,p=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*n:s.opacity*n,c=e.strokeFirst;if(u!==1&&t("stroke-width",u),c&&t("paint-order",c?"stroke":"fill"),p<1&&t("stroke-opacity",p),e.lineDash){var f=Ed(r),h=f[0],d=f[1];h&&(d=mN(d||0),t("stroke-dasharray",h.join(",")),(d||a)&&t("stroke-dashoffset",d))}for(var v=0;v<wv.length;v++){var m=wv[v];if(e[m]!==bl[m]){var g=e[m]||bl[m];g&&t(kN[v],g)}}}}var hP="http://www.w3.org/2000/svg",dP="http://www.w3.org/1999/xlink",_N="http://www.w3.org/2000/xmlns/",xN="http://www.w3.org/XML/1998/namespace",vP="ecmeta_";function gP(t){return document.createElementNS(hP,t)}function We(t,e,r,a,n){return{tag:t,attrs:r||{},children:a,text:n,key:e}}function PN(t,e){var r=[];if(e)for(var a in e){var n=e[a],i=a;n!==!1&&(n!==!0&&n!=null&&(i+='="'+n+'"'),r.push(i))}return"<"+t+" "+r.join(" ")+">"}function SN(t){return"</"+t+">"}function _v(t,e){e=e||{};var r=e.newline?`
|
|
43
43
|
`:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return PN(o,s)+(o!=="style"?pt(l):l||"")+(i?""+r+K(i,function(u){return a(u)}).join(r)+r:"")+SN(o)}return a(t)}function TN(t,e,r){r=r||{};var a=r.newline?`
|
|
44
|
-
`:"",n=" {"+a,i=a+"}",o=K(he(t),function(l){return l+n+K(he(t[l]),function(u){return u+":"+t[l][u]+";"}).join(a)+i}).join(a),s=K(he(e),function(l){return"@keyframes "+l+n+K(he(e[l]),function(u){return u+n+K(he(e[l][u]),function(p){var c=e[l][u][p];return p==="d"&&(c='path("'+c+'")'),p+":"+c+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function xv(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function mP(t,e,r,a){return We("svg","root",{width:t,height:e,xmlns:hP,"xmlns:xlink":dP,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+t+" "+e:!1},r)}var CN=0;function yP(){return CN++}var bP={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},wn="transform-origin";function DN(t,e,r){var a=H({},t.shape);H(a,e),t.buildPath(r,a);var n=new fP;return n.reset(jm(t)),r.rebuildPath(n,1),n.generateStr(),n.getStr()}function AN(t,e){var r=e.originX,a=e.originY;(r||a)&&(t[wn]=r+"px "+a+"px")}var LN={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function kP(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function MN(t,e,r){var a=t.shape.paths,n={},i,o;if(A(a,function(l){var u=xv(r.zrId);u.animation=!0,pp(l,{},u,!0);var p=u.cssAnims,c=u.cssNodes,f=he(p),h=f.length;if(h){o=f[h-1];var d=p[o];for(var v in d){var m=d[v];n[v]=n[v]||{d:""},n[v].d+=m.d||""}for(var g in c){var y=c[g].animation;y.indexOf(o)>=0&&(i=y)}}}),!!i){e.d=!1;var s=kP(n,r);return i.replace(o,s)}}function wP(t){return q(t)?bP[t]?"cubic-bezier("+bP[t]+")":wc(t)?t:"":""}function pp(t,e,r,a){var n=t.animators,i=n.length,o=[];if(t instanceof C0){var s=MN(t,e,r);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var p=n[u],c=[p.getMaxTime()/1e3+"s"],f=wP(p.getClip().easing),h=p.getDelay();f?c.push(f):c.push("linear"),h&&c.push(h/1e3+"s"),p.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(p)}function v(y){var b=y[1],k=b.length,w={},_={},x={},T="animation-timing-function";function C(Ee,de,Ce){for(var te=Ee.getTracks(),ue=Ee.getMaxTime(),_t=0;_t<te.length;_t++){var Fe=te[_t];if(Fe.needsAnimate()){var fr=Fe.keyframes,xt=Fe.propName;if(Ce&&(xt=Ce(xt)),xt)for(var hr=0;hr<fr.length;hr++){var Ii=fr[hr],dr=Math.round(Ii.time/ue*100)+"%",Pp=wP(Ii.easing),Oi=Ii.rawValue;(q(Oi)||be(Oi))&&(de[dr]=de[dr]||{},de[dr][xt]=Ii.rawValue,Pp&&(de[dr][T]=Pp))}}}}for(var P=0;P<k;P++){var S=b[P],L=S.targetName;L?L==="shape"&&C(S,_):!a&&C(S,w)}for(var D in w){var M={};to(M,t),H(M,w[D]);var I=Zm(M),E=w[D][T];x[D]=I?{transform:I}:{},AN(x[D],M),E&&(x[D][T]=E)}var O,R=!0;for(var D in _){x[D]=x[D]||{};var B=!O,E=_[D][T];B&&(O=new sa);var N=O.len();O.reset(),x[D].d=DN(t,_[D],O);var F=O.len();if(!B&&N!==F){R=!1;break}E&&(x[D][T]=E)}if(!R)for(var D in x)delete x[D].d;if(!a)for(var P=0;P<k;P++){var S=b[P],L=S.targetName;L==="style"&&C(S,x,function(te){return LN[te]})}for(var U=he(x),Y=!0,z,P=1;P<U.length;P++){var j=U[P-1],ne=U[P];if(x[j][wn]!==x[ne][wn]){Y=!1;break}z=x[j][wn]}if(Y&&z){for(var D in x)x[D][wn]&&delete x[D][wn];e[wn]=z}if(Xe(U,function(Ee){return he(x[Ee]).length>0}).length){var De=kP(x,r);return De+" "+y[0]+" both"}}for(var m in l){var s=v(l[m]);s&&o.push(s)}if(o.length){var g=r.zrId+"-cls-"+yP();r.cssNodes["."+g]={animation:o.join(",")},e.class=g}}function EN(t,e,r){if(!t.ignore)if(t.isSilent()){var a={"pointer-events":"none"};_P(a,e,r)}else{var n=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},i=n.fill;if(!i){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||o;l&&(i=Dc(l))}var u=n.lineWidth;if(u){var p=!n.strokeNoScale&&t.transform?t.transform[0]:1;u=u/p}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),_P(a,e,r)}}function _P(t,e,r,a){var n=JSON.stringify(t),i=r.cssStyleCache[n];i||(i=r.zrId+"-cls-"+yP(),r.cssStyleCache[n]=i,r.cssNodes["."+i+":hover"]=t),e.class=e.class?e.class+" "+i:i}var fs=Math.round;function xP(t){return t&&q(t.src)}function PP(t){return t&&re(t.toDataURL)}function Pv(t,e,r,a){wN(function(n,i){var o=n==="fill"||n==="stroke";o&&qm(i)?LP(e,t,n,a):o&&Lc(i)?MP(r,t,n,a):t[n]=i,o&&a.ssr&&i==="none"&&(t["pointer-events"]="visible")},e,r,!1),zN(r,t,a)}function Sv(t,e){var r=dI(e);r&&(r.each(function(a,n){a!=null&&(t[(vP+n).toLowerCase()]=a+"")}),e.isSilent()&&(t[vP+"silent"]="true"))}function SP(t){return na(t[0]-1)&&na(t[1])&&na(t[2])&&na(t[3]-1)}function IN(t){return na(t[4])&&na(t[5])}function Tv(t,e,r){if(e&&!(IN(e)&&SP(e))){var a=1e4;t.transform=SP(e)?"translate("+fs(e[4]*a)/a+" "+fs(e[5]*a)/a+")":PC(e)}}function TP(t,e,r){for(var a=t.points,n=[],i=0;i<a.length;i++)n.push(fs(a[i][0]*r)/r),n.push(fs(a[i][1]*r)/r);e.points=n.join(" ")}function CP(t){return!t.smooth}function ON(t){var e=K(t,function(r){return typeof r=="string"?[r,r]:r});return function(r,a,n){for(var i=0;i<e.length;i++){var o=e[i],s=r[o[0]];s!=null&&(a[o[1]]=fs(s*n)/n)}}}var RN={circle:[ON(["cx","cy","r"])],polyline:[TP,CP],polygon:[TP,CP]};function BN(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function DP(t,e){var r=t.style,a=t.shape,n=RN[t.type],i={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&jm(t)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](a))&&!(o&&BN(t))&&!(l<1)){s=t.type;var p=Math.pow(10,u);n[0](a,i,p)}else{var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var f=t.path;c&&(f.beginPath(),t.buildPath(f,t.shape),t.pathUpdated());var h=f.getVersion(),d=t,v=d.__svgPathBuilder;(d.__svgPathVersion!==h||!v||l!==d.__svgPathStrokePercent)&&(v||(v=d.__svgPathBuilder=new fP),v.reset(u),f.rebuildPath(v,l),v.generateStr(),d.__svgPathVersion=h,d.__svgPathStrokePercent=l),i.d=v.getStr()}return Tv(i,t.transform),Pv(i,r,t,e),Sv(i,t),e.animation&&pp(t,i,e),e.emphasis&&EN(t,i,e),We(s,t.id+"",i)}function NN(t,e){var r=t.style,a=r.image;if(a&&!q(a)&&(xP(a)?a=a.src:PP(a)&&(a=a.toDataURL())),!!a){var n=r.x||0,i=r.y||0,o=r.width,s=r.height,l={href:a,width:o,height:s};return n&&(l.x=n),i&&(l.y=i),Tv(l,t.transform),Pv(l,r,t,e),Sv(l,t),e.animation&&pp(t,l,e),We("image",t.id+"",l)}}function FN(t,e){var r=t.style,a=r.text;if(a!=null&&(a+=""),!(!a||isNaN(r.x)||isNaN(r.y))){var n=r.font||Nr,i=r.x||0,o=TC(r.y||0,Ji(n),r.textBaseline),s=SC[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(wy(r)){var u="",p=r.fontStyle,c=by(r.fontSize);if(!parseFloat(c))return;var f=r.fontFamily||tm,h=r.fontWeight;u+="font-size:"+c+";font-family:"+f+";",p&&p!=="normal"&&(u+="font-style:"+p+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+n;return a.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),Tv(l,t.transform),Pv(l,r,t,e),Sv(l,t),e.animation&&pp(t,l,e),We("text",t.id+"",l,void 0,a)}}function AP(t,e){if(t instanceof me)return DP(t,e);if(t instanceof Bt)return NN(t,e);if(t instanceof co)return FN(t,e)}function zN(t,e,r){var a=t.style;if(CC(a)){var n=DC(t),i=r.shadowCache,o=i[n];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var p=a.shadowOffsetX||0,c=a.shadowOffsetY||0,f=a.shadowBlur,h=no(a.shadowColor),d=h.opacity,v=h.color,m=f/2/l,g=f/2/u,y=m+" "+g;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=We("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[We("feDropShadow","",{dx:p/l,dy:c/u,stdDeviation:y,"flood-color":v,"flood-opacity":d})]),i[n]=o}e.filter=al(o)}}function LP(t,e,r,a){var n=t[r],i,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(Km(n))i="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(Xm(n))i="radialGradient",o.cx=Z(n.x,.5),o.cy=Z(n.y,.5),o.r=Z(n.r,.5);else return;for(var s=n.colorStops,l=[],u=0,p=s.length;u<p;++u){var c=Ac(s[u].offset)*100+"%",f=s[u].color,h=no(f),d=h.color,v=h.opacity,m={offset:c};m["stop-color"]=d,v<1&&(m["stop-opacity"]=v),l.push(We("stop",u+"",m))}var g=We(i,"",o,l),y=_v(g),b=a.gradientCache,k=b[y];k||(k=a.zrId+"-g"+a.gradientIdx++,b[y]=k,o.id=k,a.defs[k]=We(i,k,o,l)),e[r]=al(k)}function MP(t,e,r,a){var n=t.style[r],i=t.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",p=s==="repeat-y",c;if(Ym(n)){var f=n.imageWidth,h=n.imageHeight,d=void 0,v=n.image;if(q(v)?d=v:xP(v)?d=v.src:PP(v)&&(d=v.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Jt(f,m),Jt(h,m)}else if(f==null||h==null){var g=function(P,S){if(P){var L=P.elm,D=f||S.width,M=h||S.height;P.tag==="pattern"&&(u?(M=1,D/=i.width):p&&(D=1,M/=i.height)),P.attrs.width=D,P.attrs.height=M,L&&(L.setAttribute("width",D),L.setAttribute("height",M))}},y=tc(d,null,t,function(P){l||g(_,P),g(c,P)});y&&y.width&&y.height&&(f=f||y.width,h=h||y.height)}c=We("image","img",{href:d,width:f,height:h}),o.width=f,o.height=h}else n.svgElement&&(c=le(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(c){var b,k;l?b=k=1:u?(k=1,b=o.width/i.width):p?(b=1,k=o.height/i.height):o.patternUnits="userSpaceOnUse",b!=null&&!isNaN(b)&&(o.width=b),k!=null&&!isNaN(k)&&(o.height=k);var w=Zm(n);w&&(o.patternTransform=w);var _=We("pattern","",o,[c]),x=_v(_),T=a.patternCache,C=T[x];C||(C=a.zrId+"-p"+a.patternIdx++,T[x]=C,o.id=C,_=a.defs[C]=We("pattern",C,o,[c])),e[r]=al(C)}}function HN(t,e,r){var a=r.clipPathCache,n=r.defs,i=a[t.id];if(!i){i=r.zrId+"-c"+r.clipPathIdx++;var o={id:i};a[t.id]=i,n[i]=We("clipPath",i,o,[DP(t,r)])}e["clip-path"]=al(i)}function EP(t){return document.createTextNode(t)}function _n(t,e,r){t.insertBefore(e,r)}function IP(t,e){t.removeChild(e)}function OP(t,e){t.appendChild(e)}function RP(t){return t.parentNode}function BP(t){return t.nextSibling}function Cv(t,e){t.textContent=e}var NP=58,VN=120,UN=We("","");function Dv(t){return t===void 0}function Br(t){return t!==void 0}function GN(t,e,r){for(var a={},n=e;n<=r;++n){var i=t[n].key;i!==void 0&&(a[i]=n)}return a}function hs(t,e){var r=t.key===e.key,a=t.tag===e.tag;return a&&r}function ds(t){var e,r=t.children,a=t.tag;if(Br(a)){var n=t.elm=gP(a);if(Av(UN,t),W(r))for(e=0;e<r.length;++e){var i=r[e];i!=null&&OP(n,ds(i))}else Br(t.text)&&!J(t.text)&&OP(n,EP(t.text))}else t.elm=EP(t.text);return t.elm}function FP(t,e,r,a,n){for(;a<=n;++a){var i=r[a];i!=null&&_n(t,ds(i),e)}}function cp(t,e,r,a){for(;r<=a;++r){var n=e[r];if(n!=null)if(Br(n.tag)){var i=RP(n.elm);IP(i,n.elm)}else IP(t,n.elm)}}function Av(t,e){var r,a=e.elm,n=t&&t.attrs||{},i=e.attrs||{};if(n!==i){for(r in i){var o=i[r],s=n[r];s!==o&&(o===!0?a.setAttribute(r,""):o===!1?a.removeAttribute(r):r==="style"?a.style.cssText=o:r.charCodeAt(0)!==VN?a.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?a.setAttributeNS(_N,r,o):r.charCodeAt(3)===NP?a.setAttributeNS(xN,r,o):r.charCodeAt(5)===NP?a.setAttributeNS(dP,r,o):a.setAttribute(r,o))}for(r in n)r in i||a.removeAttribute(r)}}function WN(t,e,r){for(var a=0,n=0,i=e.length-1,o=e[0],s=e[i],l=r.length-1,u=r[0],p=r[l],c,f,h,d;a<=i&&n<=l;)o==null?o=e[++a]:s==null?s=e[--i]:u==null?u=r[++n]:p==null?p=r[--l]:hs(o,u)?(Di(o,u),o=e[++a],u=r[++n]):hs(s,p)?(Di(s,p),s=e[--i],p=r[--l]):hs(o,p)?(Di(o,p),_n(t,o.elm,BP(s.elm)),o=e[++a],p=r[--l]):hs(s,u)?(Di(s,u),_n(t,s.elm,o.elm),s=e[--i],u=r[++n]):(Dv(c)&&(c=GN(e,a,i)),f=c[u.key],Dv(f)?_n(t,ds(u),o.elm):(h=e[f],h.tag!==u.tag?_n(t,ds(u),o.elm):(Di(h,u),e[f]=void 0,_n(t,h.elm,o.elm))),u=r[++n]);(a<=i||n<=l)&&(a>i?(d=r[l+1]==null?null:r[l+1].elm,FP(t,d,r,n,l)):cp(t,e,a,i))}function Di(t,e){var r=e.elm=t.elm,a=t.children,n=e.children;t!==e&&(Av(t,e),Dv(e.text)?Br(a)&&Br(n)?a!==n&&WN(r,a,n):Br(n)?(Br(t.text)&&Cv(r,""),FP(r,null,n,0,n.length-1)):Br(a)?cp(r,a,0,a.length-1):Br(t.text)&&Cv(r,""):t.text!==e.text&&(Br(a)&&cp(r,a,0,a.length-1),Cv(r,e.text)))}function $N(t,e){if(hs(t,e))Di(t,e);else{var r=t.elm,a=RP(r);ds(e),a!==null&&(_n(a,e.elm,BP(r)),cp(a,[t],0,0))}return e}var YN=0,KN=(function(){function t(e,r,a){if(this.type="svg",this.configLayer=XN(),this.storage=r,this._opts=a=H({},a),this.root=e,this._id="zr"+YN++,this._oldVNode=mP(a.width,a.height),e&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=gP("svg");Av(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(a.width,a.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",$N(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return AP(e,xv(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=xv(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=qN(a,n,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=We("g","main",{},[]);this._paintList(r,i,l?l.children:o),l&&o.push(l);var u=K(he(i.defs),function(f){return i.defs[f]});if(u.length&&o.push(We("defs","defs",{},u)),e.animation){var p=TN(i.cssNodes,i.cssAnims,{newline:!0});if(p){var c=We("style","stl",{},[],p);o.push(c)}}return mP(a,n,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},_v(this.renderToVNode({animation:Z(e.cssAnimation,!0),emphasis:Z(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Z(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,a){for(var n=e.length,i=[],o=0,s,l,u=0,p=0;p<n;p++){var c=e[p];if(!c.invisible){var f=c.__clipPaths,h=f&&f.length||0,d=l&&l.length||0,v=void 0;for(v=Math.max(h-1,d-1);v>=0&&!(f&&l&&f[v]===l[v]);v--);for(var m=d-1;m>v;m--)o--,s=i[o-1];for(var g=v+1;g<h;g++){var y={};HN(f[g],y,r);var b=We("g","clip-g-"+u++,y,[]);(s?s.children:a).push(b),i[o++]=b,s=b}l=f;var k=AP(c,r);k&&(s?s.children:a).push(k)}}},t.prototype.resize=function(e,r){var a=this._opts,n=this.root,i=this._viewport;if(e!=null&&(a.width=e),r!=null&&(a.height=r),n&&i&&(i.style.display="none",e=h_(n,0,a),r=h_(n,1,a),i.style.display=""),this._width!==e||this._height!==r){if(this._width=e,this._height=r,i){var o=i.style;o.width=e+"px",o.height=r+"px"}if(Lc(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",r))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var r=this.renderToString(),a="data:image/svg+xml;";return e?(r=LC(r),r&&a+"base64,"+r):a+"charset=UTF-8,"+encodeURIComponent(r)},t})();function XN(t){return function(){}}function qN(t,e,r,a){var n;if(r&&r!=="none")if(n=We("rect","bg",{width:t,height:e,x:"0",y:"0"}),qm(r))LP({fill:r},n.attrs,"fill",a);else if(Lc(r))MP({style:{fill:r},dirty:qe,getBoundingRect:function(){return{width:t,height:e}}},n.attrs,"fill",a);else{var i=no(r),o=i.color,s=i.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}function jN(t){t.registerPainter("svg",KN)}cr([_4,I5,F4,ER,WR,iB,jR,EB,QB,fN,tN,vN,jN]);const zP=new Set;function ZN(){const e=(Ui().components??[]).filter(r=>r!=null&&!zP.has(r));if(e.length!==0){cr(e);for(const r of e)zP.add(r)}}const QN=96/25.4;function xn(t){const e=Number.isFinite(t)?t:0;return Math.max(1,Math.round(e*QN))}const JN=[12,20,15];function Ai(t){try{return JSON.parse(JSON.stringify(t))}catch{return t}}function e6(t,e){if(!e||typeof e!="object"||Array.isArray(e))return{};const r=Ai(e),a=Je(t),n=[...Jg()],i=[...JN],o=Array.isArray(r.series)?r.series:[],s=u=>{for(const p of o)Array.isArray(p.data)&&p.data.includes("$data")&&(p.data=u(p))},l=()=>{for(const u of["xAxis","yAxis"]){const p=Array.isArray(r[u])?r[u]:r[u]?[r[u]]:[];for(const c of p)c&&Array.isArray(c.data)&&c.data.includes("$data")&&(c.data=[...n])}};switch(a?.seriesType){case"pie":s(()=>n.map((u,p)=>({name:u,value:i[p]??10})));break;case"funnel":s(()=>n.map((u,p)=>({name:u,value:i[p]??10})));break;case"scatter":s(()=>i.map(u=>[u,u+6]));break;case"radar":r.radar={...r.radar??{},indicator:n.map(u=>({name:u,max:30}))},s(()=>[{name:"示例",value:i}]);break;case"gauge":s(()=>[{value:i[0]??40,name:"数量"}]);break;default:s(()=>[...i]),l();break}return r}function t6(t,e){const r=Array.isArray(t?.color)?(t?.color).map(String):[];return e.find(n=>n.colors.every((i,o)=>i===r[o])&&r.length===n.colors.length)?.key??"default"}function Li(t){return Array.isArray(t)?t[0]&&typeof t[0]=="object"?{...t[0]}:{}:t&&typeof t=="object"?{...t}:{}}function r6(t,e,r){const a=Ai(t),n=Array.isArray(a.series)?a.series:[],i=Je(r),o=n[0]??{type:i?.seriesType==="line"?"line":"bar",data:["$data"]};return a.series=Array.from({length:Math.max(e,1)},(s,l)=>({...o,...n[l]??{},data:["$data"]})),a}const fp=t=>Math.round(t*10)/10;function Lv(t,e){return e>0?fp(t/e*100):0}function hp(t,e,r){if(typeof t=="string"&&t.trim().endsWith("%")){const a=Number.parseFloat(t);if(Number.isFinite(a))return fp(a)}return typeof t=="number"&&Number.isFinite(t)?Lv(t,e):Lv(r,e)}function HP(t,e,r){return Math.min(r,Math.max(e,t))}function vs(t){return`${HP(fp(t),0,100)}%`}function a6(t){const r=(Array.isArray(t.series)?t.series:[])[0];return r&&typeof r=="object"?r:{}}function VP(t,e,r){const n=a6(t&&typeof t=="object"?t:{}),i=xn(e),o=xn(r);return{top:hp(n.top,o,Is.top),right:hp(n.right,i,Is.right),bottom:hp(n.bottom,o,Is.bottom),left:hp(n.left,i,Is.left)}}function n6(t,e){const r=Ai(t),a=Array.isArray(r.series)?r.series:[];a.length===0&&a.push({type:"funnel",data:["$data"]});const n=a[0];return n.top=vs(e.top),n.right=vs(e.right),n.bottom=vs(e.bottom),n.left=vs(e.left),r.series=a,r}function i6(t,e,r){const n=Li((t&&typeof t=="object"?t:{}).radar).radius,i=Array.isArray(n)?n[n.length-1]:n,o=xn(e),s=xn(r),l=Math.min(o,s)/2;if(typeof i=="string"&&i.trim().endsWith("%")){const u=Number.parseFloat(i);if(Number.isFinite(u))return fp(u)}return typeof i=="number"&&Number.isFinite(i)?Lv(i,l):cT}function o6(t,e){const r=Ai(t);return r.radar={...Li(r.radar),radius:vs(HP(e,20,100))},r}const s6=[{key:"value",label:"数值",labelKey:"echarts.label.formatter.value",formatter:"{c}"},{key:"name-value",label:"名称: 数值",labelKey:"echarts.label.formatter.nameValue",formatter:"{b}: {c}"},{key:"name",label:"名称",labelKey:"echarts.label.formatter.name",formatter:"{b}"},{key:"percent",label:"百分比",labelKey:"echarts.label.formatter.percent",formatter:"{d}%"}],l6={bar:[{value:"top",label:"顶部",labelKey:"echarts.label.position.bar.top"},{value:"inside",label:"内部",labelKey:"echarts.label.position.bar.inside"},{value:"insideTop",label:"内部顶端",labelKey:"echarts.label.position.bar.insideTop"},{value:"bottom",label:"底部",labelKey:"echarts.label.position.bar.bottom"},{value:"insideBottom",label:"内部底端",labelKey:"echarts.label.position.bar.insideBottom"},{value:"right",label:"右侧",labelKey:"echarts.label.position.bar.right"},{value:"left",label:"左侧",labelKey:"echarts.label.position.bar.left"},{value:"middle",label:"居中",labelKey:"echarts.label.position.bar.middle"}],line:[{value:"top",label:"顶部",labelKey:"echarts.label.position.line.top"},{value:"bottom",label:"底部",labelKey:"echarts.label.position.line.bottom"},{value:"inside",label:"内部",labelKey:"echarts.label.position.line.inside"},{value:"left",label:"左侧",labelKey:"echarts.label.position.line.left"},{value:"right",label:"右侧",labelKey:"echarts.label.position.line.right"}],pie:[{value:"outside",label:"外侧",labelKey:"echarts.label.position.pie.outside"},{value:"inside",label:"内部",labelKey:"echarts.label.position.pie.inside"},{value:"center",label:"中心",labelKey:"echarts.label.position.pie.center"}],scatter:[{value:"top",label:"顶部",labelKey:"echarts.label.position.scatter.top"},{value:"bottom",label:"底部",labelKey:"echarts.label.position.scatter.bottom"},{value:"left",label:"左侧",labelKey:"echarts.label.position.scatter.left"},{value:"right",label:"右侧",labelKey:"echarts.label.position.scatter.right"},{value:"inside",label:"内部",labelKey:"echarts.label.position.scatter.inside"}],radar:[{value:"top",label:"顶部",labelKey:"echarts.label.position.radar.top"},{value:"bottom",label:"底部",labelKey:"echarts.label.position.radar.bottom"},{value:"left",label:"左侧",labelKey:"echarts.label.position.radar.left"},{value:"right",label:"右侧",labelKey:"echarts.label.position.radar.right"},{value:"inside",label:"内部",labelKey:"echarts.label.position.radar.inside"}],funnel:[{value:"outer",label:"外侧",labelKey:"echarts.label.position.funnel.outer"},{value:"inner",label:"内部",labelKey:"echarts.label.position.funnel.inner"},{value:"left",label:"左侧",labelKey:"echarts.label.position.funnel.left"},{value:"right",label:"右侧",labelKey:"echarts.label.position.funnel.right"},{value:"top",label:"顶部",labelKey:"echarts.label.position.funnel.top"},{value:"bottom",label:"底部",labelKey:"echarts.label.position.funnel.bottom"}],gauge:[]},u6={bar:!1,line:!1,pie:!0,scatter:!1,radar:!1,funnel:!0,gauge:!0},p6={bar:{position:"top",fontSize:12},line:{position:"top",fontSize:12},pie:{position:"outside",overflow:"none",fontSize:11},scatter:{position:"top",fontSize:11},radar:{position:"top",fontSize:10},funnel:{position:"outer",fontSize:11},gauge:{fontSize:14}},c6={barHChart:{position:"right",fontSize:12}},f6={bar:["formatter","overflow","position","rotate","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"],line:["formatter","overflow","position","rotate","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"],pie:["formatter","overflow","position","distance","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding","labelLine.show","labelLine.length","labelLine.length2","labelLine.smooth"],scatter:["formatter","overflow","position","distance","rotate","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"],radar:["formatter","fontSize","fontWeight","color"],funnel:["formatter","overflow","position","distance","fontSize","fontWeight","color","labelLine.show","labelLine.length","labelLine.smooth"],gauge:["formatter","fontSize","fontWeight","color","offset"]},h6=["formatter","overflow","position","distance","rotate","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function d6(t){const e=t?.series;return Array.isArray(e)?e:[]}function dp(t){return t&&typeof t=="object"&&!Array.isArray(t)?{...t}:{}}function Mv(t){typeof t.offsetX!="number"&&typeof t.offsetY!="number"||(Array.isArray(t.offset)||(t.offset=[typeof t.offsetX=="number"?t.offsetX:0,typeof t.offsetY=="number"?t.offsetY:0]),delete t.offsetX,delete t.offsetY)}function Ev(t){return Je(t)?.seriesType==="gauge"?"detail":"label"}function v6(t){const e=Je(t);return e?f6[e.seriesType]:[]}function g6(t,e){const r=Je(e),a=d6(t),n=dp(a[0]?.[Ev(e)]);Mv(n);const i={show:typeof n.show=="boolean"?n.show:r?u6[r.seriesType]:!1,labelLine:dp(a[0]?.labelLine)};for(const s of h6){const l=n[s];s!=="offset"&&(typeof l=="string"||typeof l=="number")&&(i[s]=l)}const o=n.offset;return Array.isArray(o)&&typeof o[0]=="number"&&typeof o[1]=="number"&&(i.offset=[o[0],o[1]]),i}function m6(t){const e=Je(t);return e?{...p6[e.seriesType],...c6[t]}:{}}function UP(t){return t==null||t===""}function y6(t,e,r){const a=Ai(t??{}),n=Array.isArray(a.series)?a.series:[];if(!Je(e)||n.length===0)return a;const o=Ev(e),{enabled:s,labelLine:l,...u}=r;for(const p of n){if(!p||typeof p!="object")continue;const c=dp(p[o]);Mv(c),s===!0?Object.assign(c,{...m6(e),...c,show:!0}):s===!1&&(c.show=!1);for(const[f,h]of Object.entries(u))UP(h)?delete c[f]:c[f]=h;if(l){const f=dp(p.labelLine);for(const[h,d]of Object.entries(l))UP(d)?delete f[h]:f[h]=d;p.labelLine=f}p[o]=c}return a}function b6(t){return Array.isArray(t)?t.map(e=>({...e})):[]}function k6(t,e){const r={...t,type:e?"value":"category"};return e?delete r.data:Array.isArray(r.data)||(r.data=["$data"]),r}function w6(t,e){const r={...t,type:e?"category":"value"};return e&&!Array.isArray(r.data)&&(r.data=["$data"]),e||delete r.data,r}function vp(t,e){return Array.isArray(t)?t.map(r=>e({...r})):e(t&&typeof t=="object"?{...t}:{})}function gp(t,e){const r=Je(t);if(!r)return e;const a=structuredClone(e),n=b6(a.series);if(n.length===0)return a;const i=Ev(t);for(const l of n){const u=l[i];if(u&&typeof u=="object"&&!Array.isArray(u)){const p={...u};Mv(p),l[i]=p}}if(r.seriesType==="pie")return a.series=n.map(l=>({...l,type:"pie",...t==="doughnutChart"?{radius:l.radius??["40%","70%"]}:{}})),delete a.xAxis,delete a.yAxis,a;if(r.seriesType==="scatter")return a.series=n.map(l=>({...l,type:"scatter"})),a.xAxis=vp(a.xAxis,l=>({...l,type:"value",data:void 0})),a.yAxis=vp(a.yAxis,l=>({...l,type:"value",data:void 0})),a;if(r.seriesType==="radar")return a.series=n.map(l=>({...l,type:"radar"})),a;if(r.seriesType==="funnel")return a.series=n.map(l=>({...l,type:"funnel",sort:"descending"})),a;if(r.seriesType==="gauge")return a.series=n.map(l=>({...l,type:"gauge"})),a;const o=r.orientation==="horizontal",s=r.seriesType==="line"?"line":"bar";return a.xAxis=vp(a.xAxis,l=>k6(l,o)),a.yAxis=vp(a.yAxis,l=>w6(l,o)),a.series=n.map(l=>{const u={...l,type:s};return t==="areaChart"?u.areaStyle=l.areaStyle??{}:delete u.areaStyle,u}),a}function GP(t,e,r){const a=/<svg\b[^>]*>/i.exec(t);if(!a)return t;const n=a[0],i=n.slice(4,-1),s=(/\sstyle\s*=\s*"([^"]*)"/i.exec(i)?.[1]??"").split(";").map(c=>c.trim()).filter(c=>c&&!/^(width|height|display)\s*:/i.test(c)).join(";"),l=i.replace(/\s(width|height|style|viewBox)\s*=\s*"[^"]*"/gi,"").trimEnd(),u=["display:block","width:100%","height:100%",s].filter(Boolean).join(";"),p=`<svg${l} width="100%" height="100%" viewBox="0 0 ${e} ${r}" style="${u}">`;return t.slice(0,a.index)+p+t.slice(a.index+n.length)}function Iv(t){ZN();const e=gp(t.type,t.option);if(!e||typeof e!="object"||Array.isArray(e))throw new Error("图表 option 非法:需要对象");const r=xn(t.widthMm),a=xn(t.heightMm),n=UO(null,null,{renderer:"svg",ssr:!0,width:r,height:a});try{const i=e.textStyle&&typeof e.textStyle=="object"&&!Array.isArray(e.textStyle)?e.textStyle:void 0,o={...t.fontFamily?{fontFamily:t.fontFamily}:{},...i??{}};return n.setOption({animation:!1,...e,...Object.keys(o).length>0?{textStyle:o}:{}}),GP(n.renderToSVGString(),r,a)}finally{n.dispose()}}function _6(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Ov(t){const e=t._chartOption??t.chartOption,r=`<span>${_6(String(t.title??"图表"))}</span>`;if(!e||typeof e!="object"||Array.isArray(e))return r;try{return Iv({key:String(t.key??""),type:String(t.type??""),option:e,widthMm:Number(t.widthMm??0),heightMm:Number(t.heightMm??0),fontFamily:typeof t.fontFamily=="string"?t.fontFamily:void 0})}catch{return r}}const x6="2",WP={chartOption:{kind:"object",label:Zt("echarts.meta.chartOption")},chartDataSource:{kind:"text",label:Zt("echarts.meta.dataSource")},chartCategoryField:{kind:"text",label:Zt("echarts.meta.categoryField")},chartValueFields:{kind:"object",label:Zt("echarts.meta.valueFields")},chartSeriesField:{kind:"text",label:Zt("echarts.meta.seriesField")}},P6={...WP,chartBubble:{kind:"bool",label:Zt("echarts.meta.bubbleSize")}},gs=y2({id:Vi,version:x6,kinds:Es.map(t=>({type:t.type,get label(){return Zt(t.labelKey)},icon:t.icon,fixedHeight:!0,requiredOptionKeys:t.requiredOptionKeys,get notes(){return Zt(t.notesKey)},optionMeta:t.type==="scatterChart"?P6:WP,defaultOptions:e=>em(t.type,e),binding:{bind:(e,r)=>Xg(t.type,e,r)}})),render:{html:Ov,createRenderer:()=>({render:Ov})}});let mp;function ms(t,e){const r=b2(Vi);if(!t&&!e){const i=Pg(gs);return mp=i,i}const a={...gs,designer:t??r?.designer??gs.designer,render:{...gs.render,...r?.render,...e}},n=Pg(a);return mp=n,n}function S6(t){return ms(t)}function T6(t){return ms(void 0,{executorBundle:t})}function C6(){mp?.(),mp=void 0}ms(),ms();const D6=Object.freeze(Object.defineProperty({__proto__:null,CHART_KINDS:Gg,CHART_KIND_DEFINITIONS:Es,CHART_PALETTES:Gp,CHART_PLUGIN:gs,CHART_PLUGIN_ID:Vi,bindChartData:Xg,chartFactoryDefaults:em,configureChartPlugin:hT,createDefaultChartOption:Os,fitSvgRoot:GP,getChartKindDefinition:Je,getChartPalettes:Qg,getChartPluginConfig:Ui,getSampleCategories:Jg,mmToChartPx:xn,normalizeChartOption:gp,registerChartDesigner:S6,registerChartExecutorBundle:T6,registerChartPlugin:ms,renderChartElement:Ov,renderChartToSvg:Iv,resolveChartPanelFields:Wg,uninstallChartPlugin:C6},Symbol.toStringTag,{value:"Module"})),A6={echarts:{"echarts.panel.chart":"图表","echarts.panel.config":"配置","echarts.panel.dataSource":"数据源","echarts.panel.category":"类目","echarts.panel.value":"数值","echarts.panel.series":"系列","echarts.panel.chartType.bar":"柱状","echarts.panel.chartType.barH":"条形","echarts.panel.chartType.line":"折线","echarts.panel.chartType.area":"面积","echarts.panel.chartType.pie":"饼","echarts.panel.chartType.doughnut":"环形","echarts.panel.chartType.scatter":"散点","echarts.panel.chartType.radar":"雷达","echarts.panel.chartType.funnel":"漏斗","echarts.panel.chartType.gauge":"仪表","echarts.panel.dataLabel":"数据标签","echarts.panel.valueLabel":"数值标签","echarts.panel.hint.dataBinding":"数据由模板绑定阶段注入:series/xAxis 的 data 保留 `$data` 占位即可;复杂样式可在模板 JSON 中手写 chartOption。","echarts.panel.field.dimension":"维度字段(每个字段一个维度)","echarts.panel.field.value":"数值字段","echarts.panel.field.valueMulti":"数值字段(多值多系列)","echarts.panel.default":"(默认)","echarts.panel.current":"(当前)","echarts.panel.defaultFirstArray":"(默认:顶层第一个数组)","echarts.panel.error.invalidOption":"图表 option 非法:需要对象","echarts.panel.chartFallback":"图表","echarts.panel.optionDefault":"(默认)","echarts.panel.overflow.default":"默认","echarts.panel.overflow.none":"不处理(显示完整)","echarts.panel.overflow.truncate":"截断","echarts.panel.overflow.break":"换行","echarts.panel.fontWeight.default":"默认","echarts.panel.fontWeight.normal":"常规","echarts.panel.fontWeight.bold":"加粗","echarts.panel.label.distance":"距离","echarts.panel.label.rotate":"旋转(度)","echarts.panel.label.fontSize":"字号","echarts.panel.label.fontWeight":"字重","echarts.panel.label.color":"文字颜色","echarts.panel.label.backgroundColor":"背景色","echarts.panel.label.borderColor":"边框色","echarts.panel.label.borderWidth":"边框宽度","echarts.panel.label.borderRadius":"圆角","echarts.panel.label.padding":"内边距","echarts.panel.label.show":"显示数据标签","echarts.panel.label.content":"内容","echarts.panel.label.formatterTitle":"数据标签内容","echarts.panel.label.formatterCustom":"自定义 / 默认","echarts.panel.label.formatterPlaceholder":"如 {b}: {c}","echarts.panel.label.overflow":"溢出处理","echarts.panel.label.position":"位置","echarts.panel.label.positionTitle":"标签位置","echarts.panel.label.positionDefault":"默认","echarts.panel.label.offset":"偏移 X / Y","echarts.panel.label.style":"样式","echarts.panel.labelLine.fontWeight":"字重","echarts.panel.labelLine":"引导线","echarts.panel.labelLine.show":"显示引导线","echarts.panel.labelLine.length":"引导线长度","echarts.panel.labelLine.length2":"第二段长度","echarts.panel.labelLine.smooth":"平滑引导线","echarts.panel.dataSourceTitle":"数据源","echarts.panel.categoryField":"类目字段","echarts.panel.removeField":"删除该字段","echarts.panel.addField":"+ 添加字段","echarts.panel.seriesField":"系列拆分字段","echarts.panel.seriesFieldHint":"可选,如 region(按值拆成多系列)","echarts.panel.bubbleSize":"气泡大小","echarts.panel.title":"图表标题","echarts.panel.titleHint":"留空不显示标题","echarts.panel.legend":"显示图例","echarts.panel.palette":"配色","echarts.palette.default":"默认蓝","echarts.palette.fresh":"清新绿","echarts.palette.warm":"暖橙红","echarts.palette.purple":"紫灰","echarts.panel.stack":"堆叠显示","echarts.panel.innerRadius":"内径(%)","echarts.panel.paddingTRBL":"内边距 上/右/下/左 (%)","echarts.panel.paddingTop":"上边距","echarts.panel.paddingRight":"右边距(留外置标签)","echarts.panel.paddingBottom":"下边距","echarts.panel.paddingLeft":"左边距","echarts.panel.radius":"半径(%)","echarts.panel.minMax":"最小 / 最大值","echarts.panel.group":"图表","echarts.series.typeNames.bar":"柱状图","echarts.series.typeNames.barH":"条形图","echarts.series.typeNames.line":"折线图","echarts.series.typeNames.area":"面积图","echarts.series.typeNames.pie":"饼图","echarts.series.typeNames.doughnut":"环形图","echarts.series.typeNames.scatter":"散点图","echarts.series.typeNames.radar":"雷达图","echarts.series.typeNames.funnel":"漏斗图","echarts.series.typeNames.gauge":"仪表盘","echarts.label.formatter.value":"数值","echarts.label.formatter.nameValue":"名称: 数值","echarts.label.formatter.name":"名称","echarts.label.formatter.percent":"百分比","echarts.label.position.bar.top":"顶部","echarts.label.position.bar.inside":"内部","echarts.label.position.bar.insideTop":"内部顶端","echarts.label.position.bar.bottom":"底部","echarts.label.position.bar.insideBottom":"内部底端","echarts.label.position.bar.right":"右侧","echarts.label.position.bar.left":"左侧","echarts.label.position.bar.middle":"居中","echarts.label.position.line.top":"顶部","echarts.label.position.line.bottom":"底部","echarts.label.position.line.inside":"内部","echarts.label.position.line.left":"左侧","echarts.label.position.line.right":"右侧","echarts.label.position.pie.outside":"外侧","echarts.label.position.pie.inside":"内部","echarts.label.position.pie.center":"中心","echarts.label.position.scatter.top":"顶部","echarts.label.position.scatter.bottom":"底部","echarts.label.position.scatter.left":"左侧","echarts.label.position.scatter.right":"右侧","echarts.label.position.scatter.inside":"内部","echarts.label.position.radar.top":"顶部","echarts.label.position.radar.bottom":"底部","echarts.label.position.radar.left":"左侧","echarts.label.position.radar.right":"右侧","echarts.label.position.radar.inside":"内部","echarts.label.position.funnel.outer":"外侧","echarts.label.position.funnel.inner":"内部","echarts.label.position.funnel.left":"左侧","echarts.label.position.funnel.right":"右侧","echarts.label.position.funnel.top":"顶部","echarts.label.position.funnel.bottom":"底部","echarts.meta.chartOption":"图表 option","echarts.meta.dataSource":"数据源","echarts.meta.categoryField":"类目字段","echarts.meta.valueFields":"数值字段","echarts.meta.seriesField":"系列拆分字段","echarts.meta.bubbleSize":"气泡大小","echarts.notes.bar":"柱状图:类目 + 多个数值字段,每字段一个 series;series[].data 写 $data 占位;固定高,禁止 autoHeight","echarts.notes.barH":"横向条形图:xAxis 为数值、yAxis 为类目;类目写 yAxis.data 的 $data 占位","echarts.notes.line":"折线图:类目 + 多个数值字段;不写 areaStyle","echarts.notes.area":"面积图:折线 + series[].areaStyle;其余同折线图","echarts.notes.pie":"饼图:类目 + 首个数值字段生成 { name, value };只需一个数值字段","echarts.notes.doughnut":"环形图:饼图 + radius:[内径,外径];内径由面板配置","echarts.notes.scatter":"散点图:类目字段作 x、首个数值字段作 y;chartBubble 开启时用第二个数值字段作点大小","echarts.notes.radar":"雷达图:每个数值字段是一个维度(radar.indicator),每行数据是一个系列(类目字段作系列名);半径由面板写 radar.radius(%,默认 75)","echarts.notes.funnel":"漏斗图:类目 + 首个数值字段,按数值降序;四边内边距由面板写 series.left/right/top/bottom(%,右侧需留外置标签空间)","echarts.notes.gauge":"仪表盘:取首行数据的首个数值字段作指针值;min/max 由面板写入 series[0].min/max"}},L6={echarts:{"echarts.panel.chart":"Chart","echarts.panel.config":"Config","echarts.panel.dataSource":"Data source","echarts.panel.category":"Category","echarts.panel.value":"Value","echarts.panel.series":"Series","echarts.panel.chartType.bar":"Bar","echarts.panel.chartType.barH":"Horizontal bar","echarts.panel.chartType.line":"Line","echarts.panel.chartType.area":"Area","echarts.panel.chartType.pie":"Pie","echarts.panel.chartType.doughnut":"Doughnut","echarts.panel.chartType.scatter":"Scatter","echarts.panel.chartType.radar":"Radar","echarts.panel.chartType.funnel":"Funnel","echarts.panel.chartType.gauge":"Gauge","echarts.panel.dataLabel":"Data label","echarts.panel.valueLabel":"Value label","echarts.panel.hint.dataBinding":"Data is injected at template binding; keep the `$data` placeholder in series/xAxis data; advanced styles can be written in chartOption in the template JSON.","echarts.panel.field.dimension":"Dimension fields (one per dimension)","echarts.panel.field.value":"Value fields","echarts.panel.field.valueMulti":"Value fields (multiple values, multiple series)","echarts.panel.default":"(default)","echarts.panel.current":"(current)","echarts.panel.defaultFirstArray":"(default: first top-level array)","echarts.panel.error.invalidOption":"Invalid chart option: expected an object","echarts.panel.chartFallback":"Chart","echarts.panel.optionDefault":"(default)","echarts.panel.overflow.default":"Default","echarts.panel.overflow.none":"None (show full)","echarts.panel.overflow.truncate":"Truncate","echarts.panel.overflow.break":"Wrap","echarts.panel.fontWeight.default":"Default","echarts.panel.fontWeight.normal":"Regular","echarts.panel.fontWeight.bold":"Bold","echarts.panel.label.distance":"Distance","echarts.panel.label.rotate":"Rotation (deg)","echarts.panel.label.fontSize":"Font size","echarts.panel.label.fontWeight":"Font weight","echarts.panel.label.color":"Text color","echarts.panel.label.backgroundColor":"Background color","echarts.panel.label.borderColor":"Border color","echarts.panel.label.borderWidth":"Border width","echarts.panel.label.borderRadius":"Radius","echarts.panel.label.padding":"Padding","echarts.panel.label.show":"Show data labels","echarts.panel.label.content":"Content","echarts.panel.label.formatterTitle":"Data label content","echarts.panel.label.formatterCustom":"Custom / Default","echarts.panel.label.formatterPlaceholder":"e.g. {b}: {c}","echarts.panel.label.overflow":"Overflow","echarts.panel.label.position":"Position","echarts.panel.label.positionTitle":"Label position","echarts.panel.label.positionDefault":"Default","echarts.panel.label.offset":"Offset X / Y","echarts.panel.label.style":"Style","echarts.panel.labelLine.fontWeight":"Font weight","echarts.panel.labelLine":"Label line","echarts.panel.labelLine.show":"Show label line","echarts.panel.labelLine.length":"Label line length","echarts.panel.labelLine.length2":"Second segment length","echarts.panel.labelLine.smooth":"Smooth label line","echarts.panel.dataSourceTitle":"Data source","echarts.panel.categoryField":"Category field","echarts.panel.removeField":"Remove this field","echarts.panel.addField":"+ Add field","echarts.panel.seriesField":"Series split field","echarts.panel.seriesFieldHint":"Optional, e.g. region (splits into series by value)","echarts.panel.bubbleSize":"Bubble size","echarts.panel.title":"Chart title","echarts.panel.titleHint":"Leave empty to hide the title","echarts.panel.legend":"Show legend","echarts.panel.palette":"Color palette","echarts.palette.default":"Default blue","echarts.palette.fresh":"Fresh green","echarts.palette.warm":"Warm orange-red","echarts.palette.purple":"Purple grey","echarts.panel.stack":"Stacked","echarts.panel.innerRadius":"Inner radius (%)","echarts.panel.paddingTRBL":"Padding top/right/bottom/left (%)","echarts.panel.paddingTop":"Top padding","echarts.panel.paddingRight":"Right padding (for outer labels)","echarts.panel.paddingBottom":"Bottom padding","echarts.panel.paddingLeft":"Left padding","echarts.panel.radius":"Radius (%)","echarts.panel.minMax":"Min / max","echarts.panel.group":"Chart","echarts.series.typeNames.bar":"Bar chart","echarts.series.typeNames.barH":"Horizontal bar chart","echarts.series.typeNames.line":"Line chart","echarts.series.typeNames.area":"Area chart","echarts.series.typeNames.pie":"Pie chart","echarts.series.typeNames.doughnut":"Doughnut chart","echarts.series.typeNames.scatter":"Scatter chart","echarts.series.typeNames.radar":"Radar chart","echarts.series.typeNames.funnel":"Funnel chart","echarts.series.typeNames.gauge":"Gauge chart","echarts.label.formatter.value":"Value","echarts.label.formatter.nameValue":"Name: Value","echarts.label.formatter.name":"Name","echarts.label.formatter.percent":"Percentage","echarts.label.position.bar.top":"Top","echarts.label.position.bar.inside":"Inside","echarts.label.position.bar.insideTop":"Inside top","echarts.label.position.bar.bottom":"Bottom","echarts.label.position.bar.insideBottom":"Inside bottom","echarts.label.position.bar.right":"Right","echarts.label.position.bar.left":"Left","echarts.label.position.bar.middle":"Center","echarts.label.position.line.top":"Top","echarts.label.position.line.bottom":"Bottom","echarts.label.position.line.inside":"Inside","echarts.label.position.line.left":"Left","echarts.label.position.line.right":"Right","echarts.label.position.pie.outside":"Outside","echarts.label.position.pie.inside":"Inside","echarts.label.position.pie.center":"Center","echarts.label.position.scatter.top":"Top","echarts.label.position.scatter.bottom":"Bottom","echarts.label.position.scatter.left":"Left","echarts.label.position.scatter.right":"Right","echarts.label.position.scatter.inside":"Inside","echarts.label.position.radar.top":"Top","echarts.label.position.radar.bottom":"Bottom","echarts.label.position.radar.left":"Left","echarts.label.position.radar.right":"Right","echarts.label.position.radar.inside":"Inside","echarts.label.position.funnel.outer":"Outside","echarts.label.position.funnel.inner":"Inside","echarts.label.position.funnel.left":"Left","echarts.label.position.funnel.right":"Right","echarts.label.position.funnel.top":"Top","echarts.label.position.funnel.bottom":"Bottom","echarts.meta.chartOption":"Chart option","echarts.meta.dataSource":"Data source","echarts.meta.categoryField":"Category field","echarts.meta.valueFields":"Value fields","echarts.meta.seriesField":"Series split field","echarts.meta.bubbleSize":"Bubble size","echarts.notes.bar":"Bar chart: category + multiple value fields, one series per field; write the $data placeholder in series[].data; fixed height, autoHeight is forbidden","echarts.notes.barH":"Horizontal bar: xAxis is the value axis, yAxis is the category axis; write the $data placeholder in yAxis.data for categories","echarts.notes.line":"Line chart: category + multiple value fields; do not write areaStyle","echarts.notes.area":"Area chart: line + series[].areaStyle; otherwise same as the line chart","echarts.notes.pie":"Pie chart: category + the first value field produce { name, value }; only one value field is needed","echarts.notes.doughnut":"Doughnut: pie + radius:[inner, outer]; the inner radius is configured in the panel","echarts.notes.scatter":"Scatter: the category field is x, the first value field is y; when chartBubble is on, the second value field is the point size","echarts.notes.radar":"Radar: each value field is a dimension (radar.indicator), each data row is a series (the category field is the series name); the radius is written by the panel to radar.radius (%, default 75)","echarts.notes.funnel":"Funnel: category + the first value field, sorted descending; the four insets are written by the panel to series.left/right/top/bottom (%, reserve room on the right for outer labels)","echarts.notes.gauge":"Gauge: the first value field of the first data row is the pointer value; min/max are written by the panel to series[0].min/max"}},M6={echarts:{"echarts.panel.chart":"แผนภูมิ","echarts.panel.config":"การกำหนดค่า","echarts.panel.dataSource":"แหล่งข้อมูล","echarts.panel.category":"หมวดหมู่","echarts.panel.value":"ค่า","echarts.panel.series":"ชุดข้อมูล","echarts.panel.chartType.bar":"แท่ง","echarts.panel.chartType.barH":"แท่งแนวนอน","echarts.panel.chartType.line":"เส้น","echarts.panel.chartType.area":"พื้นที่","echarts.panel.chartType.pie":"วงกลม","echarts.panel.chartType.doughnut":"วงกลมวงแหวน","echarts.panel.chartType.scatter":"จุดกระจาย","echarts.panel.chartType.radar":"เรดาร์","echarts.panel.chartType.funnel":"ช่องทาง","echarts.panel.chartType.gauge":"เกจวัด","echarts.panel.dataLabel":"ป้ายข้อมูล","echarts.panel.valueLabel":"ป้ายค่า","echarts.panel.hint.dataBinding":"ข้อมูลถูกแทรกตอนผูกเทมเพลต; คงตัวแทน `$data` ไว้ในข้อมูล series/xAxis; สามารถเขียนสไตล์ขั้นสูงใน chartOption ของ JSON เทมเพลตได้","echarts.panel.field.dimension":"ฟิลด์มิติ (หนึ่งฟิลด์ต่อหนึ่งมิติ)","echarts.panel.field.value":"ฟิลด์ค่า","echarts.panel.field.valueMulti":"ฟิลด์ค่า (หลายค่า หลายชุดข้อมูล)","echarts.panel.default":"(ค่าเริ่มต้น)","echarts.panel.current":"(ปัจจุบัน)","echarts.panel.defaultFirstArray":"(ค่าเริ่มต้น: อาร์เรย์ระดับบนตัวแรก)","echarts.panel.error.invalidOption":"ตัวเลือกแผนภูมิไม่ถูกต้อง: คาดว่าเป็นอ็อบเจกต์","echarts.panel.chartFallback":"แผนภูมิ","echarts.panel.optionDefault":"(ค่าเริ่มต้น)","echarts.panel.overflow.default":"ค่าเริ่มต้น","echarts.panel.overflow.none":"ไม่มี (แสดงทั้งหมด)","echarts.panel.overflow.truncate":"ตัดทิ้ง","echarts.panel.overflow.break":"ตัดคำ","echarts.panel.fontWeight.default":"ค่าเริ่มต้น","echarts.panel.fontWeight.normal":"ปกติ","echarts.panel.fontWeight.bold":"หนา","echarts.panel.label.distance":"ระยะห่าง","echarts.panel.label.rotate":"การหมุน (องศา)","echarts.panel.label.fontSize":"ขนาดฟอนต์","echarts.panel.label.fontWeight":"น้ำหนักฟอนต์","echarts.panel.label.color":"สีข้อความ","echarts.panel.label.backgroundColor":"สีพื้นหลัง","echarts.panel.label.borderColor":"สีเส้นขอบ","echarts.panel.label.borderWidth":"ความกว้างเส้นขอบ","echarts.panel.label.borderRadius":"รัศมี","echarts.panel.label.padding":"ระยะภายใน","echarts.panel.label.show":"แสดงป้ายข้อมูล","echarts.panel.label.content":"เนื้อหา","echarts.panel.label.formatterTitle":"เนื้อหาป้ายข้อมูล","echarts.panel.label.formatterCustom":"กำหนดเอง / ค่าเริ่มต้น","echarts.panel.label.formatterPlaceholder":"เช่น {b}: {c}","echarts.panel.label.overflow":"ล้น","echarts.panel.label.position":"ตำแหน่ง","echarts.panel.label.positionTitle":"ตำแหน่งป้าย","echarts.panel.label.positionDefault":"ค่าเริ่มต้น","echarts.panel.label.offset":"ออฟเซ็ต X / Y","echarts.panel.label.style":"สไตล์","echarts.panel.labelLine.fontWeight":"น้ำหนักฟอนต์","echarts.panel.labelLine":"เส้นป้าย","echarts.panel.labelLine.show":"แสดงเส้นป้าย","echarts.panel.labelLine.length":"ความยาวเส้นป้าย","echarts.panel.labelLine.length2":"ความยาวท่อนที่สอง","echarts.panel.labelLine.smooth":"เส้นป้ายโค้ง","echarts.panel.dataSourceTitle":"แหล่งข้อมูล","echarts.panel.categoryField":"ฟิลด์หมวดหมู่","echarts.panel.removeField":"ลบฟิลด์นี้","echarts.panel.addField":"+ เพิ่มฟิลด์","echarts.panel.seriesField":"ฟิลด์แยกชุดข้อมูล","echarts.panel.seriesFieldHint":"ไม่บังคับ เช่น region (แยกเป็นชุดข้อมูลตามค่า)","echarts.panel.bubbleSize":"ขนาดฟอง","echarts.panel.title":"ชื่อแผนภูมิ","echarts.panel.titleHint":"เว้นว่างเพื่อซ่อนชื่อ","echarts.panel.legend":"แสดงคำอธิบาย","echarts.panel.palette":"ชุดสี","echarts.palette.default":"สีน้ำเงินเริ่มต้น","echarts.palette.fresh":"สีเขียวสดชื่น","echarts.palette.warm":"สีส้มแดงอบอุ่น","echarts.palette.purple":"สีมูฟเทา","echarts.panel.stack":"ซ้อนกัน","echarts.panel.innerRadius":"รัศมีใน (%)","echarts.panel.paddingTRBL":"ระยะบน/ขวา/ล่าง/ซ้าย (%)","echarts.panel.paddingTop":"ระยะบน","echarts.panel.paddingRight":"ระยะขวา (สำหรับป้ายด้านนอก)","echarts.panel.paddingBottom":"ระยะล่าง","echarts.panel.paddingLeft":"ระยะซ้าย","echarts.panel.radius":"รัศมี (%)","echarts.panel.minMax":"ต่ำสุด / สูงสุด","echarts.panel.group":"แผนภูมิ","echarts.series.typeNames.bar":"แผนภูมิแท่ง","echarts.series.typeNames.barH":"แผนภูมิแท่งแนวนอน","echarts.series.typeNames.line":"แผนภูมิเส้น","echarts.series.typeNames.area":"แผนภูมิพื้นที่","echarts.series.typeNames.pie":"แผนภูมิวงกลม","echarts.series.typeNames.doughnut":"แผนภูมิวงกลมวงแหวน","echarts.series.typeNames.scatter":"แผนภูมิกระจาย","echarts.series.typeNames.radar":"แผนภูมิเรดาร์","echarts.series.typeNames.funnel":"แผนภูมิช่องทาง","echarts.series.typeNames.gauge":"แผนภูมิเกจวัด","echarts.label.formatter.value":"ค่า","echarts.label.formatter.nameValue":"ชื่อ: ค่า","echarts.label.formatter.name":"ชื่อ","echarts.label.formatter.percent":"เปอร์เซ็นต์","echarts.label.position.bar.top":"บน","echarts.label.position.bar.inside":"ด้านใน","echarts.label.position.bar.insideTop":"ด้านในบน","echarts.label.position.bar.bottom":"ล่าง","echarts.label.position.bar.insideBottom":"ด้านในล่าง","echarts.label.position.bar.right":"ขวา","echarts.label.position.bar.left":"ซ้าย","echarts.label.position.bar.middle":"กลาง","echarts.label.position.line.top":"บน","echarts.label.position.line.bottom":"ล่าง","echarts.label.position.line.inside":"ด้านใน","echarts.label.position.line.left":"ซ้าย","echarts.label.position.line.right":"ขวา","echarts.label.position.pie.outside":"ด้านนอก","echarts.label.position.pie.inside":"ด้านใน","echarts.label.position.pie.center":"กลาง","echarts.label.position.scatter.top":"บน","echarts.label.position.scatter.bottom":"ล่าง","echarts.label.position.scatter.left":"ซ้าย","echarts.label.position.scatter.right":"ขวา","echarts.label.position.scatter.inside":"ด้านใน","echarts.label.position.radar.top":"บน","echarts.label.position.radar.bottom":"ล่าง","echarts.label.position.radar.left":"ซ้าย","echarts.label.position.radar.right":"ขวา","echarts.label.position.radar.inside":"ด้านใน","echarts.label.position.funnel.outer":"ด้านนอก","echarts.label.position.funnel.inner":"ด้านใน","echarts.label.position.funnel.left":"ซ้าย","echarts.label.position.funnel.right":"ขวา","echarts.label.position.funnel.top":"บน","echarts.label.position.funnel.bottom":"ล่าง","echarts.meta.chartOption":"ตัวเลือกแผนภูมิ","echarts.meta.dataSource":"แหล่งข้อมูล","echarts.meta.categoryField":"ฟิลด์หมวดหมู่","echarts.meta.valueFields":"ฟิลด์ค่า","echarts.meta.seriesField":"ฟิลด์แยกชุดข้อมูล","echarts.meta.bubbleSize":"ขนาดฟอง","echarts.notes.bar":"แผนภูมิแท่ง: หมวดหมู่ + ฟิลด์ค่าหลายตัว หนึ่งฟิลด์ต่อหนึ่ง series; เขียนตัวแทน $data ใน series[].data; ความสูงคงที่ ห้ามใช้ autoHeight","echarts.notes.barH":"แท่งแนวนอน: xAxis เป็นแกนค่า yAxis เป็นแกนหมวดหมู่; เขียนตัวแทน $data ใน yAxis.data สำหรับหมวดหมู่","echarts.notes.line":"แผนภูมิเส้น: หมวดหมู่ + ฟิลด์ค่าหลายตัว; ไม่เขียน areaStyle","echarts.notes.area":"แผนภูมิพื้นที่: เส้น + series[].areaStyle; นอกนั้นเหมือนแผนภูมิเส้น","echarts.notes.pie":"แผนภูมิวงกลม: หมวดหมู่ + ฟิลด์ค่าตัวแรกสร้าง { name, value }; ต้องการเพียงหนึ่งฟิลด์ค่า","echarts.notes.doughnut":"วงกลมวงแหวน: วงกลม + radius:[รัศมีใน, รัศมีนอก]; รัศมีในกำหนดในแผง","echarts.notes.scatter":"แผนภูมิกระจาย: ฟิลด์หมวดหมู่เป็น x ฟิลด์ค่าตัวแรกเป็น y; เมื่อเปิด chartBubble ฟิลด์ค่าตัวที่สองเป็นขนาดจุด","echarts.notes.radar":"แผนภูมิเรดาร์: ฟิลด์ค่าทุกตัวคือหนึ่งมิติ (radar.indicator) ข้อมูลแต่ละแถวคือหนึ่ง series (ฟิลด์หมวดหมู่เป็นชื่อ series); รัศมีเขียนโดยแผงไปที่ radar.radius (%, ค่าเริ่มต้น 75)","echarts.notes.funnel":"แผนภูมิช่องทาง: หมวดหมู่ + ฟิลด์ค่าตัวแรก เรียงตามค่าลงมา; ระยะภายในสี่ด้านเขียนโดยแผงไปที่ series.left/right/top/bottom (%, เผื่อพื้นที่ด้านขวาสำหรับป้ายด้านนอก)","echarts.notes.gauge":"แผนภูมิเกจวัด: ฟิลด์ค่าตัวแรกของแถวข้อมูลแรกเป็นค่าผลักดัน; min/max เขียนโดยแผงไปที่ series[0].min/max"}},$P=Symbol.for("worm-print-platform.element-ui-registry.v1"),YP=globalThis;function KP(){const t=YP[$P];if(t)return t;const e={entries:new Map,listeners:new Set,nextSeq:0};return YP[$P]=e,e}function XP(){for(const t of[...KP().listeners])try{t()}catch{}}function qP(t){if(!t||typeof t!="object")throw new Error("registerElementUI: 需要 ElementUI 对象");if(!Array.isArray(t.types)||t.types.length===0)throw new Error("registerElementUI: types 必须是非空数组");for(const e of t.types)if(!e||typeof e!="string")throw new Error("registerElementUI: types 内每项必须是非空字符串");if(typeof t.renderCanvas!="function")throw new Error(`registerElementUI: ${t.types.join(",")} 缺少 renderCanvas`);if(t.renderProperty!==void 0&&typeof t.renderProperty!="function")throw new Error(`registerElementUI: ${t.types.join(",")} 的 renderProperty 必须是函数`);if(t.locales!==void 0){if(typeof t.locales!="object"||t.locales===null)throw new Error("registerElementUI: locales 必须是对象");const e=`${t.i18nId??t.types[0]}.`;for(const r of Object.values(t.locales)){if(typeof r!="object"||r===null)throw new Error("registerElementUI: locales 的每个语言包必须是对象");for(const a of Object.keys(r))if(!a.startsWith(e))throw new Error(`registerElementUI: 语言包键必须以 "${e}" 开头,收到 "${a}"`)}}}function E6(t){return qP(t),t}function I6(t){qP(t);const e=KP(),r=e.nextSeq++,a=t.i18nId??t.types[0],n=t.locales?Object.entries(t.locales).map(([i,o])=>YS(i,a,o)):[];for(const i of t.types)e.entries.set(i,{ui:t,seq:r,disposeLocales:n});return XP(),()=>{for(const o of n)o();let i=!1;for(const o of t.types)e.entries.get(o)?.ui===t&&(e.entries.delete(o),i=!0);i&&XP()}}function it(t,e={},r=[]){return{tag:t,props:e,children:r}}var jP="http://www.w3.org/2000/svg",O6=new Set(["draggable","contenteditable","spellcheck"]),R6=new Set(["indeterminate"]);function B6(t){return t==="svg"||t==="path"||t==="circle"||t==="rect"||t==="line"||t==="g"}function N6(t){return t instanceof Element&&t.namespaceURI===jP}function Rv(t,e){if(typeof t=="string"){const o=document.createTextNode(t);return e.appendChild(o),o}if(t instanceof Node)return e.appendChild(t),t;const{tag:r,props:a,children:n}=t,i=B6(r)||N6(e)?document.createElementNS(jP,r):document.createElement(r);for(const[o,s]of Object.entries(a))if(!(s==null||s===!1))if(o==="class")i.setAttribute("class",String(s));else if(o==="style")typeof s=="string"?i.style.cssText=s:Object.assign(i.style,s);else if(o==="html")i.innerHTML=String(s);else if(o==="text")i.textContent=String(s);else if(o.startsWith("on")&&typeof s=="function")i.addEventListener(o.slice(2).toLowerCase(),s);else if(o==="dataset")for(const[l,u]of Object.entries(s))i.dataset[l]=u;else R6.has(o)?i[o]=!0:typeof s=="boolean"?s&&i.setAttribute(o,O6.has(o)?"true":""):i.setAttribute(o,String(s));for(const o of n)Rv(o,i);return e.appendChild(i),i}var Pn=null;function Bv(t){const e=/^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(t.trim());if(!e)return null;const r=e[1],a=r.length===3?r.split("").map(n=>n+n).join(""):r;return{r:Number.parseInt(a.slice(0,2),16),g:Number.parseInt(a.slice(2,4),16),b:Number.parseInt(a.slice(4,6),16)}}function Nv(t){const e=Bv(t);return e?ZP(e):"#000000"}function ZP({r:t,g:e,b:r}){return`#${[t,e,r].map(a=>Math.round(ys(a/255)*255).toString(16).padStart(2,"0")).join("")}`}function F6(t,e,r){const a=t/255,n=e/255,i=r/255,o=Math.max(a,n,i),s=Math.min(a,n,i),l=o-s;let u=0;return l!==0&&(o===a?u=(n-i)/l%6:o===n?u=(i-a)/l+2:u=(a-n)/l+4,u*=60,u<0&&(u+=360)),{h:u,s:o===0?0:l/o,v:o}}function z6(t,e,r){const a=r*e,n=(t%360+360)%360/60,i=a*(1-Math.abs(n%2-1)),[o,s,l]=n<1?[a,i,0]:n<2?[i,a,0]:n<3?[0,a,i]:n<4?[0,i,a]:n<5?[i,0,a]:[a,0,i],u=r-a;return{r:(o+u)*255,g:(s+u)*255,b:(l+u)*255}}function H6(t){return((Number.isFinite(t)?t:0)%360+360)%360}function ys(t){return Math.min(1,Math.max(0,Number.isFinite(t)?t:0))}function V6(t){const e=t.translator??Zt,r=t.title??e("colorPicker.pickColor");return it("button",{type:"button",class:`preset-color-trigger${t.triggerClass?` ${t.triggerClass}`:""}`,"aria-expanded":"false","aria-haspopup":"dialog",title:r,onClick:a=>{const n=a.currentTarget??a.target,i=n.getRootNode();if(!!Pn&&Pn.root===i&&Pn.title===r&&Pn.trigger===n){bs();return}bs(),U6(n,t,e)}},[it("span",{class:"preset-color-swatch",style:t.value?{background:t.value}:{background:"transparent"}})])}function bs(){const t=Pn;t&&(Pn=null,t.teardowns.forEach(e=>e()),t.trigger.setAttribute("aria-expanded","false"),t.panel.remove())}function U6(t,e,r){const a=t.getRootNode(),n=a instanceof ShadowRoot?a:document.body,i={root:a,title:e.title??r("colorPicker.pickColor"),trigger:t,panel:null,clearable:e.clearable!==!1,onChange:e.onChange,model:e.value||void 0,hue:0,saturation:0,value_:0,hexText:"",dragging:!1,current:null,hex:null,area:null,handle:null,hueRange:null,clearBtn:null,translator:r,items:[],teardowns:[]};e.value&&zv(i,e.value)?i.hexText=Nv(e.value).toUpperCase():i.hexText=e.value?String(e.value):"",i.panel=Rv(Y6(i),n),i.current=i.panel.querySelector(".picker-current"),i.hex=i.panel.querySelector(".picker-hex"),i.area=i.panel.querySelector(".picker-area"),i.handle=i.panel.querySelector(".picker-handle"),i.hueRange=i.panel.querySelector(".picker-hue"),i.clearBtn=i.panel.querySelector(".picker-clear"),i.items=Array.from(i.panel.querySelectorAll(".preset-color-item")).map((o,s)=>({el:o,color:Sg[s]})),yp(i),G6(i),W6(i),Pn=i,t.setAttribute("aria-expanded","true")}function G6(t){const e=t.trigger.getBoundingClientRect(),r=190,a=t.panel.offsetHeight||216,n=8,i=Math.max(n,Math.min(e.left,window.innerWidth-r-n)),o=e.bottom+6,s=o+a>window.innerHeight-n?Math.max(n,e.top-a-6):o;t.panel.style.left=`${i}px`,t.panel.style.top=`${s}px`}function W6(t){const e=n=>{const i=$6(n);i.includes(t.trigger)||i.includes(t.panel)||bs()},r=n=>{n.key==="Escape"&&bs()},a=()=>bs();document.addEventListener("pointerdown",e,!0),document.addEventListener("keydown",r),window.addEventListener("scroll",a,!0),window.addEventListener("resize",a),t.root.addEventListener("scroll",a,!0),t.teardowns.push(()=>document.removeEventListener("pointerdown",e,!0),()=>document.removeEventListener("keydown",r),()=>window.removeEventListener("scroll",a,!0),()=>window.removeEventListener("resize",a),()=>t.root.removeEventListener("scroll",a,!0))}function $6(t){const e=typeof t.composedPath=="function"?t.composedPath():[];return e.length?e:[t.target]}function Y6(t){const e=t.translator;return it("div",{class:"preset-color-panel",role:"dialog","aria-label":e("colorPicker.pickColor"),style:{position:"fixed"},onPointerdown:r=>r.stopPropagation()},[it("div",{class:"picker-preview"},[it("span",{class:"picker-current"}),it("input",{class:"picker-hex",type:"text",maxlength:7,spellcheck:"false","aria-label":e("colorPicker.hexValue"),onInput:r=>X6(t,r.target.value)})]),it("div",{class:"picker-area","aria-label":e("colorPicker.customColor"),tabindex:0,onPointerdown:r=>q6(t,r),onKeydown:r=>j6(t,r)},[it("span",{class:"picker-handle"})]),it("input",{class:"picker-hue",type:"range",min:0,max:360,step:1,"aria-label":e("colorPicker.hue"),onInput:r=>Z6(t,Number(r.target.value)),onChange:()=>Hv(t)}),it("div",{class:"picker-heading"},[it("span",{text:e("colorPicker.commonColors")}),t.clearable?it("button",{type:"button",class:"picker-clear",title:e("colorPicker.clear"),onClick:()=>bp(t,void 0)},[it("svg",{viewBox:"0 0 16 16",width:12,height:12,"aria-hidden":"true"},[it("path",{d:"M3 3l10 10M13 3L3 13",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round",fill:"none"})]),e("colorPicker.clearShort")]):""].filter(Boolean)),it("div",{class:"preset-color-grid"},Sg.map(r=>it("button",{type:"button",class:"preset-color-item",style:{background:r},title:r,"aria-label":r,onClick:()=>K6(t,r)})))])}function Fv(t){return ZP(z6(t.hue,t.saturation,t.value_))}function yp(t){const e=Fv(t);t.hex.value!==t.hexText&&(t.hex.value=t.hexText),t.current.className=t.model?"picker-current":"picker-current is-empty",t.model?t.current.style.background=e:t.current.style.removeProperty("background"),t.area.style.setProperty("--picker-hue",`${Math.round(t.hue)}deg`),t.handle.style.left=`${t.saturation*100}%`,t.handle.style.top=`${(1-t.value_)*100}%`,t.handle.style.background=e;const r=String(Math.round(t.hue));t.hueRange.value!==r&&(t.hueRange.value=r),t.clearBtn&&(t.clearBtn.disabled=!t.model);for(const a of t.items)a.el.className=t.model&&a.color.toLowerCase()===t.model.toLowerCase()?"preset-color-item active":"preset-color-item"}function zv(t,e){const r=Bv(e);if(!r)return!1;const a=F6(r.r,r.g,r.b);return t.hue=a.h,t.saturation=a.s,t.value_=a.v,t.hexText=Nv(e).toUpperCase(),!0}function Mi(t,e,r,a){t.hue=H6(e),t.saturation=ys(r),t.value_=ys(a),t.hexText=Fv(t).toUpperCase(),yp(t)}function Hv(t){const e=Fv(t);t.model=e,yp(t),t.onChange(e)}function bp(t,e){t.model=e,e||(t.hexText=""),yp(t),t.onChange(e)}function K6(t,e){zv(t,e),bp(t,e)}function X6(t,e){const r=e.trim();if(!r){t.clearable&&bp(t,void 0);return}Bv(r)&&(zv(t,r),bp(t,Nv(r)))}function q6(t,e){t.dragging=!0,QP(t,e);const r=n=>{t.dragging&&QP(t,n)},a=()=>{t.dragging&&(t.dragging=!1,document.removeEventListener("pointermove",r),document.removeEventListener("pointerup",a),document.removeEventListener("pointercancel",a),Hv(t))};document.addEventListener("pointermove",r),document.addEventListener("pointerup",a),document.addEventListener("pointercancel",a)}function QP(t,e){const r=t.area.getBoundingClientRect();if(!r.width||!r.height)return;const a=ys((e.clientX-r.left)/r.width),n=ys(1-(e.clientY-r.top)/r.height);Mi(t,t.hue,a,n)}function j6(t,e){const r=e.shiftKey?.1:.02;let a=!0;e.key==="ArrowLeft"?Mi(t,t.hue,t.saturation-r,t.value_):e.key==="ArrowRight"?Mi(t,t.hue,t.saturation+r,t.value_):e.key==="ArrowUp"?Mi(t,t.hue,t.saturation,t.value_+r):e.key==="ArrowDown"?Mi(t,t.hue,t.saturation,t.value_-r):a=!1,a&&(e.preventDefault(),Hv(t))}function Z6(t,e){Mi(t,e,t.saturation,t.value_)}let kp=Zt;const X=(t,e)=>kp(t,e);function Q6(t,e){const r=kp;kp=t??Zt;try{return e()}finally{kp=r}}const JP="width:100%;height:100%;min-width:0;min-height:0;pointer-events:none",J6=[".echarts-canvas-element{overflow:hidden}",".echarts-field-row{display:flex;gap:6px;align-items:center}",".echarts-field-row>.pd-input{flex:1;min-width:0}",".echarts-field-row>.pd-button{flex:none}",".echarts-dropdown-trigger{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;height:26px;min-height:26px;padding:3px 6px;border:1px solid var(--pd-border,#d9dde6);border-radius:6px;background:var(--pd-input-bg,#fff);color:inherit;font:inherit;box-sizing:border-box;cursor:pointer;text-align:left}",".echarts-dropdown-trigger:hover{border-color:var(--pd-text-faint,#b4b9c4)}",'.echarts-dropdown-trigger[aria-expanded="true"]{border-color:var(--pd-accent,#165dff);box-shadow:0 0 0 2px rgb(22 93 255 / 12%)}',".echarts-dropdown-value{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",".echarts-dropdown-arrow{flex:none;color:var(--pd-text-muted,#909399);font-size:10px;transition:transform .14s}",'.echarts-dropdown-trigger[aria-expanded="true"] .echarts-dropdown-arrow{transform:rotate(180deg)}',".echarts-dropdown-panel{position:fixed;z-index:1200;max-height:240px;overflow:auto;padding:3px;border:1px solid var(--pd-border,#d9dde6);border-radius:6px;background:var(--pd-input-bg,#fff);box-shadow:0 6px 18px rgb(0 0 0 / 14%);box-sizing:border-box}",".echarts-dropdown-option{padding:5px 8px;border-radius:4px;cursor:pointer;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}",".echarts-dropdown-option:hover{background:var(--pd-accent-soft,rgb(22 93 255 / 9%))}",".echarts-dropdown-option.is-active{background:var(--pd-accent-soft,rgb(22 93 255 / 9%));color:var(--pd-accent,#165dff)}",".echarts-label-group{margin-top:8px;border-top:1px solid var(--pd-border,#e5e7eb);padding-top:8px}",".echarts-label-group>summary{display:flex;align-items:center;cursor:pointer;list-style:none;font-size:12px;font-weight:600}",".echarts-label-summary>.pd-field{flex:1;margin:0;font-weight:400}",".echarts-label-sub{font-size:11px;color:var(--pd-text-secondary,#6b7280);margin:8px 0 4px}"].join(""),eF=["chartOption","chartDataSource","chartCategoryField","chartValueFields","chartSeriesField","chartBubble"],tF=["图表","echarts","option","配置","数据源","类目","数值","系列","柱状","条形","折线","面积","饼","环形","散点","雷达","漏斗","仪表","数据标签","数值标签","label"],rF=()=>X("echarts.panel.hint.dataBinding");function aF(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Vv(t){return t.printElementType?.type??""}function eS(t){const e=t.options.chartOption;return e&&typeof e=="object"&&!Array.isArray(e)?e:void 0}function Le(t){const e=eS(t);return Ai(e??Os(Vv(t)))}function nF(t){const e=t?.options;if(!e||typeof e!="object")return!1;const r=e;return eF.some(a=>r[a]!==void 0)}function vt(t,e,r,a={}){t.update({chartOption:gp(e,r),...a})}function wp(t){const e=t.options.chartValueFields;return Array.isArray(e)?e.map(String):[]}function iF(t){switch(t?.seriesType){case"pie":case"funnel":case"gauge":return 1;case"scatter":return 2;default:return 8}}function oF(t,e){return t?.seriesType==="radar"?X("echarts.panel.field.dimension"):X(e===1?"echarts.panel.field.value":"echarts.panel.field.valueMulti")}function sF(t,e){const r=t?.[0],a=r?Object.keys(r).filter(n=>Array.isArray(r[n])):[];for(const n of e??[])n.fieldType==="list"&&n.fieldKey&&!a.includes(n.fieldKey)&&a.push(n.fieldKey);return a}function tS(t,e){const r=t?.[0];if(!r)return[];const a=e?Array.isArray(r[e])?e:"":Object.keys(r).find(i=>Array.isArray(r[i]));if(!a)return[];const n=r[a];return n.length>0&&typeof n[0]=="object"&&n[0]!==null?Object.keys(n[0]):[]}function lF(t){const e=new Map;for(const r of t??[])r.fieldKey&&r.fieldLabel&&e.set(r.fieldKey,r.fieldLabel);return e}function rS(t,e,r){if(!t)return r??X("echarts.panel.default");const a=e.get(t),n=a?`${a}(${t})`:t;return r?`${n}${r}`:n}function Uv(t,e,r=new Map){const a=t.map(n=>({value:n,label:rS(n,r)}));return e&&!t.includes(e)&&a.unshift({value:e,label:rS(e,r,X("echarts.panel.current"))}),e||a.unshift({value:"",label:X("echarts.panel.defaultFirstArray")}),a}function Sn(t){return Array.isArray(t.series)?t.series:[]}function Gv(t,e,r){return Math.min(r,Math.max(e,t))}function Wv(t,e,r){const a=r6(Le(t.element),r.length,e);(Array.isArray(a.series)?a.series:[]).forEach((i,o)=>{const s=r[o]?.trim();s&&(i.name=s)}),vt(t,e,a,{chartValueFields:r})}function uF(t){const e=t.element,r=Vv(e),a=e.options,n=Number(a.width)||0,i=Number(a.height)||0;try{const o=e6(r,eS(e)??Os(r)),s=gp(r,o);if(!s||typeof s!="object"||Array.isArray(s))throw new Error(X("echarts.panel.error.invalidOption"));const l=typeof a.fontFamily=="string"&&a.fontFamily?a.fontFamily:void 0,u=Iv({key:e.id,type:r,option:s,widthMm:n,heightMm:i,fontFamily:l});return`<div class="echarts-canvas-element" style="${JP}">${u}</div>`}catch{const o=typeof a.title=="string"&&a.title.trim()?a.title:Je(r)?.label??X("echarts.panel.chartFallback");return`<div class="echarts-canvas-element" style="${JP}">${aF(o)}</div>`}}function xe(t,e,r){const a=document.createElement(t);return e&&(a.className=e),r!==void 0&&(a.textContent=r),a}function Ge(t){const e=xe("div","pd-field");return e.appendChild(xe("span","pd-label",t)),e}function At(t,e){const r=xe("input","pd-input");return t.type&&(r.type=t.type),t.placeholder&&(r.placeholder=t.placeholder),t.min!==void 0&&(r.min=String(t.min)),t.max!==void 0&&(r.max=String(t.max)),t.title&&(r.title=t.title),t.list&&r.setAttribute("list",t.list),r.value=t.value,r.addEventListener("change",()=>e(r.value)),r}function Ei(t,e,r){const a=Ge(t);a.style.cssText="flex-direction:row;align-items:center;justify-content:space-between";const n=xe("input","pd-switch");return n.type="checkbox",n.checked=e,n.addEventListener("change",()=>r(n.checked)),a.appendChild(n),a}function _p(t,e,r){const a=xe("select","pd-select");for(const n of t){const i=xe("option");i.value=n.value,i.textContent=n.label,a.appendChild(i)}return a.value=e,a.addEventListener("change",()=>r(a.value)),a}let xp=null;function pF(t){const e=typeof t.composedPath=="function"?t.composedPath():[];return e.length?e:[t.target]}function $v(t,e,r){const a=t.find(c=>c.value===e)??{label:e||X("echarts.panel.optionDefault")},n=xe("button","echarts-dropdown-trigger");n.type="button",n.setAttribute("aria-haspopup","listbox"),n.setAttribute("aria-expanded","false");const i=xe("span","echarts-dropdown-value",a.label),o=xe("span","echarts-dropdown-arrow","▾");n.appendChild(i),n.appendChild(o);let s=null,l=[];const u=()=>{l.forEach(c=>c()),l=[],s?.remove(),s=null,n.setAttribute("aria-expanded","false"),xp?.close===u&&(xp=null)},p=()=>{xp?.close();const c=n.getRootNode(),f=c instanceof ShadowRoot?c:document.body;s=xe("div","echarts-dropdown-panel"),s.setAttribute("role","listbox");for(const g of t){const y=xe("div",`echarts-dropdown-option${g.value===e?" is-active":""}`,g.label);y.setAttribute("role","option"),y.setAttribute("aria-selected",g.value===e?"true":"false"),y.addEventListener("click",b=>{b.stopPropagation(),u(),r(g.value)}),s.appendChild(y)}f.appendChild(s);const h=n.getBoundingClientRect();s.style.left=`${h.left}px`,s.style.top=`${h.bottom+4}px`,s.style.minWidth=`${h.width}px`,n.setAttribute("aria-expanded","true"),xp={close:u};const d=g=>{const y=pF(g);y.includes(n)||y.includes(s)||u()},v=g=>{g.key==="Escape"&&u()},m=()=>u();document.addEventListener("pointerdown",d,!0),document.addEventListener("keydown",v),window.addEventListener("scroll",m,!0),window.addEventListener("resize",m),c.addEventListener("scroll",m,!0),l.push(()=>document.removeEventListener("pointerdown",d,!0),()=>document.removeEventListener("keydown",v),()=>window.removeEventListener("scroll",m,!0),()=>window.removeEventListener("resize",m),()=>c.removeEventListener("scroll",m,!0))};return n.addEventListener("click",c=>{c.stopPropagation(),s?u():p()}),n}const cF=()=>[{value:"",label:X("echarts.panel.overflow.default")},{value:"none",label:X("echarts.panel.overflow.none")},{value:"truncate",label:X("echarts.panel.overflow.truncate")},{value:"break",label:X("echarts.panel.overflow.break")}],fF=()=>[{value:"",label:X("echarts.panel.fontWeight.default")},{value:"normal",label:X("echarts.panel.fontWeight.normal")},{value:"bold",label:X("echarts.panel.fontWeight.bold")}],hF=()=>({distance:X("echarts.panel.label.distance"),rotate:X("echarts.panel.label.rotate"),fontSize:X("echarts.panel.label.fontSize"),fontWeight:X("echarts.panel.label.fontWeight"),color:X("echarts.panel.label.color"),backgroundColor:X("echarts.panel.label.backgroundColor"),borderColor:X("echarts.panel.label.borderColor"),borderWidth:X("echarts.panel.label.borderWidth"),borderRadius:X("echarts.panel.label.borderRadius"),padding:X("echarts.panel.label.padding")});function dF(t,e){const r=t.element,a=Je(e),n=v6(e),i=g=>n.includes(g),o=g6(Le(r),e),s=hF(),l=g=>{vt(t,e,y6(Le(r),e,g))},u=(g,y)=>{if(y.trim()==="")return l({[g]:null});const b=Number(y);Number.isFinite(b)&&l({[g]:b})},p=(g,y)=>{if(y.trim()==="")return l({labelLine:{[g]:null}});const b=Number(y);Number.isFinite(b)&&l({labelLine:{[g]:b}})},c=(g,y)=>{const b=Ge(s[g]??g);return b.appendChild(At({value:y===void 0?"":String(y),type:"number"},k=>u(g,k))),b},f=(g,y)=>{const b=Ge(s[g]??g),k=xe("span");return Rv(V6({value:y??"",title:s[g]??g,translator:t.t,onChange:w=>l({[g]:w??""})}),k),b.appendChild(k),b},h=xe("details","echarts-label-group");h.open=o.show;const d=xe("summary","echarts-label-summary"),v=Ei(X("echarts.panel.label.show"),o.show,g=>l({enabled:g}));if(v.querySelector("input")?.addEventListener("click",g=>g.stopPropagation()),d.appendChild(v),h.appendChild(d),i("formatter")||i("overflow")){if(h.appendChild(xe("div","echarts-label-sub",X("echarts.panel.label.content"))),i("formatter")){const g=Ge(X("echarts.panel.label.formatterTitle"));g.appendChild(_p([{value:"",label:X("echarts.panel.label.formatterCustom")},...s6.map(y=>({value:y.formatter,label:X(y.labelKey)}))],o.formatter??"",y=>l({formatter:y}))),g.appendChild(At({value:o.formatter??"",placeholder:X("echarts.panel.label.formatterPlaceholder")},y=>l({formatter:y}))),h.appendChild(g)}if(i("overflow")){const g=Ge(X("echarts.panel.label.overflow"));g.appendChild(_p(cF(),o.overflow??"",y=>l({overflow:y}))),h.appendChild(g)}}if(i("position")||i("distance")||i("rotate")||i("offset")){if(h.appendChild(xe("div","echarts-label-sub",X("echarts.panel.label.position"))),i("position")){const g=Ge(X("echarts.panel.label.positionTitle")),y=a?l6[a.seriesType]??[]:[];g.appendChild(_p([{value:"",label:X("echarts.panel.label.positionDefault")},...y.map(b=>({value:b.value,label:X(b.labelKey)}))],o.position??"",b=>l({position:b}))),h.appendChild(g)}if(i("distance")&&h.appendChild(c("distance",o.distance)),i("rotate")&&h.appendChild(c("rotate",o.rotate)),i("offset")){let g=function(){const x=(T,C)=>{const P=T.value.trim();if(P==="")return 0;const S=Number(P);return Number.isFinite(S)?S:C};l({offset:[x(w,k[0]??0),x(_,k[1]??0)]})};const y=Ge(X("echarts.panel.label.offset")),b=xe("div","echarts-field-row"),k=o.offset??[0,0],w=At({value:String(k[0]??0),type:"number"},()=>g()),_=At({value:String(k[1]??0),type:"number"},()=>g());b.appendChild(w),b.appendChild(_),y.appendChild(b),h.appendChild(y)}}if(["fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"].some(i)){if(h.appendChild(xe("div","echarts-label-sub",X("echarts.panel.label.style"))),i("fontSize")&&h.appendChild(c("fontSize",o.fontSize)),i("fontWeight")){const g=Ge(X("echarts.panel.labelLine.fontWeight"));g.appendChild(_p(fF(),o.fontWeight??"",y=>l({fontWeight:y}))),h.appendChild(g)}for(const g of["color","backgroundColor","borderColor"])i(g)&&h.appendChild(f(g,o[g]));for(const g of["borderWidth","borderRadius","padding"])i(g)&&h.appendChild(c(g,o[g]))}if(i("labelLine.show")){if(h.appendChild(xe("div","echarts-label-sub",X("echarts.panel.labelLine"))),h.appendChild(Ei(X("echarts.panel.labelLine.show"),o.labelLine.show===!0,g=>l({labelLine:{show:g}}))),i("labelLine.length")){const g=Ge(X("echarts.panel.labelLine.length"));g.appendChild(At({value:o.labelLine.length===void 0?"":String(o.labelLine.length),type:"number"},y=>p("length",y))),h.appendChild(g)}if(i("labelLine.length2")){const g=Ge(X("echarts.panel.labelLine.length2"));g.appendChild(At({value:o.labelLine.length2===void 0?"":String(o.labelLine.length2),type:"number"},y=>p("length2",y))),h.appendChild(g)}i("labelLine.smooth")&&h.appendChild(Ei(X("echarts.panel.labelLine.smooth"),o.labelLine.smooth===!0,g=>l({labelLine:{smooth:g}})))}return h}function vF(t){return Q6(t.t,()=>gF(t))}function gF(t){const e=t.element,r=Vv(e),a=Je(r),n=Wg(r),i=d=>n.includes(d),o=e.options,s=Number(o.width)||0,l=Number(o.height)||0,u=iF(a),p=Qg(),c=lF(t.fields),f=xe("div","echarts-property"),h=xe("form","pd-form");if(h.addEventListener("submit",d=>d.preventDefault()),f.appendChild(h),i("dataSource")){const d=Ge(X("echarts.panel.dataSourceTitle")),v=String(o.chartDataSource??"");d.appendChild($v(Uv(sF(t.data,t.fields),v,c),v,m=>vt(t,r,Le(e),{chartDataSource:m}))),h.appendChild(d)}if(i("categoryField")){const d=Ge(X("echarts.panel.categoryField")),v=String(o.chartCategoryField??"");d.appendChild($v(Uv(tS(t.data,String(o.chartDataSource??"")),v,c),v,m=>vt(t,r,Le(e),{chartCategoryField:m}))),h.appendChild(d)}if(i("valueFields")){const d=Ge(oF(a,u)),v=wp(e);if(v.forEach((m,g)=>{const y=xe("div","echarts-field-row");if(y.appendChild($v(Uv(tS(t.data,String(o.chartDataSource??"")),m,c),m,b=>{const k=wp(e);k[g]=b,Wv(t,r,k)})),v.length>1){const b=xe("button","pd-button small","−");b.type="button",b.title=X("echarts.panel.removeField"),b.addEventListener("click",()=>Wv(t,r,wp(e).filter((k,w)=>w!==g))),y.appendChild(b)}d.appendChild(y)}),v.length<u){const m=xe("button","pd-button small",X("echarts.panel.addField"));m.type="button",m.addEventListener("click",()=>Wv(t,r,[...wp(e),""])),d.appendChild(m)}h.appendChild(d)}if(i("seriesField")){const d=Ge(X("echarts.panel.seriesField"));d.appendChild(At({value:String(o.chartSeriesField??""),placeholder:X("echarts.panel.seriesFieldHint")},v=>vt(t,r,Le(e),{chartSeriesField:v}))),h.appendChild(d)}if(i("bubble")&&h.appendChild(Ei(X("echarts.panel.bubbleSize"),o.chartBubble===!0,d=>{vt(t,r,Le(e),{chartBubble:d})})),i("title")){const d=Ge(X("echarts.panel.title"));d.appendChild(At({value:String(Li(Le(e).title).text??""),placeholder:X("echarts.panel.titleHint")},v=>{const m=Le(e);m.title={...Li(m.title),text:v},vt(t,r,m)})),h.appendChild(d)}if(i("legend")){const d=Li(Le(e).legend).show!==!1;h.appendChild(Ei(X("echarts.panel.legend"),d,v=>{const m=Le(e);m.legend={...Li(m.legend),show:v},vt(t,r,m)}))}if(i("palette")){const d=Ge(X("echarts.panel.palette")),v=xe("select","pd-select");for(const m of p){const g=xe("option");g.value=m.key,g.textContent=m.labelKey?X(m.labelKey):m.label,v.appendChild(g)}v.value=t6(Le(e),p),v.addEventListener("change",()=>{const m=p.find(y=>y.key===v.value)??p[0],g=Le(e);g.color=[...m.colors],vt(t,r,g)}),d.appendChild(v),h.appendChild(d)}if(i("label")&&h.appendChild(dF(t,r)),i("stack")){const v=Sn(Le(e)).some(m=>m.stack!==void 0&&m.stack!==null&&m.stack!=="");h.appendChild(Ei(X("echarts.panel.stack"),v,m=>{const g=Le(e);for(const y of Sn(g))m?y.stack="total":delete y.stack;vt(t,r,g)}))}if(i("innerRadius")){const d=Ge(X("echarts.panel.innerRadius")),v=Sn(Le(e))[0]?.radius,m=Array.isArray(v)&&Number(String(v[0]??"40%").replace("%",""))||40;d.appendChild(At({value:String(m),type:"number",min:0,max:90},g=>{const y=Le(e),b=Sn(y);b[0]&&(b[0].radius=[`${Gv(Number(g)||0,0,90)}%`,"70%"]),vt(t,r,y)})),h.appendChild(d)}if(i("padding")){const d=Ge(X("echarts.panel.paddingTRBL")),v=VP(Le(e),s,l),m=xe("div","echarts-field-row"),g=[{side:"top",title:X("echarts.panel.paddingTop")},{side:"right",title:X("echarts.panel.paddingRight")},{side:"bottom",title:X("echarts.panel.paddingBottom")},{side:"left",title:X("echarts.panel.paddingLeft")}];for(const{side:y,title:b}of g)m.appendChild(At({value:String(v[y]),type:"number",min:0,max:60,title:b},k=>{const w=Number(k),_=Number.isFinite(w)?Gv(w,0,60):qg[y],x=Le(e),T=VP(x,s,l);vt(t,r,n6(x,{...T,[y]:_}))}));d.appendChild(m),h.appendChild(d)}if(i("radius")){const d=Ge(X("echarts.panel.radius"));d.appendChild(At({value:String(i6(Le(e),s,l)),type:"number",min:20,max:100},v=>{const m=Number(v),g=Number.isFinite(m)?Gv(m,20,100):jg;vt(t,r,o6(Le(e),g))})),h.appendChild(d)}if(i("gaugeRange")){const d=Ge(X("echarts.panel.minMax")),v=Sn(Le(e)),m=xe("div","echarts-field-row");m.appendChild(At({value:String(Number(v[0]?.min??0)),type:"number"},g=>{const y=Le(e),b=Sn(y);b[0]&&(b[0].min=Number(g)||0),vt(t,r,y)})),m.appendChild(At({value:String(Number(v[0]?.max??100)),type:"number"},g=>{const y=Le(e),b=Sn(y);b[0]&&(b[0].max=Number(g)||100),vt(t,r,y)})),d.appendChild(m),h.appendChild(d)}return h.appendChild(xe("p","pd-hint",rF())),f}const mF=E6({types:Gg,renderCanvas:uF,renderProperty:vF,hasProperties:nF,group:X("echarts.panel.group"),searchKeywords:tF,styles:J6,i18nId:"echarts",locales:{"zh-CN":A6.echarts,"en-US":L6.echarts,"th-TH":M6.echarts}});let Yv;function yF(){return Yv?.(),Yv=I6(mF),Yv}yF();const bF={...D6};globalThis.WormPrintEcharts??=bF}));
|
|
44
|
+
`:"",n=" {"+a,i=a+"}",o=K(he(t),function(l){return l+n+K(he(t[l]),function(u){return u+":"+t[l][u]+";"}).join(a)+i}).join(a),s=K(he(e),function(l){return"@keyframes "+l+n+K(he(e[l]),function(u){return u+n+K(he(e[l][u]),function(p){var c=e[l][u][p];return p==="d"&&(c='path("'+c+'")'),p+":"+c+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function xv(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function mP(t,e,r,a){return We("svg","root",{width:t,height:e,xmlns:hP,"xmlns:xlink":dP,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+t+" "+e:!1},r)}var CN=0;function yP(){return CN++}var bP={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},wn="transform-origin";function DN(t,e,r){var a=H({},t.shape);H(a,e),t.buildPath(r,a);var n=new fP;return n.reset(jm(t)),r.rebuildPath(n,1),n.generateStr(),n.getStr()}function AN(t,e){var r=e.originX,a=e.originY;(r||a)&&(t[wn]=r+"px "+a+"px")}var LN={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function kP(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function MN(t,e,r){var a=t.shape.paths,n={},i,o;if(A(a,function(l){var u=xv(r.zrId);u.animation=!0,pp(l,{},u,!0);var p=u.cssAnims,c=u.cssNodes,f=he(p),h=f.length;if(h){o=f[h-1];var d=p[o];for(var v in d){var m=d[v];n[v]=n[v]||{d:""},n[v].d+=m.d||""}for(var g in c){var y=c[g].animation;y.indexOf(o)>=0&&(i=y)}}}),!!i){e.d=!1;var s=kP(n,r);return i.replace(o,s)}}function wP(t){return q(t)?bP[t]?"cubic-bezier("+bP[t]+")":wc(t)?t:"":""}function pp(t,e,r,a){var n=t.animators,i=n.length,o=[];if(t instanceof C0){var s=MN(t,e,r);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var p=n[u],c=[p.getMaxTime()/1e3+"s"],f=wP(p.getClip().easing),h=p.getDelay();f?c.push(f):c.push("linear"),h&&c.push(h/1e3+"s"),p.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(p)}function v(y){var b=y[1],k=b.length,w={},_={},x={},T="animation-timing-function";function C(Ee,de,Ce){for(var te=Ee.getTracks(),ue=Ee.getMaxTime(),_t=0;_t<te.length;_t++){var Fe=te[_t];if(Fe.needsAnimate()){var fr=Fe.keyframes,xt=Fe.propName;if(Ce&&(xt=Ce(xt)),xt)for(var hr=0;hr<fr.length;hr++){var Ii=fr[hr],dr=Math.round(Ii.time/ue*100)+"%",Pp=wP(Ii.easing),Oi=Ii.rawValue;(q(Oi)||be(Oi))&&(de[dr]=de[dr]||{},de[dr][xt]=Ii.rawValue,Pp&&(de[dr][T]=Pp))}}}}for(var P=0;P<k;P++){var S=b[P],L=S.targetName;L?L==="shape"&&C(S,_):!a&&C(S,w)}for(var D in w){var M={};to(M,t),H(M,w[D]);var I=Zm(M),E=w[D][T];x[D]=I?{transform:I}:{},AN(x[D],M),E&&(x[D][T]=E)}var O,R=!0;for(var D in _){x[D]=x[D]||{};var B=!O,E=_[D][T];B&&(O=new sa);var N=O.len();O.reset(),x[D].d=DN(t,_[D],O);var F=O.len();if(!B&&N!==F){R=!1;break}E&&(x[D][T]=E)}if(!R)for(var D in x)delete x[D].d;if(!a)for(var P=0;P<k;P++){var S=b[P],L=S.targetName;L==="style"&&C(S,x,function(te){return LN[te]})}for(var U=he(x),Y=!0,z,P=1;P<U.length;P++){var j=U[P-1],ne=U[P];if(x[j][wn]!==x[ne][wn]){Y=!1;break}z=x[j][wn]}if(Y&&z){for(var D in x)x[D][wn]&&delete x[D][wn];e[wn]=z}if(Xe(U,function(Ee){return he(x[Ee]).length>0}).length){var De=kP(x,r);return De+" "+y[0]+" both"}}for(var m in l){var s=v(l[m]);s&&o.push(s)}if(o.length){var g=r.zrId+"-cls-"+yP();r.cssNodes["."+g]={animation:o.join(",")},e.class=g}}function EN(t,e,r){if(!t.ignore)if(t.isSilent()){var a={"pointer-events":"none"};_P(a,e,r)}else{var n=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},i=n.fill;if(!i){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||o;l&&(i=Dc(l))}var u=n.lineWidth;if(u){var p=!n.strokeNoScale&&t.transform?t.transform[0]:1;u=u/p}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),_P(a,e,r)}}function _P(t,e,r,a){var n=JSON.stringify(t),i=r.cssStyleCache[n];i||(i=r.zrId+"-cls-"+yP(),r.cssStyleCache[n]=i,r.cssNodes["."+i+":hover"]=t),e.class=e.class?e.class+" "+i:i}var fs=Math.round;function xP(t){return t&&q(t.src)}function PP(t){return t&&re(t.toDataURL)}function Pv(t,e,r,a){wN(function(n,i){var o=n==="fill"||n==="stroke";o&&qm(i)?LP(e,t,n,a):o&&Lc(i)?MP(r,t,n,a):t[n]=i,o&&a.ssr&&i==="none"&&(t["pointer-events"]="visible")},e,r,!1),zN(r,t,a)}function Sv(t,e){var r=dI(e);r&&(r.each(function(a,n){a!=null&&(t[(vP+n).toLowerCase()]=a+"")}),e.isSilent()&&(t[vP+"silent"]="true"))}function SP(t){return na(t[0]-1)&&na(t[1])&&na(t[2])&&na(t[3]-1)}function IN(t){return na(t[4])&&na(t[5])}function Tv(t,e,r){if(e&&!(IN(e)&&SP(e))){var a=1e4;t.transform=SP(e)?"translate("+fs(e[4]*a)/a+" "+fs(e[5]*a)/a+")":PC(e)}}function TP(t,e,r){for(var a=t.points,n=[],i=0;i<a.length;i++)n.push(fs(a[i][0]*r)/r),n.push(fs(a[i][1]*r)/r);e.points=n.join(" ")}function CP(t){return!t.smooth}function ON(t){var e=K(t,function(r){return typeof r=="string"?[r,r]:r});return function(r,a,n){for(var i=0;i<e.length;i++){var o=e[i],s=r[o[0]];s!=null&&(a[o[1]]=fs(s*n)/n)}}}var RN={circle:[ON(["cx","cy","r"])],polyline:[TP,CP],polygon:[TP,CP]};function BN(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function DP(t,e){var r=t.style,a=t.shape,n=RN[t.type],i={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&jm(t)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](a))&&!(o&&BN(t))&&!(l<1)){s=t.type;var p=Math.pow(10,u);n[0](a,i,p)}else{var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var f=t.path;c&&(f.beginPath(),t.buildPath(f,t.shape),t.pathUpdated());var h=f.getVersion(),d=t,v=d.__svgPathBuilder;(d.__svgPathVersion!==h||!v||l!==d.__svgPathStrokePercent)&&(v||(v=d.__svgPathBuilder=new fP),v.reset(u),f.rebuildPath(v,l),v.generateStr(),d.__svgPathVersion=h,d.__svgPathStrokePercent=l),i.d=v.getStr()}return Tv(i,t.transform),Pv(i,r,t,e),Sv(i,t),e.animation&&pp(t,i,e),e.emphasis&&EN(t,i,e),We(s,t.id+"",i)}function NN(t,e){var r=t.style,a=r.image;if(a&&!q(a)&&(xP(a)?a=a.src:PP(a)&&(a=a.toDataURL())),!!a){var n=r.x||0,i=r.y||0,o=r.width,s=r.height,l={href:a,width:o,height:s};return n&&(l.x=n),i&&(l.y=i),Tv(l,t.transform),Pv(l,r,t,e),Sv(l,t),e.animation&&pp(t,l,e),We("image",t.id+"",l)}}function FN(t,e){var r=t.style,a=r.text;if(a!=null&&(a+=""),!(!a||isNaN(r.x)||isNaN(r.y))){var n=r.font||Nr,i=r.x||0,o=TC(r.y||0,Ji(n),r.textBaseline),s=SC[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(wy(r)){var u="",p=r.fontStyle,c=by(r.fontSize);if(!parseFloat(c))return;var f=r.fontFamily||tm,h=r.fontWeight;u+="font-size:"+c+";font-family:"+f+";",p&&p!=="normal"&&(u+="font-style:"+p+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+n;return a.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),Tv(l,t.transform),Pv(l,r,t,e),Sv(l,t),e.animation&&pp(t,l,e),We("text",t.id+"",l,void 0,a)}}function AP(t,e){if(t instanceof me)return DP(t,e);if(t instanceof Bt)return NN(t,e);if(t instanceof co)return FN(t,e)}function zN(t,e,r){var a=t.style;if(CC(a)){var n=DC(t),i=r.shadowCache,o=i[n];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var p=a.shadowOffsetX||0,c=a.shadowOffsetY||0,f=a.shadowBlur,h=no(a.shadowColor),d=h.opacity,v=h.color,m=f/2/l,g=f/2/u,y=m+" "+g;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=We("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[We("feDropShadow","",{dx:p/l,dy:c/u,stdDeviation:y,"flood-color":v,"flood-opacity":d})]),i[n]=o}e.filter=al(o)}}function LP(t,e,r,a){var n=t[r],i,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(Km(n))i="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(Xm(n))i="radialGradient",o.cx=Z(n.x,.5),o.cy=Z(n.y,.5),o.r=Z(n.r,.5);else return;for(var s=n.colorStops,l=[],u=0,p=s.length;u<p;++u){var c=Ac(s[u].offset)*100+"%",f=s[u].color,h=no(f),d=h.color,v=h.opacity,m={offset:c};m["stop-color"]=d,v<1&&(m["stop-opacity"]=v),l.push(We("stop",u+"",m))}var g=We(i,"",o,l),y=_v(g),b=a.gradientCache,k=b[y];k||(k=a.zrId+"-g"+a.gradientIdx++,b[y]=k,o.id=k,a.defs[k]=We(i,k,o,l)),e[r]=al(k)}function MP(t,e,r,a){var n=t.style[r],i=t.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",p=s==="repeat-y",c;if(Ym(n)){var f=n.imageWidth,h=n.imageHeight,d=void 0,v=n.image;if(q(v)?d=v:xP(v)?d=v.src:PP(v)&&(d=v.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Jt(f,m),Jt(h,m)}else if(f==null||h==null){var g=function(P,S){if(P){var L=P.elm,D=f||S.width,M=h||S.height;P.tag==="pattern"&&(u?(M=1,D/=i.width):p&&(D=1,M/=i.height)),P.attrs.width=D,P.attrs.height=M,L&&(L.setAttribute("width",D),L.setAttribute("height",M))}},y=tc(d,null,t,function(P){l||g(_,P),g(c,P)});y&&y.width&&y.height&&(f=f||y.width,h=h||y.height)}c=We("image","img",{href:d,width:f,height:h}),o.width=f,o.height=h}else n.svgElement&&(c=le(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(c){var b,k;l?b=k=1:u?(k=1,b=o.width/i.width):p?(b=1,k=o.height/i.height):o.patternUnits="userSpaceOnUse",b!=null&&!isNaN(b)&&(o.width=b),k!=null&&!isNaN(k)&&(o.height=k);var w=Zm(n);w&&(o.patternTransform=w);var _=We("pattern","",o,[c]),x=_v(_),T=a.patternCache,C=T[x];C||(C=a.zrId+"-p"+a.patternIdx++,T[x]=C,o.id=C,_=a.defs[C]=We("pattern",C,o,[c])),e[r]=al(C)}}function HN(t,e,r){var a=r.clipPathCache,n=r.defs,i=a[t.id];if(!i){i=r.zrId+"-c"+r.clipPathIdx++;var o={id:i};a[t.id]=i,n[i]=We("clipPath",i,o,[DP(t,r)])}e["clip-path"]=al(i)}function EP(t){return document.createTextNode(t)}function _n(t,e,r){t.insertBefore(e,r)}function IP(t,e){t.removeChild(e)}function OP(t,e){t.appendChild(e)}function RP(t){return t.parentNode}function BP(t){return t.nextSibling}function Cv(t,e){t.textContent=e}var NP=58,VN=120,UN=We("","");function Dv(t){return t===void 0}function Br(t){return t!==void 0}function GN(t,e,r){for(var a={},n=e;n<=r;++n){var i=t[n].key;i!==void 0&&(a[i]=n)}return a}function hs(t,e){var r=t.key===e.key,a=t.tag===e.tag;return a&&r}function ds(t){var e,r=t.children,a=t.tag;if(Br(a)){var n=t.elm=gP(a);if(Av(UN,t),W(r))for(e=0;e<r.length;++e){var i=r[e];i!=null&&OP(n,ds(i))}else Br(t.text)&&!J(t.text)&&OP(n,EP(t.text))}else t.elm=EP(t.text);return t.elm}function FP(t,e,r,a,n){for(;a<=n;++a){var i=r[a];i!=null&&_n(t,ds(i),e)}}function cp(t,e,r,a){for(;r<=a;++r){var n=e[r];if(n!=null)if(Br(n.tag)){var i=RP(n.elm);IP(i,n.elm)}else IP(t,n.elm)}}function Av(t,e){var r,a=e.elm,n=t&&t.attrs||{},i=e.attrs||{};if(n!==i){for(r in i){var o=i[r],s=n[r];s!==o&&(o===!0?a.setAttribute(r,""):o===!1?a.removeAttribute(r):r==="style"?a.style.cssText=o:r.charCodeAt(0)!==VN?a.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?a.setAttributeNS(_N,r,o):r.charCodeAt(3)===NP?a.setAttributeNS(xN,r,o):r.charCodeAt(5)===NP?a.setAttributeNS(dP,r,o):a.setAttribute(r,o))}for(r in n)r in i||a.removeAttribute(r)}}function WN(t,e,r){for(var a=0,n=0,i=e.length-1,o=e[0],s=e[i],l=r.length-1,u=r[0],p=r[l],c,f,h,d;a<=i&&n<=l;)o==null?o=e[++a]:s==null?s=e[--i]:u==null?u=r[++n]:p==null?p=r[--l]:hs(o,u)?(Di(o,u),o=e[++a],u=r[++n]):hs(s,p)?(Di(s,p),s=e[--i],p=r[--l]):hs(o,p)?(Di(o,p),_n(t,o.elm,BP(s.elm)),o=e[++a],p=r[--l]):hs(s,u)?(Di(s,u),_n(t,s.elm,o.elm),s=e[--i],u=r[++n]):(Dv(c)&&(c=GN(e,a,i)),f=c[u.key],Dv(f)?_n(t,ds(u),o.elm):(h=e[f],h.tag!==u.tag?_n(t,ds(u),o.elm):(Di(h,u),e[f]=void 0,_n(t,h.elm,o.elm))),u=r[++n]);(a<=i||n<=l)&&(a>i?(d=r[l+1]==null?null:r[l+1].elm,FP(t,d,r,n,l)):cp(t,e,a,i))}function Di(t,e){var r=e.elm=t.elm,a=t.children,n=e.children;t!==e&&(Av(t,e),Dv(e.text)?Br(a)&&Br(n)?a!==n&&WN(r,a,n):Br(n)?(Br(t.text)&&Cv(r,""),FP(r,null,n,0,n.length-1)):Br(a)?cp(r,a,0,a.length-1):Br(t.text)&&Cv(r,""):t.text!==e.text&&(Br(a)&&cp(r,a,0,a.length-1),Cv(r,e.text)))}function $N(t,e){if(hs(t,e))Di(t,e);else{var r=t.elm,a=RP(r);ds(e),a!==null&&(_n(a,e.elm,BP(r)),cp(a,[t],0,0))}return e}var YN=0,KN=(function(){function t(e,r,a){if(this.type="svg",this.configLayer=XN(),this.storage=r,this._opts=a=H({},a),this.root=e,this._id="zr"+YN++,this._oldVNode=mP(a.width,a.height),e&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=gP("svg");Av(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(a.width,a.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",$N(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return AP(e,xv(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=xv(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=qN(a,n,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=We("g","main",{},[]);this._paintList(r,i,l?l.children:o),l&&o.push(l);var u=K(he(i.defs),function(f){return i.defs[f]});if(u.length&&o.push(We("defs","defs",{},u)),e.animation){var p=TN(i.cssNodes,i.cssAnims,{newline:!0});if(p){var c=We("style","stl",{},[],p);o.push(c)}}return mP(a,n,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},_v(this.renderToVNode({animation:Z(e.cssAnimation,!0),emphasis:Z(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Z(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,a){for(var n=e.length,i=[],o=0,s,l,u=0,p=0;p<n;p++){var c=e[p];if(!c.invisible){var f=c.__clipPaths,h=f&&f.length||0,d=l&&l.length||0,v=void 0;for(v=Math.max(h-1,d-1);v>=0&&!(f&&l&&f[v]===l[v]);v--);for(var m=d-1;m>v;m--)o--,s=i[o-1];for(var g=v+1;g<h;g++){var y={};HN(f[g],y,r);var b=We("g","clip-g-"+u++,y,[]);(s?s.children:a).push(b),i[o++]=b,s=b}l=f;var k=AP(c,r);k&&(s?s.children:a).push(k)}}},t.prototype.resize=function(e,r){var a=this._opts,n=this.root,i=this._viewport;if(e!=null&&(a.width=e),r!=null&&(a.height=r),n&&i&&(i.style.display="none",e=h_(n,0,a),r=h_(n,1,a),i.style.display=""),this._width!==e||this._height!==r){if(this._width=e,this._height=r,i){var o=i.style;o.width=e+"px",o.height=r+"px"}if(Lc(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",r))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var r=this.renderToString(),a="data:image/svg+xml;";return e?(r=LC(r),r&&a+"base64,"+r):a+"charset=UTF-8,"+encodeURIComponent(r)},t})();function XN(t){return function(){}}function qN(t,e,r,a){var n;if(r&&r!=="none")if(n=We("rect","bg",{width:t,height:e,x:"0",y:"0"}),qm(r))LP({fill:r},n.attrs,"fill",a);else if(Lc(r))MP({style:{fill:r},dirty:qe,getBoundingRect:function(){return{width:t,height:e}}},n.attrs,"fill",a);else{var i=no(r),o=i.color,s=i.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}function jN(t){t.registerPainter("svg",KN)}cr([_4,I5,F4,ER,WR,iB,jR,EB,QB,fN,tN,vN,jN]);const zP=new Set;function ZN(){const e=(Ui().components??[]).filter(r=>r!=null&&!zP.has(r));if(e.length!==0){cr(e);for(const r of e)zP.add(r)}}const QN=96/25.4;function xn(t){const e=Number.isFinite(t)?t:0;return Math.max(1,Math.round(e*QN))}const JN=[12,20,15];function Ai(t){try{return JSON.parse(JSON.stringify(t))}catch{return t}}function e6(t,e){if(!e||typeof e!="object"||Array.isArray(e))return{};const r=Ai(e),a=Je(t),n=[...Jg()],i=[...JN],o=Array.isArray(r.series)?r.series:[],s=u=>{for(const p of o)Array.isArray(p.data)&&p.data.includes("$data")&&(p.data=u(p))},l=()=>{for(const u of["xAxis","yAxis"]){const p=Array.isArray(r[u])?r[u]:r[u]?[r[u]]:[];for(const c of p)c&&Array.isArray(c.data)&&c.data.includes("$data")&&(c.data=[...n])}};switch(a?.seriesType){case"pie":s(()=>n.map((u,p)=>({name:u,value:i[p]??10})));break;case"funnel":s(()=>n.map((u,p)=>({name:u,value:i[p]??10})));break;case"scatter":s(()=>i.map(u=>[u,u+6]));break;case"radar":r.radar={...r.radar??{},indicator:n.map(u=>({name:u,max:30}))},s(()=>[{name:"示例",value:i}]);break;case"gauge":s(()=>[{value:i[0]??40,name:"数量"}]);break;default:s(()=>[...i]),l();break}return r}function t6(t,e){const r=Array.isArray(t?.color)?(t?.color).map(String):[];return e.find(n=>n.colors.every((i,o)=>i===r[o])&&r.length===n.colors.length)?.key??"default"}function Li(t){return Array.isArray(t)?t[0]&&typeof t[0]=="object"?{...t[0]}:{}:t&&typeof t=="object"?{...t}:{}}function r6(t,e,r){const a=Ai(t),n=Array.isArray(a.series)?a.series:[],i=Je(r),o=n[0]??{type:i?.seriesType==="line"?"line":"bar",data:["$data"]};return a.series=Array.from({length:Math.max(e,1)},(s,l)=>({...o,...n[l]??{},data:["$data"]})),a}const fp=t=>Math.round(t*10)/10;function Lv(t,e){return e>0?fp(t/e*100):0}function hp(t,e,r){if(typeof t=="string"&&t.trim().endsWith("%")){const a=Number.parseFloat(t);if(Number.isFinite(a))return fp(a)}return typeof t=="number"&&Number.isFinite(t)?Lv(t,e):Lv(r,e)}function HP(t,e,r){return Math.min(r,Math.max(e,t))}function vs(t){return`${HP(fp(t),0,100)}%`}function a6(t){const r=(Array.isArray(t.series)?t.series:[])[0];return r&&typeof r=="object"?r:{}}function VP(t,e,r){const n=a6(t&&typeof t=="object"?t:{}),i=xn(e),o=xn(r);return{top:hp(n.top,o,Is.top),right:hp(n.right,i,Is.right),bottom:hp(n.bottom,o,Is.bottom),left:hp(n.left,i,Is.left)}}function n6(t,e){const r=Ai(t),a=Array.isArray(r.series)?r.series:[];a.length===0&&a.push({type:"funnel",data:["$data"]});const n=a[0];return n.top=vs(e.top),n.right=vs(e.right),n.bottom=vs(e.bottom),n.left=vs(e.left),r.series=a,r}function i6(t,e,r){const n=Li((t&&typeof t=="object"?t:{}).radar).radius,i=Array.isArray(n)?n[n.length-1]:n,o=xn(e),s=xn(r),l=Math.min(o,s)/2;if(typeof i=="string"&&i.trim().endsWith("%")){const u=Number.parseFloat(i);if(Number.isFinite(u))return fp(u)}return typeof i=="number"&&Number.isFinite(i)?Lv(i,l):cT}function o6(t,e){const r=Ai(t);return r.radar={...Li(r.radar),radius:vs(HP(e,20,100))},r}const s6=[{key:"value",label:"数值",labelKey:"echarts.label.formatter.value",formatter:"{c}"},{key:"name-value",label:"名称: 数值",labelKey:"echarts.label.formatter.nameValue",formatter:"{b}: {c}"},{key:"name",label:"名称",labelKey:"echarts.label.formatter.name",formatter:"{b}"},{key:"percent",label:"百分比",labelKey:"echarts.label.formatter.percent",formatter:"{d}%"}],l6={bar:[{value:"top",label:"顶部",labelKey:"echarts.label.position.bar.top"},{value:"inside",label:"内部",labelKey:"echarts.label.position.bar.inside"},{value:"insideTop",label:"内部顶端",labelKey:"echarts.label.position.bar.insideTop"},{value:"bottom",label:"底部",labelKey:"echarts.label.position.bar.bottom"},{value:"insideBottom",label:"内部底端",labelKey:"echarts.label.position.bar.insideBottom"},{value:"right",label:"右侧",labelKey:"echarts.label.position.bar.right"},{value:"left",label:"左侧",labelKey:"echarts.label.position.bar.left"},{value:"middle",label:"居中",labelKey:"echarts.label.position.bar.middle"}],line:[{value:"top",label:"顶部",labelKey:"echarts.label.position.line.top"},{value:"bottom",label:"底部",labelKey:"echarts.label.position.line.bottom"},{value:"inside",label:"内部",labelKey:"echarts.label.position.line.inside"},{value:"left",label:"左侧",labelKey:"echarts.label.position.line.left"},{value:"right",label:"右侧",labelKey:"echarts.label.position.line.right"}],pie:[{value:"outside",label:"外侧",labelKey:"echarts.label.position.pie.outside"},{value:"inside",label:"内部",labelKey:"echarts.label.position.pie.inside"},{value:"center",label:"中心",labelKey:"echarts.label.position.pie.center"}],scatter:[{value:"top",label:"顶部",labelKey:"echarts.label.position.scatter.top"},{value:"bottom",label:"底部",labelKey:"echarts.label.position.scatter.bottom"},{value:"left",label:"左侧",labelKey:"echarts.label.position.scatter.left"},{value:"right",label:"右侧",labelKey:"echarts.label.position.scatter.right"},{value:"inside",label:"内部",labelKey:"echarts.label.position.scatter.inside"}],radar:[{value:"top",label:"顶部",labelKey:"echarts.label.position.radar.top"},{value:"bottom",label:"底部",labelKey:"echarts.label.position.radar.bottom"},{value:"left",label:"左侧",labelKey:"echarts.label.position.radar.left"},{value:"right",label:"右侧",labelKey:"echarts.label.position.radar.right"},{value:"inside",label:"内部",labelKey:"echarts.label.position.radar.inside"}],funnel:[{value:"outer",label:"外侧",labelKey:"echarts.label.position.funnel.outer"},{value:"inner",label:"内部",labelKey:"echarts.label.position.funnel.inner"},{value:"left",label:"左侧",labelKey:"echarts.label.position.funnel.left"},{value:"right",label:"右侧",labelKey:"echarts.label.position.funnel.right"},{value:"top",label:"顶部",labelKey:"echarts.label.position.funnel.top"},{value:"bottom",label:"底部",labelKey:"echarts.label.position.funnel.bottom"}],gauge:[]},u6={bar:!1,line:!1,pie:!0,scatter:!1,radar:!1,funnel:!0,gauge:!0},p6={bar:{position:"top",fontSize:12},line:{position:"top",fontSize:12},pie:{position:"outside",overflow:"none",fontSize:11},scatter:{position:"top",fontSize:11},radar:{position:"top",fontSize:10},funnel:{position:"outer",fontSize:11},gauge:{fontSize:14}},c6={barHChart:{position:"right",fontSize:12}},f6={bar:["formatter","overflow","position","rotate","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"],line:["formatter","overflow","position","rotate","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"],pie:["formatter","overflow","position","distance","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding","labelLine.show","labelLine.length","labelLine.length2","labelLine.smooth"],scatter:["formatter","overflow","position","distance","rotate","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"],radar:["formatter","fontSize","fontWeight","color"],funnel:["formatter","overflow","position","distance","fontSize","fontWeight","color","labelLine.show","labelLine.length","labelLine.smooth"],gauge:["formatter","fontSize","fontWeight","color","offset"]},h6=["formatter","overflow","position","distance","rotate","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function d6(t){const e=t?.series;return Array.isArray(e)?e:[]}function dp(t){return t&&typeof t=="object"&&!Array.isArray(t)?{...t}:{}}function Mv(t){typeof t.offsetX!="number"&&typeof t.offsetY!="number"||(Array.isArray(t.offset)||(t.offset=[typeof t.offsetX=="number"?t.offsetX:0,typeof t.offsetY=="number"?t.offsetY:0]),delete t.offsetX,delete t.offsetY)}function Ev(t){return Je(t)?.seriesType==="gauge"?"detail":"label"}function v6(t){const e=Je(t);return e?f6[e.seriesType]:[]}function g6(t,e){const r=Je(e),a=d6(t),n=dp(a[0]?.[Ev(e)]);Mv(n);const i={show:typeof n.show=="boolean"?n.show:r?u6[r.seriesType]:!1,labelLine:dp(a[0]?.labelLine)};for(const s of h6){const l=n[s];s!=="offset"&&(typeof l=="string"||typeof l=="number")&&(i[s]=l)}const o=n.offset;return Array.isArray(o)&&typeof o[0]=="number"&&typeof o[1]=="number"&&(i.offset=[o[0],o[1]]),i}function m6(t){const e=Je(t);return e?{...p6[e.seriesType],...c6[t]}:{}}function UP(t){return t==null||t===""}function y6(t,e,r){const a=Ai(t??{}),n=Array.isArray(a.series)?a.series:[];if(!Je(e)||n.length===0)return a;const o=Ev(e),{enabled:s,labelLine:l,...u}=r;for(const p of n){if(!p||typeof p!="object")continue;const c=dp(p[o]);Mv(c),s===!0?Object.assign(c,{...m6(e),...c,show:!0}):s===!1&&(c.show=!1);for(const[f,h]of Object.entries(u))UP(h)?delete c[f]:c[f]=h;if(l){const f=dp(p.labelLine);for(const[h,d]of Object.entries(l))UP(d)?delete f[h]:f[h]=d;p.labelLine=f}p[o]=c}return a}function b6(t){return Array.isArray(t)?t.map(e=>({...e})):[]}function k6(t,e){const r={...t,type:e?"value":"category"};return e?delete r.data:Array.isArray(r.data)||(r.data=["$data"]),r}function w6(t,e){const r={...t,type:e?"category":"value"};return e&&!Array.isArray(r.data)&&(r.data=["$data"]),e||delete r.data,r}function vp(t,e){return Array.isArray(t)?t.map(r=>e({...r})):e(t&&typeof t=="object"?{...t}:{})}function gp(t,e){const r=Je(t);if(!r)return e;const a=structuredClone(e),n=b6(a.series);if(n.length===0)return a;const i=Ev(t);for(const l of n){const u=l[i];if(u&&typeof u=="object"&&!Array.isArray(u)){const p={...u};Mv(p),l[i]=p}}if(r.seriesType==="pie")return a.series=n.map(l=>({...l,type:"pie",...t==="doughnutChart"?{radius:l.radius??["40%","70%"]}:{}})),delete a.xAxis,delete a.yAxis,a;if(r.seriesType==="scatter")return a.series=n.map(l=>({...l,type:"scatter"})),a.xAxis=vp(a.xAxis,l=>({...l,type:"value",data:void 0})),a.yAxis=vp(a.yAxis,l=>({...l,type:"value",data:void 0})),a;if(r.seriesType==="radar")return a.series=n.map(l=>({...l,type:"radar"})),a;if(r.seriesType==="funnel")return a.series=n.map(l=>({...l,type:"funnel",sort:"descending"})),a;if(r.seriesType==="gauge")return a.series=n.map(l=>({...l,type:"gauge"})),a;const o=r.orientation==="horizontal",s=r.seriesType==="line"?"line":"bar";return a.xAxis=vp(a.xAxis,l=>k6(l,o)),a.yAxis=vp(a.yAxis,l=>w6(l,o)),a.series=n.map(l=>{const u={...l,type:s};return t==="areaChart"?u.areaStyle=l.areaStyle??{}:delete u.areaStyle,u}),a}function GP(t,e,r){const a=/<svg\b[^>]*>/i.exec(t);if(!a)return t;const n=a[0],i=n.slice(4,-1),s=(/\sstyle\s*=\s*"([^"]*)"/i.exec(i)?.[1]??"").split(";").map(c=>c.trim()).filter(c=>c&&!/^(width|height|display)\s*:/i.test(c)).join(";"),l=i.replace(/\s(width|height|style|viewBox)\s*=\s*"[^"]*"/gi,"").trimEnd(),u=["display:block","width:100%","height:100%",s].filter(Boolean).join(";"),p=`<svg${l} width="100%" height="100%" viewBox="0 0 ${e} ${r}" style="${u}">`;return t.slice(0,a.index)+p+t.slice(a.index+n.length)}function Iv(t){ZN();const e=gp(t.type,t.option);if(!e||typeof e!="object"||Array.isArray(e))throw new Error("图表 option 非法:需要对象");const r=xn(t.widthMm),a=xn(t.heightMm),n=UO(null,null,{renderer:"svg",ssr:!0,width:r,height:a});try{const i=e.textStyle&&typeof e.textStyle=="object"&&!Array.isArray(e.textStyle)?e.textStyle:void 0,o={...t.fontFamily?{fontFamily:t.fontFamily}:{},...i??{}};return n.setOption({animation:!1,...e,...Object.keys(o).length>0?{textStyle:o}:{}}),GP(n.renderToSVGString(),r,a)}finally{n.dispose()}}function _6(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Ov(t){const e=t._chartOption??t.chartOption,r=`<span>${_6(String(t.title??"图表"))}</span>`;if(!e||typeof e!="object"||Array.isArray(e))return r;try{return Iv({key:String(t.key??""),type:String(t.type??""),option:e,widthMm:Number(t.widthMm??0),heightMm:Number(t.heightMm??0),fontFamily:typeof t.fontFamily=="string"?t.fontFamily:void 0})}catch{return r}}const x6="2";function WP(t=!1){return{chartOption:{kind:"object",get label(){return Zt("echarts.meta.chartOption")}},chartDataSource:{kind:"text",get label(){return Zt("echarts.meta.dataSource")}},chartCategoryField:{kind:"text",get label(){return Zt("echarts.meta.categoryField")}},chartValueFields:{kind:"object",get label(){return Zt("echarts.meta.valueFields")}},chartSeriesField:{kind:"text",get label(){return Zt("echarts.meta.seriesField")}},...t?{chartBubble:{kind:"bool",get label(){return Zt("echarts.meta.bubbleSize")}}}:{}}}const P6=WP(),S6=WP(!0),gs=y2({id:Vi,version:x6,kinds:Es.map(t=>({type:t.type,get label(){return Zt(t.labelKey)},icon:t.icon,fixedHeight:!0,requiredOptionKeys:t.requiredOptionKeys,get notes(){return Zt(t.notesKey)},optionMeta:t.type==="scatterChart"?S6:P6,defaultOptions:e=>em(t.type,e),binding:{bind:(e,r)=>Xg(t.type,e,r)}})),render:{html:Ov,createRenderer:()=>({render:Ov})}});let mp;function ms(t,e){const r=b2(Vi);if(!t&&!e){const i=Pg(gs);return mp=i,i}const a={...gs,designer:t??r?.designer??gs.designer,render:{...gs.render,...r?.render,...e}},n=Pg(a);return mp=n,n}function T6(t){return ms(t)}function C6(t){return ms(void 0,{executorBundle:t})}function D6(){mp?.(),mp=void 0}ms(),ms();const A6=Object.freeze(Object.defineProperty({__proto__:null,CHART_KINDS:Gg,CHART_KIND_DEFINITIONS:Es,CHART_PALETTES:Gp,CHART_PLUGIN:gs,CHART_PLUGIN_ID:Vi,bindChartData:Xg,chartFactoryDefaults:em,configureChartPlugin:hT,createDefaultChartOption:Os,fitSvgRoot:GP,getChartKindDefinition:Je,getChartPalettes:Qg,getChartPluginConfig:Ui,getSampleCategories:Jg,mmToChartPx:xn,normalizeChartOption:gp,registerChartDesigner:T6,registerChartExecutorBundle:C6,registerChartPlugin:ms,renderChartElement:Ov,renderChartToSvg:Iv,resolveChartPanelFields:Wg,uninstallChartPlugin:D6},Symbol.toStringTag,{value:"Module"})),L6={echarts:{"echarts.panel.chart":"图表","echarts.panel.config":"配置","echarts.panel.dataSource":"数据源","echarts.panel.category":"类目","echarts.panel.value":"数值","echarts.panel.series":"系列","echarts.panel.chartType.bar":"柱状","echarts.panel.chartType.barH":"条形","echarts.panel.chartType.line":"折线","echarts.panel.chartType.area":"面积","echarts.panel.chartType.pie":"饼","echarts.panel.chartType.doughnut":"环形","echarts.panel.chartType.scatter":"散点","echarts.panel.chartType.radar":"雷达","echarts.panel.chartType.funnel":"漏斗","echarts.panel.chartType.gauge":"仪表","echarts.panel.dataLabel":"数据标签","echarts.panel.valueLabel":"数值标签","echarts.panel.hint.dataBinding":"数据由模板绑定阶段注入:series/xAxis 的 data 保留 `$data` 占位即可;复杂样式可在模板 JSON 中手写 chartOption。","echarts.panel.field.dimension":"维度字段(每个字段一个维度)","echarts.panel.field.value":"数值字段","echarts.panel.field.valueMulti":"数值字段(多值多系列)","echarts.panel.default":"(默认)","echarts.panel.current":"(当前)","echarts.panel.defaultFirstArray":"(默认:顶层第一个数组)","echarts.panel.error.invalidOption":"图表 option 非法:需要对象","echarts.panel.chartFallback":"图表","echarts.panel.optionDefault":"(默认)","echarts.panel.overflow.default":"默认","echarts.panel.overflow.none":"不处理(显示完整)","echarts.panel.overflow.truncate":"截断","echarts.panel.overflow.break":"换行","echarts.panel.fontWeight.default":"默认","echarts.panel.fontWeight.normal":"常规","echarts.panel.fontWeight.bold":"加粗","echarts.panel.label.distance":"距离","echarts.panel.label.rotate":"旋转(度)","echarts.panel.label.fontSize":"字号","echarts.panel.label.fontWeight":"字重","echarts.panel.label.color":"文字颜色","echarts.panel.label.backgroundColor":"背景色","echarts.panel.label.borderColor":"边框色","echarts.panel.label.borderWidth":"边框宽度","echarts.panel.label.borderRadius":"圆角","echarts.panel.label.padding":"内边距","echarts.panel.label.show":"显示数据标签","echarts.panel.label.content":"内容","echarts.panel.label.formatterTitle":"数据标签内容","echarts.panel.label.formatterCustom":"自定义 / 默认","echarts.panel.label.formatterPlaceholder":"如 {b}: {c}","echarts.panel.label.overflow":"溢出处理","echarts.panel.label.position":"位置","echarts.panel.label.positionTitle":"标签位置","echarts.panel.label.positionDefault":"默认","echarts.panel.label.offset":"偏移 X / Y","echarts.panel.label.style":"样式","echarts.panel.labelLine.fontWeight":"字重","echarts.panel.labelLine":"引导线","echarts.panel.labelLine.show":"显示引导线","echarts.panel.labelLine.length":"引导线长度","echarts.panel.labelLine.length2":"第二段长度","echarts.panel.labelLine.smooth":"平滑引导线","echarts.panel.dataSourceTitle":"数据源","echarts.panel.categoryField":"类目字段","echarts.panel.removeField":"删除该字段","echarts.panel.addField":"+ 添加字段","echarts.panel.seriesField":"系列拆分字段","echarts.panel.seriesFieldHint":"可选,如 region(按值拆成多系列)","echarts.panel.bubbleSize":"气泡大小","echarts.panel.title":"图表标题","echarts.panel.titleHint":"留空不显示标题","echarts.panel.legend":"显示图例","echarts.panel.palette":"配色","echarts.palette.default":"默认蓝","echarts.palette.fresh":"清新绿","echarts.palette.warm":"暖橙红","echarts.palette.purple":"紫灰","echarts.panel.stack":"堆叠显示","echarts.panel.innerRadius":"内径(%)","echarts.panel.paddingTRBL":"内边距 上/右/下/左 (%)","echarts.panel.paddingTop":"上边距","echarts.panel.paddingRight":"右边距(留外置标签)","echarts.panel.paddingBottom":"下边距","echarts.panel.paddingLeft":"左边距","echarts.panel.radius":"半径(%)","echarts.panel.minMax":"最小 / 最大值","echarts.panel.group":"图表","echarts.series.typeNames.bar":"柱状图","echarts.series.typeNames.barH":"条形图","echarts.series.typeNames.line":"折线图","echarts.series.typeNames.area":"面积图","echarts.series.typeNames.pie":"饼图","echarts.series.typeNames.doughnut":"环形图","echarts.series.typeNames.scatter":"散点图","echarts.series.typeNames.radar":"雷达图","echarts.series.typeNames.funnel":"漏斗图","echarts.series.typeNames.gauge":"仪表盘","echarts.label.formatter.value":"数值","echarts.label.formatter.nameValue":"名称: 数值","echarts.label.formatter.name":"名称","echarts.label.formatter.percent":"百分比","echarts.label.position.bar.top":"顶部","echarts.label.position.bar.inside":"内部","echarts.label.position.bar.insideTop":"内部顶端","echarts.label.position.bar.bottom":"底部","echarts.label.position.bar.insideBottom":"内部底端","echarts.label.position.bar.right":"右侧","echarts.label.position.bar.left":"左侧","echarts.label.position.bar.middle":"居中","echarts.label.position.line.top":"顶部","echarts.label.position.line.bottom":"底部","echarts.label.position.line.inside":"内部","echarts.label.position.line.left":"左侧","echarts.label.position.line.right":"右侧","echarts.label.position.pie.outside":"外侧","echarts.label.position.pie.inside":"内部","echarts.label.position.pie.center":"中心","echarts.label.position.scatter.top":"顶部","echarts.label.position.scatter.bottom":"底部","echarts.label.position.scatter.left":"左侧","echarts.label.position.scatter.right":"右侧","echarts.label.position.scatter.inside":"内部","echarts.label.position.radar.top":"顶部","echarts.label.position.radar.bottom":"底部","echarts.label.position.radar.left":"左侧","echarts.label.position.radar.right":"右侧","echarts.label.position.radar.inside":"内部","echarts.label.position.funnel.outer":"外侧","echarts.label.position.funnel.inner":"内部","echarts.label.position.funnel.left":"左侧","echarts.label.position.funnel.right":"右侧","echarts.label.position.funnel.top":"顶部","echarts.label.position.funnel.bottom":"底部","echarts.meta.chartOption":"图表 option","echarts.meta.dataSource":"数据源","echarts.meta.categoryField":"类目字段","echarts.meta.valueFields":"数值字段","echarts.meta.seriesField":"系列拆分字段","echarts.meta.bubbleSize":"气泡大小","echarts.notes.bar":"柱状图:类目 + 多个数值字段,每字段一个 series;series[].data 写 $data 占位;固定高,禁止 autoHeight","echarts.notes.barH":"横向条形图:xAxis 为数值、yAxis 为类目;类目写 yAxis.data 的 $data 占位","echarts.notes.line":"折线图:类目 + 多个数值字段;不写 areaStyle","echarts.notes.area":"面积图:折线 + series[].areaStyle;其余同折线图","echarts.notes.pie":"饼图:类目 + 首个数值字段生成 { name, value };只需一个数值字段","echarts.notes.doughnut":"环形图:饼图 + radius:[内径,外径];内径由面板配置","echarts.notes.scatter":"散点图:类目字段作 x、首个数值字段作 y;chartBubble 开启时用第二个数值字段作点大小","echarts.notes.radar":"雷达图:每个数值字段是一个维度(radar.indicator),每行数据是一个系列(类目字段作系列名);半径由面板写 radar.radius(%,默认 75)","echarts.notes.funnel":"漏斗图:类目 + 首个数值字段,按数值降序;四边内边距由面板写 series.left/right/top/bottom(%,右侧需留外置标签空间)","echarts.notes.gauge":"仪表盘:取首行数据的首个数值字段作指针值;min/max 由面板写入 series[0].min/max"}},M6={echarts:{"echarts.panel.chart":"Chart","echarts.panel.config":"Config","echarts.panel.dataSource":"Data source","echarts.panel.category":"Category","echarts.panel.value":"Value","echarts.panel.series":"Series","echarts.panel.chartType.bar":"Bar","echarts.panel.chartType.barH":"Horizontal bar","echarts.panel.chartType.line":"Line","echarts.panel.chartType.area":"Area","echarts.panel.chartType.pie":"Pie","echarts.panel.chartType.doughnut":"Doughnut","echarts.panel.chartType.scatter":"Scatter","echarts.panel.chartType.radar":"Radar","echarts.panel.chartType.funnel":"Funnel","echarts.panel.chartType.gauge":"Gauge","echarts.panel.dataLabel":"Data label","echarts.panel.valueLabel":"Value label","echarts.panel.hint.dataBinding":"Data is injected at template binding; keep the `$data` placeholder in series/xAxis data; advanced styles can be written in chartOption in the template JSON.","echarts.panel.field.dimension":"Dimension fields (one per dimension)","echarts.panel.field.value":"Value fields","echarts.panel.field.valueMulti":"Value fields (multiple values, multiple series)","echarts.panel.default":"(default)","echarts.panel.current":"(current)","echarts.panel.defaultFirstArray":"(default: first top-level array)","echarts.panel.error.invalidOption":"Invalid chart option: expected an object","echarts.panel.chartFallback":"Chart","echarts.panel.optionDefault":"(default)","echarts.panel.overflow.default":"Default","echarts.panel.overflow.none":"None (show full)","echarts.panel.overflow.truncate":"Truncate","echarts.panel.overflow.break":"Wrap","echarts.panel.fontWeight.default":"Default","echarts.panel.fontWeight.normal":"Regular","echarts.panel.fontWeight.bold":"Bold","echarts.panel.label.distance":"Distance","echarts.panel.label.rotate":"Rotation (deg)","echarts.panel.label.fontSize":"Font size","echarts.panel.label.fontWeight":"Font weight","echarts.panel.label.color":"Text color","echarts.panel.label.backgroundColor":"Background color","echarts.panel.label.borderColor":"Border color","echarts.panel.label.borderWidth":"Border width","echarts.panel.label.borderRadius":"Radius","echarts.panel.label.padding":"Padding","echarts.panel.label.show":"Show data labels","echarts.panel.label.content":"Content","echarts.panel.label.formatterTitle":"Data label content","echarts.panel.label.formatterCustom":"Custom / Default","echarts.panel.label.formatterPlaceholder":"e.g. {b}: {c}","echarts.panel.label.overflow":"Overflow","echarts.panel.label.position":"Position","echarts.panel.label.positionTitle":"Label position","echarts.panel.label.positionDefault":"Default","echarts.panel.label.offset":"Offset X / Y","echarts.panel.label.style":"Style","echarts.panel.labelLine.fontWeight":"Font weight","echarts.panel.labelLine":"Label line","echarts.panel.labelLine.show":"Show label line","echarts.panel.labelLine.length":"Label line length","echarts.panel.labelLine.length2":"Second segment length","echarts.panel.labelLine.smooth":"Smooth label line","echarts.panel.dataSourceTitle":"Data source","echarts.panel.categoryField":"Category field","echarts.panel.removeField":"Remove this field","echarts.panel.addField":"+ Add field","echarts.panel.seriesField":"Series split field","echarts.panel.seriesFieldHint":"Optional, e.g. region (splits into series by value)","echarts.panel.bubbleSize":"Bubble size","echarts.panel.title":"Chart title","echarts.panel.titleHint":"Leave empty to hide the title","echarts.panel.legend":"Show legend","echarts.panel.palette":"Color palette","echarts.palette.default":"Default blue","echarts.palette.fresh":"Fresh green","echarts.palette.warm":"Warm orange-red","echarts.palette.purple":"Purple grey","echarts.panel.stack":"Stacked","echarts.panel.innerRadius":"Inner radius (%)","echarts.panel.paddingTRBL":"Padding top/right/bottom/left (%)","echarts.panel.paddingTop":"Top padding","echarts.panel.paddingRight":"Right padding (for outer labels)","echarts.panel.paddingBottom":"Bottom padding","echarts.panel.paddingLeft":"Left padding","echarts.panel.radius":"Radius (%)","echarts.panel.minMax":"Min / max","echarts.panel.group":"Chart","echarts.series.typeNames.bar":"Bar chart","echarts.series.typeNames.barH":"Horizontal bar chart","echarts.series.typeNames.line":"Line chart","echarts.series.typeNames.area":"Area chart","echarts.series.typeNames.pie":"Pie chart","echarts.series.typeNames.doughnut":"Doughnut chart","echarts.series.typeNames.scatter":"Scatter chart","echarts.series.typeNames.radar":"Radar chart","echarts.series.typeNames.funnel":"Funnel chart","echarts.series.typeNames.gauge":"Gauge chart","echarts.label.formatter.value":"Value","echarts.label.formatter.nameValue":"Name: Value","echarts.label.formatter.name":"Name","echarts.label.formatter.percent":"Percentage","echarts.label.position.bar.top":"Top","echarts.label.position.bar.inside":"Inside","echarts.label.position.bar.insideTop":"Inside top","echarts.label.position.bar.bottom":"Bottom","echarts.label.position.bar.insideBottom":"Inside bottom","echarts.label.position.bar.right":"Right","echarts.label.position.bar.left":"Left","echarts.label.position.bar.middle":"Center","echarts.label.position.line.top":"Top","echarts.label.position.line.bottom":"Bottom","echarts.label.position.line.inside":"Inside","echarts.label.position.line.left":"Left","echarts.label.position.line.right":"Right","echarts.label.position.pie.outside":"Outside","echarts.label.position.pie.inside":"Inside","echarts.label.position.pie.center":"Center","echarts.label.position.scatter.top":"Top","echarts.label.position.scatter.bottom":"Bottom","echarts.label.position.scatter.left":"Left","echarts.label.position.scatter.right":"Right","echarts.label.position.scatter.inside":"Inside","echarts.label.position.radar.top":"Top","echarts.label.position.radar.bottom":"Bottom","echarts.label.position.radar.left":"Left","echarts.label.position.radar.right":"Right","echarts.label.position.radar.inside":"Inside","echarts.label.position.funnel.outer":"Outside","echarts.label.position.funnel.inner":"Inside","echarts.label.position.funnel.left":"Left","echarts.label.position.funnel.right":"Right","echarts.label.position.funnel.top":"Top","echarts.label.position.funnel.bottom":"Bottom","echarts.meta.chartOption":"Chart option","echarts.meta.dataSource":"Data source","echarts.meta.categoryField":"Category field","echarts.meta.valueFields":"Value fields","echarts.meta.seriesField":"Series split field","echarts.meta.bubbleSize":"Bubble size","echarts.notes.bar":"Bar chart: category + multiple value fields, one series per field; write the $data placeholder in series[].data; fixed height, autoHeight is forbidden","echarts.notes.barH":"Horizontal bar: xAxis is the value axis, yAxis is the category axis; write the $data placeholder in yAxis.data for categories","echarts.notes.line":"Line chart: category + multiple value fields; do not write areaStyle","echarts.notes.area":"Area chart: line + series[].areaStyle; otherwise same as the line chart","echarts.notes.pie":"Pie chart: category + the first value field produce { name, value }; only one value field is needed","echarts.notes.doughnut":"Doughnut: pie + radius:[inner, outer]; the inner radius is configured in the panel","echarts.notes.scatter":"Scatter: the category field is x, the first value field is y; when chartBubble is on, the second value field is the point size","echarts.notes.radar":"Radar: each value field is a dimension (radar.indicator), each data row is a series (the category field is the series name); the radius is written by the panel to radar.radius (%, default 75)","echarts.notes.funnel":"Funnel: category + the first value field, sorted descending; the four insets are written by the panel to series.left/right/top/bottom (%, reserve room on the right for outer labels)","echarts.notes.gauge":"Gauge: the first value field of the first data row is the pointer value; min/max are written by the panel to series[0].min/max"}},E6={echarts:{"echarts.panel.chart":"แผนภูมิ","echarts.panel.config":"การกำหนดค่า","echarts.panel.dataSource":"แหล่งข้อมูล","echarts.panel.category":"หมวดหมู่","echarts.panel.value":"ค่า","echarts.panel.series":"ชุดข้อมูล","echarts.panel.chartType.bar":"แท่ง","echarts.panel.chartType.barH":"แท่งแนวนอน","echarts.panel.chartType.line":"เส้น","echarts.panel.chartType.area":"พื้นที่","echarts.panel.chartType.pie":"วงกลม","echarts.panel.chartType.doughnut":"วงกลมวงแหวน","echarts.panel.chartType.scatter":"จุดกระจาย","echarts.panel.chartType.radar":"เรดาร์","echarts.panel.chartType.funnel":"ช่องทาง","echarts.panel.chartType.gauge":"เกจวัด","echarts.panel.dataLabel":"ป้ายข้อมูล","echarts.panel.valueLabel":"ป้ายค่า","echarts.panel.hint.dataBinding":"ข้อมูลถูกแทรกตอนผูกเทมเพลต; คงตัวแทน `$data` ไว้ในข้อมูล series/xAxis; สามารถเขียนสไตล์ขั้นสูงใน chartOption ของ JSON เทมเพลตได้","echarts.panel.field.dimension":"ฟิลด์มิติ (หนึ่งฟิลด์ต่อหนึ่งมิติ)","echarts.panel.field.value":"ฟิลด์ค่า","echarts.panel.field.valueMulti":"ฟิลด์ค่า (หลายค่า หลายชุดข้อมูล)","echarts.panel.default":"(ค่าเริ่มต้น)","echarts.panel.current":"(ปัจจุบัน)","echarts.panel.defaultFirstArray":"(ค่าเริ่มต้น: อาร์เรย์ระดับบนตัวแรก)","echarts.panel.error.invalidOption":"ตัวเลือกแผนภูมิไม่ถูกต้อง: คาดว่าเป็นอ็อบเจกต์","echarts.panel.chartFallback":"แผนภูมิ","echarts.panel.optionDefault":"(ค่าเริ่มต้น)","echarts.panel.overflow.default":"ค่าเริ่มต้น","echarts.panel.overflow.none":"ไม่มี (แสดงทั้งหมด)","echarts.panel.overflow.truncate":"ตัดทิ้ง","echarts.panel.overflow.break":"ตัดคำ","echarts.panel.fontWeight.default":"ค่าเริ่มต้น","echarts.panel.fontWeight.normal":"ปกติ","echarts.panel.fontWeight.bold":"หนา","echarts.panel.label.distance":"ระยะห่าง","echarts.panel.label.rotate":"การหมุน (องศา)","echarts.panel.label.fontSize":"ขนาดฟอนต์","echarts.panel.label.fontWeight":"น้ำหนักฟอนต์","echarts.panel.label.color":"สีข้อความ","echarts.panel.label.backgroundColor":"สีพื้นหลัง","echarts.panel.label.borderColor":"สีเส้นขอบ","echarts.panel.label.borderWidth":"ความกว้างเส้นขอบ","echarts.panel.label.borderRadius":"รัศมี","echarts.panel.label.padding":"ระยะภายใน","echarts.panel.label.show":"แสดงป้ายข้อมูล","echarts.panel.label.content":"เนื้อหา","echarts.panel.label.formatterTitle":"เนื้อหาป้ายข้อมูล","echarts.panel.label.formatterCustom":"กำหนดเอง / ค่าเริ่มต้น","echarts.panel.label.formatterPlaceholder":"เช่น {b}: {c}","echarts.panel.label.overflow":"ล้น","echarts.panel.label.position":"ตำแหน่ง","echarts.panel.label.positionTitle":"ตำแหน่งป้าย","echarts.panel.label.positionDefault":"ค่าเริ่มต้น","echarts.panel.label.offset":"ออฟเซ็ต X / Y","echarts.panel.label.style":"สไตล์","echarts.panel.labelLine.fontWeight":"น้ำหนักฟอนต์","echarts.panel.labelLine":"เส้นป้าย","echarts.panel.labelLine.show":"แสดงเส้นป้าย","echarts.panel.labelLine.length":"ความยาวเส้นป้าย","echarts.panel.labelLine.length2":"ความยาวท่อนที่สอง","echarts.panel.labelLine.smooth":"เส้นป้ายโค้ง","echarts.panel.dataSourceTitle":"แหล่งข้อมูล","echarts.panel.categoryField":"ฟิลด์หมวดหมู่","echarts.panel.removeField":"ลบฟิลด์นี้","echarts.panel.addField":"+ เพิ่มฟิลด์","echarts.panel.seriesField":"ฟิลด์แยกชุดข้อมูล","echarts.panel.seriesFieldHint":"ไม่บังคับ เช่น region (แยกเป็นชุดข้อมูลตามค่า)","echarts.panel.bubbleSize":"ขนาดฟอง","echarts.panel.title":"ชื่อแผนภูมิ","echarts.panel.titleHint":"เว้นว่างเพื่อซ่อนชื่อ","echarts.panel.legend":"แสดงคำอธิบาย","echarts.panel.palette":"ชุดสี","echarts.palette.default":"สีน้ำเงินเริ่มต้น","echarts.palette.fresh":"สีเขียวสดชื่น","echarts.palette.warm":"สีส้มแดงอบอุ่น","echarts.palette.purple":"สีมูฟเทา","echarts.panel.stack":"ซ้อนกัน","echarts.panel.innerRadius":"รัศมีใน (%)","echarts.panel.paddingTRBL":"ระยะบน/ขวา/ล่าง/ซ้าย (%)","echarts.panel.paddingTop":"ระยะบน","echarts.panel.paddingRight":"ระยะขวา (สำหรับป้ายด้านนอก)","echarts.panel.paddingBottom":"ระยะล่าง","echarts.panel.paddingLeft":"ระยะซ้าย","echarts.panel.radius":"รัศมี (%)","echarts.panel.minMax":"ต่ำสุด / สูงสุด","echarts.panel.group":"แผนภูมิ","echarts.series.typeNames.bar":"แผนภูมิแท่ง","echarts.series.typeNames.barH":"แผนภูมิแท่งแนวนอน","echarts.series.typeNames.line":"แผนภูมิเส้น","echarts.series.typeNames.area":"แผนภูมิพื้นที่","echarts.series.typeNames.pie":"แผนภูมิวงกลม","echarts.series.typeNames.doughnut":"แผนภูมิวงกลมวงแหวน","echarts.series.typeNames.scatter":"แผนภูมิกระจาย","echarts.series.typeNames.radar":"แผนภูมิเรดาร์","echarts.series.typeNames.funnel":"แผนภูมิช่องทาง","echarts.series.typeNames.gauge":"แผนภูมิเกจวัด","echarts.label.formatter.value":"ค่า","echarts.label.formatter.nameValue":"ชื่อ: ค่า","echarts.label.formatter.name":"ชื่อ","echarts.label.formatter.percent":"เปอร์เซ็นต์","echarts.label.position.bar.top":"บน","echarts.label.position.bar.inside":"ด้านใน","echarts.label.position.bar.insideTop":"ด้านในบน","echarts.label.position.bar.bottom":"ล่าง","echarts.label.position.bar.insideBottom":"ด้านในล่าง","echarts.label.position.bar.right":"ขวา","echarts.label.position.bar.left":"ซ้าย","echarts.label.position.bar.middle":"กลาง","echarts.label.position.line.top":"บน","echarts.label.position.line.bottom":"ล่าง","echarts.label.position.line.inside":"ด้านใน","echarts.label.position.line.left":"ซ้าย","echarts.label.position.line.right":"ขวา","echarts.label.position.pie.outside":"ด้านนอก","echarts.label.position.pie.inside":"ด้านใน","echarts.label.position.pie.center":"กลาง","echarts.label.position.scatter.top":"บน","echarts.label.position.scatter.bottom":"ล่าง","echarts.label.position.scatter.left":"ซ้าย","echarts.label.position.scatter.right":"ขวา","echarts.label.position.scatter.inside":"ด้านใน","echarts.label.position.radar.top":"บน","echarts.label.position.radar.bottom":"ล่าง","echarts.label.position.radar.left":"ซ้าย","echarts.label.position.radar.right":"ขวา","echarts.label.position.radar.inside":"ด้านใน","echarts.label.position.funnel.outer":"ด้านนอก","echarts.label.position.funnel.inner":"ด้านใน","echarts.label.position.funnel.left":"ซ้าย","echarts.label.position.funnel.right":"ขวา","echarts.label.position.funnel.top":"บน","echarts.label.position.funnel.bottom":"ล่าง","echarts.meta.chartOption":"ตัวเลือกแผนภูมิ","echarts.meta.dataSource":"แหล่งข้อมูล","echarts.meta.categoryField":"ฟิลด์หมวดหมู่","echarts.meta.valueFields":"ฟิลด์ค่า","echarts.meta.seriesField":"ฟิลด์แยกชุดข้อมูล","echarts.meta.bubbleSize":"ขนาดฟอง","echarts.notes.bar":"แผนภูมิแท่ง: หมวดหมู่ + ฟิลด์ค่าหลายตัว หนึ่งฟิลด์ต่อหนึ่ง series; เขียนตัวแทน $data ใน series[].data; ความสูงคงที่ ห้ามใช้ autoHeight","echarts.notes.barH":"แท่งแนวนอน: xAxis เป็นแกนค่า yAxis เป็นแกนหมวดหมู่; เขียนตัวแทน $data ใน yAxis.data สำหรับหมวดหมู่","echarts.notes.line":"แผนภูมิเส้น: หมวดหมู่ + ฟิลด์ค่าหลายตัว; ไม่เขียน areaStyle","echarts.notes.area":"แผนภูมิพื้นที่: เส้น + series[].areaStyle; นอกนั้นเหมือนแผนภูมิเส้น","echarts.notes.pie":"แผนภูมิวงกลม: หมวดหมู่ + ฟิลด์ค่าตัวแรกสร้าง { name, value }; ต้องการเพียงหนึ่งฟิลด์ค่า","echarts.notes.doughnut":"วงกลมวงแหวน: วงกลม + radius:[รัศมีใน, รัศมีนอก]; รัศมีในกำหนดในแผง","echarts.notes.scatter":"แผนภูมิกระจาย: ฟิลด์หมวดหมู่เป็น x ฟิลด์ค่าตัวแรกเป็น y; เมื่อเปิด chartBubble ฟิลด์ค่าตัวที่สองเป็นขนาดจุด","echarts.notes.radar":"แผนภูมิเรดาร์: ฟิลด์ค่าทุกตัวคือหนึ่งมิติ (radar.indicator) ข้อมูลแต่ละแถวคือหนึ่ง series (ฟิลด์หมวดหมู่เป็นชื่อ series); รัศมีเขียนโดยแผงไปที่ radar.radius (%, ค่าเริ่มต้น 75)","echarts.notes.funnel":"แผนภูมิช่องทาง: หมวดหมู่ + ฟิลด์ค่าตัวแรก เรียงตามค่าลงมา; ระยะภายในสี่ด้านเขียนโดยแผงไปที่ series.left/right/top/bottom (%, เผื่อพื้นที่ด้านขวาสำหรับป้ายด้านนอก)","echarts.notes.gauge":"แผนภูมิเกจวัด: ฟิลด์ค่าตัวแรกของแถวข้อมูลแรกเป็นค่าผลักดัน; min/max เขียนโดยแผงไปที่ series[0].min/max"}},$P=Symbol.for("worm-print-platform.element-ui-registry.v1"),YP=globalThis;function KP(){const t=YP[$P];if(t)return t;const e={entries:new Map,listeners:new Set,nextSeq:0};return YP[$P]=e,e}function XP(){for(const t of[...KP().listeners])try{t()}catch{}}function qP(t){if(!t||typeof t!="object")throw new Error("registerElementUI: 需要 ElementUI 对象");if(!Array.isArray(t.types)||t.types.length===0)throw new Error("registerElementUI: types 必须是非空数组");for(const e of t.types)if(!e||typeof e!="string")throw new Error("registerElementUI: types 内每项必须是非空字符串");if(typeof t.renderCanvas!="function")throw new Error(`registerElementUI: ${t.types.join(",")} 缺少 renderCanvas`);if(t.renderProperty!==void 0&&typeof t.renderProperty!="function")throw new Error(`registerElementUI: ${t.types.join(",")} 的 renderProperty 必须是函数`);if(t.locales!==void 0){if(typeof t.locales!="object"||t.locales===null)throw new Error("registerElementUI: locales 必须是对象");const e=`${t.i18nId??t.types[0]}.`;for(const r of Object.values(t.locales)){if(typeof r!="object"||r===null)throw new Error("registerElementUI: locales 的每个语言包必须是对象");for(const a of Object.keys(r))if(!a.startsWith(e))throw new Error(`registerElementUI: 语言包键必须以 "${e}" 开头,收到 "${a}"`)}}}function I6(t){return qP(t),t}function O6(t){qP(t);const e=KP(),r=e.nextSeq++,a=t.i18nId??t.types[0],n=t.locales?Object.entries(t.locales).map(([i,o])=>YS(i,a,o)):[];for(const i of t.types)e.entries.set(i,{ui:t,seq:r,disposeLocales:n});return XP(),()=>{for(const o of n)o();let i=!1;for(const o of t.types)e.entries.get(o)?.ui===t&&(e.entries.delete(o),i=!0);i&&XP()}}function it(t,e={},r=[]){return{tag:t,props:e,children:r}}var jP="http://www.w3.org/2000/svg",R6=new Set(["draggable","contenteditable","spellcheck"]),B6=new Set(["indeterminate"]);function N6(t){return t==="svg"||t==="path"||t==="circle"||t==="rect"||t==="line"||t==="g"}function F6(t){return t instanceof Element&&t.namespaceURI===jP}function Rv(t,e){if(typeof t=="string"){const o=document.createTextNode(t);return e.appendChild(o),o}if(t instanceof Node)return e.appendChild(t),t;const{tag:r,props:a,children:n}=t,i=N6(r)||F6(e)?document.createElementNS(jP,r):document.createElement(r);for(const[o,s]of Object.entries(a))if(!(s==null||s===!1))if(o==="class")i.setAttribute("class",String(s));else if(o==="style")typeof s=="string"?i.style.cssText=s:Object.assign(i.style,s);else if(o==="html")i.innerHTML=String(s);else if(o==="text")i.textContent=String(s);else if(o.startsWith("on")&&typeof s=="function")i.addEventListener(o.slice(2).toLowerCase(),s);else if(o==="dataset")for(const[l,u]of Object.entries(s))i.dataset[l]=u;else B6.has(o)?i[o]=!0:typeof s=="boolean"?s&&i.setAttribute(o,R6.has(o)?"true":""):i.setAttribute(o,String(s));for(const o of n)Rv(o,i);return e.appendChild(i),i}var Pn=null;function Bv(t){const e=/^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(t.trim());if(!e)return null;const r=e[1],a=r.length===3?r.split("").map(n=>n+n).join(""):r;return{r:Number.parseInt(a.slice(0,2),16),g:Number.parseInt(a.slice(2,4),16),b:Number.parseInt(a.slice(4,6),16)}}function Nv(t){const e=Bv(t);return e?ZP(e):"#000000"}function ZP({r:t,g:e,b:r}){return`#${[t,e,r].map(a=>Math.round(ys(a/255)*255).toString(16).padStart(2,"0")).join("")}`}function z6(t,e,r){const a=t/255,n=e/255,i=r/255,o=Math.max(a,n,i),s=Math.min(a,n,i),l=o-s;let u=0;return l!==0&&(o===a?u=(n-i)/l%6:o===n?u=(i-a)/l+2:u=(a-n)/l+4,u*=60,u<0&&(u+=360)),{h:u,s:o===0?0:l/o,v:o}}function H6(t,e,r){const a=r*e,n=(t%360+360)%360/60,i=a*(1-Math.abs(n%2-1)),[o,s,l]=n<1?[a,i,0]:n<2?[i,a,0]:n<3?[0,a,i]:n<4?[0,i,a]:n<5?[i,0,a]:[a,0,i],u=r-a;return{r:(o+u)*255,g:(s+u)*255,b:(l+u)*255}}function V6(t){return((Number.isFinite(t)?t:0)%360+360)%360}function ys(t){return Math.min(1,Math.max(0,Number.isFinite(t)?t:0))}function U6(t){const e=t.translator??Zt,r=t.title??e("colorPicker.pickColor");return it("button",{type:"button",class:`preset-color-trigger${t.triggerClass?` ${t.triggerClass}`:""}`,"aria-expanded":"false","aria-haspopup":"dialog",title:r,onClick:a=>{const n=a.currentTarget??a.target,i=n.getRootNode();if(!!Pn&&Pn.root===i&&Pn.title===r&&Pn.trigger===n){bs();return}bs(),G6(n,t,e)}},[it("span",{class:"preset-color-swatch",style:t.value?{background:t.value}:{background:"transparent"}})])}function bs(){const t=Pn;t&&(Pn=null,t.teardowns.forEach(e=>e()),t.trigger.setAttribute("aria-expanded","false"),t.panel.remove())}function G6(t,e,r){const a=t.getRootNode(),n=a instanceof ShadowRoot?a:document.body,i={root:a,title:e.title??r("colorPicker.pickColor"),trigger:t,panel:null,clearable:e.clearable!==!1,onChange:e.onChange,model:e.value||void 0,hue:0,saturation:0,value_:0,hexText:"",dragging:!1,current:null,hex:null,area:null,handle:null,hueRange:null,clearBtn:null,translator:r,items:[],teardowns:[]};e.value&&zv(i,e.value)?i.hexText=Nv(e.value).toUpperCase():i.hexText=e.value?String(e.value):"",i.panel=Rv(K6(i),n),i.current=i.panel.querySelector(".picker-current"),i.hex=i.panel.querySelector(".picker-hex"),i.area=i.panel.querySelector(".picker-area"),i.handle=i.panel.querySelector(".picker-handle"),i.hueRange=i.panel.querySelector(".picker-hue"),i.clearBtn=i.panel.querySelector(".picker-clear"),i.items=Array.from(i.panel.querySelectorAll(".preset-color-item")).map((o,s)=>({el:o,color:Sg[s]})),yp(i),W6(i),$6(i),Pn=i,t.setAttribute("aria-expanded","true")}function W6(t){const e=t.trigger.getBoundingClientRect(),r=190,a=t.panel.offsetHeight||216,n=8,i=Math.max(n,Math.min(e.left,window.innerWidth-r-n)),o=e.bottom+6,s=o+a>window.innerHeight-n?Math.max(n,e.top-a-6):o;t.panel.style.left=`${i}px`,t.panel.style.top=`${s}px`}function $6(t){const e=n=>{const i=Y6(n);i.includes(t.trigger)||i.includes(t.panel)||bs()},r=n=>{n.key==="Escape"&&bs()},a=()=>bs();document.addEventListener("pointerdown",e,!0),document.addEventListener("keydown",r),window.addEventListener("scroll",a,!0),window.addEventListener("resize",a),t.root.addEventListener("scroll",a,!0),t.teardowns.push(()=>document.removeEventListener("pointerdown",e,!0),()=>document.removeEventListener("keydown",r),()=>window.removeEventListener("scroll",a,!0),()=>window.removeEventListener("resize",a),()=>t.root.removeEventListener("scroll",a,!0))}function Y6(t){const e=typeof t.composedPath=="function"?t.composedPath():[];return e.length?e:[t.target]}function K6(t){const e=t.translator;return it("div",{class:"preset-color-panel",role:"dialog","aria-label":e("colorPicker.pickColor"),style:{position:"fixed"},onPointerdown:r=>r.stopPropagation()},[it("div",{class:"picker-preview"},[it("span",{class:"picker-current"}),it("input",{class:"picker-hex",type:"text",maxlength:7,spellcheck:"false","aria-label":e("colorPicker.hexValue"),onInput:r=>q6(t,r.target.value)})]),it("div",{class:"picker-area","aria-label":e("colorPicker.customColor"),tabindex:0,onPointerdown:r=>j6(t,r),onKeydown:r=>Z6(t,r)},[it("span",{class:"picker-handle"})]),it("input",{class:"picker-hue",type:"range",min:0,max:360,step:1,"aria-label":e("colorPicker.hue"),onInput:r=>Q6(t,Number(r.target.value)),onChange:()=>Hv(t)}),it("div",{class:"picker-heading"},[it("span",{text:e("colorPicker.commonColors")}),t.clearable?it("button",{type:"button",class:"picker-clear",title:e("colorPicker.clear"),onClick:()=>bp(t,void 0)},[it("svg",{viewBox:"0 0 16 16",width:12,height:12,"aria-hidden":"true"},[it("path",{d:"M3 3l10 10M13 3L3 13",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round",fill:"none"})]),e("colorPicker.clearShort")]):""].filter(Boolean)),it("div",{class:"preset-color-grid"},Sg.map(r=>it("button",{type:"button",class:"preset-color-item",style:{background:r},title:r,"aria-label":r,onClick:()=>X6(t,r)})))])}function Fv(t){return ZP(H6(t.hue,t.saturation,t.value_))}function yp(t){const e=Fv(t);t.hex.value!==t.hexText&&(t.hex.value=t.hexText),t.current.className=t.model?"picker-current":"picker-current is-empty",t.model?t.current.style.background=e:t.current.style.removeProperty("background"),t.area.style.setProperty("--picker-hue",`${Math.round(t.hue)}deg`),t.handle.style.left=`${t.saturation*100}%`,t.handle.style.top=`${(1-t.value_)*100}%`,t.handle.style.background=e;const r=String(Math.round(t.hue));t.hueRange.value!==r&&(t.hueRange.value=r),t.clearBtn&&(t.clearBtn.disabled=!t.model);for(const a of t.items)a.el.className=t.model&&a.color.toLowerCase()===t.model.toLowerCase()?"preset-color-item active":"preset-color-item"}function zv(t,e){const r=Bv(e);if(!r)return!1;const a=z6(r.r,r.g,r.b);return t.hue=a.h,t.saturation=a.s,t.value_=a.v,t.hexText=Nv(e).toUpperCase(),!0}function Mi(t,e,r,a){t.hue=V6(e),t.saturation=ys(r),t.value_=ys(a),t.hexText=Fv(t).toUpperCase(),yp(t)}function Hv(t){const e=Fv(t);t.model=e,yp(t),t.onChange(e)}function bp(t,e){t.model=e,e||(t.hexText=""),yp(t),t.onChange(e)}function X6(t,e){zv(t,e),bp(t,e)}function q6(t,e){const r=e.trim();if(!r){t.clearable&&bp(t,void 0);return}Bv(r)&&(zv(t,r),bp(t,Nv(r)))}function j6(t,e){t.dragging=!0,QP(t,e);const r=n=>{t.dragging&&QP(t,n)},a=()=>{t.dragging&&(t.dragging=!1,document.removeEventListener("pointermove",r),document.removeEventListener("pointerup",a),document.removeEventListener("pointercancel",a),Hv(t))};document.addEventListener("pointermove",r),document.addEventListener("pointerup",a),document.addEventListener("pointercancel",a)}function QP(t,e){const r=t.area.getBoundingClientRect();if(!r.width||!r.height)return;const a=ys((e.clientX-r.left)/r.width),n=ys(1-(e.clientY-r.top)/r.height);Mi(t,t.hue,a,n)}function Z6(t,e){const r=e.shiftKey?.1:.02;let a=!0;e.key==="ArrowLeft"?Mi(t,t.hue,t.saturation-r,t.value_):e.key==="ArrowRight"?Mi(t,t.hue,t.saturation+r,t.value_):e.key==="ArrowUp"?Mi(t,t.hue,t.saturation,t.value_+r):e.key==="ArrowDown"?Mi(t,t.hue,t.saturation,t.value_-r):a=!1,a&&(e.preventDefault(),Hv(t))}function Q6(t,e){Mi(t,e,t.saturation,t.value_)}let kp=Zt;const X=(t,e)=>kp(t,e);function J6(t,e){const r=kp;kp=t??Zt;try{return e()}finally{kp=r}}const JP="width:100%;height:100%;min-width:0;min-height:0;pointer-events:none",eF=[".echarts-canvas-element{overflow:hidden}",".echarts-field-row{display:flex;gap:6px;align-items:center}",".echarts-field-row>.pd-input{flex:1;min-width:0}",".echarts-field-row>.pd-button{flex:none}",".echarts-dropdown-trigger{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;height:26px;min-height:26px;padding:3px 6px;border:1px solid var(--pd-border,#d9dde6);border-radius:6px;background:var(--pd-input-bg,#fff);color:inherit;font:inherit;box-sizing:border-box;cursor:pointer;text-align:left}",".echarts-dropdown-trigger:hover{border-color:var(--pd-text-faint,#b4b9c4)}",'.echarts-dropdown-trigger[aria-expanded="true"]{border-color:var(--pd-accent,#165dff);box-shadow:0 0 0 2px rgb(22 93 255 / 12%)}',".echarts-dropdown-value{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",".echarts-dropdown-arrow{flex:none;color:var(--pd-text-muted,#909399);font-size:10px;transition:transform .14s}",'.echarts-dropdown-trigger[aria-expanded="true"] .echarts-dropdown-arrow{transform:rotate(180deg)}',".echarts-dropdown-panel{position:fixed;z-index:1200;max-height:240px;overflow:auto;padding:3px;border:1px solid var(--pd-border,#d9dde6);border-radius:6px;background:var(--pd-input-bg,#fff);box-shadow:0 6px 18px rgb(0 0 0 / 14%);box-sizing:border-box}",".echarts-dropdown-option{padding:5px 8px;border-radius:4px;cursor:pointer;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}",".echarts-dropdown-option:hover{background:var(--pd-accent-soft,rgb(22 93 255 / 9%))}",".echarts-dropdown-option.is-active{background:var(--pd-accent-soft,rgb(22 93 255 / 9%));color:var(--pd-accent,#165dff)}",".echarts-label-group{margin-top:8px;border-top:1px solid var(--pd-border,#e5e7eb);padding-top:8px}",".echarts-label-group>summary{display:flex;align-items:center;cursor:pointer;list-style:none;font-size:12px;font-weight:600}",".echarts-label-summary>.pd-field{flex:1;margin:0;font-weight:400}",".echarts-label-sub{font-size:11px;color:var(--pd-text-secondary,#6b7280);margin:8px 0 4px}"].join(""),tF=["chartOption","chartDataSource","chartCategoryField","chartValueFields","chartSeriesField","chartBubble"],rF=["图表","echarts","option","配置","数据源","类目","数值","系列","柱状","条形","折线","面积","饼","环形","散点","雷达","漏斗","仪表","数据标签","数值标签","label"],aF=()=>X("echarts.panel.hint.dataBinding");function nF(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Vv(t){return t.printElementType?.type??""}function eS(t){const e=t.options.chartOption;return e&&typeof e=="object"&&!Array.isArray(e)?e:void 0}function Le(t){const e=eS(t);return Ai(e??Os(Vv(t)))}function iF(t){const e=t?.options;if(!e||typeof e!="object")return!1;const r=e;return tF.some(a=>r[a]!==void 0)}function vt(t,e,r,a={}){t.update({chartOption:gp(e,r),...a})}function wp(t){const e=t.options.chartValueFields;return Array.isArray(e)?e.map(String):[]}function oF(t){switch(t?.seriesType){case"pie":case"funnel":case"gauge":return 1;case"scatter":return 2;default:return 8}}function sF(t,e){return t?.seriesType==="radar"?X("echarts.panel.field.dimension"):X(e===1?"echarts.panel.field.value":"echarts.panel.field.valueMulti")}function lF(t,e){const r=t?.[0],a=r?Object.keys(r).filter(n=>Array.isArray(r[n])):[];for(const n of e??[])n.fieldType==="list"&&n.fieldKey&&!a.includes(n.fieldKey)&&a.push(n.fieldKey);return a}function tS(t,e){const r=t?.[0];if(!r)return[];const a=e?Array.isArray(r[e])?e:"":Object.keys(r).find(i=>Array.isArray(r[i]));if(!a)return[];const n=r[a];return n.length>0&&typeof n[0]=="object"&&n[0]!==null?Object.keys(n[0]):[]}function uF(t){const e=new Map;for(const r of t??[])r.fieldKey&&r.fieldLabel&&e.set(r.fieldKey,r.fieldLabel);return e}function rS(t,e,r){if(!t)return r??X("echarts.panel.default");const a=e.get(t),n=a?`${a}(${t})`:t;return r?`${n}${r}`:n}function Uv(t,e,r=new Map){const a=t.map(n=>({value:n,label:rS(n,r)}));return e&&!t.includes(e)&&a.unshift({value:e,label:rS(e,r,X("echarts.panel.current"))}),e||a.unshift({value:"",label:X("echarts.panel.defaultFirstArray")}),a}function Sn(t){return Array.isArray(t.series)?t.series:[]}function Gv(t,e,r){return Math.min(r,Math.max(e,t))}function Wv(t,e,r){const a=r6(Le(t.element),r.length,e);(Array.isArray(a.series)?a.series:[]).forEach((i,o)=>{const s=r[o]?.trim();s&&(i.name=s)}),vt(t,e,a,{chartValueFields:r})}function pF(t){const e=t.element,r=Vv(e),a=e.options,n=Number(a.width)||0,i=Number(a.height)||0;try{const o=e6(r,eS(e)??Os(r)),s=gp(r,o);if(!s||typeof s!="object"||Array.isArray(s))throw new Error(X("echarts.panel.error.invalidOption"));const l=typeof a.fontFamily=="string"&&a.fontFamily?a.fontFamily:void 0,u=Iv({key:e.id,type:r,option:s,widthMm:n,heightMm:i,fontFamily:l});return`<div class="echarts-canvas-element" style="${JP}">${u}</div>`}catch{const o=typeof a.title=="string"&&a.title.trim()?a.title:Je(r)?.label??X("echarts.panel.chartFallback");return`<div class="echarts-canvas-element" style="${JP}">${nF(o)}</div>`}}function xe(t,e,r){const a=document.createElement(t);return e&&(a.className=e),r!==void 0&&(a.textContent=r),a}function Ge(t){const e=xe("div","pd-field");return e.appendChild(xe("span","pd-label",t)),e}function At(t,e){const r=xe("input","pd-input");return t.type&&(r.type=t.type),t.placeholder&&(r.placeholder=t.placeholder),t.min!==void 0&&(r.min=String(t.min)),t.max!==void 0&&(r.max=String(t.max)),t.title&&(r.title=t.title),t.list&&r.setAttribute("list",t.list),r.value=t.value,r.addEventListener("change",()=>e(r.value)),r}function Ei(t,e,r){const a=Ge(t);a.style.cssText="flex-direction:row;align-items:center;justify-content:space-between";const n=xe("input","pd-switch");return n.type="checkbox",n.checked=e,n.addEventListener("change",()=>r(n.checked)),a.appendChild(n),a}function _p(t,e,r){const a=xe("select","pd-select");for(const n of t){const i=xe("option");i.value=n.value,i.textContent=n.label,a.appendChild(i)}return a.value=e,a.addEventListener("change",()=>r(a.value)),a}let xp=null;function cF(t){const e=typeof t.composedPath=="function"?t.composedPath():[];return e.length?e:[t.target]}function $v(t,e,r){const a=t.find(c=>c.value===e)??{label:e||X("echarts.panel.optionDefault")},n=xe("button","echarts-dropdown-trigger");n.type="button",n.setAttribute("aria-haspopup","listbox"),n.setAttribute("aria-expanded","false");const i=xe("span","echarts-dropdown-value",a.label),o=xe("span","echarts-dropdown-arrow","▾");n.appendChild(i),n.appendChild(o);let s=null,l=[];const u=()=>{l.forEach(c=>c()),l=[],s?.remove(),s=null,n.setAttribute("aria-expanded","false"),xp?.close===u&&(xp=null)},p=()=>{xp?.close();const c=n.getRootNode(),f=c instanceof ShadowRoot?c:document.body;s=xe("div","echarts-dropdown-panel"),s.setAttribute("role","listbox");for(const g of t){const y=xe("div",`echarts-dropdown-option${g.value===e?" is-active":""}`,g.label);y.setAttribute("role","option"),y.setAttribute("aria-selected",g.value===e?"true":"false"),y.addEventListener("click",b=>{b.stopPropagation(),u(),r(g.value)}),s.appendChild(y)}f.appendChild(s);const h=n.getBoundingClientRect();s.style.left=`${h.left}px`,s.style.top=`${h.bottom+4}px`,s.style.minWidth=`${h.width}px`,n.setAttribute("aria-expanded","true"),xp={close:u};const d=g=>{const y=cF(g);y.includes(n)||y.includes(s)||u()},v=g=>{g.key==="Escape"&&u()},m=()=>u();document.addEventListener("pointerdown",d,!0),document.addEventListener("keydown",v),window.addEventListener("scroll",m,!0),window.addEventListener("resize",m),c.addEventListener("scroll",m,!0),l.push(()=>document.removeEventListener("pointerdown",d,!0),()=>document.removeEventListener("keydown",v),()=>window.removeEventListener("scroll",m,!0),()=>window.removeEventListener("resize",m),()=>c.removeEventListener("scroll",m,!0))};return n.addEventListener("click",c=>{c.stopPropagation(),s?u():p()}),n}const fF=()=>[{value:"",label:X("echarts.panel.overflow.default")},{value:"none",label:X("echarts.panel.overflow.none")},{value:"truncate",label:X("echarts.panel.overflow.truncate")},{value:"break",label:X("echarts.panel.overflow.break")}],hF=()=>[{value:"",label:X("echarts.panel.fontWeight.default")},{value:"normal",label:X("echarts.panel.fontWeight.normal")},{value:"bold",label:X("echarts.panel.fontWeight.bold")}],dF=()=>({distance:X("echarts.panel.label.distance"),rotate:X("echarts.panel.label.rotate"),fontSize:X("echarts.panel.label.fontSize"),fontWeight:X("echarts.panel.label.fontWeight"),color:X("echarts.panel.label.color"),backgroundColor:X("echarts.panel.label.backgroundColor"),borderColor:X("echarts.panel.label.borderColor"),borderWidth:X("echarts.panel.label.borderWidth"),borderRadius:X("echarts.panel.label.borderRadius"),padding:X("echarts.panel.label.padding")});function vF(t,e){const r=t.element,a=Je(e),n=v6(e),i=g=>n.includes(g),o=g6(Le(r),e),s=dF(),l=g=>{vt(t,e,y6(Le(r),e,g))},u=(g,y)=>{if(y.trim()==="")return l({[g]:null});const b=Number(y);Number.isFinite(b)&&l({[g]:b})},p=(g,y)=>{if(y.trim()==="")return l({labelLine:{[g]:null}});const b=Number(y);Number.isFinite(b)&&l({labelLine:{[g]:b}})},c=(g,y)=>{const b=Ge(s[g]??g);return b.appendChild(At({value:y===void 0?"":String(y),type:"number"},k=>u(g,k))),b},f=(g,y)=>{const b=Ge(s[g]??g),k=xe("span");return Rv(U6({value:y??"",title:s[g]??g,translator:t.t,onChange:w=>l({[g]:w??""})}),k),b.appendChild(k),b},h=xe("details","echarts-label-group");h.open=o.show;const d=xe("summary","echarts-label-summary"),v=Ei(X("echarts.panel.label.show"),o.show,g=>l({enabled:g}));if(v.querySelector("input")?.addEventListener("click",g=>g.stopPropagation()),d.appendChild(v),h.appendChild(d),i("formatter")||i("overflow")){if(h.appendChild(xe("div","echarts-label-sub",X("echarts.panel.label.content"))),i("formatter")){const g=Ge(X("echarts.panel.label.formatterTitle"));g.appendChild(_p([{value:"",label:X("echarts.panel.label.formatterCustom")},...s6.map(y=>({value:y.formatter,label:X(y.labelKey)}))],o.formatter??"",y=>l({formatter:y}))),g.appendChild(At({value:o.formatter??"",placeholder:X("echarts.panel.label.formatterPlaceholder")},y=>l({formatter:y}))),h.appendChild(g)}if(i("overflow")){const g=Ge(X("echarts.panel.label.overflow"));g.appendChild(_p(fF(),o.overflow??"",y=>l({overflow:y}))),h.appendChild(g)}}if(i("position")||i("distance")||i("rotate")||i("offset")){if(h.appendChild(xe("div","echarts-label-sub",X("echarts.panel.label.position"))),i("position")){const g=Ge(X("echarts.panel.label.positionTitle")),y=a?l6[a.seriesType]??[]:[];g.appendChild(_p([{value:"",label:X("echarts.panel.label.positionDefault")},...y.map(b=>({value:b.value,label:X(b.labelKey)}))],o.position??"",b=>l({position:b}))),h.appendChild(g)}if(i("distance")&&h.appendChild(c("distance",o.distance)),i("rotate")&&h.appendChild(c("rotate",o.rotate)),i("offset")){let g=function(){const x=(T,C)=>{const P=T.value.trim();if(P==="")return 0;const S=Number(P);return Number.isFinite(S)?S:C};l({offset:[x(w,k[0]??0),x(_,k[1]??0)]})};const y=Ge(X("echarts.panel.label.offset")),b=xe("div","echarts-field-row"),k=o.offset??[0,0],w=At({value:String(k[0]??0),type:"number"},()=>g()),_=At({value:String(k[1]??0),type:"number"},()=>g());b.appendChild(w),b.appendChild(_),y.appendChild(b),h.appendChild(y)}}if(["fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"].some(i)){if(h.appendChild(xe("div","echarts-label-sub",X("echarts.panel.label.style"))),i("fontSize")&&h.appendChild(c("fontSize",o.fontSize)),i("fontWeight")){const g=Ge(X("echarts.panel.labelLine.fontWeight"));g.appendChild(_p(hF(),o.fontWeight??"",y=>l({fontWeight:y}))),h.appendChild(g)}for(const g of["color","backgroundColor","borderColor"])i(g)&&h.appendChild(f(g,o[g]));for(const g of["borderWidth","borderRadius","padding"])i(g)&&h.appendChild(c(g,o[g]))}if(i("labelLine.show")){if(h.appendChild(xe("div","echarts-label-sub",X("echarts.panel.labelLine"))),h.appendChild(Ei(X("echarts.panel.labelLine.show"),o.labelLine.show===!0,g=>l({labelLine:{show:g}}))),i("labelLine.length")){const g=Ge(X("echarts.panel.labelLine.length"));g.appendChild(At({value:o.labelLine.length===void 0?"":String(o.labelLine.length),type:"number"},y=>p("length",y))),h.appendChild(g)}if(i("labelLine.length2")){const g=Ge(X("echarts.panel.labelLine.length2"));g.appendChild(At({value:o.labelLine.length2===void 0?"":String(o.labelLine.length2),type:"number"},y=>p("length2",y))),h.appendChild(g)}i("labelLine.smooth")&&h.appendChild(Ei(X("echarts.panel.labelLine.smooth"),o.labelLine.smooth===!0,g=>l({labelLine:{smooth:g}})))}return h}function gF(t){return J6(t.t,()=>mF(t))}function mF(t){const e=t.element,r=Vv(e),a=Je(r),n=Wg(r),i=d=>n.includes(d),o=e.options,s=Number(o.width)||0,l=Number(o.height)||0,u=oF(a),p=Qg(),c=uF(t.fields),f=xe("div","echarts-property"),h=xe("form","pd-form");if(h.addEventListener("submit",d=>d.preventDefault()),f.appendChild(h),i("dataSource")){const d=Ge(X("echarts.panel.dataSourceTitle")),v=String(o.chartDataSource??"");d.appendChild($v(Uv(lF(t.data,t.fields),v,c),v,m=>vt(t,r,Le(e),{chartDataSource:m}))),h.appendChild(d)}if(i("categoryField")){const d=Ge(X("echarts.panel.categoryField")),v=String(o.chartCategoryField??"");d.appendChild($v(Uv(tS(t.data,String(o.chartDataSource??"")),v,c),v,m=>vt(t,r,Le(e),{chartCategoryField:m}))),h.appendChild(d)}if(i("valueFields")){const d=Ge(sF(a,u)),v=wp(e);if(v.forEach((m,g)=>{const y=xe("div","echarts-field-row");if(y.appendChild($v(Uv(tS(t.data,String(o.chartDataSource??"")),m,c),m,b=>{const k=wp(e);k[g]=b,Wv(t,r,k)})),v.length>1){const b=xe("button","pd-button small","−");b.type="button",b.title=X("echarts.panel.removeField"),b.addEventListener("click",()=>Wv(t,r,wp(e).filter((k,w)=>w!==g))),y.appendChild(b)}d.appendChild(y)}),v.length<u){const m=xe("button","pd-button small",X("echarts.panel.addField"));m.type="button",m.addEventListener("click",()=>Wv(t,r,[...wp(e),""])),d.appendChild(m)}h.appendChild(d)}if(i("seriesField")){const d=Ge(X("echarts.panel.seriesField"));d.appendChild(At({value:String(o.chartSeriesField??""),placeholder:X("echarts.panel.seriesFieldHint")},v=>vt(t,r,Le(e),{chartSeriesField:v}))),h.appendChild(d)}if(i("bubble")&&h.appendChild(Ei(X("echarts.panel.bubbleSize"),o.chartBubble===!0,d=>{vt(t,r,Le(e),{chartBubble:d})})),i("title")){const d=Ge(X("echarts.panel.title"));d.appendChild(At({value:String(Li(Le(e).title).text??""),placeholder:X("echarts.panel.titleHint")},v=>{const m=Le(e);m.title={...Li(m.title),text:v},vt(t,r,m)})),h.appendChild(d)}if(i("legend")){const d=Li(Le(e).legend).show!==!1;h.appendChild(Ei(X("echarts.panel.legend"),d,v=>{const m=Le(e);m.legend={...Li(m.legend),show:v},vt(t,r,m)}))}if(i("palette")){const d=Ge(X("echarts.panel.palette")),v=xe("select","pd-select");for(const m of p){const g=xe("option");g.value=m.key,g.textContent=m.labelKey?X(m.labelKey):m.label,v.appendChild(g)}v.value=t6(Le(e),p),v.addEventListener("change",()=>{const m=p.find(y=>y.key===v.value)??p[0],g=Le(e);g.color=[...m.colors],vt(t,r,g)}),d.appendChild(v),h.appendChild(d)}if(i("label")&&h.appendChild(vF(t,r)),i("stack")){const v=Sn(Le(e)).some(m=>m.stack!==void 0&&m.stack!==null&&m.stack!=="");h.appendChild(Ei(X("echarts.panel.stack"),v,m=>{const g=Le(e);for(const y of Sn(g))m?y.stack="total":delete y.stack;vt(t,r,g)}))}if(i("innerRadius")){const d=Ge(X("echarts.panel.innerRadius")),v=Sn(Le(e))[0]?.radius,m=Array.isArray(v)&&Number(String(v[0]??"40%").replace("%",""))||40;d.appendChild(At({value:String(m),type:"number",min:0,max:90},g=>{const y=Le(e),b=Sn(y);b[0]&&(b[0].radius=[`${Gv(Number(g)||0,0,90)}%`,"70%"]),vt(t,r,y)})),h.appendChild(d)}if(i("padding")){const d=Ge(X("echarts.panel.paddingTRBL")),v=VP(Le(e),s,l),m=xe("div","echarts-field-row"),g=[{side:"top",title:X("echarts.panel.paddingTop")},{side:"right",title:X("echarts.panel.paddingRight")},{side:"bottom",title:X("echarts.panel.paddingBottom")},{side:"left",title:X("echarts.panel.paddingLeft")}];for(const{side:y,title:b}of g)m.appendChild(At({value:String(v[y]),type:"number",min:0,max:60,title:b},k=>{const w=Number(k),_=Number.isFinite(w)?Gv(w,0,60):qg[y],x=Le(e),T=VP(x,s,l);vt(t,r,n6(x,{...T,[y]:_}))}));d.appendChild(m),h.appendChild(d)}if(i("radius")){const d=Ge(X("echarts.panel.radius"));d.appendChild(At({value:String(i6(Le(e),s,l)),type:"number",min:20,max:100},v=>{const m=Number(v),g=Number.isFinite(m)?Gv(m,20,100):jg;vt(t,r,o6(Le(e),g))})),h.appendChild(d)}if(i("gaugeRange")){const d=Ge(X("echarts.panel.minMax")),v=Sn(Le(e)),m=xe("div","echarts-field-row");m.appendChild(At({value:String(Number(v[0]?.min??0)),type:"number"},g=>{const y=Le(e),b=Sn(y);b[0]&&(b[0].min=Number(g)||0),vt(t,r,y)})),m.appendChild(At({value:String(Number(v[0]?.max??100)),type:"number"},g=>{const y=Le(e),b=Sn(y);b[0]&&(b[0].max=Number(g)||100),vt(t,r,y)})),d.appendChild(m),h.appendChild(d)}return h.appendChild(xe("p","pd-hint",aF())),f}const yF=I6({types:Gg,renderCanvas:pF,renderProperty:gF,hasProperties:iF,get group(){return X("echarts.panel.group")},searchKeywords:rF,styles:eF,i18nId:"echarts",locales:{"zh-CN":L6.echarts,"en-US":M6.echarts,"th-TH":E6.echarts}});let Yv;function bF(){return Yv?.(),Yv=O6(yF),Yv}bF();const kF={...A6};globalThis.WormPrintEcharts??=kF}));
|