@qaecy/cue-ui 0.0.37 → 0.0.39
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/112.js +1 -1
- package/137.js +1 -0
- package/153.js +1 -0
- package/222.js +1 -0
- package/311.js +1 -1
- package/329.js +1 -0
- package/336.js +1 -1
- package/347.js +1 -0
- package/36.js +1 -1
- package/376.js +1 -1
- package/382.js +1 -1
- package/41.js +1 -0
- package/419.js +1 -1
- package/423.js +1 -0
- package/493.js +1 -1
- package/586.js +1 -0
- package/613.js +1 -0
- package/614.js +1 -0
- package/628.js +1 -0
- package/629.js +1 -1
- package/673.js +1 -0
- package/675.js +1 -1
- package/695.js +1 -0
- package/7.js +1 -0
- package/836.js +1 -0
- package/872.js +1 -1
- package/879.js +1 -0
- package/911.js +1 -0
- package/957.js +1 -0
- package/README.md +195 -11
- package/common.js +1 -1
- package/index.js +1 -1
- package/main.js +1 -1
- package/package.json +1 -1
- package/170.js +0 -1
- package/5.js +0 -1
- package/571.js +0 -1
- package/611.js +0 -1
- package/627.js +0 -1
- package/722.js +0 -1
- package/773.js +0 -1
- package/828.js +0 -1
- package/834.js +0 -1
- package/953.js +0 -1
- package/995.js +0 -1
package/423.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[423],{6756(Vr,et,O){O.d(et,{BK:()=>P,In:()=>Me,Kz:()=>yt,Mc:()=>Ut,U6:()=>Xe,g0:()=>sn,g8:()=>I,r:()=>A,u9:()=>rt});const P=["#2B5DE6","#1A2B50","#C5E045","#6FA8FF","#00C2E0","#5847EB","#008585","#4ADE80","#0F4C81","#8B5CF6","#FACC15","#FB923C","#F43F5E","#E879F9","#D97706","#334155","#64748B","#94A3B8","#C7D2FE","#F8FAFC"];function A(H){switch(H){case"primary":default:return"#2859e1";case"accent":return"#e2f552";case"tertiary":return"#ffffff"}}function Xe(H){switch(H){case"primary":default:return"#1744c2";case"accent":return"#b8cc3f";case"tertiary":return"#eeeeee"}}function I(H){const[he,ee,te]=function gt(H,he){if(void 0===H)return[];const te=window.getComputedStyle(H.nativeElement);return he.map(Pe=>te.getPropertyValue(Pe).trim()||"")}(H,["--cue-chart-text-color","--cue-chart-border-background-color","--chart-graph-edge-color"]);return{text:he,borderBackground:ee,edgeColor:te}}const rt={fontFamily:"Poppins, sans-serif",fontWeight:"normal",color:"#333"};function Me(H){return H>=1e6?`${(H/1e6).toFixed(1)}m`:H>=1e3?`${(H/1e3).toFixed(0)}k`:H.toString()}function yt(H,he,ee,te){if(1===te)return H;const Pe=ne(H),je=ne(he),fe=ee/(te-1);return`rgb(${Math.round(Pe.r+(je.r-Pe.r)*fe)}, ${Math.round(Pe.g+(je.g-Pe.g)*fe)}, ${Math.round(Pe.b+(je.b-Pe.b)*fe)})`}const Ut=(H,he)=>void 0===he?H:he.children??[];function sn(H,he,ee=.05,te="Other"){const Pe=H.reduce((ie,$)=>ie+ue($),0),je=[],fe=[];if(H.forEach(ie=>{let $,ae;$=void 0===ie.value&&Array.isArray(ie.children)&&ie.children.length>0?ie.children.reduce((V,Q)=>V+ue(Q),0):void 0!==ie.value?ie.value:0,Array.isArray(ie.children)&&ie.children.length>0&&(ae=sn(ie.children,he,ee,te));const X={...ie,value:$,children:ae};he&&Pe>0&&$/Pe<ee?fe.push(X):je.push(X)}),he&&fe.length>0){const ie=fe.reduce(($,ae)=>$+ae.value,0);je.push({id:"__grouped_small__",name:te,value:ie,children:fe,isGroup:!0})}return je}function ne(H){const he=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(H);return he?{r:parseInt(he[1],16),g:parseInt(he[2],16),b:parseInt(he[3],16)}:{r:0,g:0,b:0}}function ue(H){return"number"==typeof H.value?H.value:Array.isArray(H.children)&&H.children.length>0?H.children.reduce((he,ee)=>he+ue(ee),0):0}},278(Vr,et,O){O.d(et,{r:()=>g2});var P={};O.r(P),O.d(P,{EPSILON:()=>bC,HashMap:()=>Lv,RADIAN_TO_DEGREE:()=>Rv,assert:()=>br,bind:()=>we,clone:()=>_e,concatArray:()=>Pv,createCanvas:()=>gC,createHashMap:()=>ye,createObject:()=>di,curry:()=>Ue,defaults:()=>Fe,disableUserSelect:()=>eu,each:()=>D,eqNaN:()=>hi,extend:()=>N,filter:()=>We,find:()=>yC,guid:()=>$l,hasOwn:()=>le,indexOf:()=>Ce,inherits:()=>Ql,isArray:()=>W,isArrayLike:()=>ft,isBuiltInObject:()=>Jl,isDom:()=>Pa,isFunction:()=>ce,isGradientObject:()=>ci,isImagePatternObject:()=>Dv,isNumber:()=>Re,isObject:()=>re,isPrimitive:()=>Ra,isRegExp:()=>_C,isString:()=>j,isStringSafe:()=>Ao,isTypedArray:()=>_t,keys:()=>Ae,logError:()=>Mo,map:()=>oe,merge:()=>Be,mergeAll:()=>pC,mixin:()=>or,noop:()=>St,normalizeCssArray:()=>Po,reduce:()=>sr,retrieve:()=>vi,retrieve2:()=>se,retrieve3:()=>fn,setAsPrimitive:()=>Ro,slice:()=>Lo,trim:()=>lr});var A={};O.r(A),O.d(A,{add:()=>tu,applyTransform:()=>Ot,clone:()=>Iv,copy:()=>xC,create:()=>On,dist:()=>ko,distSquare:()=>Bn,distance:()=>Eo,distanceSquare:()=>Ov,div:()=>LC,dot:()=>PC,len:()=>ru,lenSquare:()=>nu,length:()=>DC,lengthSquare:()=>MC,lerp:()=>Oo,max:()=>hn,min:()=>cn,mul:()=>AC,negate:()=>RC,normalize:()=>kv,scale:()=>Io,scaleAndAdd:()=>wC,set:()=>TC,sub:()=>Ev});var Xe={};O.r(Xe),O.d(Xe,{clone:()=>KC,copy:()=>No,create:()=>ur,identity:()=>pi,invert:()=>Fn,mul:()=>Nn,rotate:()=>Ho,scale:()=>zv,translate:()=>Fo});var I={};O.r(I),O.d(I,{fastLerp:()=>gd,fastMapToColor:()=>bb,lerp:()=>yd,lift:()=>bu,liftColor:()=>xu,lum:()=>bi,mapToColor:()=>xb,modifyAlpha:()=>Tb,modifyHSL:()=>Ko,parse:()=>Ft,parseCssFloat:()=>pn,parseCssInt:()=>Xo,random:()=>wb,stringify:()=>yn,toHex:()=>Cb});var gt={};O.r(gt),O.d(gt,{dispose:()=>ox,disposeAll:()=>sx,getElementSSRData:()=>ux,getInstance:()=>lx,init:()=>Zu,registerPainter:()=>zd,registerSSRDataGetter:()=>Vd,version:()=>fx});var rt={};O.r(rt),O.d(rt,{Arc:()=>Ks,BezierCurve:()=>kc,BoundingRect:()=>pe,Circle:()=>Xs,CompoundPath:()=>om,Ellipse:()=>Pc,Group:()=>Ht,Image:()=>xn,IncrementalDisplayable:()=>cm,Line:()=>ri,LinearGradient:()=>lm,OrientedBoundingRect:()=>fm,Path:()=>Ne,Point:()=>ve,Polygon:()=>Ec,Polyline:()=>eo,RadialGradient:()=>um,Rect:()=>st,Ring:()=>Ic,Sector:()=>Ji,Text:()=>$e,WH:()=>vm,XY:()=>hm,applyTransform:()=>zc,calcZ2Range:()=>DM,clipPointsByRect:()=>Sm,clipRectByRect:()=>Cm,createIcon:()=>el,ensureCopyRect:()=>ro,ensureCopyTransform:()=>Yc,expandOrShrinkRect:()=>Wc,extendPath:()=>pm,extendShape:()=>dm,getShapeClass:()=>Nc,getTransform:()=>mm,groupTransition:()=>xM,initProps:()=>Tn,isBoundingRectAxisAligned:()=>qc,isElementRemoved:()=>qa,lineLineIntersect:()=>bm,linePolygonIntersect:()=>TM,makeImage:()=>Fc,makePath:()=>Js,mergePath:()=>ym,registerShape:()=>tr,removeElement:()=>sg,removeElementWithFadeOut:()=>ug,resizePath:()=>Hc,retrieveZInfo:()=>wm,setTooltipConfig:()=>to,subPixelOptimize:()=>SM,subPixelOptimizeLine:()=>Gc,subPixelOptimizeRect:()=>_M,transformDirection:()=>CM,traverseElements:()=>Tm,traverseUpdateZ:()=>Dm,updateProps:()=>pr});var Wt={};O.r(Wt),O.d(Wt,{createDimensions:()=>bL,createList:()=>xP,createScale:()=>wP,createSymbol:()=>il,createTextStyle:()=>MP,dataStack:()=>TP,enableHoverEmphasis:()=>xs,getECData:()=>De,getLayoutRect:()=>Qr,mixinAxisModelCommonMethods:()=>DP});var Te={};O.r(Te),O.d(Te,{MAX_SAFE_INTEGER:()=>yx,asc:()=>dx,getPercentWithPrecision:()=>px,getPixelPrecision:()=>Yd,getPrecision:()=>Ar,getPrecisionSafe:()=>qd,isNumeric:()=>Kd,isRadianAroundZero:()=>Ai,linearMap:()=>us,nice:()=>Qu,numericToNumber:()=>qr,parseDate:()=>Ur,parsePercent:()=>Ie,quantile:()=>_x,quantity:()=>Zd,quantityExponent:()=>$u,reformIntervals:()=>Sx,remRadian:()=>ju,round:()=>Mr});var Me={};O.r(Me),O.d(Me,{format:()=>Hi,parse:()=>Ur,roundTime:()=>Rs});var yt={};O.r(yt),O.d(yt,{Arc:()=>Ks,BezierCurve:()=>kc,BoundingRect:()=>pe,Circle:()=>Xs,CompoundPath:()=>om,Ellipse:()=>Pc,Group:()=>Ht,Image:()=>xn,IncrementalDisplayable:()=>cm,Line:()=>ri,LinearGradient:()=>lm,Polygon:()=>Ec,Polyline:()=>eo,RadialGradient:()=>um,Rect:()=>st,Ring:()=>Ic,Sector:()=>Ji,Text:()=>$e,clipPointsByRect:()=>Sm,clipRectByRect:()=>Cm,createIcon:()=>el,extendPath:()=>pm,extendShape:()=>dm,getShapeClass:()=>Nc,getTransform:()=>mm,initProps:()=>Tn,makeImage:()=>Fc,makePath:()=>Js,mergePath:()=>ym,registerShape:()=>tr,resizePath:()=>Hc,updateProps:()=>pr});var ir={};O.r(ir),O.d(ir,{addCommas:()=>Jf,capitalFirst:()=>U1,encodeHTML:()=>Ct,formatTime:()=>W1,formatTpl:()=>nc,getTextRect:()=>EP,getTooltipMarker:()=>Pg,normalizeCssArray:()=>Gi,toCamelCase:()=>ec,truncateText:()=>$x});var Ut={};O.r(Ut),O.d(Ut,{bind:()=>we,clone:()=>_e,curry:()=>Ue,defaults:()=>Fe,each:()=>D,extend:()=>N,filter:()=>We,indexOf:()=>Ce,inherits:()=>Ql,isArray:()=>W,isFunction:()=>ce,isObject:()=>re,isString:()=>j,map:()=>oe,merge:()=>Be,reduce:()=>sr});var sn={};O.r(sn),O.d(sn,{Axis:()=>ZP,ChartView:()=>tn,ComponentModel:()=>He,ComponentView:()=>er,List:()=>Mh,Model:()=>Qe,PRIORITY:()=>g0,SeriesModel:()=>Dn,color:()=>I,connect:()=>QA,dataTool:()=>oL,dependencies:()=>kA,disConnect:()=>JA,disconnect:()=>R0,dispose:()=>eL,env:()=>me,extendChartView:()=>QP,extendComponentModel:()=>KP,extendComponentView:()=>jP,extendSeriesModel:()=>$P,format:()=>ir,getCoordinateSystemDimensions:()=>rL,getInstanceByDom:()=>yh,getInstanceById:()=>tL,getMap:()=>iL,graphic:()=>yt,helper:()=>Wt,init:()=>$A,innerDrawElementOnCanvas:()=>eh,matrix:()=>Xe,number:()=>Te,parseGeoJSON:()=>b_,parseGeoJson:()=>b_,registerAction:()=>ba,registerCoordinateSystem:()=>k0,registerCustomSeries:()=>nL,registerLayout:()=>O0,registerLoading:()=>bh,registerLocale:()=>Wf,registerMap:()=>N0,registerPostInit:()=>I0,registerPostUpdate:()=>E0,registerPreprocessor:()=>_h,registerProcessor:()=>Sh,registerTheme:()=>mh,registerTransform:()=>F0,registerUpdateLifecycle:()=>_l,registerVisual:()=>Mn,setCanvasCreator:()=>aL,setPlatformAPI:()=>bv,throttle:()=>Zc,time:()=>Me,use:()=>An,util:()=>Ut,vector:()=>A,version:()=>EA,zrUtil:()=>P,zrender:()=>gt});var ne=O(7705),ue=O(2271),H=O(5802),he=O(467),ee=O(5547),te=O(9079),Pe=O(2771),je=O(8359),fe=O(1413),ie=O(3236),$=O(4226),ae=O(9974),X=O(4360),V=O(8750),Se=O(1584);var mt=O(5558);const qt=new H.nKC("NGX_ECHARTS_CONFIG");class Xl{constructor(){this.subject=new Pe.m(1),this.subscriptions=new je.yU}doFilter(e){this.subject.next(e)}dispose(){this.subscriptions.unsubscribe()}notEmpty(e,r){this.subscriptions.add(this.subject.subscribe(n=>{if(n[e]){const a=n[e].currentValue;null!=a&&r(a)}}))}has(e,r){this.subscriptions.add(this.subject.subscribe(n=>{n[e]&&r(n[e].currentValue)}))}notFirst(e,r){this.subscriptions.add(this.subject.subscribe(n=>{n[e]&&!n[e].isFirstChange()&&r(n[e].currentValue)}))}notFirstAndEmpty(e,r){this.subscriptions.add(this.subject.subscribe(n=>{if(n[e]&&!n[e].isFirstChange()){const a=n[e].currentValue;null!=a&&r(a)}}))}}let eC=(()=>{class t{constructor(){this.el=(0,H.WQX)(ee.aKT),this.ngZone=(0,H.WQX)(H.SKi),this.config=(0,H.WQX)(qt),this.options=(0,ne.hFB)(null),this.theme=(0,ne.hFB)(this.config.theme??null),this.initOpts=(0,ne.hFB)(null),this.merge=(0,ne.hFB)(null),this.autoResize=(0,ne.hFB)(!0),this.loading=(0,ne.hFB)(!1),this.loadingType=(0,ne.hFB)("default"),this.loadingOpts=(0,ne.hFB)(null),this.chartInit=(0,ne.CGW)(),this.optionsError=(0,ne.CGW)(),this.chartClick=(0,te.p)(this.createLazyEvent("click")),this.chartDblClick=(0,te.p)(this.createLazyEvent("dblclick")),this.chartMouseDown=(0,te.p)(this.createLazyEvent("mousedown")),this.chartMouseMove=(0,te.p)(this.createLazyEvent("mousemove")),this.chartMouseUp=(0,te.p)(this.createLazyEvent("mouseup")),this.chartMouseOver=(0,te.p)(this.createLazyEvent("mouseover")),this.chartMouseOut=(0,te.p)(this.createLazyEvent("mouseout")),this.chartGlobalOut=(0,te.p)(this.createLazyEvent("globalout")),this.chartContextMenu=(0,te.p)(this.createLazyEvent("contextmenu")),this.chartHighlight=(0,te.p)(this.createLazyEvent("highlight")),this.chartDownplay=(0,te.p)(this.createLazyEvent("downplay")),this.chartSelectChanged=(0,te.p)(this.createLazyEvent("selectchanged")),this.chartLegendSelectChanged=(0,te.p)(this.createLazyEvent("legendselectchanged")),this.chartLegendSelected=(0,te.p)(this.createLazyEvent("legendselected")),this.chartLegendUnselected=(0,te.p)(this.createLazyEvent("legendunselected")),this.chartLegendLegendSelectAll=(0,te.p)(this.createLazyEvent("legendselectall")),this.chartLegendLegendInverseSelect=(0,te.p)(this.createLazyEvent("legendinverseselect")),this.chartLegendScroll=(0,te.p)(this.createLazyEvent("legendscroll")),this.chartDataZoom=(0,te.p)(this.createLazyEvent("datazoom")),this.chartDataRangeSelected=(0,te.p)(this.createLazyEvent("datarangeselected")),this.chartGraphRoam=(0,te.p)(this.createLazyEvent("graphroam")),this.chartGeoRoam=(0,te.p)(this.createLazyEvent("georoam")),this.chartTreeRoam=(0,te.p)(this.createLazyEvent("treeroam")),this.chartTimelineChanged=(0,te.p)(this.createLazyEvent("timelinechanged")),this.chartTimelinePlayChanged=(0,te.p)(this.createLazyEvent("timelineplaychanged")),this.chartRestore=(0,te.p)(this.createLazyEvent("restore")),this.chartDataViewChanged=(0,te.p)(this.createLazyEvent("dataviewchanged")),this.chartMagicTypeChanged=(0,te.p)(this.createLazyEvent("magictypechanged")),this.chartGeoSelectChanged=(0,te.p)(this.createLazyEvent("geoselectchanged")),this.chartGeoSelected=(0,te.p)(this.createLazyEvent("geoselected")),this.chartGeoUnselected=(0,te.p)(this.createLazyEvent("geounselected")),this.chartAxisAreaSelected=(0,te.p)(this.createLazyEvent("axisareaselected")),this.chartBrush=(0,te.p)(this.createLazyEvent("brush")),this.chartBrushEnd=(0,te.p)(this.createLazyEvent("brushend")),this.chartBrushSelected=(0,te.p)(this.createLazyEvent("brushselected")),this.chartGlobalCursorTaken=(0,te.p)(this.createLazyEvent("globalcursortaken")),this.chartRendered=(0,te.p)(this.createLazyEvent("rendered")),this.chartFinished=(0,te.p)(this.createLazyEvent("finished")),this.animationFrameID=null,this.chart$=new Pe.m(1),this.resize$=new fe.B,this.changeFilter=new Xl,this.resizeObFired=!1,this.echarts=this.config.echarts}ngOnChanges(r){this.changeFilter.doFilter(r)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(function Oe(t,e=ie.E,r){const n=(0,Se.O)(t,e);return function Q(t,e){return(0,ae.N)((r,n)=>{const{leading:a=!0,trailing:i=!1}=e??{};let o=!1,s=null,l=null,u=!1;const f=()=>{l?.unsubscribe(),l=null,i&&(h(),u&&n.complete())},c=()=>{l=null,u&&n.complete()},v=d=>l=(0,V.Tg)(t(d)).subscribe((0,X._)(n,f,c)),h=()=>{if(o){o=!1;const d=s;s=null,n.next(d),!u&&v(d)}};r.subscribe((0,X._)(n,d=>{o=!0,s=d,(!l||l.closed)&&(a?h():v(d))},()=>{u=!0,(!(i&&o&&l)||l.closed)&&n.complete()}))})}(()=>n,r)}(100,ie.E,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize()&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(r=>{for(const n of r)n.target===this.el.nativeElement&&(this.resizeObFired?this.animationFrameID=window.requestAnimationFrame(()=>{this.resize$.next()}):this.resizeObFired=!0)})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",r=>this.onOptionsChange(r)),this.changeFilter.notFirstAndEmpty("merge",r=>this.setOption(r)),this.changeFilter.has("loading",r=>this.toggleLoading(!!r)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(r){this.chart?r?this.chart.showLoading(this.loadingType(),this.loadingOpts()):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(n=>r?n.showLoading(this.loadingType(),this.loadingOpts()):n.hideLoading())}setOption(r,n){if(this.chart)try{this.chart.setOption(r,n)}catch(a){console.error(a),this.optionsError.emit(a)}}refreshChart(){var r=this;return(0,he.A)(function*(){r.dispose(),yield r.initChart()})()}createChart(){const r=this.el.nativeElement;if(window&&window.getComputedStyle){const n=window.getComputedStyle(r,null).getPropertyValue("height");(!n||"0px"===n)&&(!r.style.height||"0px"===r.style.height)&&(r.style.height="400px")}return this.ngZone.runOutsideAngular(()=>("function"==typeof this.echarts?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:a})=>a(r,this.theme()??this.config?.theme,this.initOpts())))}initChart(){var r=this;return(0,he.A)(function*(){yield r.onOptionsChange(r.options());const n=r.merge();n&&r.chart&&r.setOption(n)})()}onOptionsChange(r){var n=this;return(0,he.A)(function*(){r&&(n.chart||(n.chart=yield n.createChart(),n.chart$.next(n.chart),n.chartInit.emit(n.chart)),n.setOption(n.options(),!0))})()}createLazyEvent(r){return(0,te.yC)(this.chartInit).pipe((0,mt.n)(n=>new $.c(a=>(n.on(r,i=>this.ngZone.run(()=>a.next(i))),()=>{this.chart&&(this.chart.isDisposed()||n.off(r))}))))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=ee.FsC({type:t,selectors:[["echarts"],["","echarts",""]],inputs:{options:[1,"options"],theme:[1,"theme"],initOpts:[1,"initOpts"],merge:[1,"merge"],autoResize:[1,"autoResize"],loading:[1,"loading"],loadingType:[1,"loadingType"],loadingOpts:[1,"loadingOpts"]},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartHighlight:"chartHighlight",chartDownplay:"chartDownplay",chartSelectChanged:"chartSelectChanged",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendLegendSelectAll:"chartLegendLegendSelectAll",chartLegendLegendInverseSelect:"chartLegendLegendInverseSelect",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartGraphRoam:"chartGraphRoam",chartGeoRoam:"chartGeoRoam",chartTreeRoam:"chartTreeRoam",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartGeoSelectChanged:"chartGeoSelectChanged",chartGeoSelected:"chartGeoSelected",chartGeoUnselected:"chartGeoUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartGlobalCursorTaken:"chartGlobalCursorTaken",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],features:[ee.OA$]})}}return t})();function Cv(t){return{provide:qt,useValue:t}}let tC=(()=>{class t{static forRoot(r){return{ngModule:t,providers:[Cv(r)]}}static forChild(){return{ngModule:t}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ee.$C({type:t})}static{this.\u0275inj=H.G2t({})}}return t})();var J=O(5215),rC=function(){return function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}}(),ln=new(function(){return function t(){this.browser=new rC,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}}());"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(ln.wxa=!0,ln.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?ln.worker=!0:!ln.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(ln.node=!0,ln.svgSupported=!0):function aC(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),i=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);if(n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),e.domSupported=typeof document<"u"){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}(navigator.userAgent,ln);const me=ln;var un="12px sans-serif",fC=function uC(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),a=(t.charCodeAt(r)-20)/100;e[n]=a}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),Yt={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(r,n){if(!t){var a=Yt.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==n&&(e=t.font=n||un),t.measureText(r);r=r||"";var i=/((?:\d+)?\.?\d*)px/.exec(n=n||un),o=i&&+i[1]||12,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=fC[r[l]];s+=null==u?o:u*o}return{width:s}}}(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n}};function bv(t){for(var e in Yt)t[e]&&(Yt[e]=t[e])}var xv=sr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Tv=sr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),La=Object.prototype.toString,wo=Array.prototype,cC=wo.forEach,hC=wo.filter,Kl=wo.slice,vC=wo.map,wv=function(){}.constructor,Do=wv?wv.prototype:null,jl="__proto__",dC=2311;function $l(){return dC++}function Mo(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function _e(t){if(null==t||"object"!=typeof t)return t;var e=t,r=La.call(t);if("[object Array]"===r){if(!Ra(t)){e=[];for(var n=0,a=t.length;n<a;n++)e[n]=_e(t[n])}}else if(Tv[r]){if(!Ra(t)){var i=t.constructor;if(i.from)e=i.from(t);else for(e=new i(t.length),n=0,a=t.length;n<a;n++)e[n]=t[n]}}else if(!xv[r]&&!Ra(t)&&!Pa(t))for(var o in e={},t)t.hasOwnProperty(o)&&o!==jl&&(e[o]=_e(t[o]));return e}function Be(t,e,r){if(!re(e)||!re(t))return r?_e(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==jl){var a=t[n],i=e[n];!re(i)||!re(a)||W(i)||W(a)||Pa(i)||Pa(a)||Jl(i)||Jl(a)||Ra(i)||Ra(a)?(r||!(n in t))&&(t[n]=_e(e[n])):Be(a,i,r)}return t}function pC(t,e){for(var r=t[0],n=1,a=t.length;n<a;n++)r=Be(r,t[n],e);return r}function N(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==jl&&(t[r]=e[r]);return t}function Fe(t,e,r){for(var n=Ae(e),a=0,i=n.length;a<i;a++){var o=n[a];(r?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}var gC=Yt.createCanvas;function Ce(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function Ql(t,e){var r=t.prototype;function n(){}for(var a in n.prototype=e.prototype,t.prototype=new n,r)r.hasOwnProperty(a)&&(t.prototype[a]=r[a]);t.prototype.constructor=t,t.superClass=e}function or(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),a=0;a<n.length;a++){var i=n[a];"constructor"!==i&&(r?null!=e[i]:null==t[i])&&(t[i]=e[i])}else Fe(t,e,r)}function ft(t){return!(!t||"string"==typeof t)&&"number"==typeof t.length}function D(t,e,r){if(t&&e)if(t.forEach&&t.forEach===cC)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,a=t.length;n<a;n++)e.call(r,t[n],n,t);else for(var i in t)t.hasOwnProperty(i)&&e.call(r,t[i],i,t)}function oe(t,e,r){if(!t)return[];if(!e)return Lo(t);if(t.map&&t.map===vC)return t.map(e,r);for(var n=[],a=0,i=t.length;a<i;a++)n.push(e.call(r,t[a],a,t));return n}function sr(t,e,r,n){if(t&&e){for(var a=0,i=t.length;a<i;a++)r=e.call(n,r,t[a],a,t);return r}}function We(t,e,r){if(!t)return[];if(!e)return Lo(t);if(t.filter&&t.filter===hC)return t.filter(e,r);for(var n=[],a=0,i=t.length;a<i;a++)e.call(r,t[a],a,t)&&n.push(t[a]);return n}function yC(t,e,r){if(t&&e)for(var n=0,a=t.length;n<a;n++)if(e.call(r,t[n],n,t))return t[n]}function Ae(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}var we=Do&&ce(Do.bind)?Do.call.bind(Do.bind):function mC(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(Kl.call(arguments)))}};function Ue(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(Kl.call(arguments)))}}function W(t){return Array.isArray?Array.isArray(t):"[object Array]"===La.call(t)}function ce(t){return"function"==typeof t}function j(t){return"string"==typeof t}function Ao(t){return"[object String]"===La.call(t)}function Re(t){return"number"==typeof t}function re(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function Jl(t){return!!xv[La.call(t)]}function _t(t){return!!Tv[La.call(t)]}function Pa(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function ci(t){return null!=t.colorStops}function Dv(t){return null!=t.image}function _C(t){return"[object RegExp]"===La.call(t)}function hi(t){return t!=t}function vi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(null!=t[r])return t[r]}function se(t,e){return t??e}function fn(t,e,r){return t??e??r}function Lo(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return Kl.apply(t,e)}function Po(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function br(t,e){if(!t)throw new Error(e)}function lr(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Mv="__ec_primitive__";function Ro(t){t[Mv]=!0}function Ra(t){return t[Mv]}var SC=function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return Ae(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t}(),Av="function"==typeof Map,Lv=function(){function t(e){var r=W(e);this.data=function CC(){return Av?new Map:new SC}();var n=this;function a(i,o){r?n.set(i,o):n.set(o,i)}e instanceof t?e.each(a):e&&D(e,a)}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,a){e.call(r,n,a)})},t.prototype.keys=function(){var e=this.data.keys();return Av?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function ye(t){return new Lv(t)}function Pv(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];var a=t.length;for(n=0;n<e.length;n++)r[n+a]=e[n];return r}function di(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&N(r,e),r}function eu(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function le(t,e){return t.hasOwnProperty(e)}function St(){}var Rv=180/Math.PI,bC=Number.EPSILON||Math.pow(2,-52);function On(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function xC(t,e){return t[0]=e[0],t[1]=e[1],t}function Iv(t){return[t[0],t[1]]}function TC(t,e,r){return t[0]=e,t[1]=r,t}function tu(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function wC(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function Ev(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function ru(t){return Math.sqrt(nu(t))}var DC=ru;function nu(t){return t[0]*t[0]+t[1]*t[1]}var MC=nu;function AC(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function LC(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function PC(t,e){return t[0]*e[0]+t[1]*e[1]}function Io(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function kv(t,e){var r=ru(e);return 0===r?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function Eo(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var ko=Eo;function Ov(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Bn=Ov;function RC(t,e){return t[0]=-e[0],t[1]=-e[1],t}function Oo(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function Ot(t,e,r){var n=e[0],a=e[1];return t[0]=r[0]*n+r[2]*a+r[4],t[1]=r[1]*n+r[3]*a+r[5],t}function cn(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function hn(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var Ia=function(){return function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}}(),IC=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 Ia(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,a=e.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,r.drift(i,o,e),this.handler.dispatchToElement(new Ia(r,e),"drag",e.event);var s=this.handler.findHover(n,a,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Ia(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Ia(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Ia(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Ia(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}();const EC=IC;var kC=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof r&&(a=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;null!=r&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===n)return this;var l={h:n,query:r,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[e].length-1,f=i[e][u];return f&&f.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var a=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==r&&a.push(n[e][i]);n[e]=a}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=r.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!i||!i.filter||null==u.query||i.filter(e,u.query))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=r.length,s=r[o-1],l=a.length,u=0;u<l;u++){var f=a[u];if(!i||!i.filter||null==f.query||i.filter(e,f.query))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1))}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t}();const xr=kC;var OC=Math.log(2);function au(t,e,r,n,a,i){var o=n+"-"+a,s=t.length;if(i.hasOwnProperty(o))return i[o];if(1===e){var l=Math.round(Math.log((1<<s)-1&~a)/OC);return t[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,v=0,h=0;v<s;v++){var d=1<<v;d&a||(c+=(h%2?-1:1)*t[r][v]*au(t,e-1,f,u,a|d,i),h++)}return i[o]=c,c}function Bv(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},a=au(r,8,0,0,0,n);if(0!==a){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)null==i[s]&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*au(r,7,0===o?1:0,1<<o,1<<s,n)/a*e[o];return function(l,u,f){var c=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/c,l[1]=(u*i[3]+f*i[4]+i[5])/c}}}var Bo="___zrEVENTSAVED",iu=[];function ou(t,e,r,n,a){if(e.getBoundingClientRect&&me.domSupported&&!Nv(e)){var i=e[Bo]||(e[Bo]={}),o=function FC(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),l=i%2,u=(i>>1)%2;o.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){D(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}(e,i),s=function HC(t,e,r){for(var n=r?"invTrans":"trans",a=e[n],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,v=f.left,h=f.top;o.push(v,h),l=l&&i&&v===i[c]&&h===i[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[n]=r?Bv(s,o):Bv(o,s))}(o,i,a);if(s)return s(t,r,n),!0}return!1}function Nv(t){return"CANVAS"===t.nodeName.toUpperCase()}var GC=/([&<>"'])/g,zC={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ct(t){return null==t?"":(t+"").replace(GC,function(e,r){return zC[r]})}var VC=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,su=[],WC=me.browser.firefox&&+me.browser.version.split(".")[0]<39;function lu(t,e,r,n){return r=r||{},n?Fv(t,e,r):WC&&null!=e.layerX&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):null!=e.offsetX?(r.zrX=e.offsetX,r.zrY=e.offsetY):Fv(t,e,r),r}function Fv(t,e,r){if(me.domSupported&&t.getBoundingClientRect){var n=e.clientX,a=e.clientY;if(Nv(t)){var i=t.getBoundingClientRect();return r.zrX=n-i.left,void(r.zrY=a-i.top)}if(ou(su,t,n,a))return r.zrX=su[0],void(r.zrY=su[1])}r.zrX=r.zrY=0}function uu(t){return t||window.event}function Xt(t,e,r){if(null!=(e=uu(e)).zrX)return e;var n=e.type;if(n&&n.indexOf("touch")>=0){var o="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];o&&lu(t,o,e,r)}else{lu(t,e,e,r);var i=function UC(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;return null==r||null==n?e:3*Math.abs(0!==n?n:r)*(n>0?-1:n<0?1:r>0?-1:1)}(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&VC.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function YC(t,e,r,n){t.removeEventListener(e,r,n)}var Hv=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},XC=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var a=e.touches;if(a){for(var i={points:[],touches:[],target:r,event:e},o=0,s=a.length;o<s;o++){var l=a[o],u=lu(n,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 fu)if(fu.hasOwnProperty(r)){var n=fu[r](this._track,e);if(n)return n}},t}();function Gv(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}var fu={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,a=(t[r-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=Gv(n)/Gv(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=function ZC(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function ur(){return[1,0,0,1,0,0]}function pi(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function No(t,e){return 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}function Nn(t,e,r){var a=e[1]*r[0]+e[3]*r[1],i=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=e[0]*r[0]+e[2]*r[1],t[1]=a,t[2]=i,t[3]=o,t[4]=s,t[5]=l,t}function Fo(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function Ho(t,e,r,n){void 0===n&&(n=[0,0]);var a=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=a*c+s*f,t[1]=-a*f+s*c,t[2]=i*c+l*f,t[3]=-i*f+c*l,t[4]=c*(o-n[0])+f*(u-n[1])+n[0],t[5]=c*(u-n[1])-f*(o-n[0])+n[1],t}function zv(t,e,r){var n=r[0],a=r[1];return t[0]=e[0]*n,t[1]=e[1]*a,t[2]=e[2]*n,t[3]=e[3]*a,t[4]=e[4]*n,t[5]=e[5]*a,t}function Fn(t,e){var r=e[0],n=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=r*o-i*n;return l?(t[0]=o*(l=1/l),t[1]=-i*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*a)*l,t[5]=(i*a-r*s)*l,t):null}function KC(t){var e=[1,0,0,1,0,0];return No(e,t),e}var jC=function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,a){e.x=r.x+n.x*a,e.y=r.y+n.y*a},t.lerp=function(e,r,n,a){var i=1-a;e.x=i*r.x+a*n.x,e.y=i*r.y+a*n.y},t}();const ve=jC;var Hn=Math.min,Ea=Math.max,cu=Math.abs,Vv=["x","y"],$C=["width","height"],Gn=new ve,zn=new ve,Vn=new ve,Wn=new ve,Bt=Uv(),gi=Bt.minTv,hu=Bt.maxTv,yi=[0,0],vu=function(){function t(e,r,n,a){t.set(this,e,r,n,a)}return t.set=function(e,r,n,a,i){return a<0&&(r+=a,a=-a),i<0&&(n+=i,i=-i),e.x=r,e.y=n,e.width=a,e.height=i,e},t.prototype.union=function(e){var r=Hn(e.x,this.x),n=Hn(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?Ea(e.x+e.width,this.x+this.width)-r:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?Ea(e.y+e.height,this.y+this.height)-n:e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,a=e.height/r.height,i=[1,0,0,1,0,0];return Fo(i,i,[-r.x,-r.y]),zv(i,i,[n,a]),Fo(i,i,[e.x,e.y]),i},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,r,n,a){n&&ve.set(n,0,0);var i=a&&a.outIntersectRect||null,o=a&&a.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!e||!r)return!1;e instanceof t||(e=t.set(QC,e.x,e.y,e.width,e.height)),r instanceof t||(r=t.set(JC,r.x,r.y,r.width,r.height));var s=!!n;Bt.reset(a,s);var l=Bt.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,v=e.y+e.height-l,h=r.x+l,d=r.x+r.width-l,y=r.y+l,p=r.y+r.height-l;if(u>f||c>v||h>d||y>p)return!1;var g=!(f<h||d<u||v<y||p<c);return(s||i)&&(yi[0]=1/0,yi[1]=0,Wv(u,f,h,d,0,s,i,o),Wv(c,v,y,p,1,s,i,o),s&&ve.copy(n,g?Bt.useDir?Bt.dirMinTv:gi:hu)),g},t.contain=function(e,r,n){return r>=e.x&&r<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,n){if(n){if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],s=n[5];return e.x=r.x*a+n[4],e.y=r.y*i+s,e.width=r.width*a,e.height=r.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Gn.x=Vn.x=r.x,Gn.y=Wn.y=r.y,zn.x=Wn.x=r.x+r.width,zn.y=Vn.y=r.y+r.height,Gn.transform(n),Wn.transform(n),zn.transform(n),Vn.transform(n),e.x=Hn(Gn.x,zn.x,Vn.x,Wn.x),e.y=Hn(Gn.y,zn.y,Vn.y,Wn.y);var l=Ea(Gn.x,zn.x,Vn.x,Wn.x),u=Ea(Gn.y,zn.y,Vn.y,Wn.y);e.width=l-e.x,e.height=u-e.y}else e!==r&&t.copy(e,r)},t}(),QC=new vu(0,0,0,0),JC=new vu(0,0,0,0);function Wv(t,e,r,n,a,i,o,s){var l=cu(e-r),u=cu(n-t),f=Hn(l,u),c=Vv[a],v=Vv[1-a],h=$C[a];e<r||n<t?l<u?(i&&(hu[c]=-l),s&&(o[c]=e,o[h]=0)):(i&&(hu[c]=u),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=Ea(t,r),o[h]=Hn(e,n)-o[c]),i&&(f<yi[0]||Bt.useDir)&&(yi[0]=Hn(f,yi[0]),(l<u||!Bt.bidirectional)&&(gi[c]=l,gi[v]=0,Bt.useDir&&Bt.calcDirMTV()),(l>=u||!Bt.bidirectional)&&(gi[c]=-u,gi[v]=0,Bt.useDir&&Bt.calcDirMTV())))}function Uv(){var t=0,e=new ve,r=new ve,n={minTv:new ve,maxTv:new ve,useDir:!1,dirMinTv:new ve,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){n.touchThreshold=0,i&&null!=i.touchThreshold&&(n.touchThreshold=Ea(0,i.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,i&&null!=i.direction&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),t=i.direction,n.bidirectional=null==i.bidirectional||!!i.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var i=n.minTv,o=n.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(t),u=Math.cos(t),f=l*i.y+u*i.x;a(f)?a(i.x)&&a(i.y)&&o.set(0,0):(r.x=s*u/f,r.y=s*l/f,a(r.x)&&a(r.y)?o.set(0,0):(n.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r))}};function a(i){return cu(i)<1e-10}return n}const pe=vu;function tb(){Hv(this.event)}var rb=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.handler=null,r}return(0,J.C6)(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(xr),mi=function(){return function t(e,r){this.x=e,this.y=r}}(),nb=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],du=new pe(0,0,0,0),Yv=function(t){function e(r,n,a,i,o){var s=t.call(this)||this;return s._hovered=new mi(0,0),s.storage=r,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new rb,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new EC(s),s}return(0,J.C6)(e,t),e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D(nb,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,i=Zv(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(s=(o=this.findHover(o.x,o.y)).target);var l=this._hovered=i?new mi(n,a):this.findHover(n,a),u=l.target,f=this.proxy;f.setCursor&&f.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 n=r.zrEventControl;"only_globalout"!==n&&this.dispatchToElement(this._hovered,"mouseout",r),"no_globalout"!==n&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new mi(0,0)},e.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,a){var i=(r=r||{}).target;if(!i||!i.silent){for(var o="on"+n,s=function eb(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:tb}}(n,r,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){"function"==typeof l[o]&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(r,n,a){var i=this.storage.getDisplayList(),o=new mi(r,n);if(Xv(i,o,r,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new pe(r-u,n-u,l,l),c=i.length-1;c>=0;c--){var v=i[c];v!==a&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(du.copy(v.getBoundingRect()),v.transform&&du.applyTransform(v.transform),du.intersect(f)&&s.push(v))}if(s.length)for(var d=Math.PI/12,y=2*Math.PI,p=0;p<u;p+=4)for(var g=0;g<y;g+=d)if(Xv(s,o,r+p*Math.cos(g),n+p*Math.sin(g),a),o.target)return o}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new XC);var a=this._gestureMgr;"start"===n&&a.clear();var i=a.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if("end"===n&&a.clear(),i){var o=i.type;r.gestureEvent=o;var s=new mi;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e}(xr);function ab(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return!a||"silent"}return!1}function Xv(t,e,r,n,a){for(var i=t.length-1;i>=0;i--){var o=t[i],s=void 0;if(o!==a&&!o.ignore&&(s=ab(o,r,n))&&(!e.topTarget&&(e.topTarget=o),"silent"!==s)){e.target=o;break}}}function Zv(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Yv.prototype[t]=function(e){var i,o,r=e.zrX,n=e.zrY,a=Zv(this,r,n);if(("mouseup"!==t||!a)&&(o=(i=this.findHover(r,n)).target),"mousedown"===t)this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if("mouseup"===t)this._upEl=o;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||ko(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});const ib=Yv;function jv(t,e,r,n){var a=e+1;if(a===r)return 1;if(n(t[a++],t[e])<0){for(;a<r&&n(t[a],t[a-1])<0;)a++;!function sb(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}(t,e,a)}else for(;a<r&&n(t[a],t[a-1])>=0;)a++;return a-e}function $v(t,e,r,n,a){for(n===e&&n++;n<r;n++){for(var l,i=t[n],o=e,s=n;o<s;)a(i,t[l=o+s>>>1])<0?s=l:o=l+1;var u=n-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 pu(t,e,r,n,a,i){var o=0,s=0,l=1;if(i(t,e[r+a])>0){for(s=n-a;l<s&&i(t,e[r+a+l])>0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(t,e[r+a-l])<=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var f=o+(l-o>>>1);i(t,e[r+f])>0?o=f+1:l=f}return l}function gu(t,e,r,n,a,i){var o=0,s=0,l=1;if(i(t,e[r+a])<0){for(s=a+1;l<s&&i(t,e[r+a-l])<0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(t,e[r+a+l])>=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var f=o+(l-o>>>1);i(t,e[r+f])<0?l=f:o=f+1}return l}function Go(t,e,r,n){r||(r=0),n||(n=t.length);var a=n-r;if(!(a<2)){var i=0;if(a<32)return void $v(t,r,n,r+(i=jv(t,r,n,e)),e);var o=function lb(t,e){var n,a,r=7,i=0,o=[];function f(h){var d=n[h],y=a[h],p=n[h+1],g=a[h+1];a[h]=y+g,h===i-3&&(n[h+1]=n[h+2],a[h+1]=a[h+2]),i--;var m=gu(t[p],t,d,y,0,e);d+=m,0!==(y-=m)&&0!==(g=pu(t[d+y-1],t,p,g,g-1,e))&&(y<=g?function c(h,d,y,p){var g=0;for(g=0;g<d;g++)o[g]=t[h+g];var m=0,_=y,S=h;if(t[S++]=t[_++],0!==--p)if(1!==d){for(var C,x,T,b=r;;){C=0,x=0,T=!1;do{if(e(t[_],o[m])<0){if(t[S++]=t[_++],x++,C=0,0===--p){T=!0;break}}else if(t[S++]=o[m++],C++,x=0,1===--d){T=!0;break}}while((C|x)<b);if(T)break;do{if(0!==(C=gu(t[_],o,m,d,0,e))){for(g=0;g<C;g++)t[S+g]=o[m+g];if(S+=C,m+=C,(d-=C)<=1){T=!0;break}}if(t[S++]=t[_++],0===--p){T=!0;break}if(0!==(x=pu(o[m],t,_,p,0,e))){for(g=0;g<x;g++)t[S+g]=t[_+g];if(S+=x,_+=x,0===(p-=x)){T=!0;break}}if(t[S++]=o[m++],1===--d){T=!0;break}b--}while(C>=7||x>=7);if(T)break;b<0&&(b=0),b+=2}if((r=b)<1&&(r=1),1===d){for(g=0;g<p;g++)t[S+g]=t[_+g];t[S+p]=o[m]}else{if(0===d)throw new Error;for(g=0;g<d;g++)t[S+g]=o[m+g]}}else{for(g=0;g<p;g++)t[S+g]=t[_+g];t[S+p]=o[m]}else for(g=0;g<d;g++)t[S+g]=o[m+g]}(d,y,p,g):function v(h,d,y,p){var g=0;for(g=0;g<p;g++)o[g]=t[y+g];var m=h+d-1,_=p-1,S=y+p-1,b=0,C=0;if(t[S--]=t[m--],0!==--d)if(1!==p){for(var x=r;;){var T=0,w=0,L=!1;do{if(e(o[_],t[m])<0){if(t[S--]=t[m--],T++,w=0,0===--d){L=!0;break}}else if(t[S--]=o[_--],w++,T=0,1===--p){L=!0;break}}while((T|w)<x);if(L)break;do{if(0!==(T=d-gu(o[_],t,h,d,d-1,e))){for(d-=T,C=1+(S-=T),b=1+(m-=T),g=T-1;g>=0;g--)t[C+g]=t[b+g];if(0===d){L=!0;break}}if(t[S--]=o[_--],1===--p){L=!0;break}if(0!==(w=p-pu(t[m],o,0,p,p-1,e))){for(p-=w,C=1+(S-=w),b=1+(_-=w),g=0;g<w;g++)t[C+g]=o[b+g];if(p<=1){L=!0;break}}if(t[S--]=t[m--],0===--d){L=!0;break}x--}while(T>=7||w>=7);if(L)break;x<0&&(x=0),x+=2}if((r=x)<1&&(r=1),1===p){for(C=1+(S-=d),b=1+(m-=d),g=d-1;g>=0;g--)t[C+g]=t[b+g];t[S]=o[_]}else{if(0===p)throw new Error;for(b=S-(p-1),g=0;g<p;g++)t[b+g]=o[g]}}else{for(C=1+(S-=d),b=1+(m-=d),g=d-1;g>=0;g--)t[C+g]=t[b+g];t[S]=o[_]}else for(b=S-(p-1),g=0;g<p;g++)t[b+g]=o[g]}(d,y,p,g))}return n=[],a=[],{mergeRuns:function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;f(h)}},forceMergeRuns:function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]<a[h+1]&&h--,f(h)}},pushRun:function s(h,d){n[i]=h,a[i]=d,i+=1}}}(t,e),s=function ob(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(a);do{if((i=jv(t,r,n,e))<s){var l=a;l>s&&(l=s),$v(t,r,r+l,r+i,e),i=l}o.pushRun(r,i),o.mergeRuns(),a-=i,r+=i}while(0!==a);o.forceMergeRuns()}}var Qv=!1;function yu(){Qv||(Qv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Jv(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var ub=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Jv}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,a=0,i=r.length;a<i;a++)this._updateAndAddDisplayable(r[a],null,e);n.length=this._displayListLen,Go(n,Jv)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath(),i=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(i||a)){if(s||(s=e.__clipPaths=[]),i)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=a,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),v=0;v<c.length;v++){var h=c[v];e.__dirty&&(h.__dirty|=1),this._updateAndAddDisplayable(h,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(yu(),d.z=0),isNaN(d.z2)&&(yu(),d.z2=0),isNaN(d.zlevel)&&(yu(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var y=e.getDecalElement&&e.getDecalElement();y&&this._updateAndAddDisplayable(y,s,n);var p=e.getTextGuideLine();p&&this._updateAndAddDisplayable(p,s,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,n)}},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,n=e.length;r<n;r++)this.delRoot(e[r]);else{var a=Ce(this._roots,e);a>=0&&this._roots.splice(a,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}();const fb=ub;var ed;ed=me.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};const mu=ed;var zo={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),-r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,r=.1;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,r=.1;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-zo.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*zo.bounceIn(2*t):.5*zo.bounceOut(2*t-1)+.5}};const td=zo;var Vo=Math.pow,vn=Math.sqrt,nd=vn(3),Uo=1/3,Tr=On(),Zt=On(),Oa=On();function dn(t){return t>-1e-8&&t<1e-8}function ad(t){return t>1e-8||t<-1e-8}function ot(t,e,r,n,a){var i=1-a;return i*i*(i*t+3*a*e)+a*a*(a*n+3*i*r)}function id(t,e,r,n,a){var i=1-a;return 3*(((e-t)*i+2*(r-e)*a)*i+(n-r)*a*a)}function od(t,e,r,n,a,i){var o=n+3*(e-r)-t,s=3*(r-2*e+t),l=3*(e-t),u=t-a,f=s*s-3*o*l,c=s*l-9*o*u,v=l*l-3*s*u,h=0;if(dn(f)&&dn(c))dn(s)?i[0]=0:(d=-l/s)>=0&&d<=1&&(i[h++]=d);else{var y=c*c-4*f*v;if(dn(y)){var p=c/f,g=-p/2;(d=-s/o+p)>=0&&d<=1&&(i[h++]=d),g>=0&&g<=1&&(i[h++]=g)}else if(y>0){var m=vn(y),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);(d=(-s-((_=_<0?-Vo(-_,Uo):Vo(_,Uo))+(S=S<0?-Vo(-S,Uo):Vo(S,Uo))))/(3*o))>=0&&d<=1&&(i[h++]=d)}else{var b=(2*f*s-3*o*c)/(2*vn(f*f*f)),C=Math.acos(b)/3,x=vn(f),T=Math.cos(C),d=(-s-2*x*T)/(3*o),w=(g=(-s+x*(T+nd*Math.sin(C)))/(3*o),(-s+x*(T-nd*Math.sin(C)))/(3*o));d>=0&&d<=1&&(i[h++]=d),g>=0&&g<=1&&(i[h++]=g),w>=0&&w<=1&&(i[h++]=w)}}return h}function sd(t,e,r,n,a){var i=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(dn(o))ad(i)&&(u=-s/i)>=0&&u<=1&&(a[l++]=u);else{var f=i*i-4*o*s;if(dn(f))a[0]=-i/(2*o);else if(f>0){var u,c=vn(f),v=(-i-c)/(2*o);(u=(-i+c)/(2*o))>=0&&u<=1&&(a[l++]=u),v>=0&&v<=1&&(a[l++]=v)}}return l}function qo(t,e,r,n,a,i){var o=(e-t)*a+t,s=(r-e)*a+e,l=(n-r)*a+r,u=(s-o)*a+o,f=(l-s)*a+s,c=(f-u)*a+u;i[0]=t,i[1]=o,i[2]=u,i[3]=c,i[4]=c,i[5]=f,i[6]=l,i[7]=n}function ld(t,e,r,n,a,i,o,s,l,u,f){var c,d,y,p,g,v=.005,h=1/0;Tr[0]=l,Tr[1]=u;for(var m=0;m<1;m+=.05)Zt[0]=ot(t,r,a,o,m),Zt[1]=ot(e,n,i,s,m),(p=Bn(Tr,Zt))<h&&(c=m,h=p);h=1/0;for(var _=0;_<32&&!(v<1e-4);_++)y=c+v,Zt[0]=ot(t,r,a,o,d=c-v),Zt[1]=ot(e,n,i,s,d),p=Bn(Zt,Tr),d>=0&&p<h?(c=d,h=p):(Oa[0]=ot(t,r,a,o,y),Oa[1]=ot(e,n,i,s,y),g=Bn(Oa,Tr),y<=1&&g<h?(c=y,h=g):v*=.5);return f&&(f[0]=ot(t,r,a,o,c),f[1]=ot(e,n,i,s,c)),vn(h)}function cb(t,e,r,n,a,i,o,s,l){for(var u=t,f=e,c=0,v=1/l,h=1;h<=l;h++){var d=h*v,y=ot(t,r,a,o,d),p=ot(e,n,i,s,d),g=y-u,m=p-f;c+=Math.sqrt(g*g+m*m),u=y,f=p}return c}function ct(t,e,r,n){var a=1-n;return a*(a*t+2*n*e)+n*n*r}function ud(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function fd(t,e,r){var n=t+r-2*e;return 0===n?.5:(t-e)/n}function Yo(t,e,r,n,a){var i=(e-t)*n+t,o=(r-e)*n+e,s=(o-i)*n+i;a[0]=t,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=r}function cd(t,e,r,n,a,i,o,s,l){var u,f=.005,c=1/0;Tr[0]=o,Tr[1]=s;for(var v=0;v<1;v+=.05)Zt[0]=ct(t,r,a,v),Zt[1]=ct(e,n,i,v),(h=Bn(Tr,Zt))<c&&(u=v,c=h);c=1/0;for(var d=0;d<32&&!(f<1e-4);d++){var y=u-f,p=u+f;Zt[0]=ct(t,r,a,y),Zt[1]=ct(e,n,i,y);var h=Bn(Zt,Tr);if(y>=0&&h<c)u=y,c=h;else{Oa[0]=ct(t,r,a,p),Oa[1]=ct(e,n,i,p);var g=Bn(Oa,Tr);p<=1&&g<c?(u=p,c=g):f*=.5}}return l&&(l[0]=ct(t,r,a,u),l[1]=ct(e,n,i,u)),vn(c)}function vb(t,e,r,n,a,i,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var v=c*f,h=ct(t,r,a,v),d=ct(e,n,i,v),y=h-s,p=d-l;u+=Math.sqrt(y*y+p*p),s=h,l=d}return u}var db=/cubic-bezier\(([0-9,\.e ]+)\)/;function hd(t){var e=t&&db.exec(t);if(e){var r=e[1].split(","),n=+lr(r[0]),a=+lr(r[1]),i=+lr(r[2]),o=+lr(r[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:od(0,n,i,1,l,s)&&ot(0,a,o,1,s[0])}}}var pb=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||St,this.ondestroy=e.ondestroy||St,this.onrestart=e.onrestart||St,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,a=e-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),1===i){if(!this.loop)return!0;this._startTime=e-a%n,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=r},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ce(e)?e:td[e]||hd(e)},t}();const gb=pb;var vd=function(){return function t(e){this.value=e}}(),yb=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new vd(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),mb=function(){function t(e){this._list=new yb,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,a=this._map,i=null;if(null==a[e]){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new vd(r),s.key=e,n.insertEntry(s),a[e]=s}return i},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(null!=r)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const Ba=mb;var dd={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function fr(t){return(t=Math.round(t))<0?0:t>255?255:t}function Ci(t){return t<0?0:t>1?1:t}function Xo(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?fr(parseFloat(e)/100*255):fr(parseInt(e,10))}function pn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Ci(parseFloat(e)/100):Ci(parseFloat(e))}function _u(t,e,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function gn(t,e,r){return t+(e-t)*r}function Kt(t,e,r,n,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t}function Su(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var pd=new Ba(20),Zo=null;function Na(t,e){Zo&&Su(Zo,e),Zo=pd.put(t,Zo||e.slice())}function Ft(t,e){if(t){e=e||[];var r=pd.get(t);if(r)return Su(e,r);var n=(t+="").replace(/ /g,"").toLowerCase();if(n in dd)return Su(e,dd[n]),Na(t,e),e;var i,a=n.length;if("#"===n.charAt(0))return 4===a||5===a?(i=parseInt(n.slice(1,4),16))>=0&&i<=4095?(Kt(e,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===a?parseInt(n.slice(4),16)/15:1),Na(t,e),e):void Kt(e,0,0,0,1):7===a||9===a?(i=parseInt(n.slice(1,7),16))>=0&&i<=16777215?(Kt(e,(16711680&i)>>16,(65280&i)>>8,255&i,9===a?parseInt(n.slice(7),16)/255:1),Na(t,e),e):void Kt(e,0,0,0,1):void 0;var o=n.indexOf("("),s=n.indexOf(")");if(-1!==o&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?Kt(e,+u[0],+u[1],+u[2],1):Kt(e,0,0,0,1);f=pn(u.pop());case"rgb":return u.length>=3?(Kt(e,Xo(u[0]),Xo(u[1]),Xo(u[2]),3===u.length?f:pn(u[3])),Na(t,e),e):void Kt(e,0,0,0,1);case"hsla":return 4!==u.length?void Kt(e,0,0,0,1):(u[3]=pn(u[3]),Cu(u,e),Na(t,e),e);case"hsl":return 3!==u.length?void Kt(e,0,0,0,1):(Cu(u,e),Na(t,e),e);default:return}}Kt(e,0,0,0,1)}}function Cu(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=pn(t[1]),a=pn(t[2]),i=a<=.5?a*(n+1):a+n-a*n,o=2*a-i;return Kt(e=e||[],fr(255*_u(o,i,r+1/3)),fr(255*_u(o,i,r)),fr(255*_u(o,i,r-1/3)),1),4===t.length&&(e[3]=t[3]),e}function bu(t,e){var r=Ft(t);if(r){for(var n=0;n<3;n++)r[n]=e<0?r[n]*(1-e)|0:(255-r[n])*e+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return yn(r,4===r.length?"rgba":"rgb")}}function Cb(t){var e=Ft(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function gd(t,e,r){if(e&&e.length&&t>=0&&t<=1){r=r||[];var n=t*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=e[a],s=e[i],l=n-a;return r[0]=fr(gn(o[0],s[0],l)),r[1]=fr(gn(o[1],s[1],l)),r[2]=fr(gn(o[2],s[2],l)),r[3]=Ci(gn(o[3],s[3],l)),r}}var bb=gd;function yd(t,e,r){if(e&&e.length&&t>=0&&t<=1){var n=t*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=Ft(e[a]),s=Ft(e[i]),l=n-a,u=yn([fr(gn(o[0],s[0],l)),fr(gn(o[1],s[1],l)),fr(gn(o[2],s[2],l)),Ci(gn(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}var xb=yd;function Ko(t,e,r,n){var a=Ft(t);if(t)return a=function Sb(t){if(t){var l,u,e=t[0]/255,r=t[1]/255,n=t[2]/255,a=Math.min(e,r,n),i=Math.max(e,r,n),o=i-a,s=(i+a)/2;if(0===o)l=0,u=0;else{u=s<.5?o/(i+a):o/(2-i-a);var f=((i-e)/6+o/2)/o,c=((i-r)/6+o/2)/o,v=((i-n)/6+o/2)/o;e===i?l=v-c:r===i?l=1/3+f-v:n===i&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[360*l,u,s];return null!=t[3]&&h.push(t[3]),h}}(a),null!=e&&(a[0]=function _b(t){return(t=Math.round(t))<0?0:t>360?360:t}(ce(e)?e(a[0]):e)),null!=r&&(a[1]=pn(ce(r)?r(a[1]):r)),null!=n&&(a[2]=pn(ce(n)?n(a[2]):n)),yn(Cu(a),"rgba")}function Tb(t,e){var r=Ft(t);if(r&&null!=e)return r[3]=Ci(e),yn(r,"rgba")}function yn(t,e){if(t&&t.length){var r=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(r+=","+t[3]),e+"("+r+")"}}function bi(t,e){var r=Ft(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function wb(){return yn([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var md=new Ba(100);function xu(t){if(j(t)){var e=md.get(t);return e||(e=bu(t,-.1),md.put(t,e)),e}if(ci(t)){var r=N({},t);return r.colorStops=oe(t.colorStops,function(n){return{offset:n.offset,color:bu(n.color,-.1)}}),r}return t}Math,me.hasGlobalWindow&&ce(window.btoa);var wu=Array.prototype.slice;function Wr(t,e,r){return(e-t)*r+t}function Du(t,e,r,n){for(var a=e.length,i=0;i<a;i++)t[i]=Wr(e[i],r[i],n);return t}function $o(t,e,r,n){for(var a=e.length,i=0;i<a;i++)t[i]=e[i]+r[i]*n;return t}function bd(t,e,r,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<i;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function Ib(t,e){for(var r=t.length,n=e.length,a=r>n?e:t,i=Math.min(r,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(r,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function Eb(t,e,r){var n=t,a=e;if(n.push&&a.push){var i=n.length,o=a.length;if(i!==o)if(i>o)n.length=o;else for(var l=i;l<o;l++)n.push(1===r?a[l]:wu.call(a[l]));var u=n[0]&&n[0].length;for(l=0;l<n.length;l++)if(1===r)isNaN(n[l])&&(n[l]=a[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=a[l][f])}}function Ti(t){if(ft(t)){var e=t.length;if(ft(t[0])){for(var r=[],n=0;n<e;n++)r.push(wu.call(t[n]));return r}return wu.call(t)}return t}function Qo(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function wd(t){return 4===t||5===t}function ts(t){return 1===t||2===t}var Di=[0,0,0,0],Ob=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=6,l=r;if(ft(r)){var u=function kb(t){return ft(t&&t[0])?2:1}(r);s=u,(1===u&&!Re(r[0])||2===u&&!Re(r[0][0]))&&(o=!0)}else if(Re(r)&&!hi(r))s=0;else if(j(r))if(isNaN(+r)){var f=Ft(r);f&&(l=f,s=3)}else s=0;else if(ci(r)){var c=N({},l);c.colorStops=oe(r.colorStops,function(h){return{offset:h.offset,color:Ft(h.color)}}),function Lb(t){return"linear"===t.type}(r)?s=4:function Pb(t){return"radial"===t.type}(r)&&(s=5),l=c}0===i?this.valType=s:(s!==this.valType||6===s)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=ce(n)?n:td[n]||hd(n)),a.push(v),v},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(y,p){return y.time-p.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=ts(a),u=wd(a),f=0;f<i;f++){var c=n[f],v=c.value,h=o.value;c.percent=c.time/e,s||(l&&f!==i-1?Eb(v,h,a):u&&Ib(v.colorStops,h.colorStops))}if(!s&&5!==a&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;var d=n[0].value;for(f=0;f<i;f++)0===a?n[f].additiveValue=n[f].value-d:3===a?n[f].additiveValue=$o([],n[f].value,d,-1):ts(a)&&(n[f].additiveValue=1===a?$o([],n[f].value,d,-1):bd([],n[f].value,d,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var f,h,d,n=null!=this._additiveTrack,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=3===i,c=this._lastFr,v=Math.min;if(1===s)h=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){for(f=v(c+1,s-1);f>=0&&!(o[f].percent<=r);f--);f=v(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=v(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=r;var p=d.percent-h.percent,g=0===p?1:v((r-h.percent)/p,1);d.easingFunc&&(g=d.easingFunc(g));var m=n?this._additiveValue:u?Di:e[l];if((ts(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=g<1?h.rawValue:d.rawValue;else if(ts(i))1===i?Du(m,h[a],d[a],g):function Rb(t,e,r,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<i;s++)t[o][s]=Wr(e[o][s],r[o][s],n)}}(m,h[a],d[a],g);else if(wd(i)){var _=h[a],S=d[a],b=4===i;e[l]={type:b?"linear":"radial",x:Wr(_.x,S.x,g),y:Wr(_.y,S.y,g),colorStops:oe(_.colorStops,function(x,T){var w=S.colorStops[T];return{offset:Wr(x.offset,w.offset,g),color:Qo(Du([],x.color,w.color,g))}}),global:S.global},b?(e[l].x2=Wr(_.x2,S.x2,g),e[l].y2=Wr(_.y2,S.y2,g)):e[l].r=Wr(_.r,S.r,g)}else if(u)Du(m,h[a],d[a],g),n||(e[l]=Qo(m));else{var C=Wr(h[a],d[a],g);n?this._additiveValue=C:e[l]=C}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,a=this._additiveValue;0===r?e[n]=e[n]+a:3===r?(Ft(e[n],Di),$o(Di,Di,a,1),e[n]=Qo(Di)):1===r?$o(e[n],e[n],a,1):2===r&&bd(e[n],e[n],a,1)},t}(),Bb=function(){function t(e,r,n,a){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&a?Mo("Can' use additive animation on looped animation."):(this._additiveAnimators=a,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,Ae(r),n)},t.prototype.whenWithKeys=function(e,r,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new Ob(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,v=c[c.length-1];u=v&&v.value,3===f.valType&&u&&(u=Qo(u))}else u=this._target[s];if(null==u)continue;e>0&&l.addKeyframe(0,Ti(u),a),this._trackKeys.push(s)}l.addKeyframe(e,Ti(r[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(e);i&&(r=i)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new gb({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var d=r._additiveAnimators;if(d){for(var y=!1,p=0;p<d.length;p++)if(d[p]._clip){y=!0;break}y||(r._additiveAnimators=null)}for(p=0;p<n.length;p++)n[p].step(r._target,h);var g=r._onframeCbs;if(g)for(p=0;p<g.length;p++)g[p](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),e&&v.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){this._clip&&(e&&this._clip.onframe(1),this._abortedCallback())},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return oe(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<e.length;i++){var o=n[e[i]];o&&!o.isFinished()&&(r?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var s=!0;for(i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var a=0;a<r.length;a++){var i=r[a],o=this._tracks[i];if(o&&!o.isFinished()){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[i]=Ti(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||Ae(e);for(var n=0;n<r.length;n++){var a=r[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}();const Lu=Bb;function Fa(){return(new Date).getTime()}var Nb=function(t){function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,n.stage=(r=r||{}).stage||{},n}return(0,J.C6)(e,t),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 n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=Fa()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next;i.step(n,a)&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,r||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0,mu(function n(){r._running&&(mu(n),!r._paused&&r.update())})},e.prototype.start=function(){this._running||(this._time=Fa(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Fa(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Fa()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(r,n){n=n||{},this.start();var a=new Lu(r,n.loop);return this.addAnimator(a),a},e}(xr);const Fb=Nb;var t,r,Pu=me.domSupported,Ru=(r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:oe(t,function(a){var i=a.replace("mouse","pointer");return r.hasOwnProperty(i)?i:a})}),Dd_mouse=["mousemove","mouseup"],Dd_pointer=["pointermove","pointerup"],Md=!1;function Iu(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Eu(t){t&&(t.zrByTouch=!0)}function Ad(t,e){for(var r=e,n=!1;r&&9!==r.nodeType&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var Vb=function(){return function t(e,r){this.stopPropagation=St,this.stopImmediatePropagation=St,this.preventDefault=St,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}}(),cr={mousedown:function(t){t=Xt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Xt(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=Xt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Ad(this,(t=Xt(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Md=!0,t=Xt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Md||(t=Xt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Eu(t=Xt(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),cr.mousemove.call(this,t),cr.mousedown.call(this,t)},touchmove:function(t){Eu(t=Xt(this.dom,t)),this.handler.processGesture(t,"change"),cr.mousemove.call(this,t)},touchend:function(t){Eu(t=Xt(this.dom,t)),this.handler.processGesture(t,"end"),cr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&cr.click.call(this,t)},pointerdown:function(t){cr.mousedown.call(this,t)},pointermove:function(t){Iu(t)||cr.mousemove.call(this,t)},pointerup:function(t){cr.mouseup.call(this,t)},pointerout:function(t){Iu(t)||cr.mouseout.call(this,t)}};D(["click","dblclick","contextmenu"],function(t){cr[t]=function(e){e=Xt(this.dom,e),this.trigger(t,e)}});var ku={pointermove:function(t){Iu(t)||ku.mousemove.call(this,t)},pointerup:function(t){ku.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 rs(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,function qC(t,e,r,n){t.addEventListener(e,r,n)}(t.domTarget,e,r,n)}function Ou(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&YC(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var Ld=function(){return function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}}(),qb=function(t){function e(r,n){var a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new Ld(r,cr),Pu&&(a._globalHandlerScope=new Ld(document,ku)),function Wb(t,e){var r=e.domHandlers;me.pointerEventsSupported?D(Ru.pointer,function(n){rs(e,n,function(a){r[n].call(t,a)})}):(me.touchEventsSupported&&D(Ru.touch,function(n){rs(e,n,function(a){r[n].call(t,a),function Gb(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}(e)})}),D(Ru.mouse,function(n){rs(e,n,function(a){a=uu(a),e.touching||r[n].call(t,a)})}))}(a,a._localHandlerScope),a}return(0,J.C6)(e,t),e.prototype.dispose=function(){Ou(this._localHandlerScope),Pu&&Ou(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,Pu&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?function Ub(t,e){function r(n){rs(e,n,function a(i){i=uu(i),Ad(t,i.target)||(i=function zb(t,e){return Xt(t.dom,new Vb(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))},{capture:!0})}me.pointerEventsSupported?D(Dd_pointer,r):me.touchEventsSupported||D(Dd_mouse,r)}(this,n):Ou(n)}},e}(xr);const Yb=qb;var Pd=1;me.hasGlobalWindow&&(Pd=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ns=Pd,Nu="#333",Fu="#ccc",Rd=pi;function Un(t){return t>5e-5||t<-5e-5}var qn=[],Ha=[],Hu=[1,0,0,1,0,0],Gu=Math.abs,Zb=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Un(this.rotation)||Un(this.x)||Un(this.y)||Un(this.scaleX-1)||Un(this.scaleY-1)||Un(this.skewX)||Un(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;r||e?(n=n||[1,0,0,1,0,0],r?this.getLocalTransform(n):Rd(n),e&&(r?Nn(n,e,n):No(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Rd(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(null!=r&&1!==r){this.getGlobalScale(qn);var n=qn[0]<0?-1:1,a=qn[1]<0?-1:1,i=((qn[0]-n)*r+n)/qn[0]||0,o=((qn[1]-a)*r+a)/qn[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],Fn(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||[1,0,0,1,0,0],Nn(Ha,e.invTransform,r),r=Ha);var n=this.originX,a=this.originY;(n||a)&&(Hu[4]=n,Hu[5]=a,Nn(Ha,r,Hu),Ha[4]-=n,Ha[5]-=a,r=Ha),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],a=this.invTransform;return a&&Ot(n,n,a),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],a=this.transform;return a&&Ot(n,n,a),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Gu(e[0]-1)>1e-10&&Gu(e[3]-1)>1e-10?Math.sqrt(Gu(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){zu(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,v=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||a||s||l){var d=n+s,y=a+l;r[4]=-d*i-v*y*o,r[5]=-y*o-h*d*i}else r[4]=r[5]=0;return r[0]=i,r[3]=o,r[1]=h*i,r[2]=v*o,u&&Ho(r,r,u),r[4]+=n+f,r[5]+=a+c,r},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t;var e}(),wr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function zu(t,e){for(var r=0;r<wr.length;r++){var n=wr[r];t[n]=e[n]}}const as=Zb;var is;function hr(t){is||(is=new Ba(100));var e=is.get(t=t||un);return e||(e={font:t,strWidthCache:new Ba(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Yt.measureText("\u56fd",t).width,asciiCharWidth:Yt.measureText("a",t).width},is.put(t,e)),e}var Vu=0;function kd(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function jb(t){if(!(Vu>=5)){t=t||un;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=Yt.measureText(String.fromCharCode(n),t).width;var a=+new Date-r;return a>16?Vu=5:a>2&&Vu++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function vr(t,e){var r=t.strWidthCache,n=r.get(e);return null==n&&(n=Yt.measureText(e,t.font).width,r.put(e,n)),n}function Od(t,e,r,n){var a=vr(hr(e),t),i=os(e),o=Ga(0,a,r),s=Yn(0,i,n);return new pe(o,s,a,i)}function Bd(t,e,r,n){var a=((t||"")+"").split("\n");if(1===a.length)return Od(a[0],e,r,n);for(var o=new pe(0,0,0,0),s=0;s<a.length;s++){var l=Od(a[s],e,r,n);0===s?o.copy(l):o.union(l)}return o}function Ga(t,e,r,n){return"right"===r?n?t+=e:t-=e:"center"===r&&(n?t+=e/2:t-=e/2),t}function Yn(t,e,r,n){return"middle"===r?n?t+=e/2:t-=e/2:"bottom"===r&&(n?t+=e:t-=e),t}function os(t){return hr(t).stWideCharWidth}function mn(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Nd(t,e,r){var n=e.position||"inside",a=null!=e.distance?e.distance:5,i=r.height,o=r.width,s=i/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=mn(n[0],r.width),u+=mn(n[1],r.height),f=null,c=null;else switch(n){case"left":l-=a,u+=s,f="right",c="middle";break;case"right":l+=a+o,u+=s,c="middle";break;case"top":l+=o/2,u-=a,f="center",c="bottom";break;case"bottom":l+=o/2,u+=i+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=a,u+=s,c="middle";break;case"insideRight":l+=o-a,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=i-a,f="center",c="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=i-a,c="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,f="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=f,t.verticalAlign=c,t}var Wu="__zr_normal__",Uu=wr.concat(["ignore"]),$b=sr(wr,function(t,e){return t[e]=!0,t},{ignore:!1}),za={},Qb=new pe(0,0,0,0),ss=[],qu=function(){function t(e){this.id=$l(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=r.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;i.copyTransform(r);var f=null!=n.position,c=n.autoOverflowArea,v=void 0;if((c||f)&&((v=Qb).copy(n.layoutRect?n.layoutRect:this.getBoundingRect()),a||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(za,n,v):Nd(za,n,v),i.x=za.x,i.y=za.y,o=za.align,s=za.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var d=void 0,y=void 0;"center"===h?(d=.5*v.width,y=.5*v.height):(d=mn(h[0],v.width),y=mn(h[1],v.height)),u=!0,i.originX=-i.x+d+(a?0:v.x),i.originY=-i.y+y+(a?0:v.y)}}null!=n.rotation&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var m=g.overflowRect=g.overflowRect||new pe(0,0,0,0);i.getLocalTransform(ss),Fn(ss,ss),pe.copy(m,v),m.applyTransform(ss)}else g.overflowRect=null;var S=void 0,b=void 0,C=void 0;(null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside)&&this.canBeInsideText()?(b=n.insideStroke,(null==(S=n.insideFill)||"auto"===S)&&(S=this.getInsideTextFill()),(null==b||"auto"===b)&&(b=this.getInsideTextStroke(S),C=!0)):(b=n.outsideStroke,(null==(S=n.outsideFill)||"auto"===S)&&(S=this.getOutsideFill()),(null==b||"auto"===b)&&(b=this.getOutsideStroke(S),C=!0)),((S=S||"#000")!==g.fill||b!==g.stroke||C!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=S,g.stroke=b,g.autoStroke=C,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=1,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Fu:Nu},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof r&&Ft(r);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,yn(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){"textConfig"===e?this.setTextConfig(r):"textContent"===e?this.setTextContent(r):"clipPath"===e?this.setClipPath(r):"extra"===e?(this.extra=this.extra||{},N(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if("string"==typeof e)this.attrKV(e,r);else if(re(e))for(var a=Ae(e),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==Wu)){var o=a.targetName;a.saveTo(o?r[o]:r)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,Uu)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var a=0;a<n.length;a++){var i=n[a];null!=e[i]&&!(i in r)&&(r[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Wu,!1,e)},t.prototype.useState=function(e,r,n,a){var i=e===Wu;if(this.hasState()||!i){var s=this.currentStates,l=this.stateTransition;if(!(Ce(s,e)>=0)||!r&&1!==s.length){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i)return void Mo("State "+e+" not exists.");i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||a);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,v=this._textGuide;return c&&c.useState(e,r,n,f),v&&v.useState(e,r,n,f),i?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),u}}},t.prototype.useStates=function(e,r,n){if(e.length){var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s)for(var l=0;l<o;l++)if(e[l]!==i[l]){s=!1;break}if(s)return;for(l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&a.push(f)}var c=a[o-1],v=!!(c&&c.hoverLayer||n);v&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(a),d=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var y=this._textContent,p=this._textGuide;y&&y.useStates(e,r,v),p&&p.useStates(e,r,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=Ce(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var a=this.currentStates.slice(),i=Ce(a,e),o=Ce(a,r)>=0;i>=0?o?a.splice(i,1):a[i]=r:n&&!o&&a.push(r),this.useStates(a)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var n,r={},a=0;a<e.length;a++){var i=e[a];N(r,i),i.textConfig&&N(n=n||{},i.textConfig)}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,a,i,o){var s=!(r&&a);r&&r.textConfig?(this.textConfig=N({},a?this.textConfig:n.textConfig),N(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Uu.length;f++){var c=Uu[f],v=i&&$b[c];r&&null!=r[c]?v?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&null!=n[c]&&(v?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!i)for(f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(r||n)[d]:r||n)}u&&this._transitionState(e,l,o)},t.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new as,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),N(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=e),n&&(n.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var i=new Lu(e?this[e]:this,r,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},t.prototype.addAnimator=function(e,r){var n=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(r)}).done(function(){var i=a.animators,o=Ce(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];e&&e!==s.scope?i.push(s):s.stop(r)}return this.animators=i,this},t.prototype.animateTo=function(e,r,n){Yu(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){Yu(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,a){for(var i=Yu(this,r,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function a(i,o,s,l){function u(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(v){f[s]=v}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(v){f[l]=v}})}Object.defineProperty(e,i,{get:function(){return this[o]||u(this,this[o]=[]),this[o]},set:function(f){this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}})}e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=1,Object.defineProperty&&(a("position","_legacyPos","x","y"),a("scale","_legacyScale","scaleX","scaleY"),a("origin","_legacyOrigin","originX","originY"))}(),t}();function Yu(t,e,r,n,a){var i=[];Fd(t,"",t,e,r=r||{},n,i,a);var o=i.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,--o<=0&&(s?l&&l():u&&u())},c=function(){--o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&r.during&&i[0].during(function(d,y){r.during(y)});for(var v=0;v<i.length;v++){var h=i[v];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return i}function Xu(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function ex(t,e,r){if(ft(e[r]))if(ft(t[r])||(t[r]=[]),_t(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),Xu(t[r],e[r],n))}else{var a=e[r],i=t[r],o=a.length;if(function Jb(t){return ft(t[0])}(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?Xu(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else Xu(i,a,o);i.length=a.length}else t[r]=e[r]}function Fd(t,e,r,n,a,i,o,s){for(var l=Ae(n),u=a.duration,f=a.delay,c=a.additive,v=a.setToFinal,h=!re(i),d=t.animators,y=[],p=0;p<l.length;p++){var m=n[g=l[p]];if(null!=m&&null!=r[g]&&(h||i[g]))if(!re(m)||ft(m)||ci(m))y.push(g);else{if(e){s||(r[g]=m,t.updateDuringAnimation(e));continue}Fd(t,g,r[g],m,a,i&&i[g],o,s)}else s||(r[g]=m,t.updateDuringAnimation(e),y.push(g))}var _=y.length;if(!c&&_)for(var S=0;S<d.length;S++)if((b=d[S]).targetName===e&&b.stopTracks(y)){var x=Ce(d,b);d.splice(x,1)}if(a.force||(y=We(y,function(R){return!function tx(t,e){return t===e||ft(t)&&ft(e)&&function rx(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}(t,e)}(n[R],r[R])}),_=y.length),_>0||a.force&&!o.length){var b,T=void 0,w=void 0,L=void 0;if(s)for(w={},v&&(T={}),S=0;S<_;S++)w[g=y[S]]=r[g],v?T[g]=n[g]:r[g]=n[g];else if(v)for(L={},S=0;S<_;S++){var g;L[g=y[S]]=Ti(r[g]),ex(r,n,g)}(b=new Lu(r,!1,!1,c?We(d,function(E){return E.targetName===e}):null)).targetName=e,a.scope&&(b.scope=a.scope),v&&T&&b.whenWithKeys(0,T,y),L&&b.whenWithKeys(0,L,y),b.whenWithKeys(u??500,s?w:n,y).delay(f||0),t.addAnimator(b,e),o.push(b)}}or(qu,xr),or(qu,as);const Hd=qu;var Gd=function(t){function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return(0,J.C6)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===r)return n[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var a=Ce(this._children,r);return a>=0&&this.replaceAt(n,a),this},e.prototype.replaceAt=function(r,n){var a=this._children,i=a[n];if(r&&r!==this&&r.parent!==this&&r!==i){a[n]=r,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,a=this._children,i=Ce(a,r);return i<0||(a.splice(i,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh()),this},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,a=0;a<r.length;a++){var i=r[a];n&&i.removeSelfFromZr(n),i.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var a=this._children,i=0;i<a.length;i++)r.call(n,a[i],i);return this},e.prototype.traverse=function(r,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=r.call(n,i);i.isGroup&&!o&&i.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(r)},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(r)},e.prototype.getBoundingRect=function(r){for(var n=new pe(0,0,0,0),a=r||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!l.ignore&&!l.invisible){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(pe.applyTransform(n,u,f),(o=o||n.clone()).union(n)):(o=o||u.clone()).union(u)}}return o||n},e}(Hd);Gd.prototype.type="group";const Ht=Gd;var Ku,ls={},Xn={},ix=function(){function t(e,r,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var i=new fb,o=n.renderer||"canvas";ls[o]||(o=Ae(ls)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var s=new ls[o](r,i,n,e),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var h,u=me.node||me.worker||l?null:new Yb(s.getViewportRoot(),s.root),f=n.useCoarsePointer;(null==f||"auto"===f?me.touchEventsSupported:!!f)&&(h=se(n.pointerSize,44)),this.handler=new ib(i,s,u,s.root,h),this.animation=new Fb({stage:{update:l?null:function(){return a._flush(!0)}}}),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=function ax(t){if(!t)return!1;if("string"==typeof t)return bi(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,a=0;a<n;a++)r+=bi(e[a].color,1);return(r/=n)<.4}return!1}(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||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(e){var r,n=Fa();this._needsRefresh&&(r=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var a=Fa();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-n})):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._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(this.painter.resize((e=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,n){return this._disposed||this.handler.on(e,r,n),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 Ht&&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,function nx(t){delete Xn[t]}(this.id))},t}();function Zu(t,e){var r=new ix($l(),t,e);return Xn[r.id]=r,r}function ox(t){t.dispose()}function sx(){for(var t in Xn)Xn.hasOwnProperty(t)&&Xn[t].dispose();Xn={}}function lx(t){return Xn[t]}function zd(t,e){ls[t]=e}function ux(t){if("function"==typeof Ku)return Ku(t)}function Vd(t){Ku=t}var fx="6.0.0",Mi=Math.min,dr=Math.max,Dr=Math.abs;function us(t,e,r,n){var a=e[0],i=e[1],o=r[0],s=r[1],l=i-a,u=s-o;if(0===l)return 0===u?o:(o+s)/2;if(n)if(l>0){if(t<=a)return o;if(t>=i)return s}else{if(t>=a)return o;if(t<=i)return s}else{if(t===a)return o;if(t===i)return s}return(t-a)/l*u+o}var Ie=function hx(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return function vx(t,e,r){return j(t)?function cx(t){return t.replace(/^\s+|\s+$/g,"")}(t).match(/%$/)?parseFloat(t)/100*e+(r||0):parseFloat(t):null==t?NaN:+t}(t,e,r)};function Mr(t,e,r){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),r?t:+t}function dx(t){return t.sort(function(e,r){return e-r}),t}function Ar(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,r=0;r<15;r++,e*=10)if(Math.round(t*e)/e===t)return r;return qd(t)}function qd(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,a=r>0?r:e.length,i=e.indexOf(".");return Math.max(0,(i<0?0:a-1-i)-n)}function Yd(t,e){var r=Math.log,n=Math.LN10,a=Math.floor(r(t[1]-t[0])/n),i=Math.round(r(Dr(e[1]-e[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function px(t,e,r){return t[e]&&Xd(t,r)[e]||0}function Xd(t,e){var r=sr(t,function(h,d){return h+(isNaN(d)?0:d)},0);if(0===r)return[];for(var n=Math.pow(10,e),a=oe(t,function(h){return(isNaN(h)?0:h)/r*n*100}),i=100*n,o=oe(a,function(h){return Math.floor(h)}),s=sr(o,function(h,d){return h+d},0),l=oe(a,function(h,d){return h-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,v=l.length;c<v;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return oe(o,function(h){return h/n})}function gx(t,e){var r=Math.max(Ar(t),Ar(e)),n=t+e;return r>20?n:Mr(n,r)}var yx=9007199254740991;function ju(t){var e=2*Math.PI;return(t%e+e)%e}function Ai(t){return t>-1e-4&&t<1e-4}var mx=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Ur(t){if(t instanceof Date)return t;if(j(t)){var e=mx.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function Zd(t){return Math.pow(10,$u(t))}function $u(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function Qu(t,e){var r=$u(t),n=Math.pow(10,r),a=t/n;return t=(e?a<1.5?1:a<2.5?2:a<4?3:a<7?5:10:a<1?1:a<2?2:a<3?3:a<5?5:10)*n,r>=-20?+t.toFixed(r<0?-r:0):t}function _x(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),a=+t[n-1],i=r-n;return i?a+i*(t[n]-a):a}function Sx(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,r=1,n=0;n<t.length;){for(var a=t[n].interval,i=t[n].close,o=0;o<2;o++)a[o]<=e&&(a[o]=e,i[o]=o?1:1-r),e=a[o],r=i[o];a[0]===a[1]&&i[0]*i[1]!==1?t.splice(n,1):n++}return t;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function qr(t){var e=parseFloat(t);return e==t&&(0!==e||!j(t)||t.indexOf("x")<=0)?e:NaN}function Kd(t){return!isNaN(qr(t))}function jd(){return Math.round(9*Math.random())}function $d(t,e){return 0===e?t:$d(e,t%e)}function Qd(t,e){return null==t?e:null==e?t:t*e/$d(t,e)}function Jd(t,e,r){return(e-t)*r+t}var ep="series\0";function tt(t){return t instanceof Array?t:null==t?[]:[t]}function Ju(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,a=r.length;n<a;n++){var i=r[n];!t.emphasis[e].hasOwnProperty(i)&&t[e].hasOwnProperty(i)&&(t.emphasis[e][i]=t[e][i])}}}var rp=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Li(t){return!re(t)||W(t)||t instanceof Date?t:t.value}function Dx(t){return re(t)&&!(t instanceof Array)}function np(t,e,r){var n="normalMerge"===r,a="replaceMerge"===r,i="replaceAll"===r;t=t||[],e=(e||[]).slice();var o=ye();D(e,function(l,u){re(l)||(e[u]=null)});var s=function Mx(t,e,r){var n=[];if("replaceAll"===r)return n;for(var a=0;a<t.length;a++){var i=t[a];i&&null!=i.id&&e.set(i.id,a),n.push({existing:"replaceMerge"===r||Ri(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}(t,o,r);return(n||a)&&function Ax(t,e,r,n){D(n,function(a,i){if(a&&null!=a.id){var o=Pi(a.id),s=r.get(o);if(null!=s){var l=t[s];br(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=e[s],n[i]=null}}})}(s,t,o,e),n&&function Lx(t,e){D(e,function(r,n){if(r&&null!=r.name)for(var a=0;a<t.length;a++){var i=t[a].existing;if(!t[a].newOption&&i&&(null==i.id||null==r.id)&&!Ri(r)&&!Ri(i)&&ap("name",i,r))return t[a].newOption=r,void(e[n]=null)}})}(s,e),n||a?function Px(t,e,r){D(e,function(n){if(n){for(var a,i=0;(a=t[i])&&(a.newOption||Ri(a.existing)||a.existing&&null!=n.id&&!ap("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),i++}})}(s,e,a):i&&function Rx(t,e){D(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}(s,e),function Ix(t){var e=ye();D(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),D(t,function(r){var n=r.newOption;br(!n||null==n.id||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),D(t,function(r,n){var a=r.existing,i=r.newOption,o=r.keyInfo;if(re(i)){if(o.name=null!=i.name?Pi(i.name):a?a.name:ep+n,a)o.id=Pi(a.id);else if(null!=i.id)o.id=Pi(i.id);else{var s=0;do{o.id="\0"+o.name+"\0"+s++}while(e.get(o.id))}e.set(o.id,r)}})}(s),s}function ap(t,e,r){var n=bt(e[t],null),a=bt(r[t],null);return null!=n&&null!=a&&n===a}function Pi(t){return bt(t,"")}function bt(t,e){return null==t?e:j(t)?t:Re(t)||Ao(t)?t+"":e}function ef(t){var e=t.name;return!(!e||!e.indexOf(ep))}function Ri(t){return t&&null!=t.id&&0===Pi(t.id).indexOf("\0_ec_\0")}function Ii(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?W(e.dataIndex)?oe(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?W(e.name)?oe(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name):void 0}function Ee(){var t="__ec_inner_"+Ox++;return function(e){return e[t]||(e[t]={})}}var Ox=jd();function tf(t,e,r){var n=rf(e,r),i=n.queryOptionMap,s=n.others,l=r?r.defaultMainType:null;return!n.mainTypeSpecified&&l&&i.set(l,{}),i.each(function(u,f){var c=Ei(t,f,u,{useDefault:l===f,enableAll:!r||null==r.enableAll||r.enableAll,enableNone:!r||null==r.enableNone||r.enableNone});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function rf(t,e){var r;if(j(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var a=ye(),i={},o=!1;return D(r,function(s,l){if("dataIndex"!==l&&"dataIndexInside"!==l){var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();!f||!c||e&&e.includeMainTypes&&Ce(e.includeMainTypes,f)<0||(o=o||!!f,(a.get(f)||a.set(f,{}))[c]=s)}else i[l]=s}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var _n={useDefault:!0,enableAll:!1,enableNone:!1};function Ei(t,e,r,n){n=n||_n;var a=r.index,i=r.id,o=r.name,s={models:null,specified:null!=a||null!=i||null!=o};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}if("none"===a||!1===a){if(n.enableNone)return s.models=[],s;a=-1}return"all"===a&&(a=n.enableAll?i=o=null:-1),s.models=t.queryComponents({mainType:e,index:a,id:i,name:o}),s}function ip(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}!function(){function t(){}t.prototype.reset=function(e,r,n,a){return this._list=e,this._step=a=a||1,this._idx=r,this._end=n??(a>0?e.length:0),this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)&&(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0)}}();var Zn="___EC__COMPONENT__CONTAINER___",op="___EC__EXTENDED_CLASS___";function Lr(t){var e={main:"",sub:""};if(t){var r=t.split(".");e.main=r[0]||"",e.sub=r[1]||""}return e}function nf(t,e){t.$constructor=t,t.extend=function(r){var a,n=this;return function Vx(t){return ce(t)&&/^class\s/.test(Function.prototype.toString.call(t))}(n)?a=function(i){function o(){return i.apply(this,arguments)||this}return(0,J.C6)(o,i),o}(n):(a=function(){(r.$constructor||n).apply(this,arguments)},Ql(a,this)),N(a.prototype,r),a[op]=!0,a.extend=this.extend,a.superCall=qx,a.superApply=Yx,a.superClass=n,a}}function sp(t,e){t.extend=e.extend}var Wx=Math.round(10*Math.random());function qx(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function Yx(t,e,r){return this.superClass.prototype[e].apply(t,r)}function fs(t){var e={};t.registerClass=function(n){var a=n.type||n.prototype.type;if(a){(function Gx(t){br(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')})(a),n.prototype.type=a;var i=Lr(a);if(i.sub){if(i.sub!==Zn){var o=function r(n){var a=e[n.main];return(!a||!a[Zn])&&((a=e[n.main]={})[Zn]=!0),a}(i);o[i.sub]=n}}else e[i.main]=n}return n},t.getClass=function(n,a,i){var o=e[n];if(o&&o[Zn]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},t.getClassesByMainType=function(n){var a=Lr(n),i=[],o=e[a.main];return o&&o[Zn]?D(o,function(s,l){l!==Zn&&i.push(s)}):i.push(o),i},t.hasClass=function(n){var a=Lr(n);return!!e[a.main]},t.getAllClassMainTypes=function(){var n=[];return D(e,function(a,i){n.push(i)}),n},t.hasSubTypes=function(n){var a=Lr(n),i=e[a.main];return i&&i[Zn]}}function ki(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,a,i){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(a&&Ce(a,l)>=0||i&&Ce(i,l)<0)){var u=n.getShallow(l,e);null!=u&&(o[t[s][0]]=u)}}return o}}var Zx=ki([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Kx=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return Zx(this,e,r)},t}(),af=new Ba(50);function jx(t){if("string"==typeof t){var e=af.get(t);return e&&e.image}return t}function lp(t,e,r,n,a){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!r)return e;var i=af.get(t),o={hostEl:r,cb:n,cbPayload:a};return i?!cs(e=i.image)&&i.pending.push(o):((e=Yt.loadImage(t,up,up)).__zrImageSrc=t,af.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}return t}return e}function up(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function cs(t){return t&&t.width&&t.height}var of=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function $x(t,e,r,n,a){var i={};return fp(i,t,e,r,n,a),i.text}function fp(t,e,r,n,a,i){if(!r)return t.text="",void(t.isTruncated=!1);var o=(e+"").split("\n");i=cp(r,n,a,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)hp(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join("\n"),t.isTruncated=s}function cp(t,e,r,n){var a=N({},n=n||{});r=se(r,"..."),a.maxIterations=se(n.maxIterations,2);var i=a.minChar=se(n.minChar,0),o=a.fontMeasureInfo=hr(e),s=o.asciiCharWidth;a.placeholder=se(n.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<i&&l>=s;u++)l-=s;var f=vr(o,r);return f>l&&(r="",f=0),l=t-f,a.ellipsis=r,a.ellipsisWidth=f,a.contentWidth=l,a.containerWidth=t,a}function hp(t,e,r){var n=r.containerWidth,a=r.contentWidth,i=r.fontMeasureInfo;if(!n)return t.textLine="",void(t.isTruncated=!1);var o=vr(i,e);if(o<=n)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(o<=a||s>=r.maxIterations){e+=r.ellipsis;break}var l=0===s?Qx(e,a,i):o>0?Math.floor(e.length*a/o):0;o=vr(i,e=e.substr(0,l))}""===e&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function Qx(t,e,r){for(var n=0,a=0,i=t.length;a<i&&n<e;a++)n+=kd(r,t.charCodeAt(a));return a}var eT=function(){return function t(){}}(),vp=function(){return function t(e){this.tokens=[],e&&(this.tokens=e)}}(),tT=function(){return function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}}();function sf(t,e,r,n,a){var f,c,i=""===e,o=a&&r.rich[a]||{},s=t.lines,l=o.font||r.font,u=!1;if(n){var v=o.padding,h=v?v[1]+v[3]:0;if(null!=o.width&&"auto"!==o.width){var d=mn(o.width,n.width)+h;s.length>0&&d+n.accumWidth>n.width&&(f=e.split("\n"),u=!0),n.accumWidth=d}else{var y=dp(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=y.accumWidth+h,c=y.linesWidths,f=y.lines}}f||(f=e.split("\n"));for(var p=hr(l),g=0;g<f.length;g++){var m=f[g],_=new eT;if(_.styleName=a,_.text=m,_.isLineHolder=!m&&!i,_.width="number"==typeof o.width?o.width:c?c[g]:vr(p,m),g||u)s.push(new vp([_]));else{var S=(s[s.length-1]||(s[0]=new vp)).tokens,b=S.length;1===b&&S[0].isLineHolder?S[0]=_:(m||!b||i)&&S.push(_)}}}var aT=sr(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function iT(t){return!function nT(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!aT[t]}function dp(t,e,r,n,a){for(var i=[],o=[],s="",l="",u=0,f=0,c=hr(e),v=0;v<t.length;v++){var h=t.charAt(v);if("\n"!==h){var d=kd(c,h.charCodeAt(0)),y=!n&&!iT(h);(i.length?f+d>r:a+f+d>r)?f?(s||l)&&(y?(s||(s=l,l="",f=u=0),i.push(s),o.push(f-u),l+=h,s="",f=u+=d):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=h,f=d)):y?(i.push(l),o.push(u),l=h,u=d):(i.push(h),o.push(d)):(f+=d,y?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h))}else l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0}return l&&(s+=l),s&&(i.push(s),o.push(f)),1===i.length&&(f+=a),{accumWidth:f,lines:i,linesWidths:o}}function pp(t,e,r,n,a,i){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,e){var o=2*e.width,s=2*e.height;pe.set(gp,Ga(r,o,a),Yn(n,s,i),o,s),pe.intersect(e,gp,null,yp);var l=yp.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Ga(l.x,l.width,a,!0),t.baseY=Yn(l.y,l.height,i,!0)}}var gp=new pe(0,0,0,0),yp={outIntersectRect:{},clamp:!0};function lf(t){return null!=t?t+="":t=""}function uf(t,e,r,n){var a=new pe(Ga(t.x||0,e,t.textAlign),Yn(t.y||0,r,t.textBaseline),e,r),i=n??(mp(t)?t.lineWidth:0);return i>0&&(a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i),a}function mp(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}var ff="__zr_style_"+Math.round(10*Math.random()),Kn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},hs={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Kn[ff]=!0;var _p=["z","z2","invisible"],sT=["invisible"],lT=function(t){function e(r){return t.call(this,r)||this}return(0,J.C6)(e,t),e.prototype._init=function(r){for(var n=Ae(r),a=0;a<n.length;a++){var i=n[a];"style"===i?this.useStyle(r[i]):t.prototype.attrKV.call(this,i,r[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,a,i){var o=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function uT(t,e,r){return cf.copy(t.getBoundingRect()),t.transform&&cf.applyTransform(t.transform),hf.width=e,hf.height=r,!cf.intersect(hf)}(this,r,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths&&this.__clipPaths.length)for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1;if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var a=this.transformCoordToLocal(r,n);return this.getBoundingRect().contain(a[0],a[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new pe(0,0,0,0)),n?pe.applyTransform(r,a,n):r.copy(a),(o||s||l)&&(r.width+=2*o+Math.abs(s),r.height+=2*o+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+2*u),r.height=Math.ceil(r.height+1+2*u))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new pe(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){"style"===r?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){"style"!==r?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return"string"==typeof r?this.style[r]=n:N(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(2&this.__dirty)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(r){return di(Kn,r)},e.prototype.useStyle=function(r){r[ff]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},e.prototype.isStyleObject=function(r){return r[ff]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,_p)},e.prototype._applyStateObj=function(r,n,a,i,o,s){t.prototype._applyStateObj.call(this,r,n,a,i,o,s);var u,l=!(n&&i);if(n&&n.style?o?i?u=n.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,n.style)):l&&(u=a.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var c=Ae(f),v=0;v<c.length;v++)(h=c[v])in u&&(u[h]=u[h],this.style[h]=f[h]);var d=Ae(u);for(v=0;v<d.length;v++)this.style[h=d[v]]=this.style[h];this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);var y=this.__inHover?sT:_p;for(v=0;v<y.length;v++){var h=y[v];n&&null!=n[h]?this[h]=n[h]:l&&null!=a[h]&&(this[h]=a[h])}},e.prototype._mergeStates=function(r){for(var a,n=t.prototype._mergeStates.call(this,r),i=0;i<r.length;i++){var o=r[i];o.style&&this._mergeStyle(a=a||{},o.style)}return a&&(n.style=a),n},e.prototype._mergeStyle=function(r,n){return N(r,n),r},e.prototype.getAnimationStyleProps=function(){return hs},e.initDefaultProps=function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=3}(),e}(Hd),cf=new pe(0,0,0,0),hf=new pe(0,0,0,0);const jn=lT;var Pt=Math.min,Rt=Math.max,vf=Math.sin,df=Math.cos,$n=2*Math.PI,vs=On(),ds=On(),ps=On();function Sp(t,e,r,n,a,i){a[0]=Pt(t,r),a[1]=Pt(e,n),i[0]=Rt(t,r),i[1]=Rt(e,n)}var Cp=[],bp=[];function fT(t,e,r,n,a,i,o,s,l,u){var f=sd,c=ot,v=f(t,r,a,o,Cp);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<v;h++){var d=c(t,r,a,o,Cp[h]);l[0]=Pt(d,l[0]),u[0]=Rt(d,u[0])}for(v=f(e,n,i,s,bp),h=0;h<v;h++){var y=c(e,n,i,s,bp[h]);l[1]=Pt(y,l[1]),u[1]=Rt(y,u[1])}l[0]=Pt(t,l[0]),u[0]=Rt(t,u[0]),l[0]=Pt(o,l[0]),u[0]=Rt(o,u[0]),l[1]=Pt(e,l[1]),u[1]=Rt(e,u[1]),l[1]=Pt(s,l[1]),u[1]=Rt(s,u[1])}function cT(t,e,r,n,a,i,o,s){var l=fd,u=ct,f=Rt(Pt(l(t,r,a),1),0),c=Rt(Pt(l(e,n,i),1),0),v=u(t,r,a,f),h=u(e,n,i,c);o[0]=Pt(t,a,v),o[1]=Pt(e,i,h),s[0]=Rt(t,a,v),s[1]=Rt(e,i,h)}function hT(t,e,r,n,a,i,o,s,l){var u=cn,f=hn,c=Math.abs(a-i);if(c%$n<1e-4&&c>1e-4)return s[0]=t-r,s[1]=e-n,l[0]=t+r,void(l[1]=e+n);if(vs[0]=df(a)*r+t,vs[1]=vf(a)*n+e,ds[0]=df(i)*r+t,ds[1]=vf(i)*n+e,u(s,vs,ds),f(l,vs,ds),(a%=$n)<0&&(a+=$n),(i%=$n)<0&&(i+=$n),a>i&&!o?i+=$n:a<i&&o&&(a+=$n),o){var v=i;i=a,a=v}for(var h=0;h<i;h+=Math.PI/2)h>a&&(ps[0]=df(h)*r+t,ps[1]=vf(h)*n+e,u(s,ps,s),f(l,ps,l))}var Le={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Qn=[],Jn=[],Pr=[],Sn=[],Rr=[],Ir=[],pf=Math.min,gf=Math.max,ea=Math.cos,ta=Math.sin,Yr=Math.abs,yf=Math.PI,Cn=2*yf,mf=typeof Float32Array<"u",Oi=[];function _f(t){return Math.round(t/yf*1e8)/1e8%2*yf}function xp(t,e){var r=_f(t[0]);r<0&&(r+=Cn);var a=t[1];a+=r-t[0],!e&&a-r>=Cn?a=r+Cn:e&&r-a>=Cn?a=r-Cn:!e&&r>a?a=r+(Cn-_f(r-a)):e&&r<a&&(a=r-(Cn-_f(a-r))),t[0]=r,t[1]=a}var vT=function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){(n=n||0)>0&&(this._ux=Yr(n/ns/e)||0,this._uy=Yr(n/ns/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(Le.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=Yr(e-this._xi),a=Yr(r-this._yi),i=n>this._ux||a>this._uy;if(this.addData(Le.L,e,r),this._ctx&&i&&this._ctx.lineTo(e,r),i)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,a,i,o){return this._drawPendingPt(),this.addData(Le.C,e,r,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,a,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,a){return this._drawPendingPt(),this.addData(Le.Q,e,r,n,a),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,a),this._xi=n,this._yi=a,this},t.prototype.arc=function(e,r,n,a,i,o){return this._drawPendingPt(),Oi[0]=a,Oi[1]=i,xp(Oi,o),this.addData(Le.A,e,r,n,n,a=Oi[0],(i=Oi[1])-a,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,a,i,o),this._xi=ea(i)*n+e,this._yi=ta(i)*n+r,this},t.prototype.arcTo=function(e,r,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,a,i),this},t.prototype.rect=function(e,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,a),this.addData(Le.R,e,r,n,a),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Le.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;(!this.data||this.data.length!==r)&&mf&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,n=0,a=this._len,i=0;i<r;i++)n+=e[i].len();var o=this.data;if(mf&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(a+n),a>0&&o))for(var s=0;s<a;s++)this.data[s]=o[s];for(i=0;i<r;i++){var l=e[i].data;for(s=0;s<l.length;s++)this.data[a++]=l[s]}this._len=a}},t.prototype.addData=function(e,r,n,a,i,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,mf&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Pr[0]=Pr[1]=Rr[0]=Rr[1]=Number.MAX_VALUE,Sn[0]=Sn[1]=Ir[0]=Ir[1]=-Number.MAX_VALUE;var o,e=this.data,r=0,n=0,a=0,i=0;for(o=0;o<this._len;){var s=e[o++],l=1===o;switch(l&&(a=r=e[o],i=n=e[o+1]),s){case Le.M:r=a=e[o++],n=i=e[o++],Rr[0]=a,Rr[1]=i,Ir[0]=a,Ir[1]=i;break;case Le.L:Sp(r,n,e[o],e[o+1],Rr,Ir),r=e[o++],n=e[o++];break;case Le.C:fT(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Rr,Ir),r=e[o++],n=e[o++];break;case Le.Q:cT(r,n,e[o++],e[o++],e[o],e[o+1],Rr,Ir),r=e[o++],n=e[o++];break;case Le.A:var u=e[o++],f=e[o++],c=e[o++],v=e[o++],h=e[o++],d=e[o++]+h;o+=1;var y=!e[o++];l&&(a=ea(h)*c+u,i=ta(h)*v+f),hT(u,f,c,v,h,d,y,Rr,Ir),r=ea(d)*c+u,n=ta(d)*v+f;break;case Le.R:Sp(a=r=e[o++],i=n=e[o++],a+e[o++],i+e[o++],Rr,Ir);break;case Le.Z:r=a,n=i}cn(Pr,Pr,Rr),hn(Sn,Sn,Ir)}return 0===o&&(Pr[0]=Pr[1]=Sn[0]=Sn[1]=0),new pe(Pr[0],Pr[1],Sn[0]-Pr[0],Sn[1]-Pr[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,v=0;v<r;){var h=e[v++],d=1===v;d&&(s=i=e[v],l=o=e[v+1]);var y=-1;switch(h){case Le.M:i=s=e[v++],o=l=e[v++];break;case Le.L:var p=e[v++],_=(g=e[v++])-o;(Yr(m=p-i)>n||Yr(_)>a||v===r-1)&&(y=Math.sqrt(m*m+_*_),i=p,o=g);break;case Le.C:var S=e[v++],b=e[v++],g=(p=e[v++],e[v++]),C=e[v++],x=e[v++];y=cb(i,o,S,b,p,g,C,x,10),i=C,o=x;break;case Le.Q:y=vb(i,o,S=e[v++],b=e[v++],p=e[v++],g=e[v++],10),i=p,o=g;break;case Le.A:var T=e[v++],w=e[v++],L=e[v++],R=e[v++],E=e[v++],M=e[v++],k=M+E;v+=1,d&&(s=ea(E)*L+T,l=ta(E)*R+w),y=gf(L,R)*pf(Cn,Math.abs(M)),i=ea(k)*L+T,o=ta(k)*R+w;break;case Le.R:s=i=e[v++],l=o=e[v++],y=2*e[v++]+2*e[v++];break;case Le.Z:var m=s-i;_=l-o,y=Math.sqrt(m*m+_*_),i=s,o=l}y>=0&&(u[c++]=y,f+=y)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var s,l,u,f,c,v,d,m,S,b,n=this.data,a=this._ux,i=this._uy,o=this._len,h=r<1,p=0,g=0,_=0;if(!h||(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,m=r*this._pathLen))e:for(var C=0;C<o;){var x=n[C++],T=1===C;switch(T&&(s=u=n[C],l=f=n[C+1]),x!==Le.L&&_>0&&(e.lineTo(S,b),_=0),x){case Le.M:s=u=n[C++],l=f=n[C++],e.moveTo(u,f);break;case Le.L:c=n[C++],v=n[C++];var w=Yr(c-u),L=Yr(v-f);if(w>a||L>i){if(h){if(p+(R=d[g++])>m){e.lineTo(u*(1-(E=(m-p)/R))+c*E,f*(1-E)+v*E);break e}p+=R}e.lineTo(c,v),u=c,f=v,_=0}else{var M=w*w+L*L;M>_&&(S=c,b=v,_=M)}break;case Le.C:var k=n[C++],B=n[C++],F=n[C++],K=n[C++],Z=n[C++],U=n[C++];if(h){if(p+(R=d[g++])>m){qo(u,k,F,Z,E=(m-p)/R,Qn),qo(f,B,K,U,E,Jn),e.bezierCurveTo(Qn[1],Jn[1],Qn[2],Jn[2],Qn[3],Jn[3]);break e}p+=R}e.bezierCurveTo(k,B,F,K,Z,U),u=Z,f=U;break;case Le.Q:if(k=n[C++],B=n[C++],F=n[C++],K=n[C++],h){if(p+(R=d[g++])>m){Yo(u,k,F,E=(m-p)/R,Qn),Yo(f,B,K,E,Jn),e.quadraticCurveTo(Qn[1],Jn[1],Qn[2],Jn[2]);break e}p+=R}e.quadraticCurveTo(k,B,F,K),u=F,f=K;break;case Le.A:var Y=n[C++],q=n[C++],z=n[C++],ge=n[C++],Ve=n[C++],At=n[C++],Vt=n[C++],Lt=!n[C++],pt=z>ge?z:ge,ut=Yr(z-ge)>.001,Ke=Ve+At,de=!1;if(h&&(p+(R=d[g++])>m&&(Ke=Ve+At*(m-p)/R,de=!0),p+=R),ut&&e.ellipse?e.ellipse(Y,q,z,ge,Vt,Ve,Ke,Lt):e.arc(Y,q,pt,Ve,Ke,Lt),de)break e;T&&(s=ea(Ve)*z+Y,l=ta(Ve)*ge+q),u=ea(Ke)*z+Y,f=ta(Ke)*ge+q;break;case Le.R:s=u=n[C],l=f=n[C+1],c=n[C++],v=n[C++];var xe=n[C++],zr=n[C++];if(h){if(p+(R=d[g++])>m){var it=m-p;e.moveTo(c,v),e.lineTo(c+pf(it,xe),v),(it-=xe)>0&&e.lineTo(c+xe,v+pf(it,zr)),(it-=zr)>0&&e.lineTo(c+gf(xe-it,0),v+zr),(it-=xe)>0&&e.lineTo(c,v+gf(zr-it,0));break e}p+=R}e.rect(c,v,xe,zr);break;case Le.Z:if(h){var R;if(p+(R=d[g++])>m){var E;e.lineTo(u*(1-(E=(m-p)/R))+s*E,f*(1-E)+l*E);break e}p+=R}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=Le,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t;var e}();const ra=vT;function Va(t,e,r,n,a,i,o){if(0===a)return!1;var l,s=a;if(o>e+s&&o>n+s||o<e-s&&o<n-s||i>t+s&&i>r+s||i<t-s&&i<r-s)return!1;if(t===r)return Math.abs(i-t)<=s/2;var f=(l=(e-n)/(t-r))*i-o+(t*n-r*e)/(t-r);return f*f/(l*l+1)<=s/2*s/2}function dT(t,e,r,n,a,i,o,s,l,u,f){if(0===l)return!1;var c=l;return!(f>e+c&&f>n+c&&f>i+c&&f>s+c||f<e-c&&f<n-c&&f<i-c&&f<s-c||u>t+c&&u>r+c&&u>a+c&&u>o+c||u<t-c&&u<r-c&&u<a-c&&u<o-c)&&ld(t,e,r,n,a,i,o,s,u,f,null)<=c/2}function pT(t,e,r,n,a,i,o,s,l){if(0===o)return!1;var u=o;return!(l>e+u&&l>n+u&&l>i+u||l<e-u&&l<n-u&&l<i-u||s>t+u&&s>r+u&&s>a+u||s<t-u&&s<r-u&&s<a-u)&&cd(t,e,r,n,a,i,s,l,null)<=u/2}var Tp=2*Math.PI;function Xr(t){return(t%=Tp)<0&&(t+=Tp),t}var Bi=2*Math.PI;function gT(t,e,r,n,a,i,o,s,l){if(0===o)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-a)%Bi<1e-4)return!0;if(i){var c=n;n=Xr(a),a=Xr(c)}else n=Xr(n),a=Xr(a);n>a&&(a+=Bi);var v=Math.atan2(l,s);return v<0&&(v+=Bi),v>=n&&v<=a||v+Bi>=n&&v+Bi<=a}function Zr(t,e,r,n,a,i){if(i>e&&i>n||i<e&&i<n||n===e)return 0;var o=(i-e)/(n-e),s=n<e?1:-1;(1===o||0===o)&&(s=n<e?.5:-.5);var l=o*(r-t)+t;return l===a?1/0:l>a?s:0}var bn=ra.CMD,na=2*Math.PI,xt=[-1,-1,-1],jt=[-1,-1];function _T(){var t=jt[0];jt[0]=jt[1],jt[1]=t}function ST(t,e,r,n,a,i,o,s,l,u){if(u>e&&u>n&&u>i&&u>s||u<e&&u<n&&u<i&&u<s)return 0;var f=od(e,n,i,s,u,xt);if(0===f)return 0;for(var c=0,v=-1,h=void 0,d=void 0,y=0;y<f;y++){var p=xt[y],g=0===p||1===p?.5:1;ot(t,r,a,o,p)<l||(v<0&&(v=sd(e,n,i,s,jt),jt[1]<jt[0]&&v>1&&_T(),h=ot(e,n,i,s,jt[0]),v>1&&(d=ot(e,n,i,s,jt[1]))),c+=2===v?p<jt[0]?h<e?g:-g:p<jt[1]?d<h?g:-g:s<d?g:-g:p<jt[0]?h<e?g:-g:s<h?g:-g)}return c}function CT(t,e,r,n,a,i,o,s){if(s>e&&s>n&&s>i||s<e&&s<n&&s<i)return 0;var l=function hb(t,e,r,n,a){var i=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(dn(i))ad(o)&&(u=-s/o)>=0&&u<=1&&(a[l++]=u);else{var f=o*o-4*i*s;if(dn(f))(u=-o/(2*i))>=0&&u<=1&&(a[l++]=u);else if(f>0){var u,c=vn(f),v=(-o-c)/(2*i);(u=(-o+c)/(2*i))>=0&&u<=1&&(a[l++]=u),v>=0&&v<=1&&(a[l++]=v)}}return l}(e,n,i,s,xt);if(0===l)return 0;var u=fd(e,n,i);if(u>=0&&u<=1){for(var f=0,c=ct(e,n,i,u),v=0;v<l;v++){var h=0===xt[v]||1===xt[v]?.5:1;ct(t,r,a,xt[v])<o||(f+=xt[v]<u?c<e?h:-h:i<c?h:-h)}return f}return h=0===xt[0]||1===xt[0]?.5:1,ct(t,r,a,xt[0])<o?0:i<e?h:-h}function bT(t,e,r,n,a,i,o,s){if((s-=e)>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);xt[0]=-l,xt[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=na-1e-4){n=0,a=na;var f=i?1:-1;return o>=xt[0]+t&&o<=xt[1]+t?f:0}if(n>a){var c=n;n=a,a=c}n<0&&(n+=na,a+=na);for(var v=0,h=0;h<2;h++){var d=xt[h];if(d+t>o){var y=Math.atan2(s,d);f=i?1:-1,y<0&&(y=na+y),(y>=n&&y<=a||y+na>=n&&y+na<=a)&&(y>Math.PI/2&&y<1.5*Math.PI&&(f=-f),v+=f)}}return v}function wp(t,e,r,n,a){for(var v,h,i=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,d=0;d<o;){var y=i[d++],p=1===d;switch(y===bn.M&&d>1&&(r||(s+=Zr(l,u,f,c,n,a))),p&&(f=l=i[d],c=u=i[d+1]),y){case bn.M:l=f=i[d++],u=c=i[d++];break;case bn.L:if(r){if(Va(l,u,i[d],i[d+1],e,n,a))return!0}else s+=Zr(l,u,i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case bn.C:if(r){if(dT(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],e,n,a))return!0}else s+=ST(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case bn.Q:if(r){if(pT(l,u,i[d++],i[d++],i[d],i[d+1],e,n,a))return!0}else s+=CT(l,u,i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case bn.A:var g=i[d++],m=i[d++],_=i[d++],S=i[d++],b=i[d++],C=i[d++];d+=1;var x=!!(1-i[d++]);v=Math.cos(b)*_+g,h=Math.sin(b)*S+m,p?(f=v,c=h):s+=Zr(l,u,v,h,n,a);var T=(n-g)*S/_+g;if(r){if(gT(g,m,S,b,b+C,x,e,T,a))return!0}else s+=bT(g,m,S,b,b+C,x,T,a);l=Math.cos(b+C)*_+g,u=Math.sin(b+C)*S+m;break;case bn.R:if(f=l=i[d++],c=u=i[d++],v=f+i[d++],h=c+i[d++],r){if(Va(f,c,v,c,e,n,a)||Va(v,c,v,h,e,n,a)||Va(v,h,f,h,e,n,a)||Va(f,h,f,c,e,n,a))return!0}else s+=Zr(v,c,v,h,n,a),s+=Zr(f,h,f,c,n,a);break;case bn.Z:if(r){if(Va(l,u,f,c,e,n,a))return!0}else s+=Zr(l,u,f,c,n,a);l=f,u=c}}return!r&&!function mT(t,e){return Math.abs(t-e)<1e-4}(u,c)&&(s+=Zr(l,u,f,c,n,a)||0),0!==s}var Dp=Fe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Kn),wT={style:Fe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},hs.style)},Sf=wr.concat(["invisible","culling","z","z2","zlevel","parent"]),DT=function(t){function e(r){return t.call(this,r)||this}return(0,J.C6)(e,t),e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){r.buildPath(l,r.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<Sf.length;++s)a[Sf[s]]=this[Sf[s]];a.__dirty|=1}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=Ae(r);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=r[o];"style"===o?this.style?N(this.style,s):this.useStyle(s):"shape"===o?N(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if("none"!==r){if(j(r)){var n=bi(r,0);return n>.5?Nu:n>.2?"#eee":Fu}if(r)return Fu}return Nu},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(j(n)){var a=this.__zr;if(!(!a||!a.isDarkMode())==bi(r,0)<.4)return n}},e.prototype.buildPath=function(r,n,a){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new ra(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(null==n||"none"===n||!(r.lineWidth>0))},e.prototype.hasFill=function(){var n=this.style.fill;return null!=n&&"none"!==n},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,a=!r;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||4&this.__dirty)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||a){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;this.hasFill()||(u=Math.max(u,this.strokeContainThreshold??4)),l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},e.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect(),o=this.style;if(i.contain(r=a[0],n=a[1])){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),function TT(t,e,r,n){return wp(t,e,!0,r,n)}(s,l/u,r,n)))return!0}if(this.hasFill())return function xT(t,e,r){return wp(t,0,!1,e,r)}(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){"style"===r?this.dirtyStyle():"shape"===r?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){"shape"===r?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),"string"==typeof r?a[r]=n:N(a,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(r){return di(Dp,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=N({},this.shape))},e.prototype._applyStateObj=function(r,n,a,i,o,s){t.prototype._applyStateObj.call(this,r,n,a,i,o,s);var u,l=!(n&&i);if(n&&n.shape?o?i?u=n.shape:(u=N({},a.shape),N(u,n.shape)):(u=N({},i?this.shape:a.shape),N(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=N({},this.shape);for(var f={},c=Ae(u),v=0;v<c.length;v++){var h=c[v];"object"==typeof u[h]?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(r){for(var a,n=t.prototype._mergeStates.call(this,r),i=0;i<r.length;i++){var o=r[i];o.shape&&this._mergeStyle(a=a||{},o.shape)}return a&&(n.shape=a),n},e.prototype.getAnimationStyleProps=function(){return wT},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=function(i){function o(s){var l=i.call(this,s)||this;return r.init&&r.init.call(l,s),l}return(0,J.C6)(o,i),o.prototype.getDefaultStyle=function(){return _e(r.style)},o.prototype.getDefaultShape=function(){return _e(r.shape)},o}(e);for(var a in r)"function"==typeof r[a]&&(n.prototype[a]=r[a]);return n},e.initDefaultProps=function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=7}(),e}(jn);const Ne=DT;var MT=Fe({strokeFirst:!0,font:un,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Dp),Mp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,J.C6)(e,t),e.prototype.hasStroke=function(){return mp(this.style)},e.prototype.hasFill=function(){var n=this.style.fill;return null!=n&&"none"!==n},e.prototype.createStyle=function(r){return di(MT,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=function oT(t){var e=lf(t.text),r=t.font;return uf(t,vr(hr(r),e),os(r),null)}(this.style)),this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(jn);Mp.prototype.type="tspan";const Cf=Mp;var AT=Fe({x:0,y:0},Kn),LT={style:Fe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},hs.style)},Ap=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,J.C6)(e,t),e.prototype.createStyle=function(r){return di(AT,r)},e.prototype._getSize=function(r){var n=this.style,a=n[r];if(null!=a)return a;var i=function PT(t){return!!(t&&"string"!=typeof t&&t.width&&t.height)}(n.image)?n.image:this.__image;if(!i)return 0;var o="width"===r?"height":"width",s=n[o];return null==s?i[r]:i[r]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return LT},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new pe(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e}(jn);Ap.prototype.type="image";const xn=Ap;var Wa=Math.round;function Lp(t,e,r){if(e){var n=e.x1,a=e.x2,i=e.y1,o=e.y2;t.x1=n,t.x2=a,t.y1=i,t.y2=o;var s=r&&r.lineWidth;return s&&(Wa(2*n)===Wa(2*a)&&(t.x1=t.x2=aa(n,s,!0)),Wa(2*i)===Wa(2*o)&&(t.y1=t.y2=aa(i,s,!0))),t}}function Pp(t,e,r){if(e){var n=e.x,a=e.y,i=e.width,o=e.height;t.x=n,t.y=a,t.width=i,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=aa(n,s,!0),t.y=aa(a,s,!0),t.width=Math.max(aa(n+i,s,!1)-t.x,0===i?0:1),t.height=Math.max(aa(a+o,s,!1)-t.y,0===o?0:1)),t}}function aa(t,e,r){if(!e)return t;var n=Wa(2*t);return(n+Wa(e))%2==0?n/2:(n+(r?1:-1))/2}var IT=function(){return function t(){this.x=0,this.y=0,this.width=0,this.height=0}}(),ET={},Rp=function(t){function e(r){return t.call(this,r)||this}return(0,J.C6)(e,t),e.prototype.getDefaultShape=function(){return new IT},e.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=Pp(ET,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?function RT(t,e){var s,l,u,f,c,r=e.x,n=e.y,a=e.width,i=e.height,o=e.r;a<0&&(r+=a,a=-a),i<0&&(n+=i,i=-i),"number"==typeof o?s=l=u=f=o:o instanceof Array?1===o.length?s=l=u=f=o[0]:2===o.length?(s=u=o[0],l=f=o[1]):3===o.length?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0,s+l>a&&(s*=a/(c=s+l),l*=a/c),u+f>a&&(u*=a/(c=u+f),f*=a/c),l+u>i&&(l*=i/(c=l+u),u*=i/c),s+f>i&&(s*=i/(c=s+f),f*=i/c),t.moveTo(r+s,n),t.lineTo(r+a-l,n),0!==l&&t.arc(r+a-l,n+l,l,-Math.PI/2,0),t.lineTo(r+a,n+i-u),0!==u&&t.arc(r+a-u,n+i-u,u,0,Math.PI/2),t.lineTo(r+f,n+i),0!==f&&t.arc(r+f,n+i-f,f,Math.PI/2,Math.PI),t.lineTo(r,n+s),0!==s&&t.arc(r+s,n+s,s,Math.PI,1.5*Math.PI)}(r,n):r.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ne);Rp.prototype.type="rect";const st=Rp;var Ip={fill:"#000"},Er={},kT={style:Fe({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},hs.style)},kp=function(t){function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Ip,n.attr(r),n}return(0,J.C6)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,function HT(t){Np(t),D(t.rich,Np)}(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new pe(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(r.copy(l),r.applyTransform(u),(i=i||r.clone()).union(r)):(i=i||l.clone()).union(l)}this._rect=i||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Ip},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var a=n.rich,i=r.rich||a&&{};return N(r,n),a&&i?(this._mergeRich(i,a),r.rich=i):i&&(r.rich=i),r},e.prototype._mergeRich=function(r,n){for(var a=Ae(n),i=0;i<a.length;i++){var o=a[i];r[o]=r[o]||{},N(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return kT},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||un,a=r.padding,i=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||i.align||"left",u=r.verticalAlign||i.verticalAlign||"top";pp(Er,i.overflowRect,o,s,l,u),o=Er.baseX,s=Er.baseY;var c=function Jx(t,e,r,n){var a=lf(t),i=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f="truncate"===i,c=os(u),v=se(e.lineHeight,c),h="truncate"===e.lineOverflow,d=!1,y=e.width;null==y&&null!=r&&(y=r-s);var g,p=e.height;null==p&&null!=n&&(p=n-l);var m=(g=null==y||"break"!==i&&"breakAll"!==i?a?a.split("\n"):[]:a?dp(a,e.font,y,"breakAll"===i,0).lines:[]).length*v;if(null==p&&(p=m),m>p&&h){var _=Math.floor(p/v);d=d||g.length>_,m=(g=g.slice(0,_)).length*v}if(a&&f&&null!=y)for(var S=cp(y,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},C=0;C<g.length;C++)hp(b,g[C],S),g[C]=b.textLine,d=d||b.isTruncated;var x=p,T=0,w=hr(u);for(C=0;C<g.length;C++)T=Math.max(vr(w,g[C]),T);null==y&&(y=T);var L=y;return{lines:g,height:p,outerWidth:L+=s,outerHeight:x+=l,lineHeight:v,calculatedLineHeight:c,contentWidth:T,contentHeight:m,width:y,isTruncated:d}}(zp(r),r,Er.outerWidth,Er.outerHeight),v=bf(r),h=!!r.backgroundColor,d=c.outerHeight,y=c.outerWidth,p=c.lines,g=c.lineHeight;this.isTruncated=!!c.isTruncated;var m=o,_=Yn(s,c.contentHeight,u);if(v||a){var S=Ga(o,y,l),b=Yn(s,d,u);v&&this._renderBackground(r,r,S,b,y,d)}_+=g/2,a&&(m=Gp(o,l,a),"top"===u?_+=a[0]:"bottom"===u&&(_-=a[2]));for(var C=0,x=!1,T=!1,w=(Hp("fill"in r?r.fill:(T=!0,i.fill))),L=(Fp("stroke"in r?r.stroke:h||i.autoStroke&&!T?null:(C=2,x=!0,i.stroke))),R=r.textShadowBlur>0,E=0;E<p.length;E++){var M=this._getOrCreateChild(Cf),k=M.createStyle();M.useStyle(k),k.text=p[E],k.x=m,k.y=_,l&&(k.textAlign=l),k.textBaseline="middle",k.opacity=r.opacity,k.strokeFirst=!0,R&&(k.shadowBlur=r.textShadowBlur||0,k.shadowColor=r.textShadowColor||"transparent",k.shadowOffsetX=r.textShadowOffsetX||0,k.shadowOffsetY=r.textShadowOffsetY||0),k.stroke=L,k.fill=w,L&&(k.lineWidth=r.lineWidth||C,k.lineDash=r.lineDash,k.lineDashOffset=r.lineDashOffset||0),k.font=n,Bp(k,r),_+=g,M.setBoundingRect(uf(k,c.contentWidth,c.calculatedLineHeight,x?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,a=r.align||n.align,i=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;pp(Er,n.overflowRect,o,s,a,i),o=Er.baseX,s=Er.baseY;var u=function rT(t,e,r,n,a){var i=new tT,o=lf(t);if(!o)return i;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;null==f&&null!=r&&(f=r-l);var c=e.height;null==c&&null!=n&&(c=n-u);for(var y,v=e.overflow,h="break"!==v&&"breakAll"!==v||null==f?null:{width:f,accumWidth:0,breakAll:"breakAll"===v},d=of.lastIndex=0;null!=(y=of.exec(o));){var p=y.index;p>d&&sf(i,o.substring(d,p),e,h),sf(i,y[2],e,h,y[1]),d=of.lastIndex}d<o.length&&sf(i,o.substring(d,o.length),e,h);var g=[],m=0,_=0,S="truncate"===v,b="truncate"===e.lineOverflow,C={};function x(Vt,Lt,pt){Vt.width=Lt,Vt.lineHeight=pt,m+=pt,_=Math.max(_,Lt)}e:for(var T=0;T<i.lines.length;T++){for(var w=i.lines[T],L=0,R=0,E=0;E<w.tokens.length;E++){var k=(M=w.tokens[E]).styleName&&e.rich[M.styleName]||{},B=M.textPadding=k.padding,F=B?B[1]+B[3]:0,K=M.font=k.font||e.font;M.contentHeight=os(K);var Z=se(k.height,M.contentHeight);if(M.innerHeight=Z,B&&(Z+=B[0]+B[2]),M.height=Z,M.lineHeight=fn(k.lineHeight,e.lineHeight,Z),M.align=k&&k.align||a,M.verticalAlign=k&&k.verticalAlign||"middle",b&&null!=c&&m+M.lineHeight>c){var U=i.lines.length;E>0?(w.tokens=w.tokens.slice(0,E),x(w,R,L),i.lines=i.lines.slice(0,T+1)):i.lines=i.lines.slice(0,T),i.isTruncated=i.isTruncated||i.lines.length<U;break e}var Y=k.width,q=null==Y||"auto"===Y;if("string"==typeof Y&&"%"===Y.charAt(Y.length-1))M.percentWidth=Y,g.push(M),M.contentWidth=vr(hr(K),M.text);else{if(q){var z=k.backgroundColor,ge=z&&z.image;ge&&cs(ge=jx(ge))&&(M.width=Math.max(M.width,ge.width*Z/ge.height))}var Ve=S&&null!=f?f-R:null;null!=Ve&&Ve<M.width?!q||Ve<F?(M.text="",M.width=M.contentWidth=0):(fp(C,M.text,Ve-F,K,e.ellipsis,{minChar:e.truncateMinChar}),M.text=C.text,i.isTruncated=i.isTruncated||C.isTruncated,M.width=M.contentWidth=vr(hr(K),M.text)):M.contentWidth=vr(hr(K),M.text)}M.width+=F,R+=M.width,k&&(L=Math.max(L,M.lineHeight))}x(w,R,L)}for(i.outerWidth=i.width=se(f,_),i.outerHeight=i.height=se(c,m),i.contentHeight=m,i.contentWidth=_,i.outerWidth+=l,i.outerHeight+=u,T=0;T<g.length;T++){var M;(M=g[T]).width=parseInt(M.percentWidth,10)/100*i.width}return i}(zp(r),r,Er.outerWidth,Er.outerHeight,a),f=u.width,c=u.outerWidth,v=u.outerHeight,h=r.padding;this.isTruncated=!!u.isTruncated;var d=Ga(o,c,a),y=Yn(s,v,i),p=d,g=y;h&&(p+=h[3],g+=h[0]);var m=p+f;bf(r)&&this._renderBackground(r,r,d,y,c,v);for(var _=!!r.backgroundColor,S=0;S<u.lines.length;S++){for(var b=u.lines[S],C=b.tokens,x=C.length,T=b.lineHeight,w=b.width,L=0,R=p,E=m,M=x-1,k=void 0;L<x&&(!(k=C[L]).align||"left"===k.align);)this._placeToken(k,r,T,g,R,"left",_),w-=k.width,R+=k.width,L++;for(;M>=0&&"right"===(k=C[M]).align;)this._placeToken(k,r,T,g,E,"right",_),w-=k.width,E-=k.width,M--;for(R+=(f-(R-p)-(m-E)-w)/2;L<=M;)this._placeToken(k=C[L],r,T,g,R+k.width/2,"center",_),R+=k.width,L++;g+=T}},e.prototype._placeToken=function(r,n,a,i,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=i+a/2;"top"===f?c=i+r.height/2:"bottom"===f&&(c=i+a-r.height/2),!r.isLineHolder&&bf(u)&&this._renderBackground(u,n,"right"===s?o-r.width:"center"===s?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,d=r.textPadding;d&&(o=Gp(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var y=this._getOrCreateChild(Cf),p=y.createStyle();y.useStyle(p);var g=this._defaultStyle,m=!1,_=0,S=!1,b=Hp("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,g.fill)),C=Fp("stroke"in u?u.stroke:"stroke"in n?n.stroke:h||l||g.autoStroke&&!m?null:(_=2,S=!0,g.stroke)),x=u.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=c,x&&(p.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,p.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||un,p.opacity=fn(u.opacity,n.opacity,1),Bp(p,u),C&&(p.lineWidth=fn(u.lineWidth,n.lineWidth,_),p.lineDash=se(u.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=C),b&&(p.fill=b),y.setBoundingRect(uf(p,r.contentWidth,r.contentHeight,S?0:null))},e.prototype._renderBackground=function(r,n,a,i,o,s){var y,p,m,l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,v=l&&!c,h=r.borderRadius,d=this;if(v||r.lineHeight||u&&f){(y=this._getOrCreateChild(st)).useStyle(y.createStyle()),y.style.fill=null;var g=y.shape;g.x=a,g.y=i,g.width=o,g.height=s,g.r=h,y.dirtyShape()}if(v)(m=y.style).fill=l||null,m.fillOpacity=se(r.fillOpacity,1);else if(c){(p=this._getOrCreateChild(xn)).onload=function(){d.dirtyStyle()};var _=p.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}u&&f&&((m=y.style).lineWidth=u,m.stroke=f,m.strokeOpacity=se(r.strokeOpacity,1),m.lineDash=r.borderDash,m.lineDashOffset=r.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2));var S=(y||p).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=fn(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return function FT(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}(r)&&(n=[r.fontStyle,r.fontWeight,NT(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&lr(n)||r.textFont||r.font},e}(jn),OT={left:!0,right:1,center:1},BT={top:1,bottom:1,middle:1},Op=["fontStyle","fontWeight","fontSize","fontFamily"];function NT(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?"12px":t+"px":t}function Bp(t,e){for(var r=0;r<Op.length;r++){var n=Op[r],a=e[n];null!=a&&(t[n]=a)}}function Np(t){if(t){t.font=kp.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||OT[e]?e:"left";var r=t.verticalAlign;"center"===r&&(r="middle"),t.verticalAlign=null==r||BT[r]?r:"top",t.padding&&(t.padding=Po(t.padding))}}function Fp(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Hp(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Gp(t,e,r){return"right"===e?t-r[1]:"center"===e?t+r[3]/2-r[1]/2:t+r[3]}function zp(t){var e=t.text;return null!=e&&(e+=""),e}function bf(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const $e=kp;var De=Ee(),Vp=1,Wp={},Up=Ee(),xf=Ee(),kr=["emphasis","blur","select"],ms=["normal","emphasis","blur","select"],ia="highlight",_s="downplay",Ss="select",wf="unselect",Cs="toggleSelect",Df="selectchanged";function Ua(t){return null!=t&&"none"!==t}function bs(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function qp(t){bs(t,"emphasis",2)}function Yp(t){2===t.hoverState&&bs(t,"normal",0)}function Mf(t){bs(t,"blur",1)}function Xp(t){1===t.hoverState&&bs(t,"normal",0)}function UT(t){t.selected=!0}function qT(t){t.selected=!1}function Zp(t,e,r){e(t,r)}function Kr(t,e,r){Zp(t,e,r),t.isGroup&&t.traverse(function(n){Zp(n,e,r)})}function Af(t,e){var r=this.states[t];if(this.style){if("emphasis"===t)return function XT(t,e,r,n){var a=r&&Ce(r,"select")>=0,i=!1;if(t instanceof Ne){var o=Up(t),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Ua(s)||Ua(l)){var u=(n=n||{}).style||{};"inherit"===u.fill?(i=!0,n=N({},n),(u=N({},u)).fill=s):!Ua(u.fill)&&Ua(s)?(i=!0,n=N({},n),(u=N({},u)).fill=xu(s)):!Ua(u.stroke)&&Ua(l)&&(i||(n=N({},n),u=N({},u)),u.stroke=xu(l)),n.style=u}}return n&&null==n.z2&&(i||(n=N({},n)),n.z2=t.z2+(t.z2EmphasisLift??10)),n}(this,0,e,r);if("blur"===t)return function KT(t,e,r){var n=Ce(t.currentStates,e)>=0,a=t.style.opacity,i=n?null:function YT(t,e,r,n){for(var a=t.style,i={},o=0;o<e.length;o++){var s=e[o];i[s]=a[s]??(n&&n[s])}for(o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&"style"===u.targetName&&u.saveTo(i,e)}return i}(t,["opacity"],e,{opacity:1}),o=(r=r||{}).style||{};return null==o.opacity&&(r=N({},r),o=N({opacity:n?a:.1*i.opacity},o),r.style=o),r}(this,t,r);if("select"===t)return function ZT(t,e,r){return r&&null==r.z2&&((r=N({},r)).z2=t.z2+(t.z2SelectLift??9)),r}(this,0,r)}return r}function jT(t){t.stateProxy=Af;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=Af),r&&(r.stateProxy=Af)}function Kp(t,e){!eg(t,e)&&!t.__highByOuter&&Kr(t,qp)}function jp(t,e){!eg(t,e)&&!t.__highByOuter&&Kr(t,Yp)}function Lf(t,e){t.__highByOuter|=1<<(e||0),Kr(t,qp)}function Pf(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Kr(t,Yp)}function $p(t){Kr(t,Xp)}function Qp(t){Kr(t,UT)}function Jp(t){Kr(t,qT)}function eg(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function tg(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(a,i){var o=xf(i),s="series"===a,l=s?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){Xp(u)}),s&&r.push(i)),o.isBlured=!1}),D(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,e)})}function Rf(t,e,r,n){var a=n.getModel();function i(u,f){for(var c=0;c<f.length;c++){var v=u.getItemGraphicEl(f[c]);v&&$p(v)}}if(r=r||"coordinateSystem",null!=t&&e&&"none"!==e){var o=a.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;if(c&&c.master&&(c=c.master),!("series"===r&&!f||"coordinateSystem"===r&&!(c&&s?c===s:f)||"series"===e&&f)){if(n.getViewOfSeriesModel(u).group.traverse(function(p){p.__highByOuter&&f&&"self"===e||Mf(p)}),ft(e))i(u.getData(),e);else if(re(e))for(var d=Ae(e),y=0;y<d.length;y++)i(u.getData(d[y]),e[d[y]]);l.push(u),xf(u).isBlured=!0}}),a.eachComponent(function(u,f){if("series"!==u){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,a)}})}}function If(t,e,r){if(null!=t&&null!=e){var n=r.getModel().getComponent(t,e);if(n){xf(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){Mf(i)})}}}function Ef(t,e,r,n){var a={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==r)return a;var i=n.getModel().getComponent(t,e);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var l,s=o.findHighDownDispatchers(r),u=0;u<s.length;u++)if("self"===De(s[u]).focus){l=!0;break}return{focusSelf:l,dispatchers:s}}function rg(t){D(t.getAllData(),function(r){var a=r.type;r.data.eachItemGraphicEl(function(i,o){t.isSelected(o,a)?Qp(i):Jp(i)})})}function r1(t){var e=[];return t.eachSeries(function(r){D(r.getAllData(),function(a){var o=a.type,s=r.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:r.seriesIndex};null!=o&&(l.dataType=o),e.push(l)}})}),e}function xs(t,e,r){ag(t,!0),Kr(t,jT),function i1(t,e,r){var n=De(t);null!=e?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}(t,e,r)}var ng=["emphasis","blur","select"],o1={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ag(t,e){var r=!1===e,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function kf(t){return!(!t||!t.__highDownDispatcher)}function Of(t){var e=t.type;return e===Ss||e===wf||e===Cs}function ig(t){var e=t.type;return e===ia||e===_s}var og=Ee();function Bf(t,e,r,n,a){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var l="update"===t;if(e&&e.isAnimationEnabled()){var u=void 0,f=void 0,c=void 0;return n?(u=se(n.duration,200),f=se(n.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(null!=i.duration&&(u=i.duration),null!=i.easing&&(f=i.easing),null!=i.delay&&(c=i.delay)),ce(c)&&(c=c(r,a)),ce(u)&&(u=u(r)),{duration:u||0,delay:c,easing:f}}return null}function Nf(t,e,r,n,a,i,o){var l,s=!1;ce(a)?(o=i,i=a,a=null):re(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var f=Bf(t,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null);if(f&&f.duration>0){var d={duration:f.duration,delay:f.delay||0,easing:f.easing,done:i,force:!!i||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),i&&i()}function pr(t,e,r,n,a,i){Nf("update",t,e,r,n,a,i)}function Tn(t,e,r,n,a,i){Nf("enter",t,e,r,n,a,i)}function qa(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return!0;return!1}function sg(t,e,r,n,a,i){qa(t)||Nf("leave",t,e,r,n,a,i)}function lg(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),sg(t,{style:{opacity:0}},e,r,n)}function ug(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(a){a.isGroup||lg(a,e,r,n)}):lg(t,e,r,n)}var Ts={};function fg(t,e){for(var r=0;r<kr.length;r++){var n=kr[r],a=e[n],i=t.ensureState(n);i.style=i.style||{},i.style.text=a}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function Ff(t,e,r){var s,n=t.labelFetcher,a=t.labelDataIndex,i=t.labelDimIndex,o=e.normal;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),null!=r?{interpolatedValue:r}:null)),null==s&&(s=ce(t.defaultText)?t.defaultText(a,t,r):t.defaultText);for(var l={normal:s},u=0;u<kr.length;u++){var f=kr[u],c=e[f];l[f]=se(n?n.getFormattedLabel(a,f,null,i,c&&c.get("formatter")):null,s)}return l}function cg(t,e,r,n){r=r||Ts;for(var a=t instanceof $e,i=!1,o=0;o<ms.length;o++)if((s=e[ms[o]])&&s.getShallow("show")){i=!0;break}var l=a?t:t.getTextContent();if(i){a||(l||(l=new $e,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=Ff(r,e),f=e.normal,c=!!f.getShallow("show"),v=jr(f,n&&n.normal,r,!1,!a);for(v.text=u.normal,a||t.setTextConfig(hg(f,r,!1)),o=0;o<kr.length;o++){var s,h=kr[o];if(s=e[h]){var d=l.ensureState(h),y=!!se(s.getShallow("show"),c);y!==c&&(d.ignore=!y),d.style=jr(s,n&&n[h],r,!0,!a),d.style.text=u[h],a||(t.ensureState(h).textConfig=hg(s,r,!0))}}l.silent=!!f.getShallow("silent"),null!=l.style.x&&(v.x=l.style.x),null!=l.style.y&&(v.y=l.style.y),l.ignore=!c,l.useStyle(v),l.dirty(),r.enableTextSetter&&(ws(l).setLabelText=function(g){var m=Ff(r,e,g);fg(l,m)})}else l&&(l.ignore=!0);t.dirty()}function jr(t,e,r,n,a){var i={};return function h1(t,e,r,n,a){r=r||Ts;var l,i=e.ecModel,o=i&&i.option.textStyle,s=function v1(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||Ts).rich;if(r){e=e||{};for(var n=Ae(r),a=0;a<n.length;a++)e[n[a]]=1}t=t.parentModel}return e}(e);if(s){l={};var u="richInheritPlainLabel",f=se(e.get(u),i?i.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var v=e.getModel(["rich",c]);gg(l[c]={},v,o,e,f,r,n,a,!1,!0)}}l&&(t.rich=l);var h=e.get("overflow");h&&(t.overflow=h);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var y=t,p=e.get("minMargin");if(null!=p)p=Re(p)?p/2:0,y.margin=[p,p,p,p],y.__marginType=Ya.minMargin;else{var g=e.get("textMargin");null!=g&&(y.margin=Po(g),y.__marginType=Ya.textMargin)}gg(t,e,o,null,null,r,n,a,!0,!1)}(i,t,r,n,a),e&&N(i,e),i}function hg(t,e,r){e=e||{};var a,n={},i=t.getShallow("rotate"),o=se(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return"outside"===(a=t.getShallow("position")||(r?null:"inside"))&&(a=e.defaultOutsidePosition||"top"),null!=a&&(n.position=a),null!=s&&(n.offset=s),null!=i&&(i*=Math.PI/180,n.rotation=i),null!=o&&(n.distance=o),n.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",null!=e.autoOverflowArea&&(n.autoOverflowArea=e.autoOverflowArea),null!=e.layoutRect&&(n.layoutRect=e.layoutRect),n}var vg=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],dg=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],pg=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function gg(t,e,r,n,a,i,o,s,l,u){r=!o&&r||Ts;var f=i&&i.inheritColor,c=e.getShallow("color"),v=e.getShallow("textBorderColor"),h=se(e.getShallow("opacity"),r.opacity);("inherit"===c||"auto"===c)&&(c=f||null),("inherit"===v||"auto"===v)&&(v=f||null),s||(c=c||r.color,v=v||r.textBorderColor),null!=c&&(t.fill=c),null!=v&&(t.stroke=v);var d=se(e.getShallow("textBorderWidth"),r.textBorderWidth);null!=d&&(t.lineWidth=d);var y=se(e.getShallow("textBorderType"),r.textBorderType);null!=y&&(t.lineDash=y);var p=se(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);null!=p&&(t.lineDashOffset=p),!o&&null==h&&!u&&(h=i&&i.defaultOpacity),null!=h&&(t.opacity=h),!o&&!s&&null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var g=0;g<vg.length;g++){var m=vg[g];null!=(_=!1!==a&&n?fn(e.getShallow(m),n.getShallow(m),r[m]):se(e.getShallow(m),r[m]))&&(t[m]=_)}for(g=0;g<dg.length;g++)null!=(_=e.getShallow(m=dg[g]))&&(t[m]=_);if(null==t.verticalAlign){var S=e.getShallow("baseline");null!=S&&(t.verticalAlign=S)}if(!l||!i.disableBox){for(g=0;g<pg.length;g++){var _;null!=(_=e.getShallow(m=pg[g]))&&(t[m]=_)}var b=e.getShallow("borderType");null!=b&&(t.borderDash=b),("auto"===t.backgroundColor||"inherit"===t.backgroundColor)&&f&&(t.backgroundColor=f),("auto"===t.borderColor||"inherit"===t.borderColor)&&f&&(t.borderColor=f)}}var ws=Ee();var Ya={minMargin:1,textMargin:2},g1=["textStyle","color"],Hf=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Gf=new $e,y1=function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(g1):null)},t.prototype.getFont=function(){return function d1(t,e){var r=e&&e.getModel("textStyle");return lr([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Hf.length;n++)r[Hf[n]]=this.getShallow(Hf[n]);return Gf.useStyle(r),Gf.update(),Gf.getBoundingRect()},t}();const m1=y1;var yg=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],_1=ki(yg),S1=function(){function t(){}return t.prototype.getLineStyle=function(e){return _1(this,e)},t}(),mg=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],C1=ki(mg),b1=function(){function t(){}return t.prototype.getItemStyle=function(e,r){return C1(this,e,r)},t}(),oa=function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){for(var a=[],i=3;i<arguments.length;i++)a[i-3]=arguments[i]},t.prototype.mergeOption=function(e,r){Be(this.option,e,!0)},t.prototype.get=function(e,r){return null==e?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,a=null==n?n:n[e];if(null==a&&!r){var i=this.parentModel;i&&(a=i.getShallow(e))}return a},t.prototype.getModel=function(e,r){var n=null!=e,a=n?this.parsePath(e):null;return new t(n?this._doGet(a):this.option,r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(_e(this.option))},t.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!me.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var a=0;a<e.length&&(!e[a]||null!=(n=n&&"object"==typeof n?n[e[a]]:null));a++);return null==n&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t}();nf(oa),function Ux(t){var e=["__\0is_clz",Wx++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!(!r||!r[e])}}(oa),or(oa,S1),or(oa,b1),or(oa,Kx),or(oa,m1);const Qe=oa;var x1=Math.round(10*Math.random());function Ds(t){return[t||"",x1++].join("_")}var Xa="EN",As={},Vf={},_g=me.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||Xa).toUpperCase().indexOf("ZH")>-1?"ZH":Xa;function Wf(t,e){t=t.toUpperCase(),Vf[t]=new Qe(e),As[t]=e}Wf("EN",{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),Wf("ZH",{time:{month:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],dayOfWeekAbbr:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53cd\u9009"}},toolbox:{brush:{title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}},dataView:{title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},dataZoom:{title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}},magicType:{title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"}},restore:{title:"\u8fd8\u539f"},saveAsImage:{title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]}},series:{typeNames:{pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe",custom:"\u81ea\u5b9a\u4e49\u56fe\u8868",chart:"\u56fe\u8868"}},aria:{general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}}});function It(){return null}var Ni=36e5,$t=24*Ni,Sg=365*$t,I1={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Ls={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},Ps="{yyyy}-{MM}-{dd}",Cg={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ps,hour:Ps+" "+Ls.hour,minute:Ps+" "+Ls.minute,second:Ps+" "+Ls.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Gt=["year","month","day","hour","minute","second","millisecond"],k1=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Tt(t,e){return"0000".substr(0,e-(t+="").length)+t}function Fi(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function N1(t){return t===Fi(t)}function Hi(t,e,r,n){var a=Ur(t),i=a[bg(r)](),o=a[Xf(r)]()+1,s=Math.floor((o-1)/3)+1,l=a[Zf(r)](),u=a["get"+(r?"UTC":"")+"Day"](),f=a[Kf(r)](),c=(f-1)%12+1,v=a[jf(r)](),h=a[$f(r)](),d=a[Qf(r)](),y=f>=12?"pm":"am",p=y.toUpperCase(),g=n instanceof Qe?n:function P1(t){return Vf[t]}(n||_g)||function R1(){return Vf[Xa]}(),m=g.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),b=m.get("dayOfWeek"),C=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,y+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Tt(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Tt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Tt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,C[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Tt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Tt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Tt(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Tt(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Tt(d,3)).replace(/{S}/g,d+"")}function Za(t,e){var r=Ur(t),n=r[Xf(e)]()+1,a=r[Zf(e)](),i=r[Kf(e)](),o=r[jf(e)](),s=r[$f(e)](),u=0===r[Qf(e)](),f=u&&0===s,c=f&&0===o,v=c&&0===i,h=v&&1===a;return h&&1===n?"year":h?"month":v?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Rs(t,e,r){switch(e){case"year":t[xg(r)](0);case"month":t[Tg(r)](1);case"day":t[wg(r)](0);case"hour":t[Dg(r)](0);case"minute":t[Mg(r)](0);case"second":t[Ag(r)](0)}return t}function bg(t){return t?"getUTCFullYear":"getFullYear"}function Xf(t){return t?"getUTCMonth":"getMonth"}function Zf(t){return t?"getUTCDate":"getDate"}function Kf(t){return t?"getUTCHours":"getHours"}function jf(t){return t?"getUTCMinutes":"getMinutes"}function $f(t){return t?"getUTCSeconds":"getSeconds"}function Qf(t){return t?"getUTCMilliseconds":"getMilliseconds"}function G1(t){return t?"setUTCFullYear":"setFullYear"}function xg(t){return t?"setUTCMonth":"setMonth"}function Tg(t){return t?"setUTCDate":"setDate"}function wg(t){return t?"setUTCHours":"setHours"}function Dg(t){return t?"setUTCMinutes":"setMinutes"}function Mg(t){return t?"setUTCSeconds":"setSeconds"}function Ag(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Jf(t){if(!Kd(t))return j(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function ec(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Gi=Po;function tc(t,e,r){function a(f){return f&&lr(f)?f:"-"}function i(f){return!(null==f||isNaN(f)||!isFinite(f))}var o="time"===e,s=t instanceof Date;if(o||s){var l=o?Ur(t):t;if(!isNaN(+l))return Hi(l,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",r);if(s)return"-"}if("ordinal"===e)return Ao(t)?a(t):Re(t)&&i(t)?t+"":"-";var u=qr(t);return i(u)?Jf(u):Ao(t)?a(t):"boolean"==typeof t?t+"":"-"}var Lg=["a","b","c","d","e","f","g"],rc=function(t,e){return"{"+t+(e??"")+"}"};function nc(t,e,r){W(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],i=0;i<a.length;i++){var o=Lg[i];t=t.replace(rc(o),rc(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=e[s][a[l]];t=t.replace(rc(Lg[l],s),r?Ct(u):u)}return t}function Pg(t,e){var r=j(t)?{color:t,extraCssText:e}:t||{},n=r.color,a=r.type;e=r.extraCssText;var i=r.renderMode||"html";return n?"html"===i?"subItem"===a?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ct(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ct(n)+";"+(e||"")+'"></span>':{renderMode:i,content:"{"+(r.markerId||"markerX")+"|} ",style:"subItem"===a?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function W1(t,e,r){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var n=Ur(e),a=r?"getUTC":"get",i=n[a+"FullYear"](),o=n[a+"Month"]()+1,s=n[a+"Date"](),l=n[a+"Hours"](),u=n[a+"Minutes"](),f=n[a+"Seconds"](),c=n[a+"Milliseconds"]();return t.replace("MM",Tt(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Tt(i%100+"",2)).replace("dd",Tt(s,2)).replace("d",s).replace("hh",Tt(l,2)).replace("h",l).replace("mm",Tt(u,2)).replace("m",u).replace("ss",Tt(f,2)).replace("s",f).replace("SSS",Tt(c,3))}function U1(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function zi(t,e){return e=e||"transparent",j(t)?t:re(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Rg(t,e){if("_blank"===e||"blank"===e){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var Is={},ac={},Y1=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){function n(a,i){var o=[];return D(a,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}this._nonSeriesBoxMasterList=n(Is),this._normalMasterList=n(ac)},t.prototype.update=function(e,r){D(this._normalMasterList,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){"matrix"!==e&&"calendar"!==e?ac[e]=r:Is[e]=r},t.get=function(e){return ac[e]||Is[e]},t}(),Ig=ye();const Es=Y1;var ks=D,Eg=["left","right","top","bottom","width","height"],sa=[["width","left","right"],["height","top","bottom"]];function oc(t,e,r,n,a){var i=0,o=0;null==n&&(n=1/0),null==a&&(a=1/0);var s=0;e.eachChild(function(l,u){var h,d,f=l.getBoundingRect(),c=e.childAt(u+1),v=c&&c.getBoundingRect();if("horizontal"===t){var y=f.width+(v?-v.x+f.x:0);(h=i+y)>n||l.newline?(i=0,h=y,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(v?-v.y+f.y:0);(d=o+p)>a||l.newline?(i+=s+r,o=0,d=p,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),"horizontal"===t?i=h+r:o=d+r)})}var Vi=oc;function Qr(t,e,r){r=Gi(r||0);var n=e.width,a=e.height,i=Ie(t.left,n),o=Ie(t.top,a),s=Ie(t.right,n),l=Ie(t.bottom,a),u=Ie(t.width,n),f=Ie(t.height,a),c=r[2]+r[0],v=r[1]+r[3],h=t.aspect;switch(isNaN(u)&&(u=n-s-v-i),isNaN(f)&&(f=a-l-c-o),null!=h&&(isNaN(u)&&isNaN(f)&&(h>n/a?u=.8*n:f=.8*a),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(i)&&(i=n-s-u-v),isNaN(o)&&(o=a-l-f-c),t.left||t.right){case"center":i=n/2-u/2-r[3];break;case"right":i=n-u-v}switch(t.top||t.bottom){case"middle":case"center":o=a/2-f/2-r[0];break;case"bottom":o=a-f-c}i=i||0,o=o||0,isNaN(u)&&(u=n-v-i-(s||0)),isNaN(f)&&(f=a-c-o-(l||0));var d=new pe((e.x||0)+i+r[3],(e.y||0)+o+r[0],u,f);return d.margin=r,d}Ue(oc,"vertical"),Ue(oc,"horizontal");var Wi={rect:1,point:2};function sc(t,e,r){var n,a,i,s,o=t.boxCoordinateSystem;if(o){var l=function K1(t){var e=t.getShallow("coord",!0),r=1;if(null==e){var n=Ig.get(t.type);n&&n.getCoord2&&(r=2,e=n.getCoord2(t))}return{coord:e,from:r}}(t),u=l.coord,f=l.from;if(o.dataToLayout){i=Wi.rect,s=f;var c=o.dataToLayout(u);n=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=Wi.point,s=f,a=o.dataToPoint(u))}return null==i&&(i=Wi.rect),i===Wi.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),a=[n.x+n.width/2,n.y+n.height/2]),{type:i,refContainer:n,refPoint:a,boxCoordFrom:s}}function ew(t,e,r,n,a,i){var u,o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if((i=i||t).x=t.x,i.y=t.y,!o&&!s)return!1;if("raw"===l)u="group"===t.type?new pe(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var f=t.getLocalTransform();(u=u.clone()).applyTransform(f)}var c=Qr(Fe({width:u.width,height:u.height},e),r,n),v=o?c.x-u.x:0,h=s?c.y-u.y:0;return"raw"===l?(i.x=v,i.y=h):(i.x+=v,i.y+=h),i===t&&t.markRedraw(),!0}function Os(t){var e=t.layoutMode||t.constructor.layoutMode;return re(e)?e:e?{type:e}:null}function Ka(t,e,r){var n=r&&r.ignoreSize;!W(n)&&(n=[n,n]);var a=o(sa[0],0),i=o(sa[1],1);function o(u,f){var c={},v=0,h={},d=0;if(ks(u,function(m){h[m]=t[m]}),ks(u,function(m){le(e,m)&&(c[m]=h[m]=e[m]),s(c,m)&&v++,s(h,m)&&d++}),n[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(2===d||!v)return h;if(v>=2)return c;for(var p=0;p<u.length;p++){var g=u[p];if(!le(c,g)&&le(t,g)){c[g]=t[g];break}}return c}function s(u,f){return null!=u[f]&&"auto"!==u[f]}function l(u,f,c){ks(u,function(v){f[v]=c[v]})}l(sa[0],t,a),l(sa[1],t,i)}function lc(t){return kg({},t)}function kg(t,e){return e&&t&&ks(Eg,function(r){le(e,r)&&(t[r]=e[r])}),t}var tw=Ee(),ja=function(t){function e(r,n,a){var i=t.call(this,r,n,a)||this;return i.uid=Ds("ec_cpt_model"),i}return(0,J.C6)(e,t),e.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},e.prototype.mergeDefaultAndTheme=function(r,n){var a=Os(this),i=a?lc(r):{};Be(r,n.getTheme().get(this.mainType)),Be(r,this.getDefaultOption()),a&&Ka(r,i,a)},e.prototype.mergeOption=function(r,n){Be(this.option,r,!0);var a=Os(this);a&&Ka(this.option,r,a)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!function zx(t){return!(!t||!t[op])}(r))return r.defaultOption;var n=tw(this);if(!n.defaultOption){for(var a=[],i=r;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=Be(s,a[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Id";return Ei(this.ecModel,r,{index:this.get(r+"Index",!0),id:this.get(i,!0)},n)},e.prototype.getBoxLayoutParams=function(){return function $1(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),e}(Qe);sp(ja,Qe),fs(ja),function T1(t){var e={};t.registerSubTypeDefaulter=function(r,n){var a=Lr(r);e[a.main]=n},t.determineSubType=function(r,n){var a=n.type;if(!a){var i=Lr(r).main;t.hasSubTypes(r)&&e[i]&&(a=e[i](n))}return a}}(ja),function w1(t,e){function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}t.topologicalTravel=function(i,o,s,l){if(i.length){var u=function r(i){var o={},s=[];return D(i,function(l){var u=n(o,l),c=function a(i,o){var s=[];return D(i,function(l){Ce(o,l)>=0&&s.push(l)}),s}(u.originalDeps=e(l),i);u.entryCount=c.length,0===u.entryCount&&s.push(l),D(c,function(v){Ce(u.predecessor,v)<0&&u.predecessor.push(v);var h=n(o,v);Ce(h.successor,v)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}(o),f=u.graph,c=u.noEntryList,v={};for(D(i,function(m){v[m]=!0});c.length;){var h=c.pop(),d=f[h],y=!!v[h];y&&(s.call(l,h,d.originalDeps.slice()),delete v[h]),D(d.successor,y?g:p)}D(v,function(){throw new Error("")})}function p(m){f[m].entryCount--,0===f[m].entryCount&&c.push(m)}function g(m){v[m]=!0,p(m)}}}(ja,function rw(t){var e=[];return D(ja.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=oe(e,function(r){return Lr(r).main}),"dataset"!==t&&Ce(e,"dataset")<=0&&e.unshift("dataset"),e});const He=ja;var la={color:{},darkColor:{},size:{}},qe=la.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};for(var ua in N(qe,{primary:qe.neutral80,secondary:qe.neutral70,tertiary:qe.neutral60,quaternary:qe.neutral50,disabled:qe.neutral20,border:qe.neutral30,borderTint:qe.neutral20,borderShade:qe.neutral40,background:qe.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:qe.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:qe.neutral70,axisLineTint:qe.neutral40,axisTick:qe.neutral70,axisTickMinor:qe.neutral60,axisLabel:qe.neutral70,axisSplitLine:qe.neutral15,axisMinorSplitLine:qe.neutral05}),qe)if(qe.hasOwnProperty(ua)){var Og=qe[ua];"theme"===ua?la.darkColor.theme=qe.theme.slice():"highlight"===ua?la.darkColor.highlight="rgba(255,231,130,0.4)":la.darkColor[ua]=0===ua.indexOf("accent")?Ko(Og,null,function(t){return.5*t},function(t){return Math.min(1,1.3-t)}):Ko(Og,null,function(t){return.9*t},function(t){return 1-Math.pow(t,1.5)})}la.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const be=la;var Bg="";typeof navigator<"u"&&(Bg=navigator.platform||"");var $a="rgba(0, 0, 0, 0.2)",Ng=be.color.theme[0],nw=Ko(Ng,null,null,.9);const aw={darkMode:"auto",colorBy:"series",color:be.color.theme,gradientColor:[nw,Ng],aria:{decal:{decals:[{color:$a,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:$a,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:$a,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:$a,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:$a,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:$a,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Bg.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 Fg=ye(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),zt="original",ht="arrayRows",Qt="objectRows",gr="keyedColumns",Jr="typedArray",Hg="unknown",Or="column",fa="row",Gg=Ee();function ow(t,e,r){var n={},a=uc(e);if(!a||!t)return n;var f,c,i=[],o=[],l=Gg(e.ecModel).datasetMap,u=a.uid+"_"+r.seriesLayoutBy;D(t=t.slice(),function(y,p){var g=re(y)?y:t[p]={name:y};"ordinal"===g.type&&null==f&&(f=p,c=d(g)),n[g.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});function h(y,p,g){for(var m=0;m<g;m++)y.push(p+m)}function d(y){var p=y.dimsDef;return p?p.length:1}return D(t,function(y,p){var g=y.name,m=d(y);if(null==f)h(n[g],_=v.valueWayDim,m),h(o,_,m),v.valueWayDim+=m;else if(f===p)h(n[g],0,m),h(i,0,m);else{var _;h(n[g],_=v.categoryWayDim,m),h(o,_,m),v.categoryWayDim+=m}}),i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function sw(t,e,r){var n={};if(!uc(t))return n;var s,i=e.sourceFormat,o=e.dimensionsDefine;(i===Qt||i===gr)&&D(o,function(f,c){"name"===(re(f)?f.name:f)&&(s=c)});var l=function(){for(var f={},c={},v=[],h=0,d=Math.min(5,r);h<d;h++){var y=Vg(e.data,i,e.seriesLayoutBy,o,e.startIndex,h);v.push(y);var p=3===y;if(p&&null==f.v&&h!==s&&(f.v=h),(null==f.n||f.n===f.v||!p&&3===v[f.n])&&(f.n=h),g(f)&&3!==v[f.n])return f;p||(2===y&&null==c.v&&h!==s&&(c.v=h),(null==c.n||c.n===c.v)&&(c.n=h))}function g(m){return null!=m.v&&null!=m.n}return g(f)?f:g(c)?c:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function uc(t){if(!t.get("data",!0))return Ei(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},_n).models[0]}function zg(t,e){return Vg(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Vg(t,e,r,n,a,i){var o,l,u;if(_t(t))return 3;if(n){var f=n[i];re(f)?(l=f.name,u=f.type):j(f)&&(l=f)}if(null!=u)return"ordinal"===u?1:3;if(e===ht){var c=t;if(r===fa){for(var v=c[i],h=0;h<(v||[]).length&&h<5;h++)if(null!=(o=S(v[a+h])))return o}else for(h=0;h<c.length&&h<5;h++){var d=c[a+h];if(d&&null!=(o=S(d[i])))return o}}else if(e===Qt){var y=t;if(!l)return 3;for(h=0;h<y.length&&h<5;h++)if((p=y[h])&&null!=(o=S(p[l])))return o}else if(e===gr){if(!l)return 3;if(!(v=t[l])||_t(v))return 3;for(h=0;h<v.length&&h<5;h++)if(null!=(o=S(v[h])))return o}else if(e===zt){var m=t;for(h=0;h<m.length&&h<5;h++){var p,_=Li(p=m[h]);if(!W(_))return 3;if(null!=(o=S(_[i])))return o}}function S(b){var C=j(b);return null!=b&&Number.isFinite(Number(b))&&""!==b?C?2:3:C&&"-"!==b?1:void 0}return 3}var fc=ye(),Wg=Ee(),cc=(Ee(),function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var a=tt(this.get("color",!0)),i=this.get("colorLayer",!0);return function Ug(t,e,r,n,a,i,o){var s=e(i=i||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=null!=o&&n?function vw(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}(n,o):r;if((f=f||r)&&f.length){var c=f[l];return a&&(u[a]=c),s.paletteIdx=(l+1)%f.length,c}}(this,Wg,a,i,e,r,n)},t.prototype.clearColorPalette=function(){!function dw(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}(this,Wg)},t}());var Bs,Ui,qg,Yg="\0_ec_inner",Zg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,J.C6)(e,t),e.prototype.init=function(r,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Qe(i),this._locale=new Qe(o),this._optionManager=s},e.prototype.setOption=function(r,n,a){var i=$g(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(r,n){return this._resetOption(r,$g(n))},e.prototype._resetOption=function(r,n){var a=!1,i=this._optionManager;if(!r||"recreate"===r){var o=i.mountOption("recreate"===r);this.option&&"recreate"!==r?(this.restoreData(),this._mergeOption(o,n)):qg(this,o),a=!0}if(("timeline"===r||"media"===r)&&this.restoreData(),!r||"recreate"===r||"timeline"===r){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!r||"recreate"===r||"media"===r){var l=i.getMediaOption(this);l.length&&D(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ye(),u=n&&n.replaceMergeMainTypeMap;(function iw(t){Gg(t).datasetMap=ye()})(this),D(r,function(c,v){null!=c&&(He.hasClass(v)?v&&(s.push(v),l.set(v,!0)):a[v]=null==a[v]?_e(c):Be(a[v],c,!0))}),u&&u.each(function(c,v){He.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),He.topologicalTravel(s,He.getAllClassMainTypes(),function f(c){var v=function fw(t,e,r){var n=fc.get(e);if(!n)return r;var a=n(t);return a?r.concat(a):r}(this,c,tt(r[c])),h=i.get(c),y=np(h,v,h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll");(function Ex(t,e,r){D(t,function(n){var a=n.newOption;re(a)&&(n.keyInfo.mainType=e,n.keyInfo.subType=function kx(t,e,r,n){return e.type?e.type:r?r.subType:n.determineSubType(t,e)}(e,a,n.existing,r))})})(y,c,He),a[c]=null,i.set(c,null),o.set(c,0);var _,p=[],g=[],m=0;D(y,function(b,C){var x=b.existing,T=b.newOption;if(T){var L=He.getClass(c,b.keyInfo.subType,!("series"===c));if(!L)return;if("tooltip"===c){if(_)return;_=!0}if(x&&x.constructor===L)x.name=b.keyInfo.name,x.mergeOption(T,this),x.optionUpdated(T,!1);else{var M=N({componentIndex:C},b.keyInfo);N(x=new L(T,this,this,M),M),b.brandNew&&(x.__requireNewView=!0),x.init(T,this,this),x.optionUpdated(null,!0)}}else x&&(x.mergeOption({},this),x.optionUpdated({},!1));x?(p.push(x.option),g.push(x),m++):(p.push(void 0),g.push(void 0))},this),a[c]=p,i.set(c,g),o.set(c,m),"series"===c&&Bs(this)},this),this._seriesIndices||Bs(this)},e.prototype.getOption=function(){var r=_e(this.option);return D(r,function(n,a){if(He.hasClass(a)){for(var i=tt(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Ri(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,r[a]=i}}),delete r[Yg],r},e.prototype.setTheme=function(r){this._theme=new Qe(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,n){var a=this._componentsMap.get(r);if(a){var i=a[n||0];if(i)return i;if(null==n)for(var o=0;o<a.length;o++)if(a[o])return a[o]}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var l,a=r.index,i=r.id,o=r.name,s=this._componentsMap.get(n);return s&&s.length?(null!=a?(l=[],D(tt(a),function(u){s[u]&&l.push(s[u])})):l=null!=i?Kg("id",i,s):null!=o?Kg("name",o,s):We(s,function(u){return!!u}),jg(l,r)):[]},e.prototype.findComponents=function(r){var a=r.mainType,i=function s(u){var f=a+"Index",c=a+"Id",v=a+"Name";return!u||null==u[f]&&null==u[c]&&null==u[v]?null:{mainType:a,index:u[f],id:u[c],name:u[v]}}(r.query);return function l(u){return r.filter?We(u,r.filter):u}(jg(i?this.queryComponents(i):We(this._componentsMap.get(a),function(u){return!!u}),r))},e.prototype.eachComponent=function(r,n,a){var i=this._componentsMap;if(ce(r)){var o=n,s=r;i.each(function(c,v){for(var h=0;c&&h<c.length;h++){var d=c[h];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=j(r)?i.get(r):re(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(a,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=bt(r,null);return We(this._componentsMap.get("series"),function(a){return!!a&&null!=n&&a.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return We(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return We(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){Ui(this),D(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];r.call(n,i,a)},this)},e.prototype.eachRawSeries=function(r,n){D(this._componentsMap.get("series"),function(a){a&&r.call(n,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,a){Ui(this),D(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===r&&n.call(a,o,i)},this)},e.prototype.eachRawSeriesByType=function(r,n,a){return D(this.getSeriesByType(r),n,a)},e.prototype.isSeriesFiltered=function(r){return Ui(this),null==this._seriesIndicesMap.get(r.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){Ui(this);var a=[];D(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];r.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=ye(a)},e.prototype.restoreData=function(r){Bs(this);var n=this._componentsMap,a=[];n.each(function(i,o){He.hasClass(o)&&a.push(o)}),He.topologicalTravel(a,He.getAllClassMainTypes(),function(i){D(n.get(i),function(o){o&&("series"!==i||!function Sw(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,a=e.seriesName;return null!=r&&t.componentIndex!==r||null!=n&&t.id!==n||null!=a&&t.name!==a}}(o,r))&&o.restoreData()})})},e.internalField=(Bs=function(r){var n=r._seriesIndices=[];D(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=ye(n)},Ui=function(r){},void(qg=function(r,n){r.option={},r.option[Yg]=1,r._componentsMap=ye({series:[]}),r._componentsCount=ye();var a=n.aria;re(a)&&null==a.enabled&&(a.enabled=!0),function Cw(t,e){var r=t.color&&!t.colorLayer;D(e,function(n,a){"colorLayer"===a&&r||"color"===a&&t.color||He.hasClass(a)||("object"==typeof n?t[a]=t[a]?Be(t[a],n,!1):_e(n):null==t[a]&&(t[a]=n))})}(n,r._theme.option),Be(n,aw,!1),r._mergeOption(n,null)})),e}(Qe);function Kg(t,e,r){if(W(e)){var n=ye();return D(e,function(i){null!=i&&null!=bt(i,null)&&n.set(i,!0)}),We(r,function(i){return i&&n.get(i[t])})}var a=bt(e,null);return We(r,function(i){return i&&null!=a&&i[t]===a})}function jg(t,e){return e.hasOwnProperty("subType")?We(t,function(r){return r&&r.subType===e.subType}):t}function $g(t){var e=ye();return t&&D(tt(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}or(Zg,cc);const Qg=Zg;var bw=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],xw=function(){return function t(e){D(bw,function(r){this[r]=we(e[r],e)},this)}}();const Jg=xw;var Tw=/^(min|max)?(.+)$/,ww=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(D(tt(e.series),function(o){o&&o.data&&_t(o.data)&&Ro(o.data)}),D(tt(e.dataset),function(o){o&&o.source&&_t(o.source)&&Ro(o.source)})),e=_e(e);var a=this._optionBackup,i=function Dw(t,e,r){var a,i,n=[],o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,c=!!(l||s||o&&o.timeline);function v(h){D(e,function(d){d(h,r)})}return o?(i=o).timeline||(i.timeline=s):((c||f)&&(t.options=t.media=null),i=t),f&&W(u)&&D(u,function(h){h&&h.option&&(h.query?n.push(h):a||(a=h))}),v(i),D(l,function(h){return v(h)}),D(n,function(h){return v(h.option)}),{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}(e,r,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.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=[],_e(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var a=e.getComponent("timeline");a&&(r=_e(n[a.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)Mw(a[l].query,r,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!function Lw(t,e){return t.join(",")===e.join(",")}(o,this._currentMediaIndices)&&(s=oe(o,function(f){return _e(-1===f?i.option:a[f].option)})),this._currentMediaIndices=o,s},t}();function Mw(t,e,r){var n={width:e,height:r,aspectratio:e/r},a=!0;return D(t,function(i,o){var s=o.match(Tw);if(s&&s[1]&&s[2]){var l=s[1],u=s[2].toLowerCase();(function Aw(t,e,r){return"min"===r?t>=e:"max"===r?t<=e:t===e})(n[u],i,l)||(a=!1)}}),a}const Pw=ww;var yr=D,qi=re,ey=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function hc(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=ey.length;r<n;r++){var a=ey[r],i=e.normal,o=e.emphasis;i&&i[a]&&(t[a]=t[a]||{},t[a].normal?Be(t[a].normal,i[a]):t[a].normal=i[a],i[a]=null),o&&o[a]&&(t[a]=t[a]||{},t[a].emphasis?Be(t[a].emphasis,o[a]):t[a].emphasis=o[a],o[a]=null)}}function vt(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,a=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,Fe(t[e],n)):t[e]=n),a&&(t.emphasis=t.emphasis||{},t.emphasis[e]=a,a.focus&&(t.emphasis.focus=a.focus),a.blurScope&&(t.emphasis.blurScope=a.blurScope))}}function Yi(t){vt(t,"itemStyle"),vt(t,"lineStyle"),vt(t,"areaStyle"),vt(t,"label"),vt(t,"labelLine"),vt(t,"upperLabel"),vt(t,"edgeLabel")}function Ze(t,e){var r=qi(t)&&t[e],n=qi(r)&&r.textStyle;if(n)for(var a=0,i=rp.length;a<i;a++){var o=rp[a];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Jt(t){t&&(Yi(t),Ze(t,"label"),t.emphasis&&Ze(t.emphasis,"label"))}function en(t){return W(t)?t:t?[t]:[]}function ty(t){return(W(t)?t[0]:t)||{}}function ry(t){t&&D(Ow,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var Ow=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Bw=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],vc=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Xi(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<vc.length;r++){var n=vc[r][1];null!=e[n]&&(e[vc[r][0]]=e[n])}}function ny(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function ay(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function iy(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&iy(t[r].children,e)}function oy(t,e){(function Iw(t,e){yr(en(t.series),function(n){qi(n)&&function Rw(t){if(qi(t)){hc(t),Yi(t),Ze(t,"label"),Ze(t,"upperLabel"),Ze(t,"edgeLabel"),t.emphasis&&(Ze(t.emphasis,"label"),Ze(t.emphasis,"upperLabel"),Ze(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(hc(e),Jt(e));var r=t.markLine;r&&(hc(r),Jt(r));var n=t.markArea;n&&Jt(n);var a=t.data;if("graph"===t.type){a=a||t.nodes;var i=t.links||t.edges;if(i&&!_t(i))for(var o=0;o<i.length;o++)Jt(i[o]);D(t.categories,function(u){Yi(u)})}if(a&&!_t(a))for(o=0;o<a.length;o++)Jt(a[o]);if((e=t.markPoint)&&e.data){var s=e.data;for(o=0;o<s.length;o++)Jt(s[o])}if((r=t.markLine)&&r.data){var l=r.data;for(o=0;o<l.length;o++)W(l[o])?(Jt(l[o][0]),Jt(l[o][1])):Jt(l[o])}"gauge"===t.type?(Ze(t,"axisLabel"),Ze(t,"title"),Ze(t,"detail")):"treemap"===t.type?(vt(t.breadcrumb,"itemStyle"),D(t.levels,function(u){Yi(u)})):"tree"===t.type&&Yi(t.leaves)}}(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),yr(r,function(n){yr(en(t[n]),function(a){a&&(Ze(a,"axisLabel"),Ze(a.axisPointer,"label"))})}),yr(en(t.parallel),function(n){var a=n&&n.parallelAxisDefault;Ze(a,"axisLabel"),Ze(a&&a.axisPointer,"label")}),yr(en(t.calendar),function(n){vt(n,"itemStyle"),Ze(n,"dayLabel"),Ze(n,"monthLabel"),Ze(n,"yearLabel")}),yr(en(t.radar),function(n){Ze(n,"name"),n.name&&null==n.axisName&&(n.axisName=n.name,delete n.name),null!=n.nameGap&&null==n.axisNameGap&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),yr(en(t.geo),function(n){qi(n)&&(Jt(n),yr(en(n.regions),function(a){Jt(a)}))}),yr(en(t.timeline),function(n){Jt(n),vt(n,"label"),vt(n,"itemStyle"),vt(n,"controlStyle",!0);var a=n.data;W(a)&&D(a,function(i){re(i)&&(vt(i,"label"),vt(i,"itemStyle"))})}),yr(en(t.toolbox),function(n){vt(n,"iconStyle"),yr(n.feature,function(a){vt(a,"iconStyle")})}),Ze(ty(t.axisPointer),"label"),Ze(ty(t.tooltip).axisPointer,"label")})(t,e),t.series=tt(t.series),D(t.series,function(r){if(re(r)){var n=r.type;if("line"===n)null!=r.clipOverflow&&(r.clip=r.clipOverflow);else if("pie"===n||"gauge"===n){if(null!=r.clockWise&&(r.clockwise=r.clockWise),ny(r.label),(a=r.data)&&!_t(a))for(var i=0;i<a.length;i++)ny(a[i]);null!=r.hoverOffset&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if("gauge"===n){var o=function Ew(t,e){for(var r=e.split(","),n=t,a=0;a<r.length&&null!=(n=n&&n[r[a]]);a++);return n}(r,"pointer.color");null!=o&&function kw(t,e,r,n){for(var o,a=e.split(","),i=t,s=0;s<a.length-1;s++)null==i[o=a[s]]&&(i[o]={}),i=i[o];(n||null==i[a[s]])&&(i[a[s]]=r)}(r,"itemStyle.color",o)}else if("bar"===n){var a;if(Xi(r),Xi(r.backgroundStyle),Xi(r.emphasis),(a=r.data)&&!_t(a))for(i=0;i<a.length;i++)"object"==typeof a[i]&&(Xi(a[i]),Xi(a[i]&&a[i].emphasis))}else if("sunburst"===n){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),ay(r),iy(r.data,ay)}else"graph"===n||"sankey"===n?function Nw(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}(r):"map"===n&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&Fe(r,r.mapLocation));null!=r.hoverAnimation&&(r.emphasis=r.emphasis||{},r.emphasis&&null==r.emphasis.scale&&(r.emphasis.scale=r.hoverAnimation)),ry(r)}}),t.dataRange&&(t.visualMap=t.dataRange),D(Bw,function(r){var n=t[r];n&&(W(n)||(n=[n]),D(n,function(a){ry(a)}))})}var Ns=function(){return function t(e){this.data=e.data||(e.sourceFormat===gr?{}:[]),this.sourceFormat=e.sourceFormat||Hg,this.seriesLayoutBy=e.seriesLayoutBy||Or,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var a=r[n];null==a.type&&1===zg(this,n)&&(a.type="ordinal")}}}();function dc(t){return t instanceof Ns}function pc(t,e,r){r=r||sy(t);var n=e.seriesLayoutBy,a=function zw(t,e,r,n,a){var i,o;if(!t)return{dimensionsDefine:ly(a),startIndex:o,dimensionsDetectedCount:i};if(e===ht){var s=t;"auto"===n||null==n?uy(function(u){null!=u&&"-"!==u&&(j(u)?null==o&&(o=1):o=0)},r,s,10):o=Re(n)?n:n?1:0,!a&&1===o&&(a=[],uy(function(u,f){a[f]=null!=u?u+"":""},r,s,1/0)),i=a?a.length:r===fa?s.length:s[0]?s[0].length:null}else if(e===Qt)a||(a=function Vw(t){for(var r,e=0;e<t.length&&!(r=t[e++]););if(r)return Ae(r)}(t));else if(e===gr)a||(a=[],D(t,function(u,f){a.push(f)}));else if(e===zt){var l=Li(t[0]);i=W(l)&&l.length||1}return{startIndex:o,dimensionsDefine:ly(a),dimensionsDetectedCount:i}}(t,r,n,e.sourceHeader,e.dimensions);return new Ns({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:_e(e)})}function gc(t){return new Ns({data:t,sourceFormat:_t(t)?Jr:zt})}function Gw(t){return new Ns({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:_e(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function sy(t){var e=Hg;if(_t(t))e=Jr;else if(W(t)){0===t.length&&(e=ht);for(var r=0,n=t.length;r<n;r++){var a=t[r];if(null!=a){if(W(a)||_t(a)){e=ht;break}if(re(a)){e=Qt;break}}}}else if(re(t))for(var i in t)if(le(t,i)&&ft(t[i])){e=gr;break}return e}function ly(t){if(t){var e=ye();return oe(t,function(r,n){var a={name:(r=re(r)?r:{name:r}).name,displayName:r.displayName,type:r.type};if(null==a.name)return a;a.name+="",null==a.displayName&&(a.displayName=a.name);var i=e.get(a.name);return i?a.name+="-"+i.count++:e.set(a.name,{count:1}),a})}}function uy(t,e,r,n){if(e===fa)for(var a=0;a<r.length&&a<n;a++)t(r[a]?r[a][0]:null,a);else{var i=r[0]||[];for(a=0;a<i.length&&a<n;a++)t(i[a],a)}}function fy(t){var e=t.sourceFormat;return e===Qt||e===gr}var cy={},Uw=typeof console<"u"&&console.warn&&console.log;function hy(t,e){!function yc(t,e,r){if(Uw){if(r){if(cy[e])return;cy[e]=!0}console[t]("[ECharts] "+e)}}("error",t,e)}function wt(t){throw new Error(t)}var ca,ha,va,da,dy,py,gy=function(){function t(e,r){var n=dc(e)?e:gc(e);this._source=n;var a=this._data=n.data;n.sourceFormat===Jr&&(this._offset=0,this._dimSize=r,this._data=a),py(this,a,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=((e=t.prototype).pure=!1,void(e.persistent=!0)),t.internalField=function(){var e;py=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,v=l.dimensionsDefine;if(N(o,dy[_c(u,f)]),u===Jr)o.getItem=r,o.count=a,o.fillStorage=n;else{var d=my(u,f);o.getItem=we(d,null,s,c,v);var y=Sy(u,f);o.count=we(y,null,s,c,v)}};var r=function(o,s){s=s||[];for(var l=this._data,u=this._dimSize,f=u*(o-=this._offset),c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,v=0;v<c;v++){for(var h=u[v],d=null==h[0]?1/0:h[0],y=null==h[1]?-1/0:h[1],p=s-o,g=l[v],m=0;m<p;m++){var _=f[m*c+v];g[o+m]=_,_<d&&(d=_),_>y&&(y=_)}h[0]=d,h[1]=y}},a=function(){return this._data?this._data.length/this._dimSize:0};function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}(e={})[ht+"_"+Or]={pure:!0,appendData:i},e[ht+"_"+fa]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Qt]={pure:!0,appendData:i},e[gr]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[zt]={appendData:i},e[Jr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},dy=e}(),t;var e}(),Fs=function(t){W(t)||hy("series.data or dataset.source must be an array.")},yy=((ca={})[ht+"_"+Or]=Fs,ca[ht+"_"+fa]=Fs,ca[Qt]=Fs,ca[gr]=function(t,e){for(var r=0;r<e.length;r++)null==e[r].name&&hy("dimension name must not be null/undefined.")},ca[zt]=Fs,function(t,e,r,n){return t[n]}),Xw=((ha={})[ht+"_"+Or]=function(t,e,r,n){return t[n+e]},ha[ht+"_"+fa]=function(t,e,r,n,a){n+=e;for(var i=a||[],o=t,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},ha[Qt]=yy,ha[gr]=function(t,e,r,n,a){for(var i=a||[],o=0;o<r.length;o++){var s=r[o].name,l=null!=s?t[s]:null;i[o]=l?l[n]:null}return i},ha[zt]=yy,ha);function my(t,e){return Xw[_c(t,e)]}var _y=function(t,e,r){return t.length},Zw=((va={})[ht+"_"+Or]=function(t,e,r){return Math.max(0,t.length-e)},va[ht+"_"+fa]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},va[Qt]=_y,va[gr]=function(t,e,r){var n=r[0].name,a=null!=n?t[n]:null;return a?a.length:0},va[zt]=_y,va);function Sy(t,e){return Zw[_c(t,e)]}var mc=function(t,e,r){return t[e]},Kw=((da={})[ht]=mc,da[Qt]=function(t,e,r){return t[r]},da[gr]=mc,da[zt]=function(t,e,r){var n=Li(t);return n instanceof Array?n[e]:n},da[Jr]=mc,da);function Cy(t){return Kw[t]}function _c(t,e){return t===ht?t+"_"+e:t}function Hs(t,e,r){if(t){var n=t.getRawDataItem(e);if(null!=n){var a=t.getStore(),i=a.getSource().sourceFormat;if(null!=r){var o=t.getDimensionIndex(r),s=a.getDimensionProperty(o);return Cy(i)(n,o,s)}var l=n;return i===zt&&(l=Li(n)),l}}}var jw=/\{@(.+?)\}/g,$w=function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),a=this.getRawValue(e,r),i=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,v="series"===c,h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:i,data:s,dataType:r,value:a,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,a,i,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(e,n);return o&&(l.value=o.interpolatedValue),null!=a&&W(l.value)&&(l.value=l.value[a]),i||(i=s.getItemModel(e).get("normal"===r?["label","formatter"]:[r,"label","formatter"])),ce(i)?(l.status=r,l.dimensionIndex=a,i(l)):j(i)?nc(i,l).replace(jw,function(c,v){var h=v.length,d=v;"["===d.charAt(0)&&"]"===d.charAt(h-1)&&(d=+d.slice(1,h-1));var y=Hs(s,e,d);if(o&&W(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(y=o.interpolatedValue[p])}return null!=y?y+"":""}):void 0},t.prototype.getRawValue=function(e,r){return Hs(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function by(t){var e,r;return re(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function Zi(t){return new Qw(t)}var Qw=function(){function t(e){this._reset=(e=e||{}).reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var i,r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!n&&(i=this._plan(this.context));var c,o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;function f(m){return!(m>=1)&&(m=1),m}(o!==l||s!==u)&&(i="reset"),(this._dirty||"reset"===i)&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(this._dueEnd=r?r._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(null!=v?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(c||h<d)){var y=this._progress;if(W(y))for(var p=0;p<y.length;p++)this._doProgress(y[p],h,d,l,u);else this._doProgress(y,h,d,l,u)}this._dueIndex=d,this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:d}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,a,i){xy.reset(r,n,a,i),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:xy.next},this.context)},t.prototype._doReset=function(e){var r,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((r=this._reset(this.context))&&r.progress&&(n=r.forceFirstProgress,r=r.progress),W(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t}(),xy=function(){var t,e,r,n,a,i={reset:function(l,u,f,c){e=l,t=u,r=f,n=c,a=Math.ceil(n/r),i.next=r>1&&n>0?s:o}};return i;function o(){return e<t?e++:null}function s(){var l=e%a*r+Math.ceil(e/a),u=e>=t?null:l<n?l:e;return e++,u}}();function Gs(t,e){var r=e&&e.type;return"ordinal"===r?t:("time"===r&&!Re(t)&&null!=t&&"-"!==t&&(t=+Ur(t)),null==t||""===t?NaN:Number(t))}ye({number:function(t){return parseFloat(t)},time:function(t){return+Ur(t)},trim:function(t){return j(t)?lr(t):t}});var rD=function(){function t(e,r){var n="desc"===e;this._resultLT=n?1:-1,null==r&&(r=n?"min":"max"),this._incomparable="min"===r?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=Re(e)?e:qr(e),a=Re(r)?r:qr(r),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=j(e),l=j(r);s&&(n=l?e:0),l&&(a=s?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},t}(),aD=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return Gs(e,r)},t}();function oD(t){return Sc(t.sourceFormat)||wt(""),t.data}function sD(t){var e=t.sourceFormat,r=t.data;if(Sc(e)||wt(""),e===ht){for(var a=[],i=0,o=r.length;i<o;i++)a.push(r[i].slice());return a}if(e===Qt){for(a=[],i=0,o=r.length;i<o;i++)a.push(N({},r[i]));return a}}function lD(t,e,r){if(null!=r){if(Re(r)||!isNaN(r)&&!le(e,r))return t[r];if(le(e,r))return e[r]}}function uD(t){return _e(t)}var wy=ye();function hD(t,e,r,n){e.length||wt(""),re(t)||wt("");var o=wy.get(t.type);o||wt("");var s=oe(e,function(f){return function iD(t,e){var r=new aD,n=t.data,a=r.sourceFormat=t.sourceFormat,i=t.startIndex;t.seriesLayoutBy!==Or&&wt("");var s=[],l={},u=t.dimensionsDefine;if(u)D(u,function(y,p){var g=y.name,m={index:p,name:g,displayName:y.displayName};s.push(m),null!=g&&(le(l,g)&&wt(""),l[g]=m)});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=my(a,Or);e.__isBuiltIn&&(r.getRawDataItem=function(y){return c(n,i,s,y)},r.getRawData=we(oD,null,t)),r.cloneRawData=we(sD,null,t);var v=Sy(a,Or);r.count=we(v,null,n,i,s);var h=Cy(a);r.retrieveValue=function(y,p){var g=c(n,i,s,y);return d(g,p)};var d=r.retrieveValueFromItem=function(y,p){if(null!=y){var g=s[p];if(g)return h(y,p,g.name)}};return r.getDimensionInfo=we(lD,null,s,l),r.cloneAllDimensionInfo=we(uD,null,s),r}(f,o)});return oe(tt(o.transform({upstream:s[0],upstreamList:s,config:_e(t.config)})),function(f,c){re(f)||wt(""),f.data||wt(""),Sc(sy(f.data))||wt("");var d,y=e[0];if(y&&0===c&&!f.dimensions){var p=y.startIndex;p&&(f.data=y.data.slice(0,p).concat(f.data)),d={seriesLayoutBy:Or,sourceHeader:p,dimensions:y.metaRawOption.dimensions}}else d={seriesLayoutBy:Or,sourceHeader:0,dimensions:f.dimensions};return pc(f.data,d,null)})}function Sc(t){return t===ht||t===Qt}var Cc,zs="undefined",vD=typeof Uint32Array===zs?Array:Uint32Array,dD=typeof Uint16Array===zs?Array:Uint16Array,Dy=typeof Int32Array===zs?Array:Int32Array,My=typeof Float64Array===zs?Array:Float64Array,Ay={float:My,int:Dy,ordinal:Array,number:Array,time:My};function Qa(t){return t>65535?vD:dD}function Ja(){return[1/0,-1/0]}function pD(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Ly(t,e,r,n,a){var i=Ay[r||"float"];if(a){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new i(n)}var gD=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ye()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),i=this.defaultDimValueGetter=Cc[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],fy(a),this._dimensions=oe(r,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(e);if(null!=i){if(a[i].type===r)return i}else i=a.length;return a[i]={type:r},n.set(e,i),this._chunks[i]=new Ay[r||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],a=this._dimensions[e],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;0===o&&(i[e]=[1/0,-1/0]);for(var l=i[e],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}a.ordinalMeta=r,a.ordinalOffset=s,a.type="ordinal"},t.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,n=this.count();r.appendData(e);var a=r.count();return r.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<i;u++)Ly(n,u,a[u].type,l,!0);for(var c=[],v=s;v<l;v++)for(var h=v-s,d=0;d<i;d++){var y=Cc.arrayRows.call(this,e[h]||c,a[d].property,h,d);n[d][v]=y;var p=o[d];y<p[0]&&(p[0]=y),y>p[1]&&(p[1]=y)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=oe(o,function(m){return m.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=Ja()),Ly(i,f,c.type,r,n)}if(a.fillStorage)a.fillStorage(e,r,i,l);else for(var v=[],h=e;h<r;h++){v=a.getItem(h,v);for(var d=0;d<s;d++){var y=i[d],p=this._dimValueGetter(v,u[d],h,d);y[h]=p;var g=l[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],a=[];if(null==r){r=e,e=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=e;i=0;for(var o=a.length;i<o;i++)n.push(this.get(a[i],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var n=0;if(this._chunks[e])for(var a=0,i=this.count();a<i;a++){var o=this.get(e,a);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(i){isNaN(i)||r.push(i)});var n=r.sort(function(i,o){return i-o}),a=this.count();return 0===a?0:a%2==1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(null!=n&&n<this._count&&n===e)return e;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(r[o]<e)a=o+1;else{if(!(r[o]>e))return o;i=o-1}}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var a=this._count;if((n=r.constructor)===Array){e=new n(a);for(var i=0;i<a;i++)e[i]=r[i]}else e=new n(r.buffer,0,a)}else{var n;for(e=new(n=Qa(this._rawCount))(this.count()),i=0;i<e.length;i++)e[i]=i}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),a=n.count(),o=new(Qa(n._rawCount))(a),s=[],l=e.length,u=0,f=e[0],c=n._chunks,v=0;v<a;v++){var h=void 0,d=n.getRawIndex(v);if(0===l)h=r(v);else if(1===l)h=r(c[f][d],v);else{for(var p=0;p<l;p++)s[p]=c[e[p]][d];s[p]=v,h=r.apply(null,s)}h&&(o[u++]=d)}return u<a&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var a=Ae(e),i=a.length;if(!i)return this;var o=r.count(),l=new(Qa(r._rawCount))(o),u=0,f=a[0],c=e[f][0],v=e[f][1],h=r._chunks,d=!1;if(!r._indices){var y=0;if(1===i){for(var p=h[a[0]],g=0;g<n;g++)((m=p[g])>=c&&m<=v||isNaN(m))&&(l[u++]=y),y++;d=!0}else if(2===i){p=h[a[0]];var _=h[a[1]],S=e[a[1]][0],b=e[a[1]][1];for(g=0;g<n;g++){var C=_[g];((m=p[g])>=c&&m<=v||isNaN(m))&&(C>=S&&C<=b||isNaN(C))&&(l[u++]=y),y++}d=!0}}if(!d)if(1===i)for(g=0;g<o;g++){var x=r.getRawIndex(g);((m=h[a[0]][x])>=c&&m<=v||isNaN(m))&&(l[u++]=x)}else for(g=0;g<o;g++){for(var T=!0,w=(x=r.getRawIndex(g),0);w<i;w++){var m,L=a[w];((m=h[L][x])<e[L][0]||m>e[L][1])&&(T=!1)}T&&(l[u++]=r.getRawIndex(g))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var a=e._chunks,i=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=Ja();for(var c=0;c<s;c++){for(var v=e.getRawIndex(c),h=0;h<o;h++)l[h]=a[r[h]][v];l[o]=c;var d=n&&n.apply(null,l);if(null!=d)for("object"!=typeof d&&(i[0]=d,d=i),f=0;f<d.length;f++){var y=r[f],p=d[f],g=u[y],m=a[y];m&&(m[v]=p),p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}},t.prototype.lttbDownSample=function(e,r){var f,c,v,n=this.clone([e],!0),i=n._chunks[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),h=new(Qa(this._rawCount))(Math.min(2*(Math.ceil(o/l)+2),o));h[s++]=u;for(var d=1;d<o-1;d+=l){for(var y=Math.min(d+l,o-1),p=Math.min(d+2*l,o),g=(p+y)/2,m=0,_=y;_<p;_++){var b=i[S=this.getRawIndex(_)];isNaN(b)||(m+=b)}m/=p-y;var C=d,x=Math.min(d+l,o),T=d-1,w=i[u];f=-1,v=C;var L=-1,R=0;for(_=C;_<x;_++){var S;b=i[S=this.getRawIndex(_)],isNaN(b)?(R++,L<0&&(L=S)):(c=Math.abs((T-g)*(b-w)-(T-_)*(m-w)))>f&&(f=c,v=S)}R>0&&R<x-C&&(h[s++]=Math.min(L,v),v=Math.max(L,v)),h[s++]=v,u=v}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),a=n._chunks,i=Math.floor(1/r),o=a[e],s=this.count(),l=new(Qa(this._rawCount))(2*Math.ceil(s/i)),u=0,f=0;f<s;f+=i){var c=f,v=o[this.getRawIndex(c)],h=f,d=o[this.getRawIndex(h)],y=i;f+i>s&&(y=s-f);for(var p=0;p<y;p++){var m=o[this.getRawIndex(f+p)];m<v&&(v=m,c=f+p),m>d&&(d=m,h=f+p)}var _=this.getRawIndex(c),S=this.getRawIndex(h);c<h?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,a){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),c=i._rawExtent[e]=[1/0,-1/0],v=new(Qa(this._rawCount))(Math.ceil(f/l)),h=0,d=0;d<f;d+=l){l>f-d&&(s.length=l=f-d);for(var y=0;y<l;y++){var p=this.getRawIndex(d+y);s[y]=u[p]}var g=n(s),m=this.getRawIndex(Math.min(d+a(s,g)||0,f-1));u[m]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),v[h++]=m}return i._count=h,i._indices=v,i._updateGetRawIdx(),i},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:r(i);break;case 1:r(a[e[0]][s],i);break;case 2:r(a[e[0]][s],a[e[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[e[l]][s];u[l]=i,r.apply(null,u)}}},t.prototype.getDataExtent=function(e){var r=this._chunks[e],n=[1/0,-1/0];if(!r)return n;var o,a=this.count();if(!this._indices)return this._rawExtent[e].slice();if(o=this._extent[e])return o.slice();for(var s=(o=n)[0],l=o[1],u=0;u<a;u++){var c=r[this.getRawIndex(u)];c<s&&(s=c),c>l&&(l=c)}return this._extent[e]=o=[s,l],o},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][r]);return n},t.prototype.clone=function(e,r){var n=new t,a=this._chunks,i=e&&sr(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?pD(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=_e(this._extent),e._rawExtent=_e(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var a=0;a<n;a++)r[a]=this._indices[a]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(r,n,a,i){return Gs(r[i],this._dimensions[i])}Cc={arrayRows:e,objectRows:function(r,n,a,i){return Gs(r[n],this._dimensions[i])},keyedColumns:e,original:function(r,n,a,i){var o=r&&(null==r.value?r:r.value);return Gs(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(r,n,a,i){return r[i]}}}(),t}();const bc=gD;var mD=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var a,i,e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length;if(Vs(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),s=(u=f.getSource()).data,l=u.sourceFormat,i=[f._getVersionSign()]}else l=_t(s=o.get("data",!0))?Jr:zt,i=[];var c=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},h=se(c.seriesLayoutBy,v.seriesLayoutBy)||null,d=se(c.sourceHeader,v.sourceHeader),y=se(c.dimensions,v.dimensions);a=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||y?[pc(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:y},l)]:[]}else{var g=e;if(n){var m=this._applyTransform(r);a=m.sourceList,i=m.upstreamSignList}else a=[pc(g.get("source",!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(a,i)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);null!=a&&1!==e.length&&Py("");var o,s=[],l=[];return D(e,function(u){u.prepareSource();var f=u.getSource(a||0);null!=a&&!f&&Py(""),s.push(f),l.push(u._getVersionSign())}),n?o=function cD(t,e){var n=tt(t),a=n.length;a||wt("");for(var o=0,s=a;o<s;o++)e=hD(n[o],e),o!==s-1&&(e.length=Math.max(e.length,1));return e}(n,s):null!=a&&(o=[Gw(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){var r=this._sourceList[e=e||0];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var i=this._storeList,o=i[0];o||(o=i[0]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Vs(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new bc).initData(new gy(r,e.length),e),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Vs(e)){var r=uc(e);return r?[r.getSourceManager()]:[]}return oe(function lw(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Ei(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},_n).models:[]}(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var r,n,a,e=this._sourceHost;if(Vs(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;r=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:a}},t}();function Vs(t){return"series"===t.mainType}function Py(t){throw new Error(t)}function Ry(t){var e=t.lineHeight;return null==e?"line-height:1":"line-height:"+Ct(e+"")+"px"}function Iy(t,e){var r=t.color||be.color.tertiary,n=t.fontSize||12,a=t.fontWeight||"400",i=t.color||be.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+Ct(n+"")+"px;color:"+Ct(r)+";font-weight:"+Ct(a+""),valueStyle:"font-size:"+Ct(o+"")+"px;color:"+Ct(i)+";font-weight:"+Ct(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var SD=[0,10,20,30],CD=["","\n","\n\n","\n\n\n"];function Ki(t,e){return e.type=t,e}function xc(t){return"section"===t.type}function Ey(t){return xc(t)?bD:xD}function ky(t){if(xc(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return D(t.blocks,function(a){var i=ky(a);i>=e&&(e=i+ +(n&&(!i||xc(a)&&!a.noHeader)))}),e}return 0}function bD(t,e,r,n){var a=e.noHeader,i=function TD(t){return{html:SD[t],richText:CD[t]}}(ky(e)),o=[],s=e.blocks||[];br(!s||W(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(le(u,l)){var f=new rD(u[l],null);s.sort(function(y,p){return f.evaluate(y.sortParam,p.sortParam)})}else"seriesDesc"===l&&s.reverse()}D(s,function(y,p){var g=e.valueFormatter,m=Ey(y)(g?N(N({},t),{valueFormatter:g}):t,y,p>0?i.html:0,n);null!=m&&o.push(m)});var c="richText"===t.renderMode?o.join(i.richText):Tc(n,o.join(""),a?r:i.html);if(a)return c;var v=tc(e.header,"ordinal",t.useUTC),h=Iy(n,t.renderMode).nameStyle,d=Ry(n);return"richText"===t.renderMode?By(t,v,h)+i.richText+c:Tc(n,'<div style="'+h+";"+d+';">'+Ct(v)+"</div>"+c,r)}function xD(t,e,r,n){var a=t.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(S){return oe(S=W(S)?S:[S],function(b,C){return tc(b,W(h)?h[C]:h,u)})};if(!i||!o){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||be.color.secondary,a),v=i?"":tc(l,"ordinal",u),h=e.valueType,d=o?[]:f(e.value,e.dataIndex),y=!s||!i,p=!s&&i,g=Iy(n,a),m=g.nameStyle,_=g.valueStyle;return"richText"===a?(s?"":c)+(i?"":By(t,v,m))+(o?"":function MD(t,e,r,n,a){var i=[a];return r&&i.push({padding:[0,0,0,n?10:20],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(W(e)?e.join(" "):e,i)}(t,d,y,p,_)):Tc(n,(s?"":c)+(i?"":function wD(t,e,r){return'<span style="'+r+";"+(e?"margin-left:2px":"")+'">'+Ct(t)+"</span>"}(v,!s,m))+(o?"":function DD(t,e,r,n){return'<span style="'+(e?"float:right;margin-left:"+(r?"10px":"20px"):"")+";"+n+'">'+oe(t=W(t)?t:[t],function(o){return Ct(o)}).join(" ")+"</span>"}(d,y,p,_)),r)}}function Oy(t,e,r,n,a,i){if(t)return Ey(t)({useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,i)}function Tc(t,e,r){return'<div style="margin: '+r+"px 0 0;"+Ry(t)+';">'+e+'<div style="clear:both"></div></div>'}function By(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function Ny(t,e){return t.get("padding")??("richText"===e?[8,10]:10)}var wc=function(){function t(){this.richTextStyles={},this._nextStyleNameId=jd()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var a="richText"===n?this._generateStyleName():null,i=Pg({color:r,type:e,renderMode:n,markerId:a});return j(i)?i:(this.richTextStyles[a]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};W(r)?D(r,function(i){return N(n,i)}):N(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},t}();var wn=Ee();function Ws(t,e){return t.getName(e)||t.getId(e)}var Us=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return(0,J.C6)(e,t),e.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Zi({count:ED,reset:kD}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a),(wn(this).sourceManager=new mD(this)).prepareSource();var o=this.getInitialData(r,a);Hy(o,this),this.dataTask.context.data=o,wn(this).dataBeforeProcessed=o,Fy(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var a=Os(this),i=a?lc(r):{},o=this.subType;He.hasClass(o)&&(o+="Series"),Be(r,n.getTheme().get(this.subType)),Be(r,this.getDefaultOption()),Ju(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&Ka(r,i,a)},e.prototype.mergeOption=function(r,n){r=Be(this.option,r,!0),this.fillDataTextStyle(r.data);var a=Os(this);a&&Ka(this.option,r,a);var i=wn(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);Hy(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,wn(this).dataBeforeProcessed=o,Fy(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!_t(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&Ju(r[a],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){this.getRawData().appendData(r.data)},e.prototype.getData=function(r){var n=Dc(this);if(n){var a=n.context.data;return null!=r&&a.getLinkedData?a.getLinkedData(r):a}return wn(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=Dc(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}wn(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return ye(r)},e.prototype.getSourceManager=function(){return wn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return wn(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,n,a,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(a);null==i&&(i=1/0);var f=[],c=1/0,v=-1,h=0;return o.each(n,function(d,y){var p=l.dataToCoord(d),g=u-p,m=Math.abs(g);m<=i&&((m<c||m===c&&g>=0&&v<0)&&(c=m,v=g,h=0),g===v&&(f[h++]=y))}),f.length=h,f},e.prototype.formatTooltip=function(r,n,a){return function LD(t){var f,c,v,h,e=t.series,r=t.dataIndex,n=t.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(r),l=W(s),u=function AD(t,e){return zi(t.getData().getItemVisual(e,"style")[t.visualDrawType])}(e,r);if(o>1||l&&!o){var d=function PD(t,e,r,n,a){var i=e.getData(),o=sr(t,function(c,v,h){var d=i.getDimensionInfo(h);return c||d&&!1!==d.tooltip&&null!=d.displayName},!1),s=[],l=[],u=[];function f(c,v){var h=i.getDimensionInfo(v);!h||!1===h.otherDims.tooltip||(o?u.push(Ki("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return n.length?D(n,function(c){f(Hs(i,r,c),c)}):D(t,f),{inlineValues:s,inlineValueTypes:l,blocks:u}}(s,e,r,i,u);f=d.inlineValues,c=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var y=a.getDimensionInfo(i[0]);h=f=Hs(a,r,i[0]),c=y.type}else h=f=l?s[0]:s;var p=ef(e),g=p&&e.name||"",m=a.getName(r),_=n?g:m;return Ki("section",{header:g,noHeader:n||!p,sortParam:h,blocks:[Ki("nameValue",{markerType:"item",markerColor:u,name:_,noName:!lr(_),value:f,valueType:c,dataIndex:r})].concat(v||[])})}({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(me.node&&(!r||!r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,a){var i=this.ecModel,o=cc.prototype.getColorFromPalette.call(this,r,n,a);return o||(o=i.getColorFromPalette(r,n,a)),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,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if("series"===i||"all"===a)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var s=0;s<r.length;s++){var u=Ws(o,r[s]);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,n){for(var a=[],i=0;i<r.length;i++)a[0]=r[i],this.isSelected(r[i],n)?this.unselect(a,n):this.select(a,n)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=Ae(r),a=[],i=0;i<n.length;i++){var o=r[n[i]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return("all"===a||a[Ws(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var r=this.option.universalTransition;return!!r&&(!0===r||r&&r.enabled)},e.prototype._innerSelect=function(r,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(s&&l)if("series"===s)o.selectedMap="all";else if("multiple"===s){re(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f];u[v=Ws(r,c)]=!0,this._selectedDataIndicesMap[v]=r.getRawIndex(c)}}else if("single"===s||!0===s){var h=n[l-1],v=Ws(r,h);o.selectedMap=((a={})[v]=!0,a),this._selectedDataIndicesMap=((i={})[v]=r.getRawIndex(h),i)}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(a){var i=r.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return He.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}(He);function Fy(t){var e=t.name;ef(t)||(t.name=function ID(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return D(r,function(a){var i=e.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}(t)||e)}function ED(t){return t.model.getRawData().count()}function kD(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),OD}function OD(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Hy(t,e){D(Pv(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Ue(BD,e))})}function BD(t,e){var r=Dc(t);return r&&r.setOutputEnd((e||this).count()),e}function Dc(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(t.uid))}return n}}or(Us,$w),or(Us,cc),sp(Us,He);const Dn=Us;var Mc=function(){function t(){this.group=new Ht,this.uid=Ds("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,a){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,a){},t.prototype.updateLayout=function(e,r,n,a){},t.prototype.updateVisual=function(e,r,n,a){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t}();nf(Mc),fs(Mc);const er=Mc;var ei=ra.CMD,FD=[[],[],[]],Gy=Math.sqrt,HD=Math.atan2,Ac=Math.sqrt,qs=Math.sin,Ys=Math.cos,ji=Math.PI;function zy(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Lc(t,e){return(t[0]*e[0]+t[1]*e[1])/(zy(t)*zy(e))}function Vy(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Lc(t,e))}function Wy(t,e,r,n,a,i,o,s,l,u,f){var c=l*(ji/180),v=Ys(c)*(t-r)/2+qs(c)*(e-n)/2,h=-1*qs(c)*(t-r)/2+Ys(c)*(e-n)/2,d=v*v/(o*o)+h*h/(s*s);d>1&&(o*=Ac(d),s*=Ac(d));var y=(a===i?-1:1)*Ac((o*o*(s*s)-o*o*(h*h)-s*s*(v*v))/(o*o*(h*h)+s*s*(v*v)))||0,p=y*o*h/s,g=y*-s*v/o,m=(t+r)/2+Ys(c)*p-qs(c)*g,_=(e+n)/2+qs(c)*p+Ys(c)*g,S=Vy([1,0],[(v-p)/o,(h-g)/s]),b=[(v-p)/o,(h-g)/s],C=[(-1*v-p)/o,(-1*h-g)/s],x=Vy(b,C);if(Lc(b,C)<=-1&&(x=ji),Lc(b,C)>=1&&(x=0),x<0){var T=Math.round(x/ji*1e6)/1e6;x=2*ji+T%2*ji}f.addData(u,m,_,o,s,S,x,c,i)}var WD=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,UD=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Uy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,J.C6)(e,t),e.prototype.applyTransform=function(r){},e}(Ne);function qy(t){return null!=t.setData}function Yy(t,e){var r=function qD(t){var e=new ra;if(!t)return e;var o,r=0,n=0,a=r,i=n,s=ra.CMD,l=t.match(WD);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),v=void 0,h=f.match(UD)||[],d=h.length,y=0;y<d;y++)h[y]=parseFloat(h[y]);for(var p=0;p<d;){var g=void 0,m=void 0,_=void 0,S=void 0,b=void 0,C=void 0,x=void 0,T=r,w=n,L=void 0,R=void 0;switch(c){case"l":r+=h[p++],n+=h[p++],e.addData(v=s.L,r,n);break;case"L":r=h[p++],n=h[p++],e.addData(v=s.L,r,n);break;case"m":r+=h[p++],n+=h[p++],e.addData(v=s.M,r,n),a=r,i=n,c="l";break;case"M":r=h[p++],n=h[p++],e.addData(v=s.M,r,n),a=r,i=n,c="L";break;case"h":r+=h[p++],e.addData(v=s.L,r,n);break;case"H":r=h[p++],e.addData(v=s.L,r,n);break;case"v":n+=h[p++],e.addData(v=s.L,r,n);break;case"V":n=h[p++],e.addData(v=s.L,r,n);break;case"C":e.addData(v=s.C,h[p++],h[p++],h[p++],h[p++],h[p++],h[p++]),r=h[p-2],n=h[p-1];break;case"c":e.addData(v=s.C,h[p++]+r,h[p++]+n,h[p++]+r,h[p++]+n,h[p++]+r,h[p++]+n),r+=h[p-2],n+=h[p-1];break;case"S":g=r,m=n,L=e.len(),R=e.data,o===s.C&&(g+=r-R[L-4],m+=n-R[L-3]),T=h[p++],w=h[p++],r=h[p++],n=h[p++],e.addData(v=s.C,g,m,T,w,r,n);break;case"s":g=r,m=n,L=e.len(),R=e.data,o===s.C&&(g+=r-R[L-4],m+=n-R[L-3]),T=r+h[p++],w=n+h[p++],r+=h[p++],n+=h[p++],e.addData(v=s.C,g,m,T,w,r,n);break;case"Q":T=h[p++],w=h[p++],r=h[p++],n=h[p++],e.addData(v=s.Q,T,w,r,n);break;case"q":T=h[p++]+r,w=h[p++]+n,r+=h[p++],n+=h[p++],e.addData(v=s.Q,T,w,r,n);break;case"T":g=r,m=n,L=e.len(),R=e.data,o===s.Q&&(g+=r-R[L-4],m+=n-R[L-3]),r=h[p++],n=h[p++],e.addData(v=s.Q,g,m,r,n);break;case"t":g=r,m=n,L=e.len(),R=e.data,o===s.Q&&(g+=r-R[L-4],m+=n-R[L-3]),r+=h[p++],n+=h[p++],e.addData(v=s.Q,g,m,r,n);break;case"A":_=h[p++],S=h[p++],b=h[p++],C=h[p++],x=h[p++],Wy(T=r,w=n,r=h[p++],n=h[p++],C,x,_,S,b,v=s.A,e);break;case"a":_=h[p++],S=h[p++],b=h[p++],C=h[p++],x=h[p++],Wy(T=r,w=n,r+=h[p++],n+=h[p++],C,x,_,S,b,v=s.A,e)}}("z"===c||"Z"===c)&&(e.addData(v=s.Z),r=a,n=i),o=v}return e.toStatic(),e}(t),n=N({},e);return n.buildPath=function(a){var o,i=qy(a);i&&a.canSave()?(a.appendPath(r),(o=a.getContext())&&a.rebuildPath(o,1)):(o=i?a.getContext():a)&&r.rebuildPath(o,1)},n.applyTransform=function(a){(function GD(t,e){if(e){var a,i,o,s,l,u,r=t.data,n=t.len(),f=ei.M,c=ei.C,v=ei.L,h=ei.R,d=ei.A,y=ei.Q;for(o=0,s=0;o<n;){switch(a=r[o++],s=o,i=0,a){case f:case v:i=1;break;case c:i=3;break;case y:i=2;break;case d:var p=e[4],g=e[5],m=Gy(e[0]*e[0]+e[1]*e[1]),_=Gy(e[2]*e[2]+e[3]*e[3]),S=HD(-e[1]/_,e[0]/m);r[o]*=m,r[o++]+=p,r[o]*=_,r[o++]+=g,r[o++]*=m,r[o++]*=_,r[o++]+=S,r[o++]+=S,s=o+=2;break;case h:u[0]=r[o++],u[1]=r[o++],Ot(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Ot(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<i;l++){var b=FD[l];b[0]=r[o++],b[1]=r[o++],Ot(b,b,e),r[s++]=b[0],r[s++]=b[1]}}t.increaseVersion()}})(r,a),this.dirtyShape()},n}var KD=function(){return function t(){this.cx=0,this.cy=0,this.r=0}}(),Xy=function(t){function e(r){return t.call(this,r)||this}return(0,J.C6)(e,t),e.prototype.getDefaultShape=function(){return new KD},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,2*Math.PI)},e}(Ne);Xy.prototype.type="circle";const Xs=Xy;var jD=function(){return function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}}(),Zy=function(t){function e(r){return t.call(this,r)||this}return(0,J.C6)(e,t),e.prototype.getDefaultShape=function(){return new jD},e.prototype.buildPath=function(r,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,f=l*a;r.moveTo(i-s,o),r.bezierCurveTo(i-s,o-f,i-u,o-l,i,o-l),r.bezierCurveTo(i+u,o-l,i+s,o-f,i+s,o),r.bezierCurveTo(i+s,o+f,i+u,o+l,i,o+l),r.bezierCurveTo(i-u,o+l,i-s,o+f,i-s,o),r.closePath()},e}(Ne);Zy.prototype.type="ellipse";const Pc=Zy;var Ky=Math.PI,Rc=2*Ky,pa=Math.sin,ti=Math.cos,$D=Math.acos,dt=Math.atan2,jy=Math.abs,$i=Math.sqrt,Qi=Math.max,Br=Math.min,mr=1e-4;function Zs(t,e,r,n,a,i,o){var s=t-r,l=e-n,u=(o?i:-i)/$i(s*s+l*l),f=u*l,c=-u*s,v=t+f,h=e+c,d=r+f,y=n+c,p=(v+d)/2,g=(h+y)/2,m=d-v,_=y-h,S=m*m+_*_,b=a-i,C=v*y-d*h,x=(_<0?-1:1)*$i(Qi(0,b*b*S-C*C)),T=(C*_-m*x)/S,w=(-C*m-_*x)/S,L=(C*_+m*x)/S,R=(-C*m+_*x)/S,E=T-p,M=w-g,k=L-p,B=R-g;return E*E+M*M>k*k+B*B&&(T=L,w=R),{cx:T,cy:w,x0:-f,y0:-c,x1:T*(a/b-1),y1:w*(a/b-1)}}var tM=function(){return function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}}(),$y=function(t){function e(r){return t.call(this,r)||this}return(0,J.C6)(e,t),e.prototype.getDefaultShape=function(){return new tM},e.prototype.buildPath=function(r,n){!function eM(t,e){var r,n=Qi(e.r,0),a=Qi(e.r0||0,0),i=n>0;if(i||a>0){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var f=e.cx,c=e.cy,v=!!e.clockwise,h=jy(u-l),d=h>Rc&&h%Rc;if(d>mr&&(h=d),n>mr)if(h>Rc-mr)t.moveTo(f+n*ti(l),c+n*pa(l)),t.arc(f,c,n,l,u,!v),a>mr&&(t.moveTo(f+a*ti(u),c+a*pa(u)),t.arc(f,c,a,u,l,v));else{var y=void 0,p=void 0,g=void 0,m=void 0,_=void 0,S=void 0,b=void 0,C=void 0,x=void 0,T=void 0,w=void 0,L=void 0,R=void 0,E=void 0,M=void 0,k=void 0,B=n*ti(l),F=n*pa(l),K=a*ti(u),Z=a*pa(u),U=h>mr;if(U){var Y=e.cornerRadius;Y&&(r=function JD(t){var e;if(W(t)){var r=t.length;if(!r)return t;e=1===r?[t[0],t[0],0,0]:2===r?[t[0],t[0],t[1],t[1]]:3===r?t.concat(t[2]):t}else e=[t,t,t,t];return e}(Y),y=r[0],p=r[1],g=r[2],m=r[3]);var q=jy(n-a)/2;if(_=Br(q,g),S=Br(q,m),b=Br(q,y),C=Br(q,p),w=x=Qi(_,S),L=T=Qi(b,C),(x>mr||T>mr)&&(R=n*ti(u),E=n*pa(u),M=a*ti(l),k=a*pa(l),h<Ky)){var z=function QD(t,e,r,n,a,i,o,s){var l=r-t,u=n-e,f=o-a,c=s-i,v=c*l-f*u;if(!(v*v<mr))return[t+(v=(f*(e-i)-c*(t-a))/v)*l,e+v*u]}(B,F,M,k,R,E,K,Z);if(z){var ge=B-z[0],Ve=F-z[1],At=R-z[0],Vt=E-z[1],Lt=1/pa($D((ge*At+Ve*Vt)/($i(ge*ge+Ve*Ve)*$i(At*At+Vt*Vt)))/2),pt=$i(z[0]*z[0]+z[1]*z[1]);w=Br(x,(n-pt)/(Lt+1)),L=Br(T,(a-pt)/(Lt-1))}}}if(U)if(w>mr){var ut=Br(g,w),Ke=Br(m,w),de=Zs(M,k,B,F,n,ut,v),xe=Zs(R,E,K,Z,n,Ke,v);t.moveTo(f+de.cx+de.x0,c+de.cy+de.y0),w<x&&ut===Ke?t.arc(f+de.cx,c+de.cy,w,dt(de.y0,de.x0),dt(xe.y0,xe.x0),!v):(ut>0&&t.arc(f+de.cx,c+de.cy,ut,dt(de.y0,de.x0),dt(de.y1,de.x1),!v),t.arc(f,c,n,dt(de.cy+de.y1,de.cx+de.x1),dt(xe.cy+xe.y1,xe.cx+xe.x1),!v),Ke>0&&t.arc(f+xe.cx,c+xe.cy,Ke,dt(xe.y1,xe.x1),dt(xe.y0,xe.x0),!v))}else t.moveTo(f+B,c+F),t.arc(f,c,n,l,u,!v);else t.moveTo(f+B,c+F);a>mr&&U?L>mr?(ut=Br(y,L),de=Zs(K,Z,R,E,a,-(Ke=Br(p,L)),v),xe=Zs(B,F,M,k,a,-ut,v),t.lineTo(f+de.cx+de.x0,c+de.cy+de.y0),L<T&&ut===Ke?t.arc(f+de.cx,c+de.cy,L,dt(de.y0,de.x0),dt(xe.y0,xe.x0),!v):(Ke>0&&t.arc(f+de.cx,c+de.cy,Ke,dt(de.y0,de.x0),dt(de.y1,de.x1),!v),t.arc(f,c,a,dt(de.cy+de.y1,de.cx+de.x1),dt(xe.cy+xe.y1,xe.cx+xe.x1),v),ut>0&&t.arc(f+xe.cx,c+xe.cy,ut,dt(xe.y1,xe.x1),dt(xe.y0,xe.x0),!v))):(t.lineTo(f+K,c+Z),t.arc(f,c,a,u,l,v)):t.lineTo(f+K,c+Z)}else t.moveTo(f,c);t.closePath()}}}(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ne);$y.prototype.type="sector";const Ji=$y;var rM=function(){return function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}}(),Qy=function(t){function e(r){return t.call(this,r)||this}return(0,J.C6)(e,t),e.prototype.getDefaultShape=function(){return new rM},e.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=2*Math.PI;r.moveTo(a+n.r,i),r.arc(a,i,n.r,0,o,!1),r.moveTo(a+n.r0,i),r.arc(a,i,n.r0,0,o,!0)},e}(Ne);Qy.prototype.type="ring";const Ic=Qy;function Jy(t,e,r){var n=e.smooth,a=e.points;if(a&&a.length>=2){if(n){var i=function nM(t,e,r,n){var l,u,f,c,a=[],i=[],o=[],s=[];if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var v=0,h=t.length;v<h;v++)cn(f,f,t[v]),hn(c,c,t[v]);cn(f,f,n[0]),hn(c,c,n[1])}for(v=0,h=t.length;v<h;v++){var d=t[v];if(r)l=t[v?v-1:h-1],u=t[(v+1)%h];else{if(0===v||v===h-1){a.push(Iv(t[v]));continue}l=t[v-1],u=t[v+1]}Ev(i,u,l),Io(i,i,e);var y=Eo(d,l),p=Eo(d,u),g=y+p;0!==g&&(y/=g,p/=g),Io(o,i,-y),Io(s,i,p);var m=tu([],d,o),_=tu([],d,s);n&&(hn(m,m,f),cn(m,m,c),hn(_,_,f),cn(_,_,c)),a.push(m),a.push(_)}return r&&a.push(a.shift()),a}(a,n,r,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(r?o:o-1);s++){var l=i[2*s],u=i[2*s+1],f=a[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(a[0][0],a[0][1]),s=1;for(var c=a.length;s<c;s++)t.lineTo(a[s][0],a[s][1])}r&&t.closePath()}}var aM=function(){return function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}}(),em=function(t){function e(r){return t.call(this,r)||this}return(0,J.C6)(e,t),e.prototype.getDefaultShape=function(){return new aM},e.prototype.buildPath=function(r,n){Jy(r,n,!0)},e}(Ne);em.prototype.type="polygon";const Ec=em;var iM=function(){return function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}}(),tm=function(t){function e(r){return t.call(this,r)||this}return(0,J.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new iM},e.prototype.buildPath=function(r,n){Jy(r,n,!1)},e}(Ne);tm.prototype.type="polyline";const eo=tm;var oM={},sM=function(){return function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}}(),rm=function(t){function e(r){return t.call(this,r)||this}return(0,J.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new sM},e.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=Lp(oM,n,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var u=n.percent;0!==u&&(r.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e}(Ne);rm.prototype.type="line";const ri=rm;var Et=[],lM=function(){return function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}}();function nm(t,e,r){return null!=t.cpx2||null!=t.cpy2?[(r?id:ot)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?id:ot)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?ud:ct)(t.x1,t.cpx1,t.x2,e),(r?ud:ct)(t.y1,t.cpy1,t.y2,e)]}var am=function(t){function e(r){return t.call(this,r)||this}return(0,J.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new lM},e.prototype.buildPath=function(r,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,v=n.percent;0!==v&&(r.moveTo(a,i),null==f||null==c?(v<1&&(Yo(a,l,o,v,Et),l=Et[1],o=Et[2],Yo(i,u,s,v,Et),u=Et[1],s=Et[2]),r.quadraticCurveTo(l,u,o,s)):(v<1&&(qo(a,l,f,o,v,Et),l=Et[1],f=Et[2],o=Et[3],qo(i,u,c,s,v,Et),u=Et[1],c=Et[2],s=Et[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return nm(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=nm(this.shape,r,!0);return kv(n,n)},e}(Ne);am.prototype.type="bezier-curve";const kc=am;var uM=function(){return function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),im=function(t){function e(r){return t.call(this,r)||this}return(0,J.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new uM},e.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+a,c*o+i),r.arc(a,i,o,s,l,!u)},e}(Ne);im.prototype.type="arc";const Ks=im;var fM=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type="compound",r}return(0,J.C6)(e,t),e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),a=0;a<r.length;a++)n=n||r[a].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<r.length;a++)r[a].path||r[a].createPathProxy(),r[a].path.setScale(n[0],n[1],r[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(r,a[i].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ne.prototype.getBoundingRect.call(this)},e}(Ne);const om=fM;var cM=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t}();const sm=cM;var hM=function(t){function e(r,n,a,i,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return(0,J.C6)(e,t),e}(sm);const lm=hM;var vM=function(t){function e(r,n,a,i,o){var s=t.call(this,i)||this;return s.x=r??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return(0,J.C6)(e,t),e}(sm);const um=vM;var Oc=Math.min,dM=Math.max,js=Math.abs,ga=[0,0],ya=[0,0],nt=Uv(),$s=nt.minTv,Qs=nt.maxTv,pM=function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new ve;for(n=0;n<2;n++)this._axes[n]=new ve;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,a=this._axes,i=e.x,o=e.y,s=i+e.width,l=o+e.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),r)for(var u=0;u<4;u++)n[u].transform(r);for(ve.sub(a[0],n[1],n[0]),ve.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize(),u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},t.prototype.intersect=function(e,r,n){var a=!0,i=!r;return r&&ve.set(r,0,0),nt.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(a=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(a=!1,i)||!i&&!nt.negativeSize&&ve.copy(r,a?nt.useDir?nt.dirMinTv:$s:Qs),a},t.prototype._intersectCheckOneSide=function(e,r,n,a){for(var i=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,ga),e._getProjMinMaxOnAxis(o,r._corners,ya),nt.negativeSize||ga[1]<ya[0]||ga[0]>ya[1]){if(i=!1,nt.negativeSize||n)return i;var l=js(ya[0]-ga[1]),u=js(ga[0]-ya[1]);Oc(l,u)>Qs.len()&&ve.scale(Qs,s,l<u?-l*a:u*a)}else n||(l=js(ya[0]-ga[1]),u=js(ga[0]-ya[1]),(nt.useDir||Oc(l,u)<$s.len())&&((l<u||!nt.bidirectional)&&(ve.scale($s,s,l*a),nt.useDir&&nt.calcDirMTV()),(l>=u||!nt.bidirectional)&&(ve.scale($s,s,-u*a),nt.useDir&&nt.calcDirMTV())))}return i},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var a=this._axes[e],i=this._origin,o=r[0].dot(a)+i[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(a)+i[e];s=Oc(f,s),l=dM(f,l)}n[0]=s+nt.touchThreshold,n[1]=l-nt.touchThreshold,nt.negativeSize=n[1]<n[0]},t}();const fm=pM;var gM=[],yM=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return(0,J.C6)(e,t),e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var a=0;a<r.length;a++)this.addDisplayable(r[a],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++)(n=this._displayables[r]).parent=this,n.update(),n.parent=null;for(r=0;r<this._temporaryDisplayables.length;r++){var n;(n=this._temporaryDisplayables[r]).parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new pe(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(gM)),r.union(i)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n);if(this.getBoundingRect().contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++)if(this._displayables[o].contain(r,n))return!0;return!1},e}(jn);const cm=yM;var Bc={},hm=["x","y"],vm=["width","height"];function dm(t){return Ne.extend(t)}function pm(t,e){return function XD(t,e){var r=Yy(t,e);return function(a){function i(o){var s=a.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return(0,J.C6)(i,a),i}(Uy)}(t,e)}function tr(t,e){Bc[t]=e}function Nc(t){if(Bc.hasOwnProperty(t))return Bc[t]}function Js(t,e,r,n){var a=function YD(t,e){return new Uy(Yy(t,e))}(t,e);return r&&("center"===n&&(r=gm(r,a.getBoundingRect())),Hc(a,r)),a}function Fc(t,e,r){var n=new xn({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){"center"===r&&n.setStyle(gm(e,{width:a.width,height:a.height}))}});return n}function gm(t,e){var a,r=e.width/e.height,n=t.height*r;return a=n<=t.width?t.height:(n=t.width)/r,{x:t.x+t.width/2-n/2,y:t.y+t.height/2-a/2,width:n,height:a}}var ym=function ZD(t,e){for(var r=[],n=t.length,a=0;a<n;a++)r.push(t[a].getUpdatedPathProxy(!0));var o=new Ne(e);return o.createPathProxy(),o.buildPath=function(s){if(qy(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o};function Hc(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function Gc(t,e){return Lp(t,t,{lineWidth:e}),t}function _M(t,e){return Pp(t,t,e),t}var SM=aa;function mm(t,e){for(var r=pi([]);t&&t!==e;)Nn(r,t.getLocalTransform(),r),t=t.parent;return r}function zc(t,e,r){return e&&!ft(e)&&(e=as.getLocalTransform(e)),r&&(e=Fn([],e)),Ot([],t,e)}function CM(t,e,r){var n=0===e[4]||0===e[5]||0===e[0]?1:Dr(2*e[4]/e[0]),a=0===e[4]||0===e[5]||0===e[2]?1:Dr(2*e[4]/e[2]),i=["left"===t?-n:"right"===t?n:0,"top"===t?-a:"bottom"===t?a:0];return i=zc(i,e,r),Dr(i[0])>Dr(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function _m(t){return!t.isGroup}function xM(t,e,r){if(t&&e){var i=function n(o){var s={};return o.traverse(function(l){_m(l)&&l.anid&&(s[l.anid]=l)}),s}(t);e.traverse(function(o){if(_m(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),pr(o,l,r,De(o).dataIndex)}}})}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return function bM(t){return null!=t.shape}(o)&&(s.shape=_e(o.shape)),s}}function Sm(t,e){return oe(t,function(r){var n=r[0];n=dr(n,e.x),n=Mi(n,e.x+e.width);var a=r[1];return a=dr(a,e.y),[n,a=Mi(a,e.y+e.height)]})}function Cm(t,e){var r=dr(t.x,e.x),n=Mi(t.x+t.width,e.x+e.width),a=dr(t.y,e.y),i=Mi(t.y+t.height,e.y+e.height);if(n>=r&&i>=a)return{x:r,y:a,width:n-r,height:i-a}}function el(t,e,r){var n=N({rectHover:!0},e),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(a.image=t.slice(8),Fe(a,r),new xn(n)):Js(t.replace("path://",""),n,r,"center")}function TM(t,e,r,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(bm(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function bm(t,e,r,n,a,i,o,s){var l=r-t,u=n-e,f=o-a,c=s-i,v=Vc(f,c,l,u);if(function wM(t){return t<=1e-6&&t>=-1e-6}(v))return!1;var h=t-a,d=e-i,y=Vc(h,d,l,u)/v;if(y<0||y>1)return!1;var p=Vc(h,d,f,c)/v;return!(p<0||p>1)}function Vc(t,e,r,n){return t*n-r*e}function Wc(t,e,r,n,a){return null==e||(Re(e)?Ge[0]=Ge[1]=Ge[2]=Ge[3]=e:(Ge[0]=e[0],Ge[1]=e[1],Ge[2]=e[2],Ge[3]=e[3]),n&&(Ge[0]=dr(0,Ge[0]),Ge[1]=dr(0,Ge[1]),Ge[2]=dr(0,Ge[2]),Ge[3]=dr(0,Ge[3])),r&&(Ge[0]=-Ge[0],Ge[1]=-Ge[1],Ge[2]=-Ge[2],Ge[3]=-Ge[3]),xm(t,Ge,"x","width",3,1,a&&a[0]||0),xm(t,Ge,"y","height",0,2,a&&a[1]||0)),t}var Ge=[0,0,0,0];function xm(t,e,r,n,a,i,o){var s=e[i]+e[a],l=t[n];t[n]+=s,o=dr(0,Mi(o,l)),t[n]<o?(t[n]=o,t[r]+=e[a]>=0?-e[a]:e[i]>=0?l+e[i]:Dr(s)>1e-8?(l-o)*e[a]/s:0):t[r]-=e[a]}function to(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,a=j(e)?{formatter:e}:e,i=r.mainType,o=r.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=t.formatterParamsExtra;l&&D(Ae(l),function(f){le(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=De(t.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:Fe({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function Uc(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Tm(t,e){if(t)if(W(t))for(var r=0;r<t.length;r++)Uc(t[r],e);else Uc(t,e)}function qc(t){return!t||Dr(t[1])<tl&&Dr(t[2])<tl||Dr(t[0])<tl&&Dr(t[3])<tl}var tl=1e-5;function ro(t,e){return t?pe.copy(t,e):e.clone()}function Yc(t,e){return e?No(t||[1,0,0,1,0,0],e):void 0}function wm(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function DM(t){var e=-1/0,r=1/0;function n(i){if(i&&!i.isGroup){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)a(i.states[o[s]]);a(i)}}function a(i){if(i){var o=i.z2;o>e&&(e=o),o<r&&(r=o)}}return Uc(t,function(i){n(i),n(i.getTextContent()),n(i.getTextGuideLine())}),r>e&&(r=e=0),{min:r,max:e}}function Dm(t,e,r){Mm(t,e,r,-1/0)}function Mm(t,e,r,n){if(t.ignoreModelZ)return n;var a=t.getTextContent(),i=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)n=dr(Mm(s[l],e,r,n),n);else t.z=e,t.zlevel=r,n=dr(t.z2||0,n);if(a&&(a.z=e,a.zlevel=r,isFinite(n)&&(a.z2=n+2)),i){var u=t.textGuideLineConfig;i.z=e,i.zlevel=r,isFinite(n)&&(i.z2=n+(u&&u.showAbove?1:-1))}return n}tr("circle",Xs),tr("ellipse",Pc),tr("sector",Ji),tr("ring",Ic),tr("polygon",Ec),tr("polyline",eo),tr("rect",st),tr("line",ri),tr("bezierCurve",kc),tr("arc",Ks);var Am=Ee(),MM=function ND(){var t=Ee();return function(e){var r=t(e),n=e.pipelineContext,a=!!r.large,i=!!r.progressiveRender,o=r.large=!(!n||!n.large),s=r.progressiveRender=!(!n||!n.progressiveRender);return(a!==o||i!==s)&&"reset"}}(),Xc=function(){function t(){this.group=new Ht,this.uid=Ds("viewChart"),this.renderTask=Zi({plan:AM,reset:LM}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,a){},t.prototype.highlight=function(e,r,n,a){var i=e.getData(a&&a.dataType);i&&Pm(i,a,"emphasis")},t.prototype.downplay=function(e,r,n,a){var i=e.getData(a&&a.dataType);i&&Pm(i,a,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.updateLayout=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.updateVisual=function(e,r,n,a){this.render(e,r,n,a)},t.prototype.eachRendered=function(e){Tm(this.group,e)},t.markUpdateMethod=function(e,r){Am(e).updateMethod=r},t.protoInitialize=void(t.prototype.type="chart"),t}();function Lm(t,e,r){t&&kf(t)&&("emphasis"===e?Lf:Pf)(t,r)}function Pm(t,e,r){var n=Ii(t,e),a=e&&null!=e.highlightKey?function l1(t){var e=Wp[t];return null==e&&Vp<=32&&(e=Wp[t]=Vp++),e}(e.highlightKey):null;null!=n?D(tt(n),function(i){Lm(t.getItemGraphicEl(i),r,a)}):t.eachItemGraphicEl(function(i){Lm(i,r,a)})}function AM(t){return MM(t.model)}function LM(t){var e=t.model,r=t.ecModel,n=t.api,a=t.payload,i=e.pipelineContext.progressiveRender,o=t.view,s=a&&Am(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](e,r,n,a),PM[l]}nf(Xc),fs(Xc);var PM={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)}}};const tn=Xc;var rl="\0__throttleOriginMethod",Rm="\0__throttleRate",Im="\0__throttleType";function Zc(t,e,r){var n,s,l,u,f,a=0,i=0,o=null;function c(){i=(new Date).getTime(),o=null,t.apply(l,u||[])}e=e||0;var v=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];n=(new Date).getTime(),l=this,u=h;var y=f||e,p=f||r;f=null,s=n-(p?a:i)-y,clearTimeout(o),p?o=setTimeout(c,y):s>=0?c():o=setTimeout(c,-s),a=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){f=h},v}function Em(t,e,r,n){var a=t[e];if(a){var i=a[rl]||a;if(a[Rm]!==r||a[Im]!==n){if(null==r||!n)return t[e]=i;(a=t[e]=Zc(i,r,"debounce"===n))[rl]=i,a[Im]=n,a[Rm]=r}return a}}function Kc(t,e){var r=t[e];r&&r[rl]&&(r.clear&&r.clear(),t[e]=r[rl])}var km=Ee(),Om={itemStyle:ki(mg,!0),lineStyle:ki(yg,!0)},RM={lineStyle:"stroke",itemStyle:"fill"};function Bm(t,e){return t.visualStyleMapper||Om[e]||(console.warn("Unknown style type '"+e+"'."),Om.itemStyle)}function Nm(t,e){return t.visualDrawType||RM[e]||(console.warn("Unknown style type '"+e+"'."),"fill")}var IM={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",a=t.getModel(n),o=Bm(t,n)(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Nm(t,n),u=o[l],f=ce(u)?u:null;if(!o[l]||f||"auto"===o.fill||"auto"===o.stroke){var v=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=v,r.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||ce(o.fill)?v:o.fill,o.stroke="auto"===o.stroke||ce(o.stroke)?v:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var y=t.getDataParams(d),p=N({},o);p[l]=f(y),h.setItemVisual(d,"style",p)}}}},no=new Qe,EM={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",a=Bm(t,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){no.option=l[n];var u=a(no);N(o.ensureUniqueItemVisual(s,"style"),u),no.option.decal&&(o.setItemVisual(s,"decal",no.option.decal),no.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},kM={performRawSeries:!0,overallReset:function(t){var e=ye();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var a=r.type+"-"+n,i=e.get(a);i||e.set(a,i={}),km(r).scope=i}}),t.eachSeries(function(r){if(!r.isColorBySeries()&&!t.isSeriesFiltered(r)){var n=r.getRawData(),a={},i=r.getData(),o=km(r).scope,l=Nm(r,r.visualStyleAccessPath||"itemStyle");i.each(function(u){var f=i.getRawIndex(u);a[f]=u}),n.each(function(u){var f=a[u];if(i.getItemVisual(f,"colorFromPalette")){var v=i.ensureUniqueItemVisual(f,"style"),h=n.getName(u)||u+"",d=n.count();v[l]=r.getColorFromPalette(h,o,d)}})}})}},nl=Math.PI,BM=function(){function t(e,r,n,a){this._stageTaskMap=ye(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,o=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,s=a&&a.modDataCount;return{step:o,modBy:null!=s?Math.ceil(s/o):null,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.getData().count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&i>=n.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l="mod"===e.get("progressiveChunkMode")?i:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=ye();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),r._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;D(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{});br(!(a.reset&&a.overallReset),""),a.reset&&this._createSeriesStageTask(a,i,r,n),a.overallReset&&this._createOverallStageTask(a,i,r,n)},this)},t.prototype.prepareView=function(e,r,n,a){var i=e.renderTask,o=i.context;o.model=r,o.ecModel=n,o.api=a,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,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,a){a=a||{};var i=!1,o=this;function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}D(e,function(l,u){if(!a.visualType||a.visualType===l.visualType){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,v=f.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(p){s(a,p)&&(p.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,n);var y=o.getPerformArgs(v,a.block);d.each(function(p){p.perform(y)}),v.perform(y)&&(i=!0)}else c&&c.each(function(p,g){s(a,p)&&p.dirty();var m=o.getPerformArgs(p,a.block);m.skip=!l.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(m)&&(i=!0)})}}),this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.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){"remain"!==r&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,a){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ye(),l=e.seriesType,u=e.getTargetSeries;function f(c){var v=c.uid,h=s.set(v,o&&o.get(v)||Zi({plan:zM,reset:VM,count:UM}));h.context={model:c,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(c,h)}e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,a).each(f)},t.prototype._createOverallStageTask=function(e,r,n,a){var i=this,o=r.overallTask=r.overallTask||Zi({reset:NM});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ye(),u=e.seriesType,f=e.getTargetSeries,c=!0,v=!1;function d(y){var p=y.uid,g=l.set(p,s&&s.get(p)||(v=!0,Zi({reset:FM,onDirty:GM})));g.context={model:y,overallProgress:c},g.agent=o,g.__block=c,i._pipe(y,g)}br(!e.createOnAllSeries,""),u?n.eachRawSeriesByType(u,d):f?f(n,a).each(d):(c=!1,D(n.getSeries(),d)),v&&o.dirty()},t.prototype._pipe=function(e,r){var a=this._pipelineMap.get(e.uid);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},t.wrapStageHandler=function(e,r){return ce(e)&&(e={overallReset:e,seriesType:qM(e)}),e.uid=Ds("stageHandler"),r&&(e.visualType=r),e},t}();function NM(t){t.overallReset(t.ecModel,t.api,t.payload)}function FM(t){return t.overallProgress&&HM}function HM(){this.agent.dirty(),this.getDownstream().dirty()}function GM(){this.agent&&this.agent.dirty()}function zM(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function VM(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=tt(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?oe(e,function(r,n){return Fm(n)}):WM}var WM=Fm(0);function Fm(t){return function(e,r){var n=r.data,a=r.resetDefines[t];if(a&&a.dataEach)for(var i=e.start;i<e.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(e,n)}}function UM(t){return t.data.count()}function qM(t){al=null;try{t(ao,Hm)}catch{}return al}var al,ao={},Hm={};function Gm(t,e){for(var r in e.prototype)t[r]=St}Gm(ao,Qg),Gm(Hm,Jg),ao.eachSeriesByType=ao.eachRawSeriesByType=function(t){al=t},ao.eachComponent=function(t){"series"===t.mainType&&t.subType&&(al=t.subType)};const zm=BM;var G=be.darkColor,io=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:{}}},Vm={label:{color:G.secondary},itemStyle:{borderColor:G.borderTint},dividerLineStyle:{color:G.border}},Wm={darkMode:!0,color:G.theme,backgroundColor:G.background,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}},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:Vm,y:Vm,backgroundColor:{borderColor:G.axisLine},body:{itemStyle:{borderColor:G.borderTint}}},timeAxis:io(),logAxis:io(),valueAxis:io(),categoryAxis:io(),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=io();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}}}};Wm.categoryAxis.splitLine.show=!1;const XM=Wm;var ZM=function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},a={};if(j(e)){var i=Lr(e);r.mainType=i.main||null,r.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};D(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var v=o[c],h=u.lastIndexOf(v);if(h>0&&h===u.length-v.length){var d=u.slice(0,h);"data"!==d&&(r.mainType=d,r[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,a,i));function f(c,v,h,d){return null==c[h]||v[d||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),jc=["symbol","symbolSize","symbolRotate","symbolOffset"],Um=jc.concat(["symbolKeepAspect"]),KM={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var n={},a={},i=!1,o=0;o<jc.length;o++){var s=jc[o],l=t.get(s);ce(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(N({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),!e.isSeriesFiltered(t)){var u=Ae(a);return{dataEach:i?function f(c,v){for(var h=t.getRawValue(v),d=t.getDataParams(v),y=0;y<u.length;y++){var p=u[y];c.setItemVisual(v,p,a[p](h,d))}}:null}}}}},jM={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function n(a,i){for(var o=a.getItemModel(i),s=0;s<Um.length;s++){var l=Um[s],u=o.getShallow(l,!0);null!=u&&a.setItemVisual(i,l,u)}}:null}}};function ni(t,e,r,n,a){var i=t+e;r.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),v=Ii(c,a.fromActionPayload);r.trigger(i,{type:i,seriesId:o.id,name:W(v)?c.getName(v[0]):c.getName(v),selected:j(l)?l:N({},l)})}})}function oo(t,e,r){for(var n;t&&(!e(t)||(n=t,!r));)t=t.__hostTarget||t.parent;return n}var tA=Math.round(9*Math.random()),rA="function"==typeof Object.defineProperty,nA=function(){function t(){this._id="__ec_inner_"+tA++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return rA?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},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}();const aA=nA;var oA=Ne.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,a=e.width/2,i=e.height/2;t.moveTo(r,n-i),t.lineTo(r+a,n+i),t.lineTo(r-a,n+i),t.closePath()}}),sA=Ne.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,a=e.width/2,i=e.height/2;t.moveTo(r,n-i),t.lineTo(r+a,n),t.lineTo(r,n+i),t.lineTo(r-a,n),t.closePath()}}),lA=Ne.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,a=e.width/5*3,i=Math.max(a,e.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),v=Math.cos(u),h=.6*o,d=.7*o;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(r+f-c*h,l+s+v*h,r,n-d,r,n),t.bezierCurveTo(r,n-d,r-f+c*h,l+s+v*h,r-f,l+s),t.closePath()}}),uA=Ne.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,a=e.x,i=e.y,o=e.width/3*2;t.moveTo(a,i),t.lineTo(a+o,i+r),t.lineTo(a,i+r/4*3),t.lineTo(a-o,i+r),t.lineTo(a,i),t.closePath()}}),cA={line:function(t,e,r,n,a){a.x1=t,a.y1=e+n/2,a.x2=t+r,a.y2=e+n/2},rect:function(t,e,r,n,a){a.x=t,a.y=e,a.width=r,a.height=n},roundRect:function(t,e,r,n,a){a.x=t,a.y=e,a.width=r,a.height=n,a.r=Math.min(r,n)/4},square:function(t,e,r,n,a){var i=Math.min(r,n);a.x=t,a.y=e,a.width=i,a.height=i},circle:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.r=Math.min(r,n)/2},diamond:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.width=r,a.height=n},pin:function(t,e,r,n,a){a.x=t+r/2,a.y=e+n/2,a.width=r,a.height=n},arrow:function(t,e,r,n,a){a.x=t+r/2,a.y=e+n/2,a.width=r,a.height=n},triangle:function(t,e,r,n,a){a.cx=t+r/2,a.cy=e+n/2,a.width=r,a.height=n}},$c={};D({line:ri,rect:st,roundRect:st,square:st,circle:Xs,diamond:sA,pin:lA,arrow:uA,triangle:oA},function(t,e){$c[e]=new t});var hA=Ne.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=Nd(t,e,r),a=this.shape;return a&&"pin"===a.symbolType&&"inside"===e.position&&(n.y=r.y+.4*r.height),n},buildPath:function(t,e,r){var n=e.symbolType;if("none"!==n){var a=$c[n];a||(a=$c[n="rect"]),cA[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,r)}}});function vA(t,e){if("image"!==this.type){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||be.color.neutral00,r.lineWidth=2):"line"===this.shape.symbolType?r.stroke=t:r.fill=t,this.markRedraw()}}function il(t,e,r,n,a,i,o){var l,s=0===t.indexOf("empty");return s&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(l=0===t.indexOf("image://")?Fc(t.slice(8),new pe(e,r,n,a),o?"center":"cover"):0===t.indexOf("path://")?Js(t.slice(7),{},new pe(e,r,n,a),o?"center":"cover"):new hA({shape:{symbolType:t,x:e,y:r,width:n,height:a}})).__isEmptyBrush=s,l.setColor=vA,i&&l.setColor(i),l}function ma(t){return isFinite(t)}function Qc(t,e,r){for(var n="radial"===e.type?function gA(t,e,r){var n=r.width,a=r.height,i=Math.min(n,a),o=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(o=o*n+r.x,s=s*a+r.y,l*=i),o=ma(o)?o:.5,s=ma(s)?s:.5,l=l>=0&&ma(l)?l:.5,t.createRadialGradient(o,s,0,o,s,l)}(t,e,r):function pA(t,e,r){var n=null==e.x?0:e.x,a=null==e.x2?1:e.x2,i=null==e.y?0:e.y,o=null==e.y2?0:e.y2;return e.global||(n=n*r.width+r.x,a=a*r.width+r.x,i=i*r.height+r.y,o=o*r.height+r.y),n=ma(n)?n:0,a=ma(a)?a:1,i=ma(i)?i:0,o=ma(o)?o:0,t.createLinearGradient(n,i,a,o)}(t,e,r),a=e.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function ol(t){return parseInt(t,10)}function sl(t,e,r){var n=["width","height"][e],a=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(null!=r[n]&&"auto"!==r[n])return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[a]||ol(s[n])||ol(t.style[n]))-(ol(s[i])||0)-(ol(s[o])||0)|0}function qm(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&function mA(t,e){return t&&"solid"!==t&&e>0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Re(t)?[t]:W(t)?t:null:null}(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=oe(r,function(i){return i/a}),n/=a)}return[r,n]}var _A=new ra(!0);function ll(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Ym(t){return"string"==typeof t&&"none"!==t}function ul(t){var e=t.fill;return null!=e&&"none"!==e}function Xm(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function Zm(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function Jc(t,e,r){var n=lp(e.image,e.__image,r);if(cs(n)){var a=t.createPattern(n,e.repeat||"repeat");if("function"==typeof DOMMatrix&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*Rv),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}var Km=["shadowBlur","shadowOffsetX","shadowOffsetY"],jm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function $m(t,e,r,n,a){var i=!1;if(!n&&e===(r=r||{}))return!1;if(n||e.opacity!==r.opacity){kt(t,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Kn.opacity:o}(n||e.blend!==r.blend)&&(i||(kt(t,a),i=!0),t.globalCompositeOperation=e.blend||Kn.blend);for(var s=0;s<Km.length;s++){var l=Km[s];(n||e[l]!==r[l])&&(i||(kt(t,a),i=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(i||(kt(t,a),i=!0),t.shadowColor=e.shadowColor||Kn.shadowColor),i}function Qm(t,e,r,n,a){var i=so(e,a.inHover),o=n?null:r&&so(r,a.inHover)||{};if(i===o)return!1;var s=$m(t,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(kt(t,a),s=!0),Ym(i.fill)&&(t.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(kt(t,a),s=!0),Ym(i.stroke)&&(t.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(kt(t,a),s=!0),t.globalAlpha=null==i.opacity?1:i.opacity),e.hasStroke()){var u=i.lineWidth/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(kt(t,a),s=!0),t.lineWidth=u)}for(var f=0;f<jm.length;f++){var c=jm[f],v=c[0];(n||i[v]!==o[v])&&(s||(kt(t,a),s=!0),t[v]=i[v]||c[1])}return s}function Jm(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function kt(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function so(t,e){return e&&t.__hoverStyle||t.style}function eh(t,e){_a(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function _a(t,e,r,n){var a=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1))return e.__dirty&=-2,void(e.__isRendered=!1);var i=e.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||function yA(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}(i,o))&&(o&&o.length&&(kt(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(kt(t,r),t.save(),function TA(t,e,r){for(var n=!1,a=0;a<t.length;a++){var i=t[a];n=n||i.isZeroArea(),Jm(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}r.allClipped=n}(i,t,r),s=!0),r.prevElClipPaths=i),r.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof Ne&&e.autoBatch&&function DA(t){var e=ul(t),r=ll(t);return!(t.lineDash||!(+e^+r)||e&&"string"!=typeof t.fill||r&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}(e.style);s||function wA(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)}(a,u.transform)?(kt(t,r),Jm(t,e)):f||kt(t,r);var c=so(e,r.inHover);e instanceof Ne?(1!==r.lastDrawType&&(l=!0,r.lastDrawType=1),Qm(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),function SA(t,e,r,n){var a,i=ll(r),o=ul(r),s=r.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||_A,c=e.__dirty;if(!n){var v=r.fill,h=r.stroke,d=o&&!!v.colorStops,y=i&&!!h.colorStops,p=o&&!!v.image,g=i&&!!h.image,m=void 0,_=void 0,S=void 0,b=void 0,C=void 0;(d||y)&&(C=e.getBoundingRect()),d&&(m=c?Qc(t,v,C):e.__canvasFillGradient,e.__canvasFillGradient=m),y&&(_=c?Qc(t,h,C):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),p&&(S=c||!e.__canvasFillPattern?Jc(t,v,e):e.__canvasFillPattern,e.__canvasFillPattern=S),g&&(b=c||!e.__canvasStrokePattern?Jc(t,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),d?t.fillStyle=m:p&&(S?t.fillStyle=S:o=!1),y?t.strokeStyle=_:g&&(b?t.strokeStyle=b:i=!1)}var T,w,x=e.getGlobalScale();f.setScale(x[0],x[1],e.segmentIgnoreThreshold),t.setLineDash&&r.lineDash&&(T=(a=qm(e))[0],w=a[1]);var L=!0;(u||4&c)&&(f.setDPR(t.dpr),l?f.setContext(null):(f.setContext(t),L=!1),f.reset(),e.buildPath(f,e.shape,n),f.toStatic(),e.pathUpdated()),L&&f.rebuildPath(t,l?s:1),T&&(t.setLineDash(T),t.lineDashOffset=w),n||(r.strokeFirst?(i&&Zm(t,r),o&&Xm(t,r)):(o&&Xm(t,r),i&&Zm(t,r))),T&&t.setLineDash([])}(t,e,c,f),f&&(r.batchFill=c.fill||"",r.batchStroke=c.stroke||"")):e instanceof Cf?(3!==r.lastDrawType&&(l=!0,r.lastDrawType=3),Qm(t,e,u,l,r),function bA(t,e,r){var n,a=r.text;if(null!=a&&(a+=""),a){t.font=r.font||un,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var i=void 0,o=void 0;t.setLineDash&&r.lineDash&&(i=(n=qm(e))[0],o=n[1]),i&&(t.setLineDash(i),t.lineDashOffset=o),r.strokeFirst?(ll(r)&&t.strokeText(a,r.x,r.y),ul(r)&&t.fillText(a,r.x,r.y)):(ul(r)&&t.fillText(a,r.x,r.y),ll(r)&&t.strokeText(a,r.x,r.y)),i&&t.setLineDash([])}}(t,e,c)):e instanceof xn?(2!==r.lastDrawType&&(l=!0,r.lastDrawType=2),function xA(t,e,r,n,a){$m(t,so(e,a.inHover),r&&so(r,a.inHover),n,a)}(t,e,u,l,r),function CA(t,e,r){var n=e.__image=lp(r.image,e.__image,e,e.onload);if(n&&cs(n)){var a=r.x||0,i=r.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(null==o&&null!=s?o=s*l:null==s&&null!=o?s=o/l:null==o&&null==s&&(o=n.width,s=n.height),r.sWidth&&r.sHeight)t.drawImage(n,u=r.sx||0,f=r.sy||0,r.sWidth,r.sHeight,a,i,o,s);else if(r.sx&&r.sy){var u,f;t.drawImage(n,u=r.sx,f=r.sy,o-u,s-f,a,i,o,s)}else t.drawImage(n,a,i,o,s)}}(t,e,c)):e.getTemporalDisplayables&&(4!==r.lastDrawType&&(l=!0,r.lastDrawType=4),function MA(t,e,r){var n=e.getDisplayables(),a=e.getTemporalDisplayables();t.save();var o,s,i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover};for(o=e.getCursor(),s=n.length;o<s;o++)(l=n[o]).beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),_a(t,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l;for(var u=0,f=a.length;u<f;u++){var l;(l=a[u]).beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),_a(t,l,i,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,r)),f&&n&&kt(t,r),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}}var th=new aA,a0=new Ba(100),i0=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function rh(t,e){if("none"===t)return null;var r=e.getDevicePixelRatio(),n=e.getZr(),a="svg"===n.painter.type;t.dirty&&th.delete(t);var i=th.get(t);if(i)return i;var o=Fe(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});"none"===o.backgroundColor&&(o.backgroundColor=null);var s={repeat:"repeat"};return function l(u){for(var f=[r],c=!0,v=0;v<i0.length;++v){var h=o[i0[v]];if(null!=h&&!W(h)&&!j(h)&&!Re(h)&&"boolean"!=typeof h){c=!1;break}f.push(h)}var d;if(c){d=f.join(",")+(a?"-svg":"");var y=a0.get(d);y&&(a?u.svgElement=y:u.image=y)}var T,p=s0(o.dashArrayX),g=function AA(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(Re(t)){var e=Math.ceil(t);return[e,e]}var r=oe(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}(o.dashArrayY),m=o0(o.symbol),_=function LA(t){return oe(t,function(e){return l0(e)})}(p),S=l0(g),b=!a&&Yt.createCanvas(),C=a&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function w(){for(var R=1,E=0,M=_.length;E<M;++E)R=Qd(R,_[E]);var k=1;for(E=0,M=m.length;E<M;++E)k=Qd(k,m[E].length);R*=k;var B=S*_.length*m.length;return{width:Math.max(1,Math.min(R,o.maxTileWidth)),height:Math.max(1,Math.min(B,o.maxTileHeight))}}();b&&(b.width=x.width*r,b.height=x.height*r,T=b.getContext("2d")),function L(){T&&(T.clearRect(0,0,b.width,b.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,b.width,b.height)));for(var R=0,E=0;E<g.length;++E)R+=g[E];if(!(R<=0))for(var M=-S,k=0,B=0,F=0;M<x.height;){if(k%2==0){for(var K=B/2%m.length,Z=0,U=0,Y=0;Z<2*x.width;){var q=0;for(E=0;E<p[F].length;++E)q+=p[F][E];if(q<=0)break;if(U%2==0){var z=.5*(1-o.symbolSize);pt(Z+p[F][U]*z,M+g[k]*z,p[F][U]*o.symbolSize,g[k]*o.symbolSize,m[K][Y/2%m[K].length])}Z+=p[F][U],++Y,++U===p[F].length&&(U=0)}++F===p.length&&(F=0)}M+=g[k],++B,++k===g.length&&(k=0)}function pt(ut,Ke,de,xe,zr){var it=a?1:r,kn=il(zr,ut*it,Ke*it,de*it,xe*it,o.color,o.symbolKeepAspect);if(a){var on=n.painter.renderOneToVNode(kn);on&&C.children.push(on)}else eh(T,kn)}}(),c&&a0.put(d,b||C),u.image=b,u.svgElement=C,u.svgWidth=x.width,u.svgHeight=x.height}(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/r,th.set(t,s),t.dirty=!1,s}function o0(t){if(!t||0===t.length)return[["rect"]];if(j(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!j(t[r])){e=!1;break}if(e)return o0([t]);var n=[];for(r=0;r<t.length;++r)j(t[r])?n.push([t[r]]):n.push(t[r]);return n}function s0(t){if(!t||0===t.length)return[[0,0]];if(Re(t))return[[e=Math.ceil(t),e]];for(var r=!0,n=0;n<t.length;++n)if(!Re(t[n])){r=!1;break}if(r)return s0([t]);var a=[];for(n=0;n<t.length;++n)if(Re(t[n])){var e=Math.ceil(t[n]);a.push([e,e])}else e=oe(t[n],function(s){return Math.ceil(s)}),a.push(e.length%2==1?e.concat(e):e);return a}function l0(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2==1?2*e:e}const _r=new xr;var u0={};function f0(t){return u0[t]}var c0={};function h0(t,e){c0[t]=e}var EA="6.0.0",kA={zrender:"6.0.0"},g0={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},Je="__flagInMainProcess",cl="__mainProcessVersion",at="__pendingUpdate",ah="__needsUpdateStatus",y0=/^[a-zA-Z0-9_]+$/,ih="__connectUpdateStatus";function _0(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(!this.isDisposed())return C0(this,t,e)}}function S0(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return C0(this,t,e)}}function C0(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),xr.prototype[e].apply(t,r)}var b0=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,J.C6)(e,t),e}(xr),x0=b0.prototype;x0.on=S0("on"),x0.off=S0("off");var Sa,oh,hl,rn,vl,sh,lh,ai,ii,T0,w0,uh,D0,dl,M0,A0,rr,L0,oi,pl=function(t){function e(r,n,a){var i=t.call(this,new ZM)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},i._dom=r,i[cl]=1,a.ssr&&Vd(function(h){var d=De(h),y=d.dataIndex;if(null!=y){var p=ye();return p.set("series_index",d.seriesIndex),p.set("data_index",y),d.ssrType&&p.set("ssr_type",d.ssrType),p}});var f=i._zr=Zu(r,{renderer:a.renderer||"canvas",devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:se(a.useDirtyRect,!1),useCoarsePointer:se(a.useCoarsePointer,"auto"),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=Zc(we(f.flush,f),17),i._updateTheme(n),i._locale=function L1(t){if(j(t)){var e=As[t.toUpperCase()]||{};return"ZH"===t||"EN"===t?_e(e):Be(_e(e),_e(As[Xa]),!1)}return Be(_e(t),_e(As[Xa]),!1)}(a.locale||_g),i._coordSysMgr=new Es;var c=i._api=M0(i);function v(h,d){return h.__prio-d.__prio}return Go(yl,v),Go(vh,v),i._scheduler=new zm(i,c,vh,yl),i._messageCenter=new b0,i._initEvents(),i.resize=we(i.resize,i),f.animation.on("frame",i._onframe,i),T0(f,i),w0(f,i),Ro(i),i}return(0,J.C6)(e,t),e.prototype._onframe=function(){if(!this._disposed){L0(this);var r=this._scheduler;if(this[at]){var n=this[at].silent;this[Je]=!0,oi(this);try{Sa(this),rn.update.call(this,null,this[at].updateParams)}catch(l){throw this[Je]=!1,this[at]=null,l}this._zr.flush(),this[Je]=!1,this[at]=null,ai.call(this,n),ii.call(this,n)}else if(r.unfinished){var a=1,i=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(i),r.performDataProcessorTasks(i),sh(this,i),r.performVisualTasks(i),dl(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>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,n,a){if(!this[Je]){if(this._disposed)return;var i,o,s;if(re(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Je]=!0,oi(this),!this._model||n){var l=new Pw(this._api),u=this._theme,f=this._model=new Qg;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},dh);var c={seriesTransition:s,optionChanged:!0};if(a)this[at]={silent:i,updateParams:c},this[Je]=!1,this.getZr().wakeUp();else{try{Sa(this),rn.update.call(this,null,c)}catch(v){throw this[at]=null,this[Je]=!1,v}this._ssr||this._zr.flush(),this[at]=null,this[Je]=!1,ai.call(this,i),ii.call(this,i)}}},e.prototype.setTheme=function(r,n){if(!this[Je]){if(this._disposed)return;var a=this._model;if(a){var i=n&&n.silent,o=null;this[at]&&(null==i&&(i=this[at].silent),o=this[at].updateParams,this[at]=null),this[Je]=!0,oi(this);try{this._updateTheme(r),a.setTheme(this._theme),Sa(this),rn.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Je]=!1,s}this[Je]=!1,ai.call(this,i),ii.call(this,i)}}},e.prototype._updateTheme=function(r){j(r)&&(r=P0[r]),r&&((r=_e(r))&&oy(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||me.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){return this._zr.painter.getRenderedCanvas({backgroundColor:(r=r||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){return this._zr.painter.renderToString({useViewBox:(r=r||{}).useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr;return D(r.storage.getDisplayList(),function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(!this._disposed){var a=this._model,i=[],o=this;D((r=r||{}).excludeComponents,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return D(i,function(l){l.group.ignore=!1}),s}},e.prototype.getConnectedDataURL=function(r){if(!this._disposed){var n="svg"===r.type,a=this.group,i=Math.min,o=Math.max,s=1/0;if(ml[a]){var l=s,u=s,f=-s,c=-s,v=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();D(Ca,function(_,S){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(_e(r)),C=_.getDom().getBoundingClientRect();l=i(C.left,l),u=i(C.top,u),f=o(C.right,f),c=o(C.bottom,c),v.push({dom:b,left:C.left,top:C.top})}});var d=(f*=h)-(l*=h),y=(c*=h)-(u*=h),p=Yt.createCanvas(),g=Zu(p,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:y}),n){var m="";return D(v,function(_){m+='<g transform="translate('+(_.left-l)+","+(_.top-u)+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=m,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return r.connectedBackgroundColor&&g.add(new st({shape:{x:0,y:0,width:d,height:y},style:{fill:r.connectedBackgroundColor}})),D(v,function(_){var S=new xn({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});g.add(S)}),g.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}return this.getDataURL(r)}},e.prototype.convertToPixel=function(r,n,a){return vl(this,"convertToPixel",r,n,a)},e.prototype.convertToLayout=function(r,n,a){return vl(this,"convertToLayout",r,n,a)},e.prototype.convertFromPixel=function(r,n,a){return vl(this,"convertFromPixel",r,n,a)},e.prototype.containPixel=function(r,n){var i;if(!this._disposed)return D(tf(this._model,r),function(s,l){l.indexOf("Models")>=0&&D(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if("seriesModels"===l){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(n,u))}},this)},this),!!i},e.prototype.getVisual=function(r,n){var i=tf(this._model,r,{defaultMainType:"series"}),s=i.seriesModel.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return null!=l?function $M(t,e,r){switch(r){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r)}}(s,l,n):function QM(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}(s,n)},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;D(ZA,function(a){var i=function(o){var u,s=r.getModel(),l=o.target;if("globalout"===a?u={}:l&&oo(l,function(y){var p=De(y);if(p&&null!=p.dataIndex){var g=p.dataModel||s.getSeriesByIndex(p.seriesIndex);return u=g&&g.getDataParams(p.dataIndex,p.dataType,l)||{},!0}if(p.eventData)return u=N({},p.eventData),!0},!0),u){var c=u.componentType,v=u.componentIndex;("markLine"===c||"markPoint"===c||"markArea"===c)&&(c="series",v=u.seriesIndex);var h=c&&null!=v&&s.getComponent(c,v),d=h&&r["series"===h.mainType?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=a,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},r.trigger(a,u)}};i.zrEventfulCallAtLast=!0,r._zr.on(a,i,r)});var n=this._messageCenter;D(hh,function(a,i){n.on(i,function(o){r.trigger(i,o)})}),function eA(t,e,r){t.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(ni("map","selectchanged",e,a,n),ni("pie","selectchanged",e,a,n)):"select"===n.fromAction?(ni("map","selected",e,a,n),ni("pie","selected",e,a,n)):"unselect"===n.fromAction&&(ni("map","unselected",e,a,n),ni("pie","unselected",e,a,n))})}(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,this.getDom()&&ip(this.getDom(),gh,"");var n=this,a=n._api,i=n._model;D(n._componentsViews,function(o){o.dispose(i,a)}),D(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Ca[n.id]}},e.prototype.resize=function(r){if(!this[Je]){if(this._disposed)return;this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),n){var a=n.resetOption("media"),i=r&&r.silent;this[at]&&(null==i&&(i=this[at].silent),a=!0,this[at]=null),this[Je]=!0,oi(this);try{a&&Sa(this),rn.update.call(this,{type:"resize",animation:N({duration:0},r&&r.animation)})}catch(o){throw this[Je]=!1,o}this[Je]=!1,ai.call(this,i),ii.call(this,i)}}},e.prototype.showLoading=function(r,n){if(!this._disposed&&(re(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),ph[r])){var a=ph[r](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(r){var n=N({},r);return n.type=ch[r.type],n},e.prototype.dispatchAction=function(r,n){if(!this._disposed&&(re(n)||(n={silent:!!n}),gl[r.type]&&this._model)){if(this[Je])return void this._pendingActions.push(r);var a=n.silent;lh.call(this,r,a);var i=n.flush;i?this._zr.flush():!1!==i&&me.browser.weChat&&this._throttledZrFlush(),ai.call(this,a),ii.call(this,a)}},e.prototype.updateLabelLayout=function(){_r.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(!this._disposed){var n=r.seriesIndex;this.getModel().getSeriesByIndex(n).appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function n(c){c.clearColorPalette(),c.eachSeries(function(v){v.clearColorPalette()})}function i(c){for(var v=[],h=c.currentStates,d=0;d<h.length;d++){var y=h[d];"emphasis"===y||"blur"===y||"select"===y||v.push(y)}c.selected&&c.states.select&&v.push("select"),2===c.hoverState&&c.states.emphasis?v.push("emphasis"):1===c.hoverState&&c.states.blur&&v.push("blur"),c.useStates(v)}function l(c,v){if(!c.preventAutoZ){var h=wm(c);v.eachRendered(function(d){return Dm(d,h.z,h.zlevel),!0})}}function u(c,v){v.eachRendered(function(h){if(!qa(h)){var d=h.getTextContent(),y=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),y&&y.stateTransition&&(y.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,v){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),y=h.get("duration"),p=y>0?{duration:y,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(g){if(g.states&&g.states.emphasis){if(qa(g))return;if(g instanceof Ne&&function u1(t){var e=Up(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}(g),g.__dirty){var m=g.prevStates;m&&g.useStates(m)}if(d){g.stateTransition=p;var _=g.getTextContent(),S=g.getTextGuideLine();_&&(_.stateTransition=p),S&&(S.stateTransition=p)}g.__dirty&&i(g)}})}Sa=function(c){var v=c._scheduler;v.restorePipelines(c._model),v.prepareStageTasks(),oh(c,!0),oh(c,!1),v.plan()},oh=function(c,v){for(var h=c._model,d=c._scheduler,y=v?c._componentsViews:c._chartsViews,p=v?c._componentsMap:c._chartsMap,g=c._zr,m=c._api,_=0;_<y.length;_++)y[_].__alive=!1;function S(C){var x=C.__requireNewView;C.__requireNewView=!1;var T="_ec_"+C.id+"_"+C.type,w=!x&&p[T];if(!w){var L=Lr(C.type);(w=new(v?er.getClass(L.main,L.sub):tn.getClass(L.sub))).init(h,m),p[T]=w,y.push(w),g.add(w.group)}C.__viewId=w.__id=T,w.__alive=!0,w.__model=C,w.group.__ecComponentInfo={mainType:C.mainType,index:C.componentIndex},!v&&d.prepareView(w,C,h,m)}for(v?h.eachComponent(function(C,x){"series"!==C&&S(x)}):h.eachSeries(S),_=0;_<y.length;){var b=y[_];b.__alive?_++:(!v&&b.renderTask.dispose(),g.remove(b.group),b.dispose(h,m),y.splice(_,1),p[b.__id]===b&&delete p[b.__id],b.__id=b.group.__ecComponentInfo=null)}},hl=function(c,v,h,d,y){var p=c._model;if(p.setUpdatePayload(h),d){var g={};g[d+"Id"]=h[d+"Id"],g[d+"Index"]=h[d+"Index"],g[d+"Name"]=h[d+"Name"];var m={mainType:d,query:g};y&&(m.subType=y);var S,_=h.excludeSeriesId;null!=_&&(S=ye(),D(tt(_),function(C){var x=bt(C,null);null!=x&&S.set(x,!0)})),p&&p.eachComponent(m,function(C){if(!S||null==S.get(C.id))if(ig(h))if(C instanceof Dn)h.type===ia&&!h.notBlur&&!C.get(["emphasis","disabled"])&&function QT(t,e,r){var n=t.seriesIndex,a=t.getData(e.dataType);if(a){var i=Ii(a,e);i=(W(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=De(o);Rf(n,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);null!=f&&Rf(n,f,c,r)}}}(C,h,c._api);else{var T=Ef(C.mainType,C.componentIndex,h.name,c._api),L=T.dispatchers;h.type===ia&&T.focusSelf&&!h.notBlur&&If(C.mainType,C.componentIndex,c._api),L&&D(L,function(R){h.type===ia?Lf(R):Pf(R)})}else Of(h)&&C instanceof Dn&&(function t1(t,e){if(Of(e)){var n=e.dataType,i=Ii(t.getData(n),e);W(i)||(i=[i]),t[e.type===Cs?"toggleSelect":e.type===Ss?"select":"unselect"](i,n)}}(C,h),rg(C),rr(c))},c),p&&p.eachComponent(m,function(C){S&&null!=S.get(C.id)||b(c["series"===d?"_chartsMap":"_componentsMap"][C.__viewId])},c)}else D([].concat(c._componentsViews).concat(c._chartsViews),b);function b(C){C&&C.__alive&&C[v]&&C[v](C.__model,p,c._api,h)}},rn={prepareAndUpdate:function(c){Sa(this),rn.update.call(this,c,c&&{optionChanged:null!=c.newOption})},update:function(c,v){var h=this._model,d=this._api,y=this._zr,p=this._coordSysMgr,g=this._scheduler;if(h){h.setUpdatePayload(c),g.restoreData(h,c),g.performSeriesTasks(h),p.create(h,d),g.performDataProcessorTasks(h,c),sh(this,h),p.update(h,d),n(h),g.performVisualTasks(h,c);var m=h.get("backgroundColor")||"transparent";y.setBackgroundColor(m);var _=h.get("darkMode");null!=_&&"auto"!==_&&y.setDarkMode(_),uh(this,h,d,c,v),_r.trigger("afterupdate",h,d)}},updateTransform:function(c){var v=this,h=this._model,d=this._api;if(h){h.setUpdatePayload(c);var y=[];h.eachComponent(function(g,m){if("series"!==g){var _=v.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,h,d,c);S&&S.update&&y.push(_)}else y.push(_)}});var p=ye();h.eachSeries(function(g){var m=v._chartsMap[g.__viewId];if(m.updateTransform){var _=m.updateTransform(g,h,d,c);_&&_.update&&p.set(g.uid,1)}else p.set(g.uid,1)}),n(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:p}),dl(this,h,d,c,{},p),_r.trigger("afterupdate",h,d)}},updateView:function(c){var v=this._model;v&&(v.setUpdatePayload(c),tn.markUpdateMethod(c,"updateView"),n(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0}),uh(this,v,this._api,c,{}),_r.trigger("afterupdate",v,this._api))},updateVisual:function(c){var v=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(d){d.getData().clearAllVisual()}),tn.markUpdateMethod(c,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,y){if("series"!==d){var p=v.getViewOfComponentModel(y);p&&p.__alive&&p.updateVisual(y,h,v._api,c)}}),h.eachSeries(function(d){v._chartsMap[d.__viewId].updateVisual(d,h,v._api,c)}),_r.trigger("afterupdate",h,this._api))},updateLayout:function(c){rn.update.call(this,c)}},vl=function r(c,v,h,d,y){if(!c._disposed)for(var m,p=c._model,g=c._coordSysMgr.getCoordinateSystems(),_=tf(p,h),S=0;S<g.length;S++){var b=g[S];if(b[v]&&null!=(m=b[v](p,_,d,y)))return m}},sh=function(c,v){var h=c._chartsMap,d=c._scheduler;v.eachSeries(function(y){d.updateStreamModes(y,h[y.__viewId])})},lh=function(c,v){var h=this,d=this.getModel(),p=c.escapeConnect,g=gl[c.type],m=(g.update||"update").split(":"),_=m.pop(),S=null!=m[0]&&Lr(m[0]);this[Je]=!0,oi(this);var b=[c],C=!1;c.batch&&(C=!0,b=oe(c.batch,function(F){return(F=Fe(N({},F),c)).batch=null,F}));var T,x=[],w=[],L=g.nonRefinedEventType,R=Of(c),E=ig(c);if(E&&tg(this._api),D(b,function(F){var K=g.action(F,d,h._api);if(g.refineEvent?w.push(K):T=K,(T=T||N({},F)).type=L,x.push(T),E){var Z=rf(c),q=Z.mainTypeSpecified?Z.queryOptionMap.keys()[0]:"series";hl(h,_,F,q),rr(h)}else R?(hl(h,_,F,"series"),rr(h)):S&&hl(h,_,F,S.main,S.sub)}),"none"!==_&&!E&&!R&&!S)try{this[at]?(Sa(this),rn.update.call(this,c),this[at]=null):rn[_].call(this,c)}catch(F){throw this[Je]=!1,F}if(T=C?{type:L,escapeConnect:p,batch:x}:x[0],this[Je]=!1,!v){var M=void 0;if(g.refineEvent){var k=g.refineEvent(w,c,d,this._api).eventContent;br(re(k)),(M=Fe({type:g.refinedEventType},k)).fromAction=c.type,M.fromActionPayload=c,M.escapeConnect=!0}var B=this._messageCenter;B.trigger(T.type,T),M&&B.trigger(M.type,M)}},ai=function(c){for(var v=this._pendingActions;v.length;){var h=v.shift();lh.call(this,h,c)}},ii=function(c){!c&&this.trigger("updated")},T0=function(c,v){c.on("rendered",function(h){v.trigger("rendered",h),c.animation.isFinished()&&!v[at]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},w0=function(c,v){c.on("mouseover",function(h){var y=oo(h.target,kf);y&&(function JT(t,e,r){var n=De(t),a=Ef(n.componentMainType,n.componentIndex,n.componentHighDownName,r),i=a.dispatchers;i?(a.focusSelf&&If(n.componentMainType,n.componentIndex,r),D(i,function(s){return Kp(s,e)})):(Rf(n.seriesIndex,n.focus,n.blurScope,r),"self"===n.focus&&If(n.componentMainType,n.componentIndex,r),Kp(t,e))}(y,h,v._api),rr(v))}).on("mouseout",function(h){var y=oo(h.target,kf);y&&(function e1(t,e,r){tg(r);var n=De(t),a=Ef(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?D(a,function(i){return jp(i,e)}):jp(t,e)}(y,h,v._api),rr(v))}).on("click",function(h){var y=oo(h.target,function(m){return null!=De(m).dataIndex},!0);if(y){var p=y.selected?"unselect":"select",g=De(y);v._api.dispatchAction({type:p,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})},uh=function(c,v,h,d,y){(function a(c){var v=[],h=[],d=!1;if(c.eachComponent(function(m,_){var S=_.get("zlevel")||0,b=_.get("z")||0,C=_.getZLevelKey();d=d||!!C,("series"===m?h:v).push({zlevel:S,z:b,idx:_.componentIndex,type:m,key:C})}),d){var p,g,y=v.concat(h);Go(y,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),D(y,function(m){var _=c.getComponent(m.type,m.idx),S=m.zlevel,b=m.key;null!=p&&(S=Math.max(p,S)),b?(S===p&&b!==g&&S++,g=b):g&&(S===p&&S++,g=""),p=S,_.setZLevel(S)})}})(v),D0(c,v,h,d,y),D(c._chartsViews,function(p){p.__alive=!1}),dl(c,v,h,d,y),D(c._chartsViews,function(p){p.__alive||p.remove(v,h)})},D0=function(c,v,h,d,y,p){D(p||c._componentsViews,function(g){var m=g.__model;u(0,g),g.render(m,v,h,d),l(m,g),f(m,g)})},dl=function(c,v,h,d,y,p){var g=c._scheduler;y=N(y||{},{updatedSeries:v.getSeries()}),_r.trigger("series:beforeupdate",v,h,y);var m=!1;v.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;g.updatePayload(b,d),u(0,S),p&&p.get(_.uid)&&b.dirty(),b.perform(g.getPerformArgs(b))&&(m=!0),S.group.silent=!!_.get("silent"),function s(c,v){var h=c.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}(_,S),rg(_)}),g.unfinished=m||g.unfinished,_r.trigger("series:layoutlabels",v,h,y),_r.trigger("series:transition",v,h,y),v.eachSeries(function(_){var S=c._chartsMap[_.__viewId];l(_,S),f(_,S)}),function o(c,v){var y=0;c._zr.storage.traverse(function(p){p.isGroup||y++}),y>v.get("hoverLayerThreshold")&&!me.node&&!me.worker&&v.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=c._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}(c,v),_r.trigger("series:afterupdate",v,h,y)},rr=function(c){c[ah]=!0,c.getZr().wakeUp()},oi=function(c){c[cl]=(c[cl]+1)%1e3},L0=function(c){c[ah]&&(c.getZr().storage.traverse(function(v){qa(v)||i(v)}),c[ah]=!1)},M0=function(c){return new(function(v){function h(){return null!==v&&v.apply(this,arguments)||this}return(0,J.C6)(h,v),h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var y=d.__ecComponentInfo;if(null!=y)return c._model.getComponent(y.mainType,y.index);d=d.parent}},h.prototype.enterEmphasis=function(d,y){Lf(d,y),rr(c)},h.prototype.leaveEmphasis=function(d,y){Pf(d,y),rr(c)},h.prototype.enterBlur=function(d){(function $T(t){Kr(t,Mf)})(d),rr(c)},h.prototype.leaveBlur=function(d){$p(d),rr(c)},h.prototype.enterSelect=function(d){Qp(d),rr(c)},h.prototype.leaveSelect=function(d){Jp(d),rr(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.getMainProcessVersion=function(){return c[cl]},h}(Jg))(c)},A0=function(c){function v(h,d){for(var y=0;y<h.length;y++)h[y][ih]=d}D(ch,function(h,d){c._messageCenter.on(d,function(y){if(ml[c.group]&&0!==c[ih]){if(y&&y.escapeConnect)return;var p=c.makeActionFromEvent(y),g=[];D(Ca,function(m){m!==c&&m.group===c.group&&g.push(m)}),v(g,0),D(g,function(m){1!==m[ih]&&m.dispatchAction(p)}),v(g,2)}})})}}(),e}(xr),fh=pl.prototype;fh.on=_0("on"),fh.off=_0("off"),fh.one=function(t,e,r){var n=this;this.on.call(this,t,function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),n.off(t,a)},r)};var ZA=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],gl={},ch={},hh={},vh=[],dh=[],yl=[],P0={},ph={},Ca={},ml={},KA=+new Date-0,jA=+new Date-0,gh="_echarts_instance_";function $A(t,e,r){var n=!(r&&r.ssr);if(n){var a=yh(t);if(a)return a}var i=new pl(t,e,r);return i.id="ec_"+KA++,Ca[i.id]=i,n&&ip(t,gh,i.id),A0(i),_r.trigger("afterinit",i),i}function QA(t){if(W(t)){var e=t;t=null,D(e,function(r){null!=r.group&&(t=r.group)}),t=t||"g_"+jA++,D(e,function(r){r.group=t})}return ml[t]=!0,t}function R0(t){ml[t]=!1}var JA=R0;function eL(t){j(t)?t=Ca[t]:t instanceof pl||(t=yh(t)),t instanceof pl&&!t.isDisposed()&&t.dispose()}function yh(t){return Ca[function Bx(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,gh)]}function tL(t){return Ca[t]}function mh(t,e){P0[t]=e}function _h(t){Ce(dh,t)<0&&dh.push(t)}function Sh(t,e){Ch(vh,t,e,2e3)}function I0(t){_l("afterinit",t)}function E0(t){_l("afterupdate",t)}function _l(t,e){_r.on(t,e)}function ba(t,e,r){var n,a,i,o,s;function l(f){return f.toLowerCase()}ce(e)&&(r=e,e=""),re(t)?(n=t.type,a=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),i=t.refineEvent):(n=t,a=e),a=l(a||n);var u=i?l(n):a;gl[n]||(br(y0.test(n)&&y0.test(a)),i&&br(a!==n),gl[n]={actionType:n,refinedEventType:a,nonRefinedEventType:u,update:o,action:r,refineEvent:i},hh[a]=1,i&&s&&(hh[u]=1),ch[u]=n)}function k0(t,e){Es.register(t,e)}function rL(t){var e=Es.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function nL(t,e){h0(t,e)}function O0(t,e){Ch(yl,t,e,1e3,"layout")}function Mn(t,e){Ch(yl,t,e,3e3,"visual")}var B0=[];function Ch(t,e,r,n,a){if((ce(e)||re(e))&&(r=e,e=n),!(Ce(B0,r)>=0)){B0.push(r);var i=zm.wrapStageHandler(r,a);i.__prio=e,i.__raw=r,t.push(i)}}function bh(t,e){ph[t]=e}function aL(t){bv({createCanvas:t})}function N0(t,e,r){var n=f0("registerMap");n&&n(t,e,r)}function iL(t){var e=f0("getMap");return e&&e(t)}var F0=function fD(t){var e=(t=_e(t)).type;e||wt("");var n=e.split(":");2!==n.length&&wt("");var a=!1;"echarts"===n[0]&&(e=n[1],a=!0),t.__isBuiltIn=a,wy.set(e,t)};function xh(t,e,r,n){return{eventContent:{selected:r1(r),isFromClick:e.isFromClick||!1}}}Mn(2e3,IM),Mn(4500,EM),Mn(4500,kM),Mn(2e3,KM),Mn(4500,jM),Mn(7e3,function PA(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");s&&(n.ensureUniqueItemVisual(o,"style").decal=rh(s,e))});var a=n.getVisual("decal");a&&(n.getVisual("style").decal=rh(a,e))}})}),_h(oy),Sh(900,function Fw(t){var e=ye();t.eachSeries(function(r){var n=r.get("stack");if(n){var a=e.get(n)||e.set(n,[]),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;a.push(o)}}),e.each(function(r){0!==r.length&&("seriesDesc"===(r[0].seriesModel.get("stackOrder")||"seriesAsc")&&r.reverse(),D(r,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),function Hw(t){D(t,function(e,r){var n=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,c){var h,d,v=o.get(e.stackedDimension,c);if(isNaN(v))return a;s?d=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var y=NaN,p=r-1;p>=0;p--){var g=t[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,h)),d>=0){var m=g.data.getByRawIndex(g.stackResultDimension,d);if("all"===l||"positive"===l&&m>0||"negative"===l&&m<0||"samesign"===l&&v>=0&&m>0||"samesign"===l&&v<=0&&m<0){v=gx(v,m),y=m;break}}}return n[0]=v,n[1]=y,n})})}(r))})}),bh("default",function OM(t,e){Fe(e=e||{},{text:"loading",textColor:be.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:be.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Ht,n=new st({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var o,a=new $e({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 st({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return r.add(i),e.showSpinner&&((o=new Ks({shape:{startAngle:-nl/2,endAngle:-nl/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*nl/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*nl/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-2*l-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:2*l,height:2*l}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}),ba({type:ia,event:ia,update:ia},St),ba({type:_s,event:_s,update:_s},St),ba({type:Ss,event:Df,update:Ss,action:St,refineEvent:xh,publishNonRefinedEvent:!0}),ba({type:wf,event:Df,update:wf,action:St,refineEvent:xh,publishNonRefinedEvent:!0}),ba({type:Cs,event:Df,update:Cs,action:St,refineEvent:xh,publishNonRefinedEvent:!0}),mh("default",{}),mh("dark",XM);var oL={},H0=[],sL={registerPreprocessor:_h,registerProcessor:Sh,registerPostInit:I0,registerPostUpdate:E0,registerUpdateLifecycle:_l,registerAction:ba,registerCoordinateSystem:k0,registerLayout:O0,registerVisual:Mn,registerTransform:F0,registerLoading:bh,registerMap:N0,registerImpl:function IA(t,e){u0[t]=e},PRIORITY:g0,ComponentModel:He,ComponentView:er,SeriesModel:Dn,ChartView:tn,registerComponentModel:function(t){He.registerClass(t)},registerComponentView:function(t){er.registerClass(t)},registerSeriesModel:function(t){Dn.registerClass(t)},registerChartView:function(t){tn.registerClass(t)},registerCustomSeries:function(t,e){h0(t,e)},registerSubTypeDefaulter:function(t,e){He.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){zd(t,e)}};function An(t){W(t)?D(t,function(e){An(e)}):Ce(H0,t)>=0||(H0.push(t),ce(t)&&(t={install:t}),t.install(sL))}function lo(t){return null==t?0:t.length||1}function G0(t){return t}var lL=function(){function t(e,r,n,a,i,o){this._old=e,this._new=r,this._oldKeyGetter=n||G0,this._newKeyGetter=a||G0,this.context=i,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},a=new Array(e.length),i=new Array(r.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=a[o],l=n[s],u=lo(l);if(u>1){var f=l.shift();1===l.length&&(n[s]=l[0]),this._update&&this._update(f,o)}else 1===u?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var r=this._new,n={},a={},i=[],o=[];this._initIndexMap(this._old,n,i,"_oldKeyGetter"),this._initIndexMap(r,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],f=a[l],c=lo(u),v=lo(f);if(c>1&&1===v)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(1===c&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(1===c&&1===v)this._update&&this._update(f,u),a[l]=null;else if(c>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var a=e[n],i=r[a],o=lo(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else 1===o&&this._add&&this._add(i);r[a]=null}},t.prototype._initIndexMap=function(e,r,n,a){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(i||(n[o]=s),r){var l=r[s],u=lo(l);0===u?(r[s]=o,i&&n.push(s)):1===u?r[s]=[l,o]:l.push(o)}}},t}();const uL=lL;var fL=function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function Th(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}const Sl=function(){return function t(e){this.otherDims={},null!=e&&N(this,e)}}();var pL=Ee(),gL={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},z0=function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=U0(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return se(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=fy(this.source),n=!q0(e),a="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=r?v.name:null,u=v.type)}i.push({property:l,type:u,ordinalMeta:f}),r&&null!=l&&(!c||!c.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=gL[u]||"f",f&&(a+=f.uid),a+="$"}var h=this.source;return{dimensions:i,hash:[h.seriesLayoutBy,h.startIndex,a].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===r)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(r);o&&(a=o.name)}e.push(a)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function V0(t){return t instanceof z0}function W0(t){for(var e=ye(),r=0;r<(t||[]).length;r++){var n=t[r],a=re(n)?n.name:n;null!=a&&null==e.get(a)&&e.set(a,r)}return e}function U0(t){var e=pL(t);return e.dimNameMap||(e.dimNameMap=W0(t.dimensionsDefine))}function q0(t){return t>30}var X0,Cl,fo,co,wh,ho,Dh,uo=re,Ln=oe,yL=typeof Int32Array>"u"?Array:Int32Array,_L=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],SL=["_approximateExtent"],CL=function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;V0(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,n=e),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],v=j(c)?new Sl({name:c}):c instanceof Sl?c:new Sl(c),h=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=h,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(h),i[h]=v,null!=u[h]&&(l=!0),v.createInvertedIndices&&(s[h]=[]);var y=f;Re(v.storeDimIndex)&&(y=v.storeDimIndex),0===d.itemName&&(this._nameDimIdx=y),0===d.itemId&&(this._idDimIdx=y),a&&(v.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=ye();D(o,function(g){p.set(i[g].storeDimIndex,g)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(null==r)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(null!=n)return n;var a=this._schema.getSourceDimension(r);return a?a.name:void 0},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(null!=r)return r;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(Re(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(null==r)return n.encodeFirstDimNotExtra[e];var a=n.encode[e];return a?a[r]:null},t.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var i,a=this;if(e instanceof bc&&(i=e),!i){var o=this.dimensions,s=dc(e)||ft(e)?new gy(e,o.length):e;i=new bc;var l=Ln(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=function cL(t,e){var r={},n=r.encode={},a=ye(),i=[],o=[],s={};D(t.dimensions,function(v){var h=t.getDimensionInfo(v),d=h.coordDim;if(d){var y=h.coordDimIndex;Th(n,d)[y]=v,h.isExtraCoord||(a.set(d,1),function vL(t){return!("ordinal"===t||"time"===t)}(h.type)&&(i[0]=v),Th(s,d)[y]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(v)}Fg.each(function(p,g){var m=Th(n,g),_=h.otherDims[g];null!=_&&!1!==_&&(m[_]=h.name)})});var l=[],u={};a.each(function(v,h){var d=n[h];u[h]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=oe(l,function(v){return t.getDimensionInfo(v).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(i=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,r.userOutput=new fL(s,e),r}(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=a;s<i;s++)this._nameList[s]=r[s-a],o&&Dh(this,s)},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var a=this._dimInfos[r[n]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==Jr&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var a=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList;if(a.getSource().sourceFormat===zt&&!a.pure)for(var u=[],f=e;f<r;f++){var c=a.getItem(f,u);if(!this.hasItemOption&&Dx(c)&&(this.hasItemOption=!0),c){var v=c.name;null==i[f]&&null!=v&&(i[f]=bt(v,null));var h=c.id;null==o[f]&&null!=h&&(o[f]=bt(h,null))}}if(this._shouldMakeIdFromName())for(f=e;f<r;f++)Dh(this,f);X0(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){uo(e)?N(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return null==n&&null!=this._nameDimIdx&&(n=fo(this,this._nameDimIdx,r)),null==n&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),a=this._store.getOrdinalMeta(e);return a?a.categories[n]:n},t.prototype.getId=function(e){return Cl(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var a=this._dimInfos[e];if(a)return this._store.get(a.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var a=this._dimInfos[e];if(a)return this._store.getByRawIndex(a.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,a=this._store;return W(e)?a.getValues(Ln(e,function(i){return n._getStoreDimIndex(i)}),r):a.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,a=r.length;n<a;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e],a=n&&n[r];return null==a||isNaN(a)?-1:a},t.prototype.each=function(e,r,n){ce(e)&&(n=r,r=e,e=[]);var a=n||this,i=Ln(co(e),this._getStoreDimIndex,this);this._store.each(i,a?we(r,a):r)},t.prototype.filterSelf=function(e,r,n){ce(e)&&(n=r,r=e,e=[]);var a=n||this,i=Ln(co(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?we(r,a):r),this},t.prototype.selectRange=function(e){var r=this,n={},a=Ae(e),i=[];return D(a,function(o){var s=r._getStoreDimIndex(o);n[s]=e[o],i.push(s)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){ce(e)&&(n=r,r=e,e=[]);var a=[];return this.each(e,function(){a.push(r&&r.apply(this,arguments))},n=n||this),a},t.prototype.map=function(e,r,n,a){var i=n||a||this,o=Ln(co(e),this._getStoreDimIndex,this),s=ho(this);return s._store=this._store.map(o,i?we(r,i):r),s},t.prototype.modify=function(e,r,n,a){var o=n||a||this,s=Ln(co(e),this._getStoreDimIndex,this);this._store.modify(s,o?we(r,o):r)},t.prototype.downSample=function(e,r,n,a){var i=ho(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),r,n,a),i},t.prototype.minmaxDownSample=function(e,r){var n=ho(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=ho(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new Qe(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new uL(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Cl(e,n)},function(n){return Cl(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},uo(e)?N(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e];return(n&&n[r])??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,a=n[e];a||(a=n[e]={});var i=a[r];return null==i&&(W(i=this.getVisual(r))?i=i.slice():uo(i)&&(i=N({},i)),a[r]=i),i},t.prototype.setItemVisual=function(e,r,n){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,uo(r)?N(a,r):a[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){uo(e)?N(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?N(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){(function(t,e,r,n){if(n){var a=De(n);a.dataIndex=r,a.dataType=e,a.seriesIndex=t,a.ssrType="chart","group"===n.type&&n.traverse(function(i){var o=De(i);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}})(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){D(this._graphicEls,function(n,a){n&&e&&e.call(r,n,a)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Ln(this.dimensions,this._getDimInfo,this),this.hostModel)),wh(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];ce(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(Lo(arguments)))})},t.internalField=(X0=function(e){var r=e._invertedIndicesMap;D(r,function(n,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){n=r[a]=new yL(o.categories.length);for(var l=0;l<n.length;l++)n[l]=-1;for(l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},fo=function(e,r,n){return bt(e._getCategory(r,n),null)},Cl=function(e,r){var n=e._idList[r];return null==n&&null!=e._idDimIdx&&(n=fo(e,e._idDimIdx,r)),null==n&&(n="e\0\0"+r),n},co=function(e){return W(e)||(e=null!=e?[e]:[]),e},ho=function(e){var r=new t(e._schema?e._schema:Ln(e.dimensions,e._getDimInfo,e),e.hostModel);return wh(r,e),r},wh=function(e,r){D(_L.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,D(SL,function(n){e[n]=_e(r[n])}),e._calculationInfo=N({},r._calculationInfo)},void(Dh=function(e,r){var n=e._nameList,a=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=n[r],l=a[r];if(null==s&&null!=i&&(n[r]=s=fo(e,i,r)),null==l&&null!=o&&(a[r]=l=fo(e,o,r)),null==l&&null!=s){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),a[r]=l}})),t}();const Mh=CL;function bL(t,e){return Ah(t,e).dimensions}function Ah(t,e){dc(t)||(t=gc(t));var r=(e=e||{}).coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],a=ye(),i=[],o=function TL(t,e,r,n){var a=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return D(e,function(i){var o;re(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&q0(o),l=n===t.dimensionsDefine,u=l?U0(t):W0(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=ye(f),v=new Dy(o),h=0;h<v.length;h++)v[h]=-1;function d(w){var L=v[w];if(L<0){var R=n[w],E=re(R)?R:{name:R},M=new Sl,k=E.name;return null!=k&&null!=u.get(k)&&(M.name=M.displayName=k),null!=E.type&&(M.type=E.type),null!=E.displayName&&(M.displayName=E.displayName),v[w]=i.length,M.storeDimIndex=w,i.push(M),M}return i[L]}if(!s)for(h=0;h<o;h++)d(h);c.each(function(w,L){var R=tt(w).slice();if(1===R.length&&!j(R[0])&&R[0]<0)c.set(L,!1);else{var E=c.set(L,[]);D(R,function(M,k){var B=j(M)?u.get(M):M;null!=B&&B<o&&(E[k]=B,p(d(B),L,k))})}});var y=0;function p(w,L,R){null!=Fg.get(L)?w.otherDims[L]=R:(w.coordDim=L,w.coordDimIndex=R,a.set(L,!0))}D(r,function(w){var L,R,E,M;if(j(w))L=w,M={};else{L=(M=w).name;var k=M.ordinalMeta;M.ordinalMeta=null,(M=N({},M)).ordinalMeta=k,R=M.dimsDef,E=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var B=c.get(L);if(!1!==B){if(!(B=tt(B)).length)for(var F=0;F<(R&&R.length||1);F++){for(;y<o&&null!=d(y).coordDim;)y++;y<o&&B.push(y++)}D(B,function(K,Z){var U=d(K);if(l&&null!=M.type&&(U.type=M.type),p(Fe(U,M),L,Z),null==U.name&&R){var Y=R[Z];!re(Y)&&(Y={name:Y}),U.name=U.displayName=Y.name,U.defaultTooltip=Y.defaultTooltip}E&&Fe(U.otherDims,E)})}});var g=e.generateCoord,m=e.generateCoordCount,_=null!=m;m=g?m||1:0;var S=g||"value";function b(w){null==w.name&&(w.name=w.coordDim)}if(s)D(i,function(w){b(w)}),i.sort(function(w,L){return w.storeDimIndex-L.storeDimIndex});else for(var C=0;C<o;C++){var x=d(C);null==x.coordDim&&(x.coordDim=wL(S,a,_),x.coordDimIndex=0,(!g||m<=0)&&(x.isExtraCoord=!0),m--),b(x),null==x.type&&(1===zg(t,C)||x.isExtraCoord&&(null!=x.otherDims.itemName||null!=x.otherDims.seriesName))&&(x.type="ordinal")}return function xL(t){for(var e=ye(),r=0;r<t.length;r++){var n=t[r],a=n.name,i=e.get(a)||0;i>0&&(n.name=a+(i-1)),i++,e.set(a,i)}}(i),new z0({source:t,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function wL(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var DL=function(){return function t(e){this.coordSysDims=[],this.axisMap=ye(),this.categoryAxisMap=ye(),this.coordSysName=e}}(),AL={cartesian2d:function(t,e,r,n){var a=t.getReferringComponents("xAxis",_n).models[0],i=t.getReferringComponents("yAxis",_n).models[0];e.coordSysDims=["x","y"],r.set("x",a),r.set("y",i),si(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),si(i)&&(n.set("y",i),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var a=t.getReferringComponents("singleAxis",_n).models[0];e.coordSysDims=["single"],r.set("single",a),si(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var a=t.getReferringComponents("polar",_n).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",o),si(i)&&(n.set("radius",i),e.firstCategoryDimIndex=0),si(o)&&(n.set("angle",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var a=t.ecModel,i=a.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();D(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];r.set(f,u),si(u)&&(n.set(f,u),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,n){var a=t.getReferringComponents("matrix",_n).models[0];e.coordSysDims=["x","y"];var i=a.getDimensionModel("x"),o=a.getDimensionModel("y");r.set("x",i),r.set("y",o),n.set("x",i),n.set("y",o)}};function si(t){return"category"===t.get("type")}function Z0(t,e,r){var i,o,s,n=(r=r||{}).byIndex,a=r.stackedCoordDimension;!function LL(t){return!V0(t.schema)}(e)?(i=(o=e.schema).dimensions,s=e.store):i=e;var u,f,c,v,l=!(!t||!t.get("stack"));if(D(i,function(m,_){j(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!f&&"ordinal"!==m.type&&"time"!==m.type&&(!a||a===m.coordDim)&&(f=m))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+t.id,v="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var h=f.coordDim,d=f.type,y=0;D(i,function(m){m.coordDim===h&&y++});var p={name:c,coordDim:h,coordDimIndex:y,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},g={name:v,coordDim:v,coordDimIndex:y+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(v,d),g.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(g)):(i.push(p),i.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:c}}function K0(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function vo(t){return Ar(t)+2}function $0(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function Lh(t,e){return t>=e[0]&&t<=e[1]}var GL=function(){function t(){this.normalize=Q0,this.scale=J0}return t.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=we(e.normalize,e),this.scale=we(e.scale,e)):(this.normalize=Q0,this.scale=J0)},t}();function Q0(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function J0(t,e){return t*(e[1]-e[0])+e[0]}function e_(t,e,r){var n=Math.log(t);return[Math.log(r?e[0]:Math.max(0,e[0]))/n,Math.log(r?e[1]:Math.max(0,e[1]))/n]}var t_=function(){function t(e){this._calculator=new GL,this._setting=e||{},this._extent=[1/0,-1/0];var r=null;r&&(this._brkCtx=r.createScaleBreakContext(),this._brkCtx.update(this._extent))}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype._innerUnionExtent=function(e){var r=this._extent;this._innerSetExtent(e[0]<r[0]?e[0]:r[0],e[1]>r[1]?e[1]:r[1])},t.prototype.unionExtentFromData=function(e,r){this._innerUnionExtent(e.getApproximateExtent(r))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){this._innerSetExtent(e,r)},t.prototype._innerSetExtent=function(e,r){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(r)||(n[1]=r),this._brkCtx&&this._brkCtx.update(n)},t.prototype.setBreaksFromOption=function(e){var r=null;r&&this._innerSetBreak(r.parseAxisBreakOption(e,we(this.parse,this)))},t.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},t.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.hasBreaks=function(){return!!this._brkCtx&&this._brkCtx.hasBreaks()},t.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();fs(t_);const xa=t_;var zL=0,VL=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++zL,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,n=r.data,a=n&&oe(n,WL);return new t({categories:a,needCollect:!a,deduplication:!1!==r.dedplication})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!j(e)&&!n)return e;if(n&&!this._deduplication)return this.categories[r=this.categories.length]=e,this._onCollect&&this._onCollect(e,r),r;var a=this._getOrCreateMap();return null==(r=a.get(e))&&(n?(this.categories[r=this.categories.length]=e,a.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ye(this.categories))},t}();function WL(t){return re(t)&&null!=t.value?t.value:t+""}const r_=VL;var n_=function(t){function e(r){var n=t.call(this,r)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new r_({})),W(a)&&(a=new r_({categories:oe(a,function(i){return re(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return(0,J.C6)(e,t),e.prototype.parse=function(r){return null==r?NaN:j(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return Lh(r,this._extent)&&r>=0&&r<this._ordinalMeta.categories.length},e.prototype.normalize=function(r){return r=this._getTickNumber(r),this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(this._calculator.scale(r,this._extent)),this.getRawOrdinalNumber(r)},e.prototype.getTicks=function(){for(var r=[],n=this._extent,a=n[0];a<=n[1];)r.push({value:a}),a++;return r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(null!=r){for(var n=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];a[o]=u,i[u]=o}for(var f=0;o<s;++o){for(;null!=i[f];)f++;a.push(f),i[f]=o}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),a=this._ordinalMeta.categories[n];return null==a?"":a+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(xa);xa.registerClass(n_);const UL=n_;var Pn=Mr,a_=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return(0,J.C6)(e,t),e.prototype.parse=function(r){return null==r||""===r?NaN:Number(r)},e.prototype.contain=function(r){return Lh(r,this._extent)},e.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=vo(r)},e.prototype.getTicks=function(r){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=null,l=[];if(!n)return l;if("only_break"===(r=r||{}).breakTicks&&s)return s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l;a[0]<i[0]&&l.push(r.expandToNicedExtent?{value:Pn(i[0]-n,o)}:{value:a[0]});for(var f=function(d,y){return Math.round((y-d)/n)},c=i[0];c<=i[1];){if(l.push({value:c}),c=Pn(c+n,o),this._brkCtx){var v=this._brkCtx.calcNiceTickMultiple(c,f);v>=0&&(c=Pn(c+v*n,o))}if(l.length>0&&c===l[l.length-1].value)break;if(l.length>1e4)return[]}var h=l.length?l[l.length-1].value:i[1];return a[1]>h&&l.push(r.expandToNicedExtent?{value:Pn(h+n,o)}:{value:a[1]}),s&&s.pruneTicksByBreak(r.pruneByBreak,l,this._brkCtx.breaks,function(d){return d.value},this._interval,this._extent),"none"!==r.breakTicks&&s&&s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l},e.prototype.getMinorTicks=function(r){for(var n=this.getTicks({expandToNicedExtent:!0}),a=[],i=this.getExtent(),o=1;o<n.length;o++){var s=n[o],l=n[o-1];if(!l.break&&!s.break){for(var u=0,f=[],v=(s.value-l.value)/r,h=vo(v);u<r-1;){var d=Pn(l.value+(u+1)*v,h);d>i[0]&&d<i[1]&&f.push(d),u++}var y=It();y&&y.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(p){return p},this._interval,i),a.push(f)}}return a},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(r,n){if(null==r)return"";var a=n&&n.precision;return null==a?a=Ar(r.value)||0:"auto"===a&&(a=this._intervalPrecision),Jf(Pn(r.value,a,!0))},e.prototype.calcNiceTicks=function(r,n,a){r=r||5;var i=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,i.reverse(),this._innerSetExtent(i[0],i[1]),i=this._extent.slice());var s=function FL(t,e,r,n,a){var i={},o=i.interval=Qu(e/r,!0);null!=n&&o<n&&(o=i.interval=n),null!=a&&o>a&&(o=i.interval=a);var s=i.intervalPrecision=vo(o);return function HL(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),$0(t,0,e),$0(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(i.niceTickExtent=[Mr(Math.ceil(t[0]/o)*o,s),Mr(Math.floor(t[1]/o)*o,s)],t),i}(i,o,r,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(r){var n=this._extent.slice();if(n[0]===n[1])if(0!==n[0]){var a=Math.abs(n[0]);r.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;isFinite(n[1]-n[0])||(n[0]=0,n[1]=1),this._innerSetExtent(n[0],n[1]),n=this._extent.slice(),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval,s=this._intervalPrecision;r.fixMin||(n[0]=Pn(Math.floor(n[0]/o)*o,s)),r.fixMax||(n[1]=Pn(Math.ceil(n[1]/o)*o,s)),this._innerSetExtent(n[0],n[1])},e.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},e.type="interval",e}(xa);xa.registerClass(a_);const bl=a_;function Ih(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function Eh(t){return t.dim+t.index}function o_(t){var e=function KL(t){var e={};D(t,function(l){var f=l.coordinateSystem.getBaseAxis();if("time"===f.type||"value"===f.type)for(var c=l.getData(),v=f.dim+"_"+f.index,h=c.getDimensionIndex(c.mapDimension(f.dim)),d=c.getStore(),y=0,p=d.count();y<p;++y){var g=d.get(h,y);e[v]?e[v].push(g):e[v]=[g]}});var r={};for(var n in e)if(e.hasOwnProperty(n)){var a=e[n];if(a){a.sort(function(l,u){return l-u});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=null===i?s:Math.min(i,s))}r[n]=i}}return r}(t),r=[];return D(t,function(n){var s,i=n.coordinateSystem.getBaseAxis(),o=i.getExtent();if("category"===i.type)s=i.getBandWidth();else if("value"===i.type||"time"===i.type){var u=e[i.dim+"_"+i.index],f=Math.abs(o[1]-o[0]),c=i.scale.getExtent(),v=Math.abs(c[1]-c[0]);s=u?f/v*u:f}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var d=Ie(n.get("barWidth"),s),y=Ie(n.get("barMaxWidth"),s),p=Ie(n.get("barMinWidth")||(function u_(t){return t.pipelineContext&&t.pipelineContext.large}(n)?.5:1),s),g=n.get("barGap"),m=n.get("barCategoryGap"),_=n.get("defaultBarGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:y,barMinWidth:p,barGap:g,barCategoryGap:m,defaultBarGap:_,axisKey:Eh(i),stackId:Ih(n)})}),function s_(t){var e={};D(t,function(n,a){var i=n.axisKey,o=n.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},l=s.stacks;e[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var v=n.barMinWidth;v&&(l[u].minWidth=v);var h=n.barGap;null!=h&&(s.gap=h);var d=n.barCategoryGap;null!=d&&(s.categoryGap=d)});var r={};return D(e,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(null==s){var l=Ae(i).length;s=Math.max(35-4*l,15)+"%"}var u=Ie(s,o),f=Ie(n.gap,1),c=n.remainedWidth,v=n.autoWidthCount,h=(c-u)/(v+(v-1)*f);h=Math.max(h,0),D(i,function(g){var m=g.maxWidth,_=g.minWidth;if(g.width){var S=g.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),g.width=S,c-=S+f*S,v--}else S=h,m&&m<S&&(S=Math.min(m,c)),_&&_>S&&(S=_),S!==h&&(g.width=S,c-=S+f*S,v--)}),h=(c-u)/(v+(v-1)*f),h=Math.max(h,0);var y,d=0;D(i,function(g,m){g.width||(g.width=h),y=g,d+=g.width*(1+f)}),y&&(d-=y.width*f);var p=-d/2;D(i,function(g,m){r[a][m]=r[a][m]||{bandWidth:o,offset:p,width:g.width},p+=g.width*(1+f)})}),r}(r)}var f_=function(t){function e(r){var n=t.call(this,r)||this;return n.type="time",n}return(0,J.C6)(e,t),e.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return Hi(r.value,Cg[function F1(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Fi(this._minLevelUnit))]||Cg.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(r,n,a){var i=this.getSetting("useUTC");return function H1(t,e,r,n,a){var i=null;if(j(r))i=r;else if(ce(r)){var o={time:t.time,level:t.time.level},s=null;s&&s.makeAxisLabelFormatterParamBreak(o,t.break),i=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=Za(t.value,a);i=r[f][f][0]}}return Hi(new Date(t.value),i,a,n)}(r,n,a,this.getSetting("locale"),i)},e.prototype.getTicks=function(r){r=r||{};var a=this._extent,i=null,o=[];if(!this._interval)return o;var s=this.getSetting("useUTC");var l=Za(a[1],s);o.push({value:a[0],time:{level:0,upperTimeUnit:l,lowerTimeUnit:l}});var u=function iP(t,e,r,n,a,i){var s=k1,l=0;function u(M,k,B,F,K,Z,U){for(var Y=function aP(t,e){var r=new Date(0);r[t](1);var n=r.getTime();r[t](1+e);var a=r.getTime()-n;return function(i,o){return Math.max(0,Math.round((o-i)/a))}}(K,M),q=k,z=new Date(q);q<B&&q<=n[1]&&(U.push({value:q}),!(l++>1e4));)if(z[K](z[F]()+M),q=z.getTime(),i){var ge=i.calcNiceTickMultiple(q,Y);ge>0&&(z[K](z[F]()+ge*M),q=z.getTime())}U.push({value:q,notAdd:!0})}function f(M,k,B){var F=[],K=!k.length;if(!c_(Fi(M),n[0],n[1],r)){K&&(k=[{value:nP(n[0],M,r)},{value:n[1]}]);for(var Z=0;Z<k.length-1;Z++){var U=k[Z].value,Y=k[Z+1].value;if(U!==Y){var q=void 0,z=void 0,ge=void 0;switch(M){case"year":q=Math.max(1,Math.round(e/$t/365)),z=bg(r),ge=G1(r);break;case"half-year":case"quarter":case"month":q=eP(e),z=Xf(r),ge=xg(r);break;case"week":case"half-week":case"day":q=JL(e),z=Zf(r),ge=Tg(r);break;case"half-day":case"quarter-day":case"hour":q=tP(e),z=Kf(r),ge=wg(r);break;case"minute":q=h_(e,!0),z=jf(r),ge=Dg(r);break;case"second":q=h_(e,!1),z=$f(r),ge=Mg(r);break;case"millisecond":q=rP(e),z=Qf(r),ge=Ag(r)}Y>=n[0]&&U<=n[1]&&u(q,U,Y,z,ge,0,F),"year"===M&&B.length>1&&0===Z&&B.unshift({value:B[0].value-q})}}for(Z=0;Z<F.length;Z++)B.push(F[Z])}}for(var c=[],v=[],h=0,d=0,y=0;y<s.length;++y){var p=Fi(s[y]);if(N1(s[y])&&(f(s[y],c[c.length-1]||[],v),p!==(s[y+1]?Fi(s[y+1]):null))){if(v.length){d=h,v.sort(function(M,k){return M.value-k.value});for(var m=[],_=0;_<v.length;++_){var S=v[_].value;(0===_||v[_-1].value!==S)&&(m.push(v[_]),S>=n[0]&&S<=n[1]&&h++)}var b=a/e;if(h>1.5*b&&d>b/1.5||(c.push(m),h>b||t===s[y]))break}v=[]}}var C=We(oe(c,function(M){return We(M,function(k){return k.value>=n[0]&&k.value<=n[1]&&!k.notAdd})}),function(M){return M.length>0}),x=[],T=C.length-1;for(y=0;y<C.length;++y)for(var w=C[y],L=0;L<w.length;++L){var R=Za(w[L].value,r);x.push({value:w[L].value,time:{level:T-y,upperTimeUnit:R,lowerTimeUnit:R}})}x.sort(function(M,k){return M.value-k.value});var E=[];for(y=0;y<x.length;++y)(0===y||x[y].value!==x[y-1].value)&&E.push(x[y]);return E}(this._minLevelUnit,this._approxInterval,s,a,this._getExtentSpanWithBreaks(),this._brkCtx);o=o.concat(u);var f=Za(a[1],s);o.push({value:a[1],time:{level:0,upperTimeUnit:f,lowerTimeUnit:f}});this.getSetting("useUTC");var v=Gt.length-1,h=0;return D(o,function(d){v=Math.min(v,Ce(Gt,d.time.upperTimeUnit)),h=Math.max(h,d.time.level)}),o},e.prototype.calcNiceExtent=function(r){var n=this.getExtent();if(n[0]===n[1]&&(n[0]-=$t,n[1]+=$t),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-$t}this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},e.prototype.calcNiceTicks=function(r,n,a){r=r||10;var i=this._getExtentSpanWithBreaks();this._approxInterval=i/r,null!=n&&this._approxInterval<n&&(this._approxInterval=n),null!=a&&this._approxInterval>a&&(this._approxInterval=a);var o=xl.length,s=Math.min(function(t,e,r,n){for(;r<n;){var a=r+n>>>1;t[a][1]<e?r=a+1:n=a}return r}(xl,this._approxInterval,0,o),o-1);this._interval=xl[s][1],this._intervalPrecision=vo(this._interval),this._minLevelUnit=xl[Math.max(s-1,0)][0]},e.prototype.parse=function(r){return Re(r)?r:+Ur(r)},e.prototype.contain=function(r){return Lh(r,this._extent)},e.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},e.type="time",e}(bl),xl=[["second",1e3],["minute",6e4],["hour",Ni],["quarter-day",6*Ni],["half-day",12*Ni],["day",1.2*$t],["half-week",3.5*$t],["week",7*$t],["month",31*$t],["quarter",95*$t],["half-year",Sg/2],["year",Sg]];function c_(t,e,r,n){return Rs(new Date(e),t,n).getTime()===Rs(new Date(r),t,n).getTime()}function JL(t,e){return(t/=$t)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function eP(t){return(t/=30*$t)>6?6:t>3?3:t>2?2:1}function tP(t){return(t/=Ni)>12?12:t>6?6:t>3.5?4:t>2?2:1}function h_(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function rP(t){return Qu(t,!0)}function nP(t,e,r){var n=Math.max(0,Ce(Gt,e)-1);return Rs(new Date(t),Gt[n],r).getTime()}xa.registerClass(f_);const oP=f_;var kh=Mr,sP=Math.floor,lP=Math.ceil,Tl=Math.pow,wl=Math.log,v_=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new bl,r}return(0,J.C6)(e,t),e.prototype.getTicks=function(r){r=r||{};var n=this._extent.slice(),a=this._originalScale.getExtent(),i=t.prototype.getTicks.call(this,r),o=this.base,s=this._originalScale._innerGetBreaks(),l=null;return oe(i,function(u){var h,f=u.value,c=null,v=Tl(o,f);if(f===n[0]&&this._fixMin?c=a[0]:f===n[1]&&this._fixMax&&(c=a[1]),l){var d=l.getTicksLogTransformBreak(u,o,s,Dl);h=d.vBreak,null==c&&(c=d.brkRoundingCriterion)}return null!=c&&(v=Dl(v,c)),{value:v,break:h}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(r,n){this._originalScale.setExtent(r,n);var a=e_(this.base,[r,n]);t.prototype.setExtent.call(this,a[0],a[1])},e.prototype.getExtent=function(){var r=this.base,n=t.prototype.getExtent.call(this);n[0]=Tl(r,n[0]),n[1]=Tl(r,n[1]);var a=this._originalScale.getExtent();return this._fixMin&&(n[0]=Dl(n[0],a[0])),this._fixMax&&(n[1]=Dl(n[1],a[1])),n},e.prototype.unionExtentFromData=function(r,n){this._originalScale.unionExtentFromData(r,n);var a=e_(this.base,r.getApproximateExtent(n),!0);this._innerUnionExtent(a)},e.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent.slice(),a=this._getExtentSpanWithBreaks();if(isFinite(a)&&!(a<=0)){var i=Zd(a);for(r/a*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[kh(lP(n[0]/i)*i),kh(sP(n[1]/i)*i)];this._interval=i,this._intervalPrecision=vo(i),this._niceExtent=s}},e.prototype.calcNiceExtent=function(r){t.prototype.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},e.prototype.contain=function(r){return r=wl(r)/wl(this.base),t.prototype.contain.call(this,r)},e.prototype.normalize=function(r){return r=wl(r)/wl(this.base),t.prototype.normalize.call(this,r)},e.prototype.scale=function(r){return r=t.prototype.scale.call(this,r),Tl(this.base,r)},e.prototype.setBreaksFromOption=function(r){var n=null;if(n){var a=n.logarithmicParseBreaksFromOption(r,this.base,we(this.parse,this)),o=a.parsedLogged;this._originalScale._innerSetBreak(a.parsedOriginal),this._innerSetBreak(o)}},e.type="log",e}(bl);function Dl(t,e){return kh(t,Ar(e))}xa.registerClass(v_);const uP=v_;var fP=function(){function t(e,r,n){this._prepareParams(e,r,n)}return t.prototype._prepareParams=function(e,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&r.getNeedCrossZero&&r.getNeedCrossZero();var i=r.get("min",!0);null==i&&(i=r.get("startValue",!0));var o=this._modelMinRaw=i;ce(o)?this._modelMinNum=Ml(e,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=Ml(e,o));var s=this._modelMaxRaw=r.get("max",!0);if(ce(s)?this._modelMaxNum=Ml(e,s({min:n[0],max:n[1]})):"dataMax"!==s&&(this._modelMaxNum=Ml(e,s)),a)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=W(l)?l:[l||0,l||0];this._boundaryGapInner="boolean"==typeof u[0]||"boolean"==typeof u[1]?[0,0]:[mn(u[0],1),mn(u[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,r=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=e?null:n-r||Math.abs(r),s="dataMin"===this._modelMinRaw?r:this._modelMinNum,l="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,u=null!=s,f=null!=l;null==s&&(s=e?a?0:NaN:r-i[0]*o),null==l&&(l=e?a?a-1:NaN:n+i[1]*o),(null==s||!isFinite(s))&&(s=NaN),(null==l||!isFinite(l))&&(l=NaN);var c=hi(s)||hi(l)||e&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,h=this._determinedMax;return null!=v&&(s=v,u=!0),null!=h&&(l=h,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},t.prototype.modifyDataMinMax=function(e,r){this[hP[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){this[cP[e]]=r},t.prototype.freeze=function(){this.frozen=!0},t}(),cP={min:"_determinedMin",max:"_determinedMax"},hP={min:"_dataMin",max:"_dataMax"};function Ml(t,e){return null==e?null:hi(e)?NaN:t.parse(e)}function yP(t,e){var r=e,n=function pP(t,e){var r=t.type,n=function vP(t,e,r){var n=t.rawExtentInfo;return n||(n=new fP(t,e,r),t.rawExtentInfo=n,n)}(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var a=n.min,i=n.max,o=e.ecModel;if(o&&"time"===r){var s=function i_(t,e){var r=[];return e.eachSeriesByType(t,function(n){(function l_(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type})(n)&&r.push(n)}),r}("bar",o),l=!1;if(D(s,function(c){l=l||c.getBaseAxis()===e.axis}),l){var u=o_(s),f=function gP(t,e,r,n){var a=r.axis.getExtent(),i=Math.abs(a[1]-a[0]),o=function jL(t,e,r){if(t&&e){var n=t[Eh(e)];return null!=n&&null!=r?n[Ih(r)]:n}}(n,r.axis);if(void 0===o)return{min:t,max:e};var s=1/0;D(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;D(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-t,v=f/(1-(s+l)/i)-f;return{min:t-=v*(s/u),max:e+=v*(l/u)}}(a,i,e,u);a=f.min,i=f.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}(t,r),a=n.extent,i=r.get("splitNumber");t instanceof uP&&(t.base=r.get("logBase"));var o=t.type,s=r.get("interval"),l="interval"===o||"time"===o;t.setBreaksFromOption(function SP(t){t.get("breaks",!0)}(r)),t.setExtent(a[0],a[1]),t.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function po(t){var e=t.getLabelModel().get("formatter");if("time"===t.type){var r=function O1(t){return j(t)||ce(t)?t:function B1(t){t=t||{};var e={},r=!0;return D(Gt,function(n){r&&(r=null==t[n])}),D(Gt,function(n,a){var i=t[n];e[n]={};for(var o=null,s=a;s>=0;s--){var l=Gt[s],u=re(i)&&!W(i)?i[l]:i,f=void 0;W(u)?o=(f=u.slice())[0]||"":j(u)?f=[o=u]:(null==o?o=Ls[n]:I1[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[n][l]=f}}),e}(t)}(e);return function(a,i){return t.scale.getFormattedLabel(a,i,r)}}if(j(e))return function(a){var i=t.scale.getLabel(a);return e.replace("{value}",i??"")};if(ce(e)){if("category"===t.type)return function(a,i){return e(Al(t,a),a.value-t.scale.getExtent()[0],null)};var n=null;return function(a,i){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,a.break)),e(Al(t,a),i,o)}}return function(a){return t.scale.getLabel(a)}}function Al(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Bh(t){return t.get("interval")??"auto"}function d_(t){return"category"===t.type&&0===Bh(t.getLabelModel())}function Ll(t){return"middle"===t||"center"===t}var bP=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}();function xP(t){return function EL(t,e,r){r=r||{};var a,n=e.getSourceManager(),i=!1;t?(i=!0,a=gc(t)):i=(a=n.getSource()).sourceFormat===zt;var o=function ML(t){var e=t.get("coordinateSystem"),r=new DL(e),n=AL[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}(e),s=function RL(t,e){var a,r=t.get("coordinateSystem"),n=Es.get(r);return e&&e.coordSysDims&&(a=oe(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=function hL(t){return"category"===t?"ordinal":"time"===t?"time":"float"}(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}(e,o),l=r.useEncodeDefaulter,u=ce(l)?l:l?Ue(ow,s,e):null,c=Ah(a,{coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i}),v=function IL(t,e,r){var n,a;return r&&D(t,function(i,o){var l=r.categoryAxisMap.get(i.coordDim);l&&(null==n&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),null!=i.otherDims.itemName&&(a=!0)}),!a&&null!=n&&(t[n].otherDims.itemName=0),n}(c.dimensions,r.createInvertedIndices,o),h=i?null:n.getSharedDataStore(c),d=Z0(e,{schema:c,store:h}),y=new Mh(c,e);y.setCalculationInfo(d);var p=null!=v&&function kL(t){if(t.sourceFormat===zt){var e=function OL(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!W(Li(e))}}(a)?function(g,m,_,S){return S===v?_:this.defaultDimValueGetter(g,m,_,S)}:null;return y.hasItemOption=!1,y.initData(i?a:h,null,p),y}(null,t)}var TP={isDimensionStacked:K0,enableDataStack:Z0,getStackedDimension:function PL(t,e){return K0(t,e)?t.getCalculationInfo("stackResultDimension"):e}};function wP(t,e){var r=e;e instanceof Qe||(r=new Qe(e));var n=function mP(t,e){if(e=e||t.get("type"))switch(e){case"category":return new UL({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new oP({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(xa.getClass(e)||bl)}}(r);return n.setExtent(t[0],t[1]),yP(n,r),n}function DP(t){or(t,bP)}function MP(t,e){return jr(t,null,null,"normal"!==(e=e||{}).state)}function p_(t,e){return Math.abs(t-e)<1e-8}function g_(t,e,r){var n=0,a=t[0];if(!a)return!1;for(var i=1;i<t.length;i++){var o=t[i];n+=Zr(a[0],a[1],o[0],o[1],e,r),a=o}var s=t[0];return(!p_(a[0],s[0])||!p_(a[1],s[1]))&&(n+=Zr(a[0],a[1],s[0],s[1],e,r)),0!==n}var LP=[];function Nh(t,e){for(var r=0;r<t.length;r++)Ot(t[r],t[r],e)}function y_(t,e,r,n){for(var a=0;a<t.length;a++){var i=t[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(cn(e,e,i),hn(r,r,i))}}var m_=function(){function t(e){this.name=e}return t.prototype.setCenter=function(e){this._center=e},t.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},t}(),__=function(){return function t(e,r){this.type="polygon",this.exterior=e,this.interiors=r}}(),S_=function(){return function t(e){this.type="linestring",this.points=e}}(),RP=function(t){function e(r,n,a){var i=t.call(this,r)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return(0,J.C6)(e,t),e.prototype.calcCenter=function(){for(var n,r=this.geometries,a=0,i=0;i<r.length;i++){var o=r[i],s=o.exterior,l=s&&s.length;l>a&&(n=o,a=l)}if(n)return function PP(t){for(var e=0,r=0,n=0,a=t.length,i=t[a-1][0],o=t[a-1][1],s=0;s<a;s++){var l=t[s][0],u=t[s][1],f=i*u-l*o;e+=f,r+=(i+l)*f,n+=(o+u)*f,i=l,o=u}return e?[r/e/3,n/e/3,e]:[t[0][0]||0,t[0][1]||0]}(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var a=[1/0,1/0],i=[-1/0,-1/0];return D(this.geometries,function(s){"polygon"===s.type?y_(s.exterior,a,i,r):D(s.points,function(l){y_(l,a,i,r)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new pe(a[0],a[1],i[0]-a[0],i[1]-a[1]),r||(this._rect=n),n},e.prototype.contain=function(r){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var i=0,o=a.length;i<o;i++){var s=a[i];if("polygon"===s.type){var u=s.interiors;if(g_(s.exterior,r[0],r[1])){for(var f=0;f<(u?u.length:0);f++)if(g_(u[f],r[0],r[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(r,n,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var l=new pe(r,n,a,i),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++){var v=f[c];"polygon"===v.type?(Nh(v.exterior,u),D(v.interiors,function(h){Nh(h,u)})):D(v.points,function(h){Nh(h,u)})}(o=this._rect).copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(r){null==r&&(r=this.name);var n=new e(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(m_);function Fh(t,e,r){for(var n=0;n<t.length;n++)t[n]=C_(t[n],e[n],r)}function C_(t,e,r){for(var n=[],a=e[0],i=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),a=s+=a,i=l+=i,n.push([s/r,l/r])}return n}function b_(t,e){return t=function IP(t){if(!t.UTF8Encoding)return t;var e=t,r=e.UTF8Scale;return null==r&&(r=1024),D(e.features,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=C_(s,o,r);break;case"Polygon":case"MultiLineString":Fh(s,o,r);break;case"MultiPolygon":D(s,function(l,u){return Fh(l,o[u],r)})}}),e.UTF8Encoding=!1,e}(t),oe(We(t.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,a=r.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new __(o[0],o.slice(1)));break;case"MultiPolygon":D(a.coordinates,function(l){l[0]&&i.push(new __(l[0],l.slice(1)))});break;case"LineString":i.push(new S_([a.coordinates]));break;case"MultiLineString":i.push(new S_(a.coordinates))}var s=new RP(n[e||"name"],i,n.cp);return s.properties=n,s})}function EP(t,e,r,n,a,i,o,s){return new $e({style:{text:t,font:e,align:r,verticalAlign:n,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}}).getBoundingRect()}!function(t){function e(r,n){var a=t.call(this,r)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}(0,J.C6)(e,t),e.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=pi(LP),o=r;o&&!o.isGeoSVGGraphicRoot;)Nn(i,o.getLocalTransform(),i),o=o.parent;return Fn(i,i),Ot(a,a,i),a}}(m_);var kP=Ee(),go=Ee();function Pl(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function x_(t,e){var r=oe(e,function(n){return t.scale.parse(n)});return"time"===t.type&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function T_(t,e,r){var s,l,n=zP(t),a=Bh(e),i=1===r.kind;if(!i){var o=D_(n,a);if(o)return o}ce(a)?s=L_(t,a):(l="auto"===a?function VP(t,e){if(1===e.kind){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return go(t).autoInterval=r,!0}),r}return go(t).autoInterval??(go(t).autoInterval=t.calculateCategoryInterval(e))}(t,r):a,s=A_(t,l));var u={labels:s,labelCategoryInterval:l};return i?r.out.noPxChangeTryDetermine.push(function(){return Hh(n,a,u),!0}):Hh(n,a,u),u}var GP=w_("axisTick"),zP=w_("axisLabel");function w_(t){return function(r){return go(r)[t]||(go(r)[t]={list:[]})}}function D_(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function Hh(t,e,r){return t.list.push({key:e,value:r}),r}function UP(t,e,r){return null==M_(t,e,r)}function M_(t,e,r){var n=kP(t.model),a=t.getExtent(),i=n.lastAutoInterval,o=n.lastTickCount;if(null!=i&&null!=o&&Math.abs(i-e)<=1&&Math.abs(o-r)<=1&&i>e&&n.axisExtent0===a[0]&&n.axisExtent1===a[1])return i;n.lastTickCount=r,n.lastAutoInterval=e,n.axisExtent0=a[0],n.axisExtent1=a[1]}function A_(t,e,r){var n=po(t),a=t.scale,i=a.getExtent(),o=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],f=a.count();0!==u&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=d_(t),v=o.get("showMinLabel")||c,h=o.get("showMaxLabel")||c;v&&u!==i[0]&&y(i[0]);for(var d=u;d<=i[1];d+=l)y(d);function y(p){var g={value:p};s.push(r?p:{formattedLabel:n(g),rawLabel:a.getLabel(g),tickValue:p,time:void 0,break:void 0})}return h&&d-l!==i[1]&&y(i[1]),s}function L_(t,e,r){var n=t.scale,a=po(t),i=[];return D(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&i.push(r?l:{formattedLabel:a(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),i}var P_=[0,1],YP=function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return e>=n&&e<=a},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return Yd(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this._extent,a=this.scale;return e=a.normalize(a.parse(e)),this.onBand&&"ordinal"===a.type&&R_(n=n.slice(),a.count()),us(e,P_,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,a=this.scale;this.onBand&&"ordinal"===a.type&&R_(n=n.slice(),a.count());var i=us(e,n,P_,r);return this.scale.scale(i)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){var r=(e=e||{}).tickModel||this.getTickModel(),i=oe(function BP(t,e,r){var n=t.getTickModel().get("customValues");if(n){var a=t.scale.getExtent();return{ticks:We(x_(t,n),function(o){return o>=a[0]&&o<=a[1]})}}return"category"===t.type?function FP(t,e){var i,o,r=GP(t),n=Bh(e),a=D_(r,n);if(a)return a;if((!e.get("show")||t.scale.isBlank())&&(i=[]),ce(n))i=L_(t,n,!0);else if("auto"===n){var s=T_(t,t.getLabelModel(),Pl(2));o=s.labelCategoryInterval,i=oe(s.labels,function(l){return l.tickValue})}else i=A_(t,o=n,!0);return Hh(r,n,{ticks:i,tickCategoryInterval:o})}(t,e):{ticks:oe(t.scale.getTicks(r),function(o){return o.value})}}(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(s){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this);return function XP(t,e,r,n){var a=e.length;if(t.onBand&&!r&&a){var o,i=t.getExtent();if(1===a)e[0].coord=i[0],e[0].onBand=!0,o=e[1]={coord:i[1],tickValue:e[0].tickValue,onBand:!0};else{var u=(e[a-1].coord-e[0].coord)/(e[a-1].tickValue-e[0].tickValue);D(e,function(h){h.coord-=u/2,h.onBand=!0});var f=t.scale.getExtent();e.push(o={coord:e[a-1].coord+u*(1+f[1]-e[a-1].tickValue),tickValue:f[1]+1,onBand:!0})}var c=i[0]>i[1];v(e[0].coord,i[0])&&(n?e[0].coord=i[0]:e.shift()),n&&v(i[0],e[0].coord)&&e.unshift({coord:i[0],onBand:!0}),v(i[1],o.coord)&&(n?o.coord=i[1]:e.pop()),n&&v(o.coord,i[1])&&e.push({coord:i[1],onBand:!0})}function v(h,d){return h=Mr(h),d=Mr(d),c?h>d:h<d}}(this,i,r.get("alignWithLabel"),e.clamp),i},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var r=this.model.getModel("minorTick").get("splitNumber");return r>0&&r<100||(r=5),oe(this.scale.getMinorTicks(r),function(i){return oe(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this)},t.prototype.getViewLabels=function(e){return function OP(t,e){var r=t.getLabelModel().get("customValues");if(r){var n=po(t),a=t.scale.getExtent();return{labels:oe(We(x_(t,r),function(s){return s>=a[0]&&s<=a[1]}),function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:t.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return"category"===t.type?function NP(t,e){var r=t.getLabelModel(),n=T_(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:n}(t,e):function HP(t){var e=t.scale.getTicks(),r=po(t);return{labels:oe(e,function(n,a){return{formattedLabel:r(n,a),rawLabel:t.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}(t)}(this,e=e||Pl(2)).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);0===n&&(n=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/n},t.prototype.calculateCategoryInterval=function(e){return function WP(t,e){var r=e.kind,n=function qP(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()}}(t),a=po(t),i=(n.axisRotate-n.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1;l>40&&(u=Math.max(1,Math.floor(l/40)));for(var c=s[0],v=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(v*Math.cos(i)),d=Math.abs(v*Math.sin(i)),y=0,p=0;c<=s[1];c+=u){var m,_=Bd(a({value:c}),n.font,"center","top");m=1.3*_.height,y=Math.max(y,1.3*_.width,7),p=Math.max(p,m,7)}var S=y/h,b=p/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var C=Math.max(0,Math.floor(Math.min(S,b)));return 1===r?(e.out.noPxChangeTryDetermine.push(we(UP,null,t,C,l)),C):M_(t,C,l)??C}(this,e=e||Pl(2))},t}();function R_(t,e){var a=(t[1]-t[0])/e/2;t[0]+=a,t[1]-=a}const ZP=YP;function KP(t){var e=He.extend(t);return He.registerClass(e),e}function jP(t){var e=er.extend(t);return er.registerClass(e),e}function $P(t){var e=Dn.extend(t);return Dn.registerClass(e),e}function QP(t){var e=tn.extend(t);return tn.registerClass(e),e}var yo=2*Math.PI,Ta=ra.CMD,JP=["top","right","bottom","left"];function eR(t,e,r,n,a){var i=r.width,o=r.height;switch(t){case"top":n.set(r.x+i/2,r.y-e),a.set(0,-1);break;case"bottom":n.set(r.x+i/2,r.y+o+e),a.set(0,1);break;case"left":n.set(r.x-e,r.y+o/2),a.set(-1,0);break;case"right":n.set(r.x+i+e,r.y+o/2),a.set(1,0)}}function tR(t,e,r,n,a,i,o,s,l){o-=t,s-=e;var u=Math.sqrt(o*o+s*s),f=(o/=u)*r+t,c=(s/=u)*r+e;if(Math.abs(n-a)%yo<1e-4)return l[0]=f,l[1]=c,u-r;if(i){var v=n;n=Xr(a),a=Xr(v)}else n=Xr(n),a=Xr(a);n>a&&(a+=yo);var h=Math.atan2(s,o);if(h<0&&(h+=yo),h>=n&&h<=a||h+yo>=n&&h+yo<=a)return l[0]=f,l[1]=c,u-r;var d=r*Math.cos(n)+t,y=r*Math.sin(n)+e,p=r*Math.cos(a)+t,g=r*Math.sin(a)+e,m=(d-o)*(d-o)+(y-s)*(y-s),_=(p-o)*(p-o)+(g-s)*(g-s);return m<_?(l[0]=d,l[1]=y,Math.sqrt(m)):(l[0]=p,l[1]=g,Math.sqrt(_))}function Rl(t,e,r,n,a,i,o,s){var l=a-t,u=i-e,f=r-t,c=n-e,v=Math.sqrt(f*f+c*c),d=(l*(f/=v)+u*(c/=v))/v;s&&(d=Math.min(Math.max(d,0),1));var y=o[0]=t+(d*=v)*f,p=o[1]=e+d*c;return Math.sqrt((y-a)*(y-a)+(p-i)*(p-i))}function I_(t,e,r,n,a,i,o){r<0&&(t+=r,r=-r),n<0&&(e+=n,n=-n);var s=t+r,l=e+n,u=o[0]=Math.min(Math.max(a,t),s),f=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(f-i)*(f-i))}var Sr=[];function rR(t,e,r){var n=I_(e.x,e.y,e.width,e.height,t.x,t.y,Sr);return r.set(Sr[0],Sr[1]),n}function nR(t,e,r){for(var s,l,n=0,a=0,i=0,o=0,u=1/0,f=e.data,c=t.x,v=t.y,h=0;h<f.length;){var d=f[h++];1===h&&(i=n=f[h],o=a=f[h+1]);var y=u;switch(d){case Ta.M:n=i=f[h++],a=o=f[h++];break;case Ta.L:y=Rl(n,a,f[h],f[h+1],c,v,Sr,!0),n=f[h++],a=f[h++];break;case Ta.C:y=ld(n,a,f[h++],f[h++],f[h++],f[h++],f[h],f[h+1],c,v,Sr),n=f[h++],a=f[h++];break;case Ta.Q:y=cd(n,a,f[h++],f[h++],f[h],f[h+1],c,v,Sr),n=f[h++],a=f[h++];break;case Ta.A:var p=f[h++],g=f[h++],m=f[h++],_=f[h++],S=f[h++],b=f[h++];h+=1;var C=!!(1-f[h++]);s=Math.cos(S)*m+p,l=Math.sin(S)*_+g,h<=1&&(i=s,o=l),y=tR(p,g,_,S,S+b,C,(c-p)*_/m+p,v,Sr),n=Math.cos(S+b)*m+p,a=Math.sin(S+b)*_+g;break;case Ta.R:y=I_(i=n=f[h++],o=a=f[h++],f[h++],f[h++],c,v,Sr);break;case Ta.Z:y=Rl(n,a,i,o,c,v,Sr,!0),n=i,a=o}y<u&&(u=y,r.set(Sr[0],Sr[1]))}return u}var Cr=new ve,ke=new ve,Ye=new ve,Nr=new ve,Fr=new ve;function E_(t,e){if(t){var r=t.getTextGuideLine(),n=t.getTextContent();if(n&&r){var a=t.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||JP,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,f=t.getComputedTransform(),c=f&&Fn([],f),v=e.get("length2")||0;u&&Ye.copy(u);for(var h=0;h<o.length;h++){eR(o[h],0,s,Cr,Nr),ve.scaleAndAdd(ke,Cr,Nr,v),ke.transform(c);var y=t.getBoundingRect(),p=u?u.distance(ke):t instanceof Ne?nR(ke,t.path,Ye):rR(ke,y,Ye);p<l&&(l=p,ke.transform(f),Ye.transform(f),Ye.toArray(i[0]),ke.toArray(i[1]),Cr.toArray(i[2]))}k_(i,e.get("minTurnAngle")),r.setShape({points:i})}}}var Il=[],Dt=new ve;function k_(t,e){if(e<=180&&e>0){e=e/180*Math.PI,Cr.fromArray(t[0]),ke.fromArray(t[1]),Ye.fromArray(t[2]),ve.sub(Nr,Cr,ke),ve.sub(Fr,Ye,ke);var r=Nr.len(),n=Fr.len();if(!(r<.001||n<.001)){Nr.scale(1/r),Fr.scale(1/n);var a=Nr.dot(Fr);if(Math.cos(e)<a){var o=Rl(ke.x,ke.y,Ye.x,Ye.y,Cr.x,Cr.y,Il,!1);Dt.fromArray(Il),Dt.scaleAndAdd(Fr,o/Math.tan(Math.PI-e));var s=Ye.x!==ke.x?(Dt.x-ke.x)/(Ye.x-ke.x):(Dt.y-ke.y)/(Ye.y-ke.y);if(isNaN(s))return;s<0?ve.copy(Dt,ke):s>1&&ve.copy(Dt,Ye),Dt.toArray(t[1])}}}}function aR(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,Cr.fromArray(t[0]),ke.fromArray(t[1]),Ye.fromArray(t[2]),ve.sub(Nr,ke,Cr),ve.sub(Fr,Ye,ke);var n=Nr.len(),a=Fr.len();if(!(n<.001||a<.001)&&(Nr.scale(1/n),Fr.scale(1/a),Nr.dot(e)<Math.cos(r))){var s=Rl(ke.x,ke.y,Ye.x,Ye.y,Cr.x,Cr.y,Il,!1);Dt.fromArray(Il);var l=Math.PI/2,f=l+Math.acos(Fr.dot(e))-r;if(f>=l)ve.copy(Dt,Ye);else{Dt.scaleAndAdd(Fr,s/Math.tan(Math.PI/2-f));var c=Ye.x!==ke.x?(Dt.x-ke.x)/(Ye.x-ke.x):(Dt.y-ke.y)/(Ye.y-ke.y);if(isNaN(c))return;c<0?ve.copy(Dt,ke):c>1&&ve.copy(Dt,Ye)}Dt.toArray(t[1])}}}function Gh(t,e,r,n){var a="normal"===r,i=a?t:t.ensureState(r);i.ignore=e;var o=n.get("smooth");o&&!0===o&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?t.useStyle(s):i.style=s}function iR(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var a=ko(n[0],n[1]),i=ko(n[1],n[2]);if(!a||!i)return t.lineTo(n[1][0],n[1][1]),void t.lineTo(n[2][0],n[2][1]);var o=Math.min(a,i)*r,s=Oo([],n[1],n[0],o/a),l=Oo([],n[1],n[2],o/i),u=Oo([],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],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)t.lineTo(n[f][0],n[f][1])}function O_(t,e,r){var n=t.getTextGuideLine(),a=t.getTextContent();if(a){for(var i=e.normal,o=i.get("show"),s=a.ignore,l=0;l<ms.length;l++){var u=ms[l],f=e[u],c="normal"===u;if(f){var v=f.get("show");if((c?s:se(a.states[u]&&a.states[u].ignore,s))||!se(v,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0),n&&Gh(n,!0,u,f);continue}n||(n=new eo,t.setTextGuideLine(n),!c&&(s||!o)&&Gh(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),Gh(n,!1,u,f)}}if(n){Fe(n.style,r),n.style.fill=null;var y=i.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=y||!1,n.buildPath=iR}}else n&&t.removeTextGuideLine()}function B_(t,e){for(var r={normal:t.getModel(e=e||"labelLine")},n=0;n<kr.length;n++){var a=kr[n];r[a]=t.getModel([a,e])}return r}var N_=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"];function kl(t,e,r){r=r||3,e?t.dirty|=r:t.dirty&=~r}function H_(t,e){return e=e||3,null==t.dirty||!!(t.dirty&e)}function Hr(t){if(t)return H_(t)&&G_(t,t.label,t),t}function G_(t,e,r){var n=e.getComputedTransform();t.transform=Yc(t.transform,n);var a=t.localRect=ro(t.localRect,e.getBoundingRect()),i=e.style,o=i.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=i.__marginType;null==f&&u&&(o=u,f=Ya.textMargin);for(var c=0;c<4;c++)zh[c]=f===Ya.minMargin&&l&&null!=l[c]?l[c]:s&&null!=s[c]?s[c]:o?o[c]:0;f===Ya.textMargin&&Wc(a,zh,!1,!1);var v=t.rect=ro(t.rect,a);return n&&v.applyTransform(n),f===Ya.minMargin&&Wc(v,zh,!1,!1),t.axisAligned=qc(n),(t.label=t.label||{}).ignore=e.ignore,kl(t,!1),kl(t,!0,2),t}var zh=[0,0,0,0];function Vh(t,e){for(var r=0;r<N_.length;r++){var n=N_[r];null==t[n]&&(t[n]=e[n])}return Hr(t)}function z_(t){var e=t.obb;return(!e||H_(t,2))&&(t.obb=e=e||new fm,e.fromBoundingRect(t.localRect,t.transform),kl(t,!1,2)),e}function Wh(t,e,r,n,a){var i=t.length,o=hm[e],s=vm[e];if(i<2)return!1;t.sort(function(w,L){return w.rect[o]-L.rect[o]});for(var u,l=0,f=!1,c=0,v=0;v<i;v++){var h=t[v],d=h.rect;(u=d[o]-l)<0&&(d[o]-=u,h.label[o]-=u,f=!0),c+=Math.max(-u,0),l=d[o]+d[s]}c>0&&a&&C(-c/i,0,i);var m,_,p=t[0],g=t[i-1];function S(){m=p.rect[o]-r,_=n-g.rect[o]-g.rect[s]}function b(w,L,R){if(w<0){var E=Math.min(L,-w);if(E>0){C(E*R,0,i);var M=E+w;M<0&&x(-M*R,1)}else x(-w*R,1)}}function C(w,L,R){0!==w&&(f=!0);for(var E=L;E<R;E++){var M=t[E];M.rect[o]+=w,M.label[o]+=w}}function x(w,L){for(var R=[],E=0,M=1;M<i;M++){var k=t[M-1].rect,B=Math.max(t[M].rect[o]-k[o]-k[s],0);R.push(B),E+=B}if(E){var F=Math.min(Math.abs(w)/E,L);if(w>0)for(M=0;M<i-1;M++)C(R[M]*F,0,M+1);else for(M=i-1;M>0;M--)C(-R[M-1]*F,M,i)}}function T(w){var L=w<0?-1:1;w=Math.abs(w);for(var R=Math.ceil(w/(i-1)),E=0;E<i-1;E++)if(L>0?C(R,0,E+1):C(-R,i-E-1,i),(w-=R)<=0)return}return S(),m<0&&x(-m,.8),_<0&&x(_,.8),S(),b(m,_,1),b(_,m,-1),S(),m<0&&T(-m),_<0&&T(_),f}function V_(t){var e=[];function r(u){if(!u.ignore){var f=u.ensureState("emphasis");null==f.ignore&&(f.ignore=!1)}u.ignore=!0}t.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});for(var n=0;n<t.length;n++){var a=Hr(t[n]);if(!a.label.ignore){for(var i=a.label,o=a.labelLine,s=!1,l=0;l<e.length;l++)if(Uh(a,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(i),o&&r(o)):e.push(a)}}}function Uh(t,e,r,n){return!(!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,n))&&(!(!t.axisAligned||!e.axisAligned)||z_(t).intersect(z_(e),r,n))}function fR(t){if(t){for(var e=[],r=0;r<t.length;r++)e.push(t[r].slice());return e}}function cR(t,e){var r=t.label,n=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:fR(n&&n.shape.points)}}var W_=["align","verticalAlign","width","height","fontSize"],Mt=new as,qh=Ee(),hR=Ee();function Ol(t,e,r){for(var n=0;n<r.length;n++){var a=r[n];null!=e[a]&&(t[a]=e[a])}}var Bl=["x","y","rotation"],vR=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(e,r,n,a,i){var o=a.style,l=a.__hostTarget.textConfig||{},u=a.getComputedTransform(),f=a.getBoundingRect().plain();pe.applyTransform(f,f,u),u?Mt.setLocalTransform(u):(Mt.x=Mt.y=Mt.rotation=Mt.originX=Mt.originY=0,Mt.scaleX=Mt.scaleY=1),Mt.rotation=Xr(Mt.rotation);var v,c=a.__hostTarget;if(c){v=c.getBoundingRect().plain();var h=c.getComputedTransform();pe.applyTransform(v,v,h)}var d=v&&c.getTextGuideLine();this._labelList.push({label:a,labelLine:d,seriesModel:n,dataIndex:e,dataType:r,layoutOptionOrCb:i,layoutOption:null,rect:f,hostRect:v,priority:v?v.width*v.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:d&&d.ignore,x:Mt.x,y:Mt.y,scaleX:Mt.scaleX,scaleY:Mt.scaleY,rotation:Mt.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},t.prototype.addLabelsOfSeries=function(e){var r=this;this._chartViewList.push(e);var n=e.__model,a=n.get("labelLayout");(ce(a)||Ae(a).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=De(i);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,a)})},t.prototype.updateLayoutConfig=function(e){var r=e.getWidth(),n=e.getHeight();function a(_,S){return function(){E_(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;f=ce(o.layoutOptionOrCb)?o.layoutOptionOrCb(cR(o,l)):o.layoutOptionOrCb,o.layoutOption=f=f||{};var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:null!=f.x||null!=f.y?null:u.attachedPos,rotation:null!=f.rotate?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var v=!1;if(null!=f.x?(s.x=Ie(f.x,r),s.setStyle("x",0),v=!0):(s.x=u.x,s.setStyle("x",u.style.x)),null!=f.y?(s.y=Ie(f.y,n),s.setStyle("y",0),v=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:f.labelLinePoints}),v=!1)}qh(s).needsUpdateLabelLine=v,s.rotation=null!=f.rotate?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var y=0;y<W_.length;y++){var p=W_[y];s.setStyle(p,null!=f[p]?f[p]:u.style[p])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var g=o.seriesModel;null!=o.dataIndex&&(g=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex)),s.on("drag",a(l,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},t.prototype.layout=function(e){var r=e.getWidth(),n=e.getHeight(),a=[];D(this._labelList,function(l){l.defaultAttr.ignore||a.push(Vh({},l))});var i=We(a,function(l){return"shiftX"===l.layoutOption.moveOverlap}),o=We(a,function(l){return"shiftY"===l.layoutOption.moveOverlap});Wh(i,0,0,r),Wh(o,1,0,n);var s=We(a,function(l){return l.layoutOption.hideOverlap});(function uR(t){for(var e=0;e<t.length;e++){var r=t[e],n=r.defaultAttr,a=r.labelLine;r.label.attr("ignore",n.ignore),a&&a.attr("ignore",n.labelGuideIgnore)}})(s),V_(s)},t.prototype.processLabelsOverall=function(){var e=this;D(this._chartViewList,function(r){var n=r.__model,a=r.ignoreLabelLineUpdate,i=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=qh(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,n),i&&e._animateLabels(o,n)})})},t.prototype._updateLabelLine=function(e,r){var n=e.getTextContent(),a=De(e),i=a.dataIndex;if(n&&null!=i){var o=r.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var c=s.getModel("labelLine");O_(e,B_(s),l),E_(e,c)}},t.prototype._animateLabels=function(e,r){var n=e.getTextContent(),a=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!qa(e))){var o=(i=qh(n)).oldLayout,s=De(e),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=r.getData(s.dataType);if(o){n.attr(o);var v=e.prevStates;v&&(Ce(v,"select")>=0&&n.attr(i.oldLayoutSelect),Ce(v,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),pr(n,u,r,l)}else if(n.attr(u),!ws(n).valueAnimation){var c=se(n.style.opacity,1);n.style.opacity=0,Tn(n,{style:{opacity:c}},r,l)}if(i.oldLayout=u,n.states.select){var h=i.oldLayoutSelect={};Ol(h,u,Bl),Ol(h,n.states.select,Bl)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};Ol(d,u,Bl),Ol(d,n.states.emphasis,Bl)}!function p1(t,e,r,n,a){var i=ws(t);if(i.valueAnimation&&i.prevValue!==i.value){var o=i.defaultInterpolatedText,s=se(i.interpolatedValue,i.prevValue),l=i.value;t.percent=0,(null==i.prevValue?Tn:pr)(t,{percent:1},n,e,null,function u(f){var c=function Fx(t,e,r,n,a){var i=null==e||"auto"===e;if(null==n)return n;if(Re(n))return Mr(o=Jd(r||0,n,a),i?Math.max(Ar(r||0),Ar(n)):e);if(j(n))return a<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var v=t.getDimensionInfo(c);if(v&&"ordinal"===v.type)s[c]=(a<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,d=u[c],o=Jd(h,d,a);s[c]=Mr(o,i?Math.max(Ar(h),Ar(d)):e)}}return s}(r,i.precision,s,l,f);i.interpolatedValue=1===f?null:c;var v=Ff({labelDataIndex:e,labelFetcher:a,defaultText:o?o(c):c+""},i.statesModels,c);fg(t,v)})}}(n,l,f,r,r)}if(a&&!a.ignore&&!a.invisible){var i=hR(a),y={points:a.shape.points};(o=i.oldLayout)?(a.attr({shape:o}),pr(a,{shape:y},r)):(a.setShape(y),a.style.strokePercent=0,Tn(a,{style:{strokePercent:1}},r)),i.oldLayout=y}},t}();const dR=vR;var Yh=Ee();function U_(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,n){var a=Yh(r).labelManager;a||(a=Yh(r).labelManager=new dR),a.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,r,n){var a=Yh(r).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(r.getViewOfSeriesModel(i))}),a.updateLayoutConfig(r),a.layout(r),a.processLabelsOverall()})}An(U_);var q_=2*Math.PI,Nl=Math.PI/180;function pR(t,e,r){e.eachSeriesByType(t,function(n){var a=n.getData(),i=a.mapDimension("value"),o=function J1(t,e){var r=function Q1(t,e){var a,i,r=sc(t,e,{enableLayoutOnlyByCenter:!0}),n=t.getBoxLayoutParams();if(r.type===Wi.point)i=r.refPoint,a=Qr(n,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=W(o)?o:[o,o];a=Qr(n,r.refContainer),i=2===r.boxCoordFrom?r.refPoint:[Ie(s[0],a.width)+a.x,Ie(s[1],a.height)+a.y]}return{viewRect:a,center:i}}(t,e),n=r.viewRect,a=r.center,i=t.get("radius");W(i)||(i=[0,i]);var o=Ie(n.width,e.getWidth()),s=Ie(n.height,e.getHeight()),l=Math.min(o,s),u=Ie(i[0],l/2),f=Ie(i[1],l/2);return{cx:a[0],cy:a[1],r0:u,r:f,viewRect:n}}(n,r),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=o.viewRect,v=-n.get("startAngle")*Nl,h=n.get("endAngle"),d=n.get("padAngle")*Nl;h="auto"===h?v-q_:-h*Nl;var p=n.get("minAngle")*Nl+d,g=0;a.each(i,function(K){!isNaN(K)&&g++});var m=a.getSum(i),_=Math.PI/(m||g)*2,S=n.get("clockwise"),b=n.get("roseType"),C=n.get("stillShowZeroSum"),x=a.getDataExtent(i);x[0]=0;var T=S?1:-1,w=[v,h],L=T*d/2;xp(w,!S),v=w[0],h=w[1];var R=Y_(n);R.startAngle=v,R.endAngle=h,R.clockwise=S,R.cx=s,R.cy=l,R.r=u,R.r0=f;var E=Math.abs(h-v),M=E,k=0,B=v;if(a.setLayout({viewRect:c,r:u}),a.each(i,function(K,Z){var U;if(isNaN(K))a.setItemLayout(Z,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:s,cy:l,r0:f,r:b?NaN:u});else{(U="area"!==b?0===m&&C?_:K*_:E/g)<p?(U=p,M-=p):k+=K;var Y=B+T*U,q=0,z=0;d>U?z=q=B+T*U/2:(q=B+L,z=Y-L),a.setItemLayout(Z,{angle:U,startAngle:q,endAngle:z,clockwise:S,cx:s,cy:l,r0:f,r:b?us(K,x,[f,u]):u}),B=Y}}),M<q_&&g)if(M<=.001){var F=E/g;a.each(i,function(K,Z){if(!isNaN(K)){var U=a.getItemLayout(Z);U.angle=F;var Y=0,q=0;F<d?q=Y=v+T*(Z+.5)*F:(Y=v+T*Z*F+L,q=v+T*(Z+1)*F-L),U.startAngle=Y,U.endAngle=q}})}else _=M/k,B=v,a.each(i,function(K,Z){if(!isNaN(K)){var U=a.getItemLayout(Z),Y=U.angle===p?p:K*_,q=0,z=0;Y<d?z=q=B+T*Y/2:(q=B+L,z=B+T*Y-L),U.startAngle=q,U.endAngle=z,B+=T*Y}})})}var Y_=Ee(),yR=Math.PI/180;function X_(t,e,r,n,a,i,o,s,l,u){if(!(t.length<2)){for(var v=t.length,h=0;h<v;h++)"outer"===t[h].position&&"labelLine"===t[h].labelAlignTo&&(t[h].linePoints[1][0]+=t[h].label.x-u,t[h].label.x=u);Wh(t,1,l,l+o)&&function c(y){for(var p={list:[],maxY:0},g={list:[],maxY:0},m=0;m<y.length;m++)if("none"===y[m].labelAlignTo){var _=y[m],S=_.label.y>r?g:p,b=Math.abs(_.label.y-r);if(b>=S.maxY){var C=_.label.x-e-_.len2*a,x=n+_.len,T=Math.abs(C)<x?Math.sqrt(b*b/(1-C*C/x/x)):x;S.rB=T,S.maxY=b}S.list.push(_)}f(p),f(g)}(t)}function f(y){for(var p=y.rB,g=p*p,m=0;m<y.list.length;m++){var _=y.list[m],S=Math.abs(_.label.y-r),b=n+_.len,x=Math.sqrt(Math.abs(b*b*(1-S*S/g))),T=e+(x+_.len2)*a;Z_(_,_.targetTextWidth-(T-_.label.x)*a,!0),_.label.x=T}}}function Z_(t,e,r){if(null==t.labelStyleWidth){var n=t.label,a=n.style,i=t.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,f=i.width+(o?0:l);if(e<f||r){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var v=e-l;n.setStyle("width",e<f?v:r?v>t.unconstrainedWidth?null:v:null)}K_(i,n)}}}function K_(t,e){j_.rect=t,G_(j_,e,_R)}var _R={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},j_={};function Xh(t){return"center"===t.position}function Fl(t,e,r){var n=t.get("borderRadius");if(null==n)return r?{cornerRadius:0}:null;W(n)||(n=[n,n,n,n]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:oe(n,function(i){return mn(i,a)})}}var CR=function(t){function e(r,n,a){var i=t.call(this)||this;i.z2=2;var o=new $e;return i.setTextContent(o),i.updateData(r,n,a,!0),i}return(0,J.C6)(e,t),e.prototype.updateData=function(r,n,a,i){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),f=r.getItemLayout(n),c=N(Fl(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle))o.setShape(c);else{if(i){o.setShape(c);var v=s.getShallow("animationType");s.ecModel.ssr?(Tn(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):"scale"===v?(o.shape.r=f.r0,Tn(o,{shape:{r:f.r}},s,n)):null!=a?(o.setShape({startAngle:a,endAngle:a}),Tn(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,pr(o,{shape:{endAngle:f.endAngle}},s,n))}else(function f1(t){og(t).oldStyle=t.style})(o),pr(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),function s1(t,e,r,n){r=r||"itemStyle";for(var a=0;a<ng.length;a++){var i=ng[a],o=e.getModel([i,r]);t.ensureState(i).style=n?n(o):o[o1[r]]()}}(o,l);var h=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),y=Math.cos(h)*d,p=Math.sin(h)*d,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=N({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Fl(u.getModel("itemStyle"),f)),N(o.ensureState("select"),{x:y,y:p,shape:Fl(l.getModel(["select","itemStyle"]),f)}),N(o.ensureState("blur"),{shape:Fl(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&N(m.ensureState("select"),{x:y,y:p}),N(_.ensureState("select"),{x:y,y:p}),function a1(t,e,r,n){n?function n1(t){ag(t,!1)}(t):xs(t,e,r)}(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))}},e.prototype._updateLabel=function(r,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,f=l&&l.opacity;cg(i,function c1(t,e){for(var r={normal:t.getModel(e=e||"label")},n=0;n<kr.length;n++){var a=kr[n];r[a]=t.getModel([a,e])}return r}(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(a,"normal")||n.getName(a)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var v=o.get(["label","position"]);if("outside"!==v&&"outer"!==v)i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new eo,this.setTextGuideLine(h)),O_(this,B_(o),{stroke:u,opacity:fn(s.get(["lineStyle","opacity"]),f,1)})}},e}(Ji),bR=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return(0,J.C6)(e,t),e.prototype.render=function(r,n,a,i){var u,o=r.getData(),s=this._data,l=this.group;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),0===o.count()&&r.get("showEmptyCircle")){var v=Y_(r),h=new Ji({shape:_e(v)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(d){var y=new CR(o,d,u);o.setItemGraphicEl(d,y),l.add(y)}).update(function(d,y){var p=s.getItemGraphicEl(y);p.updateData(o,d,u),p.off("click"),l.add(p),o.setItemGraphicEl(d,p)}).remove(function(d){ug(s.getItemGraphicEl(d),r,d)}).execute(),function SR(t){var n,a,e=t.getData(),r=[],i=!1,o=(t.get("minShowLabelAngle")||0)*yR,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,v=s.height;function h(C){C.ignore=!0}e.each(function(C){var x=e.getItemGraphicEl(C),T=x.shape,w=x.getTextContent(),L=x.getTextGuideLine(),R=e.getItemModel(C),E=R.getModel("label"),M=E.get("position")||R.get(["emphasis","label","position"]),k=E.get("distanceToLabelLine"),B=E.get("alignTo"),F=Ie(E.get("edgeDistance"),u),K=E.get("bleedMargin");null==K&&(K=Math.min(u,v)>200?10:2);var Z=R.getModel("labelLine"),U=Z.get("length");U=Ie(U,u);var Y=Z.get("length2");if(Y=Ie(Y,u),Math.abs(T.endAngle-T.startAngle)<o)return D(w.states,h),w.ignore=!0,void(L&&(D(L.states,h),L.ignore=!0));if(function d(C){if(!C.ignore)return!0;for(var x in C.states)if(!1===C.states[x].ignore)return!0;return!1}(w)){var Ve,At,Vt,Lt,q=(T.startAngle+T.endAngle)/2,z=Math.cos(q),ge=Math.sin(q);n=T.cx,a=T.cy;var pt="inside"===M||"inner"===M;if("center"===M)Ve=T.cx,At=T.cy,Lt="center";else{var ut=(pt?(T.r+T.r0)/2*z:T.r*z)+n,Ke=(pt?(T.r+T.r0)/2*ge:T.r*ge)+a;if(Ve=ut+3*z,At=Ke+3*ge,!pt){var de=ut+z*(U+l-T.r),xe=Ke+ge*(U+l-T.r),zr=de+(z<0?-1:1)*Y;Ve="edge"===B?z<0?f+F:f+u-F:zr+(z<0?-k:k),At=xe,Vt=[[ut,Ke],[de,xe],[zr,xe]]}Lt=pt?"center":"edge"===B?z>0?"right":"left":z>0?"left":"right"}var kn=Math.PI,on=0,To=E.get("rotate");if(Re(To))on=To*(kn/180);else if("center"===M)on=0;else if("radial"===To||!0===To)on=z<0?-q+kn:-q;else if("tangential"===To&&"outside"!==M&&"outer"!==M){var fi=Math.atan2(z,ge);fi<0&&(fi=2*kn+fi),ge>0&&(fi=kn+fi),on=fi-kn}if(i=!!on,w.x=Ve,w.y=At,w.rotation=on,w.setStyle({verticalAlign:"middle"}),pt){w.setStyle({align:Lt});var Sv=w.states.select;Sv&&(Sv.x+=w.x,Sv.y+=w.y)}else{var _v=new pe(0,0,0,0);K_(_v,w),r.push({label:w,labelLine:L,position:M,len:U,len2:Y,minTurnAngle:Z.get("minTurnAngle"),maxSurfaceAngle:Z.get("maxSurfaceAngle"),surfaceNormal:new ve(z,ge),linePoints:Vt,textAlign:Lt,labelDistance:k,labelAlignTo:B,edgeDistance:F,bleedMargin:K,rect:_v,unconstrainedWidth:_v.width,labelStyleWidth:w.style.width})}x.setTextConfig({inside:pt})}}),!i&&t.get("avoidLabelOverlap")&&function mR(t,e,r,n,a,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,v=0;v<t.length;v++){var h=t[v].label;Xh(t[v])||(h.x<e?(f=Math.min(f,h.x),l.push(t[v])):(c=Math.max(c,h.x),u.push(t[v])))}for(v=0;v<t.length;v++)if(!Xh(d=t[v])&&d.linePoints){if(null!=d.labelStyleWidth)continue;h=d.label;var p,y=d.linePoints;d.targetTextWidth=p="edge"===d.labelAlignTo?h.x<e?y[2][0]-d.labelDistance-o-d.edgeDistance:o+a-d.edgeDistance-y[2][0]-d.labelDistance:"labelLine"===d.labelAlignTo?h.x<e?f-o-d.bleedMargin:o+a-c-d.bleedMargin:h.x<e?h.x-o-d.bleedMargin:o+a-h.x-d.bleedMargin,Z_(d,p,!1)}for(X_(u,e,r,n,1,0,i,0,s,c),X_(l,e,r,n,-1,0,i,0,s,f),v=0;v<t.length;v++){var d;if(!Xh(d=t[v])&&d.linePoints){var m=(h=d.label).style.padding,b=d.rect.width+(h.style.backgroundColor?0:m?m[1]+m[3]:0),C=(y=d.linePoints)[1][0]-y[2][0];"edge"===d.labelAlignTo?y[2][0]=h.x<e?o+d.edgeDistance+b+d.labelDistance:o+a-d.edgeDistance-b-d.labelDistance:(y[2][0]=h.x<e?h.x+d.labelDistance:h.x-d.labelDistance,y[1][0]=y[2][0]+C),y[1][1]=y[2][1]=h.y}}}(r,n,a,l,u,v,f,c);for(var y=0;y<r.length;y++){var p=r[y],g=p.label,m=p.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:p.textAlign}),_&&(D(g.states,h),g.ignore=!0);var S=g.states.select;S&&(S.x+=g.x,S.y+=g.y)}if(m){var b=p.linePoints;_||!b?(D(m.states,h),m.ignore=!0):(k_(b,p.minTurnAngle),aR(b,p.surfaceNormal,p.maxSurfaceAngle),m.setShape({points:b}),g.__hostTarget.textGuideLineConfig={anchor:new ve(b[0][0],b[0][1])})}}}(r),"expansion"!==r.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,n){var i=n.getData().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="pie",e}(tn);const xR=bR;var wR=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){return this._getRawData().indexOfName(e)>=0},t.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},t.prototype.getItemVisual=function(e,r){return this._getDataWithEncodedVisual().getItemVisual(e,r)},t}();const DR=wR;var MR=Ee(),$_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,J.C6)(e,t),e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new DR(we(this.getData,this),we(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return function TR(t,e,r){e=W(e)&&{coordDimensions:e}||N({encodeDefine:t.getEncode()},e);var n=t.getSource(),a=Ah(n,e).dimensions,i=new Mh(a,t);return i.initData(n,r),i}(this,{coordDimensions:["value"],encodeDefaulter:Ue(sw,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),a=MR(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=Xd(o,n.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){Ju(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},e.type="series.pie",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}(Dn);!function Z1(t){Ig.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}({fullType:$_.type,getCoord2:function(t){return t.getShallow("center")}});const AR=$_;var RR=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return(0,J.C6)(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:be.size.m,backgroundColor:be.color.transparent,borderColor:be.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:be.color.primary},subtextStyle:{fontSize:12,color:be.color.quaternary}},e}(He),IR=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,J.C6)(e,t),e.prototype.render=function(r,n,a){if(this.group.removeAll(),r.get("show")){var i=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=se(r.get("textBaseline"),r.get("textVerticalAlign")),f=new $e({style:jr(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),v=r.get("subtext"),h=new $e({style:jr(s,{text:v,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),y=r.get("sublink"),p=r.get("triggerEvent",!0);f.silent=!d&&!p,h.silent=!y&&!p,d&&f.on("click",function(){Rg(d,"_"+r.get("target"))}),y&&h.on("click",function(){Rg(y,"_"+r.get("subtarget"))}),De(f).eventData=De(h).eventData=p?{componentType:"title",componentIndex:r.componentIndex}:null,i.add(f),v&&i.add(h);var g=i.getBoundingRect(),m=r.getBoxLayoutParams();m.width=g.width,m.height=g.height;var S=Qr(m,sc(r,a).refContainer,r.get("padding"));l||("middle"===(l=r.get("left")||r.get("right"))&&(l="center"),"right"===l?S.x+=S.width:"center"===l&&(S.x+=S.width/2)),u||("center"===(u=r.get("top")||r.get("bottom"))&&(u="middle"),"bottom"===u?S.y+=S.height:"middle"===u&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),h.setStyle(b),g=i.getBoundingRect();var C=S.margin,x=r.getItemStyle(["color","opacity"]);x.fill=r.get("backgroundColor");var T=new st({shape:{x:g.x-C[3],y:g.y-C[0],width:g.width+C[1]+C[3],height:g.height+C[0]+C[2],r:r.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(T)}},e.type="title",e}(er);function Zh(t,e){return"all"===t||W(t)&&Ce(t,e)>=0||t===e}function Kh(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[mo(t)]}function jh(t){return!!t.get(["handle","show"])}function mo(t){return t.type+"||"+t.id}var Q_={},zR=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,J.C6)(e,t),e.prototype.render=function(r,n,a,i){this.axisPointerClass&&function HR(t){var e=Kh(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,a=r.option,i=r.get("status"),o=r.get("value");null!=o&&(o=n.parse(o));var s=jh(r);null==i&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,a,!0)},e.prototype.updateAxisPointer=function(r,n,a,i){this._doUpdateAxisPointerClass(r,a,!1)},e.prototype.remove=function(r,n){var a=this._axisPointer;a&&a.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=function GR(t){var e=Kh(t);return e&&e.axisPointerModel}(r);o?(this._axisPointer||(this._axisPointer=new i)).render(r,o,n,a):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){Q_[r]=n},e.getAxisPointerClass=function(r){return r&&Q_[r]},e.type="axis",e}(er);const VR=zR;var wa=Ee(),J_=_e,$h=we,WR=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,a){var i=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,a||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||"hide"===o)return s&&s.hide(),void(l&&l.hide());s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(s){var v=Ue(eS,r,c);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,r)}else s=this._group=new Ht,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),n.getZr().add(s);nS(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 n=r.get("animation"),a=e.axis,i="category"===a.type,o=r.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=Kh(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return!0===n},t.prototype.makeElOption=function(e,r,n,a,i){},t.prototype.createPointerEl=function(e,r,n,a){var i=r.pointer;if(i){var o=wa(e).pointerEl=new rt[i.type](J_(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,a){if(r.label){var i=wa(e).labelEl=new $e(J_(r.label));e.add(i),rS(i,a)}},t.prototype.updatePointerEl=function(e,r,n){var a=wa(e).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),n(a,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,a){var i=wa(e).labelEl;i&&(i.setStyle(r.label.style),n(i,{x:r.label.x,y:r.label.y}),rS(i,a))},t.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var s,r=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=r.getModel("handle"),o=r.get("status");if(!i.get("show")||!o||"hide"===o)return a&&n.remove(a),void(this._handle=null);this._handle||(s=!0,a=this._handle=el(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Hv(u.event)},onmousedown:$h(this._onHandleDragMove,this,0,0),drift:$h(this._onHandleDragMove,this),ondragend:$h(this._onHandleDragEnd,this)}),n.add(a)),nS(a,r,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");W(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Em(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){eS(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Qh(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(Qh(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(Qh(a)),wa(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){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(),n=this._group,a=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),a&&r.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Kc(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return{x:e[n=n||0],y:e[1-n],width:r[n],height:r[1-n]}},t}();function eS(t,e,r,n){tS(wa(r).lastProp,n)||(wa(r).lastProp=n,e?pr(r,n,t):(r.stopAnimation(),r.attr(n)))}function tS(t,e){if(re(t)&&re(e)){var r=!0;return D(e,function(n,a){r=r&&tS(t[a],n)}),!!r}return t===e}function rS(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Qh(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function nS(t,e,r){var n=e.get("z"),a=e.get("zlevel");t&&t.traverse(function(i){"group"!==i.type&&(null!=n&&(i.z=n),null!=a&&(i.zlevel=a),i.silent=r)})}const UR=WR;var In=Math.PI,QR=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],JR=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],_o=Ee(),sS=Ee(),eI=function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,n=e.componentIndex,a=this.recordMap,i=a[r]||(a[r]=[]);return i[n]||(i[n]={ready:{}})},t}(),So=[1,0,0,1,0,0],Hl=new pe(0,0,0,0),rI=function(t,e,r,n,a,i){if(Ll(t.nameLocation)){var o=i.stOccupiedRect;o&&lS(function sR(t,e,r){return t.transform=Yc(t.transform,r),t.localRect=ro(t.localRect,e),t.rect=ro(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=qc(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}({},o,i.transGroup.transform),n,a)}else!function nI(t,e,r,n){for(var a=ve.dot(n,e)>=0,i=0,o=t.length;i<o;i++){var s=t[a?i:o-1-i];s.label.ignore||lS(s,r,n)}}(i.labelInfoList,i.dirVec,n,a)};function lS(t,e,r){var n=new ve;Uh(t,e,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&function lR(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 n=t.rect;n&&(n.x+=e.x,n.y+=e.y);var a=t.obb;a&&a.fromBoundingRect(t.localRect,r)}}(e,n)}var Da=function(){function t(e,r,n,a){this.group=new Ht,this._axisModel=e,this._api=r,this._local={},this._shared=a||new eI(rI),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(e){var n=this._cfg.raw;n.position=e.position,n.labelOffset=e.labelOffset,this._resetCfgDetermined(n)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},a=se(e.axisName,r.get("name")),i=r.get("nameMoveOverlap");(null==i||"auto"===i)&&(i=se(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:se(e.nameDirection,1),tickDirection:se(e.tickDirection,1),labelDirection:se(e.labelDirection,1),labelOffset:se(e.labelOffset,0),silent:se(e.silent,!0),axisName:a,nameLocation:fn(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:nv(a)&&i,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new Ht({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 ve(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),D(aI,function(a){e[a]&&iI[a](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},t.innerTextLayout=function(e,r,n){var i,o,a=ju(r-e);return Ai(a)?(o=n>0?"top":"bottom",i="center"):Ai(a-In)?(o=n>0?"bottom":"top",i="center"):(o="middle",i=a>0&&a<In?n>0?"right":"left":n>0?"left":"right"),{rotation:a,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}(),aI=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],iI={axisLine:function(t,e,r,n,a,i,o){var l=n.get(["axisLine","show"]);if("auto"===l&&(l=!0,null!=t.raw.axisLineAutoShow&&(l=!!t.raw.axisLineAutoShow)),l){var u=n.axis.getExtent(),f=i.transform,c=[u[0],0],v=[u[1],0],h=c[0]>v[0];f&&(Ot(c,c,f),Ot(v,v,f));var d=N({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),y={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())null.buildAxisBreakLine(n,a,i,y);else{var p=new ri(N({shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]}},y));Gc(p.shape,p.style.lineWidth),p.anid="line",a.add(p)}var g=n.get(["axisLine","symbol"]);if(null!=g){var m=n.get(["axisLine","symbolSize"]);j(g)&&(g=[g,g]),(j(m)||Re(m))&&(m=[m,m]);var _=function dA(t,e){if(null!=t)return W(t)||(t=[t,t]),[Ie(t[0],e[0])||0,Ie(se(t[1],t[0]),e[1])||0]}(n.get(["axisLine","symbolOffset"])||0,m),S=m[0],b=m[1];D([{rotate:t.rotation+Math.PI/2,offset:_[0],r:0},{rotate:t.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((c[0]-v[0])*(c[0]-v[0])+(c[1]-v[1])*(c[1]-v[1]))}],function(C,x){if("none"!==g[x]&&null!=g[x]){var T=il(g[x],-S/2,-b/2,S,b,d.stroke,!0),w=C.r+C.offset,L=h?v:c;T.attr({rotation:C.rotate,x:L[0]+w*Math.cos(t.rotation),y:L[1]-w*Math.sin(t.rotation),silent:!0,z2:11}),a.add(T)}})}}},axisTickLabelEstimate:function(t,e,r,n,a,i,o,s){cS(e,a,s)&&uS(t,e,r,n,a,i,o,1)},axisTickLabelDetermine:function(t,e,r,n,a,i,o,s){cS(e,a,s)&&uS(t,e,r,n,a,i,o,2);var f=function uI(t,e,r,n){var a=n.axis,i=n.getModel("axisTick"),o=i.get("show");if("auto"===o&&(o=!0,null!=t.raw.axisTickAutoShow&&(o=!!t.raw.axisTickAutoShow)),!o||a.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=t.tickDirection*i.get("length"),f=fS(a.getTicksCoords(),r.transform,l,Fe(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}(t,a,i,n);(function lI(t,e,r){t.showMinorTicks||D(e,function(n){if(n&&n.label.ignore)for(var a=0;a<r.length;a++){var i=r[a],o=sS(i),s=_o(n.label);if(null!=o.tickValue&&!o.onBand&&o.tickValue===s.tickValue)return void Co(i)}})})(t,e.labelLayoutList,f),function fI(t,e,r,n,a){var i=n.axis,o=n.getModel("minorTick");if(t.showMinorTicks&&!i.scale.isBlank()){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=a*o.get("length"),f=Fe(l.getLineStyle(),Fe(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var v=fS(s[c],r.transform,u,f,"minorticks_"+c),h=0;h<v.length;h++)e.add(v[h])}}(t,a,i,n,t.tickDirection)},axisName:function(t,e,r,n,a,i,o,s){var l=r.ensureRecord(n);e.nameEl&&(a.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=t.axisName;if(nv(f)){var c=t.nameLocation,v=t.nameDirection,h=n.getModel("nameTextStyle"),d=n.get("nameGap")||0,y=n.axis.getExtent(),p=n.axis.inverse?-1:1,g=new ve(0,0),m=new ve(0,0);"start"===c?(g.x=y[0]-p*d,m.x=-p):"end"===c?(g.x=y[1]+p*d,m.x=p):(g.x=(y[0]+y[1])/2,g.y=t.labelOffset+v*d,m.y=v);var _=[1,0,0,1,0,0];m.transform(Ho(_,_,t.rotation));var b,C,S=n.get("nameRotate");null!=S&&(S=S*In/180),Ll(c)?b=Da.innerTextLayout(t.rotation,S??t.rotation,v):(b=function oI(t,e,r,n){var i,o,a=ju(r-t),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return Ai(a-In/2)?(o=l?"bottom":"top",i="center"):Ai(a-1.5*In)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*In&&a>In/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}(t.rotation,c,S||0,y),null!=(C=t.raw.axisNameAvailableWidth)&&(C=Math.abs(C/Math.sin(b.rotation)),!isFinite(C)&&(C=null)));var x=h.getFont(),T=n.get("nameTruncate",!0)||{},w=T.ellipsis,L=vi(t.raw.nameTruncateMaxWidth,T.maxWidth,C),R=s.nameMarginLevel||0,E=new $e({x:g.x,y:g.y,rotation:b.rotation,silent:Da.isLabelSilent(n),style:jr(h,{text:f,font:x,overflow:"truncate",width:L,ellipsis:w,fill:h.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:h.get("align")||b.textAlign,verticalAlign:h.get("verticalAlign")||b.textVerticalAlign}),z2:1});if(to({el:E,componentModel:n,itemName:f}),E.__fullText=f,E.anid="name",n.get("triggerEvent")){var M=Da.makeAxisEventDataBase(n);M.targetType="axisName",M.name=f,De(E).eventData=M}i.add(E),E.updateTransform(),e.nameEl=E;var k=l.nameLayout=Hr({label:E,priority:E.z2,defaultAttr:{ignore:E.ignore},marginDefault:Ll(c)?QR[R]:JR[R]});if(l.nameLocation=c,a.add(E),E.decomposeTransform(),t.shouldNameMoveOverlap&&k){var B=r.ensureRecord(n);r.resolveAxisNameOverlap(t,r,n,k,m,B)}}}};function uS(t,e,r,n,a,i,o,s){hS(e)||function cI(t,e,r,n,a,i){var o=a.axis,s=vi(t.raw.axisLabelShow,a.get(["axisLabel","show"])),l=new Ht;r.add(l);var u=Pl(n);if(s&&!o.scale.isBlank()){var f=a.getModel("axisLabel"),c=o.getViewLabels(u),v=(vi(t.raw.labelRotate,f.get("rotate"))||0)*In/180,h=Da.innerTextLayout(t.rotation,v,t.labelDirection),d=a.getCategories&&a.getCategories(!0),y=[],p=a.get("triggerEvent"),g=1/0,m=-1/0;D(c,function(S,b){var C,x="ordinal"===o.scale.type?o.scale.getRawOrdinalNumber(S.tickValue):S.tickValue,T=S.formattedLabel,w=S.rawLabel,L=f;if(d&&d[x]){var R=d[x];re(R)&&R.textStyle&&(L=new Qe(R.textStyle,f,a.ecModel))}var E=L.getTextColor()||a.get(["axisLine","lineStyle","color"]),M=L.getShallow("align",!0)||h.textAlign,k=se(L.getShallow("alignMinLabel",!0),M),B=se(L.getShallow("alignMaxLabel",!0),M),F=L.getShallow("verticalAlign",!0)||L.getShallow("baseline",!0)||h.textVerticalAlign,K=se(L.getShallow("verticalAlignMinLabel",!0),F),Z=se(L.getShallow("verticalAlignMaxLabel",!0),F),U=10+((null===(C=S.time)||void 0===C?void 0:C.level)||0);g=Math.min(g,U),m=Math.max(m,U);var Y=new $e({x:0,y:0,rotation:0,silent:Da.isLabelSilent(a),z2:U,style:jr(L,{text:T,align:0===b?k:b===c.length-1?B:M,verticalAlign:0===b?K:b===c.length-1?Z:F,fill:ce(E)?E("category"===o.type?w:"value"===o.type?x+"":x,b):E})});Y.anid="label_"+x;var q=_o(Y);if(q.break=S.break,q.tickValue=x,q.layoutRotation=h.rotation,to({el:Y,componentModel:a,itemName:T,formatterParamsExtra:{isTruncated:function(){return Y.isTruncated},value:w,tickIndex:b}}),p){var z=Da.makeAxisEventDataBase(a);z.targetType="axisLabel",z.value=w,z.tickIndex=b,S.break&&(z.break={start:S.break.parsedBreak.vmin,end:S.break.parsedBreak.vmax}),"category"===o.type&&(z.dataIndex=x),De(Y).eventData=z,S.break&&function dI(t,e,r,n){r.on("click",function(a){var i={type:"expandAxisBreak",breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};i[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(i)})}(a,i,Y,S.break)}y.push(Y),l.add(Y)}),rv(e,oe(y,function(S){return{label:S,priority:_o(S).break?S.z2+(m-g+1):S.z2,defaultAttr:{ignore:S.ignore}}}),l,u)}else rv(e,[],l,u)}(t,e,a,s,n,o);var l=e.labelLayoutList;(function hI(t,e,r,n){var a=e.get(["axisLabel","margin"]);D(r,function(i,o){var s=Hr(i);if(s){var l=s.label,u=_o(l);s.suggestIgnore=l.ignore,l.ignore=!1,zu(nn,vI),nn.x=e.axis.dataToCoord(u.tickValue),nn.y=t.labelOffset+t.labelDirection*a,nn.rotation=u.layoutRotation,n.add(nn),nn.updateTransform(),n.remove(nn),nn.decomposeTransform(),zu(l,nn),l.markRedraw(),kl(s,!0),Hr(s)}})})(t,n,l,i),function pI(t,e,r){var n=null;if(n){var a=n.retrieveAxisBreakPairs(r,function(o){return o&&_o(o.label).break},!0),i=t.get(["breakLabelLayout","moveOverlap"],!0);(!0===i||"auto"===i)&&D(a,function(o){null.adjustBreakLabelPair(t.axis.inverse,e,[Hr(r[o[0]]),Hr(r[o[1]])])})}}(n,t.rotation,l);var u=t.optionHideOverlap;(function sI(t,e,r){if(!d_(t.axis)){var a=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]),o=e.length;n(a,0,1),n(i,o-1,o-2)}function n(s,l,u){var f=Hr(e[l]),c=Hr(e[u]);if(f&&c){if(!1===s||f.suggestIgnore)return void Co(f.label);if(c.suggestIgnore)return void Co(c.label);if(!r){var h=[0,0,0,0];f=Vh({marginForce:h},f),c=Vh({marginForce:h},c)}Uh(f,c,null,{touchThreshold:.1})&&Co(s?c.label:f.label)}}})(n,l,u),u&&V_(We(l,function(f){return f&&!f.label.ignore})),function tI(t,e,r,n){var s,a=r.axis,i=e.ensureRecord(r),o=[],l=nv(t.axisName)&&Ll(t.nameLocation);D(n,function(d){var y=Hr(d);if(y&&!y.label.ignore){o.push(y);var p=i.transGroup;l&&(p.transform?Fn(So,p.transform):pi(So),y.transform&&Nn(So,So,y.transform),pe.copy(Hl,y.localRect),Hl.applyTransform(So),s?s.union(Hl):pe.copy(s=new pe(0,0,0,0),Hl))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[u];if(o.sort(function(d,y){return Math.abs(d.label[u]-f)-Math.abs(y.label[u]-f)}),l&&s){var c=a.getExtent(),v=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-v;s.union(new pe(v,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}(t,r,n,l)}function Co(t){t&&(t.ignore=!0)}function fS(t,e,r,n,a){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&&(Ot(o,o,e),Ot(s,s,e));var f=new ri({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Gc(f.shape,f.style.lineWidth),f.anid=a+"_"+t[l].tickValue,i.push(f);var c=sS(f);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return i}function cS(t,e,r){if(hS(t)){var a=t.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(r.noPxChange){for(var i=!0,o=0;o<a.length;o++)i=i&&a[o]();if(i)return!1}a.length&&(e.remove(t.labelGroup),rv(t,null,null,null))}return!0}function hS(t){return!!t.labelLayoutList}function rv(t,e,r,n){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=n}var nn=new st,vI=new st;function nv(t){return!!t}const gI=Da;function vS(t,e,r,n,a){t=e.scale.parse(t);var i=e.scale.getLabel({value:t},{precision:a.precision}),o=a.formatter;if(o){var s={value:Al(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};D(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=u&&u.getDataParams(l.dataIndexInside);c&&s.seriesData.push(c)}),j(o)?i=o.replace("{value}",i):ce(o)&&(i=o(s))}return i}function dS(t,e,r){var n=[1,0,0,1,0,0];return Ho(n,n,r.rotation),Fo(n,n,r.position),zc([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function bI(t,e,r){return{x:t[r=r||0],y:t[1-r],width:e[r],height:e[1-r]}}function Gl(t,e,r){r=r||{};var n=e.axis,a={},i=n.getAxesOnZeroOf()[0],o=n.position,s=i?"onZero":o,l=n.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,v="x"===l?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(i){var h=i.toGlobalCoord(i.dataToCoord(0));v[f.onZero]=Math.max(Math.min(h,v[1]),v[0])}a.position=["y"===l?v[f[s]]:u[0],"x"===l?v[f[s]]:u[3]],a.rotation=Math.PI/2*("x"===l?0:1),a.labelDirection=a.tickDirection=a.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],a.labelOffset=i?v[f[o]]-v[f.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),vi(r.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=e.get(["axisLabel","rotate"]);return a.labelRotate="top"===s?-y:y,a.z2=1,a}var MI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,J.C6)(e,t),e.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=pS(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&"none"!==u){var v=function yI(t){var n,e=t.get("type"),r=t.getModel(e+"Style");return"line"===e?(n=r.getLineStyle()).fill=null:"shadow"===e&&((n=r.getAreaStyle()).stroke=null),n}(i),h=AI[u](s,c,f);h.style=v,r.graphicKey=h.type,r.pointer=h}!function SI(t,e,r,n,a,i){var o=gI.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),function mI(t,e,r,n,a){var o=vS(r.get("value"),e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Gi(s.get("padding")||0),u=s.getFont(),f=Bd(o,u),c=a.position,v=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=a.align;"right"===d&&(c[0]-=v),"center"===d&&(c[0]-=v/2);var y=a.verticalAlign;"bottom"===y&&(c[1]-=h),"middle"===y&&(c[1]-=h/2),function _I(t,e,r,n){var a=n.getWidth(),i=n.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+r,i)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,v,h,n);var p=s.get("backgroundColor");(!p||"auto"===p)&&(p=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:jr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}(e,n,a,i,{position:dS(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}(n,r,Gl(l.getRect(),a),a,i,o)},e.prototype.getHandleTransform=function(r,n,a){var i=Gl(n.axis.grid.getRect(),n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=dS(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=pS(s,o).getOtherAxis(o).getGlobalExtent(),f="x"===o.dim?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var v=(u[1]+u[0])/2,h=[v,v];return h[f]=c[f],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][f]}},e}(UR);function pS(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var AI={line:function(t,e,r){var n=function CI(t,e,r){return{x1:t[r=r||0],y1:t[1-r],x2:e[r],y2:e[1-r]}}([e,r[0]],[e,r[1]],gS(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=Math.max(1,t.getBandWidth());return{type:"Rect",shape:bI([e-n/2,r[0]],[n,r[1]-r[0]],gS(t))}}};function gS(t){return"x"===t.dim?0:1}const LI=MI;var PI=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,J.C6)(e,t),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:be.color.border,width:1,type:"dashed"},shadowStyle:{color:be.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:be.color.neutral00,padding:[5,7,5,7],backgroundColor:be.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:be.color.accent40,throttle:40}},e}(He);const RI=PI;var an=Ee(),II=D;function yS(t,e,r){if(!me.node){var n=e.getZr();an(n).records||(an(n).records={}),function EI(t,e){function r(n,a){t.on(n,function(i){var o=function BI(t){var e={showTip:[],hideTip:[]},r=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}(e);II(an(t).records,function(s){s&&a(s,i,o.dispatchAction)}),function kI(t,e){var a,r=t.showTip.length,n=t.hideTip.length;r?a=t.showTip[r-1]:n&&(a=t.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}(o.pendings,e)})}an(t).initialized||(an(t).initialized=!0,r("click",Ue(mS,"click")),r("mousemove",Ue(mS,"mousemove")),r("globalout",OI))}(n,e),(an(n).records[t]||(an(n).records[t]={})).handler=r}}function OI(t,e,r){t.handler("leave",null,r)}function mS(t,e,r,n){e.handler(t,r,n)}function av(t,e){if(!me.node){var r=e.getZr();(an(r).records||{})[t]&&(an(r).records[t]=null)}}var NI=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,J.C6)(e,t),e.prototype.render=function(r,n,a){var i=n.getComponent("tooltip"),o=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";yS("axisPointer",a,function(s,l,u){"none"!==o&&("leave"===s||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,n){av("axisPointer",n)},e.prototype.dispose=function(r,n){av("axisPointer",n)},e.type="axisPointer",e}(er);const FI=NI;function _S(t,e){var a,r=[],n=t.seriesIndex;if(null==n||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=Ii(i,t);if(null==o||o<0||W(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,h="x"===c||"radius"===c?1:0,d=i.mapDimension(u.dim),y=[];y[h]=i.get(d,o),y[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(y)||[]}else r=l.dataToPoint(i.getValues(oe(l.dimensions,function(g){return i.mapDimension(g)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),r=[p.x+p.width/2,p.y+p.height/2]}return{point:r,el:s}}var SS=Ee();function HI(t,e,r){var n=t.currTrigger,a=[t.x,t.y],i=t,o=t.dispatchAction||we(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){zl(a)&&(a=_S({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=zl(a),u=i.axesInfo,f=s.axesInfo,c="leave"===n||zl(a),v={},h={},d={list:[],map:{}},y={showPointer:Ue(zI,h),showTooltip:Ue(VI,d)};D(s.coordSysMap,function(g,m){var _=l||g.containPoint(a);D(s.coordSysAxesInfo[m],function(S,b){var C=S.axis,x=function YI(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}(u,S);if(!c&&_&&(!u||x)){var T=x&&x.value;null==T&&!l&&(T=C.pointToData(a)),null!=T&&CS(S,T,y,!1,v)}})});var p={};return D(f,function(g,m){var _=g.linkGroup;_&&!h[m]&&D(_.axesInfo,function(S,b){var C=h[b];if(S!==g&&C){var x=C.value;_.mapper&&(x=g.axis.scale.parse(_.mapper(x,bS(S),bS(g)))),p[g.key]=x}})}),D(p,function(g,m){CS(f[m],g,y,!0,v)}),function WI(t,e,r){var n=r.axesInfo=[];D(e,function(a,i){var o=a.axisPointerModel.option,s=t[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),"show"===o.status&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}(h,f,v),function UI(t,e,r,n){if(!zl(e)&&t.list.length){var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}else n({type:"hideTip"})}(d,a,t,o),function qI(t,e,r){var n=r.getZr(),a="axisPointerLastHighlights",i=SS(n)[a]||{},o=SS(n)[a]={};D(t,function(u,f){var c=u.axisPointerModel.option;"show"===c.status&&u.triggerEmphasis&&D(c.seriesDataIndices,function(v){o[v.seriesIndex+" | "+v.dataIndex]=v})});var s=[],l=[];D(i,function(u,f){!o[f]&&l.push(u)}),D(o,function(u,f){!i[f]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(f,0,r),v}}function CS(t,e,r,n,a){var i=t.axis;if(!i.scale.isBlank()&&i.containData(e)){if(!t.involveSeries)return void r.showPointer(t,e);var o=function GI(t,e){var r=e.axis,n=r.dim,a=t,i=[],o=Number.MAX_VALUE,s=-1;return D(e.seriesModels,function(l,u){var c,v,f=l.getData().mapDimensionsAll(n);if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,t,r);v=h.dataIndices,c=h.nestestValue}else{if(!(v=l.indicesOfNearest(n,f[0],t,"category"===r.type?.5:null)).length)return;c=l.getData().get(f[0],v[0])}if(null!=c&&isFinite(c)){var d=t-c,y=Math.abs(d);y<=o&&((y<o||d>=0&&s<0)&&(o=y,s=d,a=c,i.length=0),D(v,function(p){i.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:i,snapToValue:a}}(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&null==a.seriesIndex&&N(a,s[0]),!n&&t.snap&&i.containData(l)&&null!=l&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function zI(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function VI(t,e,r,n){var a=r.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(e.triggerTooltip&&a.length){var l=e.coordSys.model,u=mo(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function bS(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function zl(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function XI(t){VR.registerAxisPointerClass("CartesianAxisPointer",LI),t.registerComponentModel(RI),t.registerComponentView(FI),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!W(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=function kR(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function OR(t,e,r){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];D(r.getCoordinateSystems(),function(s){if(s.axisPointerEnabled){var l=mo(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var c=s.model.getModel("tooltip",n);if(D(s.getAxes(),Ue(y,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var v="axis"===c.get("trigger"),h="cross"===c.get(["axisPointer","type"]),d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(v||h)&&D(d.baseAxes,Ue(y,!h||"cross",v)),h&&D(d.otherAxes,Ue(y,"cross",!1))}}function y(p,g,m){var _=m.model.getModel("axisPointer",a),S=_.get("show");if(S&&("auto"!==S||p||jh(_))){null==g&&(g=_.get("triggerTooltip")),_=p?function BR(t,e,r,n,a,i){var o=e.getModel("axisPointer"),l={};D(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(v){l[v]=_e(o.get(v))}),l.snap="category"!==t.type&&!!i,"cross"===o.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===a){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&Fe(u,c.textStyle)}}return t.model.getModel("axisPointer",new Qe(l,r,n))}(m,c,a,e,p,g):_;var b=_.get("snap"),C=_.get("triggerEmphasis"),x=mo(m.model),T=g||b||"category"===m.type,w=t.axesInfo[x]={key:x,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:C,involveSeries:T,snap:b,useHandle:jh(_),seriesModels:[],linkGroup:null};u[x]=w,t.seriesInvolved=t.seriesInvolved||T;var L=function FR(t,e){for(var r=e.model,n=e.dim,a=0;a<t.length;a++){var i=t[a]||{};if(Zh(i[n+"AxisId"],r.id)||Zh(i[n+"AxisIndex"],r.componentIndex)||Zh(i[n+"AxisName"],r.name))return a}}(i,m);if(null!=L){var R=o[L]||(o[L]={axesInfo:{}});R.axesInfo[x]=w,R.mapper=i[L].mapper,w.linkGroup=R}}}})}(r,t,e),r.seriesInvolved&&function NR(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,a=r.get(["tooltip","trigger"],!0),i=r.get(["tooltip","show"],!0);!n||!n.model||"none"===a||!1===a||"item"===a||!1===i||!1===r.get(["axisPointer","show"],!0)||D(t.coordSysAxesInfo[mo(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),null==o.seriesDataCount&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}(r,t),r}(e,r)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},HI)}var ZI=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,J.C6)(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:be.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:be.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:be.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:be.color.tertiary,fontSize:14}},e}(He);const KI=ZI;function xS(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function TS(t){if(me.domSupported)for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}var wS=TS(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function DS(t,e){if(!t)return e;e=ec(e,!0);var r=t.indexOf(e);return(t=-1===r?e:"-"+t.slice(0,r)+"-"+e).toLowerCase()}var QI=DS(TS(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),iv=DS(wS,"transform"),JI="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(me.transform3dSupported?"will-change:transform;":"");function MS(t,e,r){var n=t.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!me.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=me.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return r?"top:0;left:0;"+iv+":"+o+";":[["top",0],["left",0],[wS,o]]}function AS(t,e,r,n,a){var i=e&&e.painter;if(r){var o=i&&i.getViewportRoot();o&&function BC(t,e,r,n,a){ou(iu,e,n,a,!0)&&ou(t,r,iu[0],iu[1])}(t,o,r,n,a)}else{t[0]=n,t[1]=a;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 iE=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,me.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=e.getZr(),i=r.appendTo,o=i&&(j(i)?document.querySelector(i):Pa(i)?i:ce(i)&&i(e.getDom()));AS(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler;Xt(a.painter.getViewportRoot(),l,!0),u.dispatch("mousemove",l)}},n.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(),n=function $I(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?e?r[e]:r:null}(r,"position"),a=r.style;"absolute"!==a.position&&"absolute"!==n&&(a.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 n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=JI+function aE(t,e,r,n){var a=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),c=t.getModel("textStyle"),v=Ny(t,"html");return a.push("box-shadow:"+u+"px "+f+"px "+s+"px "+l),e&&i>0&&a.push(function rE(t,e,r){var n="cubic-bezier(0.23,1,0.32,1)",a="",i="";return r&&(i="opacity"+(a=" "+t/2+"s "+n)+",visibility"+a),e||(a=" "+t+"s "+n,i+=(i.length?",":"")+(me.transformSupported?""+iv+a:",left"+a+",top"+a)),QI+":"+i}(i,r,n)),o&&a.push("background-color:"+o),D(["width","color","radius"],function(d){var y="border-"+d,p=ec(y),g=t.get(p);null!=g&&a.push(y+":"+g+("color"===d?"":"px"))}),a.push(function nE(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var a=se(t.get("lineHeight"),Math.round(3*r/2));r&&e.push("line-height:"+a+"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),D(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}(c)),null!=v&&a.push("padding:"+Gi(v).join("px ")+"px"),a.join(";")+";"}(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+MS(i[0],i[1],!0)+"border-color:"+zi(r)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,a,i){var o=this.el;if(null!=e){var s="";if(j(i)&&"item"===n.get("trigger")&&!xS(n)&&(s=function tE(t,e,r){if(!j(r)||"inside"===r)return"";var n=t.get("backgroundColor"),a=t.get("borderWidth");e=zi(e);var u,i=function eE(t){return"left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top"}(r),o=Math.max(1.5*Math.round(a),6),s="",l=iv+":";Ce(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u="left"===i?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u="top"===i?225:45)+"deg)");var f=u*Math.PI/180,c=o+a,v=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),d=e+" solid "+a+"px;";return'<div style="'+["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",(s+=";"+i+":-"+Math.round(100*((v-Math.SQRT2*a)/2+Math.SQRT2*a-(v-c)/2))/100+"px")+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"].join("")+'"></div>'}(n,a,i)),j(e))o.innerHTML=e+s;else if(e){o.innerHTML="",W(e)||(e=[e]);for(var l=0;l<e.length;l++)Pa(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)}}}else o.innerHTML=""},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 n=this._styleCoord;if(AS(n,this._zr,this._container,e,r),null!=n[0]&&null!=n[1]){var a=this.el.style;D(MS(n[0],n[1]),function(o){a[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var r=this._styleCoord[3];this.moveTo(this._styleCoord[2]*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",me.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(we(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;!function NC(t,e){function r(n){var a=n[Bo];a&&(a.clearMarkers&&a.clearMarkers(),delete n[Bo])}t&&r(t),e&&r(e)}(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},t}();const oE=iE;var sE=function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),PS(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,n,a,i){var o=this;re(e)&&wt(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new $e({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Ny(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),D(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),D(["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(),n=LS(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var a=this._styleCoord;PS(a,this._zr,e,r),e=a[0],r=a[1];var i=n.style,o=En(i.borderWidth||0),s=LS(i);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var r=this._styleCoord[3];this.moveTo(this._styleCoord[2]*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(we(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function En(t){return Math.max(0,t)}function LS(t){var e=En(t.shadowBlur||0),r=En(t.shadowOffsetX||0),n=En(t.shadowOffsetY||0);return{left:En(e-r),right:En(e+r),top:En(e-n),bottom:En(e+n)}}function PS(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}const lE=sE;var uE=new st({shape:{x:-1,y:-1,width:2,height:2}}),fE=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,J.C6)(e,t),e.prototype.init=function(r,n){if(!me.node&&n.getDom()){var a=r.getComponent("tooltip"),i=this._renderMode=function Nx(t){return"auto"===t?me.domSupported?"html":"richText":t||"html"}(a.get("renderMode"));this._tooltipContent="richText"===i?new lE(n):new oE(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},e.prototype.render=function(r,n,a){if(!me.node&&a.getDom()){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(r),i.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&r.get("transitionDuration")?Em(this,"_updatePosition",50,"fixRate"):Kc(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var n=this._tooltipModel.get("triggerOn");yS("itemTooltip",this._api,we(function(a,i,o){"none"!==n&&(n.indexOf(a)>=0?this._tryShow(i,o):"leave"===a&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,a=this._api,i=r.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(r,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,a,i){if(i.from!==this.uid&&!me.node&&a.getDom()){var o=RS(i,a);this._ticket="";var s=i.dataByCoordSys,l=function dE(t,e,r){var n=rf(t).queryOptionMap,a=n.keys()[0];if(a&&"series"!==a){var l,o=Ei(e,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(o&&(r.getViewOfComponentModel(o).group.traverse(function(u){var f=De(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l))return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}(i,n,a);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&&null!=i.x&&null!=i.y){var f=uE;f.x=i.x,f.y=i.y,f.update(),De(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(r,n,a,i))return;var c=_S(i,n),v=c.point[0],h=c.point[1];null!=v&&null!=h&&this._tryShow({offsetX:v,offsetY:h,target:c.el,position:i.position,positionDefault:"bottom"},o)}else null!=i.x&&null!=i.y&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,a,i){this._tooltipModel&&this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(RS(i,a))},e.prototype._manuallyAxisShowTip=function(r,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=s&&null!=l){var u=n.getSeriesByIndex(o);if(u&&"axis"===bo([u.getData().getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}},e.prototype._tryShow=function(r,n){var a=r.target;if(this._tooltipModel){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(a){var l,u;if("legend"===De(a).ssrType)return;this._lastDataByCoordSys=null,oo(a,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(null!=De(f).dataIndex?l=f:null!=De(f).tooltipConfig&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var a=r.get("showDelay");n=we(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},e.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=bo([n.tooltipOption],i),l=this._renderMode,u=[],f=Ki("section",{blocks:[],noHeader:!0}),c=[],v=new wc;D(r,function(m){D(m.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(S&&null!=b){var C=vS(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),x=Ki("section",{header:C,noHeader:!lr(C),sortBlocks:!0,blocks:[]});f.blocks.push(x),D(_.seriesDataIndices,function(T){var w=a.getSeriesByIndex(T.seriesIndex),L=T.dataIndexInside,R=w.getDataParams(L);if(!(R.dataIndex<0)){R.axisDim=_.axisDim,R.axisIndex=_.axisIndex,R.axisType=_.axisType,R.axisId=_.axisId,R.axisValue=Al(S.axis,{value:b}),R.axisValueLabel=C,R.marker=v.makeTooltipMarker("item",zi(R.color),l);var E=by(w.formatTooltip(L,!0,null)),M=E.frag;if(M){var k=bo([w],i).get("valueFormatter");x.blocks.push(k?N({valueFormatter:k},M):M)}E.text&&c.push(E.text),u.push(R)}})}})}),f.blocks.reverse(),c.reverse();var h=n.position,d=s.get("order"),y=Oy(f,v,l,d,a.get("useUTC"),s.get("textStyle"));y&&c.unshift(y);var g=c.join("richText"===l?"\n\n":"<br/>");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,v)})},e.prototype._showSeriesItemTooltip=function(r,n,a){var i=this._ecModel,o=De(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,v=u.getData(c),h=this._renderMode,d=r.positionDefault,y=bo([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=y.get("trigger");if(null==p||"item"===p){var g=u.getDataParams(f,c),m=new wc;g.marker=m.makeTooltipMarker("item",zi(g.color),h);var _=by(u.formatTooltip(f,!1,c)),S=y.get("order"),b=y.get("valueFormatter"),C=_.frag,x=C?Oy(b?N({valueFormatter:b},C):C,m,h,S,i.get("useUTC"),y.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(y,function(){this._showTooltipContent(y,x,g,T,r.offsetX,r.offsetY,r.position,r.target,m)}),a({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,a){var i="html"===this._renderMode,o=De(n),l=o.tooltipConfig.option||{},u=l.encodeHTMLContent;j(l)&&(l={content:l,formatter:l},u=!0),u&&i&&l.content&&((l=_e(l)).content=Ct(l.content));var c=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&c.push(v),c.push({formatter:l.content});var h=r.positionDefault,d=bo(c,this._tooltipModel,h?{position:h}:null),y=d.get("content"),p=Math.random()+"",g=new wc;this._showOrMove(d,function(){var m=_e(d.get("formatterParams")||{});this._showTooltipContent(d,y,m,p,r.offsetX,r.offsetY,r.position,n,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,a,i,o,s,l,u,f){if(this._ticket="",r.get("showContent")&&r.get("show")){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var v=r.get("formatter");l=l||r.get("position");var h=n,y=this._getNearestPoint([o,s],a,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)).color;if(v)if(j(v)){var p=r.ecModel.get("useUTC"),g=W(a)?a[0]:a;h=v,g&&g.axisType&&g.axisType.indexOf("time")>=0&&(h=Hi(g.axisValue,h,p)),h=nc(h,a,!0)}else if(ce(v)){var _=we(function(S,b){S===this._ticket&&(c.setContent(b,f,r,y,l),this._updatePosition(r,l,o,s,c,a,u))},this);this._ticket=i,h=v(a,i,_)}else h=v;c.setContent(h,f,r,y,l),c.show(r,y),this._updatePosition(r,l,o,s,c,a,u)}},e.prototype._getNearestPoint=function(r,n,a,i,o){return"axis"===a||W(n)?{color:i||o}:W(n)?void 0:{color:i||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),v=r.get("align"),h=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ce(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),W(n))a=Ie(n[0],u),i=Ie(n[1],f);else if(re(n)){var y=n;y.width=c[0],y.height=c[1];var p=Qr(y,{width:u,height:f});a=p.x,i=p.y,v=null,h=null}else if(j(n)&&l){var g=function vE(t,e,r,n){var a=r[0],i=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-a/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+f+o;break;case"left":s=e.x-a-o,l=e.y+f/2-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}(n,d,c,r.get("borderWidth"));a=g[0],i=g[1]}else g=function cE(t,e,r,n,a,i,o){var s=r.getSize(),l=s[0],u=s[1];return null!=i&&(t+l+i+2>n?t-=l+i:t+=i),null!=o&&(e+u+o>a?e-=u+o:e+=o),[t,e]}(a,i,o,u,f,v?null:20,h?null:20),a=g[0],i=g[1];v&&(a-=IS(v)?c[0]/2:"right"===v?c[0]:0),h&&(i-=IS(h)?c[1]/2:"bottom"===h?c[1]:0),xS(r)&&(g=function hE(t,e,r,n,a){var i=r.getSize(),o=i[0],s=i[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,a)-s,[t=Math.max(t,0),e=Math.max(e,0)]}(a,i,o,u,f),a=g[0],i=g[1]),o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===r.length;return o&&D(a,function(s,l){var u=s.dataByAxis||[],c=(r[l]||{}).dataByAxis||[];(o=o&&u.length===c.length)&&D(u,function(v,h){var d=c[h]||{},y=v.seriesDataIndices||[],p=d.seriesDataIndices||[];(o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&y.length===p.length)&&D(y,function(g,m){var _=p[m];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),i&&D(v.seriesDataIndices,function(g){var m=g.seriesIndex,_=n[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){me.node||!n.getDom()||(Kc(this,"_updatePosition"),this._tooltipContent.dispose(),av("itemTooltip",n))},e.type="tooltip",e}(er);function bo(t,e,r){var a,n=e.ecModel;r?(a=new Qe(r,n,n),a=new Qe(e.option,a,n)):a=e;for(var i=t.length-1;i>=0;i--){var o=t[i];o&&(o instanceof Qe&&(o=o.get("tooltip",!0)),j(o)&&(o={formatter:o}),o&&(a=new Qe(o,a,n)))}return a}function RS(t,e){return t.dispatchAction||we(e.dispatchAction,e)}function IS(t){return"center"===t||"middle"===t}const pE=fE;var mE=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return(0,J.C6)(e,t),e.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,a=this.ecModel;!0===n&&(n=r.selector=["all","inverse"]),W(n)&&D(n,function(i,o){j(i)&&(i={type:i}),n[o]=Be(i,function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&"single"===this.get("selectedMode")){for(var n=!1,a=0;a<r.length;a++){var i=r[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],a=[];r.eachRawSeries(function(l){var f;if(a.push(l.name),l.legendVisualProvider){var v=l.legendVisualProvider.getAllNames();r.isSeriesFiltered(l)||(a=a.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&ef(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=ye(),s=oe(i,function(l){return(j(l)||Re(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Qe(l,this,this.ecModel))},this);this._data=We(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected;"single"===this.get("selectedMode")&&D(this._data,function(o){n[o.get("name")]=!1}),n[r]=!0},e.prototype.unSelect=function(r){"single"!==this.get("selectedMode")&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var n=this.option.selected;D(this._data,function(a){n[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var n=this.option.selected;D(this._data,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&Ce(this._availableNames,r)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{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:be.size.m,align:"auto",backgroundColor:be.color.transparent,borderColor:be.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:be.color.disabled,inactiveBorderColor:be.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:be.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:be.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:be.color.tertiary,borderWidth:1,borderColor:be.color.border},emphasis:{selectorLabel:{show:!0,color:be.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(He);const ov=mE;var li=Ue,sv=D,Vl=Ht,SE=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return(0,J.C6)(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new Vl),this.group.add(this._selectorGroup=new Vl),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||"auto"===o)&&(o="right"===r.get("left")&&"vertical"===s?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||"auto"===u)&&(u="horizontal"===s?"end":"start"),this.renderInner(o,r,n,a,l,s,u);var f=sc(r,a).refContainer,c=r.getBoxLayoutParams(),v=r.get("padding"),h=Qr(c,f,v),d=this.layoutInner(r,o,h,i,l,u),y=Qr(Fe({width:d.width,height:d.height},c),f,v);this.group.x=y.x-d.x,this.group.y=y.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=function _E(t,e){var r=Gi(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),new st({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:n,silent:!0,z2:-1})}(d,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this.getContentGroup(),f=ye(),c=n.get("selectedMode"),v=n.get("triggerEvent"),h=[];a.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),sv(n.getData(),function(d,y){var p=this,g=d.get("name");if(!this.newlineDisabled&&(""===g||"\n"===g)){var m=new Vl;return m.newline=!0,void u.add(m)}var _=a.getSeriesByName(g)[0];if(!f.get(g))if(_){var S=_.getData(),b=S.getVisual("legendLineStyle")||{},C=S.getVisual("legendIcon"),x=S.getVisual("style"),T=this._createItem(_,g,y,d,n,r,b,x,C,c,i);T.on("click",li(ES,g,null,i,h)).on("mouseover",li(lv,_.name,null,i,h)).on("mouseout",li(uv,_.name,null,i,h)),a.ssr&&T.eachChild(function(w){var L=De(w);L.seriesIndex=_.seriesIndex,L.dataIndex=y,L.ssrType="legend"}),v&&T.eachChild(function(w){p.packEventData(w,n,_,y,g)}),f.set(g,!0)}else a.eachRawSeries(function(w){var L=this;if(!f.get(g)&&w.legendVisualProvider){var R=w.legendVisualProvider;if(!R.containName(g))return;var E=R.indexOfName(g),M=R.getItemVisual(E,"style"),k=R.getItemVisual(E,"legendIcon"),B=Ft(M.fill);B&&0===B[3]&&(B[3]=.2,M=N(N({},M),{fill:yn(B,"rgba")}));var F=this._createItem(w,g,y,d,n,r,{},M,k,c,i);F.on("click",li(ES,null,g,i,h)).on("mouseover",li(lv,null,g,i,h)).on("mouseout",li(uv,null,g,i,h)),a.ssr&&F.eachChild(function(K){var Z=De(K);Z.seriesIndex=w.seriesIndex,Z.dataIndex=y,Z.ssrType="legend"}),v&&F.eachChild(function(K){L.packEventData(K,n,w,y,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},e.prototype.packEventData=function(r,n,a,i,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:i,value:o,seriesIndex:a.seriesIndex};De(r).eventData=s},e.prototype._createSelector=function(r,n,a,i,o){var s=this.getSelectorGroup();sv(r,function(u){var f=u.type,c=new $e({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:"all"===f?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c),cg(c,{normal:n.getModel("selectorLabel"),emphasis:n.getModel(["emphasis","selectorLabel"])},{defaultText:u.title}),xs(c)})},e.prototype._createItem=function(r,n,a,i,o,s,l,u,f,c,v){var h=r.visualDrawType,d=o.get("itemWidth"),y=o.get("itemHeight"),p=o.isSelected(n),g=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon"),S=function CE(t,e,r,n,a,i,o){function s(p,g){"auto"===p.lineWidth&&(p.lineWidth=g.lineWidth>0?2:0),sv(p,function(m,_){"inherit"===p[_]&&(p[_]=g[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=0===t.lastIndexOf("empty",0)?"fill":"stroke",c=l.getShallow("decal");u.decal=c&&"inherit"!==c?rh(c,o):n.decal,"inherit"===u.fill&&(u.fill=n[a]),"inherit"===u.stroke&&(u.stroke=n[f]),"inherit"===u.opacity&&(u.opacity=("fill"===a?n:r).opacity),s(u,n);var v=e.getModel("lineStyle"),h=v.getLineStyle();if(s(h,r),"auto"===u.fill&&(u.fill=n.fill),"auto"===u.stroke&&(u.stroke=n.fill),"auto"===h.stroke&&(h.stroke=n.fill),!i){var d=e.get("inactiveBorderWidth");u.lineWidth="auto"===d?n.lineWidth>0&&u[f]?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=v.get("inactiveColor"),h.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}(f=_||f||"roundRect",i,l,u,h,p,v),b=new Vl,C=i.getModel("textStyle");if(!ce(r.getLegendIcon)||_&&"inherit"!==_){var x="inherit"===_&&r.getData().getVisual("symbol")?"inherit"===g?r.getData().getVisual("symbolRotate"):g:0;b.add(function bE(t){var e=t.icon||"roundRect",r=il(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=be.color.neutral00,r.style.lineWidth=2),r}({itemWidth:d,itemHeight:y,icon:f,iconRotate:x,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}else b.add(r.getLegendIcon({itemWidth:d,itemHeight:y,icon:f,iconRotate:g,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));var T="left"===s?d+5:-5,w=s,L=o.get("formatter"),R=n;j(L)&&L?R=L.replace("{name}",n??""):ce(L)&&(R=L(n));var E=p?C.getTextColor():i.get("inactiveColor");b.add(new $e({style:jr(C,{text:R,x:T,y:y/2,fill:E,align:w,verticalAlign:"middle"},{inheritColor:E})}));var M=new st({shape:b.getBoundingRect(),style:{fill:"transparent"}}),k=i.getModel("tooltip");return k.get("show")&&to({el:M,componentModel:o,itemName:n,itemTooltipOption:k.option}),b.add(M),b.eachChild(function(B){B.silent=!0}),M.silent=!c,this.getContentGroup().add(b),xs(b),b.__legendDataIndex=a,b},e.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Vi(r.get("orient"),l,r.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Vi("horizontal",u,r.get("selectorItemGap",!0));var v=u.getBoundingRect(),h=[-v.x,-v.y],d=r.get("selectorButtonGap",!0),y=r.getOrient().index,p=0===y?"width":"height",g=0===y?"height":"width",m=0===y?"y":"x";"end"===s?h[y]+=f[p]+d:c[y]+=v[p]+d,h[1-y]+=f[g]/2-v[g]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[p]=f[p]+d+v[p],_[g]=Math.max(f[g],v[g]),_[m]=Math.min(0,v[m]+h[1-y]),_}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}(er);function ES(t,e,r,n){uv(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),lv(t,e,r,n)}function kS(t){for(var r,e=t.getZr().storage.getDisplayList(),n=0,a=e.length;n<a&&!(r=e[n].states.emphasis);)n++;return r&&r.hoverLayer}function lv(t,e,r,n){kS(r)||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function uv(t,e,r,n){kS(r)||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}const OS=SE;function xE(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})}function xo(t,e,r){var n="allSelect"===t||"inverseSelect"===t,a={},i=[];r.eachComponent({mainType:"legend",query:e},function(s){n?s[t]():s[t](e.name),BS(s,a),i.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){D(a,function(l,u){s[l?"select":"unSelect"](u)}),BS(s,o)}),n?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function BS(t,e){var r=e||{};return D(t.getData(),function(n){var a=n.get("name");if("\n"!==a&&""!==a){var i=t.isSelected(a);r[a]=le(r,a)?r[a]&&i:i}}),r}function NS(t){t.registerComponentModel(ov),t.registerComponentView(OS),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,xE),t.registerSubTypeDefaulter("legend",function(){return"plain"}),function TE(t){t.registerAction("legendToggleSelect","legendselectchanged",Ue(xo,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Ue(xo,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Ue(xo,"inverseSelect")),t.registerAction("legendSelect","legendselected",Ue(xo,"select")),t.registerAction("legendUnSelect","legendunselected",Ue(xo,"unSelect"))}(t)}var wE=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,J.C6)(e,t),e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,a){var i=lc(r);t.prototype.init.call(this,r,n,a),FS(this,r,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),FS(this,this.option,r)},e.type="legend.scroll",e.defaultOption=function D1(t,e){return Be(Be({},t,!0),e,!0)}(ov.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:be.color.accent50,pageIconInactiveColor:be.color.accent10,pageIconSize:15,pageTextStyle:{color:be.color.tertiary},animationDurationUpdate:800}),e}(ov);function FS(t,e,r){var a=[1,1];a[t.getOrient().index]=0,Ka(e,r,{type:"box",ignoreSize:!!a})}const DE=wE;var HS=Ht,fv=["width","height"],cv=["x","y"],ME=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return(0,J.C6)(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new HS),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new HS)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this;t.prototype.renderInner.call(this,r,n,a,i,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),v=W(c)?c:[c,c];d("pagePrev",0);var h=n.getModel("pageTextStyle");function d(y,p){var g=y+"DataIndex",m=el(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:we(u._pageGo,u,g,n,i)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=y,f.add(m)}f.add(new $e({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1)},e.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=fv[u],c=cv[u],v=fv[1-u],h=cv[1-u];o&&Vi("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),y=l.getBoundingRect(),p=[-y.x,-y.y],g=_e(a);o&&(g[f]=a[f]-y[f]-d);var m=this._layoutContentAndController(r,i,g,u,f,v,h,c);if(o){if("end"===s)p[u]+=m[f]+d;else{var _=y[f]+d;p[u]-=_,m[c]-=_}m[f]+=y[f]+d,p[1-u]+=m[h]+m[v]/2-y[v]/2,m[v]=Math.max(m[v],y[v]),m[h]=Math.min(m[h],y[h]+p[1-u]),l.x=p[0],l.y=p[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(r,n,a,i,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,v=this._controllerGroup;Vi(r.get("orient"),f,r.get("itemGap"),i?a.width:null,i?null:a.height),Vi("horizontal",v,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=v.getBoundingRect(),y=this._showController=h[o]>a[o],p=[-h.x,-h.y];n||(p[i]=f[u]);var g=[0,0],m=[-d.x,-d.y],_=se(r.get("pageButtonGap",!0),r.get("itemGap",!0));y&&("end"===r.get("pageButtonPosition",!0)?m[i]+=a[o]-d[o]:g[i]+=d[o]+_),m[1-i]+=h[s]/2-d[s]/2,f.setPosition(p),c.setPosition(g),v.setPosition(m);var b={x:0,y:0};if(b[o]=y?a[o]:h[o],b[s]=Math.max(h[s],d[s]),b[l]=Math.min(0,d[l]+m[1-i]),c.__rectSize=a[o],y){var C={x:0,y:0};C[o]=Math.max(a[o]-d[o]-_,0),C[s]=b[s],c.setClipPath(new st({shape:C})),c.__rectSize=C[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(r);return null!=x.pageIndex&&pr(f,{x:x.contentPosition[0],y:x.contentPosition[1]},y?r:null),this._updatePageInfoView(r,x),b},e.prototype._pageGo=function(r,n,a){var i=this._getPageInfo(n)[r];null!=i&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var a=this._controllerGroup;D(["pagePrev","pageNext"],function(f){var v=null!=n[f+"DataIndex"],h=a.childOfName(f);h&&(h.setStyle("fill",r.get(v?"pageIconColor":"pageIconInactiveColor",!0)),h.cursor=v?"pointer":"default")});var i=a.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=null!=s?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",j(o)?o.replace("{current}",null==l?"":l+"").replace("{total}",null==u?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=r.getOrient().index,s=fv[o],l=cv[o],u=this._findTargetItemIndex(n),f=a.children(),c=f[u],v=f.length,h=v?1:0,d={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var y=S(c);d.contentPosition[o]=-y.s;for(var p=u+1,g=y,m=y,_=null;p<=v;++p)(!(_=S(f[p]))&&m.e>g.s+i||_&&!b(_,g.s))&&(g=m.i>g.i?m:_)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),m=_;for(p=u-1,g=y,m=y,_=null;p>=-1;--p)(!(_=S(f[p]))||!b(m,_.s))&&g.i<m.i&&(m=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=_;return d;function S(C){if(C){var x=C.getBoundingRect(),T=x[l]+C[l];return{s:T,e:T+x[s],i:C.__legendDataIndex}}}function b(C,x){return C.e>=x&&C.s<=x+i}},e.prototype._findTargetItemIndex=function(r){return this._showController?(this.getContentGroup().eachChild(function(o,s){var l=o.__legendDataIndex;null==i&&null!=l&&(i=s),l===r&&(n=s)}),n??i):0;var n,i},e.type="legend.scroll",e}(OS);const AE=ME;function PE(t){An(NS),t.registerComponentModel(DE),t.registerComponentView(AE),function LE(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;null!=n&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(n)})})}(t)}function GS(t,e){var r;return D(e,function(n){null!=t[n]&&"auto"!==t[n]&&(r=!0)}),r}var zS=["transition","enterFrom","leaveTo"],kE=zS.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Wl(t,e,r){if(r&&(!t[r]&&e[r]&&(t[r]={}),t=t[r],e=e[r]),t&&e)for(var n=r?zS:kE,a=0;a<n.length;a++){var i=n[a];null==t[i]&&null!=e[i]&&(t[i]=e[i])}}var BE=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r.preventAutoZ=!0,r}return(0,J.C6)(e,t),e.prototype.mergeOption=function(r,n){var a=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,r,n),this.option.elements=a},e.prototype.optionUpdated=function(r,n){var a=this.option,i=(n?a:r).elements,o=a.elements=n?[]:a.elements,s=[];this._flatten(i,s,null);var l=np(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];D(l,function(f,c){var v=f.newOption;v&&(u.push(v),function IE(t,e){var r=t.existing;if(e.id=t.keyInfo.id,!e.type&&r&&(e.type=r.type),null==e.parentId){var n=e.parentOption;n?e.parentId=n.id:r&&(e.parentId=r.parentId)}e.parentOption=null}(f,v),function EE(t,e,r){var n=N({},r),a=t[e],i=r.$action||"merge";"merge"===i?a?(Be(a,n,!0),Ka(a,n,{ignoreSize:!0}),kg(r,a),Wl(r,a),Wl(r,a,"shape"),Wl(r,a,"style"),Wl(r,a,"extra"),r.clipPath=a.clipPath):t[e]=n:"replace"===i?t[e]=n:"remove"===i&&a&&(t[e]=null)}(o,c,v),function OE(t,e){if(t&&(t.hv=e.hv=[GS(e,["left","right"]),GS(e,["top","bottom"])],"group"===t.type)){var r=t,n=e;null==r.width&&(r.width=n.width=0),null==r.height&&(r.height=n.height=0)}}(o[c],v))},this),a.elements=We(o,function(f){return f&&delete f.$action,null!=f})},e.prototype._flatten=function(r,n,a){D(r,function(i){if(i){a&&(i.parentOption=a),n.push(i);var o=i.children;o&&o.length&&this._flatten(o,n,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},e.type="graphic",e.defaultOption={elements:[]},e}(He);function VS(t,e){e&&(e.font=e.textFont||e.font,le(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),le(e,"textAlign")&&(t.align=e.textAlign),le(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),le(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),le(e,"textWidth")&&(t.width=e.textWidth),le(e,"textHeight")&&(t.height=e.textHeight),le(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),le(e,"textPadding")&&(t.padding=e.textPadding),le(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),le(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),le(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),le(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),le(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),le(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),le(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}var US={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},qS=Ae(US),Ul=(sr(wr,function(t,e){return t[e]=1,t},{}),wr.join(", "),["","style","shape","extra"]),ui=Ee();function vv(t,e,r,n,a){var i=t+"Animation",o=Bf(t,n,a)||{},s=ui(e).userDuring;return o.duration>0&&(o.during=s?we(qE,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=t),N(o,r[i]),o}function dv(t,e,r,n){var a=(n=n||{}).dataIndex,i=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=ui(t),u=e.style;l.userDuring=e.during;var f={},c={};if(function XE(t,e,r){for(var n=0;n<qS.length;n++){var a=qS[n],i=US[a],o=e[a];o&&(r[i[0]]=o[0],r[i[1]]=o[1])}for(n=0;n<wr.length;n++){var s=wr[n];null!=e[s]&&(r[s]=e[s])}}(0,e,c),"compound"===t.type)for(var v=t.shape.paths,h=e.shape.paths,d=0;d<h.length;d++)pv("shape",h[d],v[d]);else pv("shape",e,c),pv("extra",e,c);if(!i&&s&&(function YE(t,e,r){for(var n=e.transition,a=Ma(n)?wr:tt(n||[]),i=0;i<a.length;i++){var o=a[i];"style"!==o&&"shape"!==o&&"extra"!==o&&(r[o]=t[o])}}(t,e,f),XS("shape",t,e,f),XS("extra",t,e,f),function ZE(t,e,r,n){if(r){var i,a=t.style;if(a){var o=r.transition,s=e.transition;if(o&&!Ma(o)){var l=tt(o);!i&&(i=n.style={});for(var u=0;u<l.length;u++)i[f=l[u]]=a[f]}else if(t.getAnimationStyleProps&&(Ma(s)||Ma(o)||Ce(s,"style")>=0)){var v=t.getAnimationStyleProps(),h=v?v.style:null;if(h){!i&&(i=n.style={});var d=Ae(r);for(u=0;u<d.length;u++){var f;h[f=d[u]]&&(i[f]=a[f])}}}}}}(t,e,u,f)),c.style=u,function zE(t,e,r){var n=e.style;if(!t.isGroup&&n){if(r){t.useStyle({});for(var a=t.animators,i=0;i<a.length;i++){var o=a[i];"style"===o.targetName&&o.changeTarget(t.style)}}t.setStyle(n)}e&&(e.style=null,e&&t.attr(e),e.style=n)}(t,c,o),function WE(t,e){le(e,"silent")&&(t.silent=e.silent),le(e,"ignore")&&(t.ignore=e.ignore),t instanceof jn&&le(e,"invisible")&&(t.invisible=e.invisible),t instanceof Ne&&le(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}(t,e),s)if(i){var p={};D(Ul,function(m){var _=m?e[m]:e;_&&_.enterFrom&&(m&&(p[m]=p[m]||{}),N(m?p[m]:p,_.enterFrom))});var g=vv("enter",t,e,r,a);g.duration>0&&t.animateFrom(p,g)}else!function VE(t,e,r,n,a){if(a){var i=vv("update",t,e,n,r);i.duration>0&&t.animateFrom(a,i)}}(t,e,a||0,r,f);YS(t,e),u?t.dirty():t.markRedraw()}function YS(t,e){for(var r=ui(t).leaveToProps,n=0;n<Ul.length;n++){var a=Ul[n],i=a?e[a]:e;i&&i.leaveTo&&(r||(r=ui(t).leaveToProps={}),a&&(r[a]=r[a]||{}),N(a?r[a]:r,i.leaveTo))}}function Ma(t){return"all"===t}var Gr={},UE={setTransform:function(t,e){return Gr.el[t]=e,this},getTransform:function(t){return Gr.el[t]},setShape:function(t,e){var r=Gr.el;return(r.shape||(r.shape={}))[t]=e,r.dirtyShape&&r.dirtyShape(),this},getShape:function(t){var e=Gr.el.shape;if(e)return e[t]},setStyle:function(t,e){var r=Gr.el,n=r.style;return n&&(n[t]=e,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(t){var e=Gr.el.style;if(e)return e[t]},setExtra:function(t,e){return(Gr.el.extra||(Gr.el.extra={}))[t]=e,this},getExtra:function(t){var e=Gr.el.extra;if(e)return e[t]}};function qE(){var t=this,e=t.el;if(e){var r=ui(e).userDuring,n=t.userDuring;if(r!==n)return void(t.el=t.userDuring=null);Gr.el=e,n(UE)}}function XS(t,e,r,n){var a=r[t];if(a){var o,i=e[t];if(i){var s=r.transition,l=a.transition;if(l)if(!o&&(o=n[t]={}),Ma(l))N(o,i);else for(var u=tt(l),f=0;f<u.length;f++)o[c=u[f]]=v=i[c];else if(Ma(s)||Ce(s,t)>=0){!o&&(o=n[t]={});var h=Ae(i);for(f=0;f<h.length;f++){var c,v;KE(a[c=h[f]],v=i[c])&&(o[c]=v)}}}}}function pv(t,e,r){var n=e[t];if(n)for(var a=r[t]={},i=Ae(n),o=0;o<i.length;o++){var s=i[o];a[s]=Ti(n[s])}}function KE(t,e){return ft(t)?t!==e:null!=t&&isFinite(t)}var ZS=Ee(),jE=["percent","easing","shape","style","extra"];function gv(t,e,r){if(r.isAnimationEnabled()&&e){if(W(e))return void D(e,function(s){gv(t,s,r)});var n=e.keyframes,a=e.duration;if(r&&null==a){var i=Bf("enter",r,0);a=i&&i.duration}if(n&&a){var o=ZS(t);D(Ul,function(s){var l;s&&!t[s]||(n.sort(function(f,c){return f.percent-c.percent}),D(n,function(f){var c=t.animators,v=s?f[s]:f;if(v){var h=Ae(v);if(s||(h=We(h,function(p){return Ce(jE,p)<0})),h.length){l||((l=t.animate(s,e.loop,!0)).scope="keyframe");for(var d=0;d<c.length;d++)c[d]!==l&&c[d].targetName===l.targetName&&c[d].stopTracks(h);s&&(o[s]=o[s]||{});var y=s?o[s]:o;D(h,function(p){y[p]=((s?t[s]:t)||{})[p]}),l.whenWithKeys(a*f.percent,v,h,f.easing)}}}),l&&l.delay(e.delay||0).duration(a).start(e.easing))})}}}var KS={path:null,compoundPath:null,group:Ht,image:xn,text:$e},nr=Ee(),QE=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.type=e.type,r}return(0,J.C6)(e,t),e.prototype.init=function(){this._elMap=ye()},e.prototype.render=function(r,n,a){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,a)},e.prototype._updateElements=function(r){var n=r.useElOptionsToUpdate();if(n){var a=this._elMap,i=this.group,o=r.get("z"),s=r.get("zlevel");D(n,function(l){var u=bt(l.id,null),f=null!=u?a.get(u):null,c=bt(l.parentId,null),v=null!=c?a.get(c):i,h=l.type,d=l.style;"text"===h&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var y=l.textContent,p=l.textConfig;if(d&&function FE(t,e,r,n){return t&&(t.legacy||!1!==t.legacy&&!r&&!n&&"tspan"!==e&&("text"===e||le(t,"text")))}(d,h,!!p,!!y)){var g=function HE(t,e,r){var a,i,o,n=t;if("text"===e)o=n;else{o={},le(n,"text")&&(o.text=n.text),le(n,"rich")&&(o.rich=n.rich),le(n,"textFill")&&(o.fill=n.textFill),le(n,"textStroke")&&(o.stroke=n.textStroke),le(n,"fontFamily")&&(o.fontFamily=n.fontFamily),le(n,"fontSize")&&(o.fontSize=n.fontSize),le(n,"fontStyle")&&(o.fontStyle=n.fontStyle),le(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=le(n,"textPosition");r?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),le(n,"textPosition")&&(a.position=n.textPosition),le(n,"textOffset")&&(a.offset=n.textOffset),le(n,"textRotation")&&(a.rotation=n.textRotation),le(n,"textDistance")&&(a.distance=n.textDistance)}return VS(o,t),D(o.rich,function(l){VS(l,l)}),{textConfig:a,textContent:i}}(d,h,!0);!p&&g.textConfig&&(p=l.textConfig=g.textConfig),!y&&g.textContent&&(y=g.textContent)}var m=function JE(t){return t=N({},t),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Eg),function(e){delete t[e]}),t}(l),_=l.$action||"merge",S="merge"===_,b="replace"===_;if(S){var x=f;(C=!f)?x=jS(u,v,l.type,a):(x&&(nr(x).isNew=!1),function $E(t){t.stopAnimation("keyframe"),t.attr(ZS(t))}(x)),x&&(dv(x,m,r,{isInit:C}),$S(x,l,o,s))}else if(b){ql(f,l,a,r);var T=jS(u,v,l.type,a);T&&(dv(T,m,r,{isInit:!0}),$S(T,l,o,s))}else"remove"===_&&(YS(f,l),ql(f,l,a,r));var w=a.get(u);if(w&&y)if(S){var L=w.getTextContent();L?L.attr(y):w.setTextContent(new $e(y))}else b&&w.setTextContent(new $e(y));if(w){var R=l.clipPath;if(R){var E=R.type,M=void 0,C=!1;if(S){var k=w.getClipPath();M=(C=!k||nr(k).type!==E)?yv(E):k}else b&&(C=!0,M=yv(E));w.setClipPath(M),dv(M,R,r,{isInit:C}),gv(M,R.keyframeAnimation,r)}var B=nr(w);w.setTextConfig(p),B.option=l,function e2(t,e,r){var n=De(t).eventData;!t.silent&&!t.ignore&&!n&&(n=De(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),n&&(n.info=r.info)}(w,r,l),to({el:w,componentModel:r,itemName:w.name,itemTooltipOption:l.tooltip}),gv(w,l.keyframeAnimation,r)}})}},e.prototype._relocate=function(r,n){for(var a=r.option.elements,i=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],f=0;f<a.length;f++)if((h=null!=(v=bt((c=a[f]).id,null))?o.get(v):null)&&h.isGroup){var y=(d=h.parent)===i,p=nr(h),g=nr(d);p.width=Ie(p.option.width,y?s:g.width)||0,p.height=Ie(p.option.height,y?l:g.height)||0}for(f=a.length-1;f>=0;f--){var c,v,h;if(h=null!=(v=bt((c=a[f]).id,null))?o.get(v):null){g=nr(d=h.parent);var d,_={},S=ew(h,c,d===i?{width:s,height:l}:{width:g.width,height:g.height},null,{hv:c.hv,boundingMode:c.bounding},_);if(!nr(h).isNew&&S){for(var b=c.transition,C={},x=0;x<u.length;x++){var T=u[x],w=_[T];b&&(Ma(b)||Ce(b,T)>=0)?C[T]=w:h[T]=w}pr(h,C,r,0)}else h.attr(_)}}},e.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(a){ql(a,nr(a).option,n,r._lastGraphicModel)}),this._elMap=ye()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(er);function yv(t){var r=new(le(KS,t)?KS[t]:Nc(t))({});return nr(r).type=t,r}function jS(t,e,r,n){var a=yv(r);return e.add(a),n.set(t,a),nr(a).id=t,nr(a).isNew=!0,a}function ql(t,e,r,n){t&&t.parent&&("group"===t.type&&t.traverse(function(i){ql(i,e,r,n)}),function GE(t,e,r,n){if(t){var a=t.parent,i=ui(t).leaveToProps;if(i){var o=vv("update",t,e,r,0);o.done=function(){a&&a.remove(t),n&&n()},t.animateTo(i,o)}else a&&a.remove(t),n&&n()}}(t,e,n),r.removeKey(nr(t).id))}function $S(t,e,r,n){t.isGroup||D([["cursor",jn.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(a){var i=a[0];le(e,i)?t[i]=se(e[i],a[1]):null==t[i]&&(t[i]=a[1])}),D(Ae(e),function(a){if(0===a.indexOf("on")){var i=e[a];t[a]=ce(i)?i:null}}),le(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}function QS(t,e,r){var n=Yt.createCanvas(),a=e.getWidth(),i=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",t)),n.width=a*r,n.height=i*r,n}var r2=function(t){function e(r,n,a){var o,i=t.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null,a=a||ns,"string"==typeof r?o=QS(r,n,a):re(r)&&(r=(o=r).id),i.id=r,i.dom=o;var s=o.style;return s&&(eu(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return(0,J.C6)(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=QS("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),1!==r&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var p,o=[],s=this.maxRepaintRectCount,l=!1,u=new pe(0,0,0,0);function f(m){if(m.isFinite()&&!m.isZero())if(0===o.length)(_=new pe(0,0,0,0)).copy(m),o.push(_);else{for(var S=!1,b=1/0,C=0,x=0;x<o.length;++x){var T=o[x];if(T.intersect(m)){var w=new pe(0,0,0,0);w.copy(T),w.union(m),o[x]=w,S=!0;break}if(l){u.copy(m),u.union(T);var M=u.width*u.height-m.width*m.height-T.width*T.height;M<b&&(b=M,C=x)}}var _;l&&(o[C].union(m),S=!0),S||((_=new pe(0,0,0,0)).copy(m),o.push(_)),l||(l=o.length>=s)}}for(var c=this.__startIndex;c<this.__endIndex;++c)if(v=r[c]){var h=v.shouldBePainted(a,i,!0,!0);(d=v.__isRendered&&(1&v.__dirty||!h)?v.getPrevPaintRect():null)&&f(d);var y=h&&(1&v.__dirty||!v.__isRendered)?v.getPaintRect():null;y&&f(y)}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var v,d;h=(v=n[c])&&v.shouldBePainted(a,i,!0,!0),!v||h&&v.__zr||!v.__isRendered||(d=v.getPrevPaintRect())&&f(d)}do{for(p=!1,c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(p=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(p);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),i.width=r*a,i.height=n*a,s&&(s.width=r*a,s.height=n*a,1!==a&&this.ctxBack.scale(a,a))},e.prototype.clear=function(r,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;n=n||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,v=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/c,l/c));var h=this.domBack;function d(y,p,g,m){if(o.clearRect(y,p,g,m),n&&"transparent"!==n){var _=void 0;ci(n)?(_=(n.global||n.__width===g&&n.__height===m)&&n.__canvasGradient||Qc(o,n,{x:0,y:0,width:g,height:m}),n.__canvasGradient=_,n.__width=g,n.__height=m):Dv(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=Jc(o,n,{dirty:function(){v.setUnpainted(),v.painter.refresh()}})),o.save(),o.fillStyle=_||n,o.fillRect(y,p,g,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,y,p,g,m),o.restore())}!a||u?d(0,0,s,l):a.length&&D(a,function(y){d(y.x*c,y.y*c,y.width*c,y.height*c)})},e}(xr);const mv=r2;var Aa=314159,o2=function(){function t(e,r,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=N({},n||{}),this.dpr=n.devicePixelRatio||ns,this._singleCanvas=i,this.root=e,e.style&&(eu(e),e.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var f=e,c=f.width,v=f.height;null!=n.width&&(c=n.width),null!=n.height&&(v=n.height),this.dpr=n.devicePixelRatio||1,f.width=c*this.dpr,f.height=v*this.dpr,this._width=c,this._height=v;var h=new mv(f,this,this.dpr);h.__builtin__=!0,h.initContext(),l[Aa]=h,h.zlevel=Aa,s.push(Aa),this._domRoot=e}else{this._width=sl(e,0,n),this._height=sl(e,1,n);var u=this._domRoot=function i2(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}(this._width,this._height);e.appendChild(u)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,e,this._redrawId);for(var i=0;i<a.length;i++){var s=this._layers[a[i]];!s.__builtin__&&s.refresh&&s.refresh(0===i?this._backgroundColor:null)}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var r=e.length,n=this._hoverlayer;if(n&&n.clear(),r){for(var i,a={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<r;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(1e5)),i||(i=n.ctx).save(),_a(i,s,a,o===r-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(1e5)},t.prototype.paintOne=function(e,r){eh(e,r)},t.prototype._paintList=function(e,r,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,r,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;mu(function(){l._paintList(e,r,n,a)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(Aa).ctx,r=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,r,n),this.eachBuiltinLayer(function(a){a.virtual&&e.drawImage(a.dom,0,0,r,n)})},t.prototype._doPaintList=function(e,r,n){for(var a=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var u=this._layers[this._zlevelList[s]];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&i.push(u)}for(var f=!0,c=!1,v=function(y){var p=i[y],g=p.ctx,m=o&&p.createRepaintRects(e,r,h._width,h._height),_=n?p.__startIndex:p.__drawIndex,S=!n&&p.incremental&&Date.now,b=S&&Date.now(),C=p.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,C,m);else if(_===p.__startIndex){var x=e[_];(!x.incremental||!x.notClear||n)&&p.clear(!1,C,m)}-1===_&&(console.error("For some unknown reason. drawIndex is -1"),_=p.__startIndex);var T,w=function(M){var k={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(T=_;T<p.__endIndex;T++){var B=e[T];if(B.__inHover&&(c=!0),a._doPaintEl(B,p,o,M,k,T===p.__endIndex-1),S&&Date.now()-b>15)break}k.prevElClipPaths&&g.restore()};if(m)if(0===m.length)T=p.__endIndex;else for(var L=h.dpr,R=0;R<m.length;++R){var E=m[R];g.save(),g.beginPath(),g.rect(E.x*L,E.y*L,E.width*L,E.height*L),g.clip(),w(E),g.restore()}else g.save(),w(),g.restore();p.__drawIndex=T,p.__drawIndex<p.__endIndex&&(f=!1)},h=this,d=0;d<i.length;d++)v(d);return me.wxa&&D(this._layers,function(y){y&&y.ctx&&y.ctx.draw&&y.ctx.draw()}),{finished:f,needsRefreshHover:c}},t.prototype._doPaintEl=function(e,r,n,a,i,o){var s=r.ctx;if(n){var l=e.getPaintRect();(!a||l&&l.intersect(a))&&(_a(s,e,i,o),e.setPrevPaintRect(l))}else _a(s,e,i,o)},t.prototype.getLayer=function(e,r){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Aa);var n=this._layers[e];return n||((n=new mv("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?Be(n,this._layerConfig[e],!0):this._layerConfig[e-.01]&&Be(n,this._layerConfig[e-.01],!0),r&&(n.virtual=r),this.insertLayer(e,n),n.initContext()),n},t.prototype.insertLayer=function(e,r){var n=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,l=-1;if(!n[e]&&function a2(t){return!(!t||!t.__builtin__&&("function"!=typeof t.resize||"function"!=typeof t.refresh))}(r)){if(i>0&&e>a[0]){for(l=0;l<i-1&&!(a[l]<e&&a[l+1]>e);l++);s=n[a[l]]}if(a.splice(l+1,0,e),n[e]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},t.prototype.eachLayer=function(e,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a];e.call(r,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(e,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&e.call(r,o,i)}},t.prototype.eachOtherLayer=function(e,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||e.call(r,o,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){function r(c){i&&(i.__endIndex!==c&&(i.__dirty=!0),i.__endIndex=c)}if(this.eachBuiltinLayer(function(c,v){c.__dirty=c.__used=!1}),this._singleCanvas)for(var n=1;n<e.length;n++)if((a=e[n]).zlevel!==e[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}var s,l,i=null,o=0;for(l=0;l<e.length;l++){var a,u=(a=e[l]).zlevel,f=void 0;s!==u&&(s=u,o=0),a.incremental?((f=this.getLayer(u+.001,this._needsManuallyCompositing)).incremental=!0,o=1):f=this.getLayer(u+(o>0?.01:0),this._needsManuallyCompositing),f.__builtin__||Mo("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.__drawIndex=f.incremental?-1:l,r(l),i=f),1&a.__dirty&&!a.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(c,v){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,D(this._layers,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?Be(n[e],r,!0):n[e]=r;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];i!==e&&i!==e+.01||Be(this._layers[i],n[e],!0)}}},t.prototype.delLayer=function(e){var r=this._layers,n=this._zlevelList,a=r[e];a&&(a.dom.parentNode.removeChild(a.dom),delete r[e],n.splice(Ce(n,e),1))},t.prototype.resize=function(e,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;if(null!=e&&(a.width=e),null!=r&&(a.height=r),e=sl(i,0,a),r=sl(i,1,a),n.style.display="",this._width!==e||r!==this._height){for(var o in n.style.width=e+"px",n.style.height=r+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,r);this.refresh(!0)}this._width=e,this._height=r}else{if(null==e||null==r)return;this._width=e,this._height=r,this.getLayer(Aa).resize(e,r)}return this},t.prototype.clearLayer=function(e){var r=this._layers[e];r&&r.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(this._singleCanvas&&!this._compositeManually)return this._layers[Aa].dom;var r=new mv("image",this,(e=e||{}).pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var n=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=r.dom.width,i=r.dom.height;this.eachLayer(function(c){c.__builtin__?n.drawImage(c.dom,0,0,a,i):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++)_a(n,s[l],o,l===u-1);return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();const s2=o2;var ar=O(6756),u2=O(2245),f2=O(5381),c2=O(6170);const h2=["chart"],v2=()=>({renderer:"canvas",width:"auto",height:"auto"});function d2(t,e){if(1&t&&(ee.j41(0,"cue-flexcontainer",3),ee.nrm(1,"cue-typography",5),ee.k0s()),2&t){const r=ee.XpG();ee.R7$(),ee.Y8G("innerHTML",r.currentHoveredValue()||r.formattedSum(),ee.npT)}}function p2(t,e){if(1&t&&(ee.j41(0,"cue-flexcontainer",4)(1,"cue-typography",6),ee.EFF(2),ee.k0s()()),2&t){const r=ee.XpG();ee.R7$(2),ee.JRh(r.currentHoveredValue())}}An([function ER(t){t.registerComponentModel(RR),t.registerComponentView(IR)},function gE(t){An(XI),t.registerComponentModel(KI),t.registerComponentView(pE),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},St),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},St)},function RE(t){An(NS),An(PE)},function PR(t){t.registerChartView(xR),t.registerSeriesModel(AR),function JM(t,e){function r(n,a){var i=[];return n.eachComponent({mainType:"series",subType:t,query:a},function(o){i.push(o.seriesIndex)}),i}D([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(a,i,o){a=N({},a),o.dispatchAction(N(a,{type:n[1],seriesIndex:r(i,a)}))})})}("pie",t.registerAction),t.registerLayout(Ue(pR,"pie")),t.registerProcessor(function gR(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(n&&n.length){var a=e.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}("pie")),t.registerProcessor(function LR(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(Re(o)&&!isNaN(o)&&o<0)})}}}("pie"))},function l2(t){t.registerPainter("canvas",s2)},U_,function t2(t){t.registerComponentModel(BE),t.registerComponentView(QE),t.registerPreprocessor(function(e){var r=e.graphic;W(r)?e.graphic=r[0]&&r[0].elements?[e.graphic[0]]:[{elements:r}]:r&&!r.elements&&(e.graphic=[{elements:[r]}])})}]);let g2=(()=>{class t{data=ne.hFB.required();variant=(0,ne.hFB)("primary");doughnut=(0,ne.hFB)(!1);hoverType=(0,ne.hFB)("name");labelType=(0,ne.hFB)("name");clickable=(0,ne.hFB)(!0);labelThresholdPct=(0,ne.hFB)(3);groupSmallFractions=(0,ne.hFB)(void 0);clickedCategory=(0,ne.CGW)();clickedCanvas=(0,ne.CGW)();radius=(0,ue.EW)(()=>this.doughnut()?["40%","70%"]:"70%");startColor=(0,ue.EW)(()=>(0,ar.r)(this.variant()));endColor=(0,ue.EW)(()=>(0,ar.U6)(this.variant()));currentParent=(0,H.vPA)(void 0);saturated=(0,ue.EW)(()=>{const r=this.groupSmallFractions();return r?.enabled?(0,ar.g0)(this.data(),!0,r.threshold,r.groupName):(0,ar.g0)(this.data(),!1)});chartData=(0,ue.EW)(()=>(0,ar.Mc)(this.saturated(),this.currentParent()));borderColor=(0,ue.EW)(()=>"tertiary"===this.variant()?"#cccccc":this.borderBackgroundColor());textColor=(0,H.vPA)("#333");borderBackgroundColor=(0,H.vPA)("#fff");sum=(0,ue.EW)(()=>this.chartData().reduce((r,n)=>r+n.value,0));formattedSum=(0,ue.EW)(()=>(0,ar.In)(this.sum()));chartInstance=null;currentHoveredValue=(0,H.vPA)(null);chartRef;ngAfterViewInit(){this.updateColors()}updateColors(){const r=(0,ar.g8)(this.chartRef);this.textColor.set(r.text),this.borderBackgroundColor.set(r.borderBackground)}onChartInit(r){this.chartInstance=r,this.setupChartEvents()}setupChartEvents(){this.chartInstance&&(this.chartInstance.on("mouseover",r=>{r.data&&(this.updateHoveredValue(r.data),this.chartInstance?.setOption(this.chartOptions()))}),this.chartInstance.on("mouseout",()=>{this.currentHoveredValue.set(null),this.chartInstance?.setOption(this.chartOptions())}),this.chartInstance.on("click",r=>{const n=window.event||r.event;n&&"function"==typeof n.stopPropagation&&n.stopPropagation(),r.data&&(!0!==r.data?.isGroup&&this.clickedCategory.emit(r.data),this.currentParent.set(void 0!==r.data.children&&r.data.children.length>0?r.data:void 0))}))}onData=(0,H.QZP)(()=>{this.data(),this.currentHoveredValue.set(null)});handleCanvasClick(){this.clickedCanvas.emit(),this.currentParent.set(void 0)}updateHoveredValue(r){switch(this.hoverType()){case"value":this.currentHoveredValue.set(r.value.toString());break;case"valueShort":this.currentHoveredValue.set((0,ar.In)(r.value));break;case"pct":{const n=(r.value/this.sum()*100).toFixed(1);this.currentHoveredValue.set(`${n}%`);break}case"nameValue":this.currentHoveredValue.set(`${r.name}${this.doughnut()?"<br>":": "}${r.value.toString()}`);break;case"nameValueShort":this.currentHoveredValue.set(`${r.name}${this.doughnut()?"<br>":": "}${(0,ar.In)(r.value)}`);break;case"namePct":{const n=(r.value/this.sum()*100).toFixed(1);this.currentHoveredValue.set(`${r.name}${this.doughnut()?"<br>":": "}${n}%`);break}default:this.currentHoveredValue.set(r.name)}}chartOptions=(0,ue.EW)(()=>{const r=this.chartData();return{fontStyle:ar.u9,series:[{name:"Distribution",type:"pie",radius:this.radius(),cursor:this.clickable()?"pointer":"default",data:r.map((n,a)=>({...n,itemStyle:{color:(0,ar.Kz)(this.startColor(),this.endColor(),a,r.length),borderColor:this.borderColor(),borderWidth:"tertiary"===this.variant()?1:2,borderType:"solid"}})),emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)",borderWidth:"tertiary"===this.variant()?2:0,borderColor:"tertiary"===this.variant()?"#999999":"transparent"}},labelLine:{show:!1},label:{color:this.textColor(),distanceToLabelLine:-20,position:"outside",show:"none"!==this.labelType(),formatter:n=>{const{data:a}=n,i=a.value/this.sum()*100;if(i<this.labelThresholdPct())return"";switch(this.labelType()){case"value":return a.value;case"valueShort":return(0,ar.In)(a.value);case"pct":return`${i.toFixed(1)}%`;default:return a.name}}}}]}});static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ee.VBU({type:t,selectors:[["cue-pie-chart"]],viewQuery:function(n,a){if(1&n&&ee.GBs(h2,5),2&n){let i;ee.mGM(i=ee.lsd())&&(a.chartRef=i.first)}},inputs:{data:[1,"data"],variant:[1,"variant"],doughnut:[1,"doughnut"],hoverType:[1,"hoverType"],labelType:[1,"labelType"],clickable:[1,"clickable"],labelThresholdPct:[1,"labelThresholdPct"],groupSmallFractions:[1,"groupSmallFractions"]},outputs:{clickedCategory:"clickedCategory",clickedCanvas:"clickedCanvas"},features:[ee.Jv_([Cv({echarts:sn})])],decls:5,vars:5,consts:[["chart",""],["cueDarkMode","",1,"chart-container",3,"darkModeChange","click"],["echarts","",1,"chart",3,"chartInit","options","initOpts"],["justify","center",1,"center-text"],["justify","center",1,"bottom-text"],["size","l","weight","semibold","align","center",3,"innerHTML"],["size","l","weight","semibold"]],template:function(n,a){1&n&&(ee.j41(0,"div",1),ee.bIt("darkModeChange",function(){return a.updateColors()})("click",function(){return a.handleCanvasClick()}),ee.j41(1,"div",2,0),ee.bIt("chartInit",function(o){return a.onChartInit(o)}),ee.k0s(),ee.nVh(3,d2,2,1,"cue-flexcontainer",3),ee.nVh(4,p2,3,1,"cue-flexcontainer",4),ee.k0s()),2&n&&(ee.R7$(),ee.Y8G("options",a.chartOptions())("initOpts",ee.lJ4(4,v2)),ee.R7$(2),ee.vxM(a.doughnut()?3:-1),ee.R7$(),ee.vxM(a.doughnut()?-1:4))},dependencies:[tC,eC,u2.Typography,f2.n,c2.R],styles:[".chart-container[_ngcontent-%COMP%]{position:relative;width:100%;height:400px}.chart[_ngcontent-%COMP%]{width:100%;height:100%}.center-text[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;pointer-events:none;width:80%}.bottom-text[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;right:0;text-align:center;padding-bottom:10px}"]})}return t})()},9811(Vr,et,O){O.d(et,{z:()=>Xe});var P=O(5802),A=O(1519);let Xe=(()=>{class I{handlers=(0,P.vPA)(new A.$);projectId=(0,P.vPA)("");portalBaseURL=(0,P.vPA)("");resourceBaseURL=(0,P.vPA)("");graphIsSaturated=(0,P.vPA)(!1);privileges=(0,P.vPA)(new A.c);availableContentCategories=(0,P.vPA)(void 0);availableEntityCategories=(0,P.vPA)(void 0);availableEntityRelationships=(0,P.vPA)(void 0);entityInfoMap=(0,P.vPA)({});documentInfoMap=(0,P.vPA)({});static \u0275fac=function(Wt){return new(Wt||I)};static \u0275prov=P.jDH({token:I,factory:I.\u0275fac})}return I})()},7993(Vr,et,O){O.d(et,{o:()=>je});var P=O(467),A=O(5802),Xe=O(7705),I=O(2271),gt=O(278),rt=O(7573);const ne=[{"@id":"https://dev.qaecy.com/enum#ConstructionProcessDocument","@type":"qcy:ContentCategory",children:[{"@id":"https://dev.qaecy.com/enum#ScheduleDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Schedule Document"}},{"@id":"https://dev.qaecy.com/enum#SafetyDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Safety Document"}},{"@id":"https://dev.qaecy.com/enum#QualityAssuranceDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"QA/QC Document"}},{"@id":"https://dev.qaecy.com/enum#ProgressStatusReport","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Progress & Status Report"}},{"@id":"https://dev.qaecy.com/enum#OtherConstructionProcessDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Other Construction Management Document"}},{"@id":"https://dev.qaecy.com/enum#ChangeOrderRFIDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Change Order & RFI Document"}}],label:{"@language":"en","@value":"Construction Process & Management Document"}},{"@id":"https://dev.qaecy.com/enum#ContractualDocument","@type":"qcy:ContentCategory",children:[{"@id":"https://dev.qaecy.com/enum#PurchaseOrLeaseAgreement","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Purchase & Lease Agreement"}},{"@id":"https://dev.qaecy.com/enum#OtherContractualDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Other Contractual & Legal Document"}},{"@id":"https://dev.qaecy.com/enum#InsuranceBondDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Insurance & Bond Document"}},{"@id":"https://dev.qaecy.com/enum#ConstructionContract","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Construction Contract"}}],label:{"@language":"en","@value":"Contractual & Legal Document"}},{"@id":"https://dev.qaecy.com/enum#DesignDocument","@type":"qcy:ContentCategory",children:[{"@id":"https://dev.qaecy.com/enum#OtherDesignDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Other Design Document"}},{"@id":"https://dev.qaecy.com/enum#LandscapeDesignDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Landscape Design Document"}},{"@id":"https://dev.qaecy.com/enum#InteriorDesignDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Interior Design Document"}},{"@id":"https://dev.qaecy.com/enum#EngineeringDesignDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Engineering Design Document"}},{"@id":"https://dev.qaecy.com/enum#ArchitecturalDesignDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Architectural Design Document"}}],label:{"@language":"en","@value":"Design Document"}},{"@id":"https://dev.qaecy.com/enum#FinancialAdministrativeDocument","@type":"qcy:ContentCategory",children:[{"@id":"https://dev.qaecy.com/enum#OtherFinancialAdministrativeDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Other Financial & Administrative Document"}},{"@id":"https://dev.qaecy.com/enum#InvoicePaymentDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Invoice or Payment Document"}},{"@id":"https://dev.qaecy.com/enum#BudgetEstimateDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Budget or Estimate Document"}},{"@id":"https://dev.qaecy.com/enum#AppraisalValuationDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Appraisal or Valuation Document"}}],label:{"@language":"en","@value":"Financial & Administrative Document"}},{"@id":"https://dev.qaecy.com/enum#MiscDocument","@type":"qcy:ContentCategory",children:[{"@id":"https://dev.qaecy.com/enum#OtherMiscDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Other Miscellaneous Document"}},{"@id":"https://dev.qaecy.com/enum#MarketingCloseoutDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Marketing or Project Closeout Document"}},{"@id":"https://dev.qaecy.com/enum#DueDiligenceDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Due Diligence Document"}},{"@id":"https://dev.qaecy.com/enum#CorrespondenceDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Correspondence Document"}}],label:{"@language":"en","@value":"Miscellaneous Document"}},{"@id":"https://dev.qaecy.com/enum#OperationsMaintenanceDocument","@type":"qcy:ContentCategory",children:[{"@id":"https://dev.qaecy.com/enum#WarrantyDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Warranty or Guarantee Document"}},{"@id":"https://dev.qaecy.com/enum#OtherOperationsMaintenanceDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Other O&M Document"}},{"@id":"https://dev.qaecy.com/enum#OperationManual","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Operation Manual"}},{"@id":"https://dev.qaecy.com/enum#MaintenanceLog","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Maintenance Log"}},{"@id":"https://dev.qaecy.com/enum#AsBuiltDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"As-Built Document"}}],label:{"@language":"en","@value":"Operations & Maintenance Document"}},{"@id":"https://dev.qaecy.com/enum#RegulatoryComplianceDocument","@type":"qcy:ContentCategory",children:[{"@id":"https://dev.qaecy.com/enum#PermitDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Permit Document"}},{"@id":"https://dev.qaecy.com/enum#OtherRegulatoryComplianceDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Other Regulatory & Compliance Document"}},{"@id":"https://dev.qaecy.com/enum#InspectionDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Inspection Document"}},{"@id":"https://dev.qaecy.com/enum#ComplianceReport","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Compliance Report"}},{"@id":"https://dev.qaecy.com/enum#CertificationDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Certification Document"}}],label:{"@language":"en","@value":"Regulatory & Compliance Document"}},{"@id":"https://dev.qaecy.com/enum#RequirementsDocument","@type":"qcy:ContentCategory",children:[{"@id":"https://dev.qaecy.com/enum#TechnicalRequirementsDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Technical Requirements Document"}},{"@id":"https://dev.qaecy.com/enum#ScopeOfWorkDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Scope of Work (SOW) Document"}},{"@id":"https://dev.qaecy.com/enum#PerformanceRequirementsDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Performance Requirements Document"}},{"@id":"https://dev.qaecy.com/enum#OtherRequirementsDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Other Requirements & Scoping Document"}},{"@id":"https://dev.qaecy.com/enum#FunctionalRequirementsDocument","@type":"qcy:ContentCategory",label:{"@language":"en","@value":"Functional Requirements Document"}}],label:{"@language":"en","@value":"Requirements & Scoping Document"}}],he=(fe,ie,$="size")=>{const ae=Array.isArray(fe)?fe.reduce((Q,Se)=>({...Q,[Se.id]:Se.value}),{}):Object.entries(fe).reduce((Q,[Se,Oe])=>{const mt="number"==typeof Oe?Oe:Oe[$];return{...Q,[Se]:mt}},{});if(ie&&ie.length>0)return ee(ae,ie);const X=Object.entries(ae).map(([Q,Se])=>({id:Q,value:Se}));if(!(fe=>{const ie=(()=>{const fe=new Set,ie=$=>{for(const ae of $)fe.add(ae["@id"]),ae.children&&ie(ae.children)};return ie(ne),fe})(),$=Array.isArray(fe)?fe.map(ae=>ae.id):Object.keys(fe);for(const ae of $)if(!ie.has(ae))return!1;return!0})(ae))return X.map(Q=>({id:Q.id,name:String(Q.id),value:Q.value}));const V=Q=>{const Se=ae[Q["@id"]]||0,Oe=Q.children?Q.children.map(qt=>V(qt)).filter(qt=>void 0!==qt):void 0;let mt=Se;if(Oe&&Oe.length>0&&(mt+=Oe.reduce((qt,Xl)=>qt+(Xl.value||0),0)),mt>0)return{id:Q["@id"],name:Q.label["@value"],value:mt,children:Oe&&Oe.length>0?Oe:void 0}};return ne.map(Q=>V(Q)).filter(Q=>void 0!==Q)},ee=(fe,ie)=>{const $=new Map,ae=[];ie.forEach(V=>{$.set(V.iri,{id:V.iri,name:V.label,value:fe[V.iri]||0,children:[]})}),ie.forEach(V=>{const Q=$.get(V.iri);V.parent&&$.has(V.parent)?$.get(V.parent).children.push(Q):ae.push(Q)});const X=V=>{let Q=0;return V.children&&V.children.length>0&&(V.children=V.children.map(Se=>X(Se)).filter(Se=>void 0!==Se),Q=V.children.reduce((Se,Oe)=>Se+(Oe.value||0),0)),(!V.children||0===V.children.length)&&delete V.children,V.value=(V.value||0)+Q,(V.value||0)>0?V:void 0};return ae.map(V=>X(V)).filter(V=>void 0!==V)};var te=O(9811),Pe=O(5547);let je=(()=>{class fe{ctx=(0,A.WQX)(te.z);data=Xe.hFB.required();config=Xe.hFB.required();handlers=(0,I.EW)(()=>this.config().handlers);navigated=(0,Xe.CGW)();selectedContentCategories=(0,A.vPA)([]);onReset=(0,A.QZP)(()=>{this.handleCanvasClick()});fullTree=(0,I.EW)(()=>he(this.data().documents,this.ctx.availableContentCategories(),"count"));chartData=(0,I.EW)(()=>{const $=this.selectedContentCategories();if(!$.length)return this.fullTree();const ae=$[0],X=Q=>{for(const Se of Q){if(Se.id===ae)return Se;if(Se.children){const Oe=X(Se.children);if(Oe)return Oe}}};return X(this.fullTree())?.children??this.fullTree()});groupSmallFractions=(0,I.EW)(()=>({enabled:!0,threshold:.05,groupName:"Rest"}));handleContentCategoryClick($){var ae=this;return(0,P.A)(function*(){const X=Q=>{const Se=[];return Se.push(Q.id),Array.isArray(Q.children)&&Q.children.forEach(Oe=>{Se.push(...X(Oe))}),Se};if($.children&&$.children.length>0)return ae.selectedContentCategories.set([$.id]),void ae.navigated.emit({filterBy:"contentCat",values:X($),label:$.name??$.id});const V=X($);ae.selectedContentCategories.set(V),ae.navigated.emit({filterBy:"contentCat",values:V,label:$.name??$.id}),ae.requestDocumentList($)})()}requestDocumentList($){var ae=this;return(0,P.A)(function*(){const X=ae.handlers()?.subsequentBlockRequest;if((fe=>fe===`${rt.E["qcy-e"]}ContractualDocument`||"https://dev.qaecy.com/c/tend/enum#RentalContract"===fe)($.id)&&void 0!==X)return void X({id:"content-category",data:{categoryIRI:$.id},config:ae.config(),focusOnAdd:!1},$.name??$.id,!0);const Q=ae.handlers()?.docListFilterRequest;if(void 0===Q)return;const Se=yield Q("contentCat",[$.id]);Se&&void 0!==X&&X({id:"document-list",data:Se,config:ae.config(),focusOnAdd:!0},$.name??$.id,!0)})()}handleCanvasClick(){this.selectedContentCategories.set([]),this.navigated.emit(null)}static \u0275fac=function(ae){return new(ae||fe)};static \u0275cmp=Pe.VBU({type:fe,selectors:[["cue-block-documents-by-content-category"]],inputs:{data:[1,"data"],config:[1,"config"]},outputs:{navigated:"navigated"},decls:1,vars:4,consts:[[1,"chart",3,"clickedCanvas","clickedCategory","data","doughnut","hoverType","groupSmallFractions"]],template:function(ae,X){1&ae&&(Pe.j41(0,"cue-pie-chart",0),Pe.bIt("clickedCanvas",function(){return X.handleCanvasClick()})("clickedCategory",function(Q){return X.handleContentCategoryClick(Q)}),Pe.k0s()),2&ae&&Pe.Y8G("data",X.chartData())("doughnut",!1)("hoverType","nameValue")("groupSmallFractions",X.groupSmallFractions())},dependencies:[gt.r],encapsulation:2,changeDetection:0})}return fe})()},3615(Vr,et,O){O.d(et,{Y:()=>ir});var P=O(467),A=O(7705),Xe=O(5802),I=O(2271),gt=O(4820),rt=O(6114),Wt=O(278),Te=O(5547);const yt="unknown";let ir=(()=>{class Ut{data=A.hFB.required();config=A.hFB.required();handlers=(0,I.EW)(()=>this.config().handlers);navigated=(0,A.CGW)();documentInfoReady=(0,A.CGW)();documentInfo=(0,I.EW)(()=>{const ne=this.data().documents;return Object.entries(ne).map(([ue,H])=>{const he=ue.toLowerCase();return{id:ue,name:ue,value:H.count,info:rt.V[he]}})});categorySuffixMap=(0,I.EW)(()=>{const ne={};return this.documentInfo().forEach(ue=>{const H=ue.info?.type;void 0===H||H===gt.p.UNKNOWN?(Object.keys(ne).includes(yt)||(ne[yt]=[]),ne[yt].push(ue.name)):(Object.keys(ne).includes(H)||(ne[H]=[]),ne[H].push(ue.name))}),ne});groupSmallFractions=(0,I.EW)(()=>({enabled:!0,threshold:.05,groupName:"other"}));onDocumentInfo=(0,Xe.QZP)(()=>{this.documentInfoReady.emit(this.documentInfo())});byCategory=(0,I.EW)(()=>{const ne={};let ue=0;return this.documentInfo().forEach(H=>{const he=H.info?.type;void 0===he||he===gt.p.UNKNOWN?ue+=H.value??0:(Object.keys(ne).includes(he)||(ne[he]=0),ne[he]+=H.value??0)}),ue>0&&(ne[yt]=ue),Object.keys(ne).map(H=>({name:H,value:ne[H],id:H}))});docChartData=(0,I.EW)(()=>{const ne=this.selectedMimeCategories();if(!ne.length)return this.byCategory();const ue=[];if(ne.includes(yt)){const H=this.documentInfo().filter(he=>void 0===he.info||he.info.type===gt.p.UNKNOWN);ue.push(...H)}return this.documentInfo().forEach(H=>{ne.includes(H.info?.type??"")&&ue.push(H)}),ue});selectedMimeCategories=(0,Xe.vPA)([]);selectedSuffixes=(0,Xe.vPA)([]);handleDataClick(ne){var ue=this;return(0,P.A)(function*(){const H=ne.name,he=ue.selectedMimeCategories();if(!H?.startsWith(".")&&!he.length){ue.selectedMimeCategories.set([H??""]);const X=ue.categorySuffixMap()[H??""];return void ue.navigated.emit({filterBy:"suffix",values:X,label:H??""})}const te=X=>{const V=[];return V.push(X.name??""),Array.isArray(X.children)&&X.children.forEach(Q=>{V.push(...te(Q))}),V},Pe=te(ne),je=ue.handlers()?.docListFilterRequest;if(void 0===je)return;let fe;const ie=Pe.some(X=>X.startsWith("."));if(console.log("[DocumentsBySuffix] handleDataClick",ie,Pe),ie)fe=yield je("suffix",Pe),ue.navigated.emit({filterBy:"suffix",values:Pe,label:H??""});else{const X=ue.categorySuffixMap()[Pe[0]];fe=yield je("suffix",X),ue.navigated.emit({filterBy:"suffix",values:X,label:Pe[0]})}if(!fe)return;const $=ue.handlers()?.subsequentBlockRequest;void 0!==$?$({id:"document-list",data:fe,config:ue.config(),focusOnAdd:!0},H,!0):console.error("subsequentBlockRequest is undefined!")})()}handleCanvasClick(){this.selectedMimeCategories.update(()=>[]),this.selectedSuffixes.update(()=>[]),this.navigated.emit(null)}static \u0275fac=function(ue){return new(ue||Ut)};static \u0275cmp=Te.VBU({type:Ut,selectors:[["cue-block-documents-by-suffix"]],inputs:{data:[1,"data"],config:[1,"config"]},outputs:{navigated:"navigated",documentInfoReady:"documentInfoReady"},decls:1,vars:5,consts:[[1,"chart",3,"clickedCategory","clickedCanvas","data","doughnut","hoverType","groupSmallFractions","labelThresholdPct"]],template:function(ue,H){1&ue&&(Te.j41(0,"cue-pie-chart",0),Te.bIt("clickedCategory",function(ee){return H.handleDataClick(ee)})("clickedCanvas",function(){return H.handleCanvasClick()}),Te.k0s()),2&ue&&Te.Y8G("data",H.docChartData())("doughnut",!0)("hoverType","nameValue")("groupSmallFractions",H.groupSmallFractions())("labelThresholdPct",1)},dependencies:[Wt.r],encapsulation:2,changeDetection:0})}return Ut})()},1519(Vr,et,O){O.d(et,{$:()=>Xe,c:()=>I});var P=O(467),A=O(7573);class Xe{docListFilterRequest=(0,P.A)(function*(){console.warn("docListFilterRequest block request not implemented")});alternativeRepresentationsRequest=()=>{throw new Error("No alternative representation request handler defined")};buildAgentPlan=(0,P.A)(function*(){console.warn("buildAgentPlan not implemented")});downloadURLRequest=(rt,Wt=`${A.E.qcy}InformationObject`)=>{throw console.log(rt,Wt),new Error("No download URL request handler defined")};requestDocumentsByFilter=(0,P.A)(function*(){return console.warn("requestDocumentsByFilter not implemented"),[]});documentDuplicatesRequest=(0,P.A)(function*(){return console.warn("documentDuplicatesRequest not implemented"),{}});executeAgentPlan=(0,P.A)(function*(){return console.warn("executeAgentPlan not implemented"),"xx"});filteredDocumentListRequest;openDocumentInFileManager=()=>{console.warn("openDocumentInFileManager not implemented")};openDocumentInViewer;openEntityInViewer;queryHandler=(0,P.A)(function*(){throw new Error("No query handler defined")});relatedDocumentsRequest=(0,P.A)(function*(){console.warn("relatedDocumentsRequest block request not implemented")});requestEntityLocations=()=>{console.warn("requestEntityLocations not implemented")};requestFullScreen=()=>{console.warn("requestFullScreen not implemented")};requestGeoFeatures=()=>(console.warn("requestGeoFeatures not implemented"),Promise.resolve([]));requestRDFChange;rowClickHandler=()=>{throw new Error("No row click handler defined")};rowHoverHandler=()=>{throw new Error("No row hover handler defined")};subsequentBlockRequest=(0,P.A)(function*(){console.warn("subsequentBlockRequest not implemented")});requestEntityData=()=>{console.warn("requestEntityData not implemented")};requestEntityRelationships=(0,P.A)(function*(){console.warn("requestEntityRelationships not implemented")});openEntity=()=>{console.warn("openEntity not implemented")};requestDocumentData=()=>{console.warn("requestDocumentData not implemented")};requestDocumentURL;removeAgentPlanFromHistory=(0,P.A)(function*(){console.warn("removeAgentPlanFromHistory not implemented")})}class I{canEditContentCategory=!1;canEditEntityCategories=!1}},6170(Vr,et,O){O.d(et,{R:()=>gt});var P=O(7705),A=O(5802),Xe=O(2271),I=O(5547);let gt=(()=>{class rt{destroyRef=(0,A.WQX)(A.abz);_isDarkMode=(0,A.vPA)(this.hasDarkClass());isDarkMode=(0,Xe.EW)(()=>this._isDarkMode());darkModeChange=(0,P.CGW)();constructor(){const Te=new MutationObserver(Me=>{Me.forEach(yt=>{if("attributes"===yt.type&&"class"===yt.attributeName){const ir=this.hasDarkClass();ir!==this._isDarkMode()&&this._isDarkMode.set(ir)}})});Te.observe(document.body,{attributes:!0,attributeFilter:["class"]}),this.destroyRef.onDestroy(()=>Te.disconnect()),(0,A.QZP)(()=>{this.darkModeChange.emit(this._isDarkMode()),document.documentElement.style.colorScheme=this._isDarkMode()?"dark":"light"})}hasDarkClass(){return document.body.classList.contains("dark")}toggleDarkMode(){document.body.classList.toggle("dark")}static \u0275fac=function(Me){return new(Me||rt)};static \u0275dir=I.FsC({type:rt,selectors:[["","cueDarkMode",""]],outputs:{darkModeChange:"darkModeChange"},exportAs:["darkModeDetector"]})}return rt})()},6114(Vr,et,O){O.d(et,{N:()=>A,V:()=>Xe});var P=O(4820),A=function(I){return I.AAC=".aac",I.ABW=".abw",I.ARC=".arc",I.AVIF=".avif",I.AVI=".avi",I.APNG=".apng",I.BAK=".bak",I.BIN=".bin",I.BMC=".bmc",I.BMP=".bmp",I.BZ=".bz",I.BZ2=".bz2",I.C3D=".c3d",I.CPG=".cpg",I.CSS=".css",I.CSV=".csv",I.DAT=".dat",I.DOC=".doc",I.DOCX=".docx",I.E57=".e57",I.EPUB=".epub",I.EXE=".exe",I.FFS=".ffs",I.FME=".fme",I.FMW=".fmw",I.FRAG=".fragments",I.GH=".gh",I.GZ=".gz",I.GIF=".gif",I.HTML=".html",I.HTM=".htm",I.ICO=".ico",I.ICS=".ics",I.JAR=".jar",I.JPG=".jpg",I.JPEG=".jpeg",I.JSON=".json",I.JSONLD=".jsonld",I.JS=".js",I.MOV=".mov",I.MP3=".mp3",I.MP4=".mp4",I.MPEG=".mpeg",I.MSI=".msi",I.MTL=".mtl",I.ODP=".odp",I.ODS=".ods",I.ODT=".odt",I.OGA=".oga",I.OGG=".ogg",I.OGV=".ogv",I.OGX=".ogx",I.OTF=".otf",I.PNG=".png",I.PDF=".pdf",I.PHP=".php",I.PKG=".pkg",I.PPT=".ppt",I.PPTX=".pptx",I.PS=".ps",I.RAR=".rar",I.RCP=".rcp",I.RTF=".rtf",I.SH=".sh",I.SLK=".slk",I.SVG=".svg",I.TAR=".tar",I.TIFF=".tiff",I.TIF=".tif",I.TTF=".ttf",I.TXT=".txt",I.VGL=".vgl",I.VWX=".vwx",I.WAV=".wav",I.WEBM=".webm",I.WEBP=".webp",I.WMV=".wmv",I.WOFF=".woff",I.WOFF2=".woff2",I.XLS=".xls",I.XLSX=".xlsx",I.XHTML=".xhtml",I.XML=".xml",I.XYZ=".xyz",I.ZIP=".zip",I.SEVEN_Z=".7z",I.DBF=".dbf",I.EML=".eml",I.EMLX=".emlx",I.MBX=".mbx",I.MD=".md",I.MSG=".msg",I.RST=".rst",I.HEIC=".heic",I.MPP=".mpp",I.TSV=".tsv",I.B3DM=".b3dm",I.I3DM=".i3dm",I.PNTS=".pnts",I.CMPT=".cmpt",I.GLTF=".gltf",I.GLB=".glb",I.IFC=".ifc",I.IFCZIP=".ifczip",I.IFXML=".ifcxml",I.THREEDM=".3dm",I.THREEDS=".3ds",I.GHP=".ghp",I.RVT=".rvt",I.RFA=".rfa",I.RFT=".rft",I.RTE=".rte",I.PLA=".pla",I.PLN=".pln",I.GSM=".gsm",I.SMC=".smc",I.BCF=".bcf",I.DWG=".dwg",I.DWL=".dwl",I.DXF=".dxf",I.DGN=".dgn",I.NWD=".nwd",I.OBJ=".obj",I.C4D=".c4d",I.TEKLASTRUCTURES=".teklastructures",I.PTS=".pts",I.LAS=".las",I.LAZ=".laz",I.USDZ=".usdz",I.USDA=".usda",I.USDC=".usdc",I.USD=".usd",I.PSD=".psd",I.PSP=".psp",I.AI=".ai",I.SBN=".sbn",I.SBX=".sbx",I.SHX=".shx",I.SKP=".skp",I.STL=".stl",I.FBX=".fbx",I.KML=".kml",I.SHP=".shp",I}(A||{});const Xe={[A.AAC]:{type:P.p.AUDIO,open:!0,suffix:".aac"},[A.ABW]:{type:P.p.TEXT,open:!0,suffix:".abw"},[A.ARC]:{type:P.p.ARCHIVE,open:!1,suffix:".arc"},[A.AVIF]:{type:P.p.IMAGE,open:!0,suffix:".avif"},[A.AVI]:{type:P.p.VIDEO,open:!0,suffix:".avi"},[A.APNG]:{type:P.p.IMAGE,open:!0,suffix:".apng"},[A.BAK]:{type:P.p.BACKUP,open:!1,suffix:".bak"},[A.BIN]:{type:P.p.BINARY,open:!1,suffix:".bin"},[A.BMC]:{type:P.p.BIM,open:!1,suffix:".bmc"},[A.BMP]:{type:P.p.IMAGE,open:!0,suffix:".bmp"},[A.BZ]:{type:P.p.ARCHIVE,open:!0,suffix:".bz"},[A.BZ2]:{type:P.p.ARCHIVE,open:!0,suffix:".bz2"},[A.C3D]:{type:P.p.THREE_D,open:!0,suffix:".c3d"},[A.CPG]:{type:P.p.GEOSPATIAL,open:!0,suffix:".cpg"},[A.CSS]:{type:P.p.MARKUP,open:!0,suffix:".css"},[A.CSV]:{type:P.p.DATA,open:!0,suffix:".csv"},[A.DAT]:{type:P.p.DATA,open:!1,suffix:".dat"},[A.DBF]:{type:P.p.DATA,open:!0,suffix:".dbf"},[A.DOC]:{type:P.p.TEXT,open:!1,suffix:".doc"},[A.DOCX]:{type:P.p.TEXT,open:!0,suffix:".docx"},[A.E57]:{type:P.p.THREE_D,open:!0,suffix:".e57"},[A.EPUB]:{type:P.p.TEXT,open:!0,suffix:".epub"},[A.EXE]:{type:P.p.INSTALLER,open:!1,suffix:".exe"},[A.FFS]:{type:P.p.AUTOMATION,open:!1,suffix:".ffs"},[A.FME]:{type:P.p.AUTOMATION,open:!1,suffix:".fme"},[A.FMW]:{type:P.p.AUTOMATION,open:!1,suffix:".fmw"},[A.FRAG]:{type:P.p.BIM,open:!0,suffix:".fragments"},[A.GH]:{type:P.p.THREE_D,open:!1,suffix:".gh"},[A.GZ]:{type:P.p.ARCHIVE,open:!0,suffix:".gz"},[A.GIF]:{type:P.p.IMAGE,open:!0,suffix:".gif"},[A.HTML]:{type:P.p.MARKUP,open:!0,suffix:".html"},[A.HTM]:{type:P.p.MARKUP,open:!0,suffix:".htm"},[A.ICO]:{type:P.p.IMAGE,open:!1,suffix:".ico"},[A.ICS]:{type:P.p.DATA,open:!0,suffix:".ics"},[A.JAR]:{type:P.p.ARCHIVE,open:!0,suffix:".jar"},[A.JPG]:{type:P.p.IMAGE,open:!0,suffix:".jpg"},[A.JPEG]:{type:P.p.IMAGE,open:!0,suffix:".jpeg"},[A.JSON]:{type:P.p.DATA,open:!0,suffix:".json"},[A.JSONLD]:{type:P.p.DATA,open:!0,suffix:".jsonld"},[A.JS]:{type:P.p.SCRIPT,open:!0,suffix:".js"},[A.MSI]:{type:P.p.INSTALLER,open:!1,suffix:".msi"},[A.MOV]:{type:P.p.VIDEO,open:!0,suffix:".mov"},[A.MP3]:{type:P.p.AUDIO,open:!0,suffix:".mp3"},[A.MP4]:{type:P.p.VIDEO,open:!0,suffix:".mp4"},[A.MPEG]:{type:P.p.VIDEO,open:!0,suffix:".mpeg"},[A.MTL]:{type:P.p.THREE_D,open:!0,suffix:".mtl"},[A.ODP]:{type:P.p.PRESENTATION,open:!0,suffix:".odp"},[A.ODS]:{type:P.p.SPREADSHEET,open:!0,suffix:".ods"},[A.ODT]:{type:P.p.TEXT,open:!0,suffix:".odt"},[A.OGA]:{type:P.p.AUDIO,open:!0,suffix:".oga"},[A.OGG]:{type:P.p.AUDIO,open:!0,suffix:".ogg"},[A.OGV]:{type:P.p.VIDEO,open:!0,suffix:".ogv"},[A.OGX]:{type:P.p.VIDEO,open:!0,suffix:".ogx"},[A.OTF]:{type:P.p.FONT,open:!0,suffix:".otf"},[A.PNG]:{type:P.p.IMAGE,open:!0,suffix:".png"},[A.PDF]:{type:P.p.TEXT,open:!0,suffix:".pdf"},[A.PHP]:{type:P.p.SCRIPT,open:!0,suffix:".php"},[A.PKG]:{type:P.p.INSTALLER,open:!1,suffix:".pkg"},[A.PPT]:{type:P.p.PRESENTATION,open:!1,suffix:".ppt"},[A.PPTX]:{type:P.p.PRESENTATION,open:!0,suffix:".pptx"},[A.PS]:{type:P.p.IMAGE,open:!1,suffix:".ps"},[A.RAR]:{type:P.p.ARCHIVE,open:!1,suffix:".rar"},[A.RCP]:{type:P.p.THREE_D,open:!1,suffix:".rcp"},[A.RTF]:{type:P.p.TEXT,open:!0,suffix:".rtf"},[A.SBN]:{type:P.p.GEOSPATIAL,open:!1,suffix:".sbn"},[A.SBX]:{type:P.p.GEOSPATIAL,open:!1,suffix:".sbx"},[A.SHX]:{type:P.p.GEOSPATIAL,open:!0,suffix:".shx"},[A.SH]:{type:P.p.SCRIPT,open:!0,suffix:".sh"},[A.SLK]:{type:P.p.DATA,open:!0,suffix:".slk"},[A.SVG]:{type:P.p.IMAGE,open:!0,suffix:".svg"},[A.TAR]:{type:P.p.ARCHIVE,open:!0,suffix:".tar"},[A.TIFF]:{type:P.p.IMAGE,open:!0,suffix:".tiff"},[A.TIF]:{type:P.p.IMAGE,open:!0,suffix:".tif"},[A.TTF]:{type:P.p.FONT,open:!0,suffix:".ttf"},[A.TXT]:{type:P.p.TEXT,open:!0,suffix:".txt"},[A.VGL]:{type:P.p.THREE_D,open:!1,suffix:".vgl"},[A.VWX]:{type:P.p.CAD,open:!1,suffix:".vwx"},[A.WAV]:{type:P.p.AUDIO,open:!0,suffix:".wav"},[A.WEBM]:{type:P.p.VIDEO,open:!0,suffix:".webm"},[A.WEBP]:{type:P.p.IMAGE,open:!0,suffix:".webp"},[A.WMV]:{type:P.p.VIDEO,open:!0,suffix:".wmv"},[A.WOFF]:{type:P.p.FONT,open:!0,suffix:".woff"},[A.WOFF2]:{type:P.p.FONT,open:!0,suffix:".woff2"},[A.XLS]:{type:P.p.SPREADSHEET,open:!1,suffix:".xls"},[A.XLSX]:{type:P.p.SPREADSHEET,open:!0,suffix:".xlsx"},[A.XHTML]:{type:P.p.MARKUP,open:!0,suffix:".xhtml"},[A.XML]:{type:P.p.DATA,open:!0,suffix:".xml"},[A.XYZ]:{type:P.p.THREE_D,open:!0,suffix:".xyz"},[A.ZIP]:{type:P.p.ARCHIVE,open:!0,suffix:".zip"},[A.SEVEN_Z]:{type:P.p.ARCHIVE,open:!0,suffix:".7z"},[A.EML]:{type:P.p.EMAIL,open:!0,suffix:".eml"},[A.EMLX]:{type:P.p.EMAIL,open:!0,suffix:".emlx"},[A.MBX]:{type:P.p.EMAIL,open:!0,suffix:".mbx"},[A.MD]:{type:P.p.TEXT,open:!0,suffix:".md"},[A.MSG]:{type:P.p.EMAIL,open:!1,suffix:".msg"},[A.RST]:{type:P.p.TEXT,open:!0,suffix:".rst"},[A.HEIC]:{type:P.p.IMAGE,open:!1,suffix:".heic"},[A.MPP]:{type:P.p.PLANNING,open:!1,suffix:".mpp"},[A.TSV]:{type:P.p.DATA,open:!0,suffix:".tsv"},[A.B3DM]:{type:P.p.THREE_D,open:!0,suffix:".b3dm"},[A.I3DM]:{type:P.p.THREE_D,open:!0,suffix:".i3dm"},[A.PNTS]:{type:P.p.THREE_D,open:!1,suffix:".pnts"},[A.CMPT]:{type:P.p.THREE_D,open:!1,suffix:".cmpt"},[A.GLTF]:{type:P.p.THREE_D,open:!0,suffix:".gltf"},[A.GLB]:{type:P.p.THREE_D,open:!0,suffix:".glb"},[A.IFC]:{type:P.p.BIM,open:!0,suffix:".ifc"},[A.IFCZIP]:{type:P.p.BIM,open:!0,suffix:".ifczip"},[A.IFXML]:{type:P.p.BIM,open:!0,suffix:".ifcxml"},[A.THREEDM]:{type:P.p.CAD,open:!1,suffix:".3dm"},[A.THREEDS]:{type:P.p.THREE_D,open:!1,suffix:".3ds"},[A.GHP]:{type:P.p.CAD,open:!1,suffix:".ghp"},[A.RVT]:{type:P.p.BIM,open:!1,suffix:".rvt"},[A.RFA]:{type:P.p.BIM,open:!1,suffix:".rfa"},[A.RFT]:{type:P.p.BIM,open:!1,suffix:".rft"},[A.RTE]:{type:P.p.BIM,open:!1,suffix:".rte"},[A.PLA]:{type:P.p.BIM,open:!1,suffix:".pla"},[A.PLN]:{type:P.p.BIM,open:!1,suffix:".pln"},[A.GSM]:{type:P.p.BIM,open:!1,suffix:".gsm"},[A.SMC]:{type:P.p.BIM,open:!1,suffix:".smc"},[A.STL]:{type:P.p.THREE_D,open:!0,suffix:".stl"},[A.BCF]:{type:P.p.BIM,open:!0,suffix:".bcf"},[A.DWG]:{type:P.p.CAD,open:!1,suffix:".dwg"},[A.DWL]:{type:P.p.CAD,open:!1,suffix:".dwl"},[A.DXF]:{type:P.p.CAD,open:!0,suffix:".dxf"},[A.DGN]:{type:P.p.CAD,open:!1,suffix:".dgn"},[A.NWD]:{type:P.p.BIM,open:!1,suffix:".nwd"},[A.OBJ]:{type:P.p.THREE_D,open:!0,suffix:".obj"},[A.C4D]:{type:P.p.THREE_D,open:!1,suffix:".c4d"},[A.TEKLASTRUCTURES]:{type:P.p.BIM,open:!1,suffix:".teklastructures"},[A.PTS]:{type:P.p.THREE_D,open:!1,suffix:".pts"},[A.LAS]:{type:P.p.THREE_D,open:!0,suffix:".las"},[A.LAZ]:{type:P.p.THREE_D,open:!0,suffix:".laz"},[A.USDZ]:{type:P.p.THREE_D,open:!0,suffix:".usdz"},[A.USDA]:{type:P.p.THREE_D,open:!0,suffix:".usda"},[A.USDC]:{type:P.p.THREE_D,open:!0,suffix:".usdc"},[A.USD]:{type:P.p.THREE_D,open:!0,suffix:".usd"},[A.PSD]:{type:P.p.IMAGE,open:!1,suffix:".psd"},[A.PSP]:{type:P.p.IMAGE,open:!1,suffix:".psp"},[A.AI]:{type:P.p.IMAGE,open:!1,suffix:".ai"},[A.SKP]:{type:P.p.THREE_D,open:!1,suffix:".skp"},[A.FBX]:{type:P.p.THREE_D,open:!0,suffix:".fbx"},[A.KML]:{type:P.p.GEOSPATIAL,open:!0,suffix:".kml"},[A.SHP]:{type:P.p.GEOSPATIAL,open:!0,suffix:".shp"}}},4820(Vr,et,O){O.d(et,{p:()=>P});var P=function(A){return A.AUTOMATION="automation",A.ARCHIVE="archive",A.AUDIO="audio",A.BACKUP="backup",A.BINARY="binary",A.BIM="bim",A.CAD="cad",A.DATA="data",A.EMAIL="email",A.FONT="font",A.GEOSPATIAL="geospatial",A.IMAGE="image",A.INSTALLER="installer",A.MARKUP="markup",A.MULTIMEDIA="multimedia",A.PLANNING="planning",A.PRESENTATION="presentation",A.SCRIPT="script",A.SPREADSHEET="spreadsheet",A.TEXT="text",A.THREE_D="3d",A.UNKNOWN="unknown",A.VIDEO="video",A}(P||{})},7573(Vr,et,O){O.d(et,{E:()=>P});const P={qcy:"https://dev.qaecy.com/ont#","qcy-e":"https://dev.qaecy.com/enum#","qcy-f":"https://dev.qaecy.com/functions#",obc:"https://w3id.org/obc#",dicc:"https://w3id.org/digitalconstruction/0.5/Contexts#",dicv:"https://w3id.org/digitalconstruction/0.5/Variables#",dice:"https://w3id.org/digitalconstruction/0.5/Entities#",dicp:"https://w3id.org/digitalconstruction/0.5/Processes#",dica:"https://w3id.org/digitalconstruction/0.5/Agents#",dici:"https://w3id.org/digitalconstruction/0.5/Information#",dicbm:"https://w3id.org/digitalconstruction/0.5/Materials#",dicob:"https://w3id.org/digitalconstruction/0.5/Occupancy#",dicl:"https://w3id.org/digitalconstruction/0.5/Lifecycle#",dices:"https://w3id.org/digitalconstruction/0.5/Energy#",dicu:"https://w3id.org/digitalconstruction/0.5/Units#",diclvl:"https://w3id.org/digitalconstruction/0.5/Levels#",dicstg:"https://w3id.org/digitalconstruction/0.5/Stages#"}}}]);
|